Dynamic Graph Representation Learning for Passenger Behavior Prediction

Mingxuan Xie, Tao Zou, Junchen Ye, Bowen Du, Runhe Huang

TL;DR

This paper introduces DyGPP, a novel dynamic graph representation learning framework for predicting passenger behavior in urban transit systems. By modeling passengers and stations as nodes in a dynamic graph and capturing their evolving interactions, DyGPP significantly outperforms existing methods in predicting future passenger movements, crucial for smart city planning and risk management.

What Problem Does This Paper Address?

Predicting passenger behavior, specifically their future boarding and alighting at subway stations, is vital for efficient urban transportation planning and safety. Current approaches often rely on statistical methods or sequential models that analyze individual passenger histories. However, these methods fail to capture the complex, evolving relationships between passengers and stations, as well as the continuous growth of travel data. This oversight limits their ability to accurately predict behavior, especially considering both long-term travel habits and short-term behavioral changes influenced by various factors. The paper aims to bridge this gap by developing a model that can effectively learn from dynamic, interconnected passenger-station data.

Methods

The core of DyGPP lies in its use of dynamic graphs to represent passenger-station interactions. Here's a breakdown of their approach:

  • Dynamic Graph Formalization: Passengers and stations are treated as heterogeneous nodes in a dynamic graph. Interactions (boarding/alighting) are represented as timestamped edges. This allows the model to capture the evolving nature of travel patterns over time.
  • Temporal Sequence Construction: For each passenger and station, historical interaction sequences are sampled. This involves identifying "first-hop neighbors" (previous stations for a passenger, or previous passengers for a station) within a fixed time window.
  • Feature Encoding:
    • Interaction Encoder: Boarding and alighting events are encoded as edge features.
  • Time Encoder: Temporal information (time intervals between interactions) is encoded using a cosine function to capture periodicity.
  • Temporal Pattern Encoding: This is a key innovation. Instead of processing passenger and station sequences independently, DyGPP calculates co-occurrence features to capture the correlation between their historical interaction patterns. This module considers both individual temporal patterns and their interdependencies.
  • Feature Fusion: All extracted features (interaction, time, co-occurrence, and inherent node attributes) are fused using a projection layer to create a unified node embedding.
  • Dynamic Representation Learning: A stacked MLP (Multi-Layer Perceptron) block with dropout is used to aggregate these fused features and learn dynamic representations for passengers and stations over time.
  • Future Behavior Prediction: The learned dynamic representations are fed into a fully connected network to predict the probability of a future link (interaction) between a passenger and a station.
  • Time-Based Batching: To handle the continuous flow of data and ensure temporal consistency, batches are partitioned based on time intervals rather than just the number of nodes.

Datasets

The experiments were conducted on two real-world datasets collected from the Beijing subway system. These datasets contain passenger entry and exit data for the period from June 1, 2017, to September 9, 2017.

  • BJSubway-40K: Contains data for 459 passengers, 392 stations, and 44,852 interactions.
  • BJSubway-1M: Contains data for 7491 passengers, 392 stations, and 958,076 interactions.

The paper does not introduce new benchmark datasets.

Key Insights and Ideas

  • The Power of Dynamic Graphs: The paper strongly advocates for dynamic graph representations over traditional sequential models for passenger behavior prediction. This approach effectively captures the interconnectedness and evolving nature of passenger-station relationships.
  • Co-occurrence is Crucial: The novel temporal pattern encoding module that explicitly models the co-occurrence of passenger and station interactions is a significant contributor to the model's performance. It highlights that understanding how passenger and station histories correlate is more informative than analyzing them in isolation.
  • Time Matters, Periodically: The time encoder effectively leverages the periodic nature of travel behavior, which is often overlooked by models that only consider the sequence of events.
  • Unified Representation: Fusing various feature types (interaction, time, co-occurrence, node attributes) into a single representation allows the model to learn a more comprehensive understanding of passenger and station states.

Key Results

DyGPP demonstrated superior performance across both datasets:

  • BJSubway-40K: Achieved an Average Precision (AP) of 0.9699 ± 0.0008 and an Area Under the Curve (AUC) of 0.9591 ± 0.0015.
  • BJSubway-1M: Achieved an AP of 0.9697 ± 0.0002 and an AUC of 0.9647 ± 0.0002.

These results were consistently higher than all seven baseline models, including statistical methods (TOP, Personal TOP), sequential models (LSTM, GRU), and other graph-based methods (TGAT, TGN, GraphMixer). The ablation study also confirmed the significant contribution of each component, particularly the temporal information and co-occurrence modules.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Station Feature Extraction: The current model treats stations as independent nodes. Future work could improve station representation by considering second-order neighbors (other stations) to capture logical similarities.
  • Spatial-Temporal Integration: Integrating spatial location information (geographical coordinates) and public transportation routes could further enhance station feature representation and improve prediction accuracy.
  • Limited Interaction Data: For stations with a short history of interactions, the co-occurrence module might be less effective due to insufficient passenger information.
  • Inductive Testing: The paper mentions an inductive sampling method where station nodes are hidden during training. This is a good step towards generalization, but further exploration of inductive capabilities could be beneficial.

Summary updated

BibTeX
@inproceedings{xie2024dynamic,
  author = {Mingxuan Xie and Tao Zou and Junchen Ye and Bowen Du and Runhe Huang},
  title = {{Dynamic Graph Representation Learning for Passenger Behavior Prediction}},
  booktitle = {Future},
  year = {2024},
  doi = {10.3390/fi16080295},
}
Figure