Abstract
The rise of multisensor wearable devices offers a unique opportunity for the objective inference of sleep outside laboratories, enabling longitudinal monitoring in large populations. To enhance objectivity and facilitate cross-cohort comparisons, sleep detection algorithms in free-living conditions should rely on personalized but device-agnostic features, which can be applied without laborious human annotations or sleep diaries. We developed and tested a heart rate-based algorithm that captures inter- and intra-individual sleep differences, does not require human input and can be applied in free-living conditions. The algorithm was evaluated across four study cohorts using different research- and consumer-grade devices for over 2,000 nights. Recording periods included both 24-hour free-living and conventional lab-based night-only data. Our method was systematically optimized and evaluated against polysomnography (PSG) and sleep diaries and compared to sleep periods produced by accelerometry-based angular change algorithms. Against sleep diaries, the algorithm yielded a mean squared error (MSE) of 0.04 to 0.06 and a total sleep time deviation of -2.70 (±5.74) and 12.80 (±3.89) minutes, respectively. When evaluated with PSG lab studies, the MSE ranged between 0.06 and 0.11 yielding a time deviation between -29.07 and -55.04 minutes. Our findings suggest that the heart rate-based algorithm can reliably and objectively infer sleep under longitudinal, free-living conditions, independent of the wearable device used. This represents the first open-source algorithm that can infer sleep using heart rate signals without actigraphy or diary annotations.
Competing Interest Statement
The authors have declared no competing interest.
Funding Statement
The authors declare that there is no conflict of interest regarding the publication of this work. Our work was supported by GlaxoSmithKline and EPSRC through an iCase fellowship (17100053), the Embiricos Trust Scholarship of Jesus College Cambridge, and EPSRC through Grant DTP (EP/N509620/1). The work of KW is supported by the NIHR Cambridge Biomedical Research Centre (IS-BRC-1215-20014). The icons used in some of the figures are licensed under Creative Commons by thenounproject.com.
Author Declarations
I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.
Yes
The details of the IRB/oversight body that provided approval or exemption for the research described are given below:
Ethical approval for the BBVS study was obtained from Cambridge University Human Biology Research Ethics Committee (Ref: HBREC/2015.16). All participants provided written informed consent. All data used from the MESA Sleep Ancillary study used in this work is publicly available from the National Sleep Research Resource repository. Institutional Review Board approval was obtained ateach MESA study site (Wake Forest University School of Medicine, Northwestern University, Univer-sity of Minnesota, Columbia University, University of California Los Angeles and the Johns HopkinsUniversity). All participants provided written informed consent. The IRB for the Physionet Apple Watch study was approved by the University of Michigan Review Board and all participants provided written informed consent. Finally, for the MMASH study, all participants provided written informed consent. Information was provided to them regarding the research protocol in accordance with General Data Protection Regulation: Regulation - EU2016/679 of the European Parliament and of the Council 27/04/2016. Further, all experiments conducted were in accordance with the Helsinki Declaration as revised in 2013, the study was approvedby the Ethical Committee of the University of Pisa (#0077455/2018).
All necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived.
Yes
I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).
Yes
I have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.
Yes
Footnotes
↵† Equal contribution
* Institutions where work was performed: School of Clinical Medicine, University of Cambridge; The Alan Turing Institute; Hamad Bin Khalifa University, Doha, Qatar.
Data Availability
Data for MESA, PhysioNet Apple Watch and MMASH are publicly available through the following resources: 1) MESA: https://sleepdata.org/datasets/mesa, 2) Physionet Apple Watch: https://physionet.org/content/sleep-accel/1.0.0/heart_rate/ and 3) MMASH: https://physionet.org/content/mmash/1.0.0/. BBVS data is available from the first author upon reasonable request.
https://sleepdata.org/datasets/mesa