Monitoring the Clinical Metric, Not the Accuracy: Smoothness Checks for Deployed Models

Many methods for handling data that changes over time rest on one assumption: the world drifts gradually, so this month's data looks like a small perturbation of last month's. Label-free performance monitors use this assumption to chain small, local corrections forward in time and estimate how accurate a deployed model still is without collecting new ground truth. In medicine, though, the quantity that matters is rarely accuracy. It is something like "how many septic patients did the alert miss" or "how many sustained abnormal vital-sign episodes did the summary omit." These domain-specific metrics focus on rare positives and fixed decision thresholds. A distribution shift that is small in feature space can move them a lot. A shift that is large in feature space, such as a lab-unit reformat, can leave them unchanged.

This note proposes to monitor the domain metric directly. We would treat smoothness as a claim to be checked in the space of that metric, not assumed in feature space. The monitor has two parts. It spends its small labeling budget where labels most reduce uncertainty in the clinical metric, not where the feature-space transport is most uncertain. It also runs an explicit test that declares a "concept shock" when sparse labels disagree with the smooth extrapolation by more than the monitor's own uncertainty. When that test fires, the monitor restarts. The core claim is testable. At a fixed label budget, a monitor built this way should track sepsis false-negative rates across MIMIC-IV years, including through a real coding discontinuity, with less error than accuracy-oriented monitors. It should also avoid the false alarms that feature-shift detectors raise on clinically irrelevant changes.

Why the smoothness assumption is metric-dependent

The closest existing method is Incremental Uncertainty-aware Performance Monitoring with Active Labeling Intervention (IUPM), and it supplies our main machinery. IUPM builds a chain of optimal transport maps from each time step to the previous one, which lets it carry labels forward from past data to present data. It then asks for fresh labels when the uncertainty of those maps grows. Optimal transport here means the cheapest way to move one set of data points onto another.

On synthetic Moons, IUPM reports a mean absolute error (MAE) of about 0.08 in estimating accuracy. Confidence heuristics score above 0.32 on the same task. IUPM also needs 60–70% fewer labels to restore tracking. But IUPM targets accuracy, and its label trigger is driven by transport uncertainty in feature space.

The gap is visible from a one-line argument. Suppose consecutive distributions differ by total variation $\delta_t$, the largest difference in probability they assign to any event. The joint probability of (score above threshold $\tau$, true label positive) then moves by at most $\delta_t$. Recall divides that probability by the prevalence $\pi_t$ of positives. The recall change is therefore bounded roughly by

$$|R_{t+1} - R_t| \lesssim \frac{2\,\delta_t}{\pi_t},$$

where $R_t$ is recall at the fixed alert threshold at time $t$. Accuracy, by contrast, moves by at most about $\delta_t$. For a condition with 10% prevalence, the same "smooth" feature drift permits a roughly twentyfold larger swing in the clinical metric. Uncertainty accumulated along a transport chain is amplified by the same factor.

This is why Evaluation of domain generalization and adaptation on improving model robustness to temporal dataset shift in clinical medicine can report something that sounds modest in generic terms and serious in clinical terms. It evaluates domain generalization methods on MIMIC-IV split into 3-year bins. A maximum AUROC drop of 0.090 for sepsis there means one additional false negative for every 11 sepsis patients. That paper motivates our target metric. It does not attempt label-efficient monitoring.

Two further lines of work constrain the design. Temporal Generalization: A Reality Check tests methods that extrapolate model weights forward along their past trajectory. They lose to simply deploying the most recent checkpoint, because neural network weights are not identifiable across time. We therefore never extrapolate weights. We only estimate a scalar metric trajectory and use it to decide when to act.

A Causal Framework for Mitigating Data Shifts in Healthcare argues conceptually that clinical shifts are often policy or definition changes, which are discontinuous by nature. It offers no detection algorithm. Our shock test is one concrete answer to that paper's roadmap.

On the evaluation side, Evaluating Progress in Automatic Chest X-Ray Radiology Report Generation and Benchmarking LLM Summaries of Multimodal Clinical Time Series for Remote Monitoring show that generic scores hide clinically catastrophic errors. The first introduces RadGraph F1 and RadCliQ. The second shows event-based recall exposing a "fluency illusion," where fluent summaries omit dangerous events. Both evaluate static test sets and never ask how their metrics evolve under deployment drift. We borrow their lesson that the metric must be the domain one, and apply it to the monitoring problem.

