Analisis Perbandingan Algoritma Random Forest dan K-Nearest Neighbors pada Klasifikasi Tingkat Stres Pekerja
Building of Informatics, Technology and Science (BITS) · 02.09.2025 · 7 (2) · 972-983
DOI: 10.47065/bits.v7i2.7589 ↗Kurz gefasst
Fachartikel in der Zeitschrift Building of Informatics, Technology and Science (BITS), online erschienen am 02.09.2025. Verfasst von Syalom Kristian Manurung und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Work stress has become a prominent concern in the modern professional landscape, as it can lead to reduced productivity, diminished work quality, and decreased mental well-being among employees. This study aims to evaluate and compare the performance of two machine learning algorithms, namely Random Forest and K-Nearest Neighbors (KNN), in classifying levels of work stress. The data were obtained through an online questionnaire completed by 212 respondents from various employment sectors in Indonesia. The responses were converted from Likert scale to numerical values, grouped using the K-Means clustering method, and categorized into five levels of stress, ranging from no stress to very high stress. To address data imbalance, the Synthetic Minority Over-sampling Technique (SMOTE) was applied. The modeling process was conducted using three different data split scenarios, namely 90:10, 80:20, and 70:30, and evaluated using metrics such as accuracy, precision, recall, f1-score, and cross-validation. The findings indicate that the Random Forest algorithm consistently outperformed KNN across all scenarios. After applying SMOTE, both algorithms showed improved performance, with the Balanced Random Forest model achieving the highest accuracy and f1-score of 92 percent in the 70:30 scenario. These results suggest that combining Random Forest with SMOTE offers an effective and reliable solution for classifying work stress levels and could be developed as an objective and efficient early detection system.
Zitieren
APA
Manurung, S. K., & Pratama, I. (2025). Analisis Perbandingan Algoritma Random Forest dan K-Nearest Neighbors pada Klasifikasi Tingkat Stres Pekerja. Building of Informatics, Technology and Science (BITS), 7(2), 972-983. https://doi.org/10.47065/bits.v7i2.7589
Vancouver
Manurung SK, Pratama I. Analisis Perbandingan Algoritma Random Forest dan K-Nearest Neighbors pada Klasifikasi Tingkat Stres Pekerja. Building of Informatics, Technology and Science (BITS). 2025;7(2):972-983. doi:10.47065/bits.v7i2.7589
BibTeX
@article{Manurung2025,
author = {Manurung, Syalom Kristian and Pratama, Irfan},
title = {Analisis Perbandingan Algoritma Random Forest dan K-Nearest Neighbors pada Klasifikasi Tingkat Stres Pekerja},
journal = {Building of Informatics, Technology and Science (BITS)},
year = {2025},
volume = {7},
number = {2},
pages = {972--983},
doi = {10.47065/bits.v7i2.7589}
}
EUVIMED