Crafting Good Views of Medical Images for Contrastive Learning via Expert-level Visual Attention

Sheng Wang, Zihao Zhao, Lichi Zhang, Dinggang Shen, Qian WangGaze Meets ML @ NeurIPS 2023

Abstract

Recent advancements in contrastive learning methods have shown significant improvements, focusing on minimizing the distances between different views of the same image. These methods typically craft two randomly augmented views of the same image as a positive pair, expecting the model to capture the inherent representation of the image. However, random data augmentation might not fully preserve image semantic information and can lead to a decline in the quality of the augmented views, particularly in medical imaging where lesion areas are subtle. To address this, we propose Gaze-Conditioned Augmentation (GCA), which leverages radiologists' visual attention to guide the creation of high-quality contrastive views. By modeling expert gaze patterns, GCA ensures that augmentations preserve disease-related abnormalities. Our results on knee X-ray images demonstrate that GCA significantly improves contrastive learning performance and label efficiency.

The Challenge of Semantic Sparsity

Contrastive learning (CL) has revolutionized self-supervised learning by teaching models to recognize that different "views" (e.g., crops, rotations, or cutouts) of the same image represent the same underlying concept. While this approach is highly effective for natural images—where a cropped photo of a dog still clearly contains "dog-ness"—it often falters in the medical domain due to semantic sparsity.

In medical imaging, the features that define a pathology often occupy only a tiny fraction of the total pixels. For instance, in a knee X-ray, the critical region for diagnosing osteoarthritis might represent less than 5% of the total image area. When standard CL applies random crops or cutouts, there is a high probability that these subtle diagnostic markers are removed or distorted. If the "positive pair" no longer contains the abnormality, the model is forced to learn from irrelevant background tissue, leading to poor diagnostic performance.

In medical images, the diagnostically relevant portion is often very small (e.g., 4.12% in this knee X-ray), making it highly vulnerable to being lost during random data augmentation.

Gaze-Conditioned Augmentation (GCA)

To solve this, the authors introduce Gaze-Conditioned Augmentation (GCA), a "plug-and-play" framework that uses expert visual attention as a proxy for semantic importance. The process involves three main stages:

  1. Learning Expert Attention: Researchers tracked the gaze of radiologists as they diagnosed knee X-rays. This data was used to train a U-Net saliency model capable of predicting where an expert would focus on a new, unseen image.
  2. Gaze-Conditioned Filtering: During the pre-training phase, the system generates multiple random augmentations but applies an "Overlap Constraint." Using the predicted gaze map, the system discards any crop or cutout that removes too much of the salient (expert-attended) area.
  3. Novel Augmentation Operators: The framework introduces specialized operators like Gaze Cutout/Crop, which ensures abnormalities are preserved, and the Gaze Mask, which suppresses non-salient regions to help the network differentiate negative pairs more effectively.
The GCA framework: A U-Net predicts expert gaze, which then filters random transformations to ensure that critical abnormalities are preserved in the positive pairs used for contrastive learning.

Experimental Results and Insights

The study utilized the Osteoarthritis Initiative (OAI) dataset, consisting of over 7,000 knee X-ray images, to predict Kellgren-Lawrence (KL) grades. The results highlight several key advantages of the GCA approach:

  • Superior Accuracy: In linear probing evaluations, GCA outperformed standard random augmentation by an average of +4.90% in accuracy.
  • Label Efficiency: GCA proved remarkably efficient in low-data regimes. A model pre-trained with GCA using only 1% of labeled data achieved 39.07% accuracy, surpassing a standard model trained with 5% of labeled data (36.05%).
  • Gaze as a Scalable Signal: While pixel-level manual segmentation is expensive and slow, recording a doctor's gaze is a relatively seamless process that provides a high-quality semantic signal at a fraction of the cost.

Conclusion and Future Work

GCA demonstrates that integrating expert domain knowledge—specifically visual attention—can significantly mitigate the risks of random augmentation in medical AI. By ensuring that "positive pairs" remain semantically consistent, GCA allows contrastive learning to excel even when diagnostic features are sparse. Future research will focus on extending this gaze-guided approach to 3D modalities like CT and MRI and exploring its integration into other self-supervised learning paradigms.

Summary updated

BibTeX
@inproceedings{wang2023crafting,
  author = {Sheng Wang and Zihao Zhao and Lichi Zhang and Dinggang Shen and Qian Wang},
  title = {{Crafting Good Views of Medical Images for Contrastive Learning via Expert-level Visual Attention}},
  booktitle = {Gaze Meets ML @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=JBIfteTlxk},
}
Figure