Skip to main content

ORIGINAL RESEARCH article

Front. Neurosci., 06 October 2022
Sec. Sleep and Circadian Rhythms
This article is part of the Research Topic Unraveling Sleep and Its Disorders Using Novel Analytical Approaches, Volume II View all 6 articles

An automated heart rate-based algorithm for sleep stage classification: Validation using conventional polysomnography and an innovative wearable electrocardiogram device

\r\nNicol Pini,Nicolò Pini1,2Ju Lynn OngJu Lynn Ong3Gizem YilmazGizem Yilmaz3Nicholas I. Y. N. CheeNicholas I. Y. N. Chee3Zhao SitingZhao Siting4Animesh AwasthiAnimesh Awasthi5Siddharth BijuSiddharth Biju5Kishan KishanKishan Kishan6Amiya PatanaikAmiya Patanaik6William P. Fifer,,William P. Fifer1,2,7Maristella Lucchini,*Maristella Lucchini1,2*
  • 1Department of Psychiatry, Columbia University Irving Medical Center, New York, NY, United States
  • 2Division of Developmental Neuroscience, New York State Psychiatric Institute, New York, NY, United States
  • 3Centre for Sleep and Cognition, Yong Loo Lin School of Medicine, National University of Singapore, Singapore, Singapore
  • 4Electronic and Information Engineering, Imperial College London, London, United Kingdom
  • 5Department of Biotechnology, Indian Institute of Technology, Kharagpur, India
  • 6Neurobit Inc., New York, NY, United States
  • 7Department of Pediatrics, Columbia University Irving Medical Center, New York, NY, United States

Background: The rapid advancement in wearable solutions to monitor and score sleep staging has enabled monitoring outside of the conventional clinical settings. However, most of the devices and algorithms lack extensive and independent validation, a fundamental step to ensure robustness, stability, and replicability of the results beyond the training and testing phases. These systems are thought not to be feasible and reliable alternatives to the gold standard, polysomnography (PSG).

Materials and methods: This validation study highlights the accuracy and precision of the proposed heart rate (HR)-based deep-learning algorithm for sleep staging. The illustrated solution can perform classification at 2-levels (Wake; Sleep), 3-levels (Wake; NREM; REM) or 4- levels (Wake; Light; Deep; REM) in 30-s epochs. The algorithm was validated using an open-source dataset of PSG recordings (Physionet CinC dataset, n = 994 participants, 994 recordings) and a proprietary dataset of ECG recordings (Z3Pulse, n = 52 participants, 112 recordings) collected with a chest-worn, wireless sensor and simultaneous PSG collection using SOMNOtouch.

Results: We evaluated the performance of the models in both datasets in terms of Accuracy (A), Cohen’s kappa (K), Sensitivity (SE), Specificity (SP), Positive Predictive Value (PPV), and Negative Predicted Value (NPV). In the CinC dataset, the highest value of accuracy was achieved by the 2-levels model (0.8797), while the 3-levels model obtained the best value of K (0.6025). The 4-levels model obtained the lowest SE (0.3812) and the highest SP (0.9744) for the classification of Deep sleep segments. AHI and biological sex did not affect scoring, while a significant decrease of performance by age was reported across the models. In the Z3Pulse dataset, the highest value of accuracy was achieved by the 2-levels model (0.8812), whereas the 3-levels model obtained the best value of K (0.611). For classification of the sleep states, the lowest SE (0.6163) and the highest SP (0.9606) were obtained for the classification of Deep sleep segment.

Conclusion: The results of the validation procedure demonstrated the feasibility of accurate HR-based sleep staging. The combination of the proposed sleep staging algorithm with an inexpensive HR device, provides a cost-effective and non-invasive solution deployable in the home environment and robust across age, sex, and AHI scores.

Introduction

Sleep is a biological necessity that leads humans to spend roughly one third of their life asleep (Foster, 2020; Ramar et al., 2021). The circadian clock plays a crucial role toward ensuring that biological processes occur in the appropriate temporal sequence (Foster, 2020). Emerging research has highlighted the critical role that sleep plays in overall health (Grandner, 2017; Billings et al., 2020; Foster, 2020; Kocevska et al., 2021; Nochaiwong et al., 2021; Ramar et al., 2021) across the lifespan (Fatima et al., 2016; Bruce et al., 2017; Matricciani et al., 2019; Stores, 2022). Healthy sleep encompasses a variety of domains such as adequate sleep duration, appropriate timing, regularity, the absence of sleep disorders, and good quality (Grandner, 2017; Foster, 2020; Kocevska et al., 2021; Ramar et al., 2021). Poor sleep health has been associated with several negative health outcomes, including increased risk of cardiovascular disease (Gottlieb et al., 2006; Grandner et al., 2016), obesity (Fatima et al., 2016; St-Onge, 2017), depression (Alvaro et al., 2013; Murphy and Peterson, 2015; Nochaiwong et al., 2021; Nutt et al., 2022), and neurodegenerative disorders (Malhotra, 2018, 2022). Despite these well-known health risks, we are in the middle of a sleep crisis, with more than 70 million Americans experiencing sleep related problems (Colten and Altevogt, 2006) and with less than 20% of patients estimated to be properly diagnosed and treated for sleep disorders (Hossain and Shapiro, 2002). This sleep crisis had been further exacerbated by the COVID-19 pandemic. The terms “coronasomnia” or “COVID-somnia” (Gupta and Pandi-Perumal, 2020) have been introduced to describe the variety of symptoms of sleep dysfunction due to stresses related to fear of the virus itself or the psychosocial impact on daily living (Voulgaris et al., 2020; Becker, 2021; Nochaiwong et al., 2021; Bhat and Chokroverty, 2022; Stores, 2022).

Polysomnography (PSG) is presently considered the gold standard method to assess sleep and it is performed in sleep laboratories and clinical settings (Vaughn and Giallanza, 2008; Bianchi and Thomas, 2013; Bertoni and Isaiah, 2019; Stowe and Afolabi-Brown, 2020). It allows the characterization of sleep architecture and sleep disorders by the analysis of several physiological signals recorded simultaneously. Limitations of PSG include the cost of the devices, laborious setup procedures, the discomfort, and the necessity to have an expert perform the time-consuming process of coding the data (Hirshkowitz, 2016). While accelerometer-based actigraphy devices have been used in the field for decades as an alternative to PSG in patients’ living environment, estimation is limited to sleep/wake states thus, insufficient for a full evaluation of sleep architecture (Vulcan et al., 2021). These limitations highlight the need of noninvasive, inexpensive, and reliable sleep monitors that could be deployed in the home to monitor sleep health with automated solutions to perform reliable sleep stage scoring (Shah and Chircu, 2018; Bartoletti, 2019; Panch et al., 2019; Panesar, 2019; Adadi and Berrada, 2020).

Recent technological advancements have led to a proliferation of consumer-oriented tools to monitor sleep (Russo et al., 2015). Initially these tools relied mainly on activity, similarly to actigraphy, but lately they have started to incorporate additional physiological signals, such as EEG, heart rate (HR), breathing and pulse oximetry (de Zambotti et al., 2020; Fuller et al., 2020; Menghini et al., 2021). Increasing research indicates that HR and its variability might be an accurate and accessible physiological proxy for sleep measurement (Fonseca et al., 2017; Sridhar et al., 2020; de Zambotti and Baker, 2021; Li et al., 2021). A wealth of literature has shown profound differences in HR across sleep stages (Aldredge and Welch, 1973; Versace et al., 2003; Mendez et al., 2006), primarily comparing REM versus NREM sleep. In adults, REM sleep has been reported to be associated with an increment in low frequency power of the HR variability signal, and a decrement in high frequency power.

Currently, the vast majority of available nearables and wearables rely on contact photoplethysmography technology to estimate a continuous or pseudo continuous HR signal (Temko, 2017; Askarian et al., 2019; Jan et al., 2019; Kinnunen et al., 2020; Rocha et al., 2020, 2021). Technological advancement in non-contact sensor technologies are expected to bring a paradigm shift in healthcare monitoring. Most promising non-contact sensors utilize the signals acquired via ballistocardiography (Giovangrandi et al., 2011) or doppler radar sensors (Li et al., 2013) – both of which can be leveraged for extracting HR. Given these considerations, HR appears as a ubiquitous measurement across a variety of form factors, environments, and applications. Nonetheless, at present, ECG-derived HR is considered the gold standard in most applications. In this work, we validated the performance of an automated sleep staging algorithm that utilizes HR parameters derived from a single-channel ECG namely, Neurobit HRV (Neurobit Inc., New York, NY, USA). The algorithm solely relies on HR derived from the ECG signal thus, it results insensitive to the ECG morphology. As above stated, HR can be estimated at various degrees of accuracy. As such, the utilization of ECG-derived HR allow us to estimate the baseline performance of the sleep staging algorithm.

