Does a Chest X-ray Triage Threshold Survive the Move to a New Hospital?

Image classifiers for chest X-rays are increasingly proposed as triage tools. The classifier clears studies it is confident are normal and sends uncertain ones to a radiologist, with a promised error rate among the cleared cases. Almost every claim about how much work such a tool saves comes from a simulation on one hospital's held-out images. The best-known cross-hospital evidence measures something else: how much a classifier's ranking quality drops when it is tested at another hospital. It does not measure whether the operating point a triage tool depends on still holds there. These are different failures. A model can keep a respectable ranking while its "clear this as normal" threshold, tuned at home, silently lets through two or three times the promised share of missed findings, because the new hospital has a different mix of sick patients, different scanners, and different labeling conventions.

This note proposes a retrospective, multi-hospital audit of convolutional triage policies, together with one simple repair. We take convolutional neural networks (image models built from small learned filters slid across the picture). We tune each one's deferral threshold at a home hospital to meet an error budget, then measure the error and the automation rate it actually achieves at three external hospitals. We then test whether the threshold can be re-set using only unlabeled images from the new site. Finally, we anchor the simulation in patient records: through the links between MIMIC-CXR images and MIMIC-IV hospital data, we ask whether the cases the triage policy wrongly clears belong to patients who were later intubated or died. Answering that turns an abstract error rate into a burden measured on real outcomes.

Core Claim

The claim has three parts. First, cross-hospital AUC drops understate how badly triage breaks: a model's error among cleared cases at a fixed home threshold can exceed its budget even when external AUC remains moderate. Second, much of this break comes from shifts in disease prevalence and labeling convention, not from the visual features alone. A large part of it can therefore be corrected without labels from the new site. Third, a triage error rate should be judged by who the missed patients are, and a linked retrospective cohort lets us do that.

The reason prevalence matters so much follows from a simple identity. Let $t$ be the threshold below which a study is auto-cleared. Let $F_1(t)$ and $F_0(t)$ be the fractions of truly positive and truly negative studies scoring below $t$, and let $\pi$ be the site's prevalence of the finding. The error rate among cleared cases is then

$$ \mathrm{err}(t) = \frac{\pi F_1(t)}{\pi F_1(t) + (1-\pi) F_0(t)}. $$

Even if the classifier's score distributions $F_1$ and $F_0$ were unchanged across hospitals, so that AUC was identical, a higher prevalence $\pi$ at the new site inflates the error among cleared cases. In practice $F_1$ and $F_0$ also move. The audit separates the two effects.

Research Program

The empirical base is the four-hospital setup of Can We Trust Deep Learning Based Diagnosis? The Impact of Domain Shift in Chest Radiograph Classification. That paper trained DenseNet-121 on each of ChestX-ray14, CheXpert, MIMIC-CXR, and PadChest, harmonized them to eight shared findings, and tested all-vs-all. It found every model is best at home, with the ChestX-ray14 model falling from mean AUC 0.83 internally to 0.68 on CheXpert. It also identified a "labeler effect": CheXpert and MIMIC-CXR transfer well to each other because both use the same report-mining labeler. That paper motivates this one, since it shows the shift is real. It also constrains us, because some external "errors" are disagreements between labelers rather than model failures. We reuse its protocol and add the triage layer it lacked.

The triage layer follows the selective-prediction setup of AT-CXR: Uncertainty-Aware Agentic Triage for Chest X-rays. AT-CXR routes confident CNN predictions to automatic acceptance and escalates uncertain ones, using a Mahalanobis out-of-distribution score among its signals. It reports roughly 99% automation at a 5% error budget, against 59–69% for standard models, but on a single class-balanced 1,000-image subset of ChestX-ray14 focused on pulmonary edema. Class balancing fixes prevalence at 50%, which is exactly the quantity our identity says will move at a real site. We take AT-CXR's question and test it where it is most likely to fail.

We concentrate on findings that are urgent and shared across all four datasets after harmonization, namely edema, pleural effusion, and pneumothorax. We also study a composite "any urgent finding" triage target. For each home dataset we train a DenseNet-121 and tune the auto-clear threshold on home validation data to meet error budgets of 2%, 5%, and 10%. We then apply the frozen model and threshold to every external dataset and record the realized error among cleared cases and the realized automation rate.

The repair is deliberately simple. On unlabeled external images, we estimate the new site's prevalence by the standard expectation-maximization correction for label shift, which iteratively re-weights the model's predicted probabilities until their average matches a self-consistent prevalence. We then plug that estimate into the identity above, using home-estimated $F_1$ and $F_0$, to choose a new threshold. A second variant also widens the deferral region for studies whose Mahalanobis distance from the home feature distribution is large. This is meant to catch the share of shift that prevalence does not explain.

To separate labeler shift from image shift, we use two internal contrasts. The CheXpert–MIMIC-CXR pair shares a labeler, while the other pairs do not. The 500-study CheXpert test set labeled by a consensus of five board-certified radiologists, introduced in CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison, gives an external reference that does not depend on report mining. If a model's apparent budget violation shrinks substantially when it is scored against radiologist consensus rather than labeler output, that part of the "shift" is a labeling artifact.

The retrospective cohort component uses the MIMIC-CXR studies linked to hospital and ICU admissions; the database is described in MIMIC-CXR: A large publicly available database of labeled chest radiographs. For each triage policy, we identify patients whose positive study was wrongly auto-cleared. We compare their subsequent course in MIMIC-IV with that of correctly deferred positives, adjusting for age, admission type, and baseline organ-dysfunction score. The outcomes are invasive ventilation within 48 hours, ICU transfer, and 28-day mortality.

