Urban traffic flow simulation in various weather conditions using long short-term memory-based machine learning

    Giedrius Garbinčius Info
    Mantas Makulavičius Info
DOI: https://doi.org/10.3846/transport.2026.26773

Abstract

This study proposes a weather-aware short-term urban traffic prediction framework that combines microscopic traffic simulation with Long Short-Term Memory (LSTM) based Machine Learning (ML) for forecasting vehicle flow at selected urban junctions. The research is motivated by the need to improve traffic-state prediction under varying environmental conditions, since weather disturbances such as rain, fog, and snow significantly affect driver-behaviour, vehicle speed, spacing, and intersection throughput. The simulation environment was developed in the Simulation of Urban Mobility (SUMO) platform using an urban road segment derived from geographic map data and traffic-flow information from the Vilnius city traffic database. 2 monitored junctions were selected as observation points, and traffic behaviour was simulated under 5 weather scenarios: normal conditions, light rain, heavy rain, fog, and snow. Weather-dependent driver parameters, including speed factor, reaction time, acceleration, deceleration, driver imperfection, and minimum gap, were incorporated into the simulation in order to reproduce realistic traffic dynamics. The generated simulation data, including vehicle count, speed, waiting time, temporal features, and encoded weather conditions, were used to train and evaluate multiple LSTM models through an AutoML-based tuning procedure. Among different configurations, the best-performing model consisted of 3 recurrent layers and achieved a validation RMSE of 0.1056 with a validation loss of 0.0652. The results show that the proposed framework is capable of reproducing the general temporal structure of urban traffic flow and preserving the relative ordering of traffic intensity across weather scenarios. Prediction quality was highest under normal conditions, with RMSE of approximately 0.21 veh/min, while the poorest accuracy was observed under snow conditions (about 2.5 veh/min). The model captured dominant traffic trends effectively, although it tended to smooth short-term local oscillations, especially under more unfavourable weather conditions. Overall, the study demonstrates that integrating SUMO-based simulation with LSTM forecasting provides an effective and flexible approach for short-term urban traffic prediction under varying meteorological conditions and may support future intelligent traffic management and weather-adaptive mobility applications.

 

Keywords:

traffic flow simulation, machine learning, traffic flow prediction, weather condition simulation, SUMO

How to Cite

Garbinčius, G., & Makulavičius, M. (2026). Urban traffic flow simulation in various weather conditions using long short-term memory-based machine learning. Transport, 41(1), 36–47. https://doi.org/10.3846/transport.2026.26773

Share

Published in Issue
May 14, 2026
Abstract Views
109

References

Abduljabbar, R. L.; Dia, H.; Tsai, P.-W. 2021. Development and evaluation of bidirectional LSTM freeway traffic forecasting models using simulation data, Scientific Reports 11: 23899. https://doi.org/10.1038/s41598-021-03282-z

Ahiska, K. 2026. Cooperative driving and collective navigation architectures for CCAVs: contemporary techniques, simulators, datasets, and research directions, in S. De Luca, R. Di Pace, F. Storani, F. Bruno (Eds.). Connected, Cooperative and Autonomous Mobility – Research Needs, Challenges and Future Perspectives. IntechOpen. https://doi.org/10.5772/intechopen.1013696

Allam, Z.; Sharifi, A. 2022. Research structure and trends of smart urban mobility, Smart Cities 5(2): 539–561. https://doi.org/10.3390/smartcities5020029

Arockiasamy, J. P.; Vinel, A. 2026. Performance Evaluation of V2X Communication Using Large-Scale Traffic Data. 8 p. https://arxiv.org/pdf/2602.07244v1

Briem, L.; Heilig, M.; Klinkhardt, C.; Vortisch, P. 2019. Analyzing OpenStreetMap as data source for travel demand models: a case study in Karlsruhe, Transportation Research Procedia 41: 104–112. https://doi.org/10.1016/j.trpro.2019.09.021

Butler, L.; Yigitcanlar, T.; Paz, A. 2020. Smart urban mobility innovations: a comprehensive review and evaluation, IEEE Access 8: 196034–196049. https://doi.org/10.1109/access.2020.3034596

Chang, H.-C.; Huang, S.-Y.; Chen, Y.-C.; Wu, I.-C. 2026. VissimRL: a Multi-Agent Reinforcement Learning Framework for Traffic Signal Control Based on Vissim. 15 p. https://arxiv.org/pdf/2601.18284v1

Chen, Y.; Acheampong, R. A.; Liu, L. 2026. Navigating smart urban mobility transitions: an ecosystem evolution perspective on Beijing MaaS initiatives, Cities 172: 106841. https://doi.org/10.1016/j.cities.2026.106841

Danilevičius, A.; Danilevičienė, I.; Karpenko, M.; Stosiak, M.; Skačkauskas, P. 2025. Determination of the instantaneous noise level using a discrete road traffic flow method, Promet – Traffic & Transportation 37(1): 71–85. https://doi.org/10.7307/ptt.v37i1.597

