Abstract
Depression among university students is an important mental health concern, particularly in technical and engineering education environments characterized by academic workload, competition, and financial stress. Although machine learning approaches are increasingly used in student mental health research, many previous studies rely on leakage-prone or post-outcome variables, limited validation protocols, and discrimination-focused evaluation, which may reduce their suitability for realistic early screening settings. This study presents a leakage-aware and calibration-aware ensemble learning framework for early depression risk screening among technical education students by excluding leakage-prone predictors during model development. Random Forest, Gradient Boosting, and stacking-based ensemble models were evaluated using nested stratified cross-validation, pooled out-of-fold prediction analysis, isotonic probability calibration, threshold sensitivity analysis, subgroup robustness assessment, and SHAP-based interpretability analysis. Experiments conducted on a publicly available dataset filtered to technical degree programs (N = 7,807) showed stable cross-validated performance, with the calibrated stacking ensemble achieving ROC–AUC = 0.8718 ± 0.0081, PR–AUC = 0.8888 ± 0.0078, and recall = 0.8408 ± 0.0100. Statistical testing showed no significant performance difference between stacking and calibrated Gradient Boosting, suggesting that simpler calibrated models may provide comparable screening performance in this dataset. Leakage-ablation analysis showed that inclusion of the post-outcome suicidal-thoughts variable increased pooled out-of-fold ROC–AUC from 0.8701 to 0.9224, highlighting the importance of leakage-aware feature selection for realistic evaluation. A reduced-feature screening model using six early-available predictors also maintained competitive performance (ROC–AUC = 0.8616), supporting the feasibility of lightweight institutional screening. SHAP stability analysis demonstrated consistent feature rankings across validation folds, with academic pressure, financial stress, work/study hours, and sleep duration identified as influential predictors. Overall, the proposed framework provides an interpretable and methodologically transparent approach for depression risk prioritization in educational settings while reducing performance inflation associated with leakage-prone features.
Keywords
Depression Risk Screening, Ensemble Learning, Leakage-Aware Modeling, Probability Calibration, Student Mental Health Analytics,Downloads
References
- World Health Organization. (2022). World Mental Healthreport: Transforming Mental Health for all. Executive Summary. World Health Organization.
- P. Akhtar, L. Ma, A. Waqas, S. Naveed, Y. Li, A. Rahman, Y. Wang, Prevalence of depression among university students in low and middle income countries (LMICs): a systematic review and meta-analysis. Journal of Affective Disorders, 274, (2020) 911–919. https://doi.org/10.1016/j.jad.2020.03.183
- R.P. Auerbach, P. Mortier, R. Bruffaerts, J. Alonso, C. Benjet, P. Cuijpers, D.D. Ebert, J.G. Green, I. Hasking, E. Murray, R.C. Kessler, Mental Disorders Among College Students in the World Health Organization World Mental Health Surveys. Psychological Medicine, 46(14), (2016) 2955–2970. https://doi.org/10.1017/S0033291716001665
- T. Richardson, P. Elliott, R. Roberts, The Relationship Between Personal Unsecured Debt and Mental and Physical Health: A Systematic Review and Meta-Analysis. Clinical Psychology Review, 33(8), (2013) 1148–1162. https://doi.org/10.1016/j.cpr.2013.08.009
- T. Richardson, P. Elliott, R. Roberts, M. Jansen, A Longitudinal Study of Financial Difficulties and Mental Health in a National Sample of British Undergraduate Students. Community Mental Health Journal, 53(3), (2017) 344–352. https://doi.org/10.1007/s10597-016-0052-0
- A.B.R. Shatte, D.M. Hutchinson, S.J. Teague, Machine Learning in Mental Health: A Scoping Review of Methods and Applications. Psychological Medicine, 49(9), (2019) 1426–1448. https://doi.org/10.1017/S0033291719000151
- A. Rajkomar, J. Dean, I. Kohane, Machine Learning in Medicine. New England Journal of Medicine, 380(14), (2019) 1347–1358. https://doi.org/10.1056/NEJMra1814259
- C. Yu, Y. Zhang, H. Liu, X. Li, Machine Learning Models for Predicting the Risk of Depressive Symptoms in Chinese College Students. Frontiers in Psychiatry, 16, (2025) 1648585. https://doi.org/10.3389/fpsyt.2025.1648585
- I.Y. Chen, E. Pierson, S. Rose, S. Joshi, K. Ferryman, M. Ghassemi, Ethical Machine Learning in Healthcare. Annual Review of Biomedical Data Science, 4, (2021) 123–144. https://doi.org/10.1146/annurev-biodatasci-092820-114757
- M.A. Hernán, J.M. Robins, (2020). Causal Inference: What If, Chapman and Hall/CRC, Boca Raton, FL, USA.
- C. Guo, G. Pleiss, Y. Sun, K.Q. Weinberger, On Calibration of Modern Neural Networks. Proceedings of the 34th International Conference on Machine Learning (ICML), 70, (2017) 1321–1330.
- M. Kull, M. Perello-Nieto, M. Kängsepp, T. Silva Filho, H. Song, P. Flach, Beyond Temperature Scaling: Obtaining Well-Calibrated Multiclass Probabilities with Dirichlet Calibration. Advances in Neural Information Processing Systems, 32, (2019) 12295–12305.
- A.B. Arrieta, N. Díaz-Rodríguez, J. Del Ser, A. Bennetot, S. Tabik, A. Barbado, S. Garcia, S. Gil-Lopez, D. Molina, R. Benjamins, R. Chatila, F. Herrera, Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges Toward Responsible AI. Information Fusion, 58, (2020) 82–115. https://doi.org/10.1016/j.inffus.2019.12.012
- C. Molnar, (2020). Interpretable Machine Learning: A Guide for Making Black Box Models Explainable. Germany: Leanpub.
- G. Barbayannis, M. Bandari, X. Zheng, H. Baquerizo, K.W. Pecor, X. Ming, Academic Stress and Mental Well-Being in College Students: Correlations, Affected Groups, and COVID-19. Frontiers in Psychology, 13, (2022) 886344. https://doi.org/10.3389/fpsyg.2022.886344
- D.C. Jessop, M. Reid, L. Solomon, Financial Concern Predicts Deteriorations in Mental and Physical Health Among University Students. Psychology and Health, 35(2), (2020) 196–209. https://doi.org/10.1080/08870446.2019.1626393
- S. Bhattacharjee, M.F, Hossain, S.A. Akhy, M.M.H. Shimul, M.K. Hossain, Predicting Depression Among Public University Students in Bangladesh using Machine Learning Models, Discover Mental Health, 5, (2025) 191. https://doi.org/10.1007/s44192-025-00332-0
- R.P. Sonjaya, A.R. Gintara, L.S. Riza, M. Nursalman, E. Nugraha, D. Wahyudin, Predicting Student Depression using the Naive Bayes Model on the Student Depression Dataset from Kaggle. JENTIK: Jurnal Pendidikan Teknologi Informasi dan Komunikasi, 4(1), (2025) 9–20. https://doi.org/10.58723/jentik.v4i1.448
- X. Xu, T. Zhang, Intelligent Classification and Prediction of Students’ Mental Health in Online Learning Environments using Boosting Algorithm and LIWC Features. Scientific Reports, 15, (2025) 22028. https://doi.org/10.1038/s41598-025-04681-2
- M. Gil, S.-S. Kim, E. J. Min, Machine Learning Models for Predicting Risk of Depression in Korean College Students: Identifying Family and Individual Factors. Frontiers in Public Health, 10, (2022) 1023010. https://doi.org/10.3389/fpubh.2022.1023010
- N. Meda, S. Pardini, P. Rigobello, F. Visioli, C. Novara, Frequency and Machine Learning Predictors of Severe Depressive Symptoms and Suicidal Ideation Among University Students. Epidemiology and Psychiatric Sciences, 32, (2023) e42. https://doi.org/10.1017/s2045796023000550
- A. Daza Vergaray, J.C. Herrera Miranda, J. Bobadilla Cornelio, A.R. López Carranza, C.F. Ponce Sánchez, Predicting the Depression in University Students using Stacking Ensemble Techniques Over Oversampling Method. Informatics in Medicine Unlocked, 41, (2023) 101295. https://doi.org/10.1016/j.imu.2023.101295
- A.H. Chowdhury, D. Rad, M.S. Rahman, Predicting Anxiety, Depression, and Insomnia Among Bangladeshi University Students using Tree-Based Machine Learning Models. Health Science Reports, 7(4), (2024) e2037. https://doi.org/10.1002/hsr2.2037
- L. Zhang, S. Zhao, Z. Yang, H. Zheng, M. Lei, An Artificial Intelligence Tool to Assess the Risk of Severe Mental Distress Among College Students in Terms of Demographics, Eating Habits, Lifestyles, and Sport Habits: An Externally Validated Study using Machine Learning. BMC Psychiatry, 24(1), (2024) 581. https://doi.org/10.1186/s12888-024-06017-2
- M.E. Hasan, M. Arif, S.M.R. Hasan, M. Muwanguzi, J. Abaatyo, M.M. Kaggwa, M.M. Almerab, P.A. Atroszko, M. Muhit, F. Al-Mamun, M.A. Mamun, Prevalence, Associated Factors, and Machine Learning-Based Prediction of Depression, Anxiety, and Stress Among University Students: A Cross-Sectional Study from Bangladesh. Journal of Health, Population and Nutrition, 44(1), (2025) 361. https://doi.org/10.1186/s41043-025-01095-8
- S. Uddin, A. Khan, M.E. Hossain, M.A. Moni, Comparing Different Supervised Machine Learning Algorithms for Disease Prediction. BMC Medical Informatics and Decision Making, 19(1), (2019) 281. https://doi.org/10.1186/s12911-019-1004-8
- H. He, Y. Ma, (2013). Imbalanced Learning: Foundations, Algorithms, and Applications, Wiley-IEEE Press. https://doi.org/10.1002/9781118646106
- T. Saito, M. Rehmsmeier, The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE, 10(3), (2015) e0118432. https://doi.org/10.1371/journal.pone.0118432
- C. Mimikou, C. Kokkotis, D. Tsiptsios, K. Tsamakis, S. Savvidou, L. Modig, F. Christidi, A. Kaltsatou, T. Doskas, C. Mueller, A. Serdari, Explainable Machine Learning in the Prediction of Depression. Diagnostics, 15(11), (2025) 1412. https://doi.org/10.3390/diagnostics15111412
- E.J. Topol, (2019). The Topol Review: Preparing the Healthcare Workforce to Deliver the Digital Future, Health Education England, United Kingdom.
- U. Madububambachu, A. Ukpebor, U. Ihezue, Machine Learning Techniques to Predict Mental Health Diagnoses: A Systematic Literature Review. Clinical Practice and Epidemiology in Mental Health, 20, (2024) e17450179315688. https://doi.org/10.2174/0117450179315688240607052117
- M. Drira, S. Ben Hassine, M. Zhang, S. Smith, Machine Learning Methods in Student Mental Health Research: An Ethics-Centered Systematic Literature Review. Applied Sciences, 14(24), (2024) 11738. https://doi.org/10.3390/app142411738
- Shodolamu Opeyemi. (2024). Student Depression Dataset. Kaggle.Com. https://www.kaggle.com/datasets/hopesb/student-depression-dataset
Articles

