Multi-Class Mental Health Classification Based on DASS-21 and Perceived Social Support Using Machine Learning Algorithms
Keywords:
Mental health, Classification, Machine Learning, DASS-21, Perceived social supportAbstract
Mental health issues among students require data-driven approaches for early identification. This study aims to classify students’ mental health levels using the Depression Anxiety Stress Scale (DASS-21) and perceived social support, measured by the Multidimensional Scale of Perceived Social Support (MSPSS), via machine learning algorithms. A supervised classification approach was employed using Random Forest, Support Vector Machine, and Logistic Regression on data collected from 450 respondents. The data were processed through scoring, labeling, encoding, balancing, and stratified 80:20 splitting. Model evaluation was conducted using hold-out testing and 5-fold cross-validation to ensure robust and reliable performance estimation. The results indicate that Random Forest achieved the best performance, with an accuracy of 0.97 on the test set, outperforming Support Vector Machine (0.81) and Logistic Regression (0.83). Improvements in recall and F1-score for minority classes demonstrate the effectiveness of the balancing process. These findings highlight the potential of machine learning for student mental health classification, although further validation on larger and more diverse datasets is required.References
[1] World Health Organization, World Mental Health Today, First Edit. Geneva: World Health Organization, 2025. [Online]. Available: https://iris.who.int/
[2] A. Suryanto and S. Nada, “Evaluation of Mental Health Analysis of College Students at the early Covid-19 Outbreak in Indonesia,” Jurnal Citizenship Virtues, no. 2, pp. 83–97, 2021.
[3] N. A. Kloping, T. Citraningtyas, R. Lili, S. M. Farrell, and A. Molodynski, “Mental health and wellbeing of Indonesian medical students: A regional comparison study,” International Journal of Social Psychiatry, vol. 68, no. 6, pp. 1295–1299, 2022, doi: 10.1177/00207640211057732.
[4] S. Howlader, S. Abedin, and M. M. Rahman, “Social support, distress, stress, anxiety, and depression as predictors of suicidal thoughts among selected university students in Bangladesh,” PLOS Global Public Health, vol. 4, no. 4, pp. 1–13, 2024, doi: 10.1371/journal.pgph.0002924.
[5] F. M. Ekawati, “The health and wellbeing of undergraduate students in Indonesia: descriptive results of a survey in three public universities,” Sci. Rep., vol. 15, no. 1, pp. 1–21, 2025, doi: 10.1038/s41598-025-90527-w.
[6] B. Lee and Y. E. Kim, “Validity of the depression, anxiety, and stress scale (DASS-21) in a sample of Korean university students,” Current Psychology, vol. 41, no. 6, pp. 3937–3946, 2022, doi: 10.1007/s12144-020-00914-x.
[7] T. Wahyono and Y. Heryadi, Machine Learning Konsep dan Implementasi. Yogyakarta: Gava Media, 2020.
[8] A. El Attaoui, Y. Koulou, and N. El Hami, “At the Core of Artificial Intelligence: Leveraging Machine Learning through Random Forest,” in Methods and Applications of Artificial Intelligence: Dynamic Response, Learning, Random Forest, Linear Regression, Interoperability, Additive Manufacturing and Mechatronics: Volume 2, vol. 2, ENSA-Kénitra, Université Ibn Tofail, Morocco: wiley, 2025, pp. 77–119. doi: 10.1002/9781394351817.ch5.
[9] V. Bruni, F. Pelosi, and D. Vitulano, “Integrating subdivision schemes into SVM for improved signal classification,” J. Comput. Appl. Math., vol. 477, p. 117142, 2026, doi: 10.1016/j.cam.2025.117142.
[10] R. Nodir and K. Dilmurod, “The Mathematical Essence of Logistic Regression for Machine Learning,” no. 102, pp. 102–105, 2022.
[11] U. Braga-Neto, Fundamentals of Pattern Recognition and Machine Learning. Cham: Springer, 2020. doi: 10.1007/978-3-030-27656-0.
[12] M. Kunta Biddinika, A. Masitha, and V. Arfiana Nurul Fatimah, “Machine Learning Techniques for Heart Disease Prediction Using a Multi-Algorithm Approach,” JUITA, vol. 12, no. 2, pp. 149–158, Nov. 2024.
[13] W. P. Indahwati and F. M. Afendi, “Improving Stroke Detection with Hybrid Sampling and Cascade Generalization,” JUITA, vol. 12, no. 1, pp. 9–18, 2024.
[14] H. Herlinda, M. Itqan Mazdadi, D. Kartini, and I. Budiman, “Implementation of Particle Swarm Optimization on Sentiment Analysis of Cyberbullying using Random Forest,” JUITA, vol. 11, no. 2, pp. 301–309, 2023.
[15] A. Handayanto, K. Latifa, N. D. Saputro, and R. R. Waliyansyah, “Analysis and Application of Algorithm Support Vector Machine (SVM) in Data Mining to Support Promotional Strategies,” vol. 7, no. 2, pp. 71–79, Nov. 2019.
[16] X. Jia and W. Chu, “Analysis and Prevention Strategies of the Causes of College Students’ Mental Health Problems,” Academic Journal of Management and Social Sciences, vol. 5, no. 3, pp. 96–98, 2023, doi: 10.54097/1or428w3.
[17] A. H. Putra and M. Mudjiran, “Mental Health Disorders in Students University as a Challenge in Higher Education Era Society 5.0,” International Journal of Applied Counseling and Social Sciences, vol. 4, no. 2, pp. 73–80, 2023, doi: 10.24036/005966ijaccs.
[18] World Rugby, “Mindset-A Mental Health Resource for Team Doctors,” 2009.
[19] G. D. Zimet, N. W. Dahlem, S. G. Zimet, and G. K. Farley, “The Multidimensional Scale of Perceived Social Support,” J. Pers. Assess., vol. 52, no. 1, pp. 30–41, 1988, doi: 10.1207/s15327752jpa5201_2.
[20] M. Fahmy Amin, “Confusion Matrix in Three-class Classification Problems: A Step-by-Step Tutorial,” Journal of Engineering Research, vol. 7, no. 1, pp. 3–5, 2023, doi: 10.21608/erjeng.2023.296718.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Winny Dwita Sumbayak, Didi Supriyadi, Didi Supriyadi

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

JUITA: Jurnal Informatika is licensed under a Creative Commons Attribution 4.0 International License.