Darla, S.; Kiran, P.; Umesh Kumar, A.; Purnesh, B. R.; Vamshi, D. 2026. Automated vehicle collision detection: multi-model computer vision framework, in 2026 International Conference on Intelligent and Innovative Technologies in Computing, Electrical and Electronics (IITCEE), 22–23 January 2026, Bangalore, India, 1–9. https://doi.org/10.1109/iitcee67948.2026.11394603

Deng, M.; Lu, S.; Shi, J.; Zhang, W. 2026. Adaptive Traffic Signal Control Optimization Using a Novel Road Partition and Multi-Channel State Representation Method. 24 p. https://arxiv.org/pdf/2602.12296v1

Esmaeil Abbasi, A. 2026. Intelligent Path Planning Using Deep Learning and Reinforcement Learning in Transportation Systems. PhD Dissertation. Polytechnic University of Bari, Italy. 181 p. https://tesidottorato.depositolegale.it/handle/20.500.14242/ 354926

Li, J.; Chen, Z.; Huang, G.; Fu, G. 2026. A dynamic simulation framework for evaluating the impacts of urban flooding on transportation systems, International Journal of Disaster Risk Science 17(1): 182–196. https://doi.org/10.1007/s13753-026-00697-y

Lopez, P. A.; Behrisch, M.; Bieker-Walz, L.; Erdmann, J.; Flötteröd, Y.-P.; Hilbrich, R.; Lücken, L.; Rummel, J.; Wagner, P.; Wiessner, E. 2018. Microscopic traffic simulation using SUMO, in 2018 21st International Conference on Intelligent Transportation Systems (ITSC), 4–7 November 2018, Maui, HI, US, 2575–2582. https://doi.org/10.1109/itsc.2018.8569938

Lu, Q.; Tettamanti, T. 2018. Impacts of autonomous vehicles on the urban fundamental diagram, in Proceedings of the 5th International Conference on Road and Rail Infrastructures – CETRA 2018, 17–19 May 2018, Zadar, Croatia, 1265–1271. https://doi.org/10.5592/co/cetra.2018.714

Mavlutova, I.; Atstaja, D.; Grasis, J.; Kuzmina, J.; Uvarova, I.; Roga, D. 2023. Urban transportation concept and sustainable urban mobility in smart cities: a review, Energies 16(8): 3585. https://doi.org/10.3390/en16083585

Petrov, T.; Sleiman, W.; Beigi, P.; Počta, P.; Buzna, Ľ.; Hamdar, S. 2026. Simulation of vehicle-to-pedestrian communication for development of novel C-ITS services for vulnerable road users, Transportation Research Procedia 93: 674–679. https://doi.org/10.1016/j.trpro.2025.11.102

Rebally, A.; Valeo, C.; Saidi, S.; He, J. 2026. Assessing the temporal qualities of indirect impacts of flooding on traffic, International Journal of Disaster Risk Reduction 135: 106035. https://doi.org/10.1016/j.ijdrr.2026.106035

Rodríguez-Gómez, F.; Palma-Borda, J.; Guzmán, E.; Belmonte, M.-V. 2026. An extensible framework for urban mobility digital shadows, IEEE Software (Early Access). https://doi.org/10.1109/ms.2026.3659484

Schweppenhäuser, M.; Schrab, K.; Protzmann, R.; Radusch, I. 2026. Evaluating spatiotemporal speed metrics for traffic state estimation on complex urban roads, Simulation 102(1): 7–18. https://doi.org/10.1177/00375497241308890

Serok, N.; Havlin, S.; Blumenfeld Lieberthal, E. 2026. Decentralised bottleneck prioritisation strategy for traffic flow improvement, EPJ Data Science 15: 14. https://doi.org/10.1140/epjds/s13688-026-00617-6

Wang, H.; Li, G.; Luo, X.; Zhong, W.; Qi, H.; Zhang, D. 2026a. Vehicle queue prediction method for signalized intersections based on roadside traffic data, Chain 3(1): 73–93. https://doi.org/10.23919/chain.2026.000001

Wang, W.; Wan, Y.; Liu, Q.; Liu, H.; Li, C.; Yang, S.; Lai, X.; Liu, Y.; Yue, Q. 2026b. Urban road network resilience under emergencies: a microscopic simulation framework, Transportation Research Part D: Transport and Environment 151: 105158. https://doi.org/10.1016/j.trd.2025.105158

View article in other formats

CrossMark check

CrossMark logo

Published

2026-05-14

Issue

Section

Original Article

How to Cite

Garbinčius, G., & Makulavičius, M. (2026). Urban traffic flow simulation in various weather conditions using long short-term memory-based machine learning. Transport, 41(1), 36–47. https://doi.org/10.3846/transport.2026.26773

Share