This component is deliberately not a target trial emulation in the sense of Multicenter target trial emulation to evaluate corticosteroids for sepsis stratified by predicted organ dysfunction trajectory or Oxygenation thresholds for invasive ventilation in hypoxemic respiratory failure: a target trial emulation in two cohorts. Those papers estimate treatment effects from structured ICU data under explicit causal designs. The second is especially relevant because the same ventilation threshold looked beneficial in higher-risk MIMIC-IV patients but harmful in lower-risk AmsterdamUMCdb patients, a cautionary example that one operating point can mean different things at different sites. We cannot emulate a trial of "triage versus no triage": the counterfactual reading delay is not recorded, so any effect estimate would rest on assumptions we cannot check. What we can estimate honestly is outcome-weighted miss burden, meaning how sick the patients behind the triage errors were. That number sits closer to real-world validation than accuracy does, and it is reported without causal claims.

Baselines

The naive reference point is to deploy the home model and its home threshold unchanged at the new site. Everything else is measured against how far this policy exceeds its budget. The second reference is the AUC-only view of Pooch et al.: report the external AUC and assume triage degrades in proportion. We test this view directly by asking whether ranking by AUC drop predicts ranking by budget violation across the twelve train–test pairs.

The strongest existing triage method in the file is AT-CXR's uncertainty-aware routing. The full system calls large language models and vision–language models, which would confound a study of thresholds, so we run its deterministic rule-based router. That router combines CNN confidence with Mahalanobis out-of-distribution distance, on the same DenseNet-121 features, and its thresholds are tuned on home validation data with the same tuning budget as ours. On its own in-distribution, balanced subset, AT-CXR reports an AURC of 0.9% versus 4.0–5.1% for standard models, and about 99% automation at a 5% error budget. AURC is the area under the risk-coverage curve, which summarizes error across all automation levels; lower is better. No reported result was found on Lacuna for AT-CXR on any external chest X-ray dataset, which is the gap we fill. Our repair beats it if, at matched automation rates, it keeps realized external error within budget on more train–test pairs, or achieves higher automation at a met budget.

The strongest representation-level competitor is the causal disentanglement model of Chest X-ray Image Classification: A Causal Perspective. It separates image features that drive the diagnosis from confounding artifacts such as text markers and devices, using a transformer decoder and backdoor adjustment, and reports AUCs of 0.94 for cardiomegaly and 0.91 for effusion, but only on ChestX-ray14. We retrain it on each home dataset and apply home thresholds externally. If invariant features alone fixed the operating point, it should meet budgets without any recalibration.

Two ablations isolate the key ingredient. The first uses prevalence correction alone, without the out-of-distribution widening. The second uses out-of-distribution widening alone, without prevalence correction. If prevalence correction alone recovers most of the budget compliance, the identity above is the real story.

Why not just…?

Why not just recalibrate the threshold on a small labeled sample from the new hospital? This is the most serious threat, and it may simply win. Labeling a few hundred studies at a new site is routine in deployment, and a threshold fitted on them targets the right quantity directly. We do not argue around it. We run labeled recalibration with 50, 100, 250, and 500 studies drawn from each external site and plot budget compliance against sample size. If unlabeled correction matches labeled recalibration only at around 50 studies, the method's value is small, and the main contribution becomes the audit plus the sample-size curve. That curve is itself a practical deliverable: it states how many labeled local studies a hospital needs before trusting a vendor's error budget. The labeled approach also inherits the site's labeler, so the radiologist-consensus check applies to it too.

Why not just report external AUC, as Pooch et al. did? AUC is invariant to prevalence and blind to where the threshold sits, so by the identity above it can stay constant while the error among cleared cases doubles. The test is empirical. If AUC drop ranks the twelve transfer pairs the same way as budget violation does, our extra machinery is unnecessary, and we will say so.

Why not just make the features invariant, with causal disentanglement or orthogonal domain heads? Enhancing Compositional Generalization via Compositional Feature Alignment learns separate, orthogonal class and domain directions on natural-image benchmarks, and the causal chest X-ray model removes artifact features. Invariant features can stabilize the score distributions $F_1$ and $F_0$, but they cannot change a site's prevalence $\pi$, so they cannot by themselves restore the error rate among cleared cases. Adaptive-CaRe: Adaptive Causal Regularization for Robust Outcome Prediction also documents that enforcing invariance can cost in-distribution accuracy, which would lower automation. The causal-model baseline tests this directly. Invariant features combined with our threshold correction is a natural combination, and we report it.

Why not just run a target trial emulation of AI triage on patient outcomes? As explained above, the data do not record the reading-delay pathway through which triage would act. A trial emulation would therefore produce a precise-looking effect resting on unverifiable assumptions. Outcome-weighted miss burden is the defensible retrospective quantity.

Decisive Checks

The study succeeds or fails on four results. The first is whether home thresholds violate their error budget at external sites more often than external AUC suggests, measured across all twelve train–test pairs, three findings, and three budgets. The second is whether unlabeled prevalence correction brings realized error back within budget on most pairs, and how many labeled external studies are needed to do as well. The third is how much of the violation remains when external performance is scored against CheXpert's radiologist consensus labels instead of mined labels, which tells us how much of the problem is labelers rather than images. The fourth is whether, in the linked MIMIC cohort, wrongly cleared positives have higher adjusted rates of 48-hour ventilation and 28-day mortality than correctly deferred ones. If they do, a triage tool's error budget should be weighted by patient risk, not counted uniformly. A negative answer on the second check, paired with a steep labeled-sample curve, would still be a useful result: it would mean that error budgets claimed from simulation on a single hospital's data cannot be trusted without local labels.