Additionally, the present work addresses another significant gap in the present state of the art. The results of automated sleep stage scoring derived from most of the currently available solutions lack validation against gold standard PSG measures. As such, the performance of these devices varies widely in independent validations (Chinoy et al., 2021). Moreover, access to the raw data is often limited and/or transparent access to the scoring algorithms is missing (Lee et al., 2019; Depner et al., 2020). Therefore, reproducibility and independent validation are severely restricted and unfeasible. This is further exacerbated by the fact that upgrades in firmware and scoring algorithms are not transparent to the users hence, limiting longer-term comparisons either within or between individuals or disabling the opportunity of leveraging historical open available dataset. To address these shortcomings, we provide transparent access to our cloud-based algorithms through a software development kit (SDK1) and an open application programming interface (API) along with reference code and documentation.2 The algorithms are versioned and openly accessible through the API.

In this manuscript, we performed validation on a public dataset [Physionet CinC (Goldberger et al., 2000)] and then on a secondary dataset with data acquired simultaneously with PSG and an ECG patch. Results demonstrate the feasibility of accurate sleep staging based on HR derived from ECG, obtained from either PSG recordings or wearable devices. The combination of the proposed sleep staging algorithm with inexpensive and commonly used ECG patches (∼100$) provides a cost-effective and non-invasive solution easily deployable in the home for large-scale sleep characterization in the field.

Material and methods

The sleep staging algorithm

The HR based automated sleep staging software called Neurobit-HRV was developed by (Neurobit Inc., New York, NY, USA). The deep-learning architecture was implemented in Python 3.6 using the Keras3 and Tensorflow 2 library.4 Firstly, the algorithm was trained and tested on private datasets comprising of ECG extracted from 12,404 PSG recordings collected at academic sleep centers in South-East Asia (35%), North America (30%) and Europe (30%). Fifty-nine percent of the total assessed participants had a suspected sleep disorder whereas the remaining 41% was contributed by healthy subjects. The mean age of such aggregated dataset was 42.3 ± 16.8 (mean ± std) years. The observations were randomly split into training (80%) and testing (20%) data at the participant level, stratified by the data source. The model which obtained the smallest test error was selected as the optimal one. Once the optimal model was obtained, the model weights were frozen and made available via a versioned API. This API is publicly available, and it was employed for the purpose of validating the performance of the algorithm as described in the following. Figure 1 displays the trends of model accuracy for the training and testing sets as a function of progressive iterations. The software can operate on either a single channel ECG or directly on R-peak locations, given it leverages the HR signal. To achieve optimal performance, the temporal precision of the R-peak location must be ± 4 ms or better. Neurobit-HRV incorporates an extensive wavelet-based ECG signal quality assessment toolbox for a real-time QRS detector, followed by a spurious R-peak detector for signal processing and quality assurance. Then, the processed RR interval tachogram is fed to the above-described automated sleep staging algorithm. Sleep state classification can be performed with different levels of granularity, namely 2-level (Wake; Sleep), 3-level (Wake: NREM: N1+N2+N3; and REM) or 4-level (Wake; Light: N1+N2; Deep: N3; and REM) in 30 s epochs compliant with the American Academy of Sleep Medicine (AASM) standard. The 2- and 3- level classifications are obtained by appropriately collapsing the 4- level classification. As such, the figures of merit for the classification of segments labeled as Wake are identical across models, while in the 3-level model, Light and Deep Sleep segments from the 4-level model are collapsed and classified as NREM segments. Additional information describing the mode of operation of the algorithm are reported in the Supplement (see Supplementary Figure 1).

FIGURE 1
www.frontiersin.org

Figure 1. Trend of accuracy in the training (blue solid line) and testing (orange solid line) datasets as a function of training epochs for the 4-level model. Following an initialization period (for epoch value < ∼50), the difference in performance between the training and testing sets stabilizes at ∼5%.

Participants and study protocol

You Snooze You Win – The PhysioNet Computing in Cardiology (CinC) challenge 2018 dataset

The CinC dataset is available at: https://physionet.org/content/challenge-2018/1.0.0/ and it is comprised of 994 participants (18–90 years old) which were monitored at Massachusetts General Hospital (MGH) sleep laboratory for the diagnosis of sleep disorders. Each participant has a complete set of 30-s annotated segments with corresponding sleep stages and respiratory events annotated by clinical staff at the MGH according to the AASM manual for the scoring of sleep. For this study, the initial preprocessing step consisted of assessing the quality of the ECG recordings extracted from the ensemble of recorded signals (EEG, EOG, EMG, respiration, and SaO2). The signal quality index is an estimate of signal to noise ratio (SNR). The ECG channel was fed to the Neurobit-HRV software to extract the RR interval tachogram along with a signal quality index. A proprietary wavelet-based technique was utilized to isolate the ECG signal from the background noise. The amplitude (A) of the ECG signal was computed via maximum filtering over windows of 3 s. The amplitude of the background noise was calculated as √2*root mean square (RMS) amplitude of the background signal over windows of duration 10 s. The signal to noise ratio is calculated according to Equation 1:

SNR = 20 log ( A signal A noise ) dB

By progressively sliding the 3-s and the 10-s windows (one sample at the time), a continuous SNR signal was computed for each epoch to be scored. An epoch is defined as rejected if 50% or more samples have an SNR value < 5 dB. A recording was excluded from the processing steps described in the following if 10% or more of the epochs were rejected. Illustrative examples of rejected epochs are included in the Supplementary materials (see Supplementary Figure 2). For the retained recordings, all epochs – including those with an associated SNR below the illustrated rejection criteria – were scored.

Z3Pulse datasets

The Z3Pulse dataset consisted of a set of 52 healthy adults in the age range of 23–69 years with no known sleep or psychiatric disorders. All participants provided written informed consent in compliance with a protocol approved by the National University of Singapore’s Institutional Review Board (NUS-IRB) and were compensated for their participation. The study protocol was carried out over three nights, when trained research assistants visited participants’ homes. On each night, participants wore a wearable ECG patch paired with an Android phone, alongside with simultaneous PSG. PSG was collected using the SOMNOtouch device (SOMNOmedics GmbH, Randersacker, Germany). Electroencephalography was recorded from two channels (C3 and C4 in the international 10–20 system of electrode placement) referenced to the contralateral mastoids. The common ground and reference electrode were placed at Fpz and Cz, respectively. Electrooculography (EOG; right and left outer canthi) and submental electromyography (EMG) were also recorded. EEG signals were sampled at 256 Hz and impedance was kept at less than 5KΩ for EEG and below 10KΩ for EOG and EMG channels. Sleep scoring was manually performed based on the AASM manual (Silber et al., 2007). Self-reported bed and wake up times were also collected. Each participant had at least one usable recording, 40 (∼77%) had 2 separate overnight recordings and 19 (∼37%) had 3.

The wearable ECG patch utilized in this study was the Z3Pulse device (Neurobit Inc., New York, USA), a chest worn, wireless device capable of recording HR, body position, activity and temperature. Z3Pulse was developed using the Movesense open wearable tech platform (Movesense, Finland5). The device is first connected to a reusable belt worn around the chest or a one-time Ag-Cl patch. In the latter case, the patch is directly applied on the skin below the sternum. The Movesense device consists of a single-channel ECG sensor, a nine-axis inertial measurement unit (IMU) and a temperature sensor. The device captures ECG at 128 Hz and IMU at 13 Hz. The device is operated on a lithium coin cell (CR-2025), that lasted approximately 400 h of recording. The Z3Pulse device transmits the data in real-time to a mobile app over Bluetooth low energy (BLE). Once recording is complete, the collected data is uploaded to the cloud and analyzed using Neurobit-HRV. A graphical summary of the different steps of the methodology, from data collection to automated sleep stage scoring, is displayed in Figure 2.

FIGURE 2
www.frontiersin.org

