Traffic Congestion Prediction Using Bi-LSTM with Attention Mechanism

Authors

  • Mustafa H. Abdulkareem Department of Information and Communication Engineering, College of Information Engineering Al-Nahrain University, Jadriya, Baghdad, Iraq https://orcid.org/0009-0004-4632-2950
  • Mohammed I Aal-Nouman Department of Information and Communication Engineering, College of Information Engineering Al-Nahrain University, Jadriya, Baghdad, Iraq https://orcid.org/0000-0001-5056-8567
  • Omar Bouzid Department of Electrical Engineering, University of Gharyan, Gharyan, Libya

DOI:

https://doi.org/10.31987/ijict.8.3.356

Keywords:

Traffic congestion prediction, Bi-LSTM, Machen Learning, Attention Mechanism

Abstract

Modern transportation systems are severely hampered by urban traffic congestion, which causes delays and fuel consumption. Proactive control techniques and intelligent traffic management depend on accurate congestion prediction. In order to predict congestion across urban edge networks, current study presents a deep learning-based framework that combines an attention mechanism with a bidirectional Long Short-Term Memory (LSTM) network with custom learnable attention layer, flowed by focal loss for addressing the data imbalance. A numerous dataset was generated by using SUMO, therefore over 2 million sequence was generated, including 12 spatiotemporal features that were extracted from the dataset. A large scale map was used and the prediction was based on edge level. The model can efficiently learn temporal dependencies and spatial patterns thanks to our preprocessing pipeline, which consists of temporal windowing, edge ID encoding, and cyclical time transformations. Trained with a 30-step sliding window, the model achieved low error metrics (MAE: 0.0744, RMSE: 0.2728), an F1-score of 0.90, and a classification accuracy of 92.56%. Our architecture performs better at detecting congestion events than recent state-of-the-art models. Thus the potential for scalable implementation in urban traffic forecasting systems of deep spatiotemporal learning models trained on realistic but synthetic simulation data.

Downloads

Published

2025-12-30

How to Cite

Traffic Congestion Prediction Using Bi-LSTM with Attention Mechanism. (2025). Iraqi Journal of Information and Communication Technology, 8(3), 83-94. https://doi.org/10.31987/ijict.8.3.356

Similar Articles

1-10 of 56

You may also start an advanced similarity search for this article.

Most read articles by the same author(s)

1 2 3 4 5 6 7 8 9 10 > >>