Predictive Models and GIS for Road Safety: Application to a Segment of the Chone–Flavio Alfaro Road
Abstract
:1. Introduction
2. Materials and Methods
2.1. Road Segment
2.2. Crash Data
2.3. Spatial Analysis Using Kernel Density Estimation
- f(x): estimated density at point x;
- n: number of events (e.g., crashes);
- h: bandwidth (search radiu);
- K: kernel function (usually Gaussian);
- xi: coordinates of the i-th crash event.
2.4. Hotspot Analysis Using Getis-Ord Gi*
- xj: attribute value for feature j;
- wi,j: spatial weight between feature i and j;
- : mean of all attribute values;
- S: standard deviation of all attribute values;
- n is the total number of features in the study area.
2.5. Space-Time Cube Analysis
2.6. Collision Prediction Models
- Pandas 1.5.3 (import pandas as pd): Data handling, preprocessing, and structuring;
- NumPy 1.24.2 (import numpy as np): Mathematical calculations and operations with arrays;
- Matplotlib 3.7.1 (import matplotlib.pyplot as plt): Visualization of time series data and forecasting results;
- Statsmodels 0.14.0 (from statsmodels.tsa.arima.model import ARIMA): ARIMA model development and implementation;
- Prophet 1.1.2 (from prophet import Prophet): Seasonal decomposition and forecasting;
- TensorFlow/Keras 2.11.0 (import tensorflow as tf, from tensorflow.keras.models import Sequential, from tensorflow.keras.layers import LSTM, Dense): Construction and training of the LSTM model;
- Scikit-learn 1.2.2 (from sklearn.preprocessing import MinMaxScaler): Data normalization using MinMaxScaler to improve model performance.
Evaluation Metrics Used
3. Results
3.1. Spatial Analysis
3.2. Predictive Analysis
3.2.1. ARIMA Model Results
3.2.2. Prophet Model Results
3.2.3. LSTM Model Results
3.3. Model Evaluation (RMSE and MAE)
4. Discussion
4.1. Spatial Patterns and High-Risk Areas
4.2. Detection of Emerging Risk Patterns
4.3. Technologies for New Intelligent Transportation Systems
4.4. Sustainability and Resource Efficiency in Road Safety Management
Forecasting Models in Transportation and Road Safety Management
- Resource allocation: Forecasting high-risk periods and locations supports the efficient deployment of patrols and emergency services;
- Maintenance planning: Crash-prone areas can be prioritized for infrastructure repairs, thereby reducing the likelihood of incidents;
- Early warning systems: Forecasts can be used to feed real-time alert systems to warn drivers during hazardous periods.
4.5. Scope and Generalizability of Findings
5. Conclusions
- Four statistically significant hotspots were identified using Kernel Density Estimation and Getis-Ord Gi*, particularly in segments PS 0–2.31, PS 2.31–7.10, PS 13.39–21.31, and PS 31.27–33.92;
- Driver distraction, excessive speed, and adverse weather conditions are the predominant factors contributing to traffic collisions, as confirmed by both descriptive data and field surveys;
- The Prophet model achieved the best predictive performance (RMSE = 0.47; MAE = 0.34), followed by ARIMA (RMSE = 1.18; MAE = 0.46) and LSTM (RMSE = 1.06; MAE = 0.83). Prophet showed greater precision in capturing short-term seasonal variations, while LSTM remained valuable for modeling nonlinear temporal dependencies;
- Temporal analysis revealed a concentration of collisions during the rainy season, particularly between PS 13.39 and PS 21.31, supporting the inclusion of seasonal variables in risk prediction;
- Predictive analytics and spatial tools such as GIS, KDE, and space–time cube modeling offer a reproducible framework for detecting crash patterns and informing targeted interventions;
- Integrating these models into public transport planning can help prioritize maintenance, allocate resources more efficiently, and support evidence-based road safety policies.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- United Nations. With 1.3 Million Annual Road Deaths, UN Wants to Halve Number by 2030; United Nations: New York, NY, USA, 2021. [Google Scholar]
- Lu, S.F. P.3.19 Effect of occupational work and safety issues on road crash injuries in the philippines. Occup. Environ. Med. 2019, 76, A101. [Google Scholar] [CrossRef]
- Lasota, D.; Al-Wathinani, A.; Krajewski, P.; Goniewicz, K.; Pawłowski, W. Alcohol and Road Accidents Involving Pedestrians as Unprotected Road Users. Int. J. Environ. Res. Public Health 2020, 17, 8995. [Google Scholar] [CrossRef] [PubMed]
- Espinoza-Molina, F.; Ojeda-Romero, C.F.; Zumba-Paucar, H.D.; Pillajo-Quijia, G.; Arenas-Ramírez, B.; Aparicio-Izquierdo, F. Road Safety as a Public Health Problem: Case of Ecuador in the Period 2000–2019. Sustainability 2021, 13, 8033. [Google Scholar] [CrossRef]
- Montero-Salgado, J.P.; Muñoz-Sanz, J.; Arenas-Ramírez, B.; Alén-Cordero, C. Identification of the Mechanical Failure Factors with Potential Influencing Road Accidents in Ecuador. Int. J. Environ. Res. Public Health 2022, 19, 7787. [Google Scholar] [CrossRef]
- Ortiz-Prado, E.; Mascialino, G.; Paz, C.; Rodriguez-Lorenzana, A.; Gómez-Barreno, L.; Simbaña-Rivera, K.; Diaz, A.M.; Coral-Almeida, M.; Espinosa, P.S. A Nationwide Study of Incidence and Mortality Due to Traumatic Brain Injury in Ecuador (2004–2016). Neuroepidemiology 2019, 54, 33–44. [Google Scholar] [CrossRef] [PubMed]
- Shahzad, M. Review of road accident analysis using GIS technique. Int. J. Inj. Control Saf. Promot. 2020, 27, 472–481. [Google Scholar] [CrossRef]
- Harirforoush, H.; Bellalite, L. A new integrated GIS-based analysis to detect hotspots: A case study of the city of Sherbrooke. Accid. Anal. Prev. 2016, 130, 62–74. [Google Scholar] [CrossRef]
- Kazmi, S.M.A.; Ahmed, M.; Mumtaz, R.; Anwar, Z. Spatiotemporal Clustering and Analysis of Road Accident Hotspots by Exploiting GIS Technology and Kernel Density Estimation. Comput. J. 2020, 65, 155–176. [Google Scholar] [CrossRef]
- Nogueira, P.; Silva, M.; Infante, P.; Nogueira, V.; Manuel, P.; Afonso, A.; Jacinto, G.; Rego, L.; Quaresma, P.; Saias, J.; et al. Learning from Accidents: Spatial Intelligence Applied to Road Accidents with Insights from a Case Study in Setúbal District, Portugal. ISPRS Int. J. Geo Inf. 2023, 12, 93. [Google Scholar] [CrossRef]
- Le, K.G.; Liu, P.; Lin, L. Determining the road traffic accident hotspots using GIS-based temporal-spatial statistical analytic techniques in Hanoi, Vietnam. Geo-Spat. Inf. Sci. 2020, 23, 153–164. [Google Scholar] [CrossRef]
- Lozano Dominguez, J.M.; Al-Tam, F.; Sanguino, T.d.J.M.; Correia, N. Vehicle Detection System for Smart Crosswalks Using Sensors and Machine Learning. In Proceedings of the 2021 18th International Multi-Conference on Systems, Signals & Devices (SSD), Monastir, Tunisia, 22–25 March 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 984–991. [Google Scholar] [CrossRef]
- Duan, C.; Hu, M.; Zhang, H. Comparison of ARIMA and LSTM in Predicting Structural Deformation of Tunnels during Operation Period. Data 2023, 8, 104. [Google Scholar] [CrossRef]
- Shahid, F.; Zameer, A.; Muneeb, M. Predictions for COVID-19 with deep learning models of LSTM, GRU and Bi-LSTM. Chaos Solitons Fractals 2020, 140, 110212. [Google Scholar] [CrossRef] [PubMed]
- Wang, W.; Ma, B.; Guo, X.; Chen, Y.; Xu, Y. A Hybrid ARIMA-LSTM Model for Short-Term Vehicle Speed Prediction. Energies 2024, 17, 3736. [Google Scholar] [CrossRef]
- de Zarzà, I.; de Curtò, J.; Roig, G.; Calafate, C.T. LLM Multimodal Traffic Accident Forecasting. Sensors 2023, 23, 9225. [Google Scholar] [CrossRef]
- Li, H.; Gao, Q.; Zhang, Z.; Zhang, Y.; Ren, G. Spatial and Temporal Prediction of Secondary Crashes Combining Stacked Sparse Auto-Encoder and Long Short-Term Memory. SSRN Electron. J. 2023, 191, 107205. [Google Scholar] [CrossRef]
- Asadi, R.; Regan, A.C. A spatio-temporal decomposition based deep neural network for time series forecasting. Appl. Soft Comput. 2020, 87, 105963. [Google Scholar] [CrossRef]
- Mohaymany, A.S.; Shahri, M.; Mirbagheri, B. GIS-based method for detecting high-crash-risk road segments using network kernel density estimation. Geo-Spat. Inf. Sci. 2013, 16, 113–119. [Google Scholar] [CrossRef]
- Al-Ahmadi, H.M.; Jamal, A.; Ahmed, T.; Rahman, M.T.; Reza, I.; Farooq, D. Calibrating the Highway Safety Manual Predictive Models for Multilane Rural Highway Segments in Saudi Arabia. Arab. J. Sci. Eng. 2021, 46, 11471–11485. [Google Scholar] [CrossRef]
- Zhang, Y.; Zhu, F.; Li, Q.; Qiu, Z.; Xie, Y. Exploring Spatiotemporal Patterns of Expressway Traffic Accidents Based on Density Clustering and Bayesian Network. ISPRS Int. J. Geo Inf. 2023, 12, 73. [Google Scholar] [CrossRef]
- Al-Ruzouq, R.; Hamad, K.; Dabous, S.A.; Zeiada, W.; Khalil, M.A.; Voigt, T. Weighted Multi-attribute Framework to Identify Freeway Incident Hot Spots in a Spatiotemporal Context. Arab. J. Sci. Eng. 2019, 44, 8205–8223. [Google Scholar] [CrossRef]
- Gharbi, A.; Haddadi, S. Application of the mobile GIS for the improvement of the knowledge and the management of the road network. Appl. Geomat. 2020, 12, 23–39. [Google Scholar] [CrossRef]
- Zhang, M.; Kecojevic, V.; Komljenovic, D. Investigation of haul truck-related fatal accidents in surface mining using fault tree analysis. Saf. Sci. 2014, 65, 106–117. [Google Scholar] [CrossRef]
- Debnath, P. A QGIS-Based Road Network Analysis for Sustainable Road Network Infrastructure: An Application to the Cachar District in Assam, India. Infrastructures 2022, 30, 114. [Google Scholar] [CrossRef]
- Briz-Redón, Á.; Martínez-Ruiz, F.; Montes, F. Spatial analysis of traffic accidents near and between road intersections in a directed linear network. Accid. Anal. Prev. 2019, 132, 105252. [Google Scholar] [CrossRef] [PubMed]
- Chung, W.; Abdel-Aty, M.; Lee, J. Spatial analysis of the effective coverage of land-based weather stations for traffic crashes. Appl. Geogr. 2018, 90, 17–27. [Google Scholar] [CrossRef]
- Wang, B.; Lin, Y.; Guo, S.; Wan, H. GSNet: Learning Spatial-Temporal Correlations from Geographical and Semantic Aspects for Traffic Accident Risk Forecasting. Proc. AAAI Conf. Artif. Intell. 2021, 35, 4402–4409. [Google Scholar] [CrossRef]
- Al-Omari, A.; Shatnawi, N.; Khedaywi, T.; Miqdady, T. Prediction of traffic accidents hot spots using fuzzy logic and GIS. Appl. Geomat. 2020, 12, 149–161. [Google Scholar] [CrossRef]
- Su, J.-M.; Wang, Y.-M.; Chang, C.; Wu, P.-J. Application of a Geographic Information System to Analyze Traffic Accidents Using Nantou County, Taiwan, as an Example. J. Indian Soc. Remote Sens. 2019, 47, 101–111. [Google Scholar] [CrossRef]
- Zhu, A.; Lu, G.; Liu, J.; Qin, C.; Zhou, C. Spatial prediction based on Third Law of Geography. Ann. GIS 2018, 24, 225–240. [Google Scholar] [CrossRef]
- Ferro-Diez, L.E.; Villegas, N.M.; Diaz-Cely, J.; Acosta, S.G. Geo-Spatial Market Segmentation & Characterization Exploiting User Generated Text Through Transformers & Density-Based Clustering. IEEE Access 2021, 9, 55698–55713. [Google Scholar] [CrossRef]
- Curtis, A.; Curtis, J.W.; Ajayakumar, J.; Jefferis, E.; Mitchell, S. Same space—Different perspectives: Comparative analysis of geographic context through sketch maps and spatial video geonarratives. Int. J. Geogr. Inf. Sci. 2019, 33, 1224–1250. [Google Scholar] [CrossRef]
- Singleton, A.; Arribas-Bel, D. Geographic Data Science. Geogr. Anal. 2021, 53, 61–75. [Google Scholar] [CrossRef]
- Guhaniyogi, R.; Banerjee, S. Meta-Kriging: Scalable Bayesian Modeling and Inference for Massive Spatial Datasets. Technometrics 2018, 60, 430–444. [Google Scholar] [CrossRef]
- Malik, K.R.; Habib, M.A.; Khalid, S.; Ahmad, M.; Alfawair, M.; Ahmad, A.; Jeon, G. A generic methodology for geo-related data semantic annotation. Concurr. Comput. 2018, 30, e4495. [Google Scholar] [CrossRef]
- Cho, J.; You, S.C.; Lee, S.; Park, D.; Park, B.; Hripcsak, G.; Park, R.W. Application of Epidemiological Geographic Information System: An Open-Source Spatial Analysis Tool Based on the OMOP Common Data Model. Int. J. Environ. Res. Public Health 2020, 17, 7824. [Google Scholar] [CrossRef]
- Hinojosa Reyes, R.; Varela Sanchez, G.; Campos Alanís, J. Población en riesgo: Análisis espacio—Temporal de accidentes viales, mediante el uso de herramientas sig en el municipio de toluca, estado de méxico, 2000–2005. GeoFocus Rev. Int. Cienc. Tecnol. Inf. Geogr. 2019, 23, 49–69. [Google Scholar] [CrossRef]
- Sordo, L.; Córdoba, R.; Gual, A.; Sureda, X. Límites para el consumo de bajo riesgo de alcohol en función de la mortalidad asociada. Rev. Esp. Salud Publica 2020, 94, e202011167. [Google Scholar]
- Pauer, G.; Sipos, T.; Török, Á. Statistical analysis of the effects of disruptive factors of driving in simulated environment. Transport 2019, 34, 1–8. [Google Scholar] [CrossRef]
- Klinjun, N.; Kelly, M.; Praditsathaporn, C.; Petsirasan, R. Identification of Factors Affecting Road Traffic Injuries Incidence and Severity in Southern Thailand Based on Accident Investigation Reports. Sustainability 2021, 13, 12467. [Google Scholar] [CrossRef]
- Saha, D.; Dumbaugh, E.; Merlin, L.A. A conceptual framework to understand the role of built environment on traffic safety. J. Safety Res. 2020, 75, 41–50. [Google Scholar] [CrossRef]
- Pagany, R. Wildlife-vehicle collisions—Influencing factors, data collection and research methods. Biol. Conserv. 2020, 251, 108758. [Google Scholar] [CrossRef]
- MOP. Normas de Diseño Geométrico. 2003. Available online: https://es.scribd.com/doc/64165603/Normas-de-Diseno-Geometrico-2003 (accessed on 20 May 2025).
- Jia, R.; Khadka, A.; Kim, I. Traffic crash analysis with point-of-interest spatial clustering. Accid. Anal. Prev. 2018, 121, 223–230. [Google Scholar] [CrossRef] [PubMed]
- Ord, J.K.; Getis, A. Local Spatial Autocorrelation Statistics: Distributional Issues and an Application. Geogr. Anal. 1995, 27, 286–306. [Google Scholar] [CrossRef]
- Esri. How Hot Spot Analysis (Getis-Ord Gi*) Works. Available online: https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-statistics/h-how-hot-spot-analysis-getis-ord-gi-spatial-stati.htm (accessed on 19 April 2025).
- Le, K.G.; Liu, P.; Lin, L.T. Traffic accident hotspot identification by integrating kernel density estimation and spatial autocorrelation analysis: A case study. Int. J. Crashworthiness 2022, 27, 543–553. [Google Scholar] [CrossRef]
- Hyndman, R.J.; Athanasopoulos, G. Forecasting: Principles and Practice, 2nd ed.; OTexts: Melbourne, Australia, 2018; Available online: https://otexts.com/fpp2/ (accessed on 20 April 2025).
- Taylor, S.J.; Letham, B. Forecasting at Scale. Am. Stat. 2018, 72, 37–45. [Google Scholar] [CrossRef]
- Karim, F.; Majumdar, S.; Darabi, H.; Chen, S. LSTM Fully Convolutional Networks for Time Series Classification. IEEE Access 2017, 6, 1662–1669. [Google Scholar] [CrossRef]
- Gneiting, T.; Raftery, A.E. Strictly proper scoring rules, prediction, and estimation. J. Am. Stat. Assoc. 2007, 102, 359–378. [Google Scholar] [CrossRef]
- INEC. Boletín Técnico N° 02-2024-ENEMDU Pobreza y Desigualdad. January 2024. Available online: https://www.ecuadorencifras.gob.ec/documentos/web-inec/POBREZA/2023/Diciembre/202312_Boletin_pobreza_ENEMDU.pdf (accessed on 19 April 2025).
Condition | Results (Point 1) | MOP Norm (2003) | Compliance | Observation |
---|---|---|---|---|
Design Speed (km/h) | 70–110 | 100–80 | Does not comply | The variable speed between 70 km/h and 110 km/h exceeded the recommended limits. |
Minimum Curvature Radius (m) | Curves 1, 2, 4–13: 210 | 210 | Complies | All curves allow for the turning of heavy vehicles. |
Curve 3 Radius (m) | 140 | 210 | Does not comply | Requires speed reduction to avoid lane departure. |
Stopping Sight Distance (m) | Multiple segments | 110 | Mixed compliance | Certain sections fail to provide an adequate stopping distance. |
Overtaking Sight Distance (m) | Multiple segments | 565 | Does not comply | Critical crash points owing to the inability to safely overtake at speeds > 80 km/h. |
Cross Slope (%) | 6% | Max. 10% | Complies | Adequate for flat and undulating terrain. |
Vertical Curves (Convex) | Multiple segments | 60 | Complies | No visibility issues were observed in the vertical curves. |
Vertical Curves (Concave) | Multiple segments | 38 | Complies | No visibility issues on vertical curves. |
Longitudinal Gradients (%) | 0.09–1.18% | 0.5–4% | Complies | Adequate gradients and absence of geometric issues. |
Pavement Width (m) | 9.00 | 7.30 | Complies | The widths of the lanes exceeded the minimum requirement. |
Shoulder Width (m) | 3.00 | 2.50–3.00 | Complies | Shoulder width met the MOP norm. |
Category | Specific Factor | Description | Reference |
---|---|---|---|
Human factors | Driver distraction | Includes mobile phone use, fatigue, inattention, and lack of experience, which reduce response time. | [4,5] |
Speeding | Driving over the allowed limit, especially on curves or downhill segments. | [5,20] | |
Alcohol consumption | Frequently reported in rural contexts, impairing motor skills and judgment. | [3] | |
Vehicle-related factors | Mechanical failures | Brake issues, tire problems, and malfunctioning lights contribute to loss of vehicle control. | [5] |
Environmental factors | Heavy rain and fog | Adverse weather reduces visibility and increases road slipperiness. | [6,27] |
Road infrastructure | Inadequate signage | Absence or poor condition of vertical and horizontal signs in critical areas. | [10,19] |
Road geometry | Sharp curves, steep gradients, and narrow shoulders complicate vehicle handling. | [4,7,29] | |
Institutional factors | Limited enforcement and surveillance | Weak traffic monitoring, especially during high-risk hours or adverse conditions. | [5,45] |
Year | Types of Crashes | Number of Incidents | Description |
---|---|---|---|
2017 | Angular side impact | 1 | Driving inattentively to traffic conditions. |
Loss of track | 2 | Foreseeable mechanical damage and environmental and/or atmospheric conditions (fog, mist, hail, and rain). | |
Crashes | 2 | Failure to yield the right-of-way to pedestrians or driving inattentively to traffic conditions. | |
2018 | Angular side impact | 1 | Environmental and/or atmospheric conditions (fog, mist, hail, and rain). |
Loss of track | 3 | Environmental and/or atmospheric conditions; failure to yield the right-of-way to pedestrians; driving while drowsy or in poor physical condition (sleepiness, tiredness, and fatigue). | |
Crash | 1 | Driving inattentively to traffic conditions. | |
2019 | Crashes | 2 | Driving a vehicle in excess of maximum speed limits, poor road conditions, and/or configuration. |
Head-on collision | 1 | Driving a vehicle in excess of the maximum speed limits. | |
Rear-end collision | 2 | Driving inattentively to traffic conditions. | |
2021 | Loss of traffic lane and lateral overturning | 1 | Driving inattentively to traffic conditions. |
2023 | Eccentric frontal shock | 2 | Failure to obey traffic signs; driving under the influence of alcohol. |
Rear-end collision | 1 | Failure to pay attention while driving. | |
Longitudinal frontal impact | 1 | Failure to pay attention while driving. |
Crash Types | Percentage |
---|---|
Perpendicular Side Collision | 27.3% |
Pedestrian Collision with People | 14.5% |
Rear-end Collision | 12.7% |
Overturning | 7.3% |
Collision with an Animal | 5.5% |
Ditching | 5.5% |
Longitudinal Frontal Collision | 3.6% |
Lane Departure | 3.6% |
Angular Side Collision | 1.8% |
Collision Between a Pickup Truck and Motorcycle | 1.8% |
Crash | 1.8% |
Eccentric Frontal Collision | 1.8% |
Frontal Collision | 1.8% |
Lane Departure and Lateral Overturn | 1.8% |
Lateral Overturning | 1.8% |
Motorized Vehicle and Cyclist | 1.8% |
Pedestrian Collision | 1.8% |
Run off-road | 1.8% |
Run-over | 1.8% |
Model | RMSE | MAE | Estimated Accuracy |
---|---|---|---|
ARIMA | 1.18 | 0.46 | 87.6% |
Prophet | 0.47 | 0.34 | 90.8% |
LSTM | 1.06 | 0.83 | 88.2% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Moreno-Ponce, L.A.; Pérez-Zuriaga, A.M.; García, A. Predictive Models and GIS for Road Safety: Application to a Segment of the Chone–Flavio Alfaro Road. Sustainability 2025, 17, 5032. https://doi.org/10.3390/su17115032
Moreno-Ponce LA, Pérez-Zuriaga AM, García A. Predictive Models and GIS for Road Safety: Application to a Segment of the Chone–Flavio Alfaro Road. Sustainability. 2025; 17(11):5032. https://doi.org/10.3390/su17115032
Chicago/Turabian StyleMoreno-Ponce, Luis Alfonso, Ana María Pérez-Zuriaga, and Alfredo García. 2025. "Predictive Models and GIS for Road Safety: Application to a Segment of the Chone–Flavio Alfaro Road" Sustainability 17, no. 11: 5032. https://doi.org/10.3390/su17115032
APA StyleMoreno-Ponce, L. A., Pérez-Zuriaga, A. M., & García, A. (2025). Predictive Models and GIS for Road Safety: Application to a Segment of the Chone–Flavio Alfaro Road. Sustainability, 17(11), 5032. https://doi.org/10.3390/su17115032