@article {Perez-Pozuelo2020.09.05.20188367, author = {Ignacio Perez-Pozuelo and Marius Posa and Dimitris Spathis and Kate Westgate and Nicholas Wareham and Cecilia Mascolo and S{\o}ren Brage and Joao Palotti}, title = {Detecting sleep in free-living conditions without sleep-diaries: a device-agnostic, wearable heart rate sensing approach}, elocation-id = {2020.09.05.20188367}, year = {2021}, doi = {10.1101/2020.09.05.20188367}, publisher = {Cold Spring Harbor Laboratory Press}, 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 ({\textpm}5.74) and 12.80 ({\textpm}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 StatementThe authors have declared no competing interest.Funding StatementThe 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 DeclarationsI confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.YesThe 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.YesI 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).YesI 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.YesData 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 https://physionet.org/content/sleep-accel/1.0.0/heart_rate/ https://physionet.org/content/mmash/1.0.0/.}, URL = {https://www.medrxiv.org/content/early/2021/08/18/2020.09.05.20188367}, eprint = {https://www.medrxiv.org/content/early/2021/08/18/2020.09.05.20188367.full.pdf}, journal = {medRxiv} }