journal article·2025-12-04Open access

A Machine Learning Approach to Identify High-Risk Road Segments and Accident Severity Patterns Based on Categorical Data

Ahmet Yumak, Safak Hengirmen Tercan, Umut Can Colak, Sedat Ozcanan

Applied Sciences· Volume 15· Issue 23

Abstract

Traffic accidents remain a major public safety concern, particularly in regions where rapid motorization and limited infrastructure increase crash risk. This study proposes a machine learning-based framework to classify traffic accident severity and identify high-risk road segments using multidimensional crash data from Şırnak Province, Turkey. The dataset, obtained from the General Directorate of Security (EGM), contains 29 variables describing traffic, geometric, and operational roadway characteristics for crashes reported between 2018 and 2023. Due to the severe imbalance between injury and fatal crashes, the Synthetic Minority Oversampling Technique (SMOTE) was applied to enhance model sensitivity to the minority class. Five classifiers—Logistic Regression (LR), Support Vector Machines (SVM), Multilayer Perceptron (MLP), Random Forest (RF), and Extreme Gradient Boosting (XGBoost)—were trained and evaluated using accuracy, F1-score, ROC-AUC, and alarm metrics. Results from the original dataset showed that several models struggled to detect fatal crashes, while LR demonstrated moderate sensitivity. After SMOTE, performance improved across all models. XGBoost achieved the highest F1-score (0.61) with the lowest False Alarm rate (0.01), followed by RF and MLP, whereas SVM and LR yielded comparatively lower accuracy. Computation time analysis indicated that LR and SVM had the fastest runtimes, while MLP and XGBoost required longer training times. Overall, findings highlight the effectiveness of ensemble models—particularly XGBoost—in capturing critical crash patterns and supporting risk-based decision-making. Future work should incorporate time-series analysis and GIS-based spatial modeling to further enhance predictive capability and inform geographically targeted safety interventions.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Traffic and Road Safety · Traffic Prediction and Management Techniques · Autonomous Vehicle Technology and Safety

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Civil Engineering, Hasan Kalyoncu University, 27010 Gaziantep, Turkey

Independent Researcher, Asagi Nohutlu Mahallesi, Huzni Sokak, No:6 Daire:1, 66000 Merkez-Yozgat, Turkey

Department of Civil Engineering, M. Emin Acar Campus, Sirnak University, 73000 Sirnak, Turkey

Funding

Şırnak University

References (47)

