KLASIFIKASI TINGKAT STRES MAHASISWA BERDASARKAN AKTIVITAS HARIAN MENGGUNAKAN RANDOM FOREST

  • Vivi Aldani Program Studi Teknik Komputer, Jurusan Teknik Komputer dan Informatika, Politeknik Negeri Medan, Medan, Sumatera Utara, Indonesia
Keywords: Random Forest, Stress Classification, Student Mental Health, Data Mining, Feature Importance

Abstract

Student mental health is increasingly recognized as a critical factor affecting academic performance and overall well-being. This study implements the Random Forest algorithm to classify student stress levels into three categories—Low, Medium, and High—based on daily activity survey data collected from 30 students at Politeknik Negeri Medan. The dataset comprises 13 input features covering academic pressure, lifestyle habits, gadget usage, and emotional condition, along with a self-reported stress label. Data preprocessing included label encoding of categorical responses and an 80:20 train-test split. The Random Forest model was built using 100 decision trees with the Gini Impurity criterion and sqrt max features. Evaluation on the test set of 6 samples yielded 100% accuracy with perfect precision, recall, and F1-score across all three classes. Feature importance analysis revealed that deadline pressure (0.142), academic workload (0.138), and difficulty concentrating (0.121) are the most influential predictors of student stress. The majority of respondents (66.67%) fell into the Medium stress category, underscoring the pervasiveness of academic pressure. These findings demonstrate the effectiveness of Random Forest for multi-class stress classification from survey data and highlight actionable targets for campus well-being interventions.

References

[1] I. Alfarobi, T. A. Tutupoly, dan A. Suryanto, "Komparasi Algoritma C4.5, Naïve Bayes, dan Random Forest untuk Klasifikasi Data Kelulusan Mahasiswa Jakarta," Jurnal Sistem Informasi dan Teknologi, vol. 5, no. 2, pp. 45–53, 2018.
[2] I. A. Marie, L. Hakim, D. Sugiarto, dan W. Septiani, "Perbandingan Performansi Teknik Klasifikasi Breakdown Mesin pada Proses Produksi Pembuatan Battery Mobil," Jurnal Teknik Industri, vol. 9, no. 1, pp. 12–20, 2019.
[3] V. W. Siburian dan I. E. Mulyana, "Prediksi Harga Ponsel Menggunakan Metode Random Forest," Jurnal Informatika dan Rekayasa Perangkat Lunak, vol. 3, no. 1, pp. 67–74, 2018.
[4] N. K. Dewi, U. D. Syafitri, dan S. Y. Mulyadi, "Penerapan Metode Random Forest dalam Driver Analysis," Jurnal Statistika dan Komputasi, vol. 6, no. 2, pp. 88–96, 2018.
[5] A. Charim, S. Basuki, dan D. R. Akbi, "Detect Malware in Portable Document Format Files (PDF) Using Support Vector Machine and Random Decision Forest," Journal of Computer Science and Information Technology, vol. 4, no. 2, pp. 102–109, 2018.
[6] A. Thandica, B. Setiawan, dan C. Rahayu, "Klasifikasi Tingkat Stres Akademik Mahasiswa Menggunakan Algoritma Random Forest," Jurnal Teknologi Informasi dan Ilmu Komputer (JTIIK), vol. 9, no. 3, pp. 501–510, 2022.
[7] S. Hartanto dan A. Saifudin, "Penerapan Machine Learning untuk Prediksi Tingkat Stres Mahasiswa," Jurnal Informatika Universitas Pamulang, vol. 6, no. 1, pp. 34–41, 2021.
[8] A. Rahman, D. Kusuma, dan F. Pratiwi, "Pengaruh Aktivitas Harian Terhadap Kesehatan Mental Mahasiswa: Studi Berbasis Machine Learning," Indonesian Journal of Health Science, vol. 12, no. 2, pp. 45–58, 2022.
[9] D. A. Putri dan R. N. Sari, "Analisis Faktor Penyebab Stres Mahasiswa Menggunakan Decision Tree dan Random Forest," Jurnal Ilmu Komputer dan Informatika, vol. 7, no. 1, pp. 25–34, 2023.
[10] M. F. Yusuf, T. Hidayat, dan E. Nugroho, "Implementasi Random Forest untuk Klasifikasi Kesehatan Mental Mahasiswa Berbasis Data Survei," Jurnal Sistem dan Teknologi Informasi (JUSTIN), vol. 11, no. 4, pp. 312–321, 2023.
[11] L. Breiman, "Random Forests," Machine Learning, vol. 45, no. 1, pp. 5–32, 2001.
[12] J. Han, M. Kamber, dan J. Pei, Data Mining: Concepts and Techniques, 3rd ed. Waltham, MA: Morgan Kaufmann, 2011.
Published
2026-08-15
How to Cite
Aldani, V. (2026). KLASIFIKASI TINGKAT STRES MAHASISWA BERDASARKAN AKTIVITAS HARIAN MENGGUNAKAN RANDOM FOREST. Jurnal Data Mining Dan Sistem Informasi, 7(2), 23-32. https://doi.org/10.33365/jdmsi.v7i2.2434