Pedestrian Volume Prediction Using a Diffusion Convolutional Gated Recurrent Unit Model

Yiwei Dong, Tingjin Chu, Lele Zhang, Hadi Ghaderi, Hanfang YangarXiv 2024 · DOI

Overview

Researchers have introduced DCGRU-DTW, a sophisticated deep learning model designed to forecast pedestrian volumes. By integrating graph neural networks with Dynamic Time Warping (DTW), the model moves beyond simple geographic proximity to capture the functional "rhythm" of urban foot traffic. This approach significantly outperforms standard forecasting methods, providing critical insights for urban planning and public safety.

The Challenge of Urban Pedestrian Dynamics

Predicting pedestrian flow is significantly more complex than forecasting vehicular traffic. Unlike cars, which are restricted by road networks and traffic signals, pedestrians move with high degrees of freedom. Traditional spatial forecasting models often rely on Euclidean distance, assuming that sensors located near each other will exhibit similar patterns.

However, in dense urban environments like Melbourne, geographic proximity does not always imply functional similarity. A sensor near a transit hub and one near a quiet park may be physically close but have vastly different traffic signatures. Conversely, two distant retail districts might share nearly identical temporal patterns. This "proximity gap" necessitates a model that can recognize functional relationships across the city.

Methodology: Integrating Diffusion Convolution and DTW

The core of the proposed system is the Diffusion Convolutional Gated Recurrent Unit (DCGRU). This architecture effectively handles spatio-temporal data by using diffusion convolution to model how traffic "spreads" through a network and GRUs to capture temporal dependencies.

Internal architecture of the DCGRU cell showing the integration of reset and update gates with diffusion convolution.

The Hybrid Adjacency Matrix

The primary innovation lies in the construction of the adjacency matrix ($W$), which defines the relationships between sensors. Instead of relying solely on geographic distance ($W_{geo}$), the authors introduce a similarity score based on Dynamic Time Warping (DTW) ($W_{ts}$): $$W = W_{geo} + \beta W_{ts}$$

DTW is a robust algorithm for measuring similarity between sequences that may vary in speed or timing. By incorporating $W_{ts}$, the model learns that sensors are "connected" if their historical patterns match, regardless of their physical distance. This allows the model to account for sensors that share the same "rush hour" peaks even if they occur at slightly different times.

Sequence-to-Sequence Framework

The model is implemented within a Sequence-to-Sequence (Seq2Seq) framework. It utilizes an encoder to process historical data and a decoder to generate future predictions. To enhance stability during long-term forecasting, the authors employed scheduled sampling, which helps prevent small initial errors from compounding as the prediction horizon expands.

The complete Seq2Seq framework, illustrating the interaction between the DCGRU Encoder, Decoder, and the hybrid adjacency matrices.

Data and Preprocessing

The study utilized real-world data from the City of Melbourne’s pedestrian counting system, spanning April to December 2019. To ensure the model learned "normal" urban behavior, the researchers applied an anomaly detection algorithm based on k-medoids clustering to remove atypical weeks (e.g., holidays or extreme weather events).

A key finding during the experimental phase was the importance of input length. Increasing the historical look-back period from 5 hours to a full week (168 hours) significantly improved the model's ability to capture weekly periodicity, allowing the GRU to recognize that Monday mornings typically resemble other Monday mornings.

Key Results and Performance

The DCGRU-DTW model was benchmarked against standard methods, including Vector Autoregression (VAR) and the original DCGRU, across a 1-to-5-hour prediction horizon.

  • Superior Accuracy: DCGRU-DTW consistently outperformed all baselines. For 1-hour ahead predictions, it achieved a 1.3% improvement in Mean Absolute Percentage Error (MAPE) over the standard DCGRU.
  • Long-term Stability: The benefits of the DTW-enhanced matrix became more pronounced as the prediction horizon extended. At the 5-hour mark, the model maintained a MAPE 3-4% lower than the baseline DCGRU.
  • Pattern Recognition: Qualitative analysis showed that the model accurately tracked sudden spikes and oscillations in foot traffic, which simpler models often failed to capture.

Conclusion and Future Directions

The DCGRU-DTW model demonstrates that functional similarity is a powerful predictor in urban planning. By allowing the time axis to "stretch" via DTW, the model captures the true dynamics of city life. Future work will focus on integrating real-time data streams and external factors such as weather and major event schedules to further refine prediction accuracy.

Summary updated

BibTeX
@misc{dong2024pedestrian,
  author = {Yiwei Dong and Tingjin Chu and Lele Zhang and Hadi Ghaderi and Hanfang Yang},
  title = {{Pedestrian Volume Prediction Using a Diffusion Convolutional Gated Recurrent Unit Model}},
  year = {2024},
  eprint = {2411.03360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.03360},
}
Figure