VisualCheXbert: Addressing the Discrepancy Between Radiology Report Labels and Image Labels

Saahil Jain, Akshay Smit, Steven Qh Truong, Chanh Dt Nguyen, Minh-Thanh Huynh, Mudit Jain, Victoria A. Young, Andrew Y. Ng, Matthew P. Lungren, Pranav RajpurkararXiv 2021 · DOI

TL;DR

When training medical computer vision models, researchers often use automated text-miners to extract labels from radiology reports as a proxy for actual image labels. However, this paper demonstrates a significant discrepancy between what radiologists write in reports versus what is visually present in the corresponding X-ray images. To bridge this gap, the authors introduce VisualCheXbert, a biomedically-pretrained BERT model that learns to map free-text radiology reports directly to image-based labels by using a computer vision model as its supervisor.

What Problem Does This Paper Address?

To train deep learning models capable of interpreting medical images like chest X-rays, massive datasets are required. Because manually labeling hundreds of thousands of images is prohibitively expensive and time-consuming, the standard practice is to use rule-based Natural Language Processing (NLP) tools to automatically extract disease labels from the text of historical radiology reports.

However, this approach relies on a flawed assumption: that report labels are perfect proxies for image labels. In reality, what a radiologist writes in a report is influenced by clinical history, comparisons to previous scans, and institutional reporting conventions. For instance, a radiologist might omit a parent condition (like "Lung Opacity") if they diagnose a specific child condition (like "Edema"), or they might not mention a chronic condition if it hasn't changed from a previous visit. This creates a significant discrepancy between text-derived labels and the actual visual features in the image, hindering the training of downstream computer vision models.

Methods

The authors propose a novel cross-modal supervision framework to train a text labeler that targets image ground truth rather than text ground truth.

The training pipeline consists of two main steps:

  1. Computer Vision Proxy: Since expert image annotations are scarce, the authors first train a standard computer vision model (a DenseNet architecture) on chest X-ray images to detect 14 medical conditions. The output probabilities of this image-trained model serve as a proxy for an image-labeling radiologist.
  2. Cross-Modal BERT Training: They then fine-tune a biomedically-pretrained BERT model. Instead of training BERT to match human text labels, they train it to take the free-text radiology report impression as input and predict the probabilities generated by the X-ray computer vision model.

The final architecture, VisualCheXbert, uses a logistic regression layer (BERT+LogReg) on top of the BERT embeddings to map the text directly to binary image labels.

Figure 1: The VisualCheXbert training procedure. VisualCheXbert uses a biomedically-pretrained BERT model to directly map from a radiology report to the labels obtained by a radiologist interpreting the associated X-ray image. The training procedure for VisualCheXbert is supervised by a computer vision model trained to detect medical conditions from chest X-ray images.

Datasets

The models were trained and evaluated using two massive, publicly available chest X-ray datasets:

  • CheXpert: Consisting of 224,316 chest radiographs and corresponding radiology reports.
  • MIMIC-CXR: Consisting of 377,110 chest X-rays and reports.
  • Evaluation Benchmark: The models were rigorously evaluated on the CheXpert test set, which contains 500 clinical studies. The ground truth for this test set was established by a majority vote of 5 board-certified radiologists who annotated the images in isolation, without access to the text reports.

Key Insights and Ideas

  • Quantifying the Discrepancy: The authors confirmed a stark disagreement between radiologists labeling reports and those labeling images. The average Cohen's Kappa between the two groups was remarkably low (between 0.312 and 0.430), highlighting that text reports are inherently noisy proxies for image content.
  • The "Why" Behind the Disagreement: Through expert review, the authors categorized the discrepancies into four main drivers: task setup/label hierarchies, access to clinical history (which biases text reporting), structural omissions (findings mentioned in the body of a report but left out of the summary "Impression" section), and varying diagnostic thresholds.
  • Learning Implicit Relationships: By using an image model as a supervisor, VisualCheXbert automatically learns to correct for text quirks. For example, as shown in the odds ratio analysis, the model learns that if a text report mentions a child condition like "Edema," it should automatically infer the presence of the parent condition "Lung Opacity" in the image, even if it wasn't explicitly written down.
Figure 2: Odds ratios for radiologist report labels as factors for the presence of a condition in the X-ray image. We map the radiologist report labels across all conditions to the image ground truth using a logistic regression model. We obtain odds ratios for the input variables, which are the one-hot encoded radiologist report labels, and only display odds ratios for which the corresponding P value (two-sided t test) is less than 0.05.

Key Results

  • Outperforming Rule-Based Labelers: VisualCheXbert substantially outperformed the widely used, rules-based CheXpert text labeler, achieving an average F1 score improvement of 0.14 (95% CI 0.12, 0.17) when evaluated against the image ground truth.
  • Outperforming Human Report Readers: Remarkably, VisualCheXbert agreed better with the image-ground-truth radiologists than did human radiologists who only read the reports. VisualCheXbert improved upon the human report-labelers by an average F1 score of 0.12 to 0.21 across multiple conditions.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Scope of Text: The model only looks at the "Impression" section of radiology reports. Important nuances located in the main "Findings" section may be missed.
  • Token Constraints: The BERT model has a maximum input size of 512 tokens, though this rarely impacted the relatively short summary impressions in the dataset.
  • Generalizability: The evaluation was conducted on data from a single institution (Stanford Hospital). Future work should validate VisualCheXbert's performance on multi-institutional datasets to ensure the learned text-to-image correlations generalize across different clinical writing styles.

Summary updated

BibTeX
@misc{jain2021visualchexbert,
  author = {Saahil Jain and Akshay Smit and Steven QH Truong and Chanh DT Nguyen and Minh-Thanh Huynh and Mudit Jain and Victoria A. Young and Andrew Y. Ng and Matthew P. Lungren and Pranav Rajpurkar},
  title = {{VisualCheXbert: Addressing the Discrepancy Between Radiology Report Labels and Image Labels}},
  year = {2021},
  eprint = {2102.11467},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.11467},
}
Figure