Analysis of Stacking Ensemble Method in Machine Learning Algorithms to Predict Student Depression
Open Access
- 6 December 2025
- journal article
- Published by Politeknik Negeri Batam in JOURNAL OF APPLIED INFORMATICS AND COMPUTING
- Vol. 9 (6) , 3283-3294
Abstract
Mental health issues, particularly depression among university students, require early detection and intervention due to their profound impact on academic performance and overall well-being. Although machine learning has been utilized in previous studies to predict depression, most research still relies on single-model approaches and rarely employs publicly available datasets that have undergone comprehensive preprocessing. This study aims to develop a depression prediction model for university students using a two-level stacking ensemble technique with cross-validation stacking, integrating Random Forest, Gradient Boosting, and XGBoost as base learners, and Logistic Regression as the meta-learner. A public dataset from Kaggle was utilized, consisting of 502 student records and 10 multidimensional predictor variables. Data preprocessing included cleaning, feature encoding, and standardization. Model performance was evaluated using accuracy, precision, recall, F1-score, and ROC-AUC metrics. The proposed stacking ensemble model achieved excellent performance, with an accuracy of 98.02%, ROC-AUC of 99.8%, precision of 96%, recall of 100%, and an F1-score of 98% for the depression class. These results demonstrate that the stacking ensemble method is highly effective for early depression detection among university students and has strong potential for implementation as a decision-support tool in academic environments.Keywords
This publication has 18 references indexed in Scilit:
- Prevalence, associated factors, and machine learning-based prediction of depression, anxiety, and stress among university students: a cross-sectional study from BangladeshJournal of Health, Population and Nutrition, 2025
- Predicting learning achievement using ensemble learning with result explanationPLOS ONE, 2025
- Enhancing Depression Detection: A Stacked Ensemble Model with Feature Selection and RF Feature Importance Analysis Using NHANES DataApplied Sciences, 2024
- Sistem Pakar Berbasis Android untuk Mengetahui Tingkat Depresi Dini Mahasiswa Menggunakan Metode Dempster ShaferJurnal Fokus Elektroda : Energi Listrik, Telekomunikasi, Komputer, Elektronika dan Kendali), 2024
- Data leakage inflates prediction performance in connectome-based machine learning modelsNature Communications, 2024
- How do machine learning models perform in the detection of depression, anxiety, and stress among undergraduate students? A systematic reviewCadernos de Saude Publica, 2024
- Comparative Study of Random Forest and Gradient Boosting Algorithms to Predict Airfoil Self-NoiseEngineering Proceedings, 2023
- Predicting the depression in university students using stacking ensemble techniques over oversampling methodInformatics in Medicine Unlocked, 2023
- Effective Training-Time Stacking for Ensembling of Deep Neural Networks2022
- Exploration of the Stacking Ensemble Machine Learning Algorithm for Cheating Detection in Large-Scale AssessmentEducational and Psychological Measurement, 2022