← Tepna preprints

Sleep staging from a fingertip oximeter's three signals: a pre-registered ceiling, a sequence control, and a stack of published formulas scored blind

Michal Planicka  ·  corresponding author — Tepna Project

OxyDex node (SpO₂ · pulse rate · motion), Tepna physiological-signal suite

Draft v2 · October 2026 · Skeleton 2026-10-04; results v1 2026-10-22; results v2 2026-10-31 · Inputs: nine pooled cohorts (open + NSRR), 14 695 nights, feature sets oxy1 (466 columns) + pdx (175 pulse-dynamics bases); ecg2r, rsp (ECG and breathing lines), oxy1p + pdxp (pulse from the PPG waveform); nl extracted, never fitted · bands pre-stated in briefs/STAGE-LAB-2026-09-27-BRIEF.md §§5–50 before each run · nothing here is a published rate until the owner opens the P5 gate

Abstract

Background. A fingertip ring oximeter reports three signals at 1 Hz: SpO₂, pulse rate and a movement byte. The best published figure for staging from the first two is κ 0.73–0.78 on 17 303 polysomnograms with a whole-night network (Vaquerizo-Villar et al., 2025); a proprietary ring stager reports κ 0.39 on a sealed Challenge-2018 holdout. Question. How much of the night can those three signals stage, what part of it a stack of published formulas can carry, and how the two compare blind. Methods. Nine cohorts (14 695 nights: SHHS-1/2, MESA, CFS, MrOS, CAP, UCDDB, ISRUC) harmonised to what the ring reports; 466 named features plus 175 pulse-dynamics bases; three learners on identical subject-grouped folds — gradient-boosted trees, a whole-night sequence network used only as a control, and a literature stack (named terms → auto-context → linear-chain CRF) fitted to labels; every band stated before its run; Challenge 2018 never fitted, scored blind; leave-one-cohort-out for the four NSRR cohorts; a half-night label shift that must collapse κ as the plant. Results. The control reaches pooled κ 0.711 (0.794 three-class) and 0.573 blind on Challenge; holding out MESA, MrOS or CFS costs 0.006–0.026 and SHHS-1 0.045, so the blind gap of 0.14 is site and scoring, not cohort. Adding 4 646 nights moved the control +0.009. The literature stack rose from 0.482 to 0.558 when the pulse-dynamics bases were added (+0.079 [+0.078, +0.081] paired on 15 689 nights, against a pre-stated +0.005 to +0.02) and to 0.570 with every cached column as a line term; blind 0.392 (the proprietary stager reports 0.390 on a different, sealed set). An oracle that fits each night's own intercepts and slopes lifts the stack to 0.616, but that calibration is not predictable from the night (recovery ≤ 14 %), not carried by the same person's other night years apart (−0.03 to −0.06), and worth ≤ +0.03 from a user's bed and wake times; a second formula that predicts each night's adapters from its label-free statistics recovers +0.041 of it (stack 0.597, blind 0.407, above that reported 0.390; these are pre-rework figures); distillation from the control hurt twice. Draft v2 (2026-10-31). STAGES' thirteen clinics read the control at 0.533 blind, and training on sister clinics did not repair a held-out one (−0.018 to +0.018). The ECG net reads 0.681 against a five-scorer consensus (DOD-O). After a data-integrity rework every line was re-run on corrected data (Table 6). The nets hold (oximetry 0.705, ECG + breathing 0.702; about 0.57 on blind Challenge), and no formula passes a ship band blind (oximetry formula 0.374 on Challenge, 0.242 on DREAMT's wrist pulse). A wearable-only net reaches 0.658 in the pool and 0.41 on DREAMT. Conclusion. The formula route was capped by missing terms, not by its linear form: the pulse-dynamics bases lifted it +0.079 pooled. It has not cleared a ship band, which is set on blind κ: its best blind figure before the data rework was 0.407 (Challenge), and on the corrected data it reads 0.374 on Challenge and 0.242 on DREAMT, under the lowest band (0.42). The 0.390 of the proprietary comparator was measured on a different, sealed 134-night set, so it is a reference point, not a matched comparison. What separates the formula from the control is a this-night calibration that only labels on that night supply; the control itself already reads the whole night and sits at the lower edge of the published 0.73–0.78.

Keywords: sleep staging · pulse oximetry · pulse rate · actigraphy · pre-registration · knowledge distillation · conditional random field · auto-context · blind validation

0. Layman overview (delete before submission)

A sleep lab decides whether you are awake, in light sleep, deep sleep or dreaming by reading your brain waves. A ring on your finger cannot see your brain; it sees how much oxygen is in your blood, how fast your pulse is, and whether your hand moved. We asked how far those three signals can go. We built the best model we could as a yardstick, then tried to reach the same result with formulas other scientists have already published, because formulas can be read, checked and shipped on a tiny device. Every target was written down before the computer ran, and two groups of nights were scored without ever being used for training. Those nights were looked at during development, so they are a test of transfer, not a sealed final exam. A separate set of nine clinics is now locked for one final run; it was looked at once early on, so it will test new sites, not unseen data.

1. Introduction

Two human scorers reading the same polysomnogram agree at κ ≈ 0.83 (measured here on ISRUC, Khalighi et al., 2016). A wearable has none of the channels they read. The question of this paper is therefore not whether a ring equals a lab, but how much of the night a ring's three 1-Hz signals contain, and whether that information can be expressed in formulas rather than in a black box.

