Quiet Nights Are Not Exoneration: Intermittent-Fault Inference for Pre-Symptomatic Wearable Alerts

Smartwatches can flag an infection days before a person feels sick, because resting heart rate rises during the silent window when someone is already contagious but has no symptoms. The alerting rules that do this today reset their suspicion whenever one ordinary night comes in. These rules are cumulative sums and simple two-state rules that require a few elevated nights in a row. Engineers who diagnose flaky hardware and software learned long ago that this is the wrong logic. A component that fails intermittently produces normal outputs much of the time, so a passing test should lower suspicion, not erase it. We propose to treat each wearable user as a system under diagnosis. Infection is a fault that moves through ordered stages (exposed, pre-symptomatic, symptomatic, recovering). At each stage it shows up on a given night only with some learned probability. It competes with other explanations for an elevated night, namely a short stress or alcohol episode, or a device left in a drawer.

The same generative model also addresses a second problem. Deployed medical classifiers cannot see their own error rate, because outcome labels arrive late. The best label-free monitoring methods fail systematically when disease prevalence changes, which is exactly what happens during an epidemic wave. Our model carries an explicit infection-onset rate as a parameter. It can therefore re-estimate that rate from unlabeled streams and report how many of its current alerts are likely true. The two claims are tested separately. The first is that intermittency-aware, stage-ordered inference catches more infections before symptom onset at the same false-alarm burden. The second is that it tracks its own precision under prevalence shift where confidence-based estimators break.

Where the idea sits

The wearable line of work supplies the application, the data, and the gap. Pre-symptomatic detection of COVID-19 from smartwatch data followed 5,262 smartwatch users (32 COVID-positive with usable data). It showed deviations a median of four days before symptoms, but its online cumulative-sum detector flagged only 63% of cases at or before onset. The companion report Early Detection Of COVID-19 Using A Smartwatch reports 67% for the same kind of detector. It also documents the "drawer problem": people take the watch off when they feel ill. Real-time Alerting System for COVID-19 Using Wearable Data (NightSignal) is the strongest deployed system in the file. It uses overnight heart rate only and a state machine requiring two or more consecutive elevated nights. It reaches 78% sensitivity at or before symptom onset, a three-day median lead time, and roughly 87% specificity. It also reports two facts that motivate our design directly. COVID alert clusters lasted 4.3 days on average against 1.9 days for non-viral stressors, so duration carries information. Red alerts rose 1.4-fold over the holidays, so confounder shift is real and seasonal. None of these systems carries uncertainty across a normal night, models the ordered course of infection, or treats a missing night as evidence.

Intermittent fault diagnosis supplies the method. Diagnosing Multiple Persistent and Intermittent Faults extends classical model-based diagnosis with two quantities: a fault prior $p(c)$, and a probability $g(c)$ that a faulty component still behaves normally. The paper shows that intermittent faults need 10 to 20 times more observations to isolate than persistent ones. That finding constrains us: we should expect the benefit to show up as better-calibrated persistence of suspicion rather than instant detection. A New Bayesian Approach to Multiple Intermittent Fault Diagnosis (BARINEL) estimates per-candidate intermittency by maximum likelihood and ranks competing explanations by posterior probability. It beats earlier Bayesian policies in 20 of 24 real software cases. Both works assume a binary healthy/faulty state and stationary behavior; de Kleer's is explicitly restricted to stationary processes. We keep the idea that normal observations are noisy evidence. We change two things: the fault has ordered stages with stage-specific intermittency, and it evolves over time.

Ordinal modeling supplies the structural constraint. Recursively Conditional Gaussian for Ordinal Unsupervised Domain Adaptation chains class means so that each ordered class sits a positive step beyond the last. Poisson Ordinal Network for Gleason Group Estimation Using Bi-Parametric MRI forces unimodal outputs over ordered grades. OCL: Ordinal Contrastive Learning for Imputating Features with Progressive Labels shapes embeddings to mirror disease progression. All three apply ordering to static images or region summaries with a stage label per sample. We apply the chained-mean idea to a latent stage that must move forward in time and is never directly labeled, except through symptom-onset and test dates.

Label-free monitoring supplies the second evaluation target. Label-free estimation of clinically relevant performance metrics under distribution shifts extends confidence-based estimators (CBPE, ATC, DoC) to full confusion matrices on chest X-rays. It reports out-of-distribution accuracy-estimation error around 0.05 mean absolute error. It also finds that simulated prevalence shifts cause systematic failure of every estimator tested, including its own best one, CM-ATC. That negative result is what our explicit prevalence parameter is meant to overcome. No paper in the file connects intermittent-fault reasoning to physiological surveillance. No paper uses a generative staged model to monitor alert precision without labels.

