cs.CVNov 23, 2026

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

Authors: Haoran Zhang, Sarah Lam, Yuting Lin, Nuo Chen, Mingyang Li

Organizations: Boston University

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. 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.

Figures & tables

Explore similar work

CardsList
  1. Feature-level Site Leakage Reduction for Cross-Hospital Chest X-ray Transfer via Self-Supervised Learning

    Mar 31, 2026Ayoub Louaye Bouaziz, Lokmane CheboubaCross-Domain Transfer LearningCross-Dataset Generalization

  2. Cross-dataset transportability of pediatric chest X-ray deep learning across three countries: discrimination, calibration, operating-point failure, and limited-label recovery

    Sep 4, 2026Nazim-E-AlamMedical Image ClassificationCross-Dataset Generalization

  3. What Do Medical Vision-Language Models Learn in Radiology? Transfer, Alignment, and Source-Proxy Leakage Under Distribution Shift

    Aug 26, 2026Ayoub Louaye Bouaziz, Lokmane Chebouba, Yassine HimeurMedical VLMsRadiology VLMs