Human Stress Detection Based on Sleeping Habits Using Machine Learning Algorithms

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 better stress management.

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-08-27
DOI
https://doi.org/10.5281/zenodo.16962587
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Human Stress Detection Based on Sleeping Habits Using Machine Learning Algorithms

Zenodo (CERN European Organization for Nuclear Research)
Geochemistry and Geologic Mapping
article

Human Stress Detection Based on Sleeping Habits Using Machine Learning Algorithms

article en

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 better stress management.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 61%
Geochemistry and Geologic Mapping
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.