Research Program

The monitor takes three inputs: a frozen deployed model, a stream of unlabeled data arriving in time steps, and a domain metric $M$. We handle recall at a fixed alert threshold and false negatives per 100 positives. A worst-subgroup recall variant covers other operating-point metrics.

At each step the monitor does three things. First, it propagates labeled anchor points forward with IUPM's local transport chain and computes a plug-in estimate $\hat M_t$ together with a bootstrap uncertainty band.

Second, it allocates the label budget by metric influence. Candidate points are scored by how much a label on them would shrink the variance of $\hat M_t$. For recall this concentrates labels on points predicted near or below threshold whose transported label is uncertain between positive and negative, because those points determine missed cases. IUPM instead spreads labels wherever transport uncertainty is high.

Third, it runs the shock test. The few acquired labels give a direct estimate of $M_t$, and the monitor compares it with the chain's prediction. If the gap exceeds the combined uncertainty for two consecutive checks, the monitor declares a break and stops trusting the chain. It re-anchors on the newly labeled data and restarts. The two-check rule controls false alarms; we calibrate it on stationary pre-shift steps.

The study has three parts. The first verifies the amplification bound empirically. We plot chain-estimation error against $1/\pi_t$ as class imbalance is varied. The second compares monitors on estimating the metric trajectory. The third asks whether retraining triggered by the monitor improves the clinical metric over fixed-schedule policies at equal labeling and compute cost. Code for recent-checkpoint and downscaling baselines comes from divyam3897/TG.

Data and shocks

We use three testbeds.

The first is Rotated 2-Moons, used by Koodos, CODA and IUPM, modified in two ways. We make the minority class rare, and we inject a discrete jump: a sudden rotation, or a sudden relabeling of a region. Because the true metric is known exactly at every step, this testbed checks both the bound and the shock test.

The second is MIMIC-IV under the chronological bins used by Wild-Time and Guo et al. Wild-Time is a multi-domain temporal shift benchmark whose MIMIC-IV mortality AUC falls from 0.90 in-distribution to 0.72 out-of-distribution. Its tasks are mortality and readmission, and Guo et al. add sepsis and invasive ventilation. MIMIC-IV hides exact dates inside 3-year groups, so the natural time resolution is coarse.

MIMIC-IV nevertheless records the U.S. transition from ICD-9 to ICD-10 diagnosis coding through the per-admission code version. That lets us split the 2014–2016 bin into pre- and post-transition sub-steps and treat the transition as a real definitional shock. It should matter most for code-derived labels such as sepsis.

The third testbed is semi-synthetic shocks on MIMIC-IV, which tests the claim in both directions. One type is outcome-relevant: we change the sepsis label definition mid-stream while features barely move. The other is outcome-irrelevant: we apply a unit or format change to several lab features, which moves feature distributions substantially while leaving the label mechanism intact. A good monitor should fire on the first and stay quiet on the second.

TIHM-1.5, the remote-monitoring dataset used by Shukla et al., is not a primary testbed. Its event labels are rule-derived and therefore free, so there is nothing for a monitor to save.

Baselines

The naive reference point assumes no change. It reports the domain metric measured on the last fully labeled window and holds it constant, while spending the same label budget uniformly at random each step to refresh the estimate. This is what a hospital auditing a random sample would do. It is the baseline any label-saving claim must beat.

The confidence heuristics, Average Confidence and Difference of Confidence, are the standard label-free monitors, adapted to the domain metric. We estimate recall from predicted probabilities among predicted and borderline positives. IUPM reports these above 0.32 MAE on Moons for accuracy. We expect them to fail more severely on rare-class recall, but we will measure that rather than assume it.

The strongest existing competitor is IUPM with its own uncertainty-triggered labeling, with its label transport used to compute our domain metric instead of accuracy. The only reported figure for it is about 0.08 MAE for accuracy estimation on synthetic Moons, from the IUPM paper. We found no reported result on Lacuna for IUPM, or any monitor, estimating a clinical recall or false-negative metric on MIMIC-IV. It is the strongest competitor because it already has transport chains and active labeling. The only differences are our allocation rule and our shock test.

