PENDEKATAN STATISTIK DAN MACHINE LEARNING UNTUK PREDIKSI RISIKO DEPRESI PADA MAHASISWA MENGGUNAKAN STUDENT DEPRESSION DATASET
Abstract
Depression among university students is a growing concern that requires early risk identification. This study applies statistical analysis and machine learning to predict depression using the Student Depression Dataset containing demographic, academic, occupational, and psychosocial variables. Exploratory Data Analysis (EDA) identified notable differences between depressed and non-depressed students, particularly in Academic Pressure. Independent t-test and Mann–Whitney U test confirmed that Academic Pressure differed significantly between the two groups. Three machine learning models, namely Logistic Regression, Random Forest, and Gradient Boosting, were developed and evaluated. Logistic Regression and Gradient Boosting achieved the highest AUC of 0.84, while Random Forest obtained an AUC of 0.81. Both Logistic Regression and Gradient Boosting demonstrated comparable classification performance, with Gradient Boosting achieving a slightly higher recall for the depressed class, making it more suitable when minimizing false negatives is prioritized. This study presents an analytical framework that integrates Exploratory Data Analysis, statistical testing, and the evaluation of multiple machine learning algorithms. The proposed approach demonstrates the potential of data-driven methods to support depression risk prediction among university students.
References
[2] S. Harith, I. Backhaus, N. Mohbin, H. T. Ngo, and S. Khoo, “Effectiveness of digital mental health interventions for university students: an umbrella review,” PeerJ, vol. 10, pp. 1–22, 2022, doi: 10.7717/peerj.13111.
[3] Z. R. Pratiwi and D. Kumalasari, “Dukungan Orang Tua dan Resiliensi Akademik Pada Mahasiswa,” Analitika, vol. 13, no. 2, pp. 138–147, 2021, doi: 10.31289/analitika.v13i2.5482.
[4] A. Duffy et al., “Predictors of mental health and academic outcomes in first-year university students: Identifying prevention and early-intervention targets,” BJPsych Open, vol. 6, no. 3, pp. 1–8, 2020, doi: 10.1192/bjo.2020.24.
[5] A. T. Setyanto, “Deteksi Dini Prevalensi Gangguan Kesehatan Mental Mahasiswa di Perguruan Tinggi,” Wacana, vol. 15, no. 1, p. 66, 2023, doi: 10.20961/wacana.v15i1.69548.
[6] E. Sheldon et al., “Prevalence and risk factors for mental health problems in university undergraduate students: A systematic review with meta-analysis,” Journal of Affective Disorders, vol. 287, pp. 282–292, 2021, doi: https://doi.org/10.1016/j.jad.2021.03.054.
[7] E. P. Simatupang and Y. Widjaja, “Lingkungan Pembelajaran Dengan Kejadian Burnout di Fakultas Kedokteran Universitas Tarumanagara tahap akademik,” Tarumanagara Medical Journal, vol. 3 nomor 2, no. oktober, pp. 293–303, 2021.
[8] Syahril, S. R. Janna, and Fatimah, “The Academic Stress of Final-Year Students in Covid-19 Pandemic Era,” AL-ISHLAH: Jurnal Pendidikan, vol. 13, no. 1, pp. 80–89, 2021, doi: 10.35445/alishlah.v13i1.407.
[9] C. E. Prasetio and A. Triwahyuni, “Gangguan Psikologis pada Mahasiswa Jenjang Sarjana: Faktor-Faktor Risiko dan Protektif,” Gadjah Mada Journal of Psychology (GamaJoP), vol. 8, no. 1, p. 56, 2022, doi: 10.22146/gamajop.68205.
[10] D. K. Dewi, E. H. Meylana, F. P. Widianti, and R. I. Safitri, “The Profile of Perceived Academic Stress in Higher Education,” Proceedings of the International Joint Conference on Arts and Humanities (IJCAH 2020) The, vol. 491, no. Ijcah, pp. 165–169, 2020, doi: 10.2991/assehr.k.201201.028.
[11] Md. M. Ahmmed, A. Al Noman, M. M. Afif, K. M. T. Kabir, Md. M. Rahman, and M. Mahmud, “A Model-Mediated Stacked Ensemble Approach for Depression Prediction Among Professionals,” 2025.
[12] V. N. Wijayaningrum, I. K. Putri, A. P. Kirana, M. R. Mubarok, D. M. Harahap, and B. R. Hamesha, “Analisis Performa Seleksi Atribut untuk Menentukan Potensi Mahasiswa Putus Studi [Performance Analysis of Attribute Selection to Determine the Potential of Students Drop Out],” Jurnal Informatika Polinema, vol. 9, no. 2, pp. 237–243, 2023.
[13] F. Ndikumana et al., “Machine learning-based predictive modelling of mental health in Rwandan Youth,” Scientific Reports, vol. 15, no. 1, pp. 1–14, 2025, doi: 10.1038/s41598-025-00519-z.
[14] Y. Jiang, “Predicting Student Depression using Machine Learning: A Comparative Study of Logistic Regression and Random Forest,” 2025.
[15] E. W. Utami, D. Kurniawan, and K. Kunci, “Optimasi Hyperparameter Random Forest untuk Klasifikasi Depresi Mahasiswa Menggunakan GridSearchCV dan RandomizedSearchCV,” Technology and Science (BITS), vol. 7, no. 4, 2026, doi: 10.47065/bits.v7i4.9366.
[16] I. Setiawan, I. Fatah Yasin, Y. Tri Desianti, P. Studi Sistem Dan Teknologi Informasi, F. Sains Dan Teknologi, and A. Surakarta, “Komparasi Kinerja Algoritma Random Forest, Decision Tree, Naïve Bayes, dan KNN dalam Prediksi Tingkat Depresi Mahasiswa Menggunakan Student Depression Dataset,” 2025. [Online]. Available: http://creativecommons.org/licences/by/4.0/
[17] S. Opeyemi, “Student Depression Dataset,” Kaggle. Accessed: Jul. 16, 2026. [Online]. Available: https://www.kaggle.com/datasets/hopesb/student-depression-dataset/data
[18] R. Maringka and K. Kusnawi, “Exploratory Data Analysis Faktor Pengaruh Kesehatan Mental di Tempat Kerja,” CogITo Smart Journal, vol. 7, no. 2, pp. 215–226, 2021, doi: 10.31154/cogito.v7i2.312.215-226.
[19] J. Simangunsong, M. S. Simanjuntak, and N. D. Simanjuntak, “Mental disorder classification with exploratory data analysis ( EDA ),” Journal of Intelligent Decision Support System (IDSS), vol. 7, no. 3, pp. 210–217, 2024.
[20] M. Y. Yasin, N. M. Kasyfan, S. Z. N. Makiyah, and Moch. Y. H. A. Ramdhani, “Hubungan Tuntutan Organisasi Kemahasiswaan Terhadap Kesehatan Mental Mahasiswa Anggota Organisasi Di Kampus Upi Tasikmalaya,” Kompleksitas : Jurnal Ilmiah Manajemen, Organisasi Dan Bisnis, vol. 13, no. 2, pp. 1–8, 2024, doi: 10.56486/kompleksitas.vol13no2.532.
[21] V. Wijaya and N. Rachmat, “Comparison of SVM, Random Forest, and Logistic Regression Performance n Student Mental Health Screening,” JEECS (Journal of Electrical Engineering and Computer Sciences), vol. 9, no. 2, pp. 173–184, 2024, doi: 10.54732/jeecs.v9i2.9.
[22] E. S. Mohamed, T. A. Naqishbandi, S. A. C. Bukhari, I. Rauf, V. Sawrikar, and A. Hussain, “A hybrid mental health prediction model using Support Vector Machine, Multilayer Perceptron, and Random Forest algorithms,” Healthcare Analytics, vol. 3, no. April, p. 100185, 2023, doi: 10.1016/j.health.2023.100185.
[23] A. Solichin, B. Pramudita, P. Painem, and A. P. Pradiptha, “Optimization of Gradient Boosting Method for Predicting Narcissistic Personality Disorder (NPD) in Employees,” IJCCS (Indonesian Journal of Computing and Cybernetics Systems, vol. 19, no. 2, pp. 117–128, 2025, doi: 10.22146/ijccs.103551.





