journal article·2024-05-23Open access

Predictive Analyses of Traffic Level in the City of Barcelona: From ARIMA to eXtreme Gradient Boosting

Eloi Garcia, Laura Calvet, Patricia Carracedo, Carles Serrat, Pau Miró, Mohammad Peyman

Applied Sciences· Volume 14· Issue 11

Abstract

This study delves into the intricate dynamics of urban mobility, a pivotal aspect for policymakers, businesses, and communities alike. By deciphering patterns of movement within a city, stakeholders can craft targeted interventions to mitigate traffic congestion peaks, optimizing both resource allocation and individual travel routes. Focused on Barcelona, Spain, this paper draws on data sourced from the city council’s open data service. Through a blend of exploratory analysis, visualization techniques, and modeling methodologies—including time series analysis and the eXtreme Gradient Boosting (XGBoost) algorithm—the research endeavors to forecast traffic conditions. Additionally, a study of variable importance is carried out, and Shapley Additive Explanations are applied to enhance the interpretability of model outputs. Findings underscore the limitations of traditional forecasting methods in capturing the nuanced spatial and temporal dependencies present in traffic flows, particularly over medium- to long-term horizons. However, the XGBoost model demonstrates robust performance, with the area under ROC curves consistently exceeding 80%, indicating its efficacy in handling non-linear traffic data variables.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Traffic Prediction and Management Techniques · Transportation Planning and Optimization · Vehicle emissions and performance

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Mathematics, Barcelona School of Building Constrution, Universitat Politècnica de Catalunya-BarcelonaTECH, 08028 Barcelona, Spain

Department of Telecommunications and Systems Engineering, Autonomous University of Barcelona, 08193 Bellaterra, Spain

Department of Statistics and Operations Research, Universitat Politècnica de València, 03801 Alcoy, Spain

Research Center on Production Management and Engineering, Universitat Politècnica de València, Plaza Ferrandiz-Salvador, 03801 Alcoy, Spain

Funding

the Spanish Ministry of Science · the Barcelona City Council and Fundació “la Caixa” · the Departament de Recerca i Universitats de la Generalitat de Catalunya (Spain)

References (37)

