Severity prediction of traffic accidents with recent machine learning paradigms and SHAP

Abstract Traffic-related fatalities are among few leading causes of death worldwide. Crash severity prediction of traffic crashes has become a widespread research subject in recent years. Severity outcomes of crashes are usually influenced by factors such as humans, vehicles, roadway, weather, environment, and their interactions. A better understanding of crash-contributing circumstances and crash severity risk predictors is vital for the timely and effective implementation of appropriate mitigation measures. In the literature, various statistical methods have been widely adopted for crash severity modeling; however, such approaches are based on several underlying unrealistic assumptions, which, if violated, may lead to biased predictions. The current study aims to investigate the applicability of the state-of-the-art gradient boosting algorithm “XGBoost” for crash severity prediction of traffic crashes in the Al-Qassim region, Saudi Arabia. Crash severity classification performance of XGBoost was compared with two traditional machine learning algorithms, including Random Forest (RF) and Logistic Regression (LR), using different statistical measures including accuracy, recall, precision, F-1 scores, receiver operating characteristic (ROC) curves, and area under the curve (AUC). Empirical results revealed that all the models yielded acceptable predictive performance; however, XGBoost achieved the highest accuracy (90.5%), outperforming both the LR and RF models. Models’ comparison using performance metrics also demonstrated superior predictive performance of the XGBoost model. To address the infamous “lack of interpretation” issue frequently raised against the application of machine learning, this study also presents XGBoost-based feature sensitivity and ranking analysis. The results showed that predictors including accident type, weather conditions, number of vehicles involved, lighting conditions, accident cause, and time of the day (TOD) have a strong influence on the crash severity outcome of crashes. SHAP analysis was also performed to assess the consistency of severity risk factors with the XGBoost feature importance technique. The findings of this study are expected to provide crucial insights to safety practitioners and policy-makers for improving highway safety.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-09-29
DOI
https://doi.org/10.1038/s41598-026-73109-2
Primary Topic
Traffic and Road Safety
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Severity prediction of traffic accidents with recent machine learning paradigms and SHAP

Fawaz Alharbi, Meshal Almoshaogeh
Scientific Reports
Traffic and Road Safety
article

Severity prediction of traffic accidents with recent machine learning paradigms and SHAP

Fawaz Alharbi, Meshal Almoshaogeh
article en

Abstract

Abstract Traffic-related fatalities are among few leading causes of death worldwide. Crash severity prediction of traffic crashes has become a widespread research subject in recent years. Severity outcomes of crashes are usually influenced by factors such as humans, vehicles, roadway, weather, environment, and their interactions. A better understanding of crash-contributing circumstances and crash severity risk predictors is vital for the timely and effective implementation of appropriate mitigation measures. In the literature, various statistical methods have been widely adopted for crash severity modeling; however, such approaches are based on several underlying unrealistic assumptions, which, if violated, may lead to biased predictions. The current study aims to investigate the applicability of the state-of-the-art gradient boosting algorithm “XGBoost” for crash severity prediction of traffic crashes in the Al-Qassim region, Saudi Arabia. Crash severity classification performance of XGBoost was compared with two traditional machine learning algorithms, including Random Forest (RF) and Logistic Regression (LR), using different statistical measures including accuracy, recall, precision, F-1 scores, receiver operating characteristic (ROC) curves, and area under the curve (AUC). Empirical results revealed that all the models yielded acceptable predictive performance; however, XGBoost achieved the highest accuracy (90.5%), outperforming both the LR and RF models. Models’ comparison using performance metrics also demonstrated superior predictive performance of the XGBoost model. To address the infamous “lack of interpretation” issue frequently raised against the application of machine learning, this study also presents XGBoost-based feature sensitivity and ranking analysis. The results showed that predictors including accident type, weather conditions, number of vehicles involved, lighting conditions, accident cause, and time of the day (TOD) have a strong influence on the crash severity outcome of crashes. SHAP analysis was also performed to assess the consistency of severity risk factors with the XGBoost feature importance technique. The findings of this study are expected to provide crucial insights to safety practitioners and policy-makers for improving highway safety.

Scientific Reports
Qassim University (SA)
Good health and well-being
Openalex Percentile: Top 12%
Traffic and Road Safety
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.