[Paper Review] A Comparative Study on Crime in Denver City Based on Machine Learning and Data Mining
This study applies multiple machine learning and data mining techniques to a large Denver crime dataset (478,578 incidents, 2014–2019) to predict 15 crime categories. Using statistical analysis, visualization, and classification models—including ensemble methods—Ensemble Model 4 achieved over 90% accuracy, outperforming others in precision, recall, F1-score, and ROC analysis, offering actionable insights for law enforcement and crime prevention.
To ensure the security of the general mass, crime prevention is one of the most higher priorities for any government. An accurate crime prediction model can help the government, law enforcement to prevent violence, detect the criminals in advance, allocate the government resources, and recognize problems causing crimes. To construct any future-oriented tools, examine and understand the crime patterns in the earliest possible time is essential. In this paper, I analyzed a real-world crime and accident dataset of Denver county, USA, from January 2014 to May 2019, which containing 478,578 incidents. This project aims to predict and highlights the trends of occurrence that will, in return, support the law enforcement agencies and government to discover the preventive measures from the prediction rates. At first, I apply several statistical analysis supported by several data visualization approaches. Then, I implement various classification algorithms such as Random Forest, Decision Tree, AdaBoost Classifier, Extra Tree Classifier, Linear Discriminant Analysis, K-Neighbors Classifiers, and 4 Ensemble Models to classify 15 different classes of crimes. The outcomes are captured using two popular test methods: train-test split, and k-fold cross-validation. Moreover, to evaluate the performance flawlessly, I also utilize precision, recall, F1-score, Mean Squared Error (MSE), ROC curve, and paired-T-test. Except for the AdaBoost classifier, most of the algorithms exhibit satisfactory accuracy. Random Forest, Decision Tree, Ensemble Model 1, 3, and 4 even produce me more than 90% accuracy. Among all the approaches, Ensemble Model 4 presented superior results for every evaluation basis. This study could be useful to raise the awareness of peoples regarding the occurrence locations and to assist security agencies to predict future outbreaks of violence in a specific area within a particular time.
Motivation & Objective
- To develop accurate predictive models for crime patterns in Denver to support law enforcement and government resource allocation.
- To identify high-risk crime types and locations using real-world incident data from Denver County.
- To compare the performance of diverse machine learning algorithms in classifying 15 distinct crime categories.
- To evaluate model robustness using train-test split and k-fold cross-validation across multiple metrics.
- To provide actionable insights for crime prevention through data-driven forecasting and spatial-temporal trend analysis.
Proposed method
- Applied statistical analysis and data visualization to explore temporal and spatial patterns in Denver’s crime data (Jan 2014–May 2019).
- Implemented 10 classification algorithms: Random Forest, Decision Tree, AdaBoost, Extra Tree, Linear Discriminant Analysis, K-Nearest Neighbors, and four ensemble models.
- Evaluated models using train-test split and k-fold cross-validation to ensure generalization and stability.
- Measured performance using precision, recall, F1-score, Mean Squared Error (MSE), ROC curves, and paired-t tests.
- Selected the best-performing model based on consistent superiority across all evaluation metrics.
- Used the final model to highlight predictive trends and support strategic crime prevention planning.
Experimental results
Research questions
- RQ1Which machine learning model achieves the highest accuracy in predicting 15 distinct crime categories in Denver?
- RQ2How do different ensemble and base classifiers compare in terms of precision, recall, and F1-score on the Denver crime dataset?
- RQ3What are the most significant temporal and spatial patterns in Denver’s crime incidents from 2014 to 2019?
- RQ4How robust are the predictions across different evaluation strategies such as train-test split and k-fold cross-validation?
- RQ5Can the model reliably identify high-risk crime types and locations for proactive law enforcement intervention?
Key findings
- Ensemble Model 4 achieved the highest accuracy across all evaluation metrics, outperforming all other models.
- Random Forest, Decision Tree, and three other ensemble models achieved over 90% accuracy, indicating strong predictive performance.
- Except for AdaBoost, all models demonstrated satisfactory performance, with high precision, recall, and F1-scores.
- The model's performance was consistently strong across both train-test split and k-fold cross-validation, indicating robustness.
- ROC curve analysis confirmed high discriminative power, especially for Ensemble Model 4.
- Paired-t tests confirmed statistically significant performance differences, with Ensemble Model 4 significantly outperforming others.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.