Show source-provided references
1. Pasaoglu, G., Fiorello, D., Martino, A., Scarcella, G., Alemanno, A., Zubaryeva, A., and Thiel, C. (2012). Driving and Parking Patterns of European Car Drivers—A Mobility Survey, European Commission Joint Research Centre.
2. Eurostat (2024, April 02). Statistics on European Cities. Available online: https://ec.europa.eu/eurostat/statistics-explained/index.php?title=Statistics_on_European_cities.
3. Ajuntament de Barcelona (2024, April 02). Dades Bàsiques de Mobilitat Barcelona. 2017, 2018. Available online: http://hdl.handle.net/11703/111727.
4. European Environment Agency (2022, December 09). Transport. Available online: https://www.eea.europa.eu/themes/transport/intro.
5. European Commission (2024, April 02). New EU Urban Mobility Framework. Available online: https://ec.europa.eu/info/law/better-regulation/have-your-say/initiatives/12916-Sustainable-transport-new-urban-mobility-framework_en.
6. European Council (2024, April 02). Conclusions on 2030 Climate and Energy Policy Framework, SN 79/14. Available online: https://www.buildup.eu/en/practices/publications/european-council-23-and-24-october-2014-conclusions-2030-climate-and-energy.
7. A biased-randomized variable neighborhood search for sustainable multi-depot vehicle routing problems10.1007/s10732-018-9366-0 ↗
8. Faulin, J., Grasman, S., Juan, A., and Hirsch, P. (2018). Sustainable Transportation and Smart Logistics: Decision-Making Models and Solutions, Elsevier.10.1016/B978-0-12-814242-4.00001-6 ↗
9. Integrating Machine Learning and Deep Learning in Smart Cities for Enhanced Traffic Congestion Management: An Empirical Review10.56578/judm020404 ↗
10. Yu, B., Yin, H., and Zhu, Z. (2018, January 13–19). Spatio-temporal graph convolutional networks: A deep learning framework for traffic forecasting. Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, Stockholm, Sweden.10.24963/ijcai.2018/505 ↗
11. Traffic flow prediction models—A review of deep learning techniques10.1080/23311916.2021.2010510 ↗
12. Shi, Y., Feng, H., Geng, X., Tang, X., and Wang, Y. (2019, January 8–10). A Survey of Hybrid Deep Learning Methods for Traffic Flow Prediction. Proceedings of the 3rd International Conference on Advances in Image Processing, Chengdu, China.10.1145/3373419.3373429 ↗
13. A brief overview of machine learning methods for short-term traffic forecasting and future directions10.1145/3231541.3231544 ↗
14. Ensemble of ARIMA: Combining parametric and bootstrapping technique for traffic flow prediction
15. Hybrid methods for short-term traffic flow prediction based on ARIMA-GARCH model and wavelet neural network10.1061/JTEPBS.0000388 ↗
16. Enhancing Urban Traffic Management through YOLOv5 and DeepSORT Algorithms within Digital Twin Frameworks
17. Rojo, M. (2020). Evaluation of traffic assignment models through simulation. Sustainability, 12.10.37247/PAS.1.2020.25 ↗
18. Management of on-demand transport services in urban contexts. Barcelona case study10.1016/j.trpro.2016.05.016 ↗
19. A coupled macroscopic traffic and pollutant emission modelling system for Barcelona10.1016/j.trd.2021.102725 ↗
20. Evans, B., Chen, A.S., Djordjević, S., Webber, J., Gómez, A.G., and Stevens, J. (2020). Investigating the effects of pluvial flooding and climate change on traffic flows in Barcelona and Bristol. Sustainability, 12.10.3390/su12062330 ↗
21. Gilibert Junyent, M., Ribas Vila, I., and Rodríguez Donaire, S. Analysis of mobility patterns and intended use of shared mobility services in the Barcelona region. Proceedings of the ETC Conference Papers 2017.
22. A survey of traffic data visualization10.1109/TITS.2015.2436897 ↗
23. Intra-city traffic data visualization: A systematic literature review10.1109/TITS.2021.3092036 ↗
24. Kraak, M.J. (2003, January 10–16). The space-time cube revisited from a geovisualization perspective. Proceedings of the 21st International Cartographic Conference, Durban, South Africa.
25. Story, R. (2024, April 02). Folium. 2020. Version: 0.11.0. Available online: https://python-visualization.github.io/folium/.
26. Douc, R., Moulines, E., and Stoffer, D. (2014). Nonlinear Time Series: Theory, Methods and Applications with R Examples, CRC Press.10.1201/b16331 ↗
27. R Core Team (2023). R: A Language and Environment for Statistical Computing, R Foundation for Statistical Computing.
28. Automatic time series forecasting: The forecast package for R10.18637/jss.v027.i03 ↗
29. Shumway, R.H., and Stoffer, D.S. (2000). Time Series Analysis and Its Applications, Springer.10.1007/978-1-4757-3261-0 ↗
30. Chen, T., and Guestrin, C. XGBoost. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016.10.1145/2939672.2939785 ↗
31. Lundberg, S.M., and Lee, S.I. A Unified Approach to Interpreting Model Predictions. Proceedings of the 31st International Conference on Neural Information Processing Systems (NIPS’17), Long Beach, CA, USA, 4–9 December 2017.
32. From local explanations to global understanding with explainable AI for trees10.1038/s42256-019-0138-9 ↗
33. Van Rossum, G., and Drake, F.L. (2009). Python 3 Reference Manual, CreateSpace.
34. RStudio Team (2019). RStudio: Integrated Development Environment for R, RStudio, Inc.
35. Ahmed, M.S., and Cook, A.R. (1979). Analysis of Freeway Traffic Time-Series Data by Using Box-Jenkins Techniques, Transportation Research Record.
36. Big data analytics in intelligent transportation systems: A survey10.1109/TITS.2018.2815678 ↗
37. Short-term traffic flow rate forecasting based on identifying similar traffic patterns10.1016/j.trc.2015.08.017 ↗