Core Claim

Model each user's nights as observations from a hidden stage $z_t$. The stage takes values in baseline, exposed, pre-symptomatic, symptomatic, and recovering, plus two competing transient states: a behavioral stressor episode and device-off. Transitions within the infection chain only move forward. Stage-specific intermittency $g_k$ is the probability that a night in infection stage $k$ looks entirely normal. The nightly overnight heart-rate residual $x_t$ is then drawn as

$$p(x_t \mid z_t = k) = g_k \, \mathcal{N}(x_t; 0, \sigma_0^2) + (1 - g_k)\, \mathcal{N}(x_t; c_k, \sigma_k^2), \qquad c_k = c_{k-1} + \Delta_k,\ \Delta_k > 0,$$

where $\sigma_0^2$ is the user's personal baseline variance, and $c_k$ and $\sigma_k^2$ are the elevated-night mean and spread in stage $k$. The chained positive steps $\Delta_k$ impose the ordering from exposed to symptomatic, following the recursive-Gaussian construction. Recovery gets its own unconstrained mean. The stressor state has a short learned duration and its own elevation distribution. The device-off state has a wear probability that is allowed to differ by infection stage. This lets missing data during illness raise, rather than dilute, suspicion.

The quantity driving alerts is the filtered posterior that a user is in the pre-symptomatic or symptomatic stage. Under this emission, a normal night multiplies the infection odds by roughly $g_k$ divided by the stressor-or-baseline likelihood, instead of zeroing it. The model is pure intermittent-fault diagnosis carried into time. The claim is that this specific structure beats both the deployed heuristics and generic sequence models at a matched false-alarm rate. The structure has three ingredients: non-exonerating normal nights, forward-only ordered stages, and competing transient causes including informative missingness.

The second claim concerns the population onset hazard $\pi$, the nightly probability that a baseline user enters the exposed stage. Because $\pi$ is a parameter of the generative model, it can be re-fit on each new unlabeled window by expectation-maximization over the marginal likelihood of all users' streams. The model's estimate of alert precision in that window is then simply the mean infection posterior among currently alerted users. When prevalence moves, $\pi$ moves with it. A confidence-based estimator, by contrast, has no place to register the change.

Research Program

The first step is to obtain the de-identified overnight heart rate, step, wear, symptom-survey, and test-date data from the NightSignal cohort (3,246 participants, 68 positives, more than 100,000 survey annotations) and the Mishra cohorts. This requires a data-use agreement with the study teams; the file does not state that these data are public. If access fails, the program falls back to simulation calibrated to the published summary statistics, with the weaker claims that implies.

Parameters are fit by maximum likelihood. The $g_k$, $c_k$, $\Delta_k$, and transition rates are shared across users, as BARINEL shares intermittency across executions. The baseline is per user. Positives contribute partially observed stage paths, pinned by symptom-onset and test dates. Negatives constrain the baseline, stressor, and device-off states. The model is small, a few dozen shared parameters. That is deliberate, because 68 positives cannot support a large discriminative network.

The ordinal structure also yields an interpretable output that current systems lack: a posterior over stage, not just an alarm. This matters for the transmission side. The pre-symptomatic stage is the one where isolation prevents onward spread.

Baselines

The naive reference is a fixed single-night threshold on overnight heart-rate residual. It shows how much any temporal reasoning buys.

The strongest existing method is the NightSignal two-consecutive-night state machine from Real-time Alerting System for COVID-19 Using Wearable Data, which reports 78% sensitivity at or before symptom onset, a three-day median lead time, and about 87% specificity. We will reimplement it from the paper's description on the identical cohort splits. We will verify that our reimplementation roughly reproduces the published sensitivity before any comparison is made. The online cumulative-sum detector of Pre-symptomatic detection of COVID-19 from smartwatch data is a second published baseline (63% at or before onset reported there; 67% in Early Detection Of COVID-19 Using A Smartwatch).

The comparison is made at matched alert burden, measured in red alerts per healthy person-month, because every detector trades sensitivity against false alarms. Each method's single threshold or run-length is tuned on the same training folds with the same number of configurations. Beating NightSignal means higher pre-onset sensitivity at its own operating false-alarm rate, with a paired bootstrap over positive cases whose interval excludes zero. Given 68 positives, we will state in advance that only differences of roughly ten or more percentage points in sensitivity are likely to be resolvable. Smaller gains will be reported as inconclusive.

