Two Clocks for Prospective Validation of Rare-Event Clinical Models

When a hospital deploys a model that predicts a rare outcome, such as a hospital-acquired infection, the evidence that the model still works arrives only as fast as the outcome itself occurs. Tens of thousands of patient encounters may flow through the system, but the uncertainty in any outcome-based performance number shrinks roughly as one over the square root of the number of positive cases, not the number of encounters. Physicists who count rare events treat this as an explicit limit on what an experiment can claim. Clinical prospective validation mostly does not. Studies run for a fixed calendar window and report a single before/after comparison, with no statement of what size of degradation that window could have detected at all.

We propose to monitor a deployed model on two clocks. Much of the gap between retrospective and live performance comes from the data pipeline itself, for example a laboratory value that arrives late or a "static" field that differs between the research warehouse and the live feed. That component can be measured by scoring the same encounters through both pipelines. This paired comparison cancels most patient-to-patient noise, so it should resolve pipeline damage within weeks. The remaining part of the gap, real change in patients and clinical practice, is limited by event counts. For it we give event-indexed, anytime-valid bounds: confidence statements that remain correct no matter how often you check them. We also give a pre-deployment "feasibility horizon," the calendar time needed before a drop of a given size becomes distinguishable from counting noise. When that horizon is never reached, the study reports an upper limit on degradation rather than a vague "no drift detected."

Core Claim

The closest existing work is Mind the Performance Gap: Examining Dataset Shift During Prospective Validation. It deployed a C. difficile risk model on 26,864 encounters over 356 days. It used three data snapshots to split the AUROC change (0.778 retrospective to 0.767 prospective) into an infrastructure-shift loss of 0.016 and a temporal-shift gain of 0.005. Infrastructure shift mainly damaged ranking, and temporal shift mainly damaged calibration. That paper motivates this proposal and supplies its decomposition. It is, however, a single retrospective analysis performed after the year ended. It says nothing about when either component could have been detected, and it did not catch its own pipeline failures on 10 of 356 days as they happened.

Our claim is that the two components have different statistical sensitivity limits, so they should be monitored differently. The infrastructure component can be estimated from paired scores on identical encounters. Its variance is governed by how much the two pipelines disagree, not by how heterogeneous patients are, and part of it needs no outcome labels at all. The temporal component needs labels, and its precision is set by the positive-case count.

To make the feasibility horizon concrete, let $\lambda$ be the rate of positive cases per day, $\Delta$ the AUROC drop one wants to detect, and $\sigma_1$ the standard deviation contributed per positive case to the AUROC estimate. For rare outcomes, AUROC variance is dominated by the minority class, so $\sigma_1$ is roughly fixed once the number of negatives is large. Then the required number of positives and the corresponding calendar time are approximately

$$N_{+} \approx \left(\frac{z\,\sigma_1}{\Delta}\right)^2, \qquad T \approx \frac{N_{+}}{\lambda},$$

where $z$ is the critical value of the chosen sequential test. Anytime-valid tests have a larger $z$ than a single fixed-sample test.

For the paired infrastructure contrast, $\sigma_1$ is replaced by $\sigma_d$, the per-positive standard deviation of the difference in each positive case's ranking against the negatives under the two pipelines. We expect $\sigma_d \ll \sigma_1$ whenever the pipelines mostly agree. The ratio $(\sigma_1/\sigma_d)^2$ is therefore the speed-up the paired design buys. It is the quantity this project sets out to measure.

