Graph-Based Deep Modeling and Real Time Forecasting of Sparse Spatio-Temporal Data

Bao Wang, Xiyang Luo, Fangbo Zhang, Baichuan Yuan, Andrea L. Bertozzi, P. Jeffrey Brantingham

Introduction

Predicting the "where and when" of urban events like crime or traffic congestion is a cornerstone of effective urban planning and public safety. However, spatio-temporal (ST) data is notoriously difficult to model due to two primary factors: spatial irregularity and extreme sparsity. Traditional deep learning models, such as Convolutional Neural Networks (CNNs), often treat cities as rigid rectangular grids. This approach fails to account for the irregular shapes of urban environments and creates "dead zones" (e.g., parks or bodies of water) that waste computational resources. Furthermore, at fine-grained temporal scales, most locations report zero events, leading standard neural networks to converge on trivial "all-zero" predictions.

This paper introduces a hybrid framework that combines statistical point processes with deep learning to address these challenges. By representing cities as weighted graphs and utilizing Hawkes processes to "prime" a Graph-Structured Recurrent Neural Network (GSRNN), the authors achieve state-of-the-art accuracy in forecasting infrequent and irregularly distributed events.

Methodology

The proposed framework operates across multiple scales, integrating statistical modeling with deep learning through three core components.

High-level forecasting framework: Data is transformed into a graph structure before being processed by a Deep Neural Network (DNN) to produce predictions.

Spatio-Temporal Weighted Graph (STWG)

Rather than a grid, the city is partitioned into meaningful regions (e.g., zip codes). The relationships, or "edges," between these regions are inferred using a Multivariate Hawkes Process (MHP). This statistical model captures the "triggering" effect, where an event in one area increases the likelihood of subsequent events in neighboring areas. To maintain computational efficiency, $L_1$ regularization is applied to ensure the resulting graph remains sparse.

Smart Data Augmentation

To overcome the vanishing gradient issues associated with sparse "all-zero" signals, the authors avoid training on raw event counts. Instead, they transform the data into a diurnal cumulative distribution function (CDF). By applying linear interpolation, they "super-resolve" the time series into a smoother, continuous signal that is significantly easier for a neural network to approximate.

Graph-Structured RNN (GSRNN)

The core architecture is a modified Structural-RNN that assigns LSTMs to both nodes (regions) and edges (interactions). It employs weighted sum pooling, where the weights—learned from the Hawkes process—direct the neural network to prioritize signals from the most influential neighboring nodes.

Data Characteristics and Periodicity

A key insight of the research is the inherent periodicity in urban data. Spectral analysis of crime time series reveals strong diurnal patterns, which justifies the use of cumulative mapping techniques.

Spectral analysis of Chicago crime data for the entire dataset (top) and a specific zip code (bottom), showing a dominant magnitude peak at the 24-hour period.

As shown in the spectral analysis, both aggregate and localized data exhibit a clear spike at the 24-hour mark. This periodicity allows the model to leverage the macro-scale "physics" of the data while the RNN focuses on micro-scale nuances.

Evaluation and Results

The model was evaluated on crime data from Chicago and Los Angeles, as well as benchmark traffic datasets (TaxiBJ and BikeNYC).

  • Crime Forecasting: In Los Angeles, the GSRNN achieved an average RMSE of 0.103, significantly outperforming "Single Node" LSTMs (0.174) and Joint Training approaches (0.120).
  • Traffic Benchmarking: Even on datasets traditionally modeled with grids, the graph-based approach proved superior. For Beijing traffic, it achieved an RMSE of 16.59, surpassing the previous state-of-the-art ST-ResNet (16.69).

The authors also introduced a "precision matrix" metric, which allows for a small temporal delay in predictions. This is particularly useful for practical applications like police patrolling, where knowing an event is imminent in a specific area is more valuable than a perfectly timed but spatially inaccurate prediction.

Conclusion and Future Work

By moving beyond "box-based" modeling, this framework respects the actual connectivity and statistical influence between city regions. While the current implementation uses static graphs, future work aims to develop dynamic graphs where inter-neighborhood influence can change based on the time of day or specific events. Additionally, increasing spatial resolution beyond zip codes could further refine the model's predictive power. This approach holds potential for broader applications, including quantitative finance and social network analysis.

Summary updated

Abstract

We present a generic framework for spatio-temporal (ST) data modeling, analysis, and forecasting, with a special focus on data that is sparse in both space and time. Our multi-scaled framework is a seamless coupling of two major components: a self-exciting point process that models the macroscale statistical behaviors of the ST data and a graph structured recurrent neural network (GSRNN) to discover the microscale patterns of the ST data on the inferred graph. This novel deep neural network (DNN) incorporates the real time interactions of the graph nodes to enable more accurate real time forecasting. The effectiveness of our method is demonstrated on both crime and traffic forecasting.
BibTeX
@misc{wang2018graph,
  author = {Bao Wang and Xiyang Luo and Fangbo Zhang and Baichuan Yuan and Andrea L. Bertozzi and P. Jeffrey Brantingham},
  title = {{Graph-Based Deep Modeling and Real Time Forecasting of Sparse Spatio-Temporal Data}},
  year = {2018},
  eprint = {1804.00684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.00684},
}
Figure