Show source-provided references
1. World Health Organization (2023). Global Status Report on Road Safety 2023, World Health Organization. Available online: https://www.who.int/teams/social-determinants-of-health/safety-and-mobility/global-status-report-on-road-safety-2023.
2. World Health Organization (2023). Road Traffic Injuries [Fact Sheet], World Health Organization. Available online: https://www.who.int/news-room/fact-sheets/detail/road-traffic-injuries.
3. Bokaba, T., Doorsamy, W., and Paul, B.S. (2022). Comparative Study of Machine Learning Classifiers for Modelling Road Traffic Accidents. Appl. Sci., 12.10.3390/app12020828 ↗
4. Mostafa, A.M., Aldughayfiq, B., Tarek, M., Alaerjan, A.S., Allahem, H., Elbashir, M.K., and Ezz, M. (2025). AI-Based Prediction of Traffic Crash Severity for Improving Road Safety and Transportation Efficiency. Sci. Rep., 15.10.1038/s41598-025-10970-7 ↗
5. Skaug, L., Nojoumian, M., Dang, N., and Yap, A. (2025). Road Crash Analysis and Modeling: A Systematic Review of Methods, Data, and Emerging Technologies. Appl. Sci., 15.10.3390/app15137115 ↗
6. Speed Violation Analysis of Heavy Vehicles on Highways Using Spatial Analysis and Machine Learning Algorithms10.1016/j.aap.2021.106098 ↗
7. Physics-informed deep learning for virtual rail train trajectory following control10.1016/j.ress.2025.111092 ↗
8. Infante, P., Jacinto, G., Afonso, A., Rego, L., Nogueira, P., Silva, M., Nogueira, V., Saias, J., Quaresma, P., and Santos, D. (2023). Factors That Influence the Type of Road Traffic Accidents: A Case Study in a District of Portugal. Sustainability, 15.10.3390/su15032352 ↗
9. Rella Riccardi, M., Galante, F., Scarano, A., and Montella, A. (2022). Econometric and Machine Learning Methods to Identify Pedestrian Crash Patterns. Sustainability, 14.10.3390/su142215471 ↗
10. Prediction of Road Accident Severity Using the Ordered Probit Model10.1016/j.trpro.2014.10.107 ↗
11. Effects of Roadway and Traffic Characteristics on Accidents Frequency at City Entrance Zone
12. Farklı Yöntemler Kullanılarak Geliştirilen Trafik Kaza Tahmin Modelleri ve Analizi
13. Lin, L., Wang, Q., and Sadek, A.W. (2025, May 17). Novel Machine Learning Methods for Accident Data Analysis, Available online: https://rosap.ntl.bts.gov/view/dot/40076.
14. Li, L., Shrestha, S., and Hu, G. (2017, January 7–9). Analysis of Road Traffic Fatal Accidents Using Data Mining Techniques. Proceedings of the 2017 IEEE 15th International Conference on Software Engineering Research, Management and Applications (SERA), London, UK.10.1109/SERA.2017.7965753 ↗
15. Vilaça, M., Macedo, E., and Coelho, M.C. (2019). A Rare Event Modelling Approach to Assess Injury Severity Risk of Vulnerable Road Users. Safety, 5.10.3390/safety5020029 ↗
16. Kim, D., Jung, S., and Yoon, S. (2021). Risk Prediction for Winter Road Accidents on Expressways. Appl. Sci., 11.10.3390/app11209534 ↗
17. Tang, J., Huang, Y., Liu, D., Xiong, L., and Bu, R. (2025). Research on Traffic Accident Severity Level Prediction Model Based on Improved Machine Learning. Systems, 13.10.3390/systems13010031 ↗
18. Advancements in Machine Learning for Traffic Accident Severity Prediction: A Comprehensive Review10.3311/PPtr.40369 ↗
19. Pourroostaei Ardakani, S., Liang, X., Mengistu, K.T., So, R.S., Wei, X., He, B., and Cheshmehzangi, A. (2023). Road Car Accident Prediction Using a Machine-Learning-Enabled Data Analysis. Sustainability, 15.10.3390/su15075939 ↗
20. Islam, M.K., Reza, I., Gazder, U., Akter, R., Arifuzzaman, M., and Rahman, M.M. (2022). Predicting Road Crash Severity Using Classifier Models and Crash Hotspots. Appl. Sci., 12.10.3390/app122211354 ↗
21. A Study on Road Accident Prediction and Contributing Factors Using Explainable Machine Learning Models: Analysis and Performance
22. Al-Mistarehi, B.W., Alomari, A.H., Imam, R., and Mashaqba, M. (2022). Using Machine Learning Models to Forecast Severity Level of Traffic Crashes by R Studio and ArcGIS. Front. Built Environ., 8.10.3389/fbuil.2022.860805 ↗
23. Traffic Accident Severity Prediction with Ensemble Learning Methods10.1016/j.compeleceng.2024.109101 ↗
24. Trafik Kazalarının Makine Öğrenmesi Yöntemleri Kullanılarak Değerlendirilmesi
25. Traffic Accident Analysis and Prediction Using Machine Learning10.55248/gengpi.6.0625.2386 ↗
26. Deep Spatio-Temporal Graph Convolutional Network for Traffic Accident Prediction10.1016/j.neucom.2020.09.043 ↗
27. Modern Data Sources and Techniques for Analysis and Forecast of Road Accidents: A Review
28. Development of Models to Study Traffic Accidents on the Final Sections of Access Roads to the Cities: A Case Study of Three Major Iranian Cities10.5604/01.3001.0015.2646 ↗
29. Machine Learning Models for Road Accident Prediction for Smart Cities: A Comprehensive Analysis
30. Black Spots Identification on Rural Roads Based on Extreme Learning Machine10.11591/ijece.v13i3.pp3149-3160 ↗
31. Amorim, B.d.S.P., Firmino, A.A., Baptista, C.d.S., Júnior, G.B., Paiva, A.C.d., and Júnior, F.E.d.A. (2023). A Machine Learning Approach for Classifying Road Accident Hotspots. ISPRS Int. J. Geo-Inf., 12.10.3390/ijgi12060227 ↗
32. Santos, D., Saias, J., Quaresma, P., and Nogueira, V.B. (2021). Machine Learning Approaches to Traffic Accident Analysis and Hotspot Prediction. Computers, 10.10.3390/computers10120157 ↗
33. Prediction of Fatal Traffic Accidents Using One-Class SVMs: A Case Study in Eskisehir, Turkey10.1080/13588265.2021.1959168 ↗
34. Evaluating the Effectiveness of Machine Learning Techniques in Forecasting the Severity of Traffic Accidents10.1016/j.heliyon.2023.e18812 ↗
35. Enhancing Traffic Accident Severity Prediction Using ResNet and SHAP for Interpretability10.3390/ai5040124 ↗
36. Acı, Ç.İ., Mutlu, G., Ozen, M., and Acı, M. (2025). Enhanced Multi-Class Driver Injury Severity Prediction Using a Hybrid Deep Learning and Random Forest Approach. Appl. Sci., 15.10.3390/app15031586 ↗
37. Jiang, Y., Qu, X., Zhang, W., Guo, W., Xu, J., Yu, W., and Chen, Y. (2025). Analyzing Crash Severity: Human Injury Severity Prediction Method Based on Transformer Model. Vehicles, 7.10.3390/vehicles7010005 ↗
38. Arciniegas-Ayala, C., Marcillo, P., Valdivieso Caraguay, L.Á., and Hernández-Álvarez, M. (2024). Prediction of Accident Risk Levels in Traffic Accidents Using Deep Learning and Radial Basis Function Neural Networks Applied to a Dataset with Information on Driving Events. Appl. Sci., 14.10.3390/app14146248 ↗
39. Forecasting Road Accidents Using Deep Learning Approach: Policies to Improve Road Safety
40. Aldhari, I., Almoshaogeh, M., Jamal, A., Alharbi, F., Alinizzi, M., and Haider, H. (2023). Severity Prediction of Highway Crashes in Saudi Arabia Using Machine Learning Techniques. Appl. Sci., 13.10.3390/app13010233 ↗
41. An Automated Approach for Predicting Road Traffic Accident Severity Using Transformer Learning and Explainable AI Technique10.1109/ACCESS.2024.3380895 ↗
42. SMOTE: Synthetic Minority Over-Sampling Technique10.1613/jair.953 ↗
43. Mengistu, A.K., Gedefaw, A.E., Baykemagn, N.D., Walle, A.D., Yehuala, T.Z., Alemayehu, M.A., and Assaye, B.T. (2025). Predicting Car Accident Severity in Northwest Ethiopia: A Machine Learning Approach Leveraging Driver, Environmental, and Road Conditions. Sci. Rep., 15.10.1038/s41598-025-08005-2 ↗
44. An Empirical Comparison and Evaluation of Minority Oversampling Techniques on a Large Number of Imbalanced Datasets10.1016/j.asoc.2019.105662 ↗
45. Prediction and Interpretation of Crash Severity Using Machine Learning Based on Imbalanced Traffic Crash Data10.1016/j.jsr.2025.02.018 ↗
46. (2025, October 09). Wikipedia. Available online: https://en.wikipedia.org/wiki/F-score.
47. (2025, July 25). Scikit-Learn. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html.