CheXternal: Generalization of Deep Learning Models for Chest X-ray Interpretation to Photos of Chest X-rays and External Clinical Settings

Pranav Rajpurkar, Anirudh Joshi, Anuj Pareek, Andrew Y. Ng, Matthew P. LungrenarXiv 2021 · DOI

TL;DR

This study evaluates how top-tier deep learning models for chest X-ray (CXR) interpretation handle real-world "distribution shifts," such as smartphone photos of X-ray monitors and data from entirely different hospitals. The researchers found that while performance dips on noisy smartphone photos, these models remain remarkably robust—often matching or even exceeding the diagnostic accuracy of board-certified radiologists when applied to new clinical settings without any additional fine-tuning.

What Problem Does This Paper Address?

Deep learning has shown immense promise in radiology, but a massive gap remains between "lab performance" and "clinical deployment." This gap is primarily caused by distribution shifts: the difference between the data a model was trained on and the data it encounters in the wild.

The authors focus on two specific, clinically relevant shifts:

  1. Infrastructure Agnostic Deployment: In many resource-limited settings, doctors use "store-and-forward telemedicine," taking a smartphone photo of an X-ray on a computer screen to send for a second opinion. These photos introduce artifacts like glare, blur, and Moiré patterns that can confuse AI.
  2. Institutional Variation: A model trained at a high-tech hospital in California might fail when applied to a hospital in Maryland due to differences in patient populations, X-ray hardware, or imaging protocols.

Previous research suggested that CXR models generalize poorly. This paper investigates whether modern, high-performing models can overcome these hurdles.

Methods

The researchers took a unique approach by leveraging the CheXpert challenge, a large-scale competition for CXR interpretation. They selected 8 different high-performing models submitted by various research groups.

Crucially, they tested these models without any fine-tuning. They used the CodaLab platform to run the original, frozen executable code from the challenge on two new, "hidden" test sets. This ensured a fair assessment of "out-of-the-box" generalization. The models were evaluated on five key pathologies: atelectasis, cardiomegaly, consolidation, edema, and pleural effusion.

The study workflow: taking models trained on a single institution's digital CXRs and testing them on smartphone photos and external datasets.

Datasets

  • Training Set: The models were originally trained on the CheXpert dataset (Stanford Hospital), which contains 224,316 chest radiographs.
  • Photo Test Set: 668 smartphone photos of 500 patients from the CheXpert test set. These were taken by a physician under a 5-second time limit to simulate a busy clinical environment, capturing realistic artifacts like screen glare.
  • External Test Set (NIH): 420 frontal CXRs sourced from the NIH ChestXray-14 dataset. This represents a shift in both patient population and institutional imaging standards.
  • Ground Truth: The reference standard for both sets was established by a majority vote of board-certified radiologists.

Key Insights and Ideas

  • The "Radiologist Benchmark" is Essential: Absolute performance drops are expected when data gets "messier." However, the authors argue that the true test is whether the AI still performs as well as a human. If a task becomes harder for a radiologist, it’s acceptable if it also becomes harder for the AI, provided the AI stays within the human performance envelope.
  • Generalization is Improving: Contrary to some earlier, more pessimistic studies, this work shows that modern models trained on large, high-quality datasets (like CheXpert) learn features that are robust enough to handle significant institutional shifts.
  • Pathology-Specific Sensitivity: Not all diseases are affected equally by distribution shifts. For example, models struggled more with pleural effusion on smartphone photos than they did with cardiomegaly, likely because the fine visual cues for fluid (effusion) are easily obscured by photo artifacts.

Key Results

  • Smartphone Photos: All 8 models saw a statistically significant drop in performance (average drop of 0.036 MCC). However, 5 out of 8 models still performed as well as radiologists on average.
  • External Institution (NIH): The results here were even more impressive. None of the models performed worse than radiologists, and 5 out of 8 models actually performed significantly better than radiologists on average.
  • Pathology Wins: On the NIH dataset, models were particularly strong at identifying consolidation (6 models beat radiologists) and edema (4 models beat radiologists).
Comparison of model performance on digital CXRs vs. smartphone photos, showing a consistent but manageable performance drop.

Limitations and Future Work

While the results are encouraging, the authors note several limitations:

  • Retrospective Nature: The study uses existing datasets. Prospective clinical trials are needed to see how these models perform in real-time clinical workflows.
  • The "Why" remains unclear: The study identifies that models generalize, but not exactly how. Future work should investigate which specific training procedures (like self-supervised learning or specific data augmentations) contribute most to this robustness.
  • Artifact Analysis: More granular research is needed to determine which specific smartphone artifacts (e.g., glare vs. rotation) are the primary drivers of performance degradation.

Summary updated

Abstract

Recent advances in training deep learning models have demonstrated the potential to provide accurate chest X-ray interpretation and increase access to radiology expertise. However, poor generalization due to data distribution shifts in clinical settings is a key barrier to implementation. In this study, we measured the diagnostic performance for 8 different chest X-ray models when applied to (1) smartphone photos of chest X-rays and (2) external datasets without any finetuning. All models were developed by different groups and submitted to the CheXpert challenge, and re-applied to test datasets without further tuning. We found that (1) on photos of chest X-rays, all 8 models experienced a statistically significant drop in task performance, but only 3 performed significantly worse than radiologists on average, and (2) on the external set, none of the models performed statistically significantly worse than radiologists, and five models performed statistically significantly better than radiologists. Our results demonstrate that some chest X-ray models, under clinically relevant distribution shifts, were comparable to radiologists while other models were not. Future work should investigate aspects of model training procedures and dataset collection that influence generalization in the presence of data distribution shifts.
BibTeX
@misc{rajpurkar2021chexternal,
  author = {Pranav Rajpurkar and Anirudh Joshi and Anuj Pareek and Andrew Y. Ng and Matthew P. Lungren},
  title = {{CheXternal: Generalization of Deep Learning Models for Chest X-ray Interpretation to Photos of Chest X-rays and External Clinical Settings}},
  year = {2021},
  eprint = {2102.08660},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.08660},
}

Loading related content...

Figure