Manuscript Offprint
arXiv:2610.17451On Sleep-Wake Disorder Identification from Polysomnographic Representations
Alvise Dei Rossi
Faculty of Informatics, Università della Svizzera Italiana
MeDiTech, SUPSI
Lugano, Switzerland
Luigi Fiorillo
MeDiTech, SUPSI
Ente Ospedaliero Cantonale (EOC)
Lugano, Switzerland
Giuliana Monachino
MeDiTech, SUPSI
Lugano, Switzerland
Alessia Calzoni
Department of Information Engineering, University of Brescia
Brescia, Italy
Julia van der Meer & Markus H. Schmidt & Claudio L.A. Bassetti
Sleep Wake Epilepsy Center, Department of Neurology, Inselspital
University of Bern
Bern, Switzerland
{julia.vandermeer, markus.schmidt, claudio.bassetti}@insel.ch
Silvia Santini
Faculty of Informatics, Università della Svizzera Italiana
Lugano, Switzerland
Francesca Faraci
MeDiTech, SUPSI
Lugano, Switzerland
Abstract
Self-supervised polysomnography foundation models (PSG FMs) aim to capture clinically useful information beyond sleep staging, yet are rarely compared with sleep-staging encoders pretrained at comparable scale and modality coverage. Using a common whole-night, missingness-aware state-space downstream modeling framework, we compared frozen representations from prominent large-scale, multi-cohort sleep-stage-supervised encoders and self-supervised PSG FMs for multilabel identification of six sleep-wake and circadian disorder groups in 7,906 PSGs from an unseen registry. Although PSG FMs outperformed an EEG-only, single-cohort supervised baseline, this ordering reversed when supervised pretraining approached comparable scale and modality coverage. Transfer learning from neural sleep scorers achieved higher overall performance while exhibiting greater downstream data efficiency. These findings underscore the need for scale- and modality-matched pretrained supervised baselines when assessing PSG FMs' downstream potential.
Preprint.
1 Introduction
Polysomnography (PSG), the reference standard for comprehensive overnight assessment of sleep physiology, is a central diagnostic tool across multiple sleep-wake-circadian disorders (SWCDs) and synchronously records brain (EEG), ocular (EOG), muscular (EMG), cardiac (ECG), and respiratory activity (RESP) [12, 14]. From a computational perspective, PSG represents both a multimodal and a long-sequence modeling problem: diagnostically relevant information ranges from transient waveform events to interactions among physiological signals and changes in sleep architecture unfolding over hours. Clinical interpretation renders this complexity actionable by assigning each 30-second segment to wake, N1, N2, N3, or REM sleep stages [3], annotating physiological events, and deriving night-level summary measures. These abstractions provide readily interpretable descriptions of sleep, but continuous, multimodal PSG signals may contain complementary information associated with SWCD phenotypes that discrete scores or aggregated metrics do not fully capture. Accordingly, we evaluate representations from currently available pretrained PSG encoders for SWCD identification, considering differences in pretraining strategy, scale, and physiological coverage.
Early computational approaches to PSG analysis relied predominantly on handcrafted time-, frequency-, and nonlinear-domain features combined with conventional classifiers [9, 24]. Deep learning progressively shifted the field toward end-to-end representation learning from raw signals or time–frequency inputs, initially driven largely by automatic sleep staging, i.e., the determination of the sequence of sleep stages across the night [19]. Together with the growing availability of large annotated PSG collections [26], this transition enabled sleep-staging models to learn from heterogeneous populations and recording configurations and to generalize to unseen cohorts [6, 7, 18].
Recent research on PSG representations has increasingly centered on models described as foundation models (FMs): encoders pretrained at scale, typically through self-supervised objectives, and intended for reuse across multiple downstream tasks [11]. Motivated by the cost and variability of expert annotations and by the aim of learning physiological structure beyond sleep staging, recent approaches use cross-modal contrastive learning, self-distillation, and autoregressive next-token prediction [4, 21, 23]. Their reported transfer across sleep staging, physiological-event detection, and prediction of a wide array of disorders has established self-supervised pretraining as a prominent direction for PSG representation learning.
However, the role of self-supervision itself for downstream transfer should be clarified; although self-supervision often enables scale when task-relevant annotations are scarce, PSG is unusual in this respect: research-accessible repositories, like the National Sleep Research Resource (NSRR) [26], contain abundant human-scored sleep-stage annotations for supervised pretraining across multiple cohorts. This places large-scale supervised efforts [6] within the same broad range as most recent PSG FMs in terms of data scale and diversity, with the exception of SleepFM, which was pretrained on roughly twice as much PSG data [23]. Moreover, neural sleep scorers can retain clinically relevant information beyond their discrete stage predictions: for instance, their latent representations, probabilistic outputs, and temporal dynamics have supported the identification of narcolepsy, obstructive sleep apnea, and the prediction of future cardiovascular risk [2, 8, 18, 22].
More fundamentally, recent work on the pretraining and scaling of PSG FMs identified robustness to missing channels, channel-invariant feature learning, pretraining scale, and multi-source data diversity as key determinants of downstream performance [21]. These properties are not unique to self-supervision and echo findings and design principles already established in automatic sleep staging: vulnerability to missing or changing channel configurations [19], the benefit of channel-agnostic training across variable sensor derivations [18], and the importance of data scale and cohort diversity for generalization [6, 16]. Nevertheless, transfer learning of latent representations from large, multi-cohort, sleep-stage-supervised encoders has rarely been evaluated alongside self-supervised FMs. Available comparisons have instead often used supervised architectures trained end-to-end on downstream labels, or demographic-only baselines, without including a supervised-pretraining condition [21, 23]. In other works, supervised models have been trained separately within each target cohort for staging itself [4]. When frozen supervised representations have been considered for broader downstream tasks, the evaluated checkpoints were pretrained on a single cohort, and the downstream evaluation considered EEG alone [13]. An important recent exception matched the architecture and pretraining corpus of self-supervised and sleep-stage-supervised models, finding stronger participant cross-night fingerprinting and finer-grained within-record latent organization after self-supervised pretraining [5]. However, its clearest downstream advantages over the supervised counterpart mostly

