Multi-axis Attentive Prediction for Sparse EventData: An Application to Crime Prediction

Yi Sui, Ga Wu, Scott SannerarXiv 2021

Researchers from the University of Toronto have introduced MAPSED (Multi-axis Attentive Prediction for Sparse Event Data), a novel deep learning architecture designed to tackle the "sparsity problem" in spatiotemporal event prediction, specifically for urban crime forecasting.

The Challenge: Extreme Sparsity in Urban Data

Spatiotemporal Event Prediction (SEP) involves forecasting the location and timing of events like traffic accidents or crimes. While deep learning models like ConvLSTMs excel in data-rich environments (e.g., weather forecasting), they often struggle with the extreme sparsity of urban crime data. In a typical city grid, most cells contain zero events at any given time. This thinness often leads complex models to overfit, essentially "memorizing" historical hotspots rather than learning the underlying dynamics of how crime evolves or moves.

The MAPSED Architecture

MAPSED is a purely attentional framework that processes data through multiple "observation angles." Unlike traditional recurrent units that process time and space sequentially, MAPSED uses a tensor-centric approach to capture dependencies across three axes simultaneously: Time, 2D Space, and Event Type.

The MAPSED architecture featuring the Multi-axis Attention Block (MAB) and dual observation angles for dynamics and semantics extraction.

Core Components:

  • Multi-axis Attention Block (MAB): Captures multi-dimensional dependencies across time, space, and category.
  • Dual Observation Angles: The model processes data through two distinct lenses:
  • Depth-wise (Dynamics): Focuses on how events evolve over time.
  • Breadth-wise (Semantics): Focuses on correlations between different crime types (e.g., how robbery relates to assault) regardless of the time step.
  • Frobenius Norm Contrastive Learning: To regularize the latent space without losing predictive power, the authors introduced a new objective function based on the Frobenius norm, which is more effective for reconstruction tasks than standard dot-product-based contrastive losses.

Key Insights and Qualitative Evaluation

Beyond standard metrics, the researchers employed a unique "Rotation Test" to detect overfitting. By testing models on rotated versions of city maps, they found that baseline models like ConvGRU continued to predict crime in the original training hotspots, proving they had merely memorized the map. In contrast, MAPSED correctly shifted its predictions to match the rotated input.

Furthermore, the model successfully learned "semantic neighbors." It identified strong correlations between "Non-criminal" reports and "Theft," as well as between "Vehicle Theft" and "Burglary," aligning with established criminological research.

Results and Performance

The model was evaluated on long-term crime datasets from San Francisco (2003–2018) and Vancouver (2003–2017). MAPSED achieved the lowest Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) across nearly all crime categories in both cities.

Qualitative comparison of prediction heatmaps and Mean Absolute Error (MAE) across different models for various crime categories.

MAPSED is not only more accurate but also more efficient, utilizing significantly fewer parameters than baselines like CSAN or ConvGRU. Its purely attentional approach avoids the vanishing gradient problems inherent in RNNs/LSTMs, making it more robust for real-world deployment where urban dynamics shift over time.

Future Directions

While currently tested on 10x10 grids, future work will explore dimension reduction techniques like Variational Auto-encoders (VAEs) to handle finer spatial resolutions. Additionally, the researchers aim to incorporate external contextual data—such as weather, local events, or points of interest—to further refine the model's predictive capabilities across various sparse spatiotemporal tasks.

Summary updated

BibTeX
@misc{sui2021multi,
  author = {Yi Sui and Ga Wu and Scott Sanner},
  title = {{Multi-axis Attentive Prediction for Sparse EventData: An Application to Crime Prediction}},
  year = {2021},
  eprint = {2110.01794},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.01794},
}
Figure