Research Article

A Multi-Scale Traffic Flow Prediction Model Based on LSTM

Jianyi Cui*
Ocean University of China, Qingdao, Shandong, China

* Corresponding author: [email protected]

Abstract

With the accelerating pace of urbanization, traffic flow prediction faces challenges in adapting to dynamic environments. Existing studies exhibit significant limitations in integrating external factors and extending to multi-scale prediction scenarios. Targeting the domain of traffic flow forecasting, this paper focuses on optimizing the Long Short-Term Memory (LSTM) network model, with particular attention to the impact of weather conditions on prediction accuracy and the performance differences between hourly and daily multi-scale forecasting. While mainstream approaches have improved LSTM performance through algorithmic optimization (e.g., Particle Swarm Optimization, Bayesian Optimization), a systematic solution to the integration of external factors and adaptation to different time granularities is still lacking. This study proposes an LSTM architecture that incorporates temperature as an embedded parameter, constructing a multi-factor input model and designing a dual-scale prediction framework at both the hourly (24-hour window) and daily levels (7/30/90-day windows). Using traffic flow and meteorological data from Interstate 94 in Minnesota, USA (2012–2018), the research explores the trade-off between external factors and time scales in LSTM modeling. The results provide a refined optimization path for traffic flow forecasting under complex scenarios.

Keywords: With the accelerating pace of urbanization; traffic flow prediction faces challenges in adapting to dynamic environments. Existing studies exhibit significant limitations in integrating external factors and extending to multi-scale prediction scenarios. Targeting the domain of traffic flow forecasting; this paper focuses on optimizing the Long Short-Term Memory (LSTM) network model; with particular attention to the impact of weather conditions on prediction accuracy and the performance differences between hourly and daily multi-scale forecasting. While mainstream approaches have improved LSTM performance through algorithmic optimization (e.g.; Particle Swarm Optimization; Bayesian Optimization); a systematic solution to the integration of external factors and adaptation to different time granularities is still lacking. This study proposes an LSTM architecture that incorporates temperature as an embedded parameter; constructing a multi-factor input model and designing a dual-scale prediction framework at both the hourly (24-hour window) and daily levels (7/30/90-day windows). Using traffic flow and meteorological data from Interstate 94 in Minnesota; USA (2012–2018); the research explores the trade-off between external factors and time scales in LSTM modeling. The results provide a refined optimization path for traffic flow forecasting under complex scenarios.
Published: June 20, 2025
DOI: 10.54254/2755-2721/2025.GL24060
Volume: ACE Vol.162
pp. 85-92
Download PDF

References

  1. With the accelerating pace of urbanization, traffic flow prediction faces challenges in adapting to dynamic environments. Existing studies exhibit significant limitations in integrating external factors and extending to multi-scale prediction scenarios. Targeting the domain of traffic flow forecasting, this paper focuses on optimizing the Long Short-Term Memory (LSTM) network model, with particular attention to the impact of weather conditions on prediction accuracy and the performance differences between hourly and daily multi-scale forecasting. While mainstream approaches have improved LSTM performance through algorithmic optimization (e.g., Particle Swarm Optimization, Bayesian Optimization), a systematic solution to the integration of external factors and adaptation to different time granularities is still lacking. This study proposes an LSTM architecture that incorporates temperature as an embedded parameter, constructing a multi-factor input model and designing a dual-scale prediction framework at both the hourly (24-hour window) and daily levels (7/30/90-day windows). Using traffic flow and meteorological data from Interstate 94 in Minnesota, USA (2012–2018), the research explores the trade-off between external factors and time scales in LSTM modeling. The results provide a refined optimization path for traffic flow forecasting under complex scenarios.
  2. Cao, Y., Chang, Y., & Chen, M. (2024). Comparative study of traffic flow prediction methods based on neural networks. Science and Innovation, (13), 42–44. https://doi.org/10.15913/j.cnki.kjycx.2024.13.009
  3. Shen, K., Zhu, Y., Meng, X., & Li, H. (2022). Expressway traffic flow prediction based on Bayesian-optimized LSTM. Modern Computer, 28(11), 51–55.
  4. Duan, Z., & Du, W. (2024). Tunnel traffic flow prediction and lighting adjustment research based on GWO-LSTM model. Modern Tunneling Technology, 61(3), 157–165. https://doi.org/10.13807/j.cnki.mtt.2024.03.017
  5. Jia, X., Feng, C., Su, Z., Qian, Z., Song, T., Liu, H., & Lü, Y. (2023). Traffic flow prediction using Bi-LSTM for urban traffic grid clusters. Journal of Chongqing University, 46(9), 130–141.
  6. Xue, Y. (2024). Research on traffic flow prediction methods based on graph neural networks. Logistics Technology, 47(10), 118–123, 129. https://doi.org/10.13714/j.cnki.1002-3100.2024.10.021
  7. Yang, G., Chen, J., Zhang, Z., & Wang, W. (2024). MCNN-ABiLSTM traffic flow prediction model considering external factors. Journal of Tianjin University of Technology and Education, 34(1), 66–73. https://doi.org/10.19573/j.issn2095-0926.202401012
  8. Tang, Z., Zhao, D., & Wang, S. (2024). Short-term traffic flow prediction based on CNN-LSTM-AM. Science Technology and Engineering, 24(31), 13562–13567.
  9. Zhou, X., Jin, J., Bao, N., Yuan, T., & Cui, Y. (2024). Urban taxi traffic flow prediction based on attention convolutional long short-term memory model. Journal of Safety Science and Technology, 34(7), 153–162. https://doi.org/10.16265/j.cnki.issn1003-3033.2024.07.0089
  10. Hochreiter, S., & Schmidhuber, J. (1996). LSTM can solve hard long time lag problems. In Proceedings of the 10th International Conference on Neural Information Processing Systems (pp. 473–479). MIT Press.
  11. Hogue, J. (2019). Metro Interstate Traffic Volume [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5X60B