Traffic Accident Severity Prediction Based on Multi-Model Comparison

Authors

  • Ziyu Cao School of Computing and Data Science, Xiamen University Malaysia, Sepang, Selangor 43900, Malaysia

DOI:

https://doi.org/10.54097/4vtfnp20

Keywords:

Traffic Accident, Severity Prediction, Machine Learning, Model Comparison, Feature Importance

Abstract

Traffic accident severity prediction is important for improving traffic safety management and supporting risk assessment and prevention. However, current studies have several limitations with respect to the systematic approach for comparing models and the comprehensiveness of evaluation metrics. This paper aims to systematically assess the overall performance of various machine learning models on a unified experimental framework to predict the severity of accidents in a binary classification task. This study randomly sampled 500,000 records from the US Accidents dataset and used them as the experimental sample. Following data cleaning, missing value handling, feature engineering, and categorical variable encoding, a comparison of four representative models was performed: Logistic Regression (LR), Random Forest (RF), XGBoost and Multi-Layer Perceptron (MLP). With the imbalanced nature of the data, this paper evaluates model performance using accuracy, AUC, ROC curves, and confusion matrices to assess the overall classification performance of different models and their ability to identify the severe accident class. The results show that the tree-based ensemble models Random Forest and XGBoost outperform Logistic Regression and MLP in terms of overall predictive performance, with XGBoost exhibiting better overall performance. Variables that contribute significantly to the model’s predictions include traffic control facilities, time factors, spatial location, and accident-affected distance. The results indicate that machine learning techniques could be useful in traffic accident severity prediction and could be a reference for traffic safety risk assessment. Meanwhile, class imbalance, feature interpretability and model generalizability are challenges that need further investigation and resolution.

Downloads

Download data is not yet available.

References

[1] Sharafeldin, M., Farid, A., & Ksaibati, K. (2022). A random parameters approach to investigate injury severity of two-vehicle crashes at intersections. Sustainability, 14(21), 13821. https:// doi.org/10.3390/su142113821.

[2] World Health Organization. (2026). Road traffic injuries. https://www.who.int/news-room/fact-sheets/detail/road-traffic-injuries.

[3] Yan, M., & Shen, Y. (2022). Traffic accident severity prediction based on random forest. Sustainability, 14(3), 1729. https:// doi.org/10.3390/su14031729.

[4] Tang, J., Huang, Y., Liu, D., Xiong, L., & Bu, R. (2025). Research on traffic accident severity level prediction model based on improved machine learning. Systems, 13(1), 31. https:// doi.org/10.3390/systems13010031.

[5] Wada, Y., Asami, Y., Hino, K., Nishi, H., Shiode, S., & Shiode, N. (2023). Road junction configurations and the severity of traffic accidents in Japan. Sustainability, 15(3), 2722. https:// doi. org/10.3390/su15032722.

[6] Haleem, K., Alluri, P., & Gan, A. (2015). Analyzing pedestrian crash injury severity at signalized and non-signalized locations. Accident Analysis & Prevention, 81, 14–23. https://doi.org/ 10. 1016/ j.aap.2015.04.018.

[7] Ibtihal, S. A., & Rifaat, S. M. (2026). Crash occurrence and severity at railway level crossings in Bangladesh. Transportation Research Interdisciplinary Perspectives, 36, 101840. https://doi.org/10.1016/j.trdip.2026.101840.

[8] Sun, Z., Wang, J., Chen, Y., & Lu, H. (2018). Influence factors on injury severity of traffic accidents and differences in urban functional zones: The empirical analysis of Beijing. International Journal of Environmental Research and Public Health, 15(12), 2722. https://doi.org/10.3390/ijerph15122722.

[9] Jafari Anarkooli, A., & Hadji Hosseinlou, M. (2016). Analysis of the injury severity of crashes by considering different lighting conditions on two-lane rural roads. Journal of Safety Research, 56, 57–65. https://doi.org/10.1016/j.jsr.2015.12.003.

[10] Safari, M., Effati, M., & Arabani, M. (2024). Spatial analysis of daytime and nighttime crash severity on horizontal curves of mountainous rural highways: A case study in Northern Iran. Results in Engineering, 24, 103344. https://doi.org/10. 1016/j. rineng. 2024.103344.