Comparators. A proprietary stager for the same ring family reports κ 0.367 live / 0.390 offline on a sealed 134-night Challenge-2018 holdout (published figures only; its model and outputs were never used, per its licence §3g). Sridhar et al. (2020) reached κ 0.66 from instantaneous heart rate alone with a whole-night CNN on SHHS/MESA. Vaquerizo-Villar et al. (2025) reached κ 0.73–0.78 from 1-Hz pulse rate and SpO₂ on 17 303 PSGs and published the frequency bands their network attends to, which this paper adopts as formula terms. From the PPG waveform of a PSG oximeter, Kotzen et al. (2023) reached κ 0.75 held-out and 0.74 on an external database after transfer, and Attia et al. (2025) showed that training on several sources at once lifts out-of-distribution κ by up to 21 %; from a wrist device, Radha et al. (2021) reached 0.65 on 60 healthy participants with ECG-to-PPG transfer. Ganglberger et al. (2024) added a scorability model that predicts, from signal quality and model confidence, how far an automated staging can be trusted. Four further comparators frame the same task without being read against this paper’s κ: Sun et al. (2020) staged from electrocardiography and respiration with deep learning, Topalidis et al. (2023) classified stages from heart-rate variability, Krauss et al. (2025) benchmarked multimodal staging over actigraphy and HRV at large scale, and Schipper et al. (2024) staged whole nights from chest-worn accelerometry. Their published figures are not restated here, because none of them reads the ring’s three 1-Hz signals. The human ceilings these are read against: 82.6 % inter-scorer agreement over more than 2 500 scorers, with N1 at 63.0 % and N3 at 67.4 % (Rosenberg & Van Hout, 2013), and κ 0.76 under AASM rules against 0.68 under R&K between experts (Danker-Hopfe et al., 2009) — the latter is why this paper reports cohorts scored under the two standards in separate rows.

Design. Three learners on one feature matrix and identical folds: trees as the floor, a sequence network as the ceiling and teacher ("control", never shipped), and a stack of published formulas as the candidate for release. The owner's rule "train on everything in-house, publish only what the formulas carry" is what the design implements.

2. Methods

2.1 Cohorts and licences

Table 1. Cohorts. "Fit" = in the pooled folds; "blind" = never fitted, scored on every fold model; "pending" = loader wired and pre-stated, run not yet landed.
cohortnightsSpO₂pulse sourcemotionlabelslicencerole
SHHS-1 (NSRR)5 1361 Hzoximeter H.R.—R&K → 4-classNSRR DUAfit
SHHS-2 (NSRR)2 6501 Hzoximeter PR—R&K → 4-classNSRR DUAfit (same subjects as SHHS-1; folds grouped by subject)
MESA (NSRR)2 0251 Hzoximeter HRwrist actigraphyAASMNSRR DUAfit
CFS (NSRR)7301 Hzoximeter PULSE—AASMNSRR DUAfit
MrOS (NSRR, two visits)3 9161 Hzoximeter—AASMNSRR DUAfit (visits grouped by subject)
CAP (PhysioNet)881 HzHR / ECG-derived—R&KODC-Byfit
UCDDB (PhysioNet)258 Hz → 1 Hzoximeter Pulse—R&KODC-Byfit
ISRUC-Sleep12512.5 Hz → 1 HzECG-derived—AASM, two scorerscite-onlyin the control\'s folds; blind for the stack
Challenge 2018 (PhysioNet/CinC)9941 HzECG-derived—AASMODC-Byblind
STAGES (NSRR, 13 clinics)1 9081 Hzoximeter (11 clinics)—AASMNSRR DUAblind, leave-one-clinic-out (§43, pre-§46 data); nine sites since LOCKED for the final run (§52.6); STNF, GSDV, MSMI in the PPG pool (§46)
DREAMT (PhysioNet, restricted)1001 Hz (PSG)wrist wearable HR / BVPwrist ACCAASMPhysioNet RHD 1.5blind, consulted external (§36, §45, §46)
Dreem DOD-O56—ECG 250 Hz—five-scorer consensusMITblind, ECG line (§44)

The cohorts marked NSRR in Table 1 are obtained from the National Sleep Research Resource (Zhang et al., 2018), and SHHS-1 and SHHS-2 are the two visits of the Sleep Heart Health Study (Quan et al., 1997). Nights with a present-but-empty SpO₂ channel (< 50 % valid) are skipped and counted; a cohort without a signal yields NaN in that signal's columns, never a filled value. Aggregate statistics only are reported; no record identifiers leave the corpus (NSRR DAUA §5).

2.2 Harmonisation to the ring

SpO₂ is reduced to an 8-s moving mean at 1 Hz in whole percent, which is what the ring writes (one byte per second per signal). Pulse rate is the oximeter's own 1-Hz rate where the PSG has one; otherwise 60/RR from ECG beats found by the suite's Pan–Tompkins detector (Pan & Tompkins, 1985; validated at Se/PPV ≥ 99 % on MIT-BIH, SLPDB and NSRDB, Table S1; the knowledge-based alternative benchmarked over 11 standard databases is Elgendi, 2013) with a 4-s mean. Motion is the per-second standard deviation of wrist acceleration magnitude; a 1-bit "moved this second" flag (> 0.02 g) is carried beside it, as the poorest signal the ring could report. Every signal is standardised per night (median/IQR).

2.3 Feature matrix (feature set oxy1, 466 columns)

