Robust spatio-temporal demand prediction for bike-sharing systems with dynamic hierarchical structure

Yixuan Zhao, Bowen Du, Man Luo, Hongkai WenCCF Trans. Pervasive Comput. Interact 2025

Abstract

Accurate demand prediction is essential for the efficiency of urban bike-sharing systems. However, existing models often struggle with spatial and temporal heterogeneity—the fact that demand patterns vary significantly across different locations and times of day. This paper introduces the Robust Spatio-Temporal Demand Prediction (RST) model, a novel framework that integrates multi-source data and employs a dynamic hierarchical structure. By classifying stations based on traffic irregularity and applying a selective retraining layer for hard-to-predict outliers, the RST model achieves superior accuracy and robustness. Evaluations on real-world datasets from New York City and Beijing demonstrate that RST significantly outperforms current state-of-the-art methods.

The Challenge of Urban Heterogeneity

Predicting bike-sharing demand is a complex task because urban environments are inherently heterogeneous. A "one-size-fits-all" modeling approach often fails because it ignores the distinct behaviors of different urban zones. For instance, a bike station located in a residential neighborhood typically sees high morning departures and evening arrivals, whereas a station near a major transportation hub or commercial center exhibits the opposite pattern.

Furthermore, temporal patterns are not static; demand can fluctuate wildly due to weather changes, local events, or traffic irregularities. Traditional models that use uniform parameters across all time periods and locations cannot capture these skewed distributions, leading to operational challenges like station "stockouts" or overflows.

Spatial and temporal demand heterogeneity across different urban area types: (a) shows the distribution of daily average demand, while (b) illustrates the varying demand patterns over a 24-hour cycle for commercial, residential, and transportation areas.

The RST Model: A Multi-Layered Approach

To address these challenges, the researchers developed the RST model, which utilizes a sophisticated two-step pipeline designed for robustness and adaptability.

1. Multi-Source Feature Integration and Classification

The model begins with the FeatureVec module, which goes beyond historical usage counts by integrating data from Points of Interest (POIs), road networks, and meteorological conditions (temperature, wind, visibility). An Intelligent Variable Data Classifier then groups stations based on their traffic irregularity. This classification allows the model to prioritize high-relevance spatial correlations while filtering out "noise" from unrelated stations.

2. Dynamic Hierarchical Structure

The core innovation of RST is its two-layered hierarchical architecture. The first layer performs general spatio-temporal modeling using Graph Convolutional Networks (GCNs) to capture spatial dependencies and Temporal Convolutional Networks (TCNs) for time-series patterns.

The second layer introduces Selective Retraining. If the initial prediction for a specific station exceeds a predefined error threshold (e.g., an RMSE over 30%), this layer is activated. It pulls additional historical data from stations with similar spatial or temporal profiles to refine the prediction for that specific outlier. This targeted approach ensures that the model remains accurate even for "outlier" stations that deviate from the city-wide norm.

3. Self-Supervised Learning

To further enhance robustness, the model incorporates a self-supervised contrastive loss mechanism. By comparing different "views" of the data across various time steps, the model learns to distinguish between underlying demand trends and random anomalies or noise.

Experimental Validation

The RST model was rigorously tested using two large-scale datasets:

  • NYC-Bike (Citi-Bike): Data from early 2018, encompassing 976 stations, 1.56 million records, and over 6,000 POI entries.
  • BJ-Bike: A public dataset representing bike-sharing demand in Beijing.

The data was split into training (60%), validation (20%), and testing (20%) sets, with the model predicting demand in 30-minute intervals.

Key Results

The RST model consistently outperformed established baselines, including GMAN, STGCN, and traditional machine learning methods.

  • Superior Accuracy: On the NYC dataset, RST achieved an RMSE of 1.4328 and an MAE of 0.8307, setting a new benchmark for the field.
  • Regional Gains: The model was particularly effective in residential areas, where it reduced the Mean Absolute Percentage Error (MAPE) from 21.73% to 19.96%.
  • Weather Resilience: By integrating meteorological features, the model maintained high accuracy during adverse weather conditions (high winds or rain) that typically degrade the performance of simpler models.

Insights and Future Directions

Ablation studies revealed that modeling spatial heterogeneity is more critical for accuracy than temporal modeling alone. This highlights the importance of understanding the "character" of a station's surroundings (POIs and road networks). Additionally, the model demonstrated strong cross-borough generalization, performing well in Brooklyn and Queens even when trained primarily on Manhattan data.

While the RST model represents a significant step forward, future work could incorporate more dynamic urban data, such as real-time event feeds. Expanding the framework to "dockless" bike-sharing and e-scooter systems would also demonstrate its broader utility in the evolving landscape of shared mobility.

Summary updated

Abstract

Bike-sharing systems have gained popularity as a solution for short-distance urban travel, highlighting the need for precise demand prediction. Most existing methods predict bike-sharing demand across all regions without adequately accounting for spatial heterogeneity, meaning they overlook that different regions may have distinct and skewed demand distributions. Moreover, these models frequently miss the temporal heterogeneity introduced by varying demand patterns, as they tend to model temporal correlations with a uniform parameter set across all time periods, failing to account for the dynamic fluctuations in demand over time. To address these shortcomings, we introduce a novel Robust Spatio-Temporal Demand Prediction (RST) model that enhances bike-sharing demand prediction. The proposed approach employs a convolutional spatio-temporal graph, which integrates the features from multiple sources, including Points of Interest (POIs), road networks, and weather. Upon that, it proposes a scheme to classify the stations based on their traffic irregularity. The proposed scheme captures the traffic dependencies between stations by generating an embedding sequence from the historical data and ignoring correlations to the low-relevant stations, ensuring accurate predictions. Furthermore, the model introduces a dynamic hierarchical structure, where an additional retraining layer is activated only for stations with underperforming predictions, leveraging data from similar stations to refine and improve accuracy. This two-layered hierarchical structure ensures robustness and adaptability in complex scenarios such as different weather conditions or events. Our methodology sets a new standard in demand prediction for bike-sharing, demonstrating significant improvements in prediction accuracy on real-world datasets from New York City’s Citi-Bike and Beijing’s BJ-Bike. The results validate our model’s superior performance, offering a scalable and effective strategy for enhancing urban mobility.
BibTeX
@article{zhao2025robust,
  author = {Yixuan Zhao and Bowen Du and Man Luo and Hongkai Wen},
  title = {{Robust spatio-temporal demand prediction for bike-sharing systems with dynamic hierarchical structure}},
  journal = {CCF Trans. Pervasive Comput. Interact.},
  year = {2025},
  url = {https://openreview.net/forum?id=paJOO1uZ4F},
}
Figure