Spatio-Temporal Analysis and Prediction of Urban Crime in Chicago
Spatial-Temporal Data Analysis and Data Mining project
Project Overview
This project analyses reported crime incidents in Chicago from 2022 to 2024. It combines exploratory spatial-temporal analysis with forecasting and machine learning to understand where crime clusters, how patterns change over time, and which models provide the strongest short-term prediction.
Research Focus
- Where are crime incidents spatially concentrated in Chicago?
- Do hotspots persist across 2022, 2023 and 2024?
- How do crime counts vary by month, week, day and hour?
- Can machine learning improve prediction compared with classical time-series models?
Methods
- Chicago public crime records from 2022 to 2024.
- Spatial cleaning and coordinate validation.
- Monthly and weekly time-series aggregation.
- STL decomposition and stationarity testing.
- Spatial aggregation to grid cells.
- Global Moran’s I and Local Indicators of Spatial Association.
- ARIMA, SARIMA, naive baseline and Random Forest forecasting.
- Model evaluation using RMSE and MAE.
Selected Outputs




Key Findings
Crime shows strong spatial clustering, with persistent hotspots in central, western and southern parts of Chicago. Temporal patterns are also regular: crime increases during warmer months and concentrates around evening and weekend periods.
For forecasting, the Random Forest model outperformed the naive, ARIMA and SARIMA benchmarks, suggesting that engineered temporal features can capture short-term variation more effectively than the classical statistical models tested in this project.