[11] Zhang, K., & Hassan, M. (2019). Crash severity analysis of nighttime and daytime highway work zone crashes. PLOS ONE, 14(8), e0221128. https://doi.org/10. 1371/ journal. pone. 0221128.

[12] Tanishita, M., & Sekiguchi, Y. (2023). Impact analysis of road infrastructure and traffic control on injury severity of single- and multi-vehicle crashes. Sustainability, 15(17), 13191. https:// doi.org/10.3390/su151713191.

[13] Shaffiee Haghshenas, S., Guido, G., Vitale, A., & Astarita, V. (2023). Assessment of the level of road crash severity: Comparison of intelligence studies. Expert Systems with Applications, 234, 121118. https://doi.org/10. 1016/j. eswa. 2023. 121118.

[14] Alam, M. S., & Tabassum, N. J. (2023). Spatial pattern identification and crash severity analysis of road traffic crash hot spots in Ohio. Heliyon, 9(5), e16303. https://doi.org/ 10. 1016/ j. heliyon. 2023. e16303.

[15] Alsahfi, T. (2024). Spatial and temporal analysis of road traffic accidents in major Californian cities using a geographic information system. ISPRS International Journal of Geo-Information, 13(4), 157. https://doi.org/10.3390/ijgi13040157.

[16] Al-Ghamdi, A. S. (2002). Using logistic regression to estimate the influence of accident factors on accident severity. Accident Analysis & Prevention, 34(6), 729–741. https://doi.org/ 10. 1016/ s0001-4575(01)00073-9.

[17] Chen, Y. (2026). Research and analysis of traffic accident severity prediction based on data augmentation and feature interpretation. In Proceedings of the International Workshop on Advances in Deep Learning for Image Analysis and Computer Vision (IWADIC 2025) (pp. 685–692).

[18] Zhou, W. (2024). Traffic accident severity prediction based on data cleaning and machine learning (Random Forest / XGBoost). Highlights in Science, Engineering and Technology, 85, 376–388.

[19] Ruangkanjanases, A., Sivarak, O., Weng, Z.-J., Khan, A., & Chen, S.-C. (2024). Using multilayer perceptron neural network to assess the critical factors of traffic accidents. HighTech and Innovation Journal, 5(3), 157–169. https://doi. org/ 10.28991/hij-2024-05-03-01.

[20] Arhin, S. A., & Gatiba, A. (2020). Predicting crash injury severity at unsignalized intersections using support vector machines and naïve Bayes classifiers. Transportation Safety and Environment, 2(2), 120–132. https://doi.org/ 10. 1093/ tse/ tdaa011.

[21] Moosavi, S. (n.d.). US Accidents (2016–2023) [Dataset]. Kaggle. https://doi.org/10.34740/kaggle/ds/199387.

[22] Moosavi, S., Samavatian, M. H., Parthasarathy, S., & Ramnath, R. (2019). A countrywide traffic accident dataset. arXiv. https: // doi.org/10.48550/arXiv.1906.05409.

[23] Moosavi, S., Samavatian, M. H., Parthasarathy, S., Teodorescu, R., & Ramnath, R. (2019). Accident risk prediction based on heterogeneous sparse data: New dataset and insights. In Proceedings of the 27th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (pp. 33–42). https://doi.org/10.1145/3347146.3359078.

[24] Pourroostaei Ardakani, S., Liang, X., Mengistu, K. T., So, R. S., Wei, X., He, B., & Cheshmehzangi, A. (2023). Road car accident prediction using a machine-learning-enabled data analysis. Sustainability, 15(7), 5939. https://doi.org/ 10. 3390/ su15075939.

[25] Sameen, M., & Pradhan, B. (2017). Severity prediction of traffic accidents with recurrent neural networks. Applied Sciences, 7(6), 476. https://doi.org/10.3390/app7060476.

Downloads

Published

28-08-2026

Issue

Section

Articles

How to Cite

Cao, Z. (2026). Traffic Accident Severity Prediction Based on Multi-Model Comparison. Frontiers in Computing and Intelligent Systems, 17(3), 21-26. https://doi.org/10.54097/4vtfnp20