Spatial-Temporal Augmentation for Crime Prediction (Student Abstract)

Hongzhu Fu, Fan Zhou, Qing Guo, Qiang Gao

Abstract

Predicting urban crime is challenging due to data sparsity and noise. This paper introduces STAug (Spatial-Temporal Augmentation), a framework that utilizes a novel data augmentation technique called CrimeMix to generate synthetic training samples. By combining this with a spatial-temporal aggregation module that captures complex dependencies between crime types, locations, and time, STAug significantly improves prediction accuracy over state-of-the-art baselines.

Introduction

Urban crime prediction is often described as a "needle in a haystack" problem. Crime events are relatively rare compared to the vast number of city blocks and time intervals, leading to extreme data sparsity. Furthermore, historical records are frequently incomplete or noisy. Existing models that focus on mapping spatial or temporal dependencies often struggle due to the lack of dense training data. STAug addresses these challenges by focusing on two key areas: mitigating data scarcity and modeling the intricate interplay between diverse crime types across space and time.

Methods

The STAug framework is built upon three core components designed to enhance the model's learning capacity and robustness.

The STAug framework overview, featuring CrimeMix augmentation and spatial-temporal aggregation.
  1. CrimeMix (Data Augmentation): Inspired by "Mixup" in computer vision, CrimeMix creates synthetic training examples through linear combinations of existing crime vectors. By blending data from different regions and time slots, the model explores a "vicinity distribution," which enhances generalization and robustness against data noise.
  2. Crime Embedding: To capture the unique semantics of different crime categories (e.g., theft vs. assault), the model transforms raw crime counts into dense vector representations. These learnable embeddings provide a rich numerical description for each crime type per region and time interval.
  3. Spatial-Temporal Aggregation: This module serves as the model's "brain," utilizing multi-head attention to identify predictive relationships between different crime types and Graph Neural Networks (GNNs) to propagate information across the city. The city is modeled as a graph where nodes represent regions, and edges connect geographically adjacent areas or regions with contemporaneous crime events.

Datasets

The effectiveness of STAug was evaluated on two standard urban computing benchmarks:

  • NYC-Crimes: Over 190,000 records covering categories such as Burglary, Robbery, Assault, and Larceny.
  • Chicago-Crimes (CHI): Over 320,000 records including Theft, Battery, Damage, and Assault.

These datasets provide a diverse range of crime volumes, allowing for a comprehensive test of the model's versatility across different urban environments.

Key Insights

  • Interpolation over Masking: Unlike models that simply ignore missing data, CrimeMix demonstrates that interpolating between known data points creates a more continuous and learnable landscape for neural networks.
  • Cross-Crime Dependencies: By leveraging attention mechanisms, the model learns how different crime types influence one another—for instance, how an uptick in vandalism might precede burglaries in a neighboring area.
  • Unified Graph Logic: Integrating both geographic proximity and temporal coincidence into a single graph structure allows the model to capture the "ripples" of criminal activity as they move through the urban environment.

Key Results

STAug consistently outperformed established baselines, including DeepCrime, ST-SHN, and ST-DPL, across both test cities.

Performance comparison of STAug against baseline models on NYC and Chicago crime datasets.

As shown in the results table, STAug achieved a micro-F1 of 0.6573 in NYC and 0.7361 in Chicago. These improvements suggest that the combination of CrimeMix augmentation and multi-type crime modeling is significantly more effective than standard recurrent network architectures for sparse crime data.

Limitations and Future Work

While STAug shows promising results, several areas for future exploration remain:

  • Computational Efficiency: Applying multi-head attention to high-dimensional 4D tensors (Regions × Time × Crime Types × Embedding) may pose scaling challenges for extremely large urban grids.
  • Interpretability: Further research is needed to decode the "why" behind specific predictions, such as analyzing which attention heads prioritize certain regions or crime correlations.
  • Contextual Integration: Future iterations could incorporate external factors like weather patterns, public holidays, or points-of-interest (POIs) to further refine the predictive accuracy.

Summary updated

BibTeX
@inproceedings{fu2024spatial,
  author = {Hongzhu Fu and Fan Zhou and Qing Guo and Qiang Gao},
  title = {{Spatial-Temporal Augmentation for Crime Prediction (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i21.30442},
}
Figure