Multi-scale statistics (1–10 min), desaturation events (the ≥ 3 % criterion of the AASM 2012 rules, Berry et al., 2012; the detector is ours, and implementations differ, Terrill, 2020), SpO₂ and pulse-rate band powers including the three PR bands of Vaquerizo-Villar et al. (2025), pulse-rate statistics on the 1-Hz device rate (the mean, SD and successive-difference features that paper names; not HRV in the Task Force (1996) sense, and only after the RR-interval features of Redmond & Heneghan, 2006), and movement statistics after Cole et al. (1992) and Sadeh et al. (1994) — analogues of their inputs, not their scoring algorithms — each with ±2/±10/±30-epoch context. A literature check of 2026-10-30 re-attributed every term to what its source actually defines; the term-by-term verdicts, the terms retired (a Cole–Kripke-weighted window, 5-min VLF, posture turns) and the quantities added (a ceiling-baseline event detector shared with OxyDex, cardiopulmonary coupling with the parameters of Thomas et al., 2005, and per-epoch signal-quality fractions after the scorability idea of Ganglberger et al., 2024) are in docs/STAGE-LAB-FORMULAS.md.

Pulse-dynamics bases (pdx, brief §31, added 2026-10-20): 35 quantities of the pulse-rate and SpO₂ series that a linear formula cannot derive from the oxy1 statistics — lag-1/5/10 autocorrelation, DFA α₁/α₂, sample and permutation entropy, turning-point rate, Teager energy, Higuchi dimension, SD1/SD2, the HF spectral peak and its drift, pulse surges and the time since the last surge, SpO₂ step, desaturation duration and burden, resaturation slope, SpO₂–pulse cross-correlation and lag, the pulse response after movement, and per-channel missingness — each raw and at ±2, ±10, ±30 epochs. Night-level constants (nl, 8 columns: pulse median/IQR/trend, SpO₂ median/5th percentile, ODI-3, motion fraction, time in bed) bypass the per-night normalisation and were the input of the night-level formula arm (§39), which never ran; the §46 rework superseded it.

2.4 Learners

2.5 Pre-registration and plants

Each unit's expected range, pass line and reading rule were written in briefs/STAGE-LAB-2026-09-27-BRIEF.md before the unit ran (§§5–20); measured numbers were appended beside them, including every failed expectation. The gate for all units: pooled κ ≥ 0.415, half the human inter-scorer κ (0.829). Agreement is Cohen’s κ over the four nominal classes (Cohen, 1960), computed against each cohort’s own scored labels. Plant P1: labels shifted by half a night must collapse κ below half its value, or the run is void. Folds are a hash of the subject key (SHHS1/SHHS2 visits of one person share a fold); Challenge 2018 and ISRUC are never in any fit.

3. Results

Values are copied from the bench summaries and readouts under lab-cache/ (brief §§29–50), never typed from memory. Tables 2–5 are pre-§46 data; Table 6 is the §46 re-run, reported beside them and never pooled with them. The control's numbers are the nine-cohort five-fold CV (v30 B1); the stack's are all five folds (CRF Viterbi for κ4, the saved context-layer posteriors for κ3). "Blind" = never fitted.

