Comparative Machine Learning Approaches for Classifying Student Stress Types


  • Chrisensia Abigail Gani Universitas Ciputra, Surabaya, Indonesia
  • Clarice Harijanto Universitas Ciputra, Surabaya, Indonesia
  • Christopher Andreas * Mail Universitas Ciputra, Surabaya, Indonesia
  • (*) Corresponding Author
Keywords: Feature Engineering; Machine Learning; Mental Health Assessment; Stress Classification; Student Stress

Abstract

Student stress is a major mental health concern that may affect academic performance, psychological well-being, and quality of life. Early identification of stress types is important because different stress categories may require different intervention strategies. With advances in data-driven technologies, machine learning has emerged as a promising approach for identifying patterns in mental health data and supporting automated assessment. This study aims to classify student stress types using the Stress Indicators Dataset for Mental Health Classification, which contains 2,000 student responses. The dataset includes demographic information, psychological symptoms, academic challenges, physical health indicators, and social factors associated with stress. Before model development, preprocessing procedures included data cleaning, duplicate removal, filtering extreme age values, and exploratory data analysis (EDA). Feature engineering was also performed by creating three composite variables, namely symptom_score, academic_stress_score, and social_stress_score, to represent broader stress-related dimensions. Three classification algorithms, Logistic Regression, K-Nearest Neighbors (KNN), and Gaussian Naive Bayes, were developed and evaluated using confusion matrix analysis and Accuracy, Precision, Recall, and F1-Score metrics. The dataset was split into training and testing subsets using an 80:20 stratified split to preserve class distribution. Results indicate that Logistic Regression achieved the highest performance, with an accuracy of 98.10%, precision of 98.14%, recall of 98.10%, and F1-score of 97.96%. Feature engineering slightly improved KNN performance but did not enhance Logistic Regression or Gaussian Naive Bayes. These findings demonstrate the potential of machine learning as a supporting tool for student stress assessment and monitoring, enabling identification of stress categories.

Downloads

Download data is not yet available.

References

Gallup, "One in Three College Students Consider Leaving Program," Gallup News, Apr. 30, 2025. [Online]. Available: https://news.gallup.com/poll/659897/one-three-college-students-consider-leaving-program.aspx

E. Karyotaki et al., "Sources of Stress and Their Associations With Mental Disorders Among College Students: Results of the World Health Organization World Mental Health Surveys International College Student Initiative," Frontiers in Psychology, vol. 11, Art. no. 1759, 2020, doi: 10.3389/fpsyg.2020.01759.

M. Pascoe, S. Hetrick, and A. Parker, "The impact of stress on students in secondary school and higher education," International Journal of Adolescence and Youth, vol. 25, pp. 104–112, 2020, doi: 10.1080/02673843.2019.1596823.

B. Hives, M. R. Beauchamp, Y. Liu, J. Weiss, and E. Puterman, "Multidimensional correlates of psychological stress: Insights from traditional statistical approaches and machine learning using a nationally representative Canadian sample," PLOS ONE, vol. 20, Art. no. e0323197, 2025, doi: 10.1371/journal.pone.0323197.

H. Selye, The Stress of Life, rev. ed. New York, NY, USA: McGraw-Hill, 1976.

R. Upsher et al., "Aligning interventions with the University Mental Health Charter: A stratified review of reviews of mental health and wellbeing interventions for higher education students," Educational Research Review, vol. 49, Art. no. 100716, 2025, doi: 10.1016/j.edurev.2025.100716.

A. B. R. Shatte, D. M. Hutchinson, and S. J. Teague, "Machine learning in mental health: A scoping review of methods and applications," Psychological Medicine, vol. 49, no. 9, pp. 1426–1448, 2019, doi: 10.1017/S0033291719000151.

R. V. Anand, A. Q. Md, S. Urooj, S. Mohan, M. A. Alawad, and A. C., "Enhancing Diagnostic Decision-Making: Ensemble Learning Techniques for Reliable Stress Level Classification," Diagnostics, vol. 13, no. 22, Art. no. 3455, 2023, doi: 10.3390/diagnostics13223455.

B. L. Schaab, P. Ü. Calvetti, C. T. Reppold, et al., "How do machine learning models perform in the detection of depression, anxiety, and stress among undergraduate students? A systematic review," Cadernos de Saúde Pública, vol. 40, no. 12, 2024, doi: 10.1590/0102-311XEN029323.

A. Daza, N. Saboya, J. I. Necochea-Chamorro, K. Z. Ramos, and Y. R. V. Valencia, "Systematic review of machine learning techniques to predict anxiety and stress in college students," Informatics in Medicine Unlocked, vol. 43, Art. no. 101391, 2023, doi: 10.1016/j.imu.2023.101391.

