Research Article

Prediction of stress levels in sleep patterns based on random forest

Jiarui Liu*
Canterbury School

* Corresponding author: [email protected]

Abstract

The prevalence of stress in contemporary society has emerged as a significant concern, exerting a profound influence on our daily lives. The objective of this study is to predict stress levels in sleep patterns through the utilization of a machine learning algorithm known as random forest. The significance of stress detection has increased due to its potential to induce various issues such as insomnia and depression. The examination of stress can assist individuals in mitigating the adverse effects associated with prolonged exposure to stress. The study commences with the preprocessing phase, followed by an exploratory data analysis, subsequent dataset splitting, identification of significant features, and concludes with model training. The utilization of the random forest model can enhance the comprehension of the association between sleeping characteristics and levels of stress. Furthermore, it produces a f1-score of 98 percent, indicating a strong predictive capability for determining stress levels in sleep patterns. The proposed method can effectively predict stress levels during sleep mode. This study can provide an effective model for society to prevent people's psychological problems in advance.

Keywords: Stress levels; Sleep patterns; Random Forest; Model training
Published: February 22, 2024
DOI: 10.54254/2755-2721/41/20230712
Volume: ACE Vol.41
pp. 69-74
Download PDF

References

  1. Roebuck A Monasterio V Gederi E 2013 A review of signals used in sleep analysis Physiological measurement 35(1): R1
  2. Christopher D Gary R Timothy R 2004 Vulnerability to stress-related sleep disturbance and hyperarousal Sleep 27(2): pp 285–291
  3. Arthur J Spielman L Caruso S 1987 A behavioral perspective on insomnia treatment. Psychiatric Clinics of NorthAmerica 10(4): pp 541–553
  4. Feng H et al. 2019 A survey of machine learning techniques in physiology based mental stress detection systems Biocybernetics and Biomedical Engineering
  5. Siegel J 2011 REM sleep: a biological and psychological paradox Sleep medicine reviews 15(3): p 139
  6. Breiman L 1996 Bagging Predictors Machine Learning 24: 123–140
  7. Roger J Daniel F William G 1992 Automatic sleep/wake identification from wrist activity Sleep 15(5): pp 461–469
  8. Walter K Claudio M and Dario F 2008 Improving actigraph sleep/wake classification with cardio-respiratory signals In 2008 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society IEEE pp 5262–5265
  9. Mina A Tokuhiro K Sunao U 2003 Correlation between electroencephalography and heart rate variability during sleep Psychiatry and clinical neurosciences 57(1): pp 59–65
  10. Rachakonda L Bapatla A Mohanty S Kougianos E 2021 SaYoPillow: Blockchain-Integrated Privacy-Assured IoMT Framework for Stress Management Considering Sleeping Habits IEEE Transactions on Consumer Electronics (TCE) 67(1): pp 20-29
  11. Rachakonda L Mohanty S Kougianos E Karunakaran K 2018 Smart-Pillow: An IoT based Device for Stress Detection Considering Sleeping Habit in Proceedings of the 4th IEEE International Symposium on Smart Electronic Systems (iSES) pp 161-166