Traffic accident severity prediction based on an enhanced MSCPO-XGBoost hybrid model

Abstract Road traffic accidents pose a significant threat to public safety in China. This study proposes a novel severity prediction framework based on a Modified Stochastic Crested Porcupine Optimizer (MSCPO) combined with the XGBoost algorithm. The model was trained on 4287 accident cases from Chi...

Full description

Saved in:
Bibliographic Details
Main Authors: Fei Chen, Xiang Qun Liu, Jian Jun Yang, Xu Kang Liu, Jing Hui Ma, Jia Chen, Hua Yu Xiao
Format: Article
Language:English
Published: Nature Portfolio 2025-07-01
Series:Scientific Reports
Subjects:
Online Access:https://doi.org/10.1038/s41598-025-00797-7
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:Abstract Road traffic accidents pose a significant threat to public safety in China. This study proposes a novel severity prediction framework based on a Modified Stochastic Crested Porcupine Optimizer (MSCPO) combined with the XGBoost algorithm. The model was trained on 4287 accident cases from China’s National Automobile Accident In-depth Investigation System (NAIS), collected between 2018 and 2023. The dataset was first divided into training and testing sets, and the Synthetic Minority Oversampling Technique (SMOTE) was applied only to the training set to address class imbalance. The MSCPO algorithm was then employed to optimize XGBoost hyperparameters. Comparative experiments demonstrate that the MSCPO-XGBoost model outperforms baseline algorithms including SVM, Random Forest, BP Neural Network, and CNN, achieving an accuracy of 83.57%, a recall of 85.23%, an F1-score of 84.30%, and an AUC of 92.82%. To enhance interpretability, SHAP analysis was used to identify key predictors such as engine displacement, vehicle mass, traffic signals, and driver age. The findings offer valuable guidance for traffic safety policymaking and demonstrate the potential of integrating real-time severity prediction into intelligent traffic management systems.
ISSN:2045-2322