Table 2. Pooled four-class κ by learner and feature set (brief §§30–31, §38a). Night-bootstrap 95 % CI on the control ±0.004.
learnerfeaturespooled κ4pooled κ3Challenge (blind)ISRUCSHHS-1SHHS-2MESAMrOSbrief §
trees (six-cohort pool, v18)oxy10.507———————17
control (sequence), v30 B1oxy10.7110.7940.5730.4180.6760.7270.7350.72530
control + pdx terms, v31 S1oxy1 + pdx0.7160.798——————31
literature stack, CRF (L0)oxy10.4820.5430.3160.2920.4500.5190.5370.49031
stack + pulse-dynamics terms (L1)oxy1 + pdx0.5580.6300.3750.2840.5320.5930.5970.56831
stack, every column a line term (L2)oxy1 + pdx0.5700.6430.3920.3240.5430.6030.6120.57931
proprietary comparator (published)ring——0.390—————1
stack + label-free per-night adapters predicted from night statistics (v32 F2)oxy1 + pdx0.5970.6730.4070.3110.5680.6210.6290.60832
stack + EM self-adaptation (v32 F1)oxy1 + pdx0.5530.6290.3660.2700.5220.5840.5950.56932
night-level formula (v37F)oxy1 + pdx + nlnot run: its chain failed on 2026-10-22/23 (v32, then v33); superseded by the §46 rework and the §47 normalisations (Table 6)39
Table 3. What each step bought (paired on the same nights where stated; pre-stated expectation in brackets).
stepΔκ pooledwhere it showedbrief §
+4 646 CFS + MrOS nights, control+0.009 [+0.008, +0.010] (expected +0.01 to +0.03)Challenge blind +0.019; new cohorts scored blind within 0.02 of in-pool30
pulse-dynamics terms, stack+0.079 [+0.078, +0.081] paired (expected +0.005 to +0.02); fit stride itself −0.002every cohort; Challenge blind +0.05931
every column as a line term, stack+0.013 [+0.013, +0.014] paired (expected ≤ 0)capacity still buys a little31
the same terms, control+0.005 (expected within ±0.005)the network derives them itself31
four-class → three-class readout (W / NREM / REM)+0.08 to +0.09 on every modelerrors split between wake/REM and light/deep as in the literature38a
holding out one NSRR cohort (LOCO), control−0.006 (MESA), −0.020 (MrOS), −0.026 (CFS), −0.045 (SHHS-1)reproduces the published < 3 % except the 1990s cohort38b
oracle per-night intercepts + slopes, stack+0.25 (0.366 → 0.616); +0.16 on MESAthe upper bound32, 40
per-night adapters predicted label-free from night statistics (v32 F2)+0.041 [+0.040, +0.043] paired (expected +0.03 to +0.08); EM self-adaptation −0.005Challenge blind 0.375 → 0.407, past the proprietary 0.39032
Table 4. Negative results, each with the number that rejected it (brief §§13–52). Collected with their dispositions in papers/dead-ends.html §§2.10–2.23.
ideaexpectedmeasuredverdict
explicit-duration HSMM decoding+0.394 vs 0.398; −0.03 as a decoder on the stackdurations are not the wall (§13, §32)
distillation from the control into the stack+0.00 to +0.03−0.05 (§15), −0.022 (§19)a linear student loses label sharpness; not repeated
second-order "bridge" terms+0.02 to +0.04−0.008 at the CRFhow terms integrate, not which (§22)
class-balanced loss+no gain (§21b, §26)κ already penalises majority bias
fitting the stack with the blind cohorts' labels+0.470 vs 0.495harms (§19d)
predicting the per-night adapters from the night (level, spread, shape, memory), 52-term basis, MESArecovery 0.10–0.300.04 (night level), 0.14 (night statistics), 0.20 with the control's own posterior summariesunder-read: the full basis on nine cohorts recovers +0.041 (§32 F2); the diagnostic's one-cohort, 52-term reading is the negative result, not the method
the same person's adapter from another night, years apart+0.05 to +0.10−0.061 (MrOS, 7 y), −0.032 (SHHS, 5 y); label-free EM −0.08 to −0.11a this-night effect, not a trait (§41)
user bed/wake times as labels for the per-night intercepts+0.02 to +0.05−0.004; +0.027 with per-term scalesmarginal, parked (§42)
data volume alone+0.01 to +0.03 for +50 % nights+0.009saturating at this architecture (§30)
training on sister clinics (STAGES leave-one-clinic-out, five largest)+0.02 to +0.06 vs the same clinic blind−0.018 to +0.018; control blind on STAGES 0.533 (expected 0.60–0.66)the shift is per clinic, not per study (§43)
posture terms in the ECG line≥ +0.010+0.0009 [+0.0001, +0.0017]dropped (§46.7 read 1)
crop augmentationblind ≥ +0.02, pool ≥ −0.005ECG net DREAMT +0.009 [−0.001, +0.019]; wrist net pool −0.006not adopted (§46.7 read 4)
motion harmonisation, actigraph vs wrist accelerometerper-stage effect r > +0.8r +0.45 (still-run)failed (§46.7 read 3)
distillation, third time (four formula lines)≥ +0.01−0.0003 to −0.0038not adopted (§46.7 read 5)
CORAL per-night covariance alignment0 to +0.02−0.019 pool; −0.006 with the rank transform (rank alone +0.014, adopted)rejected (§47)
ECG → PPG transfer at the HRV level (Radha et al. 2021)DREAMT ≥ +0.03+0.015 [−0.013, +0.040]; −0.082 vs the existing wrist netnot confirmed (§48)
STNF's 0–29 s scoring-grid offset as the cause of its deficit(diagnostic)κ by offset bin 0.36–0.40, no trend; one-epoch shift ≤ 0.005not the cause; grids aligned anyway (§52.8)
Table 5. Blind runs (bands in the brief sections named, stated before each run). κ4, with κ3 in brackets where measured. These runs are on pre-§46 data; the §46 re-runs are in Table 6. The external third-party blind run remains unscheduled.
setmodelpre-stated bandκreadingbrief §
STAGES, 13 clinics (1 702 scored nights)control, pool-trained, blind on every clinic≥ 0.65 generalises like a cohort · 0.55–0.65 half the Challenge gap · < 0.55 Challenge-like; expected 0.60–0.660.533 (0.594)Challenge-like. Eleven clinics 0.559–0.686; STLK 0.364 and STNF 0.411 carry the deficit43
STAGES, five largest clinicscontrol, pool + the other 12 clinics → held-out clinicL − S0 > +0.05 sister clinics repair it · +0.02 to +0.05 partial · < +0.02 per-clinic shift; expected +0.02 to +0.06STNF 0.393 · GSDV 0.652 · MSTR 0.662 · STLK 0.361 · MSQW 0.623L − S0 −0.018 to +0.018: the shift is per clinic43
STAGES, 13 clinicswide formula (L2 recipe), blind≥ 0.50 generalises · 0.40–0.50 half the control's drop · < 0.40 Challenge-like; expected 0.44–0.520.443–0.514 at eleven clinics; STLK 0.166, STNF 0.307, BOGN 0.314in the middle band except the same outlier clinics43
DREAMT (97–98 nights, wrist wearable + PSG)oximetry control (O) on the E4 wrist pulsewithin ±0.05 of its Challenge blind 0.5730.412−0.16: outside the band; a wrist pulse estimate, not an oximeter's36
DREAMTECG net (E) · ECG + breathing net (R)within ±0.05 of the pool CV − 0.120.500 · 0.546no fall with AHI (E 0.486 / 0.516 / 0.515, R 0.522 / 0.576 / 0.568 by tertile)36
DREAMTformula (F) · formula with wrist adapters (F2w)within ±0.05 of its Challenge blind; F ≥ 0.45 would be wearable-grade0.222 · 0.302below the band; no wearable-grade formula36
DREAMTwearable-only net (W1: PPG pulse + motion + pulse dynamics, no SpO₂)≥ 0.45 wearable-grade · 0.35–0.45 the wrist costs the difference · < 0.35 unusable; expected 0.38–0.480.414 (0.446)middle band: the wrist costs the difference45
MESA + CFS + eight STAGES clinics (679 fold-0 nights)oximetry net on the PPG-derived pulse (W0)W0 − device pulse within ±0.02 as good · −0.02 to −0.06 the detector costs that much; expected −0.01 to −0.040.639 (0.707); paired on 456 MESA + CFS nights 0.729 vs 0.691+0.038 (CI not recorded): the waveform pulse is not worse than the device's rate45
Dreem DOD-O (56 nights, five-scorer consensus)ECG netconsensus − single-scorer > +0.05 / ±0.05 / < −0.05; expected +0.02 to +0.060.681 (0.739); per-night median 0.693, p10 0.534, none under 0.2+0.143 against Challenge's 0.538. That reference is the in-pool CV row (no blind H1 arm), so the difference holds the consensus and the population together44
nine STAGES sites, LOCKED (880 nights)the final recipe, one runto be written into the brief, with the recipe hash, before releasePENDING (v53)cross-site claim only: the nine sites were consulted once, in §43, on pre-§46 data, so they are not unseen (§52.6)52.6
third-party corpus (external)stackto be stated before the runPENDING—

