When Should We Trust Medical Image Models? Evaluating Confidence Reliability under Cross-Dataset Shift

Haoran Zhang, Sarah Lam, Yuting Lin, Nuo Chen, Mingyang Li
11/23/2026
cs.CV

No confident code implementation found for this paper.

Abstract

Deep learning models for chest X-ray analysis often achieve strong performance on benchmark datasets, but their reliability under cross-dataset deployment remains unclear. In clinical practice, models trained in one hospital system may be applied to data from another, where distributional and labeling differences can affect both prediction accuracy and model confidence.

Show full abstract

We conduct a controlled empirical study of model confidence under cross-dataset transfer. We train ResNet-50 and DenseNet-121 on CheXpert and evaluate them on MIMIC-CXR across five experimental settings, focusing on Pneumothorax and Pleural Effusion. We measure predictive performance using AUC and confidence reliability using Expected Calibration Error (ECE), Brier score, and average confidence on incorrect predictions, all reported with 95% bootstrap confidence intervals. We further evaluate post-hoc temperature scaling fit on the source validation set and use Grad-CAM to examine the mechanism behind cross-domain performance differences. Cross-domain AUC drops 7-13 percentage points, and the best in-domain model is not the best cross-domain model. Source-domain temperature scaling produces marginal ECE changes but systematically increases confidence on incorrect predictions across all four model-pathology combinations. Grad-CAM reveals that DenseNet relies on a concentrated spatial prior that fails to transfer, while ResNet's more distributed attention generalizes better. These findings argue for cross-site validation and safety-specific calibration metrics in medical AI evaluation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026when,
  title  = {When Should We Trust Medical Image Models? Evaluating Confidence Reliability under Cross-Dataset Shift},
  author = {Haoran Zhang and Sarah Lam and Yuting Lin and Nuo Chen and Mingyang Li},
  year   = {2026},
  eprint = {2611.29955},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.29955v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.29955.svg)](https://codeofpaper.com/paper/2611.29955)

Discussion