journal article·2025-04-23Open access

Integrating Machine Learning Techniques for Enhanced Safety and Crime Analysis in Maryland

Zeinab Bandpey, Soroush Piri, Mehdi Shokouhian

Applied Sciences· Volume 15· Issue 9

Abstract

This study advances crime analysis methodologies in Maryland by leveraging sophisticated machine learning (ML) techniques designed to cater to the state’s varied urban, suburban, and rural contexts. Our research utilized an enhanced combination of machine learning models, including random forest, gradient boosting, XGBoost, extra trees, and advanced ensemble methods like stacking regressors. These models have been meticulously optimized to address the unique dynamics and demographic variations across Maryland, enhancing our capability to capture localized crime trends with high precision. Through the integration of a comprehensive dataset comprising five years of detailed police reports and multiple crime databases, we executed a rigorous spatial and temporal analysis to identify crime hotspots. The novelty of our methodology lies in its technical sophistication and contextual sensitivity, ensuring that the models are not only accurate but also highly adaptable to local variations. Our models’ performance was extensively validated across various train–test split ratios, utilizing R-squared and RMSE metrics to confirm their efficacy and reliability for practical applications. The findings from this study contribute significantly to the field by offering new insights into localized crime patterns and demonstrating how tailored, data-driven strategies can effectively enhance public safety. This research importantly bridges the gap between general analytical techniques and the bespoke solutions required for detailed crime pattern analysis, providing a crucial resource for policymakers and law enforcement agencies dedicated to developing precise, adaptive public safety strategies.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Crime Patterns and Interventions · Anomaly Detection Techniques and Applications · Traffic and Road Safety

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Civil Engineering, Morgan State University, Baltimore, MD 21251, USA

Department of Architecture, Urbanism, and Built Environments, Morgan State University, Baltimore, MD 21251, USA

Funding

Center for Multi-Modal Mobility in Urban, Rural, and Tribal Areas

References (61)

