Research Article

Construction of a Short-Term Traffic Flow Prediction Model Based on Improved LSTM and Performance Evaluation Across Multiple Time Granularities

Nuo Chen*
Tiangong University, Tianjin, China

* Corresponding author: [email protected]

Abstract

As urban traffic congestion continues to intensify, predicting short-term traffic flow has become essential to enabling real-time control in intelligent transportation systems (ITS). However, traditional models face significant limitations in capturing the spatiotemporal and nonlinear characteristics of traffic data. Long Short-Term Memory (LSTM) networks, with their gated mechanisms, can effectively model long-term dependencies and periodic patterns in traffic flow. The accuracy of these predictions directly influences decision-making in scenarios such as traffic guidance and emergency management, offering substantial practical value for improving road network efficiency. This study constructs an optimized LSTM model to evaluate its effectiveness in short-term traffic prediction and to compare predictive performance across different time granularities. A dual-layer LSTM architecture is employed, incorporating the Adam optimizer, Dropout, and early stopping as regularization strategies. Using urban traffic monitoring data from the United States, both hourly and daily prediction models are developed for experimental validation. Results indicate that the hourly prediction model (MSE = 0.0709) markedly surpasses the daily model (MSE = 0.2987), effectively identifying recurring patterns like rush periods in the morning and evening. These outcomes offer a practical solution for adaptive traffic regulation.

Keywords: Intelligent Transportation Systems; Short-Term Traffic Flow Prediction; LSTM; Deep Learning
Published: July 4, 2025
DOI: 10.54254/2755-2721/2025.BJ24681
Volume: ACE Vol.177
pp. 1-9
Download PDF

References

  1. Siddiquee, M. S. A., & Hoque, S. (2017). Predicting the daily traffic volume from hourly traffic data using artificial neural network. Neural Network World, (3).
  2. Olayode, I. O., Tartibu, L. K., Okwu, M. O., & Severino, A. (2021). Comparative traffic flow prediction of a heuristic ANN model and a hybrid ANN-PSO model in the traffic flow modelling of vehicles at a four-way signalized road intersection. Sustainability, 13(19), 10704.
  3. Wang, S., Li, X., Zhan, J., & Lü, T. (2024). Improved sparrow search algorithm optimized BP neural network for short-term traffic flow prediction. Journal of Qingdao University of Technology, 45(01), 126-133+140.
  4. Kong, S. (2024). Short-term traffic flow prediction based on the VMD-HSSA-BP neural network model. Electronic Design Engineering, 32(10), 1-7. https: //doi.org/10.14022/j.issn1674-6236.2024.10.001
  5. Luo, X., Li, D., Yang, Y., & Zhang, S. (2018). Short-term traffic flow prediction based on KNN-LSTM. Journal of Beijing University of Technology, 44(12), 1521-1527.
  6. Wei, W., Wu, H., & Ma, H. (2019). An autoencoder and LSTM-based traffic flow prediction method. Sensors, 19(13), 2946.
  7. Wen, H., Zhang, D., & Lu, S. (2019). Application of the GA-LSTM model in highway traffic flow prediction. Journal of Harbin Institute of Technology, 51(09), 81-87+95.
  8. Yan, Z., Yu, C., Han, L., Su, W., & Liu, P. (2019). Short-term traffic flow prediction based on CNN+LSTM. Computer Engineering and Design, 40(09), 2620-2624+2659. https: //doi.org/10.16208/j.issn1000-7024.2019.09.038
  9. Yang, B., Sun, S., Li, J., Lin, X., & Tian, Y. (2019). Traffic flow prediction using LSTM with feature enhancement. Neurocomputing, 332, 320-327.
  10. Lei, Y., Wang, L., Qian, P., Wang, B., & Zhang, J. (2025). Short-term traffic flow prediction for cross-river bridges during holidays based on LSTM neural network. Modern Transportation and Metallurgical Materials, 5(01), 76-84.
  11. Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780.