Conference Paper2025

Analyzing Machine Learning Models for Multiclass Classification of Human Stress Levels: Comparison Between Balanced and Imbalanced Data

Nabarun Halder, Armun Alam, Jahanggir Hossain Setu, Asif Mahmood, Ashraful Islam, M Ashraful Amin

2025 17th International Conference on Knowledge and Smart Technology (KST)

IEEE, pp. 104-109

  • Good Health and Well-being — Relevance: 81%

Abstract

Stress is a psychological strain with diverse causes that can significantly impact health, potentially leading to conditions such as depression, heart disease, and impaired coping abilities if prolonged. While excessive stress is often harmful, moderate levels, known as eustress, can enhance motivation and performance. This study uses a publicly available dataset containing responses from 843 participants, aged 14 to 100, who rated their stress levels as distress, eustress, or no stress based on lifestyle and personal factors such as academic workload, social connections, and self-confidence. To classify these stress types, six machine learning models were developed: Logistic Regression (LR), Random Forest (RF), Support Vector Machine (SVM), K-Nearest Neighbors (KNN), Decision Tree (DT), and a Multilayer Perceptron (MLP). During pre-processing, we identified a significant class imbalance, which could skew the results. To address this, the Synthetic Minority Oversampling Technique (SMOTE) was applied, ensuring a more balanced dataset and improving model reliability for underrepresented classes. Among the models, the MLP, specifically the Ablation${ }_{2}$architecture, achieved the highest performance, with an accuracy of 97.44 % and an F1-score of 97.36 % on the resampled dataset. While most models showed improved results after resampling, KNN's performance declined from 94.44 % to$\mathbf{7 7. 7 8 \%}$. This study highlights the importance of data balancing and model architecture in accurately classifying stress levels.

Keywords

  • distress
  • k-nearest neighbors
  • class imbalance
  • Logistic regression
  • multi-class classification
  • Support vector machine
  • Multilayer perceptron
  • SMOTE
  • eustress
  • Decision tree

CCDS Authors

Nabarun Halder
Nabarun Halder

Nabarun Halder

  • Research Assistant, CCDS

Published at

UbiComp, IJCNN, HCII, IEEE Access

Research Interests

Machine Learning, Deep Learning, Natural Language Processing, Health Informatics, Human-Computer Interaction

Armun Alam
Armun Alam

Armun Alam

  • Research Assistant, CCDS

Published at

ECCV, Scientific Reports

Research Interests

Machine Learning

Ashraful Islam, PhD
Ashraful Islam

Ashraful Islam, PhD

  • Center Director, CCDS
  • Director, HCI Wing

Assistant Professor

Department of Computer Science and Engineering

Independent University, Bangladesh (IUB)

Published at

CHI, UIST, UbiComp, IJCNN, ICIP, HCII, ICDMW, BLP, IEEE Internet of Things Journal, JMIR, JMIR Human Factors, JMIR Formative Research, IEEE Access, Smart Agricultural Technology, Diabetes Research and Clinical Practice, PLOS ONE

Research Interests

Human-Computer Interaction, AI for Social Good, AI for Public Health, AI for Impact

Prof. M Ashraful Amin, PhD
M Ashraful Amin, PhD

Prof. M Ashraful Amin, PhD

  • Founder Director, CCDS
  • Director, AI/ML, HCI & DS Wings

Professor

+1 more affiliation

Department of Information Sciences and Technology

George Mason University, USA

Published at

ACL, CHI, UbiComp, ECAI, WACV, PAKDD, IJCNN, ICPR, ICIP, HCII, CLEF, BLP, Scientific Reports, JMIR, IEEE Access, Smart Agricultural Technology, Frontiers in Computational Neuroscience, Diabetes Research and Clinical Practice, PLOS ONE

Research Interests

Machine Learning, Cognitive & Vision Science, Cybernetics, Surveillance & Security, ICT in Education, Health, & Agriculture, Human-Computer Interaction, Internet of Things, Robotics

References

  1. 1.Nitesh V. Chawla, Kevin W. Bowyer, Lawrence Hall, W. Philip Kegelmeyer. (2002). SMOTE: Synthetic Minority Over-sampling Technique. Journal of Artificial Intelligence Research, 16, 321–357[10.1613/jair.953]
  2. 2.Bruce S. McEwen. (2008). Central effects of stress hormones in health and disease: Understanding the protective and damaging effects of stress and stress mediators. European Journal of Pharmacology, 583(2-3), 174–185[10.1016/j.ejphar.2007.11.071]
  3. 3.Xiu-jiao Lin, Chang-Yuan Zhang, Yang Song, Ming‐Lun Hsu, Hui Cheng, Jiang Chen, Hao Yu. (2020). Stress and its association with academic performance among dental undergraduate students in Fujian, China: a cross-sectional online questionnaire survey. BMC Medical Education, 20(1), 181[10.1186/s12909-020-02095-4]
  4. 4.Rajdeep Kumar Nath, Himanshu Thapliyal. (2021). Smart Wristband-Based Stress Detection Framework for Older Adults With Cortisol as Stress Biomarker. IEEE Transactions on Consumer Electronics, 67(1), 30–39[10.1109/tce.2021.3057806]
  5. 5.Ashutosh Singh, Khushdeep Singh, Amit Kumar, Abhishek Shrivastava, Santosh Kumar. (2024). Machine Learning Algorithms for Detecting Mental Stress in College Students. , 1–5[10.1109/i2ct61223.2024.10544243]
  6. 6.G. Mahalakshmi, G. Sujatha. (2023). Predictions of College Students’ Mental Stress using Machine Learning Algorithms. , 288–295[10.1109/iciccs56967.2023.10142672]
  7. 7.Ashutosh Singh, Khushdeep Singh, Amit Kumar, Abhishek Shrivastava, Santosh Kumar. (2024). Optimizing Well-Being: Unveiling Eustress and Distress through Machine Learning. , 150–154[10.1109/icict60155.2024.10544592]
  8. 8.Nabarun Halder, Jahanggir Hossain Setu, Lishan Rafid, Ashraful Islam, M. Ashraful Amin. (2024). Smartwatch-Based Human Stress Diagnosis Utilizing Physiological Signals and LSTM-Driven Machine Intelligence. , 01–08[10.1109/aset60340.2024.10708730]
  9. 9.Yang Chen, Xiaomei Zhang, Lin Lü, Yinzhi Wang, Jiajia Liu, Lei Qin, Linglong Ye, Jianping Zhu, Ben‐Chang Shia, Mingchih Chen. (2022). Machine Learning Methods to Identify Predictors of Psychological Distress. Processes, 10(5), 1030[10.3390/pr10051030]
  10. 10.Jalaj Sharma, Nikhil Gupta, Navansh Khandelwal, Madhu Gautam. (2024). A Multimodal Approach for Stress Detection through Questionnaire and Emotion Analysis.. , 1–6[10.1109/icccnt61001.2024.10725040]
  11. 11.(2024). Random forests. Physics Subject Headings (PhySH)[10.29172/7c2a6982-6d72-4cd8-bba6-2fccb06a7011]