Spatial-temporal meta-path guided explainable crime prediction

Yuting Sun, Tong Chen, Hongzhi Yin

Abstract: Crime prediction is vital for urban safety, yet many high-performing models remain "black boxes." This paper introduces STMEC, a framework using Heterogeneous Information Networks and meta-paths to provide accurate and explainable crime forecasts. By modeling regional similarities through shared social and environmental factors, STMEC significantly improves the prediction of rare felonies and offers clear insights into the drivers of urban crime.

Introduction

Predicting crime is not just about knowing where an incident might occur; for law enforcement and city planners, understanding the "why" is equally important. While deep learning has advanced predictive accuracy, many state-of-the-art models offer little insight into the underlying social or environmental drivers. Researchers from the University of Queensland have developed STMEC, a framework designed to bridge the gap between high-performance forecasting and human-readable explainability.

The Challenge: Beyond Black-Box Predictions

Traditional crime forecasting often relies on latent mathematical representations that are difficult for humans to interpret. Crime is influenced by a complex interplay of demographics, geography, and urban infrastructure. Effectively fusing these diverse data sources while maintaining spatial-temporal context remains a significant hurdle. The authors identify three main challenges: capturing spatiotemporal dynamics, fusing multi-view data (like census tracts and points of interest), and achieving true explainability.

The STMEC Framework

The core innovation of STMEC is the use of a Heterogeneous Information Network (HIN). Unlike standard graphs where all nodes are of the same type, an HIN incorporates multiple node types, such as regions, ethnic distributions, income levels, and job types.

The STMEC framework combines Heterogeneous Information Networks with meta-path extraction to model complex urban relationships.

Meta-path Guided Learning

To identify similarities between different urban areas, STMEC employs symmetric "meta-paths." For instance, a path like Region -> Income -> Region allows the model to correlate crime patterns between two geographically distant areas that share similar economic profiles.

Examples of specific meta-paths linking regions through shared socioeconomic attributes like income and ethnicity.

The researchers introduced a new metric, Distribution-aware PathSim, to handle complex sub-categories within urban data (e.g., distinguishing between primary schools and universities). This ensures the model's similarity measures align more closely with human intuition. Furthermore, a graph attention layer identifies which meta-paths are most influential for a given prediction, providing the "why" behind the forecast.

Experimental Evaluation

The model was tested using 2014-2015 New York City data, including NYPD crime reports, census data, and over 15,000 points of interest (POIs).

Key Results

STMEC consistently outperformed state-of-the-art baselines like GCN and STGCN across all metrics:

  • Overall Accuracy: Improved Macro-Recall by 7.5% and Micro-F1 by 4% on the 2015 NYC dataset.
  • Rare Crime Prediction: The model excelled at predicting high-impact, infrequent felonies. It showed a 5% to 20% improvement in recall for crimes like "Dangerous Weapons" and "Burglary."
  • Explainability: Analysis of attention scores revealed that urbanization levels are the primary drivers for most crime types, while job types were less significant.
  • Temporal Stability: The model reached peak performance with a 21-day historical time window, suggesting that while recent trends are vital, long-term context provides the necessary stability for accurate forecasting.

Conclusion

By integrating semantic social factors through meta-paths, STMEC bridges the gap between predictive performance and explainability. This framework provides law enforcement and city planners with actionable insights into the social and environmental factors driving crime in specific regions, moving beyond simple "where" to understand the "why."

Summary updated

BibTeX
@article{sun2023spatial,
  author = {Yuting Sun and Tong Chen and Hongzhi Yin},
  title = {{Spatial-temporal meta-path guided explainable crime prediction}},
  journal = {WWW},
  year = {2023},
  doi = {10.1007/s11280-023-01137-3},
}
Figure