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

This paper presents a multiscale framework for forecasting spatio-temporal (ST) data, specifically targeting scenarios where data is extremely sparse in both space and time—such as hourly crime rates at the zip-code level.

TL;DR

The authors combine statistical macroscale modeling (Multivariate Hawkes Processes) with deep microscale modeling (Graph-Structured Recurrent Neural Networks) to forecast sparse spatio-temporal events. By representing irregular city geography as a graph rather than a grid and using a novel data augmentation scheme, their approach significantly outperforms traditional grid-based deep learning models in both crime and traffic forecasting.

What Problem Does This Paper Address?

Predicting events like crime or traffic flow is a classic spatio-temporal forecasting problem. However, two major hurdles often trip up standard deep learning approaches:

  1. Irregular Geometry: Cities aren't perfect rectangles. Mapping a city to a rectangular grid (as required by standard Convolutional Neural Networks) introduces massive redundancy and ignores the actual underlying connectivity (e.g., road networks or zip code boundaries).
  2. Extreme Sparsity: At fine scales (like hourly zip-code data), most "cells" in a grid contain zeros. Standard CNNs often fail to learn anything from such sparse data, as weight sharing can lead to all-zero weights.

The authors aim to create a framework that is flexible enough to handle irregular spatial domains and robust enough to learn from sparse, noisy signals.

Methods

The framework, summarized in the flowchart below, seamlessly couples two components:

Figure 1: Flow chart of the algorithm.
  • Macroscale Modeling (STWG): The authors use a Multivariate Hawkes Process (MHP) to infer a Spatio-Temporal Weighted Graph (STWG). In this graph, nodes represent geographic regions (like zip codes). The edges and their weights are determined by the "excitation" rates between regions—essentially modeling how an event in one area increases the likelihood of future events there or in neighboring areas. They apply $L_1$ regularization to ensure the resulting graph is sparse and computationally efficient.
  • Microscale Modeling (GSRNN): On top of this inferred graph, they build a Graph-Structured Recurrent Neural Network (GSRNN). Unlike a standard RNN, this architecture assigns LSTMs to both nodes and edges. Edge LSTMs capture interactions between neighbors, and their outputs are combined using a weighted sum pooling based on the weights learned from the Hawkes process.
  • Data Augmentation: To help the DNN learn from sparse data, they transform raw hourly counts into a diurnal cumulative function. This regularizes the signal, making it continuous and easier for the network to approximate. They further "super-resolve" this cumulative data via linear interpolation to provide more training samples without leaking future information.

Datasets

The model was evaluated on two distinct types of ST data:

  • Crime Data: Hourly crime records from Chicago (CHI) and Los Angeles (LA), mapped to zip code regions. This data is highly irregular and sparse.
  • Traffic Data: Two benchmark datasets: TaxiBJ (taxi records in Beijing) and BikeNYC (bicycle rentals in New York City). These are traditionally represented on rectangular grids.

Key Insights and Ideas

  • Graphs over Grids: Moving from a grid-based representation to a graph-based one allows the model to naturally handle the irregular shapes of urban environments and focus only on areas where data actually exists, mitigating the sparsity problem.
  • Hybrid Modeling: Using a traditional statistical model (Hawkes Process) to define the structure and connectivity for a modern deep learning model (GSRNN) leverages the strengths of both: the interpretability of point processes and the predictive power of LSTMs.
  • Learning from Periodicity: As shown in the spectrum analysis below, even noisy crime data has clear diurnal (daily) cycles. The authors' cumulative data augmentation trick effectively "smooths" the sparsity while preserving these critical periodic signals.
Figure 3: Spectrum of the time series, showing clear diurnal periodicity.

Key Results

The GSRNN framework demonstrated significant improvements over baselines like ARIMA, KNN, and even state-of-the-art models like STResNet.

  • Crime Forecasting: In Los Angeles, the GSRNN achieved an average RMSE of 0.131 (on raw counts), compared to 0.185 for a single-node LSTM approach. The authors also introduced a "precision matrix" metric that allows for small time delays in prediction, confirming that their model is much more practical for real-world police resource allocation.
  • Traffic Forecasting: Even on grid-based traffic data where CNNs usually excel, the GSRNN outperformed the competition. On the Beijing dataset, GSRNN achieved an RMSE of 16.59, edging out STResNet's 16.69. On the NY dataset, it achieved 6.08 vs. STResNet's 6.33.

Limitations and Future Work

  • Static Graphs: The current model assumes a static graph structure. In reality, the mutual influence between city regions might change over time (e.g., due to new infrastructure or seasonal shifts). The authors suggest exploring dynamic graphs in future work.
  • Spatial Representation: While the graph approach is superior for crime, the authors note that even better spatial representations could be explored for the traffic forecasting problem.
  • Broader Applications: The framework is generic and could potentially be applied to other sparse ST fields, such as quantitative finance or 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},
}

Loading related content...

Figure