Show source-provided references
1. Maryland Department of Justice (2023). Statistical Report on Crime in Urban Areas, Maryland Department of Justice.
2. Baltimore Police Department (2022). Annual Crime Statistics Report, Baltimore Police Department.
3. Challenges in Crime Data Analysis
4. Forecasting Domestic Violence: A Machine Learning Approach to Help Inform Arraignment Decisions10.1111/jels.12098 ↗
5. Wu, D.Y., and Wang, J. (2024). Analyzing Urban Crime Through Street View Imagery: Insights from Urban Micro Built Environment and Perceptions. Urban Sci. J., 8.10.3390/urbansci8040247 ↗
6. Demographic Influences on Crime Patterns in Maryland
7. Socioeconomic Factors and Crime: A Study of Maryland
8. A data-driven agent-based simulation to predict crime patterns in an urban environment10.1016/j.compenvurbsys.2021.101660 ↗
9. Racial Disparities in the Criminal Justice System: Prevalence, Causes, and a Search for Solutions10.1111/josi.12355 ↗
10. Urban Crime Trends and Predictions: A Machine Learning Approach
11. Socio-economic, built environment, and mobility conditions associated with crime: A study of multiple cities10.1038/s41598-020-70808-2 ↗
12. Policing and collective efficacy: A rapid evidence assessment
13. Mobility, Nonstationary Density, and Robbery Distribution in the Tourist Metropolis10.1007/s10610-022-09528-4 ↗
14. Built environment, urban vitality and social cohesion: Do vibrant neighborhoods foster strong communities?10.1016/j.landurbplan.2020.103951 ↗
15. The Quasi-Simplex Model in Crime Data Analysis
16. Bayesian Estimation Techniques in Modern Crime Analysis
17. Data Validity in Crime Reports: A Methodological Review
18. Regional Crime Trends and Predictive Analysis
19. Enhancing Crime Forecasting with Spatio-Temporal Data
20. Yu, H., Liu, L., Yang, B., and Lan, M. (2020). Crime Prediction with Historical Crime and Movement Data of Potential Offenders Using a Spatio-Temporal Cokriging Method. ISPRS Int. J. Geo-Inf., 9.10.3390/ijgi9120732 ↗
21. Enhancing Predictive Accuracy with Spatiotemporal Variables
22. Risk Terrain Modeling and Kernel Density Estimation in Crime Forecasting
23. SHAPs and Reinforcement Learning in Crime Prediction Models
24. Predicting Urban Crime Rates with AI
25. Spatio-Temporal Crime Predictions by Leveraging Artificial Intelligence for Citizens Security in Smart Cities
26. Machine Learning and Urban Crime: New Approaches
27. Population Bases in Crime Rate Calculations: A Comparative Study
28. Data Diversity in Crime Analysis
29. Braga, A.A., and Weisburd, D. (2010). Policing Problem Places: Crime Hot Spots and Effective Prevention, Oxford University Press.10.1093/acprof:oso/9780195341966.001.0001 ↗
30. Hotspots vs. harmspots: Shifting the focus from counts to harm in the criminology of place10.1016/j.apgeog.2017.06.009 ↗
31. Machine Learning in Urban Crime Prediction10.1007/s12652-023-04530-y ↗
32. Crime rate prediction in the urban environment using social factors10.1016/j.procs.2018.08.261 ↗
33. Exploring Critical Success Factors for Data Integration and Decision-Making in Law Enforcement10.5590/IJAMT.2019.18.1.01 ↗
34. The effect of spatiotemporal resolution on predictive policing model performance10.1016/j.ijforecast.2020.03.006 ↗
35. Predictive Risk Modeling for Individual Crime Prediction
36. Crime risk analysis through big data algorithm with urban metrics10.1016/j.physa.2019.123627 ↗
37. Adaptable Models for Crime Prediction
38. Interpretable machine learning models for crime prediction10.1016/j.compenvurbsys.2022.101789 ↗
39. Interpretable machine learning: Fundamental principles and 10 grand challenges10.1214/21-SS133 ↗
40. Examining the impact of cross-domain learning on crime prediction10.1186/s40537-021-00489-9 ↗
41. (2024, October 28). Violent Crime & Property Crime by Municipality: 2000 to Present. Open Data, Available online: https://opendata.maryland.gov/Public-Safety/Violent-Crime-Property-Crime-by-Municipality-2000-/2p5g-xrcb/about_data.
42. (2024, October 28). Cumulative Violent Crime Reduction—2006 to 2014. Open Data, Available online: https://opendata.maryland.gov/Public-Safety/Cumulative-Violent-Crime-Reduction-2006-to-2014/rknb-wh47/about_data.
43. (2024, October 28). Annual Crime Report Page, MCPD, Montgomery County, MD, Available online: https://www.montgomerycountymd.gov/pol/data/crime-reports.html.
44. (2024, October 28). Anne Arundel County Crime Rate By Type. Open Data, Available online: https://opendata.maryland.gov/Public-Safety/Anne-Arundel-County-Crime-Rate-By-Type/3fys-ggpk/about_data.
45. (2024, October 28). Violent Crime & Property Crime Statewide Totals: 2006 to Present. Open Data, Available online: https://opendata.maryland.gov/Public-Safety/Violent-Crime-Property-Crime-Statewide-Totals-2006/hj4v-yg9g/about_data.
46. (2024, October 28). SHIP Domestic Violence 2010–2020. Open Data, Available online: https://opendata.maryland.gov/Health-and-Human-Services/SHIP-Domestic-Violence-2010-2020/c8eg-j9vr.
47. (2024, October 28). OpenPGC. Open Data, Available online: https://data.princegeorgescountymd.gov/.
48. (2024, October 28). Counties. FRED. St. Louis Fed, Available online: https://fred.stlouisfed.org/categories/28543.
49. (2024, October 28). Violent Crime & Property Crime by County: 1975 to Present. Open Data, Available online: https://opendata.maryland.gov/Public-Safety/Violent-Crime-Property-Crime-by-County-1975-to-Pre/jwfa-fdxs/about_data.
50. (2024, November 04). Maryland Total Migration: 2001–2022. Open Data, Available online: https://opendata.maryland.gov/Demographic/Maryland-Total-Migration-2001-2022/3hb2-c6rg/about_data.
51. Council of State Governments Justice Center (2024). Analysis of policy influence on crime rates in Maryland. Justice Policy, 21, 157–170.
52. Maryland Public Policy Institute (2022). Socioeconomic factors and crime rates in Maryland. Public Policy Anal., 34, 442–460.
53. Hagan, J., and Peterson, R.D. (1995). Toward a theory of race, crime, and urban inequality. Crime and Inequality, Stanford University Press.
54. Massey, D.S., and Denton, N.A. (1993). American Apartheid: Segregation and the Making of the Underclass, Harvard University Press.
55. Gender and violent victimization, 1973–200010.1023/A:1022570729068 ↗
56. Anderson, E. (1999). Code of the Street: Decency, Violence, and the Moral Life of the Inner City, W.W. Norton & Company.
57. Assessing macro-level predictors and theories of crime: A meta-analysis10.1086/655357 ↗
58. Auto theft and its prevention10.1086/449203 ↗
59. Fisher, B.S., Daigle, L.E., and Cullen, F.T. (2010). Unsafe in the Ivory Tower: The Sexual Victimization of College Women, Sage Publications.10.4135/9781483349312 ↗
60. Bryant, C.D., and Willis, G. (2006). The Handbook of Criminology, Routledge.
61. Extremely disadvantaged neighborhoods and urban crime10.2307/2580416 ↗