Open Access Open Access  Restricted Access Subscription Access

Human Stress Detection Based on Sleeping Habits Using Machine Learning Algorithms

Anitha L, Hanna Gafoor, Sandra Rose Joseph, Udaya Krishna E.M., Frijo Antony C F

Abstract


Stress is a natural response to challenging or unavoidable situations, often referred to as stressors. Understanding stress levels is crucial to preventing negative impacts on daily life. Sleep disturbances, in particular, are closely linked to various physical, mental, and social issues. This study explores how machine learning can be used to detect stress based on sleep-related behaviors. The dataset includes different sleep patterns and corresponding stress levels. Six machine learning models—Multilayer Perceptron (MLP), Random Forest, Support Vector Machine (SVM), Decision Trees, Naïve Bayes, and Logistic Regression—were used to classify the data after preprocessing. By comparing their performance, we identified the most accurate model. The results show that the Naïve Bayes algorithm performs best, achieving an accuracy of 91.27%, along with high precision, recall, and F-measure values. It also recorded the lowest mean absolute error (MAE) and root mean squared error (RMSE). These findings suggest that machine learning can effectively estimate stress levels, allowing for early intervention and betterstress management.


Full Text:

PDF

References


Jayawickrama, J.G. and Rupasingha, R.A.H.M., 2023, February. Human Stress Detection Based on Sleeping Habits Using Machine Learning Algorithms. In 2023 3rd International Conference on Advanced Research in Computing (ICARC) (pp. 7-12). IEEE.

R. Subasri*1, Mr. R. Ambikapathy*2, 2024. Human strain detection based on sleeping habits using machine learning. In International Research Journal of Modernization in Engineering Technology and Science, DOI :https://www.doi.org/10.56726/IRJMETS60789

Papishetti, S., Kain, B. and Narayana, G., 2024. Stress Detection Based on Human Sleep Cycle. In MATEC Web of Conferences (Vol. 392, p. 01073). EDP Sciences.

Rois, R., Ray, M., Rahman, A. and Roy, S.K., 2021. Prevalence and predicting factors of perceived stress among Bangladeshi university students using machine learning algorithms. Journal of Health, Population and Nutrition, 40, pp.1-12.

Arya, V. and Mishra, A.K., 2021. Machine learning approaches to mental stress detection: a review. Annals of Optimization Theory and Practice, 4(2), pp.55-67.

Zainudin, Z., Hasan, S., Shamsuddin, S.M. and Argawal, S., 2021, August. Stress detection using machine learning and deep learning. In Journal of Physics: Conference Series (Vol. 1997, No. 1, p. 012019). IOP Publishing.

Asad, M., Habeeb, M. and Baig, M.M. (2024) ‘Mortal stress discovery grounded on sleeping habits using machine learning with random forest classifier’, International Journal of Research Publication and Reviews, 5(6), pp. 3529-3531. Available at: www.ijrpr.com

Venkatesh, S., 2025. Human Stress Detection Based on Sleeping Habits Using Machine Learning Algorithms.

Papishetti, S., Kain, B. and Narayana, G., 2024. Stress Detection Based on Human Sleep Cycle. In MATEC Web of Conferences (Vol. 392, p. 01073). EDP Sciences.


Refbacks

  • There are currently no refbacks.