GSTNet: Global Spatial-Temporal Network for Traffic Flow Prediction

Shen Fang, Qi Zhang, Gaofeng Meng, Shiming Xiang, Chunhong Pan

Introduction

Traffic flow prediction is a cornerstone of intelligent transportation systems, yet it remains notoriously difficult due to complex, dynamic dependencies across both time and space. Traditional models often struggle with two major gaps: capturing multi-scale temporal periodicities (short-term vs. long-term) and modeling non-local spatial correlations.

Beijing subway network and traffic flow on five nodes illustrating non-local correlations.

As illustrated in the figure above, nodes A, B, and E exhibit nearly identical traffic patterns despite being physically separated, while adjacent nodes like C and D may behave quite differently. This highlights the "non-local" advantage: physical proximity is not the only factor in traffic behavior.

The GSTNet Architecture

To address these limitations, the authors propose GSTNet (Global Spatial-Temporal Network). The architecture is built around stacked spatial-temporal blocks designed to capture global relationships and multi-resolution temporal features simultaneously.

The GSTNet model architecture, detailing the Multi-Resolution Temporal and Global Correlated Spatial modules.

Multi-Resolution Temporal Module

Instead of relying on Recurrent Neural Networks (RNNs), which can be slow and limited in their receptive fields, GSTNet uses dilated causal convolutions. By increasing the dilation rate in higher layers, the model can "see" much further back in time without a massive increase in parameters. This allows it to capture both immediate fluctuations and long-term cycles, such as the morning rush hour from the previous day.

Global Correlated Spatial Module

This module handles the spatial dimension through two distinct mechanisms:

  1. Localized Graph Convolution: Uses Chebyshev polynomials to capture immediate neighbors and direct network connections.
  2. Non-local Correlated Mechanism: Employs an attention-like function to calculate the similarity between any two nodes in the network, regardless of their physical distance. This is the "secret sauce" that allows GSTNet to learn the global relationships seen in complex subway or taxi networks.

Experimental Evaluation

The model was evaluated on four real-world datasets: Beijing Subway (278 nodes), Beijing Bus (24 nodes), Beijing Taxi (198 intersections), and the public PeMS-BAY benchmark for traffic speed prediction.

Key Results

GSTNet consistently outperformed baselines like LSTMs, Stacked Auto-Encoders (SAE), and existing Graph Convolutional Networks (STGCN, ChebNet):

  • Accuracy: On the Subway dataset, GSTNet achieved a Mean Absolute Error (MAE) of 23.19, significantly lower than LSTM (26.93) and ChebNet (28.19).
  • Generalization: On the PeMS-BAY dataset, GSTNet achieved an MAE of 1.94, setting a new state-of-the-art for the benchmark.
  • Efficiency: By utilizing a fully convolutional temporal architecture, GSTNet is significantly faster than RNN-based models. On the Subway dataset, it required only ~1.42 minutes to train per epoch, compared to ~6.76 minutes for an LSTM.

Conclusion and Future Work

GSTNet demonstrates that integrating non-local spatial mechanisms with multi-resolution temporal convolutions provides a more robust framework for urban traffic forecasting. While the model excels at next-step prediction, future research will focus on extending these capabilities to multi-step forecasting and integrating dynamic external factors such as weather, holidays, and road closures.

Summary updated

BibTeX
@inproceedings{fang2019gstnet,
  author = {Shen Fang and Qi Zhang and Gaofeng Meng and Shiming Xiang and Chunhong Pan},
  title = {{GSTNet: Global Spatial-Temporal Network for Traffic Flow Prediction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/317},
}
Figure