The §46 rework. An audit of every cohort's format against every tool found label, motion and posture inconsistencies, so every line was re-run on corrected data under a written protocol (brief §46). Its numbers are new data. They are reported beside the older ones, never pooled with them: on the same nights the ECG + breathing net moved −0.0067 [−0.0076, −0.0058] against v35 and the wrist net −0.0046 [−0.024, +0.015] against v40. A pre-stated reproduction (v49) re-extracted 20 MESA nights and re-ran two fold-0 arms from the snapshot code. Features were byte-identical and the posteriors identical (max |Δ| 0), so it passed. Challenge stayed blind in every v46 line (a control with it in the training pool, §49, is not for publication).

Table 6. The §46 re-run, every line (brief §§46–48; lab-cache/v46-reads.txt, v48-reads.txt). Pooled argmax κ4 over the pool out-of-fold and the blind cohorts together, then per cohort; Challenge and DREAMT are blind (fold-ensembled). DREAMT's pulse for the oximetry lines is the E4 wrist rate. Ship bands for a formula, on blind κ (owner 2026-10-03): ≥ 0.50 ships · 0.42–0.50 publishes with the gap · < 0.42 fails.
linelearnerinputsκ4 (nights)ChallengeDREAMTSHHS-1MESAMrOSbrief §
ECGnet R0ECG HRV + its deltas0.622 (15 784)0.5470.5050.6380.6850.55446
ECGnet R1R0 + breathing + posture0.7020.5740.5470.6830.7440.68946
ECGnet R2R1 without posture0.7010.5890.5430.6830.7440.68446
ECGnet R1aR1 + crop augmentation0.7080.5860.5560.6900.7480.69246
ECGformula FEECG + breathing terms0.4380.2520.2630.4270.4860.41846
oximetrynet OSpO₂ + pulse0.705 (15 777)0.5730.4280.6770.7350.72546
oximetryformula F (v32 lineage, predicted adapters)oxy1 + pdx0.5810.3740.2420.5510.6060.60446
oximetryformula, rank-normalised terms (N2, fold 0)oxy1 + pdx0.562 (4 022)0.382—0.5610.6170.61447
wristnet W1PPG pulse + motion + pulse dynamics, no SpO₂0.658 (3 008)—0.409—0.709—46
wristnet T1 (ECG-pretrained HRV, fine-tuned on PPG)PPG HRV0.646 (3 073)—0.318—0.697—48
PPGformula P1SpO₂ + PPG pulse terms0.535 (2 125)—0.276—0.539—46
PPGformula P0PPG pulse terms only0.488—0.216—0.492—46
oximetryformula + knots · coupling · worst-cohort fitting (v51)oxy1 + pdxPENDING50

On corrected data the nets hold their place: oximetry 0.705 and ECG + breathing 0.702 over all nights, and both at about 0.57 on blind Challenge. Posture adds nothing (+0.0009), so the ECG line drops it. No formula passes even the lowest ship band blind. The oximetry formula reads 0.374 on Challenge and 0.242 on DREAMT, and the PPG formulas 0.22–0.28 on DREAMT. Ranking each term within its night (N2) gains +0.014 in the pool and on Challenge, and was adopted. The pre-§46 formula's blind 0.392–0.407 (Table 2) is not comparable: it is the same cohort read on different data.

Re-scored 2026-11-25: every line of Table 6, from the saved posteriors.

Table 6 was read from lab-cache/v46-reads.txt, which git never held. The scorer behind that readout is re-runnable, so every line of the table was scored again over the same saved posteriors, and the numbers below are that run's own output. It re-scored CLAIM oximArmsReScored = 11 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#claims/armsReScored arms, and CLAIM oximArmsReproducing = 9 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#claims/armsReproducingThePublishedLine arms reproduce the October readout to every digit it prints, pooled and per cohort: the oximetry net at CLAIM oximNetKappa4 = 0.705 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/O/kappa4 kappa over CLAIM oximNetNights = 15777 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/O/nights nights, with CLAIM oximNetBlindChallenge = 0.573 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/O/byCohort/challenge/kappa4 kappa on blind Challenge; the ECG + breathing net at CLAIM ecgNetKappa4 = 0.702 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/R1/kappa4 kappa and its no-posture twin at CLAIM ecgNetNoPostureKappa4 = 0.701 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/R2/kappa4 kappa; the ECG formula at CLAIM ecgFormulaKappa4 = 0.438 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/FEu/kappa4 kappa; the oximetry formula at CLAIM oximFormulaKappa4 = 0.581 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/Fu/kappa4 kappa with CLAIM oximFormulaBlindChallenge = 0.374 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/Fu/byCohort/challenge/kappa4 kappa blind, under the lowest ship band of 0.42; and the PPG formulas at CLAIM ppgFormulaP1Kappa4 = 0.535 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/P1u/kappa4 kappa and CLAIM ppgFormulaP0Kappa4 = 0.488 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/P0u/kappa4 kappa.

