Reconstruction of patient-specific confounders in AI-based radiologic image interpretation using generative pretraining

Tianyu Han, Laura Žigutytė, Luisa Huck, Marc Huppertz, Robert Siepmann, Yossi Gandelsman, Christian Blüthgen, Firas Khader, Christiane Kühl, Sven Nebelung, Jakob Nikolas Kather, Daniel Truhn

TL;DR

This paper introduces DiffChest, a novel diffusion model that not only achieves high accuracy in diagnosing chest conditions from X-rays but also visualizes "confounders"—spurious correlations that can mislead AI models. By generating patient-specific counterfactual images, DiffChest helps identify and understand these biases, paving the way for more reliable and interpretable AI in healthcare.

What Problem Does This Paper Address?

Artificial intelligence (AI) models are increasingly used in medical image interpretation, but their reliability is hampered by "confounders." These are factors present in the data that are correlated with the disease but not causally related, leading the AI to learn incorrect associations. For example, an AI trained to detect pneumothorax might learn to associate the presence of a chest tube with pneumothorax, rather than the actual disease itself. Current AI explainability methods often struggle to pinpoint these confounding factors at a patient-specific level. This paper aims to address this by developing an AI system that can not only diagnose but also explain its reasoning by visualizing these confounders.

Methods

The core of the proposed method is DiffChest, a self-conditioned diffusion model. The process involves two main stages:

  1. Generative Pretraining: DiffChest is first pretrained on a massive dataset of unlabeled chest radiographs using a simplified diffusion objective. This objective is theoretically shown to maximize both the data likelihood and the mutual information between the input image and its learned latent representation. This stage allows the model to learn rich semantic features from the data without explicit labels.
  2. Classification and Explanation: After pretraining, a logistic regression classifier is trained on top of the learned latent features. Crucially, the model can also generate patient-specific visual explanations. This is achieved by perturbing the latent code in a way that corresponds to a specific pathology and then using the diffusion model to generate a synthetic image (a "counterfactual explanation"). This counterfactual image visualizes how the radiograph would appear if it exhibited the target pathology, highlighting the features the model relies on and, importantly, any confounding factors it might be using.

Datasets

The study utilized three large, publicly available chest radiograph datasets:

  • MIMIC-CXR: 377,110 frontal and lateral chest radiographs from 227,835 patients, labeled for 14 pathological conditions.
  • CheXpert: 224,316 chest radiographs from 65,240 patients, also labeled for 14 pathological conditions.
  • PadChest: 160,861 chest radiographs from 67,625 patients, annotated with 193 findings, including 174 distinct radiographic findings and 19 differential diagnoses.

The pretraining was performed on a combined dataset of 497,215 radiographs from MIMIC-CXR, CheXpert, and PadChest. For fine-tuning the classification head, a subset of 18,489 manually annotated radiographs from PadChest was used. The final evaluation was conducted on a test set of 7,943 radiographs from PadChest.

Key Insights and Ideas

  • Diffusion Models for Explainability: The paper demonstrates that diffusion models, beyond their generative capabilities, can be powerful tools for generating patient-specific visual explanations of AI decisions, going beyond simple feature attribution.
  • Confounder Identification is Crucial: The ability to visualize confounders is highlighted as essential for building trust and ensuring the reliability of medical AI. DiffChest's capability to identify these spurious correlations is a significant step towards this goal.
  • Generative Pretraining Enhances Data Efficiency: Pretraining on a large unlabeled dataset significantly improves performance, even when fine-tuning on a very small subset of labeled data, suggesting a path towards more data-efficient AI development in medicine.
  • Counterfactuals as Explanations: Generating counterfactual images that represent a specific pathology allows clinicians to directly see what features the AI is focusing on, facilitating a more intuitive understanding of the model's reasoning.

Key Results

  • Diagnostic Performance: DiffChest achieved excellent diagnostic accuracy for 11 out of 11 chest conditions and at least sufficient accuracy for the remaining conditions. It outperformed the state-of-the-art foundation model CheXzero in 60 out of 73 imaging findings, with an average AUC improvement of 0.110.
  • Confounder Detection: The model demonstrated high inter-reader agreement (Fleiss' Kappa of 0.8 or higher) when identifying treatment-related confounders, with prevalence rates ranging from 11.1% to 100%.
  • Data Efficiency: DiffChest maintained stable performance even when fine-tuned on only 3% of the total data, showcasing its efficiency.

Limitations and Future Work

  • Image Resolution: The synthesized images generated by DiffChest are of lower resolution than typical clinical practice. The authors suggest that progressive growing techniques, similar to those used in GANs, could address this, though it would require substantial hardware resources.
  • Ethical Concerns: The ability to generate realistic synthetic images raises ethical concerns, similar to "DeepFakes," potentially being used for fraudulent purposes. The authors suggest that future work could involve developing additional networks to detect such manipulated images.
  • Hardware Requirements: Implementing advanced techniques for higher-resolution image generation might require significant computational resources, which may not always be available in clinical settings. Future research will focus on exploring resource-efficient alternatives.
  • Broader Applications: While demonstrated on chest radiographs, the study highlights the broader potential of self-supervised learning with diffusion models for interpretable AI in other medical imaging domains.

Summary updated

BibTeX
@misc{han2023reconstruction,
  author = {Tianyu Han and Laura Žigutytė and Luisa Huck and Marc Huppertz and Robert Siepmann and Yossi Gandelsman and Christian Blüthgen and Firas Khader and Christiane Kühl and Sven Nebelung and Jakob Nikolas Kather and Daniel Truhn},
  title = {{Reconstruction of patient-specific confounders in AI-based radiologic image interpretation using generative pretraining}},
  year = {2023},
  eprint = {2309.17123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.17123},
}
Figure