Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2016 Nov 4;4(4):e125.
doi: 10.2196/mhealth.6562.

Sleep Quality Prediction From Wearable Data Using Deep Learning

Affiliations

Sleep Quality Prediction From Wearable Data Using Deep Learning

Aarti Sathyanarayana et al. JMIR Mhealth Uhealth. .

Erratum in

Abstract

Background: The importance of sleep is paramount to health. Insufficient sleep can reduce physical, emotional, and mental well-being and can lead to a multitude of health complications among people with chronic conditions. Physical activity and sleep are highly interrelated health behaviors. Our physical activity during the day (ie, awake time) influences our quality of sleep, and vice versa. The current popularity of wearables for tracking physical activity and sleep, including actigraphy devices, can foster the development of new advanced data analytics. This can help to develop new electronic health (eHealth) applications and provide more insights into sleep science.

Objective: The objective of this study was to evaluate the feasibility of predicting sleep quality (ie, poor or adequate sleep efficiency) given the physical activity wearable data during awake time. In this study, we focused on predicting good or poor sleep efficiency as an indicator of sleep quality.

Methods: Actigraphy sensors are wearable medical devices used to study sleep and physical activity patterns. The dataset used in our experiments contained the complete actigraphy data from a subset of 92 adolescents over 1 full week. Physical activity data during awake time was used to create predictive models for sleep quality, in particular, poor or good sleep efficiency. The physical activity data from sleep time was used for the evaluation. We compared the predictive performance of traditional logistic regression with more advanced deep learning methods: multilayer perceptron (MLP), convolutional neural network (CNN), simple Elman-type recurrent neural network (RNN), long short-term memory (LSTM-RNN), and a time-batched version of LSTM-RNN (TB-LSTM).

Results: Deep learning models were able to predict the quality of sleep (ie, poor or good sleep efficiency) based on wearable data from awake periods. More specifically, the deep learning methods performed better than traditional logistic regression. “CNN had the highest specificity and sensitivity, and an overall area under the receiver operating characteristic (ROC) curve (AUC) of 0.9449, which was 46% better as compared with traditional logistic regression (0.6463).

Conclusions: Deep learning methods can predict the quality of sleep based on actigraphy data from awake periods. These predictive models can be an important tool for sleep research and to improve eHealth solutions for sleep.

Keywords: accelerometer; actigraphy; body sensor networks; connected health; consumer health informatics; deep learning; mobile health; pervasive health; physical activity; sleep efficiency; sleep quality; wearables.

PubMed Disclaimer

Conflict of interest statement

Conflicts of Interest: None declared.

Figures

Figure 1
Figure 1
ActiGraph Gt3X+.
Figure 2
Figure 2
Sleep efficiency equation as defined by sleep specialists.
Figure 3
Figure 3
The adapted wake after sleep onset calculation.
Figure 4
Figure 4
Example of sleep definitions on accelerometer data of an actigraphy device.
Figure 5
Figure 5
State machine diagram explaining the designation of sleep or awake time periods.
Figure 6
Figure 6
Receiver operating characteristic (ROC) curves for each model’s prediction of sleep efficiency.

References

    1. Strine TW, Chapman DP. Associations of frequent sleep insufficiency with health-related quality of life and health behaviors. Sleep Med. 2005 Jan;6(1):23–7. doi: 10.1016/j.sleep.2004.06.003.S1389-9457(04)00107-8 - DOI - PubMed
    1. Colten HR, Altevogt BR, Institute of Medicine (US) Committee on Sleep Medicine and Research . Sleep Disorders and Sleep Deprivation: An Unmet Public Health Problem. Washington, DC: National Academies Press; 2006. - PubMed
    1. Knutson KL, Ryden AM, Mander BA, Van CE. Role of sleep duration and quality in the risk and severity of type 2 diabetes mellitus. Arch Intern Med. 2006 Sep 18;166(16):1768–74. doi: 10.1001/archinte.166.16.1768.166/16/1768 - DOI - PubMed
    1. Gottlieb DJ, Punjabi NM, Newman AB, Resnick HE, Redline S, Baldwin CM, Nieto FJ. Association of sleep time with diabetes mellitus and impaired glucose tolerance. Arch Intern Med. 2005 Apr 25;165(8):863–7. doi: 10.1001/archinte.165.8.863.165/8/863 - DOI - PubMed
    1. Nilsson PM, Rööst M, Engström G, Hedblad B, Berglund G. Incidence of diabetes in middle-aged men is related to sleep disturbances. Diabetes Care. 2004 Oct;27(10):2464–9.27/10/2464 - PubMed