Figure 1: Recordings are processed by a pretrained encoder, yielding representations that are jointly modeled across time and streams over the complete night using a mask-aware state-space network.
concerned the prediction of demographic and anthropometric traits, leaving uncertain whether this additional information supports consistent gains across broader clinical outcomes.
Evaluation protocols also differ in temporal handling, including whole-recording mean embeddings [13], prediction from epoch-level outputs [4], and averaged predictions from independently processed segments [5]. These choices compound differences in pretraining scale and diversity, modality coverage, and encoder architecture, making comparisons across released models difficult to interpret. Fully factorial retraining across pretraining objectives and corpora, encoder architectures, modality configurations, and optimization regimes would be required to isolate their individual effects, but is infeasible at the scale of current PSG frameworks. In the present work we investigate the pragmatic question of how prominent supervised and self-supervised PSG encoders presently available to practitioners compare on the same unseen clinical cohort. We evaluate their representations for multilabel SWCD identification in a large clinical cohort, reducing avoidable downstream differences through a common sequential modeling framework, which leverages each encoder's temporally resolved whole-night output and, where available, its modality structure. Models are evaluated both with and without demographic covariates, and contextualized against baselines leveraging sleep summary metrics from manual and automated sleep staging, while key differences in pretraining scale and modality coverage are summarized. To our knowledge, this is the first large-scale evaluation of pretrained PSG representations for clinically adjudicated, co-occurring SWCDs, providing a clinically grounded assessment of whether current self-supervised sleep FMs offer greater downstream utility than large-scale, multi-cohort, sleep-stage-supervised encoders for SWCD identification.
Hypnogram-derived baselines Conventional whole-night sleep-architecture features were derived independently from clinician-provided hypnograms and from automatic hypnograms produced by SOMNUS, a soft-voting ensemble of neural sleep scorers released in SLEEPYLAND [6]. Each feature set comprised total sleep time, wake after sleep onset, sleep-onset and REM latencies, sleep fragmentation, sleep-stage percentages, and 25 stage-transition proportions. For each disorder, random forest models were trained using each source alone and in combination with age, gender, BMI, and waist-to-height ratio, together with a covariate-only baseline (Appendix B).
Supervised pretrained encoders We evaluated U-Sleep [18] and SleepTransformer [20] checkpoints pretrained under the SLEEPYLAND protocol using approximately 220,000 hours of expert-annotated PSG from 17 NSRR cohorts [6]. U-Sleep is a convolutional U-Net model that operates on raw physiological signals and produces representations at multiple temporal scales; we retained its pre-classifier representation at one-second resolution. SleepTransformer employs a hierarchical attention-based architecture: an epoch-transformer encodes time-frequency representations within each 30-second epoch, while a sequence-transformer models dependencies across epochs; we retained its pre-classifier output at 30-second resolution. For both architectures, single-channel EEG, EOG, EMG, ECG, and RESP checkpoints were trained across available derivations and applied to eligible channels. We used the EEG and EOG checkpoints released in SLEEPYLAND, while the EMG, ECG, and RESP counterparts were trained under the same protocol, as described in Appendix C.2.
Self-supervised pretrained FMs We selected SleepFM, OSF, and Hypnos as prominent released PSG FMs pretrained on large, multi-cohort collections and representative of distinct self-supervised objectives. SleepFM organizes signals into four modality groups: brain activity signals (EEG and EOG), cardiac activity, muscular activity, and respiration [23]. A shared convolutional encoder maps five-second windows from each channel to 128-dimensional tokens, which a spatial pooling transformer block aggregates within each modality while accommodating variable channel numbers. A temporal transformer contextualizes the resulting sequences over five-minute intervals, and leave-one-out contrastive learning aligns each temporally pooled modality representation with the average of the remaining modalities. We retained the contextualized outputs before temporal pooling, yielding a sequence per modality at five-second resolution. OSF adapts DINO-style teacher-student self-distillation to multimodal PSG [17, 21]. Channel and temporal masking generate alternative views of the same epoch, encouraging robustness to diverse montages. A vision transformer jointly encodes channel-time patches from each sleep epoch of a fixed 12-channel montage. We retained the CLS embedding before the projection head, yielding one fused representation every 30 seconds. Hypnos formulates PSG pretraining as autoregressive next-token prediction [4]. Five tokenizers discretize eight physiological streams into residual-quantization codes at one-second resolution. An RQ-Transformer alternates temporal and cross-modal attention to predict subsequent codes across time and quantization depth, while random modality grouping exposes the model to different combinations of signals. We retained the output before residual-depth prediction, yielding modality-indexed sequences at one-second resolution. Encoder and extraction details are provided in Appendix C.3.
Shared downstream protocol All pretrained encoders remained frozen, and their extracted representations were evaluated using separate instances of the same downstream sequence model (Figure 1). Representations were supplied in their native organization and temporal resolution, right-padded within each batch, and accompanied by masks identifying valid time points and available streams.
At the finest one-second resolution, a full-night PSG can contain tens of thousands of representation tokens, making the quadratic complexity of full self-attention unattractive for whole-night modeling. State-space models instead propagate information through a fixed-dimensional latent state and scale linearly with sequence length. Mamba introduced input-dependent selective state updates, allowing the model to retain, suppress, or expose information according to the current token while remaining computationally efficient [10]. These properties motivated its use as our backbone. To capture interactions among synchronized physiological streams, we used a mask-aware adaptation of Coupled Mamba [15]. Each stream was projected independently to a common width and retained its own residual sequence and Mamba parameterization. Within each block, the input-dependent transition and update terms produced by the available streams were averaged to evolve a shared recurrent state. Each stream then applied its own current transition and update to the preceding shared state, producing a modality-specific output that was written back into its residual token sequence. This enabled information exchange across the night while preserving separate stream outputs; unavailable streams were excluded from shared-state averaging. For OSF, whose encoder already produced one fused representation sequence, the same formulation reduced to a single-stream selective state-space model. Following whole-night processing, the stream sequences were temporally pooled independently, concatenated, and jointly normalized. Demographic and anthropometric covariates were optionally appended only after temporal pooling. A classification head jointly produced logits for the six diagnostic categories and was optimized using binary cross-entropy. Implementation details are provided in Appendix D. For brevity, each downstream model is hereafter named by its representation source (e.g., U-Sleep denotes Coupled Mamba applied to frozen U-Sleep representations).
Evaluation All methods were evaluated using the same fixed five-fold cross-validation, with all recordings from each patient assigned to the same fold. Per-disorder AUROC was computed from pooled out-of-fold predictions, with macro-AUROC as a secondary summary. Targeted experiments
Table 1: Pooled out-of-fold AUROC without (A) and with (B) demographic and anthropometric covariates. Best and second-best results per panel are bolded and underlined, respectively.
| Method | Insomnia | SDB | CDH | CRSWD | Parasomnia | SRMD | Macro |
|---|---|---|---|---|---|---|---|
| A. Without covariates | |||||||
| Random Forest (Expert) | .695 | .706 | .682 | .592 | .524 | .544 | .624 |
| Random Forest (SOMNUS) | .676 | .699 | .708 | .598 | .618 | .553 | .642 |
| U-Sleep | .726 | .854 | .774 | .625 | .766 | .642 | .731 |
| SleepTransformer | .738 | .874 | .787 | .616 | .803 | .644 | .744 |
| SleepFM | .709 | .875 | .759 | .636 | .726 | .625 | .722 |
| OSF | .709 | .875 | .753 | .661 | .737 | .621 | .726 |
| Hypnos | .714 | .890 | .779 | .609 | .748 | .628 | .728 |
| B. With covariates | |||||||
| Random Forest (Covariates only) | .641 | .767 | .721 | .521 | .618 | .564 | .639 |
| Random Forest (Expert) | .709 | .789 | .749 | .618 | .637 | .541 | .674 |
| Random Forest (SOMNUS) | .682 | .777 | .759 | .558 | .701 | .550 | .671 |
| U-Sleep | .738 | .860 | .784 | .617 | .768 | .648 | .736 |
| SleepTransformer | .742 | .874 | .793 | .604 | .806 | .649 | .745 |
| SleepFM | .722 | .877 | .768 | .612 | .741 | .631 | .725 |
| OSF | .724 | .880 | .762 | .659 | .752 | .627 | .734 |
| Hypnos | .724 | .887 | .783 | .633 | .730 | .620 | .730 |
examined the effect of pretraining-corpus scale, respiratory modality coverage, downstream data efficiency, and the contribution of whole-night sequential modeling (Appendix E).
3 Results
Table 1 summarizes pooled out-of-fold AUROC. Random forests based on human expert- and SOMNUS-derived sleep-summary metrics achieved comparable overall performance, with neither staging source consistently superior. The covariate-only model was particularly informative for SDB and CDH (.767 and .721), and adding covariates generally improved performance across model families. Within both conditions, models leveraging pretrained representations outperformed the random-forest baselines in almost all model–disorder comparisons, in line with the notion that PSG latent representations retain predictive information beyond common hypnogram-derived summaries.
The sleep-stage-supervised encoders achieved the two highest macro-AUROCs under both covariate conditions (Table 1). Without covariates, U-Sleep and SleepTransformer reached .731 and .744, versus .722, .726, and .728 for PSG FMs; supervised encoders led for insomnia, CDH, parasomnia, and SRMD, whereas PSG FMs led for SDB and CRSWD. Notably, PSG FMs outperformed an EEG-only, single-cohort SleepTransformer baseline (.722-.728 versus .704). However, SleepTransformer performance increased consistently with broader supervised pretraining and modality coverage (Appendix Table 5): macro-AUROC reached .716 with multi-cohort EEG pretraining, .724 after adding EOG, EMG, and ECG, and .743 after adding respiratory effort, exceeding PSG FMs. Respiratory effort produced the largest gain for SDB (.826 → .874). Consistently, removing respiratory groups

