Abstract
Predicting where and when crimes will occur is a cornerstone of urban computing and public safety. While deep learning models like Graph Neural Networks (GNNs) and Hypergraphs have advanced the field, they often overlook critical interdependencies. The Hawkes-enhanced Spatial-Temporal Hypergraph Contrastive Learning (HCL) framework addresses this by explicitly modeling the co-occurrence of different crime types, spatial "spillover" effects, and the decaying temporal influence of past events. HCL achieves state-of-the-art performance across major urban datasets by integrating Hawkes processes with self-supervised contrastive learning.
Introduction
Traditional crime prediction models frequently suffer from being "correlation-blind." They treat different crime categories or geographic regions with too much independence, failing to capture the complex dynamics of urban environments. Specifically, the HCL framework identifies three critical gaps: the shared environmental factors that cause different crimes to happen together, the influence of crime in one block on its neighbors, and the "self-exciting" nature of criminal activity where the relevance of a past event decays over time.
The Three Pillars of Criminal Correlation
The HCL framework is built upon the identification and extraction of three specific types of correlation:
- Type Spatial Correlation: Different crime categories (e.g., robbery and assault) often co-occur due to shared situational factors.
- Neighbor Spatial Correlation: High-risk areas often influence the safety of adjacent blocks, creating spatial clusters of criminal activity.
- Hawkes Temporal Correlation: The impact of a crime on future risk is highest immediately after the event and diminishes over time.
As illustrated in the data analysis (Figure 4), data from New York City reveals these patterns clearly. Panel (b) shows that 38% of spatial units experience four different types of crime, highlighting the necessity of modeling type correlations. Panel (d) demonstrates the fluctuating temporal trends that a Hawkes process is uniquely suited to capture.
Methodology: The HCL Framework
The HCL framework consists of three main components designed to enhance existing hypergraph backbones:
Hawkes-enhanced Hypergraph Encoding
To capture the "bursty" and decaying nature of crime, HCL adds a Hawkes process modeling layer to a standard hypergraph encoder. This layer uses a weighted sum of historical representations, where weights are determined by a temporal decay function, ensuring recent events have a stronger influence on predictions.
Spatial Criminal Correlation Extraction
The system automatically identifies "tuples" of correlated data. Type tuples link different crime categories in the same block, while neighbor tuples link a crime in a specific block to the status of its 1-hop neighbors.
As shown in Figure 6, crime types like Larceny and Burglary are present in a vast majority of spatial units (95.70% and 79.69% respectively), further supporting the need for a model that can handle high-density, overlapping criminal data.
Correlation-based Contrastive Learning
Using these tuples, the model employs a self-supervised Mean Squared Error (MSE) loss to align the representations of correlated events in the latent space. This "knowledge injection" forces the model to learn the underlying shared characteristics that lead to these correlations without requiring complex negative sampling.
Key Results and Insights
The authors evaluated HCL on high-quality datasets from New York City (2014-2015) and Chicago (2016-2017) against 17 baseline models.
- State-of-the-Art Performance: HCL outperformed all baselines. In NYC, it improved Mean Absolute Error (MAE) and Mean Absolute Percentage Error (MAPE) by an average of 2.96% and 6.20%, respectively.
- Framework Versatility: HCL is backbone-agnostic. When integrated into other models like ST-HSL and ST-SHN, it consistently provided significant performance boosts.
- Specific Improvements: The model was particularly effective at predicting Burglary in NYC, achieving a 3.42% improvement in MAE over the previous best-in-class model.
Conclusion
By explicitly modeling the hidden correlations of urban crime through Hawkes processes and contrastive learning, HCL provides a more nuanced and accurate predictive tool for public safety. Future work will focus on automating hyperparameter tuning and optimizing the computational efficiency of the Hawkes modeling layer.
Summary updated