Every method gets the same stream, the same deployed model, the same per-step label budget swept over several levels, and the same transport solver. IUPM's trigger threshold is tuned on the same pre-shift steps we use to calibrate our test.

Two ablations isolate our ingredients. The first keeps metric-influence allocation but removes the shock test. The second keeps the shock test but uses IUPM's allocation. We also include a feature-space change-point detector, a two-sample test on consecutive windows, as the natural alternative for detecting shocks.

Beating the baselines means two things. The first is lower time-averaged absolute error in the metric trajectory than IUPM-plug-in at equal budget, with non-overlapping bootstrap intervals across seeds and label budgets. This must hold on both real MIMIC-IV and the semi-synthetic streams. The second is a shock test that detects the injected definitional shock within two steps while raising fewer false alarms than the feature detector on the unit-change shock.

For the downstream question, the policies are retraining with ERM on all accumulated data at a fixed schedule, deploying the most recent checkpoint, and parameter downscaling. The reality-check paper found downscaling the only consistently safe option. We compare each against retraining triggered by our monitor, measuring false negatives per 100 septic patients at equal total labels.

Why not just…?

Why not just plug the clinical metric into IUPM and stop there? This is the most serious threat, and it is included as a baseline for that reason. The amplification bound predicts where it falls short. IUPM decides where to label based on uncertainty in feature transport. The recall estimate is dominated by the few positives near threshold, which may not be where transport is most uncertain. So IUPM should spend labels well for accuracy and poorly for recall, and the gap should grow as prevalence falls. If the rare-class sweep on Moons and the MIMIC-IV comparison show no difference between the two monitors, the allocation rule is not worth having. The contribution then shrinks to the shock test alone, and we would report exactly that.

Why not just retrain periodically on all data, since ERM is so hard to beat? Wild-Time and Guo et al. both find that aggregated ERM matches or beats invariance and adaptation methods. We do not propose a better learner. Periodic retraining still needs labels at every retraining, and it cannot report how many sepsis cases were missed between retrainings. It also does not know when a definition change has made old labels misleading. The downstream experiment measures whether monitor-triggered retraining matches periodic ERM's clinical metric with fewer labels. If it does not, periodic ERM with random audits is the better recommendation.

Why not just audit a random sample of cases each month? Random audits are unbiased and simple, and at large budgets they will win. Our claim is only about small budgets, where a random sample contains too few positives to estimate recall. With 10% prevalence and 50 labels, roughly 5 positives are expected. The naive baseline is swept across budgets precisely to locate the crossover. If random auditing is as good as our monitor at every budget a hospital would realistically fund, the method is not needed.

Why not just detect shocks from feature drift? Butler et al. argue, and our unit-change shock is built to test, that feature distance and clinical harm come apart. A lab reformat is a large feature shift with no clinical consequence. A label-definition change is a small feature shift with large consequence. A feature detector either misses the second or alarms on the first. The semi-synthetic pair decides this directly.

Decisive checks

Four results settle the proposal.

The first is on Rotated 2-Moons with a rare class. Chain-estimation error of the plug-in monitor should grow roughly in proportion to $1/\pi$, as the bound predicts, while our allocation flattens that growth. If the error does not grow with $1/\pi$, the motivating argument is wrong for practical drift.

The second is at the ICD-9 to ICD-10 split in MIMIC-IV. The estimated sepsis-recall trajectory should show a break that the shock test flags, while mortality, whose label does not depend on diagnosis coding, should show none. A flag on mortality would count as a false alarm against the method.

The third is the semi-synthetic pair. Firing on the definition change and staying silent on the unit change is the behavior no feature-space method can produce. Failing either half means the test is not reading the metric.

The fourth is downstream. Monitor-triggered retraining should reach the false-negative rate of periodic aggregated ERM with fewer total labels, and should do no worse than the recent-checkpoint and downscaling baselines. If only the first three checks succeed, the contribution is a better measurement tool rather than a better deployment policy, which is still useful but narrower.