A sensor far simpler than a full sleep-lab study, such as a single chest ECG lead or a mattress vibration pad, can be worn or used every night. That is the main reason to build it: it could track how a person's sleep changes over months and years, which a one-night lab study cannot do. The validation of these surrogates, however, only asks whether they agree with the lab study on a given night. A model can match experts on single nights and still be a poor instrument for measuring change. Suppose its errors differ from one visit to the next, or suppose it uses the patient's age to guess how much deep sleep they "should" have. Then the trend it reports over five years may be partly a trend in its own mistakes, or simply the fact that the patient got older.
We propose to measure this directly. We will take a locked, externally trained ECG sleep-staging model and test it on people who had two full lab studies years apart, in cohorts it never saw during training. We then ask whether its change between visits (in deep-sleep minutes, REM share, wake after sleep onset, and sleep-fragmentation entropy) agrees with the change measured by the lab studies. We also measure how much of that predicted change is driven by the age input rather than by the signal. Finally, we test one targeted fix: training on the difference between a person's two nights. The contribution is a new unit of external validation, change agreement instead of night agreement, together with a concrete account of when and why the two diverge.
Core Claim
Single-night agreement does not guarantee trajectory validity. Let $e_1$ and $e_2$ be a surrogate's errors on one summary quantity (say N3 minutes) at visits 1 and 2. Let $\sigma_1, \sigma_2$ be their standard deviations across people, and let $\rho$ be the correlation of a person's error across visits. The error of the estimated change then has variance
$$ \mathrm{Var}(e_2 - e_1) = \sigma_1^2 + \sigma_2^2 - 2\rho\,\sigma_1\sigma_2 . $$
This is the standard variance of a difference. If surrogate errors are driven by stable traits of the person (body habitus, electrode position, chronic heart-rate-variability profile), $\rho$ is large and change is measured better than level. If errors are driven by night-specific noise or by changing inputs such as age or new-onset arrhythmia, $\rho$ is small or the errors are correlated with time. In that case change is measured worse than level, and it can be biased.
Our hypothesis has two parts. First, for hypnogram-derived quantities, the true five-year change is small relative to between-person spread. As a result, even a surrogate at expert-level single-night kappa will show markedly lower concordance on change than on level. Second, surrogates that ingest age will show a systematic "aging drift" in predicted N3 that the lab studies do not confirm to the same degree. Nobody in the file has measured either quantity, and both are cheap to measure.
Relation to Prior Work
The closest work links single-night measurements to long-term outcomes. SleepFM pre-trains a channel-agnostic model on about 65,000 participants' PSG and predicts 130 future diseases on the unseen SHHS cohort. It reports all-cause mortality C-index 0.84. Sleep Temporal Entropy applies Shannon entropy to stage-episode durations from expert-scored hypnograms and finds a U-shaped mortality association in SHHS: HR 1.97 for the lowest REM-entropy quintile. Both papers motivate our work, and both treat the baseline night as a static snapshot. Neither asks whether a machine-derived version of the biomarker tracks within-person change. We adopt sleep temporal entropy as one of our target quantities, but compute it from surrogate hypnograms and evaluate its change.
The surrogate models supply our method and our object of study. The cardiosomnography model combines a convolutional encoder with a bidirectional temporal network and a kappa-correlated loss. On single-lead ECG it reaches five-stage kappa 0.725 (N1 kappa only 0.37) and reports no drop on external MrOS. Its inputs include age and sex, and it excluded patients with significant arrhythmias. That makes it the natural model to audit for age-driven trends and for arrhythmia-onset failure between visits. SleepNetZero documents the cross-sectional sensor gap: kappa falls from 0.718 on NSRR to 0.589 on the BCG265 mattress dataset. Our question is orthogonal: how the gap behaves along time within a person, not across devices at one time.
Work on domain shift constrains the design. SleepDG aligns feature statistics across clinics, reaching 75.03% accuracy in leave-one-dataset-out testing. U-Sleep trains on around 20,000 recordings and reaches F1 0.76 on apnea patients. Both argue that multi-cohort training yields invariance, but they test only single nights and require EEG. All models are local argues for recurrent local validation, citing the Epic Sepsis Model's drop from 0.73–0.83 to 0.60–0.64 AUC. Its remedy assumes local labels, which a home surrogate by definition lacks at each follow-up. ShorT shows that encoding a demographic attribute is not the same as using it as a shortcut, and tests this on chest X-rays. We borrow its logic of separating "encodes age" from "relies on age", and implement it more directly in time series through counterfactual age inputs. Finally, YAIB finds that preprocessing and cohort definitions move external metrics more than architecture does. We therefore fix one preprocessing and artifact-rejection pipeline across all cohorts and report the fraction of recordings excluded at each visit.
Research Program
The derivation data follows the cohort mix of the cardiosomnography paper: CCSHS, CFS, CHAT, MESA, and WSC. SHHS and MrOS are held out entirely. The file describes CFS and WSC as longitudinal cohorts, so their repeat-visit pairs are the only place the model ever sees paired nights during training.
The external test set is SHHS participants with both a baseline exam (SHHS-1, described in the file) and the cohort's follow-up PSG exam. MrOS repeat-visit pairs will be used if available in NSRR. The exact paired sample sizes must be confirmed at data access; the file does not report them. Every test night comes with expert-scored stages from the same recording, so the lab-study change and the surrogate change are computed on identical nights.
We will build three things. The first is a reimplementation of the ECG stager, trained in two variants: with and without age and sex inputs. The second is a change-agreement evaluation protocol. For each night-level quantity (N3 minutes, REM share, wake after sleep onset, REM and N3 sleep temporal entropy), it reports four things: Lin's concordance of the change, Bland–Altman limits for the change, sign agreement on clinically meaningful change, and the estimated cross-visit error correlation $\rho$ from the equation above. The third is a difference-supervised fine-tuning objective, applied on the CFS/WSC training pairs. It adds to the per-epoch loss a penalty on the gap between the predicted and scored change in each soft night-level summary. Those summaries are sums of per-epoch stage probabilities, so the penalty is differentiable.
The protocol makes a separate measurement for the age question. At visit 2, we rerun the model with the visit-1 age substituted. The share of predicted change that disappears is the age-attributable trend, and we compare it with the change the lab scoring actually shows.
Baselines
The naive reference point is to assume no change: predict each person's visit-2 value as their visit-1 value. Any surrogate trajectory must beat this on concordance and error of the change to be worth recording. We also report the cohort-average change applied to everyone, which captures pure population aging.
The strongest existing method is the ECG stager of Jones and Itti, with its reported single-night five-stage kappa of 0.725 and no reported drop on MrOS. It is the strongest competitor because it already matches expert agreement on single nights and ingests age, which is exactly the property under test. We run it as a locked model with its published inputs, on our shared preprocessing, and give it the same training cohorts and hyperparameter search budget as our variants. For change agreement specifically, no reported result was found on Lacuna for any sleep surrogate, so every change metric in this study is new. Beating the baseline means a statistically higher change concordance on SHHS pairs for N3 minutes and REM entropy, without losing more than a small, pre-registered amount of single-night kappa.
A second comparison is SleepDG-style epoch- and sequence-level statistic alignment applied to the ECG model. It tests whether cross-site invariance training alone already yields stable cross-visit errors. It runs with the same data and search budget.
Two ablations isolate our ingredients. The first removes the age and sex inputs without difference supervision. The second adds difference supervision while keeping demographics. Together they separate how much of any gain comes from removing the shortcut and how much comes from training on paired nights.
Why not just…?
Why not just report single-night kappa at each visit and assume change follows? The variance equation shows that change error depends on $\rho$, which single-night metrics never measure. In addition, true five-year change in stage minutes is small relative to between-person spread, so a good level measure can still be a noisy change measure. The first experiment settles this directly by reporting level and change concordance side by side on the same nights. If both are high, that is itself a useful positive result, and the proposal's second half becomes moot.
Why not just drop age and sex from the model? This is a real threat to the method component, and it is included as an ablation for that reason. If demographic-free training closes the age-attributable trend and restores change concordance, the recommendation becomes simply "do not feed demographics to trajectory instruments." The contribution then rests on the evaluation protocol and on quantifying the size of the bias. However, removing inputs does not raise $\rho$ when errors are night-specific. Removing inputs also may not help when the ECG itself changes for non-sleep reasons, such as new atrial fibrillation or medication. Difference supervision targets those cases.
Why not just use the baseline lab night, as SleepFM and sleep temporal entropy already do? The baseline night is already highly prognostic (SleepFM reports mortality C-index 0.84), and change may add little. We test this honestly. In the subset of SHHS with outcome follow-up after the second exam, we measure the incremental C-index of change over baseline. We do this for both lab-scored and surrogate change. If lab-scored change adds nothing, surrogate change cannot either, and we will report that.
Why not just recalibrate locally at each follow-up, as recurrent local validation suggests? That proposal presumes local labels. A home surrogate's purpose is to avoid repeat lab studies, so per-visit recalibration against lab scoring defeats it. We include a variant that uses a single calibration night at baseline only. This shows whether one anchor night suffices to stabilize change estimates.
Proposed Experiments
The first decisive check compares level and change concordance on external SHHS pairs for the locked baseline stager. The prediction is a clear drop from level to change for N3 minutes and entropy measures, with the estimated $\rho$ explaining that drop.
The second check is the age-counterfactual test. The prediction is that a nonzero share of predicted N3 decline disappears when visit-1 age is held fixed. Here we compare the age-dependent drift in predicted N3 with the change in lab-scored N3.
The third check stratifies change error by arrhythmia status at visit 2. It tests whether new-onset rhythm disorders, which the original work excluded, produce spurious staging change.
The fourth check compares the two ablations and difference supervision on the same pairs. It also replicates the analysis on MrOS pairs if available, so that the conclusion does not rest on one external cohort.
The fifth check measures the clinical endpoint: whether surrogate change in REM and N3 entropy carries the same mortality and cardiovascular association as lab-scored change, beyond the baseline value.
Across all five checks, preprocessing is locked before any external data is touched, and exclusion rates are reported per visit. This follows YAIB's warning that pipeline choices can masquerade as model differences.
References
- A Multimodal Sleep Foundation Model for Disease Prediction
- Sleep Temporal Entropy as a Novel Digital Biomarker of Sleep Fragmentation for Cardiometabolic and Mortality Risk
- Electrocardiogram sleep staging on par with expert polysomnography
- SleepNetZero: Zero-Burden Zero-Shot Reliable Sleep Staging With Neural Networks Based on Ballistocardiograms
- Generalizable Sleep Staging via Multi-Level Domain Alignment
- U-Sleep: resilient high-frequency sleep staging
- All models are local: time to replace external validation with recurrent local validation
- Detecting shortcut learning for fair medical AI using shortcut testing
- Yet Another ICU Benchmark: A Flexible Multi-Center Framework for Clinical ML