journal article·2025-12-08Open access

SOUP: Sleep Data Copilot for Accurate Hypnogram Labeling

Marta Verona-Almeida, Javier Mendez, Rybel Wix, José L. Ayala, Josué Pagán

Applied Sciences· Volume 15· Issue 24

Abstract

Sleep analysis is crucial for diagnosing disorders and understanding physiological patterns. However, accurately labeling hypnograms is challenging due to significant interrater variability and resource constraints that limit the use of multiple experts. This study introduces a novel verification tool that assesses biomedical signals, including heart rate and activity, alongside labeled hypnograms against state-of-the-art conditions. The tool was developed to evaluate the quality and reliability of hypnogram annotations, providing feedback on the credibility of labels generated by automated methods and single expert annotations. It cross-references labeled data against physiological signals and identifies discrepancies or anomalies that may indicate errors in the labeling process. For validation, the tool was applied to the MESA dataset, a well-known collection of sleep data. Application of the tool demonstrated its ability to provide objective feedback on hypnogram labels and to identify anomalies in patient data, potentially assisting clinicians in refining their assessments. By offering a user-friendly interface and flexible design, this verification tool enhances the accuracy of sleep stage annotations and serves as a valuable resource for both clinical and research applications.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: EEG and Brain-Computer Interfaces · Obstructive Sleep Apnea Research · Sleep and related disorders

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

HTEC GmbH, Leipziger Str. 16, 82008 Unterhaching, Germany

Electronic Engineering Department, Universidad Politécnica de Madrid, Av. Complutense, 30, 28040 Madrid, Spain

Department of Neurophysiology, Instituto de Investigacion Sanitaria Hospital Universitario de la Princesa, 28006 Madrid, Spain

Department of Computer Architecture and Automation, Universidad Complutense de Madrid, C/Profesor José García Santesmases, 9, 28040 Madrid, Spain

Center for Computational Simulation, Universidad Politécnica de Madrid, Campus de Montegancedo, 28660 Boadilla del Monte, Spain

References (34)

Show source-provided references
1. Interrater reliability of sleep stage scoring: A meta-analysis10.5664/jcsm.9538 ↗
2. Multicentre sleep-stage scoring agreement in the Sleep Revolution Project10.1111/jsr.13956 ↗
3. Reinke, L., van der Heide, E.M., Fonseca, P., Absalom, A.R., and Tulleken, J.E. (2025). Inter-rater disagreement in manual scoring of intensive care unit sleep data. BMC Res. Notes., 18.10.1186/s13104-025-07198-z ↗
4. Revised European guidelines for the accreditation of sleep medicine centres10.1111/jsr.14200 ↗
5. Neural network analysis of sleep stages enables efficient diagnosis of narcolepsy10.1038/s41467-018-07229-3 ↗
6. DeepSleepNet-Lite: A simplified automatic sleep stage scoring model with uncertainty estimates10.1109/TNSRE.2021.3117970 ↗
7. U-Sleep’s resilience to AASM guidelines10.1038/s41746-023-00784-0 ↗
8. An open-source, high-performance tool for automated sleep staging10.7554/eLife.70092 ↗
9. Retrospective validation of automatic sleep analysis with grey areas model for human-in-the-loop scoring approach10.1111/jsr.14362 ↗
10. Heremans, E.R., Seedat, N., Buyse, B., Testelmans, D., van der Schaar, M., and De Vos, M. (2024). U-PASS: An uncertainty-guided deep learning pipeline for automated sleep staging. Comput. Biol. Med., 171.10.1016/j.compbiomed.2024.108205 ↗
11. Automatic sleep stages classification using respiratory, heart rate and movement signals10.1088/1361-6579/aaf5d4 ↗
12. Estimation of sleep stages analyzing respiratory and movement signals10.1109/JBHI.2021.3099295 ↗
13. The detection of sleep onset: Behavioral, physiological, and subjective convergence10.1093/sleep/12.5.458 ↗
14. Heart rate variability, sleep and sleep disorders10.1016/j.smrv.2011.02.005 ↗
15. Kryger, M.H., Roth, T., and Goldstein, C.A. (2022). Principles and Practice of Sleep Medicine, Elsevier. [7th ed.].
16. Circadian variation of heart rate variability across sleep stages10.5665/sleep.3230 ↗
17. Vegetative background of sleep: Spectral analysis of the heart rate variability10.1016/S0031-9384(97)00234-5 ↗
18. Cardiac autonomic function during different sleep stages in the elderly: Results from the Sleep Heart Health Study
19. Electrodermal activity patterns in sleep stages and their utility for sleep versus wake classification10.1111/jsr.12694 ↗
20. Spontaneous electrodermal activity during waking and sleeping10.1111/j.1469-8986.1966.tb02673.x ↗
21. Reliability of spontaneous electrodermal activity in humans as a function of sleep stages10.1016/0301-0511(83)90014-5 ↗
22. The significance of changes in the electrical resistance of the body during sleep10.1073/pnas.12.3.214 ↗
23. Sleep detection for younger adults, healthy older adults, and older adults living with dementia using wrist temperature and actigraphy: Prototype testing and case study analysis10.2196/26462 ↗
24. Relationships between sleep and body temperature in middle-aged and older subjects10.1111/j.1532-5415.1998.tb02466.x ↗
25. The Sleep Heart Health Study: Design, rationale, and methods
26. Racial/ethnic differences in sleep disturbances: The Multi-Ethnic Study of Atherosclerosis (MESA)
27. The National Sleep Research Resource: Towards a sleep data commons10.1093/jamia/ocy064 ↗
28. Gomes, P., Margaritoff, P., and Silva, H. (2019, January 3–6). pyHRV: Development and evaluation of an open-source Python toolbox for heart rate variability (HRV). Proceedings of the International Conference on Electrical, Electronic and Computing Engineering (IcETRAN), Veliko Gradište, Serbia.
29. Interrater agreement between American and Chinese sleep centers according to the 2014 AASM standard10.1007/s11325-019-01801-x ↗
30. Patel, A.K., Reddy, V., Shumway, K.R., and Araujo, J.F. (2023, July 25). Physiology, sleep stages, StatPearls, Available online: https://www.ncbi.nlm.nih.gov/books/NBK526132/.
31. Vlamos, P. (2014). The effects of aging on sleep architecture in healthy subjects. GeNeDis 2014: Geriatrics, Springer.10.1007/978-3-319-08939-3 ↗
32. Resting heart rate: What is normal?10.1136/heartjnl-2017-312731 ↗
33. Hammad, G., Reyt, M., Beliy, N., Baillet, M., Deantoni, M., Lesoinne, A., Muto, V., and Schmidt, C. (2021). pyActigraphy: Open-source Python package for actigraphy data visualization and analysis. PLoS Comput. Biol., 17.10.1371/journal.pcbi.1009514 ↗
34. “Counting Sheep PSG”: EEGLAB-compatible open-source MATLAB software for signal processing, visualization, event marking and staging of polysomnographic data10.1016/j.jneumeth.2024.110162 ↗