SPATIOTEMPORAL GRAPH CONVOLUTIONAL NEURAL NETWORKS FOR METRO FLOW PREDICTION

Shan Jin, Changfeng Jing, Yi Wang, X. Lv2022

TL;DR

This paper introduces STGCN-Metro, a novel deep learning model that uses Graph Neural Networks (GNNs) to accurately predict short-term passenger flow in metro networks. By combining Dilated Convolutional Neural Networks (DCNNs) for temporal patterns and Cluster-GCN for spatial relationships, STGCN-Metro significantly outperforms existing methods on real-world Shanghai metro data.

What Problem Does This Paper Address?

Accurately forecasting passenger flow in urban metro systems is crucial for efficient station management, passenger safety, and overall transportation system optimization. Traditional methods struggle with the inherent non-linearity and complexity of this data, failing to effectively capture the intricate spatiotemporal dependencies across the entire metro network. These dependencies arise from how passenger movements at one station influence others over time, a dynamic that is difficult to model with conventional approaches like statistical methods or standard neural networks that often treat spatial and temporal aspects separately or assume grid-like structures.

Methods

The core of STGCN-Metro lies in its novel "spatiotemporal convolutional block," which integrates two key components:

  • Dilated Convolutional Neural Network (DCNN) for Temporal Dependence: Instead of standard RNNs (like LSTM or GRU) which can be computationally intensive and struggle with long-term dependencies, the authors employ DCNNs. DCNNs use "dilation rates" to expand their receptive field without increasing the number of parameters or computational cost. This allows them to capture temporal patterns across larger time windows, effectively modeling how past passenger volumes influence future ones. Gated Linear Units (GLUs) are used within the DCNN to control information flow and preserve non-linear characteristics.
  • Cluster-Graph Convolutional Network (Cluster-GCN) for Spatial Dependence: Metro networks are inherently graph-like, with stations as nodes and lines as edges. Traditional Graph Convolutional Networks (GCNs) can be computationally expensive for large graphs. Cluster-GCN addresses this by first clustering the graph nodes into subgraphs. This allows for more efficient training and reduced memory usage, especially for large networks, while still effectively capturing the complex topological relationships and spatial dependencies between stations. The paper also incorporates station distances into the adjacency matrix weighting for a more nuanced spatial representation.

These two components are stacked into "spatiotemporal convolutional blocks," and the model uses two such blocks followed by a fully-connected output layer to predict future passenger flow.

Datasets

The study utilizes a real-world dataset from the Shanghai metro system. This dataset includes card-swiping records from April 1st to April 30th, 2015, covering 14 metro lines and 289 stations. Passenger flow is aggregated into 5-minute intervals, resulting in 204 time points per station per day. The data is split into an 80% training set and a 20% testing set.

Key Insights and Ideas

  • GNNs are a natural fit for metro networks: The paper strongly advocates for GNNs over grid-based CNNs for metro flow prediction because metro systems have inherent graph structures, not grid structures.
  • DCNNs offer an efficient temporal modeling alternative: By using dilated convolutions, the model can capture longer-term temporal dependencies more efficiently than traditional RNNs, which is crucial for understanding complex passenger flow patterns.
  • Cluster-GCN tackles scalability and efficiency: For large metro networks, Cluster-GCN's graph partitioning approach is key to making GNNs practical and computationally feasible while maintaining accuracy.
  • Spatiotemporal modeling is essential: The success of STGCN-Metro highlights that accurately predicting metro flow requires simultaneously considering both how passenger volumes change over time and how they are interconnected across different stations.
  • Peak hour prediction is improved: The model demonstrates a particular strength in predicting peak passenger flow times, which is vital for operational management.

Key Results

The STGCN-Metro model achieved the best performance across both inflow and outflow volume predictions, as measured by Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE). Specifically, it achieved the lowest MAE and RMSE values compared to six baseline models, including HA, LSTM, GRU, GCN, TGCN, and STGCN. For instance, STGCN-Metro achieved an MAE of 11.65 and RMSE of 21.23 for inflow, and MAE of 17.87 and RMSE of 34.73 for outflow, outperforming the next best model (STGCN) in both metrics. Visualizations of predictions for a crowded station (Xujiahui) on a weekday also show STGCN-Metro more accurately capturing the nuances of peak flow periods.

Limitations and Future Work

The authors acknowledge that while their model shows significant improvement, it can be further optimized. Future work suggested includes incorporating additional factors that influence passenger flow, such as urban structure, population density, and weather conditions, to achieve even more accurate predictions.

Summary updated

Abstract

Forecasting urban metro flow accurately plays an important role for station management and passenger safety. Owing to the limitations of non-linearity and complexity of traffic flow data, traditional methods cannot satisfy the requirements of effectively capturing spatiotemporal dependencies at the metro network level, which makes it difficult to demonstrate high performance. In this paper, a novel deep learning method is proposed based on Graph Neural Networks (GNN), named STGCN-Metro (SpatioTemporal Graph Convolutional Network based on Metro network), to forecast the short-term inflow and outflow volumes of metro passengers. The proposed model is composed of two spatiotemporal convolutional blocks, which is integrated with the Dilated Convolutional Neural Network (DCNN) and Cluster-Graph Convolutional Network (Cluster-GCN). The DCNN is employed with different dilation rates to capture temporal dependence in larger receptive field. In addition, compare with GCN, the Cluster-GCN is applied the graph clustering algorithms to reduce computational resources considering spatial heterogeneity. A real-world dataset collected in Shanghai metro stations is conducted for validation, and the results demonstrate that the proposed model achieves higher performance, outperforming some well-known baseline models.
BibTeX
@inproceedings{jin2022spatiotemporal,
  author = {Shan Jin and Changfeng Jing and Yi Wang and X. Lv},
  title = {{SPATIOTEMPORAL GRAPH CONVOLUTIONAL NEURAL NETWORKS FOR METRO FLOW PREDICTION}},
  booktitle = {˜The},
  year = {2022},
  doi = {10.5194/isprs-archives-xliii-b4-2022-403-2022},
}
Figure