Two arms no longer reproduce, and the reason is absence. The wrist-only nets W1 and W1a read CLAIM wristNetKappa4 = 0.662 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/W1/kappa4 kappa and CLAIM wristNetCropKappa4 = 0.656 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/W1a/kappa4 kappa today, against the CLAIM wristNetKappa4Published = 0.658 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/W1/published/kappa4 kappa and 0.652 of the row above. The cause is not a method change: CLAIM wristNightsLost = 44 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/W1/nightsLostSincePublished nights of the 3 008 posterior files are absent from the tree, every one of them in the STAGES STNF clinic, which falls to CLAIM wristStnfNights = 369 FROM analysis/published-numbers/oximeter-sleep-staging-2026-11-25.json#result/arms/W1/byCohort/stnf/nights nights from the 413 the run scored. Both numbers stand side by side and neither is corrected: a re-score over fewer nights is a different population, not a better estimate of the same one. The two W1 figures of Table 6 and of §2 are therefore the October run's, and this paragraph is the only place a wrist κ binds to a record.

The nine cohorts are governed research data, so the posterior tree is not committed and no night is named here; the record carries pooled and per-cohort aggregates only, with the scorer's own digest beside them. A re-score can therefore flag that record and never clear it in CI. Table 6's DREAMT column for the ECG lines is scored separately from these eleven arms and is not re-scored here.

4. Discussion

(i) Where the gap lives. The control beats the stack by 0.15 pooled and 0.18 blind. The oracle of §32 locates most of it: with each night's own intercepts and per-term slopes the stack reaches 0.616, within 0.1 of the control, and its 9 % of failed nights (κ < 0.2) vanish. The three-class readout (§38a) says the remaining errors are not dominated by one boundary — the gain from collapsing light and deep is the same +0.08–0.09 on every model, as in Korkalainen et al. (2020).

(ii) What label-free calibration recovers. A second formula predicting each night's adapters from its label-free statistics recovers +0.041 of the oracle's +0.25 on the full basis (v32 F2), inside its pre-stated +0.03 to +0.08; on the pre-§46 data that put the stack at 0.407 on blind Challenge, above the 0.390 the proprietary comparator reports on its own sealed set, though still under the lowest ship band. The rest is not reachable label-free: the retrofit diagnostic on a 52-term basis read only 14 % (§40); the same person's adapter from a visit years earlier is worse than none (§41); and a user's bed and wake times reach +0.03 at most (§42). Distillation from the control lost twice before that (§15, §19). The calibration is a this-night quantity that only labels on the night supply. The sequence control already reads the whole night (a bidirectional GRU over the full recording) and sits at 0.711, the lower edge of the 0.726–0.779 that Vaquerizo-Villar et al. (2025) report with a 12-hour U-Net on the same two signals; the remaining gap to that result is small and not an architecture-class difference, and more nights alone do not close it (+0.009 for +50 %, §30). For the formula the gap to the control is this calibration; for the control the published band is within reach of volume, tuning and the padded 12-hour input.

(iii) Terms, not capacity. The stack's long plateau at 0.49–0.50 ended when the pulse-dynamics bases were added (+0.075 against a pre-stated +0.005 to +0.02), while the control gained +0.005 from the same bases. A ceiling the control does not share is a feature problem. The bases did not make the formula shippable: its blind κ stayed under the lowest ship band (0.42) before the rework, and on the corrected data it is 0.374 on Challenge and 0.242 on DREAMT (Table 6).

(iv) Site, not cohort. Holding out an NSRR cohort costs 0.006–0.026 (0.045 for the 1990s SHHS-1), reproducing the published "< 3 %" leave-one-cohort-out drop; the Challenge gap is 0.14, the same drop Sridhar et al. (2020) crossed (0.66 → 0.55). STAGES' thirteen clinics (§43) answered whether sister sites repair it: they do not. The control scored 0.533 blind over STAGES, and training on the other twelve clinics moved a held-out clinic by −0.018 to +0.018. Two clinics (STLK, STNF) carry the deficit, and a 0–29 s scoring-grid offset at STNF is not the cause (§52.8). The shift is per clinic: device, scorers or population. A five-scorer consensus reference reads the ECG net at 0.681 (DOD-O, §44), so part of every single-scorer blind number is the reference's own noise.

(v) What can ship. The stack's coefficients are results of the analysis and publishable under the NSRR agreement; the control's weights are trained on NSRR data and remain a user-loaded, unshipped artefact. For a night without a PSG oximeter (§§45–48): the pulse rate derived from the PPG waveform is not worse than the device's own rate (+0.038 paired). A wearable-only net reaches 0.658 in the pool but 0.41 on DREAMT's wrist nights, in the band where the wrist costs the difference. Transfer from ECG pre-training does not close that gap (+0.015, CI including 0). On the §46 data no formula yet passes a ship band blind, which is what v51's three switches and the v52 rebuild are for.

5. Reproducibility

