Hybrid streaming LSTM and transformer XL model for real-time urban traffic congestion prediction
P. M. Harikrishnaa, Perepi Rajarajeswari
Key points
From the paper's conclusion- These findings demonstrate the advantages of fusion of recurrent and attention-based deep learning architectures.
Abstract
Introduction Urban traffic congestion results in substantial economic and environmental costs. However, conventional fixed-timing and linear models (ARIMA) lack the ability to accurately model the intricate and non-linear dynamics of real-time traffic. Even though deep learning models like LSTMs have improved temporal modeling, they cannot handle very long-term dependencies. Methods In this study, we propose a hybrid streaming LSTM-transformer XL model combining LSTM’S strength in capturing short-term patterns with the long-range contextual interpretation of transformer XL, tailored for streaming inference of large-scale spatio-temporal data for sensor-level continuous forecasting. Our experiments were carried out on benchmark datasets METR-LA and PEMS-BAY. Besides that, we employed a robust preprocessing pipeline and an interactive Streamlit-based deployment for real-time visualization. Results For a six-step (30-min) horizon, the reported denormalized results are MAE/RMSE = 4.32/7.91 mph for METR-LA and 2.40/4.39 mph for PEMS-BAY. Discussion The results showed that the accuracy of the prediction, computational efficiency and feasibility of deployment in the context of ITS are well balanced. With the help of an interactive Streamlit dashboard and Ngrok, the live deployment occurs by streaming, making it possible to have live visualization, sensor comparison, and monitoring of dynamic forecasts. These findings demonstrate the advantages of fusion of recurrent and attention-based deep learning architectures. The system can provide traffic speed forecasts to scalable, interpretable and deployable intelligent urban mobility.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Short-Term Traffic Congestion Forecasting Using Machine Learning and Deep Learning Models for Spatiotemporal Traffic AnalysisApplied Sciences · 2026
- A Survey of Large Language Models for Traffic Forecasting: Methods and ApplicationsIEEE Transactions on Big Data · 2026
- Model-Agnostic Meta-Learning-Based Real-Time Traffic Conflict Prediction With Limited Sample at Heterogeneous Signalized IntersectionsIEEE Transactions on Intelligent Transportation Systems · 2026
- A Dynamic Fusion Large Language Model for Traffic Flow PredictionarXiv · 2026
- Traffic Flow Prediction Model Based on Attention Mechanism Spatio-Temporal Graph Convolutional Network on U.S. HighwaysApplied Sciences · 2026
- A Lightweight Spatio-Temporal Cosine Transformer (STCformer) for Non-Stationary Traffic Flow PredictionElectronics · 2026