A Machine Learning Model for Predicting Sleep and Wakefulness Based on Accelerometry, Skin Temperature and Contextual Information

DOI: https://doi.org/10.2147/nss.s452799
2024-06-06
Nature and Science of Sleep
Abstract:Aleksej Logacjov, 1 Eivind Schjelderup Skarpsno, 2, 3 Atle Kongsvold, 2 Kerstin Bach, 1 Paul Jarle Mork 2 1 Department of Computer Science, Norwegian University of Science and Technology, Trondheim, Norway; 2 Department of Public Health and Nursing, Norwegian University of Science and Technology, Trondheim, Norway; 3 Department of Neurology and Clinical Neurophysiology, St. Olavs Hospital, Trondheim, Norway Correspondence: Aleksej Logacjov, Department of Computer Science, Faculty of Information Technology and Electrical Engineering, Norwegian University of Science and Technology, Trondheim, 7034, Norway, Email Purpose: Body-worn accelerometers are commonly used to estimate sleep duration in population-based studies. However, since accelerometry-based sleep/wake-scoring relies on detecting body movements, the prediction of sleep duration remains a challenge. The aim was to develop and evaluate the performance of a machine learning (ML) model to predict accelerometry-based sleep duration and to explore if this prediction can be improved by adding skin temperature data, circadian rhythm based on the estimated midpoint of sleep, and cyclic time features to the model. Patients and Methods: Twenty-nine adults (17 females), mean (SD) age 40.2 (15.0) years (range 17– 70) participated in the study. Overnight polysomnography (PSG) was recorded in a sleep laboratory or at home along with body movement by two accelerometers with an embedded skin temperature sensor (AX3, Axivity, UK) positioned at the low back and thigh. The PSG scoring of sleep/wake was used as ground truth for training the ML model. Results: Based on pure accelerometer data input to the ML model, the specificity and sensitivity for predicting sleep/wake was 0.52 (SD 0.24) and 0.95 (SD 0.03), respectively. Adding skin temperature data and contextual information to the ML model improved the specificity to 0.72 (SD 0.20), while sensitivity remained unchanged at 0.95 (SD 0.05). Correspondingly, sleep overestimation was reduced from 54 min (228 min, limits of agreement range [LoAR]) to 19 min (154 min LoAR). Conclusion: An ML model can predict sleep/wake periods with excellent sensitivity and moderate specificity based on a dual-accelerometer set-up when adding skin temperature data and contextual information to the model. Keywords: actigraphy, epidemiology, sedentary behaviors, sleep quality, supervised machine learning, support vector machines Polysomnography (PSG) is the gold standard for sleep measurements but is impractical to implement in large out-of-lab studies. 1 As an alternative, body-worn accelerometers are commonly used to estimate sleep duration in population-based studies. 2–5 However, since accelerometry-based sleep/wake-scoring relies on detecting body movements, the prediction of sleep duration remains a challenge. 6–11 A possible approach to improve accelerometry-based prediction of sleep duration is to utilize information from other modalities related to the sleep/wake states, such as body temperature and sensor-independent features as circadian rhythm and cyclic time features. 9,12,13 Core body temperature decreases during sleep accompanied by an increase in distal skin temperature. 14,15 Although changes in skin temperature are likely influenced by a range of other factors (eg, room temperature, bed linens, etc.), recordings of skin temperature at different body areas may provide additional information relevant for predicting sleep and wakefulness. Furthermore, utilizing the information embedded in the diurnal cyclic nature of sleep 16 and seasonal changes in sleep behavior related to daylight variations 17 may improve the prediction of sleep and wakefulness. Recent studies have shown that accelerometry recorded on the thigh and low back can be used to accurately predict key daily physical activities and postures using a machine learning (ML) approach. 18,19 The aim of the current study was to develop and evaluate the performance of an ML model for predicting sleep/wake periods based on the dual-accelerometer set-up (ie, thigh and low back), and to explore if the prediction of sleep duration can be improved by adding skin temperature data and contextual information to the ML training dataset. To evaluate the performance of the ML model, the predicted sleep/wake scores were compared to sleep/wake scores derived from PSG. The study included 29 participants (12 males, 17 females) with mean (SD) age of 40.2 (15) years (range 17–70 years). Eleven of these were referred to the sleep clinic at St. Olavs University Hospital, Trondheim, Norway, by their general practitioner/medical speciali -Abstract Truncated-
neurosciences,clinical neurology
What problem does this paper attempt to address?