Short-term origin-destination demand prediction in urban rail transit systems: A channel-wise attentive split-convolutional neural network method

Jinlei Zhang, Hongshu Che, Feng Chen, Wei Ma, Zhengbing He

Abstract

Short-term origin-destination (OD) flow prediction in urban rail transit (URT) plays a crucial role in smart and real-time URT operation and management. Different from other short-term traffic forecasting methods, the short-term OD flow prediction possesses three unique characteristics: (1) data availability: real-time OD flow is not available during the prediction; (2) data dimensionality: the dimension of the OD flow is much higher than the cardinality of transportation networks; (3) data sparsity: URT OD flow is spatiotemporally sparse. To address these, a channel-wise attentive split-convolutional neural network (CAS-CNN) is proposed. The model introduces an inflow/outflow-gated mechanism for data availability and a masked loss function for data sparsity. Tested on large-scale Beijing Subway datasets, CAS-CNN outperforms existing benchmarking methods.

The Challenge of OD Flow Prediction

Predicting Origin-Destination (OD) flow—knowing exactly where passengers are going, not just that they entered a station—is the "holy grail" of urban rail transit management. If operators know the OD demand, they can optimize train schedules and manage platform crowding. However, three major hurdles make this incredibly difficult:

  1. Data Availability: You don't know a passenger's destination until they actually exit. Real-time entry/exit counts are available, but the corresponding OD data is delayed.
  2. High Dimensionality: If a city has $n$ stations, there are $n^2$ possible OD pairs. For Beijing’s 404 stations, that’s over 163,000 variables to predict every 30 minutes.
  3. Extreme Sparsity: Most station pairs have zero or near-zero passengers at any given time (e.g., travel from downtown to suburbs during the morning rush). This "noise" makes it hard for standard models to learn meaningful patterns.
Visualizing the complex network of subway stations and the resulting high-dimensional OD flows.

Methodology: The CAS-CNN Model

The researchers developed the Channel-wise Attentive Split-Convolutional Neural Network (CAS-CNN) to handle these specific quirks of subway data:

  • Split CNN: The model uses two parallel convolutional paths with different kernel sizes (3x3 and 5x5) to capture both local station interactions and broader regional travel patterns simultaneously.
  • Inflow/Outflow-Gated Mechanism: Since real-time OD flows are unavailable, the model uses real-time entry and exit counts as a "gate." This gate weights and adjusts historical OD patterns to reflect current conditions.
  • Channel-wise Attention: This mechanism scores different data channels, forcing the model to focus on the most relevant spatiotemporal features for a given time interval.
  • Masked Loss Function: To solve the sparsity problem, the authors introduced a loss function that ignores OD pairs with very low historical volume. By "masking" these pairs, the model focuses on high-volume routes that impact transit operations.
Table showing the distribution of OD flow volumes, highlighting the extreme sparsity of the data.

Experimental Validation

The model was validated using two massive datasets from the Beijing Subway:

  • MetroBJ2016: 276 stations, 130 million records over 5 weeks.
  • MetroBJ2018: 308 stations, 110 million records over 5 weeks.

Key Results

  • Superior Accuracy: CAS-CNN achieved the lowest Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) across both datasets compared to benchmarks like ConvLSTM and ST-ResNet.
  • Quantifiable Gains: On the MetroBJ2018 dataset, the full model improved RMSE by approximately 1.9% to 3.1% compared to versions where specific components (like the Split CNN or Gated Mechanism) were removed.
  • Appropriate Complexity: One striking finding was that highly complex models like TrajGRU performed the worst. In the sparse, high-dimensional world of subway OD flow, an architecture tailored to the data's structure beats generic complexity.

Conclusion

The CAS-CNN model represents a significant step forward in short-term OD flow prediction. By treating low-volume pairs as noise and using real-time inflow as a proxy for current demand, the model provides a stable and accurate foundation for real-time transit management. Future work will look to incorporate external factors like weather and social events to better predict demand during anomalies.

Summary updated

Abstract

Short-term origin-destination (OD) flow prediction in urban rail transit (URT) plays a crucial role in smart and real-time URT operation and management. Different from other short-term traffic forecasting methods, the short-term OD flow prediction possesses three unique characteristics: (1) data availability: real-time OD flow is not available during the prediction; (2) data dimensionality: the dimension of the OD flow is much higher than the cardinality of transportation networks; (3) data sparsity: URT OD flow is spatiotemporally sparse. There is a great need to develop novel OD flow forecasting method that explicitly considers the unique characteristics of the URT system. To this end, a channel-wise attentive split-convolutional neural network (CAS-CNN) is proposed. The proposed model consists of many novel components such as the channel-wise attention mechanism and split CNN. In particular, an inflow/outflow-gated mechanism is innovatively introduced to address the data availability issue. We further originally propose a masked loss function to solve the data dimensionality and data sparsity issues. The model interpretability is also discussed in detail. The CAS-CNN model is tested on two large-scale real-world datasets from Beijing Subway, and it outperforms the rest of benchmarking methods. The proposed model contributes to the development of short-term OD flow prediction, and it also lays the foundations of real-time URT operation and management.
BibTeX
@inproceedings{zhang2021short,
  author = {Jinlei Zhang and Hongshu Che and Feng Chen and Wei Ma and Zhengbing He},
  title = {{Short-term origin-destination demand prediction in urban rail transit systems: A channel-wise attentive split-convolutional neural network method}},
  booktitle = {Transportation},
  year = {2021},
  doi = {10.1016/j.trc.2020.102928},
}
Figure