Machine learning and SHAP-based explainability for accident severity prediction: evidence from a strategic road network in a developing country.
Rodrigo Aguiar Dos Santos, Álvaro Farias Pinheiro, Adelino Ferreira
CITTA - Research Centre for Territory, Transport and Environment, Department of Civil Engineering, University of Coimbra, Coimbra, Portugal. · Graduate Program in Law (PPGD), Federal University of Pernambuco (UFPE), Recife, Brazil.
Key points
From the paper's conclusion- The findings suggest that preserving the latent properties of original data, rather than artificial balancing, provides a more reliable foundation for safety interventions. The integration of XAI tools allowed for the decoding of complex "black box" models, providing actionable insights for transportation engineers and policymakers to prioritize infrastructure improvements and enforcement in emerging economies.
Abstract
OBJECTIVE: This study aims to develop an Explainable Artificial Intelligence (XAI) framework to classify and predict road accident severity on a strategic road network in a developing country. The research focuses on identifying the primary risk factors contributing to fatal and serious injuries to support "Vision Zero" policies. METHODS: Three machine learning algorithms-Random Forest (RF), XGBoost, and Artificial Neural Networks (ANN)-were trained using a dataset of traffic accidents from federal highways in Pernambuco, Brazil. The study specifically addressed data imbalance by comparing model performance on the original data distribution versus the Synthetic Minority Over-sampling Technique (SMOTE). To ensure transparency, the SHapley Additive exPlanations (SHAP) technique was applied to interpret the models' decision-making process. RESULTS: The Random Forest model, when applied to the original data distribution, demonstrated superior performance and methodological rigor, achieving an AUC-ROC of 0.952 and an F1-Score of 0.747. The SHAP analysis revealed that accident lethality is primarily driven by the synergy between single-lane roads, specific collision types (such as head-on collisions), and excessive speed. CONCLUSIONS: The findings suggest that preserving the latent properties of original data, rather than artificial balancing, provides a more reliable foundation for safety interventions. The integration of XAI tools allowed for the decoding of complex "black box" models, providing actionable insights for transportation engineers and policymakers to prioritize infrastructure improvements and enforcement in emerging economies.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Enhancing Road Safety through Advanced Machine Learning: A Comparative Study of Tree Ensembles, Neural Networks, and Integrated Models for Multi-class Accident Severity Prediction under Class ImbalanceInternational journal of intelligent engineering and systems · 2026
- A Computational Intelligence GNN–LSTM Framework for Spatiotemporal Prediction of Traffic Accident Severity in Smart Cities Using SHAP XAIInternational Journal of Computational Intelligence Systems · 2025
- Comparative evaluation of XGBoost, TabNet, and FT transformer models for fatal crash prediction under extreme class imbalanceScientific Reports · 2026
- Predicting Traffic Accident Injury Severity Using Ensemble Machine Learning Models: Incident Level and Generalized Insights via Explainable AIApplied System Innovation · 2026
- Prediction of Large-Scale Traffic Accident Severity in Qatar: A Binary Reformulation Approach for Extreme Class Imbalance with Interpretable AIFuture Transportation · 2026
- Urban Road Crash Severity Prediction Using Explainable Machine Learning and Spatial Hotspot Analysis: Evidence from Loja, EcuadorUrban Science · 2026