Time-series Crime Prediction Across the United States Based on Socioeconomic and Political Factors

Patricia Dao, Jashmitha Sappa, Saanvi Terala, Tyson Wong, Michael Lam, Kevin ZhuarXiv 2024 · DOI

Abstract

This research introduces a hybrid deep learning framework—combining Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) architectures—to predict violent crime rates across the United States. By training on 20 years of socioeconomic and political data, the model achieves an average percent error of 9.74%. This approach provides a potential framework for policymakers to proactively allocate resources by understanding the systemic drivers of crime rather than relying solely on reactive historical statistics.

Introduction

Traditional crime prediction methods are often reactive and localized, frequently focusing on "hot-spot" mapping that can inadvertently reinforce systemic biases. This study addresses the need for a holistic, state-level prediction tool that bridges the gap between raw crime statistics and underlying social conditions. By focusing on socioeconomic factors such as education, income, and political status, the research aims to move toward a preventative model of resource allocation and legislation.

Methodology

The researchers developed a time-series forecasting model utilizing a hybrid architecture of LSTM and GRU layers. These recurrent neural network (RNN) variants are well-suited for sequential data; the hybrid approach balances the GRU’s computational efficiency with the LSTM’s capacity for long-term sequence memory.

Key technical features include:

  • Lagged Features: The model incorporates data from the previous five years to provide historical context.
  • Rolling Statistics: A 3-year rolling mean and 4-year rolling standard deviation were used to smooth noise and account for volatility.
  • Optimization: The model was trained with a learning rate of 0.001, a batch size of 64, and utilized "Early Stopping" and "Learning Rate Reduction" callbacks to prevent overfitting.
  • Validation: A time-series split was employed, using data from 1999–2018 for training and 2019 for testing.

Data Sources

The study utilized a multi-source dataset spanning 1999 to 2019:

  • Education: High school graduation rates from the National Center for Education Statistics (NCES).
  • Economics: Unemployment rates (BLS) and median income (Federal Reserve Bank of St. Louis).
  • Demographics: Gender ratios from the Census Bureau’s American Community Survey and KFF.
  • Crime & Population: Historical violent crime rates and population sizes from the FBI.

Results and Analysis

The model achieved an overall average percent error (APE) of 9.74% across all fifty states. However, performance varied significantly based on state population and crime volume.

Predicted vs. actual violent crime counts across 50 states with RMSE error bars.

As shown in Figure 1, the model tracks actual crime counts closely across the state index. A notable insight is the "Small State" variance: while high-population states like California (CA) exhibited high absolute loss values, they maintained relatively low percentage errors. Conversely, low-crime states like Idaho (ID) or Wyoming (115.2% error) showed much higher percentage errors, suggesting that "rare events" in low-population areas are more difficult for deep learning models to capture accurately.

Average Difference Loss (ADL) and Average Percent Error (APE) for selected states.

Figure 2 highlights these metrics for specific states. For instance, California (CA) shows an Average Difference Loss (ADL) of 4,466.7 but an APE of only 2.6%, whereas Idaho (ID) shows an APE of 51.4%.

Discussion and Limitations

The study reinforces the role of socioeconomics as leading indicators for crime. However, several limitations remain. The current state-wide scale lacks the granularity needed for local law enforcement; future iterations should aim for county-level analysis. Additionally, the exclusion of variables like literacy and mental health data—due to longitudinal gaps—may limit the model's depth. Finally, the model is inherently dependent on the quality of FBI and Census data; any reporting biases in these sources will inevitably be replicated by the AI.

Conclusion

The hybrid LSTM-GRU model demonstrates that socioeconomic and political factors are powerful predictors of violent crime. With an execution time of approximately 117 seconds per trial, the model is computationally efficient enough for practical government use, offering a data-driven path toward systemic crime prevention.

Summary updated

BibTeX
@misc{dao2024time,
  author = {Patricia Dao and Jashmitha Sappa and Saanvi Terala and Tyson Wong and Michael Lam and Kevin Zhu},
  title = {{Time-series Crime Prediction Across the United States Based on Socioeconomic and Political Factors}},
  year = {2024},
  eprint = {2409.00640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.00640},
}
Figure