Figure 2. The Z3Pulse system and processing pipeline – from data acquisition to automated sleep stage scoring. The Z3Pulse sensor is a chest-worn wearable. It is secured by a one-time Ag-Cl patch or by a reusable belt. It transmits a single channel ECG and inertial measurement unit data in real-time to the Z3Pulse App. The app is operated via a user-friendly interface and stores the data locally for the entire duration of a recording. Once a given overnight sleep study is terminated, the collected data is transmitted to the Neurobit Cloud Servers. The data undergoes two stages of pre-processing. In the Preprocessing Stage 1, the analytics mounted on the Neurobit Cloud Servers enable the calculation of sleep position and detection of R-peaks (alongside the associated SNR values). Subsequently, these derivatives are pushed forward into the pipeline (to the Preprocessing Stage 2). At this stage, the noise-corrected RR tachogram, HR, HRV, the derived respiration estimates are calculated. Additionally, leveraging the position data (derived at the Preprocessing Stage 1), the in bed/out of bed score if obtained for each available/accepted epoch. The time-series data originated at the Preprocessing Stage 2 is then fed to two-stage deep-learning models. In a nutshell, the deep-learning model is based on a temporal convolutional model (Lea et al., 2017) with inception-residual networks (Szegedy et al., 2017). The first stage (DL-Stage 1) has 492,420 parameters and the second stage (DL-Stage 2 has 538,796 parameters. These networks use temporal convolutional networks along with inception layers. Overall, the two stages combined have a total of 1,031,216 parameters. Benefiting from the users’ feedback, an updated version of the pipeline mounts the Preprocessing Stage 1 is directly onto the device. Such processed data is stored locally in device memory. These results are transmitted via Bluetooth to the Z3Pulse App when a given recording is terminated. This updated architecture virtually prevent any data loss due to disconnections of the Z3Pulse Sensor from the Z3Pulse App during an overnight sleep recording.

The process of aligning the data across PSG and Z3Pulse was essential to allow accurate comparison on an epoch-by-epoch basis. The timestamps of both systems were first synchronized using an internet time server as reference. Bedtimes for the PSG were estimated from the sleep diary. For Z3Pulse, position data were used to derive times on and off the bed. The time recorded from either the PSG or Z3Pulse, depending on the device with earlier lights-off time, was used as the reference data point. The shorter recording was extended to match the longer one by assuming “awake time” for missing epochs. An example of the scenario described is summarized in Supplementary Figure 3 in the Supplement.

Data analysis

Firstly, we evaluated the classification performance of the 2-, 3-, and 4-levels models in both datasets considering each scored epoch as an independent observation. These epoch-level results are presented in the Supplementary material. The goodness of fit metrics computed were the following: Accuracy (A), Cohen’s kappa (K), Sensitivity (SE), Specificity (SP), Positive Predictive Value (PPV), and Negative Predicted Value (NPV). Then, the estimates obtained at the epoch level were averaged within each individual participant to derive subject-level results. Lastly, these subject-level results were averaged to cohort-level metrics. The described approach was conducted independently for the two cohorts analyzed.

The wealth of data within the CinC dataset allowed for performance evaluation of the algorithm as a function of factors known to have an impact on HR: age, AHI score, and biological sex. Participants’ ages and AHI scores were independently stratified using 3-level categorization; age ≤ 40 years-old, 40 < age ≤ 60 years-old, or age > 60 years-old and AHI ≤ 5 (None/Minimal) or 5 < AHI ≤ 15 (Mild) or AHI > 15 (Severe). Multiple independent linear regression models were used to estimate the association between age, AHI score, and biological sex on accuracy, kappa, SE, SP, PPV, and NPV. The limited sample size of the Z3Pulse dataset did not allow for analyses stratified by age, AHI score, and biological sex.

Results

Populations

For the CinC dataset a total of 6 participants were excluded from the analyses accordingly to the exclusion criteria illustrated in the previous sections. The final dataset included 988 subjects. There were 664 (∼67%) males, 324 (∼33%) females; 137 (∼14%), 285 (∼29%) and 566 (∼57%) participants in the None/Minimal, Mild, and Severe AHI groups, respectively; 157 (∼16%), 456 (∼46%) and 375 (∼38%) participants in the age ≤ 40 years-old, 40 < age ≤ 60 years-old, and age > 60 years-old groups, respectively. In the CinC cohort, participants’ total sleep time was 369.6 ± 69.2 (mean ± std) minutes, time spent in NREM sleep was 310.8 ± 59.8 min, and time spent in REM sleep was 58.8 ± 35.1 min.

For the Z3pulse dataset, a total of 44 (∼28%) out of 156 records were excluded. Most of the recordings of insufficient quality had missing data due to issues in data transmission rather than presenting excessive noisiness of the ECG traces. There were 27 (∼52%) males, 25 (∼48%) females; 38 (∼73%), 7 (∼13%) and 7 (∼13%) participants in the age ≤ 40 years-old, 40 < age ≤ 60 years-old, and age > 60 years-old groups, respectively. In the Z3pulse cohort, participants’ total sleep time was 402.5 ± 64.6 (mean ± std) minutes, time spent in NREM sleep was 311.1 ± 49.4 min, and time spent in REM sleep was 91.4 ± 30.6 min. A total of 112 recordings were included in the analysis.

Clinical and demographic data of the CinC and Z3pulse datasets are illustrated in Table 1.

TABLE 1
www.frontiersin.org

Table 1. Summary characteristics of the participants included in CinC and Z3Pulse datasets.

Computing in Cardiology (CinC) dataset

Results for the 2-, 3-, and 4-levels prediction for the CinC dataset data are displayed in Figure 3 via confusion matrices and reported in Supplementary Table 1. The highest value of accuracy was achieved by the 2-levels classification (wake vs sleep), whereas the predictions obtained in the 3-levels model obtained the highest value of kappa. As described in the Methods section, by design of the algorithm, all the derived metrics (SE, SP, PPV, and NPV) relative to the classification of wake segments, are identical across the 2-, 3-, and 4-levels models. On the other hand, the classification of sleep segments is achieved by progressively collapsing different sleep states passing from the 4-levels to the 2-levels model. As a consequence, values of PPV and NPV were substantially equivalent across models and sleep states. The granular level of classification achieved by the 4-levels model obtained the lowest value of SE (0.3812) and the highest value of SP (0.9744) for the classification of DEEP sleep segments. The comparison of the goodness of fit metrics at the segment level (Supplementary Table 1) versus the ones obtained at the participant level (Table 2) revealed a close concordance between the two approaches.

FIGURE 3
www.frontiersin.org

Figure 3. Full-counts and normalized confusion matrices for results of the 2-, 3-, and 4-levels prediction for the CinC dataset (Left column) and Z3Pulse dataset (Right column).

TABLE 2
www.frontiersin.org

Table 2. Mean and [95% Confidence Intervals] Accuracy (A), Cohen’s kappa (K), Sensitivity (SE), Specificity (SP), Positive Predictive Value (PPV), and Negative Predicted Value (NPV) were obtained by firstly collapsing metrics within and subsequently across participants in the CinC dataset.

Table 3 summarizes the performance of the 2-levels model as a function of participants’ characteristics. AHI and biological sex groups did not affect the outcome metrics. In contrast, a significant decrease in A and K were reported for older age groups when compared to the reference age group (age ≤ 40 years-old). Specifically, the average decrease in A for the age group 40 < Age ≤ 60 and Age > 60 was 3.02 and 7.45%, respectively. Similar results were found for the other outcome metrics such that the mean decrease in performance in the group of participants age > 60 years old is approximately double that of the 40 < age ≤ 60 group. Analogous findings were reported when considering the 3-levels and 4-levels models as reported in Supplementary Tables 2, 3.

TABLE 3
www.frontiersin.org

Table 3. Mean and [95% confidence intervals] of beta estimates of the performance of the 2-levels models as a function of the participants’ characteristics: age, AHI score, and biological sex.

Z3Pulse dataset

Results for the 2-, 3-, and 4-levels prediction are reported in Table 4 (at the participant level) and Supplementary Table 4 (at the segment level). The highest value of accuracy was achieved by the binary classification (wake vs sleep) performed in the 2-levels model (0.8812 [0.8668–0.8955] and 0.8797, at the participant and segment levels, respectively), whereas the prediction obtained in the 3-levels model obtained the highest value of kappa [0.611 (0.5818, 0.6401) and 0.6117]. Regarding the classification of the sleep states, the lowest value of SE [0.6163 (0.5710, 0.6617) and 0.6115] and the highest value of SP [0.9606 (0.9536, 0.9676) and 0.9605] were obtained across the classification of DEEP sleep segment. Values of PPV and NPV were comparable equivalent across models and sleep states. The comparison of the goodness of fit metrics at the segment (Table 4) versus that obtained at the participant level (Supplementary Table 4) revealed a close concordance across the different metrics.

TABLE 4
www.frontiersin.org

Table 4. Mean and [95% confidence Intervals] Accuracy (A), Cohen’s kappa (K), Sensitivity (SE), Specificity (SP), Positive Predictive Value (PPV), and Negative Predicted Value (NPV) were obtained by firstly collapsing metrics within and subsequently across participants in the Z3Pulse dataset.

Discussion

The aim of this study was to validate the performance of the previously trained and tested Neurobit-HRV deep learning model for automatic sleep staging, utilizing two datasets, namely a publicly available collection of PSG recordings [You Snooze You Win – The PhysioNet CinC Challenge 2018 dataset (Goldberger et al., 2000)], and a proprietary dataset of simultaneously collected PSG and single lead ECG acquired using a wearable device (Z3Pulse device). The results of the classification performance in the two datasets highlighted high and consistent accuracy, 88, 82, and 73% for the 2- levels, 3- levels and 4-level models, respectively, in the CinC dataset and 88, 80, and 70% for the Z3Pulse dataset. In addition, the agreement of such metrics compared to results obtained in the training/testing phase (see Figure 1), speaks to the robustness of the developed framework. In fact, the accuracy of the 4-level model in the original training (75.15%) and testing set (70.71%) is comparable to the results obtained in the CinC (72.95%) and Z3Pulse (70.30%) datasets.

Recent years have seen the surge of automated sleep stage algorithms leveraging a variety of physiological signals collected via traditional, semiportable, or wearable devices. While models trained on the entirety of the physiological signals collected via PSG are able to achieve performance close to human scorers (Vallat and Walker, 2021), the interest in quantifying and tracking human sleep by means of less invasive and easy deployable devices has increased exponentially. Therefore, the demand for automated, accurate, and highspeed algorithms working with a reduced set of features has scaled accordingly. Proposed models have evolved from simple binary detection of sleep–wake to a more fine-grained sleep classification. Examples are automatic frameworks utilizing a single lead EEG, either isolated from PSG recordings or collected using the Zmachine® sleep monitoring system (Wang et al., 2015; Yoon et al., 2017b; Olesen et al., 2021), or a single lead ECG either isolated from PSG studies or acquired using a variety of strategies (Li et al., 2018; Walch et al., 2019; Sridhar et al., 2020) potentially complemented by respiratory effort (Fonseca et al., 2015; Bakker et al., 2021). The model validated in this study provides a significant contribution toward the methodological advancement of automatic sleep stage scoring relying solely on a single lead ECG signal, acquired via a wearable patch. In addition, the algorithm solely utilizes HR hence it is independent of the ECG morphology. As such, the proposed solution algorithm can easily work with other sensor modalities which are capable of measuring HR, irrespective of the original acquired signal. This is an important consideration, given the rapid proliferation of internet of things (IoT) devices capable of measuring HR through various contact and non-contact sensors. Furthermore, to fully describe the performance of the algorithm, we calculated several goodness of fit in addition to accuracy, such as kappa, SP, SE, NPV and PPV not only for the overall models but for each of the predicted sleep states. Although these values are inextricably linked, they do provide complementary information (Trevethan, 2017) and allow for a better assessment of the performance of the algorithm.

In this work, we show that the proposed model can not only achieve high accuracy, but also obtained adequate performance on other metrics across multiple datasets not employed for training nor testing. The achieved results are comparable with previous work by other research groups. Sridhar et al. developed an automated sleep staging algorithm using instantaneous heart rate (Sridhar et al., 2020). Analogously to our approach, the CinC dataset was utilized to validate their previously trained and tested architecture. Values of accuracy and kappa are substantially equivalent to our results; accuracy was equal to 0.72 in both methods, and we obtained a 0.01 lower value of kappa (kappa was equal to 0.54 in the reported analysis). Furthermore, both algorithms displayed the worst performance in the classification of light and deep sleep epochs. One possible explanation for the reported low value of sensitivity in deep sleep could be the inter-rater reliability of expert raters, since agreement in scoring deep sleep has been reported be the lowest and to vary significantly with age and biological sex (Danker-Hopfe et al., 2004; Rosenberg and Van Hout, 2013). Another relevant architecture was proposed by Radha et al. (2019). This solution utilizes parameters extracted from the heart rate variability signal. Whilst the obtained results of accuracy and kappa are slightly higher than those reported in this manuscript, it should be noted that the algorithm was validated on a considerably smaller sample size and not using an independent dataset. In addition, authors report a decrease in performance by age which is significantly more pronounced that the results reported in Table 3. Lastly, distributions of accuracy and kappa across sleep states reported by Radha et al. are characterized by a significantly higher variability compared to our findings. Interestingly, the model proposed in this manuscript achieved equivalent performance or even outperformed models utilizing ECG in combination with other physiological signals. As an example, the solution proposed by Sun et al. (2020) achieved similar performance despite pairing ECG with abdominal respirator effort. A similar approach was proposed by Rahimi et al. (2019) which combined heart rate variability parameters and ECG-derived respiration. Accuracy for the 2-level and 3-level models are approximately 10% lower compared to the results obtained in our validation study which solely utilized the ECG signal to derive sleep state classification. A summary of the comparisons between the proposed architecture and previous work published in the literature is reported in Table 5.

TABLE 5
www.frontiersin.org

Table 5. Summary of articles cited in the discussion section for the purpose of comparing the proposed solution with the existing literature.

Concurrently, recent years have seen the exponential growth of PPG-based wearables aimed to perform sleep stage classification in the natural/home environment. As recently summarized in a comprehensive systematic review (Imtiaz, 2021), PPG-based solutions are on average easier to use and better suited for wearable/nearable monitoring but often unable to reliably characterize the full spectrum of sleep stages. A recent manuscript by Zhao and Sun (2021), proposed an approach similar to our work despite limited to a significantly smaller sample size. The reported results for accuracy and Cohen’s kappa of the 3-level and 4-level models are aligned with our findings. Compared to most of the available PPG-based solutions for sleep classification, the model presented by Zhao et al. only uses a single-channel PPG signals as classification data and does not require the use of complementary information from other signals. However, the authors do not report other metrics of goodness of fit nor performance of the 2-level classification. An additional insightful approach into the PPG-based approaches is presented by Li et al. (2021). The authors developed a sleep staging method using wrist-worn accelerometry in combination with PPG, leveraging transfer learning from a large database of ECG recordings (5,793 participants). Transfer learning was applied to train a PPG-based model by taking advantage of the extant approaches built from massively available data type such as ECG. When considering PPG data only, the values of accuracy for the 2-, 3- and 4-level models are approximately 0.10 lower compared to the presented model, whereas the values of Cohen’s kappa are 1.5 times lower. Similar results are obtained when models were trained by combining PPG and actigraphy data. A comprehensive review of the most recent developed ECG- and PPG-based models is presented in (Imtiaz, 2021).

One additional advantage of the proposed algorithm is that it does not require contextual information, such as start time of the recording, thus being agnostic and removing any potential sources of bias. This type of bias is known to affect algorithms to analyze actigraphy data (Paquet et al., 2007) and manual PSG scoring. We also tested if other demographic factors known to be associated with sleep characteristics, namely biological sex, age, and AHI, would affect algorithm performances. We showed the insensitivity of the algorithm to both AHI and biological sex. Such characteristics have been previously reported to affect classification performance (Redline et al., 2004) thus, our methodology is seen as an advancement toward a universally applicable sleep scoring model. However, our results showed that the performance of the algorithm was associated with participants’ age. One explanation for this finding may be attributed to the differences in age group distributions between the training/testing versus the validation sets. Extensive literature has shown that HR indices parameters change with age (Voss et al., 2015), thus for future development we anticipate additional data collection across various age groups to optimize the algorithm.

Lastly, the algorithm and datasets utilized in this manuscript are publicly available. This is an essential step to support wide adoption of automatic sleep staging algorithms within the research and clinical communities.

Limitations

The main limitation of the proposed algorithm is the lack of interpretability of the information extracted from the input HR signal due to the black box nature of deep-learning methods (Samek et al., 2017; Shah and Chircu, 2018; Bartoletti, 2019; Panch et al., 2019; Panesar, 2019; Adadi and Berrada, 2020; Stiglic et al., 2020). Given that HR segments are directly fed into the model, it is non-trivial to gain insight onto the features extracted at the level of encoding/decoding layers nor identify those contributing the most to predicting the sleep stage membership of each scored segment. While advances in machine learning have enables visualization, interpretability, and explicability of the trained architectures (Samek et al., 2017; Panch et al., 2019; Panesar, 2019; Stiglic et al., 2020), an in depth characterization of the features extracted by the network is beyond the scope of the present study. In future work, it would be desirable to compare such features with time, frequency, and nonlinear features widely employed in the HRV literature. Recent years have seen the development of a variety of artificial intelligence architecture characterized by interpretable knowledge representations (without any additional human supervision) (Seo et al., 2017; Zhang et al., 2018; Adadi and Berrada, 2020). Experiments have shown that our interpretable artificial intelligence and machine learning methodologies encoded more semantically meaningful knowledge in high dimensional convolutional layers than traditional architectures (Zhang et al., 2018; Kuo et al., 2019). Dimensionality reduction techniques have been proposed to gain insight into the complex sequence of spatial-spectral filtering operations performed by the convolutional layers. A widely exploited transformation is called Saab (Subspace approximation with adjusted bias) (Kuo et al., 2019). The Saab method is a variant of PCA, and it contributes to dimension reduction. This operation enhances discriminability of some dimensions by deriving dimensions with a larger receptive which are intrinsically less granular and easier to characterize.

Further technological improvement of Z3Pulse system is warranted. As the scenarios of utilization rapidly expand, the system may undergo additional modification of the hardware, firmware, and software. In fact, the current version of the system has benefited immensely from the testing conducted outside of traditional clinical settings. The initial version of the Z3pulse relied exclusively on a continuous BLE connection between the device and the phone. This characteristic presented a significant limitation, as multitude of instances may terminate such connectivity. Examples are the mobile operating system terminating the app without notice due to power or resource constraint, the connection interrupted in instances when the participants were outside of phone’s Bluetooth range. This resulted in a considerable portion of the recordings failing quality checks. Informed by the data collected in low-middle income settings as well as the consideration above-listed, the RR detection and SNR calculation algorithms were moved into the device firmware. As such, the device can record the HR, SNR, and position directly on the device itself. In the current configuration, the phone is used to signal the device for starting the recording and retrieve the data once data acquisition is completed.

Conclusion

In conclusion, the solution illustrated in this manuscript highlight the opportunity of utilizing an inexpensive and widely available ECG wearable devices paired with automated sleep staging algorithms to characterize sleep architecture rapidly and inexpensively with high levels of accuracy. Moreover, the reported findings set the foundation for a HR-operated (derived from gold-standard ECG) algorithm. By benefiting from the open and accessible nature of the algorithm, the proposed solution can be virtually integrated with any sensors capable of estimating HR. In the future, we anticipate utilizing the described algorithm on HR data derived from other sensors as well as comparing the robustness of the proposed solution. This work offers the opportunity to enable innovative scalable and accessible modalities for monitoring sleep in the home environment, increasing equitable access to sleep health.

Data availability statement

The CinC dataset analyzed for this study can be found in the You Snooze You Win-The PhysioNet Computing in Cardiology (CinC) Challenge 2018 dataset. The dataset is available at: https://physionet.org/content/challenge-2018/1.0.0/. The Z3Pulse dataset generated and analyzed for this study is not publicly available. The access to the Z3Pulse dataset is managed by AP. Data may be shared upon reasonable request addressed to NP, AP, and ML.

Ethics statement

The studies involving human participants were reviewed and approved by National University of Singapore’s Institutional Review Board (NUS-IRB). The patients/participants provided their written informed consent to participate in this study.

Author contributions

NP, AP, WF, and ML were involved in study design, literature search, validation, data curation, data analysis, and wrote the manuscript. NP, JO, NC, ZS, AA, SB, and KK organized the database, literature review, and prepared pictures and tables. All authors contributed to the interpretation of the results, manuscript revision and reviewed the final version making the necessary changes, approved the submitted version, and agreed to be accountable for the content of the work.

Funding

This work was supported by grants from the Health Technology Consortium grant and by the Movesense Academic Program.

Acknowledgments

We thank Xinyu Chua, Andrew Dicom, Shohreh Ghorbani, Hosein Golkashani, Zuriel Hassirim, Shamsul Azrin Bin Jamaludin, Tiffany Koa, Teyang Lau, Zaven Leow, Karthika Muthiah, Alyssa Ng, Raelynn Ng, Zhenghao Pu, Teck Boon Teo, Kian Wong, and Nicole Yu for their help in data collection and sleep scoring.

Conflict of interest

Authors AP and KK were shareholders in Neurobit, Inc.

The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fnins.2022.974192/full#supplementary-material

Footnotes

  1. ^ http://research.neurobit.com/
  2. ^ https://gist.github.com/neurobittechnologies/e1d13e0b59c56f5804af7c127b36d20d
  3. ^ https://keras.io/
  4. ^ https://www.tensorflow.org/
  5. ^ www.movesense.com

References

Abou Jaoude, M., Sun, H., Pellerin, K. R., Pavlova, M., Sarkis, R. A., Cash, S. S., et al. (2020). Expert-level automated sleep staging of long-term scalp electroencephalography recordings using deep learning. Sleep 43:zsaa112. doi: 10.1093/sleep/zsaa112

PubMed Abstract | CrossRef Full Text | Google Scholar

Adadi, A., and Berrada, M. (2020). “Explainable AI for healthcare: From black box to interpretable models,” in Embedded Systems and Artificial Intelligence, eds V. Bhateja, S. C. Satapathy, and H. Satori (Berlin: Springer), 327–337.

Google Scholar

Aldredge, J. L., and Welch, A. J. (1973). Variations of heart rate during sleep as a function of the sleep cycle. Electroencephalogr. Clin. Neurophysiol. 35, 193–198. doi: 10.1016/0013-4694(73)90176-4

CrossRef Full Text | Google Scholar

Alvaro, P. K., Roberts, R. M., and Harris, J. K. (2013). A systematic review assessing bidirectionality between sleep disturbances, anxiety, and depression. Sleep 36, 1059–1068. doi: 10.5665/sleep.2810

PubMed Abstract | CrossRef Full Text | Google Scholar

Askarian, B., Jung, K., and Chong, J. W. (2019). Monitoring of heart rate from photoplethysmographic signals using a samsung galaxy Note8 in underwater environments. Sensors (Basel) 19:2846. doi: 10.3390/s19132846

PubMed Abstract | CrossRef Full Text | Google Scholar

Bakker, J. P., Ross, M., Vasko, R., Cerny, A., Fonseca, P., Jasko, J., et al. (2021). Estimating sleep stages using cardiorespiratory signals: Validation of a novel algorithm across a wide range of sleep-disordered breathing severity. J. Clin. Sleep Med. 17, 1343–1354. doi: 10.5664/jcsm.9192

PubMed Abstract | CrossRef Full Text | Google Scholar

Bartoletti, I. (2019). “AI in healthcare: Ethical and privacy challenges,” in Proceeding of the Conference on Artificial Intelligence in Medicine in Europe (Cham: Springer), 7–10.

Google Scholar

Becker, P. M. (2021). Overview of sleep management during COVID-19. Sleep Med. 91, 211–218. doi: 10.1016/j.sleep.2021.04.024

PubMed Abstract | CrossRef Full Text | Google Scholar

Bertoni, D., and Isaiah, A. (2019). Towards patient-centered diagnosis of pediatric obstructive sleep apnea-A review of biomedical engineering strategies. Expert Rev. Med. Devices 16, 617–629. doi: 10.1080/17434440.2019.1626233

PubMed Abstract | CrossRef Full Text | Google Scholar

Bhat, S., and Chokroverty, S. (2022). Sleep disorders and COVID-19. Sleep Med. 91, 253–261.

Google Scholar

Bianchi, M. T., and Thomas, R. J. (2013). Technical advances in the characterization of the complexity of sleep and sleep disorders. Prog. Neuropsychopharmacol. Biol. Psychiatry 45, 277–286. doi: 10.1016/j.pnpbp.2012.09.017

PubMed Abstract | CrossRef Full Text | Google Scholar

Billings, M. E., Hale, L., and Johnson, D. A. (2020). Physical and social environment relationship with sleep health and disorders. Chest 157, 1304–1312. doi: 10.1016/j.chest.2019.12.002

PubMed Abstract | CrossRef Full Text | Google Scholar

Bruce, E. S., Lunt, L., and McDonagh, J. E. (2017). Sleep in adolescents and young adults. Clin. Med. 17, 424–428. doi: 10.7861/clinmedicine.17-5-424

PubMed Abstract | CrossRef Full Text | Google Scholar

Chinoy, E. D., Cuellar, J. A., Huwa, K. E., Jameson, J. T., Watson, C. H., Bessman, S. C., et al. (2021). Performance of seven consumer sleep-tracking devices compared with polysomnography. Sleep 44:zsaa291. doi: 10.1093/sleep/zsaa291

PubMed Abstract | CrossRef Full Text | Google Scholar

Colten, H. R., and Altevogt, B. M. (2006). “Sleep disorders and sleep deprivation: An unmet public health problem,” in Sleep Disorders and Sleep Deprivation: An Unmet Public Health Problem, eds H. R. Colten and B. M. Altevogt (Washington, DC: National Academies Press). doi: 10.17226/11617

PubMed Abstract | CrossRef Full Text | Google Scholar

Danker-Hopfe, H., Kunz, D., Gruber, G., Klösch, G., Lorenzo, J. L., Himanen, S. L., et al. (2004). Interrater reliability between scorers from eight European sleep laboratories in subjects with different sleep disorders. J. Sleep Res. 13, 63–69. doi: 10.1046/j.1365-2869.2003.00375.x

PubMed Abstract | CrossRef Full Text | Google Scholar

de Zambotti, M., and Baker, F. C. (2021). “Sleep and circadian regulation of the autonomic nervous system,” in Autonomic Nervous System and Sleep: Order and Disorder, eds S. Chokroverty and P. Cortelli (Cham: Springer International Publishing), 63–69.

Google Scholar

de Zambotti, M., Cellini, N., Menghini, L., Sarlo, M., and Baker, F. C. (2020). Sensors capabilities, performance, and use of consumer sleep technology. Sleep Med. Clin. 15, 1–30. doi: 10.1016/j.jsmc.2019.11.003

PubMed Abstract | CrossRef Full Text | Google Scholar

Depner, C. M., Cheng, P. C., Devine, J. K., Khosla, S., de Zambotti, M., Robillard, R., et al. (2020). Wearable technologies for developing sleep and circadian biomarkers: A summary of workshop discussions. Sleep 43:zsz254. doi: 10.1093/sleep/zsz254

PubMed Abstract | CrossRef Full Text | Google Scholar

Fatima, Y., Doi, S. A., and Mamun, A. A. (2016). Sleep quality and obesity in young subjects: A meta-analysis. Obes. Rev. 17, 1154–1166. doi: 10.1111/obr.12444

PubMed Abstract | CrossRef Full Text | Google Scholar

Fonseca, P., Den Teuling, N., Long, X., and Aarts, R. M. (2016). Cardiorespiratory sleep stage detection using conditional random fields. IEEE J. Biomed. Health Inform. 21, 956–966. doi: 10.1109/JBHI.2016.2550104

PubMed Abstract | CrossRef Full Text | Google Scholar

Fonseca, P., Long, X., Radha, M., Haakma, R., Aarts, R. M., and Rolink, J. (2015). Sleep stage classification with ECG and respiratory effort. Physiol. Meas. 36, 2027–2040. doi: 10.1088/0967-3334/36/10/2027

CrossRef Full Text | Google Scholar

Fonseca, P., van Gilst, M. M., Radha, M., Ross, M., Moreau, A., Cerny, A., et al. (2020). Automatic sleep staging using heart rate variability, body movements, and recurrent neural networks in a sleep disordered population. Sleep 43:zsaa048. doi: 10.1093/sleep/zsaa048

PubMed Abstract | CrossRef Full Text | Google Scholar

Fonseca, P., Weysen, T., Goelema, M. S., Most, E. I. S., Radha, M., Lunsingh Scheurleer, C., et al. (2017). Validation of photoplethysmography-based sleep staging compared with polysomnography in healthy middle-Aged adults. Sleep 40:7. doi: 10.1093/sleep/zsx097

PubMed Abstract | CrossRef Full Text | Google Scholar

Foster, R. G. (2020). Sleep, circadian rhythms and health. Interface Focus 10:20190098. doi: 10.1098/rsfs.2019.0098

PubMed Abstract | CrossRef Full Text | Google Scholar

Fuller, D., Colwell, E., Low, J., Orychock, K., Tobin, M. A., Simango, B., et al. (2020). Reliability and validity of commercially available wearable devices for measuring steps, energy expenditure, and heart rate: Systematic review. JMIR Mhealth Uhealth 8:e18694. doi: 10.2196/18694

PubMed Abstract | CrossRef Full Text | Google Scholar

Giovangrandi, L., Inan, O. T., Wiard, R. M., Etemadi, M., and Kovacs, G. T. (2011). Ballistocardiography–a method worth revisiting. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. 2011, 4279–4282. doi: 10.1109/IEMBS.2011.6091062

PubMed Abstract | CrossRef Full Text | Google Scholar

Goldberger, A. L., Amaral, L. A., Glass, L., Hausdorff, J. M., Ivanov, P. C., Mark, R. G., et al. (2000). PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation 101, E215–E220. doi: 10.1161/01.cir.101.23.e215

CrossRef Full Text | Google Scholar

Gottlieb, D. J., Redline, S., Nieto, F. J., Baldwin, C. M., Newman, A. B., Resnick, H. E., et al. (2006). Association of usual sleep duration with hypertension: The sleep heart health study. Sleep 29, 1009–1014. doi: 10.1093/sleep/29.8.1009

PubMed Abstract | CrossRef Full Text | Google Scholar

Grandner, M. A. (2017). Sleep, health, and society. Sleep Med. Clin. 12, 1–22. doi: 10.1016/j.jsmc.2016.10.012

PubMed Abstract | CrossRef Full Text | Google Scholar

Grandner, M. A., Alfonso-Miller, P., Fernandez-Mendoza, J., Shetty, S., Shenoy, S., and Combs, D. (2016). Sleep: Important considerations for the prevention of cardiovascular disease. Curr. Opin. Cardiol. 31, 551–565. doi: 10.1097/HCO.0000000000000324

PubMed Abstract | CrossRef Full Text | Google Scholar

Gupta, R., and Pandi-Perumal, S. R. (2020). COVID-Somnia: How the pandemic affects sleep/wake regulation and how to deal with it? Sleep Vigil. 4, 51–53. doi: 10.1007/s41782-020-00118-0

PubMed Abstract | CrossRef Full Text | Google Scholar

Hirshkowitz, M. (2016). Polysomnography challenges. Sleep Med. Clin. 11, 403–411. doi: 10.1016/j.jsmc.2016.07.002

PubMed Abstract | CrossRef Full Text | Google Scholar

Hossain, J. L., and Shapiro, C. M. (2002). The prevalence, cost implications, and management of sleep disorders: An overview. Sleep Breath. 6, 85–102. doi: 10.1007/s11325-002-0085-1

PubMed Abstract | CrossRef Full Text | Google Scholar

Imtiaz, S. A. (2021). A systematic review of sensing technologies for wearable sleep staging. Sensors (Basel) 21:1562. doi: 10.3390/s21051562

PubMed Abstract | CrossRef Full Text | Google Scholar

Jan, H.-Y., Chen, M.-F., Fu, T.-C., Lin, W.-C., Tsai, C.-L., and Lin, K.-P. (2019). Evaluation of coherence between ECG and PPG derived parameters on heart rate variability and respiration in healthy volunteers with/without controlled breathing. J. Med. Biol. Eng. 39, 783–795.

Google Scholar

Kinnunen, H., Rantanen, A., Kentta, T., and Koskimaki, H. (2020). Feasible assessment of recovery and cardiovascular health: Accuracy of nocturnal HR and HRV assessed via ring PPG in comparison to medical grade ECG. Physiol. Meas. 41:04NT01. doi: 10.1088/1361-6579/ab840a

PubMed Abstract | CrossRef Full Text | Google Scholar

Kocevska, D., Lysen, T. S., Dotinga, A., Koopman-Verhoeff, M. E., Luijk, M., Antypa, N., et al. (2021). Sleep characteristics across the lifespan in 1.1 million people from the Netherlands, United Kingdom and United States: A systematic review and meta-analysis. Nat. Hum. Behav. 5, 113–122. doi: 10.1038/s41562-020-00965-x

PubMed Abstract | CrossRef Full Text | Google Scholar

Kuo, C.-C. J., Zhang, M., Li, S., Duan, J., and Chen, Y. (2019). Interpretable convolutional neural networks via feedforward design. J. Vis. Commun. Image Represent. 60, 346–359.

Google Scholar

Lea, C., Flynn, M. D., Vidal, R., Reiter, A., and Hager, G. D. (2017). “Temporal convolutional networks for action segmentation and detection,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Honolulu, HI. 156–165.

Google Scholar

Lee, X. K., Chee, N., Ong, J. L., Teo, T. B., van Rijn, E., Lo, J. C., et al. (2019). Validation of a consumer sleep wearable device with actigraphy and polysomnography in adolescents across sleep opportunity manipulations. J. Clin. Sleep Med. 15, 1337–1346. doi: 10.5664/jcsm.7932

PubMed Abstract | CrossRef Full Text | Google Scholar

Li, C., Lubecke, V. M., Boric-Lubecke, O., and Lin, J. (2013). A review on recent advances in Doppler radar sensors for noncontact healthcare monitoring. IEEE Trans. Microw. Theory Techn. 61, 2046–2060. doi: 10.3390/s16081169

PubMed Abstract | CrossRef Full Text | Google Scholar

Li, Q., Li, Q., Cakmak, A. S., Da Poian, G., Bliwise, D. L., Vaccarino, V., et al. (2021). Transfer learning from ECG to PPG for improved sleep staging from wrist-worn wearables. Physiol. Meas. 42:4. doi: 10.1088/1361-6579/abf1b0

PubMed Abstract | CrossRef Full Text | Google Scholar

Li, Q., Li, Q., Liu, C., Shashikumar, S. P., Nemati, S., and Clifford, G. D. (2018). Deep learning in the cross-time frequency domain for sleep staging from a single-lead electrocardiogram. Physiol. Meas. 39:124005. doi: 10.1088/1361-6579/aaf339

PubMed Abstract | CrossRef Full Text | Google Scholar

Li, X., Zhang, Y., Jiang, F., and Zhao, H. (2020). A novel machine learning unsupervised algorithm for sleep/wake identification using actigraphy. Chronobiol. Int. 37, 1002–1015.

Google Scholar

Long, X., Fonseca, P., Foussier, J., Haakma, R., and Aarts, R. M. (2013). Sleep and wake classification with actigraphy and respiratory effort using dynamic warping. IEEE J. Biomed. Health Inform. 18, 1272–1284. doi: 10.1109/JBHI.2013.2284610

PubMed Abstract | CrossRef Full Text | Google Scholar

Malhotra, R. K. (2018). Neurodegenerative disorders and Sleep. Sleep Med. Clin. 13, 63–70. doi: 10.1016/j.jsmc.2017.09.006

PubMed Abstract | CrossRef Full Text | Google Scholar

Malhotra, R. K. (2022). Neurodegenerative disorders and Sleep. Sleep Med. Clin. 17, 307–314. doi: 10.1016/j.jsmc.2022.02.009

PubMed Abstract | CrossRef Full Text | Google Scholar

Matricciani, L., Paquet, C., Galland, B., Short, M., and Olds, T. (2019). Children’s sleep and health: A meta-review. Sleep Med. Rev. 46, 136–150. doi: 10.1016/j.smrv.2019.04.011

PubMed Abstract | CrossRef Full Text | Google Scholar

Mendez, M., Bianchi, A. M., Villantieri, O., and Cerutti, S. (2006). Time-varying analysis of the heart rate variability during REM and non REM sleep stages. Conf. Proc. IEEE Eng. Med. Biol. Soc. 2006, 3576–3579. doi: 10.1109/IEMBS.2006.260067

PubMed Abstract | CrossRef Full Text | Google Scholar

Menghini, L., Yuksel, D., Goldstone, A., Baker, F. C., and de Zambotti, M. (2021). Performance of fitbit charge 3 against polysomnography in measuring sleep in adolescent boys and girls. Chronobiol. Int. 38, 1010–1022. doi: 10.1080/07420528.2021.1903481

PubMed Abstract | CrossRef Full Text | Google Scholar

Murphy, M. J., and Peterson, M. J. (2015). Sleep disturbances in depression. Sleep Med. Clin. 10, 17–23. doi: 10.1016/j.jsmc.2014.11.009

PubMed Abstract | CrossRef Full Text | Google Scholar

Nochaiwong, S., Ruengorn, C., Thavorn, K., Hutton, B., Awiphan, R., Phosuya, C., et al. (2021). Global prevalence of mental health issues among the general population during the coronavirus disease-2019 pandemic: A systematic review and meta-analysis. Sci. Rep. 11:10173. doi: 10.1038/s41598-021-89700-8

PubMed Abstract | CrossRef Full Text | Google Scholar

Nutt, D., Wilson, S., and Paterson, L. (2022). Sleep disorders as core symptoms of depression. Dialogues Clin. Neurosci. 10, 329–336.

Google Scholar

Olesen, A. N., Jorgen Jennum, P., Mignot, E., and Sorensen, H. B. D. (2021). Automatic sleep stage classification with deep residual networks in a mixed-cohort setting. Sleep 44:zsaa161. doi: 10.1093/sleep/zsaa161

PubMed Abstract | CrossRef Full Text | Google Scholar

Panch, T., Mattie, H., and Celi, L. A. (2019). The “inconvenient truth” about AI in healthcare. NPJ Digit. Med. 2:77. doi: 10.1038/s41746-019-0155-4

PubMed Abstract | CrossRef Full Text | Google Scholar

Panesar, A. (2019). Machine learning and ai for healthcare. Berlin: Springer.

Google Scholar

Paquet, J., Kawinska, A., and Carrier, J. (2007). Wake detection capacity of actigraphy during sleep. Sleep 30, 1362–1369. doi: 10.1093/sleep/30.10.1362

PubMed Abstract | CrossRef Full Text | Google Scholar

Quante, M., Kaplan, E. R., Cailler, M., Rueschman, M., Wang, R., Weng, J., et al. (2018). Actigraphy-based sleep estimation in adolescents and adults: A comparison with polysomnography using two scoring algorithms. Nat. Sci. Sleep 10, 13–20. doi: 10.2147/NSS.S151085

PubMed Abstract | CrossRef Full Text | Google Scholar

Radha, M., Fonseca, P., Moreau, A., Ross, M., Cerny, A., Anderer, P., et al. (2019). Sleep stage classification from heart-rate variability using long short-term memory neural networks. Sci. Rep. 9:14149. doi: 10.1038/s41598-019-49703-y

PubMed Abstract | CrossRef Full Text | Google Scholar

Rahimi, A., Safari, A., and Mohebbi, M. (2019). “Sleep stage classification based on ECG-derived respiration and heart rate variability of single-lead ECG signal,” in Proceeding of the 2019 26th National and 4th International Iranian Conference on Biomedical Engineering (ICBME), Tehran. 158–163.

PubMed Abstract | Google Scholar

Ramar, K., Malhotra, R. K., Carden, K. A., Martin, J. L., Abbasi-Feinberg, F., Aurora, R. N., et al. (2021). Sleep is essential to health: An American academy of sleep medicine position statement. J. Clin. Sleep Med. 17, 2115–2119. doi: 10.5664/jcsm.9476

PubMed Abstract | CrossRef Full Text | Google Scholar

Redline, S., Kirchner, H. L., Quan, S. F., Gottlieb, D. J., Kapur, V., and Newman, A. (2004). The effects of age, sex, ethnicity, and sleep-disordered breathing on sleep architecture. Arch. Intern. Med. 164, 406–418. doi: 10.1001/archinte.164.4.406

PubMed Abstract | CrossRef Full Text | Google Scholar

Rocha, L. G., Biswas, D., Verhoef, B. E., Bampi, S., Van Hoof, C., Konijnenburg, M., et al. (2020). Binary CorNET: Accelerator for HR estimation from Wrist-PPG. IEEE Trans. Biomed. Circuits Syst. 14, 715–726. doi: 10.1109/TBCAS.2020.3001675

PubMed Abstract | CrossRef Full Text | Google Scholar

Rocha, L. G., Paim, G., Biswas, D., Bampi, S., Catthoor, F., Van Hoof, C., et al. (2021). LSTM-only model for low-complexity HR estimation from wrist PPG. Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. 2021, 1068–1071. doi: 10.1109/EMBC46164.2021.9630942

PubMed Abstract | CrossRef Full Text | Google Scholar

Rosenberg, R. S., and Van Hout, S. (2013). The American academy of sleep medicine inter-scorer reliability program: Sleep stage scoring. J. Clin. Sleep Med. 9, 81–87. doi: 10.5664/jcsm.2350

PubMed Abstract | CrossRef Full Text | Google Scholar

Russo, K., Goparaju, B., and Bianchi, M. T. (2015). Consumer sleep monitors: Is there a baby in the bathwater? Nat. Sci. Sleep 7, 147–157. doi: 10.2147/NSS.S94182

PubMed Abstract | CrossRef Full Text | Google Scholar

Samek, W., Wiegand, T., and Müller, K.-R. (2017). Explainable artificial intelligence: Understanding, visualizing and interpreting deep learning models. arXiv [Preprint]. arXiv:1708.08296.

Google Scholar

Seo, S., Huang, J., Yang, H., and Liu, Y. (2017). “Interpretable convolutional neural networks with dual local and global attention for review rating prediction,” in Proceedings of the Eleventh ACM Conference on Recommender systems, Como. 297–305.

Google Scholar

Shah, R., and Chircu, A. (2018). IOT and AI in healthcare: A systematic literature review. Issues Inf. Syst. 19, 33–41.

Google Scholar

Shen, H., Xu, M., Guez, A., Li, A., and Ran, F. (2019). An accurate sleep stages classification method based on state space model. IEEE Access 7, 125268–125279. doi: 10.1016/j.cmpb.2019.06.008

PubMed Abstract | CrossRef Full Text | Google Scholar

Silber, M. H., Ancoli-Israel, S., Bonnet, M. H., Chokroverty, S., Grigg-Damberger, M. M., Hirshkowitz, M., et al. (2007). The visual scoring of sleep in adults. J. Clin. Sleep Med. 3, 121–131.

Google Scholar

Sridhar, N., Shoeb, A., Stephens, P., Kharbouch, A., Shimol, D. B., Burkart, J., et al. (2020). Deep learning for automated sleep staging using instantaneous heart rate. NPJ Digit. Med. 3:106. doi: 10.1038/s41746-020-0291-x

PubMed Abstract | CrossRef Full Text | Google Scholar

Stiglic, G., Kocbek, P., Fijacko, N., Zitnik, M., Verbert, K., and Cilar, L. (2020). Interpretability of machine learning-based prediction models in healthcare. Wiley Interdiscip. Rev. 10:e1379.

Google Scholar

St-Onge, M. P. (2017). Sleep-obesity relation: Underlying mechanisms and consequences for treatment. Obes. Rev. 18 Suppl 1, 34–39. doi: 10.1111/obr.12499

PubMed Abstract | CrossRef Full Text | Google Scholar

Stores, G. (2022). Aspects of sleep disorders in children and adolescents. Dialogues Clin. Neurosci. 11, 81–90.

Google Scholar

Stowe, R. C., and Afolabi-Brown, O. (2020). Pediatric polysomnography-A review of indications, technical aspects, and interpretation. Paediatr. Respir. Rev. 34, 9–17. doi: 10.1016/j.prrv.2019.09.009

PubMed Abstract | CrossRef Full Text | Google Scholar

Sun, H., Ganglberger, W., Panneerselvam, E., Leone, M. J., Quadri, S. A., Goparaju, B., et al. (2020). Sleep staging from electrocardiography and respiration with deep learning. Sleep 43:zsz306. doi: 10.1093/sleep/zsz306

PubMed Abstract | CrossRef Full Text | Google Scholar

Szegedy, C., Ioffe, S., Vanhoucke, V., and Alemi, A. A. (2017). “Inception-v4, inception-resnet and the impact of residual connections on learning,” in Proceeding of the Thirty-first AAAI Conference on Artificial Intelligence, San Francisco, CA.

Google Scholar

Temko, A. (2017). Accurate heart rate monitoring during physical exercises using PPG. IEEE Trans. Biomed. Eng. 64, 2016–2024. doi: 10.1109/TBME.2017.2676243

PubMed Abstract | CrossRef Full Text | Google Scholar

Trevethan, R. (2017). Sensitivity, specificity, and predictive values: Foundations, pliabilities, and pitfalls in research and practice. Front. Public Health 5:307. doi: 10.3389/fpubh.2017.00307

PubMed Abstract | CrossRef Full Text | Google Scholar

Vallat, R., and Walker, M. P. (2021). An open-source, high-performance tool for automated sleep staging. Elife 10:e70092. doi: 10.7554/eLife.70092

PubMed Abstract | CrossRef Full Text | Google Scholar

Vaughn, B. V., and Giallanza, P. (2008). Technical review of polysomnography. Chest 134, 1310–1319. doi: 10.1378/chest.08-0812

PubMed Abstract | CrossRef Full Text | Google Scholar

Versace, F., Mozzato, M., De Min Tona, G., Cavallero, C., and Stegagno, L. (2003). Heart rate variability during sleep as a function of the sleep cycle. Biol. Psychol. 63, 149–162. doi: 10.1016/s0301-0511(03)00052-8

CrossRef Full Text | Google Scholar

Voss, A., Schroeder, R., Heitmann, A., Peters, A., and Perz, S. (2015). Short-term heart rate variability–influence of gender and age in healthy subjects. PLoS One 10:e0118308. doi: 10.1371/journal.pone.0118308

PubMed Abstract | CrossRef Full Text | Google Scholar

Voulgaris, A., Ferini-Strambi, L., and Steiropoulos, P. (2020). Sleep medicine and COVID-19. Has a new era begun? Sleep Med. 73, 170–176. doi: 10.1016/j.sleep.2020.07.010

PubMed Abstract | CrossRef Full Text | Google Scholar

Vulcan, R. S., Andre, S., and Bruyneel, M. (2021). Photoplethysmography in normal and pathological sleep. Sensors (Basel) 21:2928. doi: 10.3390/s21092928

PubMed Abstract | CrossRef Full Text | Google Scholar

Walch, O., Huang, Y., Forger, D., and Goldstein, C. (2019). Sleep stage prediction with raw acceleration and photoplethysmography heart rate data derived from a consumer wearable device. Sleep 42:zsz180. doi: 10.1093/sleep/zsz180

PubMed Abstract | CrossRef Full Text | Google Scholar

Wang, J.-S., Shih, G.-R., and Chiang, W.-C. (2012). “Sleep stage classification of sleep apnea patients using decision-tree-based support vector machines based on ECG parameters,” in Proceedings of 2012 IEEE-EMBS International Conference on Biomedical and Health Informatics, (Hong Kong: IEEE), 285–288.

Google Scholar

Wang, Y., Loparo, K. A., Kelly, M. R., and Kaplan, R. F. (2015). Evaluation of an automated single-channel sleep staging algorithm. Nat. Sci. Sleep 7, 101–111. doi: 10.2147/NSS.S77888

PubMed Abstract | CrossRef Full Text | Google Scholar

Wei, R., Zhang, X., Wang, J., and Dang, X. (2018). The research of sleep staging based on single-lead electrocardiogram and deep neural network. Biomed. Eng. Lett. 8, 87–93.

Google Scholar

Wei, Y., Qi, X., Wang, H., Liu, Z., Wang, G., and Yan, X. (2019). A multi-class automatic sleep staging method based on long short-term memory network using single-lead electrocardiogram signals. IEEE Access 7, 85959–85970.

Google Scholar

Yoon, H., Hwang, S. H., Choi, J. W., Lee, Y. J., Jeong, D. U., and Park, K. S. (2017b). REM sleep estimation based on autonomic dynamics using R-R intervals. Physiol. Meas. 38, 631–651. doi: 10.1088/1361-6579/aa63c9

PubMed Abstract | CrossRef Full Text | Google Scholar

Yoon, H., Hwang, S. H., Choi, J.-W., Lee, Y. J., Jeong, D.-U., and Park, K. S. (2017a). Slow-wave sleep estimation for healthy subjects and OSA patients using R–R intervals. IEEE J. Biomed. Health Inform. 22, 119–128. doi: 10.1109/JBHI.2017.2712861

PubMed Abstract | CrossRef Full Text | Google Scholar

Zhang, J., Chen, D., Zhao, J., He, M., Wang, Y., and Zhang, Q. (2012). “Rass: A portable real-time automatic sleep scoring system,” in Proceedings of the 2012 IEEE 33rd Real-Time Systems Symposium, (San Juan, PR: IEEE), 105–114.

Google Scholar

Zhang, Q., Wu, Y. N., and Zhu, S.-C. (2018). “Interpretable convolutional neural networks,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Los Angeles, CA, 8827–8836.

Google Scholar

Zhao, X., and Sun, G. (2021). A multi-class automatic sleep staging method based on photoplethysmography signals. Entropy (Basel) 23:116. doi: 10.3390/e23010116

PubMed Abstract | CrossRef Full Text | Google Scholar

Keywords: artificial intelligence, bio-inspired algorithms, home testing, heart rate variability (HRV), sleep monitoring algorithm, sleep monitoring devices, sleep state classification, wearable devices and sensors

Citation: Pini N, Ong JL, Yilmaz G, Chee NIYN, Siting Z, Awasthi A, Biju S, Kishan K, Patanaik A, Fifer WP and Lucchini M (2022) An automated heart rate-based algorithm for sleep stage classification: Validation using conventional polysomnography and an innovative wearable electrocardiogram device. Front. Neurosci. 16:974192. doi: 10.3389/fnins.2022.974192

Received: 20 June 2022; Accepted: 05 September 2022;
Published: 06 October 2022.

Edited by:

Gonzalo C. Gutiérrez-Tobal, Centre for Biomedical Network Research (CIBER), Spain

Reviewed by:

Fernando Vaquerizo-Villar, University of Valladolid, Spain
Henri Korkalainen, University of Eastern Finland, Finland

Copyright © 2022 Pini, Ong, Yilmaz, Chee, Siting, Awasthi, Biju, Kishan, Patanaik, Fifer and Lucchini. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Maristella Lucchini, ml3551@cumc.columbia.edu

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.