C. Ruiz-Camacho and M. Gozalo, "Predicting University Students' Stress Responses: The Role of Academic Stressors and Sociodemographic Variables," European Journal of Investigation in Health, Psychology and Education, vol. 15, no. 8, Art. no. 163, 2025, doi: 10.3390/ejihpe15080163.

M. M. R. Mondol and M. A. Kabir, Stress indicators dataset for mental health classification, ver. 2, Mendeley Data, 2025, doi: 10.17632/2gsjv8m7ch.2.

C. M. Bishop, Pattern Recognition and Machine Learning. New York, NY, USA: Springer, 2006.

R. Chang, N. Kuswanto, J. Tedja, and C. Andreas, “Penerapan regresi logistik, K-NN, dan Naïve Bayes berbasis pendekatan CRISP-DM dalam memprediksi penyakit jantung,” Building of Informatics, Technology and Science (BITS), vol. 7, no. 4, pp. 2771–2779, 2026, doi: 10.47065/bits.v7i4.8518.

T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning, 2nd ed. New York, NY, USA: Springer, 2009, doi: 10.1007/978-0-387-84858-7.

A. H. Alshammari, G. Bencsik, and H. A. Almashhadani, "A Survey of Six Classical Classifiers, Including Algorithms, Methodological Characteristics, Foundational Variants, and Recent Advances," Algorithms, vol. 19, no. 1, Art. no. 37, 2026, doi: 10.3390/a19010037.

F. Sword and C. Andreas, “Credit card fraud detection under extreme class imbalance: A comparison of KNN and logistic regression,” UNP Journal of Statistics and Data Science, vol. 4, no. 3, pp. 417–424, 2026, doi: 10.24036/ujsds/vol4-iss3/539.

A. Omarbekova, A. Nazyrova, G. Bekmanova, Z. Lamasheva, A. Gibadullina, and A. Abdikarim, "An explainable machine learning framework for academic stress classification among university students: a comparative multi-dataset study with ablation analysis and statistical significance testing," Front. Comput. Sci., vol. 8, 2026, Art. no. 1886274, doi: 10.3389/fcomp.2026.1886274.

C. Liu and S. Yu, "Students' stress prediction and explainable analysis based on improved decision trees," Front. Psychol., vol. 16, 2026, Art. no. 1684529, doi: 10.3389/fpsyg.2025.1684529.

V. Doma, A. Abd Almisreb, E. Yaman, S. Amanzholova, and N. Ismail, "Classification of student stress levels using a hybrid machine learning model," in AI-Driven: Social Media Analytics and Cybersecurity, Studies in Computational Intelligence, vol. 1180, W. M. Yafooz and Y. Al-Gumaei, Eds. Cham: Springer, 2025, pp. 77–104, doi: 10.1007/978-3-031-80334-5_5.

R. de Filippis and A. A. Foysal, "Comprehensive analysis of stress factors affecting students: a machine learning approach," Discov. Artif. Intell., vol. 4, no. 1, p. 62, 2024, doi: 10.1007/s44163-024-00169-6.

Y. Chen, J. Sun, J. Wang, L. Zhao, X. Song, and L. Zhai, "Machine learning-driven student performance prediction for enhancing tiered instruction," arXiv:2502.03143, 2025.

D. Elreedy, A. F. Atiya, and F. Kamalov, "A theoretical distribution analysis of synthetic minority oversampling technique (SMOTE) for imbalanced learning," Mach. Learn., vol. 113, no. 7, pp. 4903–4923, Jul. 2024, doi: 10.1007/s10994-022-06296-4.

B. Juárez-Santiago, K. Olvera-Raymundo, J. M. Olivares-Ramírez, N. Olguín-López, O. Rodriguez Abreo, and J. Rodríguez-Reséndiz, "Integrating Deep Learning into Educational Wellbeing: Early Screening of Anxiety, Depression, and Stress Among University Students," Educ. Sci., vol. 16, no. 1, Art. no. 50, 2026, doi: 10.3390/educsci16010050.

R. H. Tanjung, F. Damayanti, and A. Zaki, "Optimasi Random Forest Melalui Feature Engineering dan SMOTE untuk Klasifikasi Kesehatan Mental," Bulletin of Information Technology (BIT), vol. 7, no. 2, pp. 204–212, 2026, doi: 10.47065/bit.v7i2.2722.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Comparative Machine Learning Approaches for Classifying Student Stress Types

Dimensions Badge
Article History
Published: 2026-10-19
Abstract View: 0 times
PDF Download: 0 times
How to Cite
Gani, C., Harijanto, C., & Andreas, C. (2026). Comparative Machine Learning Approaches for Classifying Student Stress Types. Bulletin of Data Science, 6(1), 393-403. https://doi.org/10.47065/bulletinds.v6i1.11202
Section
Articles

Most read articles by the same author(s)