Research Article

Ablation Study of Spatiotemporal Features and Bidirectional LSTM in Bicycle Demand Forecasting

Tianhe Yang*
Beijing University of Chemical Technology

* Corresponding author: [email protected]

Abstract

The penetration rate of shared bikes in urban transportation continues to rise, yet scheduling challenges caused by temporal and spatial supply-demand mismatch hinder industry development. Accurate demand forecasting is key to optimizing operational strategies and improving service efficiency, with significant research value. This paper focuses on bike-sharing demand forecasting, proposing an enhanced spatio-temporal attention model to boost prediction accuracy. It uses Mobike riding order data from Shanghai, extracting temporal features like hours and weekdays, and constructs a matrix with spatial features (average neighborhood demand after latitude-longitude network division). Synthetic Minority Over-Sampling Technique (SMOTE) is adopted to oversample peak data for data imbalance. Processed data is input into a bidirectional Long Short-Term Memory (LSTM) to capture temporal correlations in the sequence, combined with a spatio-temporal attention mechanism to focus on key features. Model performance is evaluated via ablation experiments (removing spatial features, bidirectional LSTM, or attention mechanism) using indicators such as RMSE, MAE, MAPE for non-zero demand, zero-value prediction accuracy, and peak hit rate. Results show the model effectively captures spatio-temporal features, providing strong support for bike-sharing scheduling management.

Keywords: Bike - sharing demand forecasting; Spatio - temporal features; Bidirectional LSTM network
Published: August 27, 2025
DOI: 10.54254/2753-8818/2025.AD26273
Volume: TNS Vol.120
pp. 127-136
Download PDF

References

  1. Li, P. (2024). Research on Shared - bike Flow Calculation Method Based on Spatiotemporal Features. Southwest University of Finance and Economics.
  2. Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning (2nd ed.). Springer.
  3. Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. MIT Press.
  4. Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735-1780.
  5. Shi, Y. S. (2024). Application of RNN and LSTM Online Learning Framework in Time Series Prediction. Yunnan Normal University.
  6. Rao, Y. (2019). Applying LSTM for Bicycle Rental Prediction. Journal of Transportation Research.
  7. Vaswani, A., et al. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30.
  8. Xu, M., Liu, H. F., Chu, K. (2020). Spatiotemporal Demand Prediction of Shared Bikes Based on AM - LSTM Model.
  9. Girshick, R., et al. (2014). Rich feature hierarchies for accurate object detection and semantic segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 580-587.
  10. Yang, F., Che, X. H., Wang, Y., et al. (2023). Multi - feature CNN - BiLSTM Prediction Method for Urban Shared - bike Demand. Bulletin of Surveying and Mapping.
  11. He, K., et al. (2016). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 770-778.
  12. Ding, C., et al. (2018). A spatio-temporal framework for bike-sharing demand prediction with deep learning. Transportation Research Part C: Emerging Technologies, 93, 205-218.
  13. Wang, H., et al. (2020). ST-ResNet: Spatio-temporal residual networks for citywide crowd flows prediction. 21(9), 3837-3848.