Four ablations isolate the proposal's ingredients. The first sets all $g_k$ to zero, which is the persistent-fault assumption where a normal night is exoneration. The second removes the ordering constraint and forward-only transitions, giving a generic hidden Markov model with the same number of states. The third deletes the stressor state. The fourth treats missing nights as ignorable rather than stage-dependent.

For precision monitoring, the baselines are CM-ATC from Label-free estimation of clinically relevant performance metrics under distribution shifts, applied to the model's own posteriors, and a classical expectation-maximization prior correction of a discriminative classifier's scores. The file reports around 0.05 mean absolute error for out-of-distribution accuracy estimation on chest X-rays and systematic failure under prevalence shift. It gives no number for wearable precision estimation (no reported result found on Lacuna for label-free alert-precision estimation on wearable cohorts). Beating these baselines means lower absolute error in estimated precision across a sweep of resampled prevalences.

Why not just…?

Why not just lengthen NightSignal's run requirement to three or four nights? Duration is the obvious lever, since COVID clusters averaged 4.3 days against 1.9 for stressors. A tuned run-length rule may capture much of our gain, and this is a real threat. The weakness of any run rule is that one normal night inside an infection resets the count. That is exactly the exoneration failure the intermittent-fault literature documents. Our experiment tunes run length as a free parameter at matched burden. If the tuned rule matches us, the honest conclusion is that duration alone suffices. The residual value of our model would then be limited to stage posteriors and precision monitoring.

Why not just fit a standard hidden Markov model or change-point detector? Our model is a constrained hidden Markov model, so the question is whether the constraints matter. With 68 positives, an unconstrained model with the same states can put its elevated state before its exposed state, or learn a stressor state that absorbs real infections. The ordering ablation answers this directly. If the unconstrained model does as well, the ordinal contribution is refuted.

Why not just train a recurrent network with an ordinal loss on the nightly sequences? The positive count is too small for a model with thousands of parameters. The ordinal losses in the file were demonstrated on hundreds to thousands of labeled images, not on dozens of event sequences. More importantly, a discriminative network has no prevalence parameter. Tracking precision would then require exactly the confidence-based estimators that the chest X-ray study found to fail under prevalence shift. We will still run a small gated recurrent network with a cumulative-threshold ordinal head as a discriminative baseline for detection.

Why not just correct a classifier's scores for label shift? Classical prior re-estimation is the strongest competitor to our second claim. It is not among the estimators tested in the chest X-ray study, so that study's negative result does not rule it out. Prior correction assumes the within-class signal distribution is fixed. Holiday stressors violate that assumption, because the non-infected class itself changes. Our model separates the stressor state from infection. We will test both methods on prevalence-only shifts and on combined prevalence-plus-holiday shifts. We expect parity on the former and an advantage only on the latter.

Proposed Experiments

The primary evaluation uses leave-cases-out cross-validation on the pooled wearable cohorts. Metrics are sensitivity at or before symptom onset at matched alert burden, median lead time, and the fraction of asymptomatic positives alerted. The last is the only one where NightSignal reports a count (8 of 10).

A temporal split approximates operational validation within the limits of retrospective data. Parameters are trained on the earlier months, and testing is done on later months including the holiday period. This checks whether the stressor state absorbs the 1.4-fold holiday surge without losing true cases.

For precision monitoring, we resample test windows to infection prevalences spanning an order of magnitude, following the simulated-prevalence protocol of the chest X-ray study. We report absolute error of estimated alert precision against the known truth for our re-fit hazard, CM-ATC, and prior correction.

A final experiment translates detection into transmission. We feed each detector's per-case alert times into a pre-symptomatic compartmental simulation (susceptible, exposed, pre-symptomatic, infectious, recovered) and compare the reduction in reproduction number. The simulation is only a bridge to utility, not evidence of clinical benefit. Real clinical utility would require a prospective randomized trial, which this work does not claim to deliver.

The decisive checks are three. First, the zero-intermittency ablation must lose pre-onset sensitivity at matched burden, or the central intermittent-fault claim fails. Second, the tuned run-length rule must fall short, or the method reduces to a duration heuristic. Third, the re-fit hazard must track precision under combined prevalence-and-holiday shift better than prior correction, or the monitoring claim fails.