Demonstrating the Risk of Imbalanced Datasets in Chest X-Ray Image-Based Diagnostics by Prototypical Relevance Propagation

Srishti Gautam, Marina M.-c. Höhne, Stine Hansen, Robert Jenssen, Michael Kampffmeyer

Introduction

Deep learning models for Chest X-ray (CXR) diagnostics are increasingly used to assist clinical decision-making. However, these models are prone to "shortcut learning"—identifying hospital-specific metadata or artifacts instead of actual medical pathology. This study investigates how label imbalances across multi-source datasets trigger this behavior and introduces Prototypical Relevance Propagation (PRP) as a high-resolution explainability tool to expose these hidden shortcuts.

The Shortcut Learning Problem

In medical imaging, researchers often aggregate datasets from multiple institutions to increase training volume. However, different hospitals possess unique "signatures," such as specific X-ray machine characteristics, orientations of "L/R" markers, or distinct font styles for timestamps. If one hospital has a higher prevalence of a specific condition (e.g., pneumonia) than another, a neural network may learn to recognize that hospital's specific textual markers rather than the patient's physiological state. This leads to inflated performance metrics that fail to generalize when the model is deployed in new clinical environments.

Methodology

The researchers utilize a "self-explaining" architecture known as ProtoPNet. Unlike standard black-box models, ProtoPNet makes classifications by comparing parts of an input image to "prototypes"—representative patches learned during training. To visualize these decisions, the authors developed Prototypical Relevance Propagation (PRP). By leveraging Layer-wise Relevance Propagation (LRP), PRP backpropagates the decision through the network's weights to produce pixel-precise maps, offering significantly higher resolution than standard coarse upsampling methods.

The study utilizes two major public datasets: the NIH ChestX-ray14 (H1) and Stanford’s CheXpert (H2). To isolate the effect of source-induced bias, the authors created controlled subsets with varying degrees of label imbalance (e.g., a 90/10 split where 90% of pneumonia cases originate from one source).

Analysis of Shortcut Learning

The study reveals that models quickly transition from "pathology detectors" to "hospital detectors" when faced with source imbalance. Surprisingly, even minor imbalances (e.g., a 60/40 split) are sufficient to trigger shortcut learning.

PRP map highlighting textual shortcuts (e.g., "PORTABLE" tag) used by the model for prediction.

As shown above, PRP maps demonstrate that models often latch onto textual annotations located in the corners of X-rays. These high-resolution explanations prove that the model is "cheating" by identifying the source hospital's labeling style rather than analyzing the lung tissue.

Experimental Results

The impact of imbalance on generalization is stark. For pneumonia detection, the highest accuracy on a balanced test set was only 63.89%, achieved by a model trained on perfectly balanced data. As the training imbalance increased, accuracy on balanced data dropped significantly, despite high internal validation scores. Quantitative evaluation using Average Drop (A.D.) and Average Increase (A.I.) metrics confirmed that PRP provides more "faithful" explanations of the model's internal logic compared to traditional visualization techniques.

Discussion and Limitations

While balancing source domains mitigates spurious learning, it does not eliminate it entirely. Models may still exploit medical artifacts that correlate with disease severity.

PRP visualization showing the model focusing on a chest tube as a diagnostic shortcut.

As illustrated above, even in balanced datasets, models sometimes focus on equipment like chest tubes, which are more common in critically ill patients. Future research should focus on developing training regularizers that penalize models for focusing on non-pathological regions, ensuring that AI-driven diagnostics remain grounded in medical reality.

Summary updated

BibTeX
@inproceedings{gautam2022demonstrating,
  author = {Srishti Gautam and Marina M.-C. Höhne and Stine Hansen and Robert Jenssen and Michael Kampffmeyer},
  title = {{Demonstrating the Risk of Imbalanced Datasets in Chest X-Ray Image-Based Diagnostics by Prototypical Relevance Propagation}},
  booktitle = {ISBI},
  year = {2022},
  url = {https://openreview.net/forum?id=mi8K3w8Scps},
}
Figure