This framing also borrows the physics habit of separating real signal from fluctuation. A Telescope Array study of cosmic-ray arrival directions (INDICATIONS OF INTERMEDIATE-SCALE ANISOTROPY...) could not decide whether a sky hotspot was physical or a Poisson fluctuation below 5σ. A BES measurement of ψ(2S) decays (Branching fractions for psi(2S) -> gamma eta' and gamma eta) showed that roughly 2σ signals needed far more data before anyone could claim a discovery. The TRAPPIST ultra-cool dwarf survey (Global analysis of the TRAPPIST Ultra-Cool Dwarf Transit Survey) reported limits rather than point estimates because its sample was too small. We transplant this reporting discipline to deployed models. A weekly "AUROC fell by 0.03" alert built on three positive cases is the clinical analogue of a 2σ hotspot.

Research Program

The first component is the paired infrastructure monitor. For every encounter we compute the model score twice, once from the live operational feed and once from the warehouse record, the latter becoming available after the usual lag. Two quantities are tracked on the encounter clock.

The first quantity is fully label-free: the rate at which the two pipelines order randomly drawn pairs of encounters differently. It bounds the AUROC change only loosely, because positive–negative pairs make up a small fraction of all pairs. It is still a valid alarm that can fire within days. It is also the natural detector for whole-feed outages like the 10 failed days in the CDI deployment.

The second quantity is the paired AUROC difference. Each new positive case is ranked against all negatives under both pipelines, and we record the difference. We wrap this per-positive statistic in a likelihood-ratio confidence sequence, a running confidence interval that stays valid under continuous monitoring. The construction follows Likelihood Ratio Confidence Sets for Sequential Decision Making, which built such sets from Ville's inequality for bandit problems. That paper showed the sets adapt to Poisson-like noise far better than sub-Gaussian bounds, but it never applied them to evaluating a classifier. Adapting it here means defining the likelihood over bounded per-positive placement statistics rather than bandit rewards.

The second component is the event-clock temporal monitor. Here we compare live performance, computed on warehouse-quality inputs so that pipeline effects are removed, against the retrospective reference. Time is indexed by positive cases, not days. The monitor tracks AUROC and, because the CDI study found that temporal shift mainly hurt calibration, also a calibration statistic: the ratio of observed to expected events, which is directly a Poisson count comparison. The same likelihood-ratio construction applies.

Cross validation for rare events supports indexing time by positive cases. Its non-asymptotic risk bounds in rare regions scale with $n\alpha$, the expected number of rare-region samples, rather than with $n$. It also constrains our design. Its guarantees hold only for bounded losses and identically distributed data. Our monitored statistics (placement values, observed/expected counts) are bounded, so the bounds apply. We explicitly do not claim guarantees for cross-entropy-based monitoring, and we allow drift by testing a running null rather than assuming stationarity.

The third component is the planning tool. Before deployment, it takes an estimated event rate, a retrospective estimate of $\sigma_1$, and a pilot estimate of $\sigma_d$ from a short shadow run. It returns the feasibility horizon $T$ for each component and each target $\Delta$.

We will apply it to the case raised by International Validation of Echocardiographic Artificial Intelligence Amyloid Detection Algorithm. That study reported sensitivity 0.648 and specificity 0.982 retrospectively, on 574 cases and 979 controls, and explicitly left positive predictive value under real screening prevalence to prospective study. Combining those operating characteristics with a range of plausible screening prevalences, we will compute how many confirmed amyloidosis cases, and hence how many screened patients, a prospective study needs. This will show whether that study can resolve positive predictive value, or only bound it, within a realistic enrollment period.

Baselines

The naive reference point is what the CDI study did: deploy for a fixed calendar window and then run one unpaired comparison of retrospective against prospective AUROC with a standard (DeLong-style) confidence interval. We run it on exactly the same encounters and labels as our method, with the same window. We count our method as better if it reaches a correct decision about a planted degradation at least as reliably, but earlier.

The second baseline is repeated naive testing: the same unpaired test re-run weekly at the nominal 5% level. It is the common practice and the most direct analogue of chasing 2σ fluctuations. Our method must keep its false-alarm rate at the stated level on drift-free replays, where we expect this baseline's rate to rise well above nominal.

The strongest existing competitor is a classical group-sequential design with alpha spending: pre-planned interim looks with significance boundaries spread across them, standard in clinical trials. It is applied to the unpaired AUROC difference with looks placed on the event clock. This is the strongest fair competitor because it already gives valid repeated looks and good power. It receives the same data and the same number of looks, with its boundaries tuned on the same retrospective calibration split we use to tune ours.

To beat it, we must show earlier detection of infrastructure shift at matched false-alarm rate. That advantage should come from pairing, not from the sequential machinery. We do not expect to beat it on the temporal component. There we expect parity, and we will report parity if that is the result. For the size of the effect to be detected, the reference is the CDI study's reported infrastructure loss of 0.016 AUROC and total gap of 0.011 (Mind the Performance Gap). No time-to-detection result for any method was found on Lacuna, so these effect sizes, not a competing detection speed, set the bar.

The ablation that isolates the key ingredient is our full sequential monitor run on unpaired live-versus-retrospective scores. If this ablation detects infrastructure shift as fast as the paired version, the pairing claim is false. A second ablation replaces the likelihood-ratio confidence sequence with a Hoeffding-style sequential bound on otherwise identical statistics. It measures how much of any gain comes from adapting to the noise shape, which Likelihood Ratio Confidence Sets for Sequential Decision Making found to be substantial in Poisson settings.

Why not just…?

Why not just run the prospective study longer, or until a fixed number of encounters? Encounter counts are the wrong unit. Precision is set by positive cases, and the CDI deployment shows that a full year of fixed-window monitoring still missed outages in real time. Our planning tool makes this concrete by computing $T$ for the CDI event rate and for the amyloidosis prevalence range. If $T$ turns out short for realistic $\Delta$, the fixed window is adequate for that setting, and we will say so.

Why not just use group-sequential alpha spending, which clinical trials already use? This is the real threat, and on the outcome-dependent temporal component we expect it to perform about as well as our confidence sequence. If it matches, we will adopt it there. The proposal's contribution is not a new sequential test. It is the split into a paired, fast component and an event-limited, slow component, together with the feasibility horizon. The paired-versus-unpaired ablation, run under both sequential schemes, settles whether that split matters.

Why not just monitor input distributions for drift, which needs no labels? Input drift does not tell you whether performance changed or in which direction. In the CDI study, temporal shift slightly improved AUROC, so an input-drift alarm would have flagged a harmless change. Our label-free pair-flip statistic is different. It asks whether the model's own ranking differs between two pipelines on the same patients, and that is directly tied to AUROC. We will include a standard per-feature two-sample drift test as an additional comparison and report its false-alarm rate on replays where we plant input shifts that do not change performance.

Why not just update the model continuously with online learning? That answers a different question, adaptation rather than validation. A continuously changing model also makes "is the deployed model still valid?" harder to answer. The streaming-drift study When to Retrain after Drift found that incremental updates oscillate on high-variance early post-drift data, and that a sufficiency-gated retraining rule worked better. Its method assumes dense continuous dynamics and does not transfer to sparse binary outcomes. Our event-clock monitor can serve as the retraining gate that the rare-outcome setting lacks.

Decisive Experiments

The University of Michigan CDI data used in Mind the Performance Gap is not public. Unless we secure collaborator access to it, the primary testbed is a semi-synthetic replay built on An Extensive Data Processing Pipeline for MIMIC-IV. That pipeline provides rare-outcome tasks such as in-hospital and ICU mortality; it reports ICU-mortality AUROC of 0.87 for a hybrid LSTM and 0.67 for logistic regression on a kidney-disease cohort.

We treat the curated pipeline output as the "warehouse" view and construct a "live" view by injecting infrastructure faults modeled on the CDI study. These are delayed laboratory results, whole-feed outage days at the reported 10-in-356 frequency, and altered static fields such as body mass index and location. Separately, we inject temporal drift by resampling admissions across time periods and by planting calibration shifts. Each fault is tuned to produce known AUROC losses from 0.005 to 0.03, which brackets the reported 0.016. Event rates are subsampled to span common through very rare outcomes. Every method then runs on hundreds of independent replays.

The primary metric is the median number of days and of positive cases until a correct alarm, at a false-alarm rate of 5% or lower measured on fault-free replays. Secondary metrics are coverage of the reported upper limits and agreement between the planning tool's predicted horizon $T$ and the realized detection time. A further check is whether our live decomposition, run to the end of the window, recovers the after-the-fact three-snapshot decomposition.

The decisive results are as follows. If the paired monitor detects a 0.016 infrastructure loss with no more than a fifth of the positive cases the best unpaired sequential baseline needs, at matched false-alarm rate, the two-clock claim holds. If the speed-up is negligible, meaning the observed $\sigma_d$ is close to $\sigma_1$, the claim fails, and the useful remaining output is the planning tool. If the planning tool's predicted horizons miss realized detection times by more than a factor of two, the variance model behind it is wrong and must be revised.

Two further checks extend the work beyond MIMIC. On the German ICU alarm data in Developing a Scalable Annotation Method..., which records 13.5 million alarm starts with retrospective actionability labels, we test the label-free pair-flip monitor on a very high-volume stream where actionable events are a small minority. On the amyloidosis numbers we publish the feasibility horizon as a worked design calculation.