Labeled training participants (%)
Figure 2: Downstream performance without covariates. Left: labeled-data efficiency; points and error bars denote mean out-of-fold AUROC and one standard deviation across participant-level draws. Right: macro-AUROC using linear probing and missingness-aware state-space modeling.
reduced SDB AUROC by .040–.093 across all five encoders (Appendix E), identifying respiratory coverage as a major determinant of SDB performance. Thus, comparisons with unimodal, single-cohort baselines may overstate the contribution of proposed architectures or pretraining objectives, as observed gains may instead largely reflect pretraining scale, cohort diversity, and modality coverage. PSG FMs did not exhibit greater labeled-data efficiency. Across training fractions of 1%, 10%, 25%, 50%, and 100%, the best supervised encoder exceeded the best PSG FM by .045, .039, .030, .010, and .016 macro-AUROC, respectively (Figure 2, left; Appendix E). Finally, whole-night modeling improved performance for every encoder, but gains varied markedly (Figure 2, right; Appendix E). SleepTransformer remained strongest under linear probing and, like OSF, declined only marginally, consistent with OSF's original evaluation [21], whereas U-Sleep declined substantially. Thus, the accessibility of disorder information to a linear readout, and the benefit of whole-night modeling, were representation-dependent rather than consistently determined by the pretraining strategy.
4 Conclusions
For SWCD identification, representations from multi-cohort neural sleep scorers spanning the full physiological input set matched or outperformed those from prominent PSG FMs and exhibited greater downstream label efficiency. The supervised encoders reused EEG/EOG-oriented preprocessing, architectures, and five-class staging objectives across modalities. Modality-specific encoders or auxiliary unimodal objectives with fewer classes may widen the gap further. SWCD identification is closely related to sleep architecture and was evaluated in a single tertiary referral registry; additional cohorts and more distant tasks are needed to establish broader generalizability and may reveal settings in which PSG FMs offer clearer advantages. PSG FMs nevertheless recovered much of the downstream performance of large-scale neural sleep scorers without pretraining annotations—an impressive result. Yet our findings do not support a general beyond-staging advantage for this task. Because PSG offers large-scale annotated repositories, sleep-stage-supervised representations should remain serious comparators, and advantages attributed to new objectives should be demonstrated under comparable, ideally matched, pretraining scale, diversity, and modality coverage.
References
[1] Bahdanau, D., Cho, K., and Bengio, Y. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
[2] Bechny, M., Kishi, A., Tomita, Y., Scutari, M., van der Meer, J., Schmidt, M., Bassetti, C., Tzovara, A., and Faraci, F. Sleep-stage dynamics predict current sleep-disordered breathing and future cardiovascular risk. medRxiv, pp. 2025–07, 2025.
[3] Berry, R. B., Brooks, R., Gamaldo, C., Harding, S. M., Lloyd, R. M., Quan, S. F., Troester, M. T., and Vaughn, B. V. Aasm scoring manual updates for 2017 (version 2.4), 2017.
[4] Carter, J. F. and Tarassenko, L. Next-token prediction learns generalisable representations of sleep physiology. arXiv preprint arXiv:2606.09605, 2026.
[5] Coon, W. and Ogg, M. Sleep eeg foundation models reveal within-stage microstructure that improves health screening beyond traditional stages. npj Digital Medicine, 2026.
[6] Dei Rossi, A., Metaldi, M., Bechny, M., Filchenko, I., Meer, J. v. d., Schmidt, M. H., Bassetti, C. L., Tzovara, A., Faraci, F. D., and Fiorillo, L. Sleepyland: trust begins with fair evaluation of automatic sleep staging models. npj Digital Medicine, 2025.
[7] Dei Rossi, A., van der Meer, J., Schmidt, M. H., Bassetti, C. L., Fiorillo, L., Santini, S., and Faraci, F. Naps: Attention-based fusion of heterogeneous physiological signals. arXiv preprint arXiv:2511.03488, 2025.
[8] Deng, G., Niu, M., Rao, S., Luo, Y., Zhang, J., Xie, J., Yu, Z., Liu, W., Zhang, J., Zhao, S., et al. A unified flexible large polysomnography model for sleep staging and mental disorder diagnosis. medRxiv, pp. 2024–12, 2025.
[9] Fiorillo, L., Puiatti, A., Papandrea, M., Ratti, P.-L., Favaro, P., Roth, C., Bargiotas, P., Bassetti, C. L., and Faraci, F. D. Automated sleep scoring: A review of the latest approaches. Sleep medicine reviews, 48:101204, 2019.
[10] Gu, A. and Dao, T. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. 2023. doi: 10.48550/arXiv.2312.00752. Preprint at arXiv.
[11] Helmy, A., Morand, R., Calzoni, A., Rossi, A. D., Fiorillo, L., Bassetti, C. L., Faraci, F., Mougiakakou, S. G., Tzovara, A., and Schmidt, M. H. Foundation models in sleep research: Opportunities and limitations. Sleep, pp. zsag225, 2026.
[12] Ibáñez, V., Silva, J., and Cauli, O. A survey on sleep assessment methods. PeerJ, 6:e4849, 2018.
[13] Kontras, K., Osselaer, T., Mouslech, S. G., Karaiskou, A.-I., Gagliardi, G., Strypsteen, T., Badiei, M. H., Rani, A., Vanmarcke, M., Bhagubai, M., et al. Neuroatlas: Benchmarking foundation models for clinical eeg and brain-computer interfaces. arXiv preprint arXiv:2605.14698, 2026.
[14] Kushida, C. A., Littner, M. R., Morgenthaler, T., Alessi, C. A., Bailey, D., Coleman Jr, J., Friedman, L., Hirshkowitz, M., Kapen, S., Kramer, M., et al. Practice parameters for the indications for polysomnography and related procedures: an update for 2005. Sleep, 28(4): 499–523, 2005.
[15] Li, W., Zhou, H., Yu, J., Song, Z., and Yang, W. Coupled mamba: Enhanced multimodal fusion with coupled state space model. Advances in Neural Information Processing Systems, 37:59808–59832, 2024.
[16] Olesen, A. N., Jørgen Jennum, P., Mignot, E., and Sorensen, H. B. D. Automatic sleep stage classification with deep residual networks in a mixed-cohort setting. Sleep, 44(1):zsaa161, 2021.
[17] Oquab, M., Darcet, T., Moutakanni, T., Vo, H., Szafraniec, M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-Nouby, A., et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023.
[18] Perslev, M., Darkner, S., Kempfner, L., Nikolic, M., Jennum, P. J., and Igel, C. U-sleep: resilient high-frequency sleep staging. NPJ digital medicine, 4(1):1–12, 2021.
[19] Phan, H. and Mikkelsen, K. Automatic sleep staging of eeg signals: recent development, challenges, and future directions. Physiological Measurement, 43(4):04TR01, 2022.
[20] Phan, H., Mikkelsen, K., Chén, O. Y., Koch, P., Mertins, A., and De Vos, M. Sleeptransformer: Automatic sleep staging with interpretability and uncertainty quantification. IEEE Transactions on Biomedical Engineering, 69(8):2456–2467, 2022.
[21] Shuai, Z., Xu, Z., Yang, D., Wang, W., and Yang, Y. Osf: On pre-training and scaling of sleep foundation models. arXiv preprint arXiv:2603.00190, 2026.
[22] Stephansen, J. B., Olesen, A. N., Olsen, M., Ambati, A., Leary, E. B., Moore, H. E., Carrillo, O., Lin, L., Han, F., Yan, H., et al. Neural network analysis of sleep stages enables efficient diagnosis of narcolepsy. Nature communications, 9(1):5229, 2018.
[23] Thapa, R., Kjaer, M. R., He, B., Covert, I., Moore IV, H., Hanif, U., Ganjoo, G., Westover, M. B., Jennum, P., Brink-Kjaer, A., et al. A multimodal sleep foundation model for disease prediction. Nature Medicine, 32(2):752–762, 2026.
[24] Vallat, R. and Walker, M. P. An open-source, high-performance tool for automated sleep staging. elife, 10:e70092, 2021.
[25] van der Meer, J., Filchenko, I., Brill, A.-K., Wenz, E., Fregolente, L., Zub, K., Dietmann, A., Schaefer, C., Roethlisberger, S. C., Helmy, A., Tzovara, A., Fiorillo, L., Faraci, F. D., Valenzuela, W., Schindler, K. A., Schmitt, W., Schmidt, M. H., and Bassetti, C. L. The bern sleep-wake registry: A 25-year multimodal resource for data-driven sleep medicine. medRxiv, 2026. doi: 10.64898/2026.10.09.26364965. URL https://www.medrxiv.org/content/early/2026/10/11/2026.10.09.26364965.
[26] Zhang, Y., Kim, M., Prerau, M., Mobley, D., Rueschman, M., Sparks, K., Tully, M., Purcell, S., and Redline, S. The national sleep research resource: making data findable, accessible, interoperable, reusable and promoting sleep science. Sleep, 47(7):zsae088, 2024.
A Cohort and signal details
A.1 BSWR cohort characteristics
BSWR recordings were acquired during routine clinical practice between 2002 and 2021 [25]. Clinical hypnograms were initially scored by trained technicians and reviewed by qualified physicians. Because the extract spans two decades of routine practice, acquisition systems and clinical scoring conventions evolved over time.
Table 2: Characteristics of the BSWR analysis cohort. Demographic and diagnostic distributions are reported at the recording level, corresponding to the unit of prediction. Diagnostic categories are non-mutually exclusive.
| Characteristic | Value |
|---|---|
| Patients, n | 7,195 |
| Patients with repeated PSGs, n (%) | 574 (8.0) |
| PSG recordings, n | 7,906 |
| Age, mean (SD), years | 48.8 (18.0) |
| Female, n (%) | 2,652 (33.5) |
| Insomnia, n (%) | 1,131 (14.3) |
| Sleep-disordered breathing, n (%) | 5,557 (70.3) |
| Central disorders of hypersomnolence, n (%) | 800 (10.1) |
| Circadian rhythm sleep-wake disorders, n (%) | 92 (1.2) |
| Parasomnias, n (%) | 401 (5.1) |
| Sleep-related movement disorders, n (%) | 659 (8.3) |
| No target diagnosis, n (%) | 1,056 (13.4) |
| One target diagnosis, n (%) | 5,274 (66.7) |
| Two or more target diagnoses, n (%) | 1,576 (19.9) |
Note. “No target diagnosis” denotes absence of the six modeled diagnostic groups, not a healthy-control designation.
A.2 PSG signal availability
Table 3 summarizes the signal families and canonical channel configurations used by at least one evaluated encoder. Not every listed signal was present in every PSG recording of the BSWR cohort, and individual encoders received only the channels supported by their respective input specifications as later summarized in Table 4.
Table 3: Canonical PSG signal families supplied to at least one evaluated encoder.
| Modality | Channels and derivations |
|---|---|
| EEG | Central, frontal, and occipital channels (C3, C4, F3, F4, O1, O2, and Cz), including recordings referenced to A1/A2 or M1/M2. |
| EOG | Left and right electro-oculography (E1 and E2), available either as pre-referenced channels or derived against the corresponding A1/A2 or M1/M2 reference. |
| EMG | Central, upper, left, and right chin EMG, left and right tibialis or leg EMG. |
| ECG | ECG/EKG channels |
| RESP | Thoracic and abdominal (THX, ABD) respiratory effort; nasal pressure, cannula, or airflow; oral or thermistor airflow; snoring; oxygen saturation and pulse. |
A.3 Ethical approval
The secondary use of the BSWR dataset was approved by the ethics local committee (Kantonale Ethikkommission Bern [KEK]-Nr. 2022-00415), ensuring compliance with the Human Research Act (HRA) and Ordinance on Human Research with the Exception of Clinical Trials (HRO). All methods were carried out in accordance with relevant guidelines and regulations. Data were maintained with confidentiality throughout the study.
B Conventional hypnogram-derived baseline specification
Whole-night sleep features were calculated separately from the clinician-scored reference hypnogram and from automatic staging produced by SOMNUS, which combined predictions from the EEG-and EOG-based SLEEPYLAND sleep-staging models through soft voting [6]. Both hypnogram sources were converted into the same 34-feature representation: wake after sleep onset, total sleep time, sleep fragmentation index, sleep-onset latency, REM latency, the percentages of sleep assigned to N1, N2, N3, and REM, and 25 post-sleep-onset stage-dynamics features [24]. The stage-dynamics features comprised every directed pairing among Wake, N1, N2, N3, and REM, including same-stage persistence. Each count was divided by the total number of stage transitions observed from sleep onset to the end of the recording, yielding a matrix of nightly transition proportions [2]. Missing transition counts denoted an unobserved transition and were assigned zero. All other missing sleep-feature values remained missing.
The demographic and anthropometric feature set comprised age, gender, body mass index, and waist-to-height ratio. We evaluated these covariates alone and in combination with either clinician-derived or SOMNUS-derived sleep features. A separate random-forest classifier was fitted for each diagnostic category using balanced class weighting. Missing sleep-feature and covariate values were handled natively by the classifiers without imputation.
All reported predictions were obtained from the five frozen participant-grouped outer folds. Within each outer development partition, hyperparameters were selected by AUROC using five-fold stratified inner cross-validation and randomized search over the following space: 100 or 250 trees; maximum depths of 3, 5, 10, or unlimited depth; minimum split sizes of 2, 5, or 10; and minimum leaf sizes of 1, 2, or 4. Fifteen configurations were evaluated per search. The selected model was refitted on the complete outer development partition before evaluation on the held-out fold.
C Encoder and representation specifications
Table 4 summarizes the pretraining objectives, reported pretraining scales, frozen parameter counts, per modality channels employed, and dimensions and resolutions of the representations leveraged by downstream modeling. Parameter counts cover the complete frozen extraction bundle, characterizing the model checkpoint footprint. Pretraining scales follow the original publications; when the number of pretraining hours was not reported, it was estimated from the reported number of recordings by assuming a mean duration of eight hours per recording. BSWR channels were mapped to each encoder's native input specification; where specific EEG or EOG references were required, existing derivations were retained or reconstructed from their component electrodes.
C.1 Common extraction and input handling
All pretrained checkpoints remained frozen. We preserved the preprocessing prescribed for each checkpoint. Signal resampling, normalization, channel mapping, and signal-level missing-input handling therefore followed the corresponding model specification, as detailed below.
Extracted representation sequences were retained at their native temporal resolutions. No additional temporal averaging, interpolation, or resampling was applied before downstream modeling. Missing representation streams were identified through modality masks, while sequences of different duration were right-padded within each batch and accompanied by temporal-validity masks, so that temporal pooling could eventually exclude them.
C.2 Supervised pretrained models
Pretraining and preprocessing The SLEEPYLAND models were pretrained on approximately 220,000 hours of expert-annotated PSG from 17 NSRR cohorts [6]. Each modality-specific checkpoint was trained on recordings containing the corresponding physiological signal and sleep-stage annotations. Signals were resampled to 128 Hz and normalized independently by recording and channel by robust scaling. Values were clipped at 20 interquartile ranges from the median. Signal intervals outside the scored hypnogram were excluded, as were epochs labeled as movement or unknown. The same multi-cohort sampling framework was used across architectures and modalities. Datasets were sampled using an equal mixture of uniform-over-dataset and dataset-size-proportional sampling. After selecting a recording, one eligible channel derivation and a 35-epoch segment were sampled. Segment location was conditioned on a randomly selected sleep stage to increase exposure to less prevalent classes. Data augmentation replaced randomly selected signal intervals with Gaussian noise. The EMG, ECG, and RESP models considered in this study followed the same preprocessing, sampling, augmentation, and architecture-specific optimization framework as the released EEG and EOG checkpoints.
Representation extraction All encoder parameters were frozen. Each eligible BSWR channel (reported in Table 4) was processed independently using the corresponding unimodal checkpoint, producing one temporal representation for each recording, modality, and available channel.
U-Sleep U-Sleep is a fully convolutional encoder–decoder with 12 resolution levels [18]. At each encoder level, temporal convolution, ELU activation, and batch normalization are followed by max pooling, progressively increasing the receptive field while reducing temporal resolution. The decoder restores the original resolution through upsampling and convolution, concatenating features from the corresponding encoder levels through skip connections. The resulting high-resolution feature map is projected by a pointwise convolution onto six learned feature channels. The U-Sleep segment classifier first averages this six-channel representation over a configurable temporal interval and then
Table 4: Specifications of the evaluated frozen pretrained encoders.
| Model | Pretraining objective | Pretraining scale | # Params. | Native BSWR inputs | Embedding dimension | Resolution |
|---|---|---|---|---|---|---|
| U-Sleep | Sleep-stage classification | ~220k h17 cohorts | 15.6M | EEG: available C3/C4/Cz,F3/F4, O1/O2 derivationsEOG: available E1/E2 derivationsEMG: Chin/ChinL/ChinRECG: EKGRESP: ABD/THX | per modality | 1 Hz |
| SleepTransformer | Sleep-stage classification | ~220k h17 cohorts | 19.2M | EEG: available C3/C4/Cz,F3/F4, O1/O2 derivationsEOG: available E1/E2 derivationsEMG: Chin/ChinL/ChinRECG: EKGRESP: ABD/THX | per modality | Hz |
| SleepFM | Leave-one-modality-out contrastive learning | 432k h4 cohorts | 4.8M | BAS: available EEG/EOG derivationsEKG: EKGEMG: Chin/ChinL/ChinRRESP: ABD/THX, airflow, snoring, /pulse | per modality | 0.2 Hz |
| OSF | DINO self-distillation with channel and temporal masking | ~95k h5 cohorts | 85.3M | EEG: C3-(A2/M2),C4-(A1/M1)EOG: E1-(A2/M2),E2-(A1/M1)EMG: chin and bilateral legECG: EKGRESP: ABD/THX, nasal pressure, snoring | fused | Hz |
| Hypnos | Autoregressive next-token prediction over quantized signals | ~135k h8 cohorts | 450.7M | EEG: C3-(M2/A2),C4-(M1/A1)EOG: E1-(M2/A2),E2-(M1/A1)EMG: bipolar chinECG: EKGRESP: ABD/THX | per stream | 1 Hz |
U-Sleep and SleepTransformer counts sum the five distinct modality-specific checkpoints used in this study; the corresponding per-checkpoint counts were 3.1M and 3.8M. The Hypnos count includes its 221.5M-parameter RQ-Transformer and five complete waveform tokenizers. Reported cohort counts follow the granularity used in the source publications and do not represent harmonized counts of acquisition sites. Some named cohorts aggregate recordings from multiple centers (e.g., SleepFM's BioSerenity source spans 240 US facilities), whereas SLEEPYLAND counts the CNC, DHC, and SSC subcohorts of MNC separately. These values should therefore be interpreted as reported pretraining data sources or partitions rather than directly comparable measures of site diversity.
applies two five-channel convolutional layers to produce sleep-stage probabilities. For representation extraction, the averaging interval was set to one second (128 samples), and its six-dimensional output was retained before the five-class classification layers. Each input channel therefore produced a representation, where T is the scored recording duration in seconds. The fully convolutional architecture allowed complete recordings to be encoded in a single forward pass.
SleepTransformer SleepTransformer processes sequences of 35 consecutive 30-second epochs using two hierarchical transformer stages [20]. Each epoch is represented by 29 spectral frames and 129 frequency bins. After removing the zero-frequency bin, every spectral frame forms a 128-dimensional token for a single-channel input. Four eight-head transformer encoder blocks model relationships among these tokens, after which learned attention pooling produces one 128-dimensional representation per epoch. A second stack of four eight-head transformer encoder blocks contextualizes the epoch representations across the 35-epoch sequence, corresponding to 17.5 minutes of inter-epoch context. The contextualized state for each epoch would ordinarily pass through two 1,024-unit fully connected layers and the five-class sleep-stage classifier. We instead retained the 128-dimensional output of the sequence transformer before this classification module. The contextualized epoch representations yielded a sequence at 30-second resolution. Each representation therefore incorporates both within-epoch spectral information and intermediate-range temporal context.
C.3 Self-supervised pretrained models
SleepFM SleepFM uses one shared encoder across four broad modality groups: BAS, comprising EEG and EOG; EKG; EMG; and RESP [23]. Signals were resampled to 128 Hz and standardized over each recording. Every available channel was divided into five-second windows and mapped by a six-layer convolutional tokenizer to 128-dimensional tokens. Attention-based channel pooling then combined the available channels within each modality, after which a temporal transformer contextualized the modality-specific sequence over complete five-minute intervals. During pretraining, leave-one-modality-out contrastive learning aligned the temporally pooled representation of each modality with the average representation of the remaining modalities from the same interval.
For BSWR, canonical channel names were matched to the released modality-specific allowlists, and all accepted channels within each group were processed jointly. We retained the contextualized five-second sequence preceding temporal pooling, rather than SleepFM's pooled interval representation or task-specific prediction head.
OSF OSF adapts DINO teacher-student self-distillation to a fixed 12-channel PSG montage [17, 21]. Pretraining views were generated by randomly masking half of the channels and subsequently masking temporal blocks covering between 30% and 60% of each example. The released vision transformer processes 30-second epochs sampled at 64 Hz. A convolutional patchifier groups four adjacent channel positions over one-second intervals, yielding 90 channel-time tokens per epoch. A prepended CLS token integrates information across these tokens through 12 transformer layers. We use the OSF-Base version, i.e., the best-performing released checkpoint.
BSWR signals were mapped to the prescribed montage using direct channels or explicitly supported derivations; unresolved positions remained zero, consistent with OSF's missing-channel training. Observed signals were standardized over the recording, resampled to 64 Hz, and clipped to . We retained the final 768-dimensional CLS state before the self-distillation projection head, producing one fused representation per complete 30-second epoch.
Hypnos Hypnos first converts eight physiological streams into discrete residual-quantization codes using five causal waveform tokenizers shared across related signal types [4]. C3 and C4 share an EEG tokenizer, E1 and E2 share an EOG tokenizer, and abdominal and thoracic effort share a respiratory tokenizer; ECG and chin EMG use separate tokenizers. Each tokenizer emits one residual-code stack per second. A causal RQ-Transformer then alternates temporal attention within streams and cross-modal attention among simultaneous streams before predicting subsequent codes across residual depth. Random modality grouping during pretraining exposes the model to varying input configurations. We use the Hypnos-Base version, i.e., the best-performing released checkpoint.
We retained the released channel resolution, re-referencing, filtering, rolling normalization, and amplitude-compression procedures. EEG, EOG, ECG, and chin EMG were supplied at 128 Hz, whereas abdominal and thoracic effort were supplied at 32 Hz. Missing streams were omitted through the native modality mask. For every available stream, we extracted the 768-dimensional temporal-transformer state before residual-depth prediction. These one-second representations retain their stream identity while already incorporating causal temporal and cross-modal context.
D Downstream modeling and evaluation
D.1 Representation handling and alternative-channel sampling
The downstream loader preserved the stream organization, feature dimension, and temporal resolution defined by each encoder. Streams from the same recording were temporally aligned and right-padded to the longest sequence within each minibatch. A temporal-validity mask identified the contiguous prefix of non-padded positions, while a separate stream-availability mask indicated whether each complete physiological stream was present. Missing streams were represented by zero-valued placeholders. No additional temporal interpolation, resampling, or aggregation was applied after representation extraction.
U-Sleep and SleepTransformer could provide multiple independently encoded channels for the same physiological modality. During training, one available channel was selected for each recording and modality using a deterministic function of the experiment seed, outer fold, recording identifier, modality, and epoch. Channel configurations therefore varied across epochs while remaining reproducible. Outer-fold inference was repeated over ten deterministic channel configurations, and the resulting disorder probabilities were averaged for each recording and label. Representations with an encoder-prescribed stream organization were supplied directly without downstream channel sampling.
The temporal-validity mask was used for sequence reversal and whole-night pooling. Because valid tokens always formed a contiguous prefix and padding was restricted to the right, padded positions could not affect earlier valid outputs of the causal recurrence.
D.2 Mask-aware Coupled Mamba
Let denote the frozen representation of stream at time . Because the encoders produced different feature dimensions , each stream was projected independently to a common latent width:
Coupled Mamba blocks were arranged as pre-normalized residual layers. At layer , a normalized copy of each stream was supplied to the block, while the unchanged layer input was retained as the residual path:
Every stream retained separate input, depthwise-convolution, gating, state-space, readout, and output projections. A stream-specific input projection produced parallel content and gate branches,
after which the content branch underwent a depthwise causal convolution. Selective state-space projections then produced an input-dependent transition , update , and readout parameters for each stream.
Following the efficient Coupled Mamba recurrence, in which each modality-specific state is conditioned on the aggregate previous states [15], we implemented a normalized, mask-aware shared-state variant. For stream-availability indicator and number of available streams , the shared transition and update were
Starting from a zero state, the shared recurrent trajectory evolved as
where denotes element-wise multiplication. Each stream subsequently combined its own current transition and update with the preceding shared state,
Only was propagated recurrently. The transient stream-specific state was converted into an output using its input-dependent readout. As in standard Mamba, this recurrent readout was combined with a learned direct contribution from the current locally convolved content, modulated by the parallel gate, and projected back to . The projected block output was then added to the unchanged layer input through the outer residual connection.
The resulting sequences therefore retained their original stream identity and temporal resolution while incorporating information from the shared multimodal history. Unavailable streams were excluded from shared-state averaging and their block outputs were zeroed.
In bidirectional profiles, independent parameter sets processed the valid sequence in forward and reverse temporal order. Reverse outputs were restored to the original order and averaged with the forward outputs before the residual update. For OSF, whose upstream encoder already produced one fused representation sequence, the same formulation reduced to a single-stream selective state-space recurrence; raw-signal availability had already been resolved during OSF preprocessing.
D.3 Temporal pooling, covariates, and classification
Following whole-night processing, each stream was summarized independently using masked mean pooling, its last valid state, or additive-attention pooling. For attention pooling, each stream had a separate scorer, mirroring the implementation of [1, 20]:
where V contains the valid, non-padded time points. The pooled stream representations were concatenated and normalized, with unavailable streams contributing zero-valued vectors.
We evaluated representation-only and with-covariate conditions. The covariate set comprised age, gender, body mass index, waist-to-height ratio, and indicators for missing anthropometric values. Age, body mass index, and waist-to-height ratio were standardized using statistics fitted exclusively to the corresponding outer-fold training partition. Missing anthropometric values were assigned zero after standardization and accompanied by separate missingness indicators. Covariates were appended only after temporal pooling and therefore did not influence the recurrent sequence representation.
The resulting features were passed to a two-layer multilayer perceptron. Its hidden layer was followed by layer normalization, GELU activation, and dropout. The final layer produced one logit for each of the six diagnostic categories.
D.4 Cross-validation, architecture selection, and optimization
We used five fixed participant-grouped outer folds shared across all methods, assigning every recording from a patient to the same fold. Fold construction approximately balanced the total number of recordings and diagnosis-specific positive counts. Within each outer development partition, 15% of development patients were assigned to a fixed participant-grouped validation subset; these assignments were reused across encoders, architecture configurations, and covariate conditions.
Architecture selection was performed independently within each outer development partition and separately for every encoder under the representation-only and covariate-augmented conditions. We evaluated prespecified compact configurations spanning model widths of 16 and 32, state dimensions of 8 and 16, one or two Coupled Mamba layers, unidirectional or bidirectional processing, and mean, last-state, or additive-attention pooling. Within each outer run, configurations were ranked by macro-AUROC on that run's fixed validation subset. The corresponding early-stopped checkpoint of the selected configuration was then evaluated once on the held-out outer fold. Consequently, the selected architecture could differ across outer folds, and the pooled out-of-fold predictions estimate the performance of the complete training-and-selection procedure.
Across configurations, the causal-convolution width was fixed to , the expansion factor to 2, and classifier dropout to 0.1; layer normalization was used throughout. Models were optimized jointly across the six labels using unweighted binary cross-entropy and Adam with a learning rate of , no weight decay, and minibatches of four recordings. Training continued for at most 100 epochs, with early stopping after ten consecutive epochs without improvement in validation loss; the checkpoint attaining the lowest validation loss was retained. Models were implemented in Python 3.10 using PyTorch 2.2.0 with CUDA 12.1, mamba-ssm 1.2.2, and causal-conv1d 1.4.0, and trained on an NVIDIA H200 GPU.
E Supplementary results
SleepTransformer pretraining and modality conditions Using the same fixed downstream architecture, we compared four SleepTransformer [20] conditions. The single-cohort EEG-only condition used an encoder pretrained exclusively on the large SHHS cohort, whereas the multi-cohort EEG-only condition used the corresponding encoder pretrained across the 17 NSRR cohorts considered in SLEEPYLAND [6]. The multi-cohort core condition additionally incorporated separately pretrained EOG, EMG, and ECG encoders, while the respiratory-expanded condition further incorporated ABD and THX respiratory-effort encoders. The two EEG-only conditions examined the influence of pretraining-corpus scale and diversity while holding the encoder architecture and downstream modality fixed. The remaining comparisons quantified the contributions of broader modality coverage and, particularly, respiratory effort.
Table 5: Performance of SleepTransformer downstream modeling across pretraining and modality-coverage conditions. Values are pooled out-of-fold AUROC without covariates. Best and second-best results are bolded and underlined.
| Pretraining and inputs | Insomnia | SDB | CDH | CRSWD | Parasomnia | SRMD | Macro |
|---|---|---|---|---|---|---|---|
| Single-cohort; EEG | .700 | .786 | .753 | .617 | .764 | .603 | .704 |
| Multi-cohort; EEG | .709 | .797 | .759 | .631 | .795 | .603 | .716 |
| Multi-cohort; EEG/EOG/EMG/ECG | .712 | .826 | .778 | .604 | .792 | .630 | .724 |
| Multi-cohort; EEG/EOG/EMG/ECG/RESP | .737 | .874 | .787 | .609 | .800 | .649 | .743 |
All ablation conditions used the same fixed downstream architecture configuration. The respiratory-expanded results therefore differ slightly from the primary results, for which the downstream architecture was selected independently within each outer development partition.
Respiratory-input ablation To harmonize physiological coverage as far as permitted by each encoder, we repeated the analyses using a common non-respiratory core comprising EEG, EOG, chin EMG, and ECG. Respiratory coverage represented the principal input mismatch, ranging from respiratory effort alone to combinations of effort, airflow, oxygen saturation, pulse, and snoring. U-Sleep and SleepTransformer omitted their RESP group; SleepFM omitted its RESP group; OSF retained only EEG, EOG, chin EMG, and ECG, thereby also excluding leg EMG; and Hypnos omitted ABD and THX. Because each encoder retained its own preprocessing, channel handling, and representation organization, this constituted signal-family-level harmonization rather than exact input matching.
Under common-core coverage (Table 6), the supervised encoders remained strongest overall: SleepTransformer achieved the highest macro-AUROC without covariates (.730), while U-Sleep ranked first with covariates (.733). Unlike under full input coverage, SleepTransformer also achieved the highest SDB AUROC in both panels (.827 and .837). Removing respiratory groups reduced SDB AUROC by .040-.093 across the five encoders, whereas changes for the other disorders were smaller and less consistent. Overall, the common-core comparison indicates that much of the SDB advantage observed with the full PSG FM inputs arose from respiratory coverage.
Table 6: Pooled out-of-fold AUROC under common-core input coverage, without (A) and with (B) demographic and anthropometric covariates. Best and second-best available results per panel are bolded and underlined.
| Method | Insomnia | SDB | CDH | CRSWD | Parasomnia | SRMD | Macro |
|---|---|---|---|---|---|---|---|
| A. Without covariates | |||||||
| U-Sleep | .712 | .814 | .772 | .629 | .751 | .635 | .719 |
| SleepTransformer | .718 | .827 | .783 | .608 | .802 | .639 | .730 |
| SleepFM | .686 | .782 | .751 | .608 | .689 | .594 | .685 |
| OSF | .697 | .810 | .748 | .637 | .709 | .603 | .701 |
| Hypnos | .702 | .816 | .758 | .620 | .715 | .597 | .701 |
| B. With covariates | |||||||
| U-Sleep | .728 | .827 | .788 | .642 | .774 | .637 | .733 |
| SleepTransformer | .734 | .837 | .786 | .574 | .806 | .647 | .731 |
| SleepFM | .700 | .803 | .768 | .603 | .715 | .614 | .701 |
| OSF | .712 | .820 | .771 | .633 | .706 | .599 | .707 |
| Hypnos | .707 | .809 | .766 | .587 | .729 | .611 | .701 |
Table 7: SleepFM SDB performance across full, non-respiratory-core, RESP-only, and core-plus-respiratory-subset conditions.
| SleepFM inputs | SDB AUROC |
|---|---|
| All modality groups | .879 |
| BAS/ECG/EMG only | .769 |
| RESP group only | .869 |
| BAS/ECG/EMG + respiratory effort | .865 |
| BAS/ECG/EMG + airflow | .864 |
| BAS/ECG/EMG + oximetry/pulse | .847 |
| BAS/ECG/EMG + snoring | .776 |
To examine this effect further, we evaluated the complete SleepFM RESP group and its constituent signal families (Table 7). The RESP-group-only condition excluded BAS, ECG, and EMG; conversely, each respiratory-subset condition retained these non-respiratory groups and restricted only the RESP inputs to the indicated family. All conditions used the same fixed downstream architecture and excluded covariates. Removing the RESP group reduced SDB AUROC from .879 to .769, whereas the RESP group alone retained nearly all full-model performance (.869). Adding respiratory effort or airflow to the non-respiratory core recovered AUROC to .865 and .864, respectively, followed by oximetry/pulse (.847); snoring provided little improvement (.776). Thus, the SDB gain from respiratory coverage was driven primarily by effort and airflow, while the complete RESP group achieved the highest performance.
Downstream data efficiency All data-efficiency analyses used the representation-only condition, without appending demographic or anthropometric covariates to the downstream model. Within each outer fold, downstream training was restricted to 1%, 10%, 25%, 50%, or 100% of the training participants. Participant subsets were selected to approximate the target recording count and diagnosis distribution while retaining both classes for every disorder. Identical subsets were used across encoders. To limit dependence on a particular sample, we used five mutually disjoint draws within the 1% and 10% conditions, four at 25%, and two at 50%. The complete outer-fold training partition defined the single 100% condition.
Under each encoder's full physiological input coverage, SleepTransformer achieved the highest macro-AUROC at every training fraction (Table 8). Its advantage over the strongest PSG FM was .045, .039, .030, .010, and .016 at 1%, 10%, 25%, 50%, and 100%, respectively. U-Sleep showed a similar pattern, exceeding the strongest PSG FM at four of five fractions and trailing it by only .007 at 50%. The supervised advantage was most consistent for insomnia, CDH, and parasomnia. For SDB, differences narrowed with increasing training data, with PSG FMs slightly leading at 50% and 100%. SRMD remained close to chance at the smallest fractions and separated more clearly as training data increased.
The common non-respiratory configuration produced the same overall pattern (Table 9). SleepTransformer exceeded the strongest corresponding PSG FM by .052, .041, .041, .040, and .029 macro-AUROC across the five fractions, while U-Sleep remained above every PSG FM throughout. Supervised representations generally performed best across disorders, particularly for SDB, CDH, and parasomnia. CRSWD showed the greatest variation across participant draws and was the principal exception at full data, where OSF achieved the highest AUROC.
Table 8: Downstream data efficiency under each encoder's full physiological input coverage, without demographic and anthropometric covariates. Reduced-data values are mean ± standard deviation across participant draws. Best and second-best mean AUROCs within each training fraction and outcome are bolded and underlined, respectively.
| Method | Train (%) | Insomnia | SDB | CDH | CRSWD | Parasomnia | SRMD | Macro |
|---|---|---|---|---|---|---|---|---|
| U-Sleep | 1 | .614±.008 | .635±.011 | .598±.042 | .557±.033 | .533±.016 | .527±.016 | .577±.016 |
| 10 | .672±.003 | .749±.006 | .691±.006 | .570±.036 | .644±.011 | .562±.004 | .648±.006 | |
| 25 | .696±.016 | .799±.003 | .726±.008 | .605±.027 | .708±.010 | .590±.007 | .687±.006 | |
| 50 | .700±.004 | .830±.003 | .748±.011 | .608±.017 | .736±.005 | .604±.005 | .704±.000 | |
| 100 | .726 | .854 | .774 | .625 | .766 | .642 | .731 | |
| SleepTransformer | 1 | .606±.010 | .727±.020 | .631±.034 | .549±.039 | .567±.016 | .507±.015 | .598±.012 |
| 10 | .688±.005 | .824±.005 | .714±.013 | .595±.036 | .685±.026 | .540±.009 | .674±.010 | |
| 25 | .703±.004 | .851±.002 | .742±.003 | .612±.015 | .745±.018 | .570±.013 | .704±.005 | |
| 50 | .720±.002 | .862±.001 | .759±.001 | .607±.015 | .769±.009 | .607±.009 | .721±.002 | |
| 100 | .738 | .874 | .787 | .616 | .803 | .644 | .744 | |
| SleepFM | 1 | .523±.012 | .643±.017 | .551±.020 | .482±.028 | .514±.015 | .512±.007 | .538±.009 |
| 10 | .603±.010 | .766±.005 | .664±.013 | .519±.032 | .596±.025 | .543±.007 | .615±.007 | |
| 25 | .660±.009 | .820±.011 | .706±.009 | .568±.024 | .642±.009 | .575±.006 | .662±.006 | |
| 50 | .686±.000 | .852±.005 | .740±.003 | .592±.003 | .673±.021 | .595±.002 | .690±.005 | |
| 100 | .709 | .875 | .759 | .636 | .726 | .625 | .722 | |
| OSF | 1 | .551±.010 | .653±.023 | .560±.014 | .520±.027 | .537±.023 | .498±.004 | .553±.007 |
| 10 | .628±.006 | .789±.005 | .678±.007 | .562±.016 | .629±.017 | .521±.006 | .635±.005 | |
| 25 | .659±.014 | .838±.004 | .717±.006 | .595±.016 | .676±.015 | .557±.011 | .674±.003 | |
| 50 | .691±.001 | .864±.003 | .744±.003 | .636±.005 | .720±.003 | .588±.003 | .707±.002 | |
| 100 | .709 | .875 | .753 | .661 | .737 | .621 | .726 | |
| Hypnos | 1 | .536±.016 | .637±.033 | .540±.028 | .489±.017 | .509±.017 | .500±.012 | .535±.013 |
| 10 | .628±.020 | .750±.009 | .687±.014 | .555±.014 | .613±.015 | .531±.013 | .627±.010 | |
| 25 | .678±.012 | .830±.009 | .723±.018 | .567±.047 | .670±.020 | .566±.008 | .672±.007 | |
| 50 | .704±.002 | .869±.007 | .754±.011 | .611±.009 | .721±.007 | .607±.001 | .711±.001 | |
| 100 | .714 | .890 | .779 | .609 | .748 | .628 | .728 |
Table 9: Downstream data efficiency under non-respiratory core, without demographic and anthropometric covariates. Reduced-data values are mean ± standard deviation across participant-level draws. Best and second-best reported mean AUROCs within each training fraction and outcome are bolded and underlined, respectively.
| Method | Train (%) | Insomnia | SDB | CDH | CRSWD | Parasomnia | SRMD | Macro |
|---|---|---|---|---|---|---|---|---|
| U-Sleep | 1 | .605±.014 | .614±.005 | .598±.046 | .542±.022 | .546±.006 | .507±.014 | .569±.012 |
| 10 | .662±.004 | .715±.006 | .697±.007 | .572±.044 | .641±.016 | .546±.011 | .639±.008 | |
| 25 | .692±.008 | .764±.002 | .727±.004 | .590±.022 | .707±.012 | .581±.007 | .677±.005 | |
| 50 | .700±.006 | .791±.000 | .748±.005 | .592±.011 | .733±.001 | .599±.009 | .694±.003 | |
| 100 | .712 | .814 | .772 | .629 | .751 | .635 | .719 | |
| SleepTransformer | 1 | .591±.013 | .685±.017 | .624±.050 | .550±.016 | .596±.011 | .511±.012 | .593±.012 |
| 10 | .671±.014 | .769±.003 | .713±.009 | .578±.027 | .689±.012 | .549±.004 | .661±.003 | |
| 25 | .691±.007 | .795±.002 | .732±.011 | .602±.018 | .737±.008 | .574±.001 | .689±.003 | |
| 50 | .706±.002 | .813±.002 | .754±.017 | .620±.038 | .778±.008 | .609±.000 | .714±.005 | |
| 100 | .718 | .827 | .783 | .608 | .802 | .639 | .730 | |
| SleepFM | 1 | .535±.012 | .606±.024 | .538±.035 | .502±.014 | .524±.028 | .504±.010 | .535±.015 |
| 10 | .609±.007 | .704±.005 | .664±.015 | .538±.026 | .607±.021 | .541±.009 | .611±.006 | |
| 25 | .640±.008 | .741±.004 | .711±.007 | .557±.019 | .635±.016 | .560±.004 | .640±.006 | |
| 50 | .668±.010 | .759±.002 | .726±.000 | .571±.004 | .660±.019 | .569±.003 | .659±.001 | |
| 100 | .686 | .782 | .751 | .608 | .689 | .594 | .685 | |
| OSF | 1 | .533±.018 | .620±.024 | .552±.026 | .509±.038 | .531±.014 | .502±.011 | .541±.011 |
| 10 | .608±.007 | .727±.005 | .665±.008 | .548±.028 | .585±.007 | .521±.010 | .609±.006 | |
| 25 | .645±.015 | .762±.002 | .704±.012 | .580±.056 | .603±.023 | .550±.017 | .641±.008 | |
| 50 | .676±.001 | .786±.004 | .725±.006 | .611±.039 | .663±.013 | .571±.018 | .672±.005 | |
| 100 | .698 | .810 | .748 | .637 | .709 | .603 | .701 | |
| Hypnos | 1 | .537±.018 | .642±.022 | .541±.019 | .489±.022 | .532±.030 | .504±.017 | .541±.009 |
| 10 | .619±.019 | .726±.006 | .684±.007 | .541±.010 | .623±.018 | .526±.010 | .620±.006 | |
| 25 | .650±.014 | .753±.008 | .712±.006 | .561±.034 | .661±.007 | .550±.009 | .648±.002 | |
| 50 | .677±.010 | .775±.007 | .736±.002 | .585±.008 | .692±.002 | .577±.001 | .674±.000 | |
| 100 | .702 | .816 | .758 | .620 | .715 | .597 | .701 |
Global-mean linear probe To assess how much information remained accessible to a minimal, order-invariant linear readout, we replaced the complete downstream framework with a global-mean linear probe (Table 10). For every representation stream, tokens were averaged across valid, non-padded time points at the encoder's native temporal resolution. Missing streams contributed zero-valued vectors and were identified by appended binary availability indicators. The stream means and availability indicators were concatenated, and a single linear layer jointly produced the six disorder logits. The probe used the same outer folds and multilabel binary-cross-entropy objective as the primary downstream models. SleepTransformer retained the highest macro-AUROC under linear probing (.731), followed by OSF (.716), Hypnos (.701), SleepFM (.676), and U-Sleep (.613). Relative to whole-night state-space modeling, macro-AUROC decreased by .118 for U-Sleep, .046 for SleepFM, .027 for Hypnos, .013 for SleepTransformer, and .010 for OSF. Thus, richer whole-night modeling improved macro-AUROC for every encoder, but its contribution varied substantially.
Table 10: Pooled out-of-fold AUROC obtained using the global-mean linear probe without demographic and anthropometric covariates. Best and second-best results are bolded and underlined.
| Method | Insomnia | SDB | CDH | CRSWD | Parasomnia | SRMD | Macro |
|---|---|---|---|---|---|---|---|
| U-Sleep | .672 | .695 | .669 | .614 | .517 | .514 | .613 |
| SleepTransformer | .725 | .845 | .763 | .629 | .785 | .640 | .731 |
| SleepFM | .685 | .809 | .722 | .537 | .687 | .615 | .676 |
| OSF | .706 | .848 | .750 | .624 | .717 | .648 | .716 |
| Hypnos | .698 | .827 | .738 | .575 | .721 | .646 | .701 |