# features (one tag per feature set; a changed layout never mixes with an older cache)
node tools/stage-lab.mjs features --harmonize --blocks spo2,pulse,motion --tag oxy1 --cohort <c> --dir <dir> --cache <cache> --workers 4
# trees and control on identical subject-grouped folds
node tools/stage-lab.mjs bench --cache <cache> --cohorts <ten> --features oxy1 --group-subjects --model gbdt --fold <f>
python seqnet.py --cache <cache> --cohorts <ten> --features oxy1 --group-subjects --fold <f> --save-proba <dir>
# literature stack (label-fitted, signed, distilled, bridge) and the residual search
python litstack.py --cache <cache> --cohorts <ten> --features oxy1 --group-subjects --fold <f> [--signed] [--distill <dir>] [--bridge]
python symreg.py --cache <cache> --control <dir> --stack <dir> --out <dir>
# v31: pulse-dynamics bases; v37F: night-level constants; v40: pulse from the PPG waveform
node tools/stage-lab.mjs features --harmonize --blocks pdx --tag pdx --cohort <c> --dir <dir> --cache <cache>
node tools/stage-lab.mjs features --blocks nightlevel --tag nl --cohort <c> --dir <dir> --cache <cache>
node tools/stage-lab.mjs features --harmonize --blocks spo2,pulse,motion --tag oxy1p --pulse-source ppg --cohort <c> --dir <dir> --cache <cache>
python litstack.py --cache <cache> --cohorts <nine>,challenge --features oxy1+pdx --stride 32 --extra-terms pdx.pr,pdx.spo2,pdx.x,pdx.q,pdx.t --group-subjects --fold <f>
# leave-one-cohort-out and the three-class readout
python seqnet.py --cache <cache> --cohorts <eight> --train-cohorts <eight> --test-cohorts <held-out> --features oxy1 --fold 0 --save-proba <dir>
python threeclass.py <cache> <proba-dir> <tag>

6. Sample size & statistical power

With 14 695 nights (≈ 14 million epochs) the night-bootstrap 95 % CI on pooled κ is ±0.004, and a paired difference between two models on the same nights resolves to ±0.001 (measured: +0.0093 [+0.0083, +0.0103], brief §30), so any difference ≥ 0.01 between learners on the same folds is resolvable; the pre-stated reading rules use 0.01 as the smallest difference worth a claim. The blind cohorts (994 and 127 nights) resolve ≈ ±0.015 and ±0.04 respectively; DREAMT (97–100 nights) and DOD-O (56) resolve no better than ±0.04, so on them a paired difference under about 0.03 is a CI through zero, as in §§46–48. From v51 on, CIs are by subject-cluster bootstrap (§52.4), wider than the night bootstrap where subjects contribute several nights.

