Spatial-Temporal Mixture-of-Graph-Experts for Multi-Type Crime Prediction

Ziyang Wu, Fan Liu, Jindong Han, Yuxuan Liang, Hao LiuarXiv 2024 · DOI

Predicting urban crime is a cornerstone of proactive public safety and resource allocation. However, crime is not a monolithic phenomenon; it encompasses diverse categories—ranging from larceny to assault—each with unique spatial and temporal footprints. Traditional predictive models often struggle to capture these nuances, typically falling into the trap of "one-size-fits-all" architectures. This paper introduces the Spatial-Temporal Mixture-of-Graph-Experts (ST-MoGE) framework, a modular approach designed to handle the inherent complexities of multi-type crime data.

The Challenge of Multi-Type Crime Prediction

Existing crime prediction models face two primary hurdles: Pattern Conflict and Spatial Imbalance.

  1. Pattern Conflict: Different crimes exhibit distinct spatial-temporal heterogeneity. For instance, larceny might cluster in commercial hubs during business hours, while harassment patterns may differ significantly. When a single model tries to learn shared dependencies for all types, these conflicting signals can degrade performance.
Spatial distribution of Larceny vs. Harassment in NYC, illustrating distinct crime patterns.
  1. Spatial Imbalance: Crime data typically follows a "long-tail" distribution. A small number of "hotspots" account for the majority of incidents, while most urban regions experience very few crimes. Standard models tend to overfit these high-frequency areas, leading to poor accuracy in data-scarce regions.
Crime occurrence distribution across regions for Larceny and Harassment, highlighting the long-tail spatial imbalance.

The ST-MoGE Framework

To address these issues, ST-MoGE employs a specialized "Mixture-of-Experts" architecture that moves away from monolithic learning.

Attentive-Gated Mixture-of-Graph-Experts (MGEs)

The core of the system consists of multiple spatial-temporal blocks, each combining Graph Convolutional Networks (GCNs) for spatial relationships and Temporal Convolutional Networks (TCNs) for time-series patterns. The architecture distinguishes between:

  • Category-Specific Experts: Dedicated to modeling the unique footprint of a single crime type.
  • Universal Expert: Designed to capture shared patterns common across all crime categories.

An Attentive Gating mechanism, powered by multi-head cross-attention, dynamically determines the optimal mix of universal and specific knowledge for any given region and crime type.

Expert Specialization and Contrastive Learning

To ensure that experts do not become redundant, the framework utilizes Cross-Expert Contrastive Learning (CECL). By forcing the latent representations of different crime patterns to be distinct, CECL ensures that each expert truly specializes in its assigned category.

Hierarchical Adaptive Loss Re-weighting (HALR)

To combat the long-tail distribution, the HALR module dynamically adjusts loss weights during training. It prioritizes regions where the model's error is highest—typically low-crime areas—ensuring the model does not ignore data-scarce regions in favor of global error minimization.

Experimental Results

The ST-MoGE framework was evaluated using massive real-world datasets from New York City (NYC) and Chicago, covering various crime categories such as Larceny, Harassment, Assault, and Robbery.

Compared against 12 state-of-the-art baselines (including STGCN and DeepCrime), ST-MoGE consistently achieved the lowest Mean Absolute Error (MAE) and Mean Absolute Percentage Error (MAPE). Notably, the model showed significant improvements in low-frequency regions, validating the effectiveness of the HALR module. Ablation studies further confirmed that every component—from the universal expert to the contrastive learning module—is essential for the framework's superior performance.

Conclusion

ST-MoGE represents a significant step forward in urban computing by acknowledging and modeling the heterogeneity of crime. By combining modular expertise with adaptive loss management, the framework provides a robust solution for multi-type crime prediction that remains accurate even in data-scarce urban environments. Future work may explore applying this flexible architecture to other spatial-temporal tasks, such as traffic anomaly detection or localized weather forecasting.

Summary updated

BibTeX
@misc{wu2024spatial,
  author = {Ziyang Wu and Fan Liu and Jindong Han and Yuxuan Liang and Hao Liu},
  title = {{Spatial-Temporal Mixture-of-Graph-Experts for Multi-Type Crime Prediction}},
  year = {2024},
  eprint = {2409.15764},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.15764},
}
Figure