Urban Traffic Prediction Using Hybrid XGBoost–LSTM Model


Bechere M., Barkat A., Ghenabzia A., Yıltaş Kaplan D.

INTERNATIONAL JOURNAL OF COMPUTING AND DIGITAL SYSTEM, cilt.18, sa.1, ss.1-15, 2025 (Scopus)

Özet

This study introduces a novel hybrid predictive model that integrates eXtreme Gradient Boosting (XGBoost) with Long

Short-Term Memory (LSTM) networks, specifically designed for real-time urban traffic congestion prediction. The proposed model

innovatively incorporates external data, such as weather conditions, traffic incidents, and road classifications, and effectively addresses

the common issue of class imbalance in the traffic dataset and captures dynamic spatiotemporal traffic relationships. This comprehensive

approach enables the capture of complex, dynamic spatiotemporal traffic relationships more accurately. XGBoost performs robust feature

selection and preliminary classification, generating probabilistic traffic jam level estimates. These outputs are subsequently enhanced

through bidirectional LSTM layers that leverage temporal dependencies within traffic data, thus significantly improving predictive

accuracy. The hybrid XGBoost–LSTM model was evaluated using approximately three million real-time traffic records from central

London, providing a substantial and realistic testing environment. The results demonstrated its superior performance, achieving an

accuracy of 93%, with precision values between 86% and 96%, and recall between 84% and 97% across varying congestion scenarios,

from free flow to heavy congestion. Notably, the inclusion of probabilistic feature augmentation successfully mitigated the impact

of class imbalance, further enhancing reliability. Comparative analyses against traditional and standalone methods highlighted the

proposed hybrid model’s substantial improvement in accurately differentiating traffic jam levels, making it a valuable tool for intelligent

transportation systems (ITS). This research contributes significantly to urban traffic management strategies, supporting smoother traffic

flow and congestion reduction.