Forecasting Crime with Deep Learning

Alexander Stec, Diego KlabjanarXiv 2018

Predicting urban crime has long been considered a "holy grail" for law enforcement and urban planners. Transitioning from reactive policing to proactive resource allocation requires the ability to anticipate where and when crimes are likely to occur. In their research, Alexander Stec and Diego Klabjan from Northwestern University present a robust deep learning framework designed to forecast crime at a high resolution by integrating spatial, temporal, and socioeconomic data.

The Limitations of Traditional Forecasting

Historically, crime forecasting relied on simple trend extrapolation or Kernel Density Estimation (KDE), often referred to as "hot spot" mapping. While useful for identifying historical clusters, these methods struggle with the inherent complexities of urban environments:

  1. Non-linearity: Crime is influenced by intricate, non-linear interactions between weather, location, and socioeconomic factors that simple linear models cannot capture.
  2. Temporal Dynamics: Criminal activity often exhibits "momentum"; a crime today frequently influences the likelihood of a crime tomorrow in the same vicinity.
  3. High Dimensionality: As researchers incorporate more diverse datasets—such as census records or public transportation usage—traditional regression models often become overwhelmed by the sheer number of features.

To address these challenges, Stec and Klabjan propose a hybrid deep learning architecture that treats the city as a dynamic grid, capturing both the "where" (spatial) and "when" (temporal) of crime patterns.

Methodology: A Hybrid Neural Network

The researchers evaluated four distinct architectures to determine the most effective way to process multi-modal urban data:

  • Feed Forward Network (FFN): A standard baseline model.
  • Convolutional Neural Network (CNN): Typically used for image recognition, the CNN treats the city as a grid where each "pixel" represents a neighborhood. Different "color channels" represent features like historical crime rates or transit boardings, allowing the model to capture spatial correlations between adjacent areas.
  • Recurrent Neural Network (RNN/LSTM): Utilizing Long Short-Term Memory units, this model is designed to recognize patterns over time, effectively capturing the temporal cycles of crime.
  • Joint RNN+CNN: The study's flagship model. This hybrid architecture uses CNN layers to extract spatial features from the city grid, flattens that output, and concatenates it with non-spatial features (such as weather). This combined vector is then fed into an LSTM to process the time-series dependencies.

To manage the inherent sparsity of crime data, the researchers framed the problem as a classification task. Rather than predicting an exact number of incidents, the model predicts which of ten "bins" the crime count will fall into (e.g., 0, 1–3, 4–6, etc.).

Data Integration and Context

The study utilized extensive datasets from Chicago (approximately 6 million records) and Portland. Beyond raw crime reports, the models were enriched with:

  • Socioeconomic Indicators: Census data including income levels, racial demographics, and age.
  • Environmental Factors: NOAA weather data, including temperature fluctuations and precipitation.
  • Urban Infrastructure: Daily ridership numbers for Chicago Transit Authority (CTA) buses and trains, mapped to specific police beats.

Key Insights

The research yielded several critical findings regarding the drivers of urban crime:

  • The Primacy of Socioeconomics: Census data provided the most significant boost to model accuracy. Removing this data resulted in a 4.1% drop in performance, suggesting that the socioeconomic environment is a far more consistent predictor of crime than short-term fluctuations like weather.
  • Crime-Specific Sensitivity: Different types of crime responded uniquely to different architectures. Theft saw the most significant improvement when CNN layers were added, indicating it is highly dependent on spatial factors. Conversely, Narcotics violations responded better to RNNs, suggesting they follow stronger temporal cycles.
  • The "Train Station" Effect: In Chicago, police beats containing a transit station were 1.2% more predictable than those without. This suggests that transit hubs act as "anchors" for human activity, creating more regular and predictable crime patterns.
  • Weather as a Minor Signal: While weather does influence crime, it was the least informative feature in this study, contributing only a 0.7% improvement in accuracy. This is likely because weather patterns are relatively uniform across a single city on any given day.

Results and Performance

The hybrid RNN+CNN model consistently outperformed all other architectures. In Chicago, the model achieved 75.6% accuracy in predicting overall crime bins. Performance varied by crime sub-type, with violent crimes reaching 65.9% accuracy and narcotics at 57.9%.

To validate the model's utility, the researchers used the Mean Absolute Scaled Error (MASE). The models achieved MASE values between 0.74 and 0.83. Because any value below 1.0 indicates that the model is performing better than a naive "yesterday equals tomorrow" prediction, these results represent a statistically significant advancement in forecasting capability.

Conclusion and Future Directions

Stec and Klabjan demonstrate that deep learning can successfully bridge the gap between high-dimensional urban data and actionable law enforcement insights. While the current model focuses on next-day predictions, future work could explore "intra-day" shifts—predicting crime patterns between morning and night—to allow for even more granular resource allocation. Furthermore, the disparity in results between Chicago and Portland highlights that the quality and variety of input data remain as crucial as the complexity of the neural network itself.

Summary updated

BibTeX
@misc{stec2018forecasting,
  author = {Alexander Stec and Diego Klabjan},
  title = {{Forecasting Crime with Deep Learning}},
  year = {2018},
  eprint = {1806.01486},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.01486},
}
Figure