Road Accident Severity Classification in Thailand Using K-Means Clustering and Decision Tree Techniques
Keywords:
Road accidents, , K-Means, Decision tree, Data mining, Road safetyAbstract
This research aims to analyze road accident patterns in Thailand and identify factors influencing accident severity using data mining techniques, including K-Means clustering and Decision Tree classification. The dataset used in this study consists of 81,744 accident records obtained from the Open Government Data of Thailand.
The results of K-Means clustering indicate that the optimal number of clusters is four (k = 4), which effectively categorizes road accidents into four major groups: (1) Multi-vehicle accidents with moderate to high severity, (2) Minor accidents with low severity, (3) Fatal accidents with high severity, and (4) Injury-related accidents with moderate severity. Subsequently, a Decision Tree model was employed to extract decision rules (If–Then rules), where accident severity was defined as the target variable, while temporal factors, road characteristics, vehicle types, and environmental conditions were used as independent variables.
Model performance was evaluated using 10-fold cross-validation, which achieved an Accuracy of 85%, Precision of 85%, Recall of 85%, and an F1-score of 84%, indicating that the model is capable of effectively explaining road accident patterns. The findings of this study can serve as empirical evidence to support road safety policy formulation and the development of preventive measures by relevant authorities. Furthermore, this research provides guidelines for the future application of machine learning and deep learning techniques to enhance road safety management and accident prevention strategies.
References
กรมการขนส่งทางบก. (2565). แผนปฏิบัติราชการระยะ 5 ปี (พ.ศ. 2566 -2570). กระทรวงคมนาคม.
กรมการขนส่งทางบก. (2566). รายงานสถิติอุบัติเหตุทางถนนประเทศไทย ปี 2566. กระทรวงคมนาคม.
ประจักษ์ เฉิดโฉม. (2024). การวิเคราะห์ปัจจัยที่มีอิทธิพลต่ออุบัติเหตุจราจร ปี พ. ศ. 2565 ด้วยเทคนิคเหมือง ข้อมูลกฎความสัมพันธ์: Analysis of Factors Influencing Traffic Accidents in 2022: A Data Mining Approach Using Apriori Algorithm. ว.ด้านการบริหารรัฐกิจและการเมือง. 13(1), 26-39.
ภัณฑิรา มาติยา, ภุมรัตน์ อยู่สุข และ สุพาพร บรรดาศักดิ์. (2023). การวิเคราะห์ความเสี่ยงที่จะเสียชีวิตในเส้นทางการเดินทางจากอุบัติเหตุจราจรทางบกโดยใช้เทคนิคเหมืองข้อมูล. ว.วิชาการวิทยาศาสตร์ และ เทคโนโลยี มหาวิทยาลัย ราชภัฏ ธนบุรี. 1(1), 89-102.
วิไลลักษณ์ ตรีพืช. (2562). การวิเคราะห์ข้อมูลผู้บาดเจ็บและเสียชีวิตจากอุบัติเหตุในช่วงเทศกาลสงกรานต์โดยใช้เทคนิคการทำเหมืองข้อมูล. ว.วิจัยและพัฒนาวไลยอลงกรณ์ ในพระบรมราชูปถัมภ์ สาขาวิทยาศาสตร์และเทคโนโลยี. 14(1), 11–20.
ศูนย์กลางข้อมูลเปิดภาครัฐ. (2568). อุบัติเหตุบนโครงข่ายถนนของกระทรวงคมนาคม. สำนักงานพัฒนารัฐบาลดิจิทัล (องค์การมหาชน). https://data.go.th/dataset/gdpublish-Roadaccident
ศูนย์อำนวยการความปลอดภัยทางถนน. (2565). รายงานสถานการณ์อุบัติเหตุทางถนนของประเทศไทย.กระทรวงมหาดไทย.
สมชาย กิตติพงศ์ และ อรพิน ทิพย์ประเสริฐ. (2565). การวิเคราะห์อุบัติเหตุทางถนนด้วยแบบจำลองการตัดสินใจ. ว.วิศวกรรมศาสตร์ มหาวิทยาลัยเชียงใหม่. 29(3), 145–160.
สำนักงานตำรวจแห่งชาติ. (2564). แผนยุทธศาสตร์การบังคับใช้กฎหมายจราจรเพื่อความปลอดภัยทางถนน. ผู้แต่ง.
สำนักงานตำรวจแห่งชาติ. (2565). รายงานการเกิดอุบัติเหตุบนท้องถนนประเทศไทย 2562–2565. ผู้แต่ง.
สำนักนโยบายและแผนการขนส่งและจราจร. (2563). แผนแม่บทความปลอดภัยทางถนนของประเทศไทย พ.ศ. 2563–2575. กระทรวงคมนาคม.
สำนักนโยบายและแผนการขนส่งและจราจร. (2565). การวิเคราะห์แนวโน้มอุบัติเหตุทางถนนของประเทศไทยเพื่อการกำหนดนโยบายด้านความปลอดภัยทางถนน. กระทรวงคมนาคม.
Han, J., Pei, J., & Kamber, M. (2022). Data Mining: Concepts and Techniques (4th ed.). Morgan Kaufmann.
Jain, A. K. (2010). Data clustering: 50 years beyond K-Means. Pattern Recognition Letters. 31(8), 651–666. https://doi.org/10.1016/j.patrec.2009.09.011
Mourad, A. (2021). An intelligent data-driven approach for traffic accident pattern discovery and prediction. Journal of Transportation Safety & Security. 13(4), 477–495. https://doi.org/10.1080/19439962.2019.1615482
Quinlan, J. R. (1993). C4.5: Programs for Machine Learning. Morgan Kaufmann.
Rahman, N. A., Haron, H., & Mohd, M. (2020). Road accident analysis using K-Means clustering and decision tree techniques. International Journal of Advanced Computer Science and Applications. 11(7), 124–132. https://doi.org/10.14569/IJACSA.2020.0110716
Singh, R., & Kaur, P. (2022). Road accident severity prediction using machine learning algorithms: A comparative analysis. International Journal of Intelligent Transportation Systems Research. 20(2), 213–226. https://doi.org/10.1007/s13177-021-00261-9
World Health Organization. (2023). Global Status Report on Road Safety 2023. Author.
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
บทความ ข้อความ ภาพประกอบ และตารางประกอบที่ลงพิมพ์ในวารสารเป็นความคิดเห็นส่วนตัวของผู้นิพนธ์ กองบรรณาธิการไม่จำเป็นต้องเห็นตามเสมอไป และไม่มีส่วนรับผิดชอบใดๆ ถือเป็นความรับผิดชอบของผู้นิพนธ์เพียงผู้เดียว