Traffic Accident Prediction Using Machine Learning Based on PT Jasa Raharja Data

Muhammad Fikri Utomo, Muhammad Fikry, Defry Hamdhana, Dahlan Abdullah, Nurdin Nurdin

Abstract


Traffic accidents represent a critical issue that significantly affects public safety and generates substantial social and economic impacts, particularly within the operational area of PT. Jasa Raharja Lhokseumawe Branch. The lack of predictive information regarding accident occurrences often results in reactive policy making. This study aims to develop a machine learning–based forecasting model for traffic accident rates using a combination of K-Means Clustering and Recurrent Neural Network (RNN). The dataset consists of historical traffic accident records from 2022 to 2024, which were preprocessed and aggregated on a weekly basis at the district level. K-Means Clustering was employed to group districts according to weekly accident patterns, resulting in two optimal clusters based on silhouette score evaluation. Subsequently, separate RNN models were developed for each cluster to forecast weekly accident occurrences. Model performance was evaluated using Mean Absolute Error (MAE), Mean Squared Error (MSE), and Root Mean Squared Error (RMSE). The results indicate that the RNN model achieved higher prediction accuracy for clusters with more stable accident patterns compared to clusters exhibiting higher fluctuation. Overall, the proposed combination of clustering and RNN demonstrates strong potential in producing accurate traffic accident forecasts


Keywords


Traffic Accidents; Forecasting; Machine Learning; K-Means Clustering; Recurrent Neural Network (RNN)

Full Text:

PDF

References


Ananta, M. A. F., & Sofro, A. (2025). Comparison of K-Means and K-Medoids Algorithms in Clustering Indonesian Provinces Using Stunting Handling Index. 9.

Apriyanti, N. P. R., Putra, I. K. G. D., & Putra, I. M. S. (2020a). Peramalan Jumlah Kecelakaan Lalu Lintas Menggunakan Metode Support Vector Regression. Jurnal Ilmiah Merpati (Menara Penelitian Akademika Teknologi Informasi), 72. https://doi.org/10.24843/JIM.2020.v08.i02.p01

Apriyanti, N. P. R., Putra, I. K. G. D., & Putra, I. M. S. (2020b). Peramalan Jumlah Kecelakaan Lalu Lintas Menggunakan Metode Support Vector Regression. Jurnal Ilmiah Merpati (Menara Penelitian Akademika Teknologi Informasi), 72. https://doi.org/10.24843/JIM.2020.v08.i02.p01

Chusyairi, A., & Ramadar Noor Saputra, P. (2019). Pengelompokan Data Puskesmas Banyuwangi Dalam Pemberian Imunisasi Menggunakan Metode K-Means Clustering. Telematika, 12(2), 139–148. https://doi.org/10.35671/telematika.v12i2.848

Enggarsasi, U., & Sa’diyah, N. K. (2017). KAJIAN TERHADAP FAKTOR-FAKTOR PENYEBAB KECELAKAAN LALU LINTAS DALAM UPAYA PERBAIKAN PENCEGAHAN KECELAKAAN LALU LINTAS. Perspektif, 22(3), 228. https://doi.org/10.30742/perspektif.v22i3.632

Huang, Y., Cheng, Z., Zhou, Q., Xiang, Y., & Zhao, R. (2020). Data Mining Algorithm for Cloud Network Information Based on Artificial Intelligence Decision Mechanism. IEEE Access, 8, 53394–53407. https://doi.org/10.1109/ACCESS.2020.2981632

Lusiana, A., & Yuliarty, P. (2020). PENERAPAN METODE PERAMALAN (FORECASTING) PADA PERMINTAAN ATAP di PT X. Industri Inovatif : Jurnal Teknik Industri, 10(1), 11–20. https://doi.org/10.36040/industri.v10i1.2530

Matdoan, M. Y., Purnamasari, N. A., & Laamena, N. S. (2023). Application of the K-Means Algorithm for Clustering Production of Capture Fisheries in Maluku Province. Pattimura International Journal of Mathematics (PIJMath), 2(2), 63–70. https://doi.org/10.30598/pijmathvol2iss2pp63-70

Ramadhan, A. Z. H., Rahayudi, B., & Ratnawati, D. E. (n.d.). PREDIKSI POLUSI UDARA DI DKI JAKARTA DENGAN MENGGUNAKAN METODE LONG-SHORT TERM MEMORY (LSTM).

Simon, G. (2025). Peramalan pendaftar mahasiswa baru dengan menggunakan metode moving average, weighted moving average dan exponential smoothing. Jurnal Teknik Industri Terintegrasi, 8(1), 13–21. https://doi.org/10.31004/jutin.v8i1.36423




DOI: http://dx.doi.org/10.30872/jim.v21i1.25392

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Informatika Mulawarman : Jurnal Ilmiah Ilmu Komputer

Editor Informatika Mulawarman Address:
ISSN 1858-4853 (Print) | ISSN 2597-4963 (Online)

Published by: Mulawarman University
Managed by : Informatika Department
Jalan Sambaliung No.9 Sempaja Selatan Samarinda Utara,
Kalimantan Timur 75117
 - Indonesia
E-mail: jim.unmul@gmail.com
OJS: http://e-journals.unmul.ac.id/index.php/JIM
Contact Person: Gubtha Mahendra Putra

 Creative Commons License

Informatika Mulawarman by http://e-journals.unmul.ac.id/index.php/JIM/index is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Under the CC BY-SA license, authors and other users are able to reprint, distribute or use the material for commercial purposes so long as they give attribution to the journal Informatika Mulawarman and license the republished material under the same license.