Studying the factors that influence the Incidence of UCR Part One Crimes in Boston
DOI:
https://doi.org/10.61173/5p8mfw56Keywords:
Crime, Boston, Cross-validation, Random Forest Classifier, Logistic, RegressionAbstract
Boston, as one of the most populated cities in the United States, while being known for its rich history, humanities and culture, also faces significant challenges with crime. This paper presents research on the critical factors that influence a possibility of a crime in Boston being UCR part 1 crime. If applied to law enforcement agencies, the distribution of police resources in Boston can be more reasonable and enable better urban security. We obtained the dataset from a Kaggle post, which was obtained from the Crime Incident Report of the Boston Police Department. By cleaning the data, converting months to seasons, we made the data more usable. We then split the data in a 70-30% ratio. We ran two models – first for the training session, we used the random forest classifier to identify the most significant factors. We evaluated the model by using metrics such as accuracy, precision, recall, and the ROC-AUC curve. In the testing session, we employed a logistic regression model for cross validation. For both models, the obtained accuracy is over 94%, indicating an extremely high overall performance for both models. Through the data analysis and test in this paper, it can be summarized that both the logistic regression model and random forest classifier can effectively predict and analyze an instance of a UCR part 1 crime in Boston based on the location of the crime, crime code group, season, time of the day, and day of the week. Though the accuracy is significantly high, we should not ignore the fact that we used a slightly older dataset ranging from 2015 to 2018, which, being six years ago, may have intrinsically different crime patterns than those that occur now.
References
[1] Cohen, J., Gorr, W., & Durso, C. (2003). Estimation of crime seasonality: a cross-sectional extension to time series classical decomposition. H. John Heinz III Working Paper, (2003-18).
[2] Towers, S., Chen, S., Malik, A., & Ebert, D. (2018). Factors influencing temporal patterns in crime in a large American city: A predictive analytics perspective. PLoS one, 13(10), e0205151.
[3] Mapou, A. E., Shendell, D., Ohman-Strickland, P., Madrigano, J., Meng, Q., Whytlaw, J., & Miller, J. (2017). Environmental factors and fluctuations in daily crime rates. Journal of Environmental Health, 80(5), 8-22.
[4] Boston Police Department. (2018). Crime Incident Reports.
[5] Cohen, L. E., & Felson, M. (1979). Social change and crime rate trends: A routine activity approach. American Sociological Review, 44(4), 588-608.
[6] Hu, J., Hu, X., Lin, Y., Wu, H., & Shen, B. (2024). Exploring the correlation between temperature and crime: A case-crossover study of eight cities in America. Journal of Safety Science and Resilience, 5(1), 13-36.
[7] Shaw, C. R., & McKay, H. D. (1969). Juvenile Delinquency and Urban Areas. University of Chicago Press.
[8] Delgado, R., & Sánchez-Delgado, H. (2023). The effect of seasonality in predicting the level of crime. A spatial perspective.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 by the authors.

This work is licensed under a Creative Commons Attribution 4.0 International License.
