Explainable Machine Learning for Identifying Psychosocial Factors Associated with Mental Health Risk among Generation Z
DOI:
https://doi.org/10.47709/ijmdsa.v5i4.9445Keywords:
Generation Z, Mental Health, Explainable Machine Learning, Logistic RegressionAbstract
Mental health among Generation Z has become an increasing public health concern, while most previous studies have primarily focused on improving classification accuracy without explaining the factors influencing model predictions. This study aimed to identify the factors associated with mental health risk among Generation Z using an Explainable Machine Learning approach. Methods: A quantitative study was conducted using machine learning on data collected from 733 Indonesian Generation Z respondents selected through purposive sampling. Independent variables included demographic characteristics and all questionnaire items from DASS-21, STAI-T, and ACE, while the dependent variable was mental health risk status. Data preprocessing involved feature leakage removal, categorical encoding, missing value imputation, SMOTE-based class balancing, and feature standardization. Logistic Regression, Support Vector Machine, and Random Forest models were developed using hyperparameter optimization with Stratified 5-fold Cross Validation. Model interpretability was performed using SHapley Additive exPlanations (SHAP). Results: Logistic Regression and Support Vector Machine achieved the best performance with 93.6% accuracy, 100% recall, precision above 80%, an F1-score of 0.90, and ROC-AUC greater than 0.99. SHAP analysis identified the twenty most influential predictors, dominated by Adverse Childhood Experiences (45%), followed by DASS-21 (35%), STAI-T (15%), and demographic factors (5%). Conclusion: Logistic Regression was the most appropriate model for identifying mental health risk among Generation Z. Adverse childhood experiences were the strongest predictors, highlighting the importance of integrating early-life experiences into explainable machine learning-based mental health screening systems.
References
Abdul Rahman, H., Kwicklis, M., Ottom, M., Amornsriwatanakul, A., H. Abdul-Mumin, K., Rosenberg, M., & Dinov, I. D. (2023). Machine Learning-Based Prediction of Mental Well-Being Using Health Behavior Data from University Students. Bioengineering, 10(5), 1–13. https://doi.org/10.3390/bioengineering10050575
Aisyah, S. (2024). Loan Status Prediction Using Decision Tree Classifier. Power Elektronik?: Jurnal Orang Elektro, 13(1), 68–70. https://doi.org/10.30591/polektro.v12i3.6591
Alzhanov, N., Ng, E. Y. K., & Su, X. (2023). CFD Computation of Flow Fractional Reserve ( FFR ) in Coronary Artery Trees Using a Novel Physiologically Based Algorithm ( PBA ) Under 3D Steady and Pulsatile Flow Conditions.
Arrieta, A. B., Díaz-Rodríguez, N., Ser, J. Del, Bennetot, A., Tabik, S., Barbado, A., Garcia, S., Gil-Lopez, S., Molina, D., Benjamins, R., Chatila, R., & Herrera, F. (2020). Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AI. 58. https://doi.org/10.1016/j.inffus.2019.12.012
Barnett, M. L., Sheldrick, R. C., Liu, S. R., Kia-Keating, M., & Negriff, S. (2021). Implications of adverse childhood experiences screening on behavioral health services: A scoping review and systems modeling analysis. American Psychologist, 76(2), 364.
Christoph Molnar. (2022). Interpretable Machine Learning: A Guide for Making Black Box Models Explainable (2nd Editio). Christoph Molnar.
Javaid, M., Haleem, A., Pratap Singh, R., Suman, R., & Rab, S. (2022). Significance of machine learning in healthcare: Features, pillars and applications. International Journal of Intelligent Networks, 3(February), 58–73. https://doi.org/10.1016/j.ijin.2022.05.002
Kerz, E., Zanwar, S., Qiao, Y., & Wiechmann, D. (2023). Toward explainable AI ( XAI ) for mental health detection based on language behavior. 1.
Lina, I. R., & Retnowati, S. (2024). Jurnal Computer Science and Information Technology ( CoSciTech ) Metode K-Nearest Neighbor Berbasis Forward Selection untuk Identifikasi Status Stunting pada K-Nearest Neighbor Method Based on Forward Selection to Identify Stunting Status in Toddlers. 5(3), 695–704.
Mirechelin Kristanaya, Melinda Putri Azzahra, Trimono, M. I. (2025). Klasifikasi Status Rujukan Pasien Poliklinik Bandara Berbasis Random Forest dan Interpretabilitas Model Menggunakan. 5(1), 60–74.
Organization, W. H. (2022). Transforming mental health for all. WHO Press.
Priya, A., Garg, S., & Tigga, N. P. (2020). Predicting Anxiety, Depression and Stress in Modern Life using Machine Learning Algorithms. Procedia Computer Science, 167(2019), 1258–1267. https://doi.org/10.1016/j.procs.2020.03.442
Retnowati, S., Aisyah, S., Study, S. P., Insan, U., Indonesia, C., Info, A., & Forest, R. (2026). Identification of Mental Health for Generation Z Using Machine Learning Algorithm. 9(1), 62–71.
World Health Organization. (2022). World Mental Health Report: Transforming Mental Health for All.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Siti Aisyah, Sri Retnowati

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.










