STG2Seq: Spatial-Temporal Graph to Sequence Model for Multi-step Passenger Demand Forecasting

Lei Bai, Lina Yao, Salil S. Kanhere, Xianzhi Wang, Quan Z. Sheng

TL;DR

STG2Seq is a novel deep learning framework that treats citywide passenger demand as a graph rather than a rigid grid, allowing it to capture complex, non-Euclidean spatial relationships. By replacing traditional recurrent units with a hierarchical graph convolutional structure and a dual-encoder strategy, the model significantly reduces error accumulation in multi-step forecasting.

What Problem Does This Paper Address?

Predicting passenger demand for ride-sharing services (like Uber or Didi) is notoriously difficult because demand is both spatial (what happens in one neighborhood affects another) and temporal (past trends dictate future needs).

Existing models usually fall into two traps:

  1. The Grid Trap: Many use Convolutional Neural Networks (CNNs) which assume the city is a perfect grid. This fails to account for "non-Euclidean" correlations—for example, two distant shopping districts might have very similar demand patterns, even if they aren't geographically close.
  2. The RNN Bottleneck: Models using Recurrent Neural Networks (RNNs) for multi-step prediction often suffer from "information oblivion" (forgetting long-term patterns) and "error accumulation," where a small mistake in predicting the next 15 minutes snowballs into a massive error for the next hour.

Methods

The authors introduce STG2Seq (Spatial-temporal Graph to Sequence), which moves away from grids and standard recurrence.

The STG2Seq architecture featuring dual encoders (Long-term and Short-term) and gated graph convolutional modules (GGCM).

Key components include:

  • Graph Formulation: Instead of a grid, the city is modeled as a graph where nodes are regions. Edges are drawn between regions based on the similarity of their demand patterns (using Pearson Correlation) rather than just physical proximity.
  • Gated Graph Convolutional Module (GGCM): This is the "engine" of the model. It applies Graph Convolutional Networks (GCNs) across temporal windows. By stacking these, the model builds a hierarchy that captures spatial and temporal features simultaneously without needing an RNN.
  • Dual-Encoder Architecture:
    • A Long-term Encoder processes a wide window of historical data to find deep patterns.
  • A Short-term Encoder focuses on the most recent time steps to capture immediate trends.
  • Attention-based Output: The model uses both temporal attention and channel attention to produce the final forecast.

Key Results

STG2Seq consistently outperformed 11 baseline methods (including state-of-the-art models like STGCN and DCRNN) across three large-scale datasets: DidiSY, BikeNYC, and TaxiBJ.

Comparison of MAE across 3-step predictions on the BikeNYC dataset, demonstrating STG2Seq's stability in long-range forecasting.
  • Accuracy: On the TaxiBJ dataset, STG2Seq improved RMSE by approximately 2.3% and MAE by 3.6% over the best existing baselines.
  • Multi-step Stability: While traditional models like ConvLSTM saw their error rates spike as they predicted further into the future, STG2Seq’s error rate grew much more slowly, proving it is far more robust for long-range forecasting.
  • Flexibility: Because the model is graph-based, it works perfectly on "irregular regions" (neighborhoods defined by actual road networks) where grid-based CNNs cannot be applied.

Key Insights and Ideas

  • Similarity Trumps Proximity: By using a graph based on demand similarity, the model captures "hidden" urban connections between distant but functionally similar areas.
  • Parallelism over Recurrence: By using a hierarchical GCN structure instead of an RNN, the model can "see" the entire sequence more effectively, preventing the "forgetting" problem.
  • Mitigating Error Propagation: STG2Seq’s dual-encoder setup allows the long-term encoder to act as a "stabilizer," anchoring the prediction in historical reality while the short-term encoder handles immediate fluctuations.

Summary updated

BibTeX
@inproceedings{bai2019stg,
  author = {Lei Bai and Lina Yao and Salil S. Kanhere and Xianzhi Wang and Quan Z. Sheng},
  title = {{STG2Seq: Spatial-Temporal Graph to Sequence Model for Multi-step Passenger Demand Forecasting}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/274},
}
Figure