Calibrating Rule-Out Screening Thresholds Across Hospitals, Not Within Them

A screening model that rules out disease, such as one that tells a pathologist "this lymph node slide has no metastasis, skip it," is only safe if it almost never misses true cases at the hospital where it is deployed. Two recent results collide here. Conformal risk control, a statistical recipe that picks a decision threshold from held-out labeled data and guarantees the miss rate stays below a target, works when the held-out data and the deployment data are statistically interchangeable. Multi-hospital medical data is not interchangeable. Frozen pathology embeddings reveal the source hospital with over 90% accuracy, and with near-perfect accuracy on CAMELYON16, even after stain normalization (Do Histopathological Foundation Models Eliminate Batch Effects?). A miss-rate guarantee calibrated on pooled data from known hospitals can therefore fail silently at a new one. These hospital fingerprints are called batch effects: technical differences from scanners, stains, and protocols.

We propose to treat the hospital, not the patient, as the unit that is assumed interchangeable. The rule-out threshold is then chosen so that a new hospital, drawn like the calibration hospitals, meets the target miss rate with stated probability. This choice makes one quantity central: how much the threshold required for the target sensitivity varies from hospital to hospital. That spread sets how many healthy cases must be flagged to keep the guarantee. It also gives a sharper way to judge batch-effect mitigation. Robustness methods barely move average out-of-distribution accuracy (WILDS), but they may still shrink this spread, and the spread is what decides whether a screening tool can be deployed. Explainability serves as an audit of the few low-scoring true positives that set each hospital's threshold. The audit asks whether a hospital forces a conservative threshold because its staining confuses the model, which harmonization can fix, or because its metastases are small, which only better localization can fix.

Core Claim

Let $s(x)$ be the model's disease score for case $x$, and let a case be flagged when $s(x) \ge \lambda$. For hospital $k$, the false negative rate (FNR) is $\mathrm{FNR}_k(\lambda) = P(s(x) < \lambda \mid y=1, \text{site}=k)$. Let $\lambda_k^\ast$ be the largest threshold with $\mathrm{FNR}_k(\lambda) \le \alpha$. If the $K$ calibration hospitals and a new hospital are exchangeable as units, then setting

$$\hat\lambda = \min_{k=1..K} \hat\lambda_k^\ast$$

gives $P(\mathrm{FNR}_{\text{new}}(\hat\lambda) \le \alpha) \ge 1 - 1/(K+1)$, up to the within-site estimation error in each $\hat\lambda_k^\ast$. Here $\hat\lambda_k^\ast$ is the per-site threshold estimated from that hospital's labeled positives. The bound follows from the rank of the new site's threshold among $K+1$ exchangeable thresholds. The within-site error is handled by computing each $\hat\lambda_k^\ast$ with the finite-sample correction of Conformal Risk Control. Higher-confidence versions use lower order statistics and need more sites.

The specificity cost of this guarantee is the gap between the pooled threshold and $\hat\lambda$. That gap is driven by the between-site dispersion of $\lambda_k^\ast$. Our empirical claim is that batch mitigation methods differ much more on this dispersion than on mean accuracy. The ranking of methods by "specificity at a site-level-guaranteed 95% or 99% sensitivity" will therefore differ from their WILDS-style accuracy ranking. A second claim is that the dispersion can be attributed, site by site, to technical causes (stain distance, embedding site-predictability) versus biological causes (lesion size). The attribution predicts which intervention helps.

This design accepts one constraint openly. With $K=5$ hospitals, as in Camelyon17-WILDS, the strongest available guarantee holds with probability only $5/6$. This is a real limit of distribution-free reasoning about new sites. We report it as such, and we use many-site fMRI cohorts to test the regime where site-level guarantees become strong.

Research Program

The first component measures what goes wrong with the obvious approach. We train standard patch and slide classifiers and run leave-one-hospital-out evaluation. For each fold we calibrate a pooled CRC threshold at $\alpha \in \{0.05, 0.01\}$ on the remaining hospitals and record the realized FNR at the held-out hospital. CRC reports near-exact control under exchangeability, for example an empirical risk of 0.0987 at target 0.1 on tumor segmentation (Conformal Risk Control). No result on Lacuna reports realized FNR at an unseen hospital, and this step fills that gap.

The second component implements site-exchangeable calibration, with the per-site CRC correction, and its one-label-budget extension. When a new hospital can supply $m$ labeled positives, we combine the site-level prior threshold with local CRC. We ask how small $m$ can be before local calibration alone, as in Conformal Triage, is as good. This matters because positives are rare at screening prevalence, so a requirement of local labels is a requirement for many local positives.

The third component re-evaluates batch mitigation through threshold dispersion. We apply each mitigation method to the same backbone and report how far each one raises $\min_k \lambda_k^\ast$ and narrows its spread. The methods are Reinhard and Macenko stain normalization, ComBat on embeddings, targeted stain-jitter fine-tuning from Connect Later, and adversarial site alignment with a capped discriminator loss in the style of the relaxed alignment in CUDA. We also report specificity at the guaranteed operating point.

The fourth component is the tail audit, which is the explainability contribution. It looks only at the positives that set the threshold: those whose scores fall below the pooled threshold at their own hospital. For each one we compute three things. The first is lesion area, available because Camelyon16 provides pixel tumor annotations. The second is the stain-space distance to the training hospitals. The third is how well the case's embedding predicts its hospital. We also check whether the model's attention covers the annotated lesion, using localization Dice as in mixed-supervision CLAM. A per-site regression of these factors on the threshold shortfall yields a short, human-readable statement for each hospital. An example is: "this site forces a 0.08 lower threshold; 70% of the shortfall is attributable to stain distance; the missed cases' attention lies off-lesion." The test of this explanation is predictive, not aesthetic. Stain-attributed sites should respond to harmonization, and size-attributed sites should respond to localization supervision. Mixed-supervision CLAM raised Dice from 0.215 to 0.350 with annotations on only 10% of slides, so it is the natural intervention for the size-driven tail.