References

  1. Vaquerizo-Villar F, et al. An explainable deep learning approach for sleep staging in sleep apnea patients across all age subgroups from pulse oximetry signals. Engineering Applications of Artificial Intelligence. 2025;162:112562. doi:10.1016/j.engappai.2025.112562
  2. Sridhar N, et al. Deep learning for automated sleep staging using instantaneous heart rate. npj Digital Medicine. 2020;3:106. doi:10.1038/s41746-020-0291-x
  3. Krauss P, et al. Incorporating respiratory signals for machine learning-based multimodal sleep stage classification: a large-scale benchmark study with actigraphy and heart rate variability. SLEEP. 2025;48(9):zsaf091. doi:10.1093/sleep/zsaf091
  4. Khalighi S, et al. ISRUC-Sleep: a comprehensive public dataset for sleep researchers. Computer Methods and Programs in Biomedicine. 2016;124:180–192. doi:10.1016/j.cmpb.2015.10.013
  5. Pan J, Tompkins WJ. A real-time QRS detection algorithm. IEEE Transactions on Biomedical Engineering. 1985;32(3):230–236. doi:10.1109/TBME.1985.325532
  6. Redmond SJ, Heneghan C. Cardiorespiratory-based sleep staging in subjects with obstructive sleep apnea. IEEE Transactions on Biomedical Engineering. 2006;53(3):485–496. doi:10.1109/TBME.2005.869773
  7. Cole RJ, Kripke DF, Gruen W, Mullaney DJ, Gillin JC. Automatic sleep/wake identification from wrist activity. Sleep. 1992;15(5):461–469. doi:10.1093/sleep/15.5.461
  8. Sadeh A, Sharkey KM, Carskadon MA. Activity-based sleep-wake identification: an empirical test of methodological issues. Sleep. 1994;17(3):201–207. doi:10.1093/sleep/17.3.201
  9. Tu Z (“Zhuowen Tu” in Crossref’s single family field), Bai X. Auto-context and its application to high-level vision tasks and 3D brain image segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence. 2010;32(10):1744–1757. doi:10.1109/TPAMI.2009.186
  10. Lafferty J, McCallum A, Pereira F. Conditional random fields: probabilistic models for segmenting and labeling sequence data. Proceedings of the 18th International Conference on Machine Learning (ICML). 2001:282–289.
  11. Potts RB. Some generalized order-disorder transformations. Mathematical Proceedings of the Cambridge Philosophical Society. 1952;48(1):106–109. doi:10.1017/S0305004100027419
  12. Rabiner LR. A tutorial on hidden Markov models and selected applications in speech recognition. Proceedings of the IEEE. 1989;77(2):257–286. doi:10.1109/5.18626
  13. Friedman JH. Greedy function approximation: a gradient boosting machine. The Annals of Statistics. 2001;29(5):1189–1232. doi:10.1214/aos/1013203451
  14. Hinton G, Vinyals O, Dean J. Distilling the knowledge in a neural network. arXiv:1503.02531. 2015.
  15. Borbély AA. A two process model of sleep regulation. Human Neurobiology. 1982;1(3):195–204.
  16. McCarley RW, Hobson JA. Neuronal excitability modulation over the sleep cycle: a structural and mathematical model. Science. 1975;189(4196):58–60. doi:10.1126/science.1135627
  17. Lo CC, Amaral LAN, Havlin S, Ivanov PCh, Penzel T, Peter JH, Stanley HE. Dynamics of sleep-wake transitions during sleep. Europhysics Letters. 2002;57(5):625–631. (DOI omitted: the citation gate's ≥3-letter surname floor cannot match "Lo" and Crossref offers no alias; resolve via EPL 57:625.)
  18. Cohen J. A coefficient of agreement for nominal scales. Educational and Psychological Measurement. 1960;20(1):37–46. doi:10.1177/001316446002000104
  19. Elgendi M. Fast QRS detection with an optimized knowledge-based method: evaluation on 11 standard ECG databases. PLoS ONE. 2013;8(9):e73557. doi:10.1371/journal.pone.0073557
  20. Thomas RJ, Mietus JE, Peng CK, Goldberger AL. An electrocardiogram-based technique to assess cardiopulmonary coupling during sleep. Sleep. 2005;28(9):1151–1161. doi:10.1093/sleep/28.9.1151
  21. Kotzen K, Charlton PH, Salabi S, Amar L, Landesberg A, Behar JA. SleepPPG-Net: a deep learning algorithm for robust sleep staging from continuous photoplethysmography. IEEE Journal of Biomedical and Health Informatics. 2023;27(2):924–932. doi:10.1109/JBHI.2022.3225363
  22. Attia S, Shani Hershkovich R, Tabakhov A, Ang A, Oksenberg A, Tauman R, Behar JA. SleepPPG-Net2: deep learning generalization for sleep staging from photoplethysmography. Physiological Measurement. 2025;46(12). doi:10.1088/1361-6579/ae1a34
  23. Radha M, Fonseca P, Moreau A, et al. A deep transfer learning approach for wearable sleep stage classification with photoplethysmography. npj Digital Medicine. 2021;4:135. doi:10.1038/s41746-021-00510-8
  24. Ganglberger W, Nasiri S, Sun H, Kim S, Shin C, Westover MB, Thomas RJ. Refining sleep staging accuracy: transfer learning coupled with scorability models. Sleep. 2024;47(11):zsae202. doi:10.1093/sleep/zsae202
  25. Rosenberg RS, Van Hout S. The American Academy of Sleep Medicine inter-scorer reliability program: sleep stage scoring. Journal of Clinical Sleep Medicine. 2013;9(1):81–87. doi:10.5664/jcsm.2350
  26. Danker-Hopfe H, Anderer P, Zeitlhofer J, et al. Interrater reliability for sleep scoring according to the Rechtschaffen & Kales and the new AASM standard. Journal of Sleep Research. 2009;18(1):74–84. doi:10.1111/j.1365-2869.2008.00700.x
  27. Berry RB, Budhiraja R, Gottlieb DJ, et al. Rules for scoring respiratory events in sleep: update of the 2007 AASM Manual for the Scoring of Sleep and Associated Events. Journal of Clinical Sleep Medicine. 2012;8(5):597–619. doi:10.5664/jcsm.2172
  28. Terrill PI. A review of approaches for analysing obstructive sleep apnoea-related patterns in pulse oximetry data. Respirology. 2020;25(5):475–485. doi:10.1111/resp.13635
  29. Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology. Heart rate variability: standards of measurement, physiological interpretation and clinical use. Circulation. 1996;93(5):1043–1065. doi:10.1161/01.CIR.93.5.1043
  30. Data acknowledgement (NSRR data-use agreement §16). This work used data from the National Sleep Research Resource: NSRR R24 HL114473: NHLBI National Sleep Research Resource. The fitted set includes Sleep Heart Health Study (SHHS1 and SHHS2) polysomnography, obtained through sleepdata.org under an approved data-use agreement; aggregate statistics only are reported and no record-level data is redistributed here.
  31. Quan SF, Howard BV, Iber C, Kiley JP, Nieto FJ, O'Connor GT, Rapoport DM, Redline S, Robbins J, Samet JM, Wahl PW. The Sleep Heart Health Study: design, rationale, and methods. Sleep. 1997;20(12):1077–85. doi:10.1093/sleep/20.12.1077
  32. Zhang GQ, Cui L, Mueller R, Tao S, Kim M, Rueschman M, Mariani S, Mobley D, Redline S. The National Sleep Research Resource: towards a sleep data commons. J Am Med Inform Assoc. 2018;25(10):1351–1358. doi:10.1093/jamia/ocy064
  33. Korkalainen H, et al. Deep learning enables sleep staging from photoplethysmogram for patients with suspected sleep apnea. Sleep. 2020;43(11):zsaa098. doi:10.1093/sleep/zsaa098
  34. Sun H, et al. Sleep staging from electrocardiography and respiration with deep learning. Sleep. 2020;43(7):zsz306. doi:10.1093/sleep/zsz306
  35. Topalidis P, et al. From pulses to sleep stages: towards optimized sleep classification using heart-rate variability. Sensors. 2023;23(22):9077. doi:10.3390/s23229077
  36. Schipper F, et al. Overnight sleep staging using chest-worn accelerometry. Sensors. 2024;24(17):5717. doi:10.3390/s24175717
  37. Dreem Open Datasets DOD-O / DOD-H (Zenodo record 15900394, MIT). (DOI omitted pending ledger verification.)

Supplement S1 (beat-detector validation on MIT-BIH, SLPDB, NSRDB) is gated by the owner's P5 ruling and is not reproduced here. Published 2026-10-31 on the owner's decision, ahead of the external blind run; the locked cross-site run (v53) and the external third-party blind run will be added when they land.

T © 2026 Michal Planicka ·Tepna ·Apache-2.0 ·◈ Asheville, NC ·not a medical device
v2.37.0