Bulletin of Network Engineer and Informatics (BUFNETS)
Vol. 4 No. 2 (2026): BUFNETS (Bulletin of Network Engineer and Informatics) October 2026

Application of the Forward Selection and ADASYN Methods in the K-Nearest Neighbor (KNN) Algorithm for Traffic Accident Data Classification

Agus Tri Waluyo (Department of Informatics Engineering, Universitas Muhammadiyah Kalimantan Timur, Indonesia)
Taghfirul Azhima Yoga Siswa (Department of Informatics Engineering, Universitas Muhammadiyah Kalimantan Timur, Indonesia)
Wawan Joko Pranoto (Department of Informatics Engineering, Universitas Muhammadiyah Kalimantan Timur, Indonesia)



Article Info

Publish Date
15 Oct 2026

Abstract

Traffic accidents are a serious problem that threaten public safety and cause material losses, particularly in Samarinda City, where the number of cases rose by 69.61% between 2021 and 2023. This study aims to improve the performance of a traffic-accident-severity classification model by optimizing the K-Nearest Neighbor (KNN) algorithm through a combination of Adaptive Synthetic Sampling (ADASYN) and Forward Selection. The dataset, obtained from accident reports of the Samarinda City Police for 2020–2024, consists of 2,385 records and 35 attributes, split using 10-fold cross-validation and evaluated with a confusion matrix. The standard KNN model achieved an accuracy of 79.61%, precision of 25.06%, recall of 23.81%, and an f1-score of 24.29%. After applying ADASYN, performance improved to an accuracy of 92.54%, precision of 93.08%, recall of 92.01%, and an f1-score of 92.50%. The largest gain occurred after Forward Selection narrowed the feature set to four attributes, yielding an accuracy of 99.62%, precision of 99.89%, recall of 99.34%, and an f1-score of 99.62%. These results demonstrate that combining ADASYN with Forward Selection significantly improves the classification performance of the KNN model in predicting traffic-accident severity, and offers an effective approach for future accident-severity prediction systems.

Copyrights © 2026






Journal Info

Abbrev

bufnets

Publisher

Subject

Computer Science & IT

Description

The Journal invites original articles and is not simultaneously submitted to another journal or conference. Scopes: Information Technology: Software Engineering, Knowledge and Data Mining, Multimedia Technologies, Mobile Computing, Parallel/Distributed Computing, Computer Graphics, Virtual Reality, ...