Baselines

The naive reference point is an ERM classifier, with no batch handling, thresholded by pooled CRC calibrated on the source hospitals. This is what a practitioner would do by default. On Camelyon17-WILDS, ERM falls from about 93% in-distribution accuracy to about 70% out of distribution (WILDS). No reported FNR-at-unseen-hospital result is found on Lacuna for this setup. Our proposal beats this baseline if pooled CRC violates the target FNR on at least one held-out hospital while site-exchangeable calibration does not.

The strongest existing method for guaranteed screening under shift is Conformal Triage. It calibrates high-risk, low-risk, and abstain groups using labeled data from the deployment site. It reduced false positives from 233 (45%) to 8 (5%) with 14% abstention on MGH head CT. Those numbers come from a different modality and are not directly comparable. We will rerun the method on our splits with identical backbones and give it the same number $m$ of local labeled cases that our hybrid receives. It wins if local labels are plentiful. We beat it if we match its sensitivity guarantee and specificity using fewer local positives, or using none.

The strongest batch-mitigation competitors are stain normalization, ComBat, and targeted stain jitter from Connect Later, which reports a 1.1% out-of-distribution accuracy gain on Camelyon17 with DenseNet-121. All mitigation methods get the same backbone, the same hyperparameter search budget selected on the validation hospital only, and the same calibration procedure. The comparison concerns dispersion of $\lambda_k^\ast$ and specificity at the guaranteed sensitivity. It does not concern accuracy.

The key ablation isolates site-level exchangeability. We run identical models with pooled versus site-exchangeable calibration. The difference in realized FNR violations, and in specificity, measures what the unit-of-exchangeability choice buys and costs. A second ablation drops the tail audit and lets interventions be chosen by mean accuracy. This tests whether the audit's site attribution picks better fixes.

Why not just…?

Why not just lower the threshold until pooled sensitivity is 99%? Lowering a single pooled threshold assumes the new hospital's positive-score distribution matches the pool's. The near-perfect hospital predictability of pathology embeddings (Do Histopathological Foundation Models Eliminate Batch Effects?) says it will not. The leave-one-hospital-out FNR measurements in the first component test this directly. If pooled thresholds rarely violate the target, our method's added conservativeness is wasted, and we will report that.

Why not just recalibrate locally at each new hospital, as Conformal Triage does? This is the real threat, and when a hospital can label a few hundred positives it is likely the better choice. The cost is that at screening prevalence, those positives require labeling thousands of cases before deployment. The label-budget experiment measures where the crossover lies. Our contribution is the regime below it and the hybrid that uses a site-level prior when $m$ is small.

Why not just harmonize well and then use ordinary pooled calibration? If harmonization made per-site thresholds identical, site-exchangeable calibration would cost nothing, and the two would coincide. Our method only adds cost in proportion to the dispersion that remains. Batch Effects In Brain Foundation Model Embeddings found that ComBat removed site predictability without restoring biological signal. Removing site predictability is not the same as equalizing sensitivity-critical thresholds, so the dispersion must be measured, not assumed away.

Why not just reweight calibration cases by estimated density ratios to correct the shift? Importance weighting needs overlap between hospitals' feature distributions. When a linear probe identifies the hospital almost perfectly, as on CAMELYON16, the estimated weights become degenerate. We will include a weighted-calibration variant using unlabeled target data and report its effective sample size alongside its FNR.

Why not just show Grad-CAM heatmaps on missed cases? Post-hoc attention on weakly supervised models often lands on healthy tissue (mixed-supervision CLAM). A heatmap also does not say whether a hospital's threshold problem is technical or biological. The tail audit is evaluated by whether its attribution predicts which intervention closes the gap, a test Grad-CAM inspection cannot pass by construction.

Proposed Experiments and Decisive Checks

The pathology experiments use Camelyon17-WILDS with leave-one-hospital-out over all five hospitals. They also use Camelyon16, which has two centers and slide-level labels, and supplies lesion masks for the size attribution. TCGA-LUSC-5, with its five tissue source sites, adds a second pathology site structure. Because five sites cap the site-level guarantee at confidence 5/6, we add ADHD-200 and ABIDE I. These resting-state fMRI cohorts have many acquisition sites, and frozen embeddings predict the site at 85–94% accuracy (Batch Effects In Brain Foundation Model Embeddings). They let us test 95%-confidence site-level guarantees, using the diagnosis label as a stress test rather than a clinical claim, since diagnosis accuracy there is only 66–71%. The metrics are realized FNR at each held-out site, the frequency of target violations across folds, specificity and flag rate at the guaranteed operating point, the dispersion of $\lambda_k^\ast$, and the number of local positives Conformal Triage needs to match us.

Three results would settle the proposal. The first is pooled CRC violating the FNR target on held-out hospitals while site-exchangeable calibration does not. The second is a mitigation-method ranking by threshold dispersion that disagrees with the ranking by mean out-of-distribution accuracy. The third is the tail audit correctly predicting, for held-out hospitals, whether stain harmonization or localization supervision recovers more specificity. If dispersion is small for every reasonable model, the guarantee is cheap and the paper becomes a positive deployment result. If dispersion is large and unattributable, that is a negative result screening practitioners need to know.