Abstract
Accurate prediction of metro Origin-Destination (OD) flow is essential for the development of intelligent transportation systems and effective urban traffic management. Existing approaches typically either predict passenger outflow of departure stations or inflow of destination stations. However, we argue that travelers generally have clearly defined departure and arrival stations, making these OD pairs inherently interconnected. Consequently, considering OD pairs as a unified entity more accurately reflects actual metro travel patterns and allows for analyzing potential spatio-temporal correlations between different OD pairs. To address these challenges, we propose a novel and effective urban metro OD flow prediction method (UMOD), comprising three core modules: a data embedding module, a temporal relation module, and a spatial relation module. The data embedding module projects raw OD pair inputs into hidden space representations, which are subsequently processed by the temporal and spatial relation modules to capture both inter-pair and intra-pair spatio-temporal dependencies. Experimental results on two real-world urban metro OD flow datasets demonstrate that adopting the OD pairs perspective is critical for accurate metro OD flow prediction. Our method outperforms existing approaches, delivering superior predictive performance.
Introduction: Shifting to an OD-Pair Perspective
Most metro flow prediction models focus on station-level metrics: "Inflow" (passengers entering a station) or "Outflow" (passengers exiting). While useful for local station management, this approach ignores the fundamental reality of transit: every passenger leaving Station A is destined for a specific Station B. Traditional station-based views fail to capture the inherent coupling between origins and destinations. For instance, a major event near Station B doesn't just affect Station B’s inflow; it specifically impacts the flow of all OD pairs ending at B.
UMOD (Urban Metro OD) shifts the forecasting paradigm from a station-centric view to an Origin-Destination (OD) pair perspective. By treating each trip as a unified entity, the model can capture complex spatio-temporal dependencies that station-level aggregates miss, providing a more granular "bird’s-eye view" of urban movement.
Methodology
The UMOD architecture is designed to handle the high-dimensional nature of OD data through three specialized modules:
- Data Embedding Module: This module projects raw OD flow into a latent space. It combines standard input embeddings with a "Spatio-Temporal Adaptive Embedding" that learns hidden patterns not explicitly defined by the physical metro map, discovering "virtual" relationships between stations.
- Temporal Relation Module: To capture intra-pair dependencies—how the flow of a specific A-to-B trip evolves over time—UMOD employs a Transformer-based self-attention mechanism. This allows the model to dynamically weigh historical time steps based on their relevance to future flow.
- Spatial Relation Module: Interestingly, rather than using complex Graph Neural Networks (GNNs), the authors found that a two-layer Multi-Layer Perceptron (MLP) was highly effective at capturing inter-pair dependencies (how the flow of one OD pair relates to another). This design choice maintains high performance while ensuring computational efficiency.
Experimental Evaluation
The model was evaluated on two large-scale, real-world datasets from major Chinese cities:
- Shenzhen Metro (SZ_OD): Six months of data (Aug 2019 – Jan 2020) covering 172 stations with 30-minute granularity.
- Chongqing Metro (CQ_OD): Five months of data (Jan 2019 – May 2019) covering 170 stations.
UMOD was benchmarked against seven baselines, including classic models like GEML and recent multivariate time-series architectures like TimeMixer and SOFTS. On the Shenzhen dataset, UMOD improved the Mean Absolute Percentage Error (MAPE) by 3.55% over the next best model. The improvement was even more significant on the Chongqing dataset, achieving an 18.34% reduction in MAPE compared to the second-best performer (STID).
Key Insights and Discussion
- The "Pair View" Advantage: Treating the OD pair as an inseparable unit provides a much richer feature set than station-level totals, naturally encoding the "where-to-where" logic of urban travel.
- The Historical Window Paradox: Research indicated that longer historical windows (e.g., 6 hours) do not always improve accuracy. In some scenarios, a shorter 2-hour window performed better, suggesting that excessive history can introduce noise into short-term forecasts.
- Clustered Travel Behavior: Visualization of spatial embeddings confirmed that OD pairs reflect regular, group-oriented travel needs. Most OD pairs cluster in the latent space, representing regular commuters, while outliers represent random or low-frequency travel patterns.
Conclusion and Future Work
UMOD demonstrates that an OD-pair perspective is critical for accurate metro flow prediction. While highly effective, the authors note that determining the optimal historical time step remains an open question that varies by dataset. Future work will focus on integrating external factors like weather and holidays, as well as exploring the few-shot learning capabilities of Large Language Models (LLMs) to assist in traffic prediction for cities with limited data.
Summary updated