Crash risk in metropolitan areas arises from the interaction among driver behavior, enforcement infrastructure, and urban environmental conditions; however, microspatial evidence remains scarce. This study examines the effects of automated speed-enforcement cameras on the crash risk in Seoul at the legal-dong level using the accident risk index, which accounts for both crash frequency and injury severity. The dataset combines crash records, enforcement infrastructure, school-zone information, demographic indicators, and land-use characteristics. Methodologically, a Bayesian negative binomial regression model was employed to address overdispersed crash data, whereas gradient-boosting machine and eXtreme Gradient Boosting models with SHAP interpretations were applied to capture nonlinear effects, heterogeneity, and variable interactions. The results reveal that the crash risk is spatially concentrated, with a small proportion of districts contributing disproportionately to the overall exposure. Regression analysis highlights enforcement and behavioral factors as significant predictors, whereas machine-learning models emphasize the added importance of structural and demographic characteristics, such as road area and floating population. This divergence reflects the sensitivity of the regression to collinearity and linearity assumptions in contrast to the flexibility of tree-based methods in uncovering nonlinear and context-dependent influences. In general, the findings reflect the value of integrating statistical and machine-learning approaches for a more comprehensive understanding of crash risk at the microspatial scale. This study advances the methodological diversity in traffic-safety research and provides practical evidence that cameradeployment strategies should be context sensitive while targeting areas with concentrated risks and distinct structural and demographic profiles.