PERBANDINGAN LOGISTIC REGRESSION DAN RANDOM FOREST DALAM KLASIFIKASI INDEKS BEBAN STRES MAHASISWA

Authors

Muchammad Soufwan Fauzi ( Universitas Islam Negeri K.H. Abdurrahman Wahid Pekalongan image/svg+xml )

Indri Oktavia Ramadani ( Universitas Islam Negeri K.H. Abdurrahman Wahid Pekalongan image/svg+xml )

Fuad Naufal Ihsan ( Universitas Islam Negeri K.H. Abdurrahman Wahid Pekalongan image/svg+xml )

Riskha Syofiyana ( Universitas Islam Negeri K.H. Abdurrahman Wahid Pekalongan image/svg+xml )

Annisa Larasati ( Universitas Islam Negeri K.H. Abdurrahman Wahid Pekalongan image/svg+xml )

Imam Prayogo Pujiono ( Universitas Islam Negeri K.H. Abdurrahman Wahid Pekalongan image/svg+xml )

DOI:

https://doi.org/10.52060/im.v4i2.4965

Abstract

Academic and daily-life characteristics are relevant to student stress analysis, but their predictive contributions depend on the dataset and target definition. This study aims to compare Logistic Regression and Random Forest in classifying relative categories of a cumulative student stress burden index and evaluate the contribution of daily screen time. A public Kaggle dataset containing 10,000 observations and 29 attributes was used. Although the provider reports survey-based data and AI-assisted enrichment, the data collection and measurement procedures could not be independently verified. The target index was classified into low, moderate, and high categories using tertile thresholds calculated from the training data. Two feature scenarios were evaluated: five academic-contextual features (S1) and the addition of daily screen time (S2). The experiment employed an 80:20 train-test split, preprocessing pipelines, Stratified 5-Fold Cross-Validation, and a Dummy Classifier as the baseline. Logistic Regression S2 achieved the highest test accuracy of 0.4285 and Macro F1-Score of 0.4288, with a cross-validation Macro F1-Score of 0.4313. Adding daily screen time increased test Macro F1-Score by 0.0047 for Logistic Regression and 0.0315 for Random Forest. However, classification performance remained limited, particularly for the moderate category. These findings provide a comparative evaluation of the tested configurations but do not support clinical stress assessment. Further validation using independently documented empirical data and standardized instruments is recommended.

References

AJISAKA, R., NAHRIYA, S. W., SIHATULA, J., & GEOVANI, M. (2026). Random Forest and SVM Based Prediction of Student Stress Levels from Digital Activity Data. 4(3), 1–17. https://doi.org/10.76998/JUTIKSI.v19i2.3416

DE FILIPPIS, R., & FOYSAL, A. AL. (2024). Comprehensive analysis of stress factors affecting students: a machine learning approach. Discover Artificial Intelligence, 4(1).

DZAKIYYAH, S. G., & MAHDIANA, D. (2025). Prediction of student academic stress levels using the Decision Tree algorithm and Particle Swarm Optimization. Indonesian Journal of Artificial Intelligence and Data Mining, 8(3), 579–591. https://doi.org/10.24014/ijaidm.v8i3.38081

GHANIA, S., & PRIHATSANTI, U. (2025). Faktor-Faktor Yang Mempengaruhi Stres Akademik Pada Mahasiswa Di Indonesia : Studi Literatur. In Jurnal Empati (Vol. 14).

JAMES, G., WITTEN, D., HASTIE, T., TIBSHIRANI, R., & TAYLOR, J. (2023). An Introduction to Statistical Learning: With Applications in Python. Springer. https://doi.org/10.1007/978-3-031-38747-0

KAPOOR, S., & NARAYANAN, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804

Muth’athohirin, L. (2026). Survei Kesehatan Mental Mahasiswa & Gen-Z Indonesia 2026. Kaggle. https://www.kaggle.com/datasets/luthfimuthathohirin/indonesia-kesehatan-mental-gen-z-akademik-2026

OMARBEKOVA, A., NAZYROVA, A., BEKMANOVA, G., LAMASHEVA, Z., GIBADULLINA, A., & ABDIKARIM, A. (2026). An explainable machine learning framework for academic stress classification among university students: a comparative multi-dataset study with ablation analysis and statistical significance testing. Frontiers in Computer Science, 8. https://doi.org/10.3389/fcomp.2026.1886274

RACHMAWATI, A. (2024). Stres Akademik dan Cyberslacking pada Mahasiswa.

RAMADHANI, A. D., & NAISTA, D. (2026). Machine Learning Models for Predicting Student Vulnerability to Academic Stress in AI-Integrated Learning Environments. In OPEN ACCESS AI and Developmental Insights in Education (Vol. 2, Number 1). https://orcid.org/0009-0009-9154-8525

RENALDY ANGKASA, PALMA JUANTA, & GABRIELLA HALIM. (2025). Analisis Hubungan Lama Pengunaan Gadget dengan Tingkat Stress Mahasiswa. INSOLOGI: Jurnal Sains Dan Teknologi, 4(3), 265–271. https://doi.org/10.55123/insologi.v4i3.4839

SCHAAB, B. L., CALVETTI, P. Ü., HOFFMANN, S., DIAZ, G. B., RECH, M., CAZELLA, S. C., STEIN, A. T., BARROS, H. M. T., SILVA, P. C. DA, & REPPOLD, C. T. (2024). How do machine learning models perform in the detection of depression, anxiety, and stress among undergraduate students? A systematic review. Cadernos de Saúde Pública, 40(11). https://doi.org/10.1590/0102-311xen029323

SHABRAN, M., DARWIS, H., & ANRAENI, S. (2026). Klasifikasi tingkat stres mahasiswa Universitas Muslim Indonesia menggunakan Decision Tree dan Random Forest. LINIER: Literatur Informatika Dan Komputer, 3(2). https://doi.org/10.33096/linier.v3i2.3633


Keywords  :  
Keywords: Academic Stress, Classification, Logistic Regression, Random Forest, Machine Learning
Galleys  :  
Published  :  
2026-11-27
Issue  :  

How to Cite

PERBANDINGAN LOGISTIC REGRESSION DAN RANDOM FOREST DALAM KLASIFIKASI INDEKS BEBAN STRES MAHASISWA. (2026). Jurnal Informatika Medis (J-INFORMED), 4(2), 152-162. https://doi.org/10.52060/im.v4i2.4965