Studying the Effects of Self-Attention for Medical Image Analysis

Adrit Rao, Jongchan Park, Sanghyun Woo, Joon-Young Lee, Oliver Aalami

TL;DR

This paper investigates whether adding self-attention mechanisms to standard Convolutional Neural Networks (CNNs) can help medical image analysis models mimic a physician's visual focus. By evaluating three attention modules across four medical imaging modalities, the authors show that attention not only boosts classification accuracy (AUC-ROC) but also aligns the model's focus much closer to clinically relevant features, as verified by expert radiologists and dermatologists.

What Problem Does This Paper Address?

When a trained physician looks at a medical image, they subconsciously apply "cognitive visual attention." They zero in on clinically relevant regions (like an irregular mole border or a lung opacity) while ignoring irrelevant background noise (like healthy tissue or imaging artifacts). Standard CNNs, however, evaluate features much more generally and are not guaranteed to extract information in a way that aligns with human clinical reasoning.

This paper addresses the gap between standard CNN feature extraction and human expert visual cognition. The authors explore whether integrating artificial self-attention mechanisms into CNNs can force the models to evaluate feature relevancy more like a doctor, thereby improving both diagnostic accuracy and the interpretability of the system.

Methods

The authors use a standard ResNet-18 architecture as their baseline. To test the impact of attention, they augment the network by injecting self-contained attention mechanisms into each residual block, right before the residual connection. They compare three state-of-the-art attention modules:

  1. Squeeze-and-Excitation (SE): A channel-wise attention mechanism that uses global average pooling to recalibrate the weight of different feature channels.
  2. Convolutional Block Attention Module (CBAM): A module that computes both 1D channel attention (using average and max pooling) and 2D spatial attention, applying them sequentially.
  3. Global Context Network (GC): A mechanism designed to model long-range dependencies across the entire image using a simplified non-local network approach.

The models were trained end-to-end and evaluated both quantitatively (using AUC-ROC) and qualitatively (using Grad-CAM heatmaps reviewed by medical specialists).

Datasets

To ensure the findings were robust across different modalities, the study utilized four distinct medical image datasets:

  • Skin Cancer (ISIC): 3,297 images of benign and malignant moles.
  • Chest X-Ray (CXR): 5,863 images classifying normal vs. pneumonia (from UCSD).
  • Brain MRI: 3,264 images classifying tumor vs. no tumor (from Kaggle).
  • COVID-19 CT: 812 CT scans classifying COVID-19 positive vs. negative (from UCSD).

Key Insights and Ideas

  • Attention acts as a computational proxy for clinical focus: The addition of self-attention successfully allowed models to filter out irrelevant background noise (like normal skin or non-lung tissue) and focus brain-power on the actual lesions.
  • Spatial + Channel attention is a winning combo for medicine: CBAM, which utilizes both spatial and channel attention, proved particularly well-suited for medical imaging. This makes intuitive sense, as medical diagnosis relies heavily on localized spatial anomalies (e.g., the specific shape of a tumor).
  • Interpretability builds clinical trust: The paper proves that higher accuracy isn't just a numbers game. Grad-CAM visualizations showed that the models with the highest accuracy (specifically CBAM) also produced heatmaps that made the most sense to human doctors, highlighting the exact features a human would look for.
  • Global context isn't always helpful: The GC module actually hurt performance in several tasks, suggesting that aggregating long-range global context might distract models when the task requires hyper-focus on localized medical lesions.

Key Results

Quantitative Results: Adding SE and CBAM consistently improved performance over the baseline ResNet-18 across almost all tasks:

  • Skin: CBAM reached 95.09% AUC-ROC (+1.81% over baseline).
  • CXR: SE reached 99.13% (+1.86%), and CBAM reached 99.12%.
  • MRI: CBAM reached 96.77% (+3.09%).
  • CT: CBAM reached 91.02% (a massive +6.22% improvement over baseline).
  • Note: The GC module underperformed the baseline on the CXR, MRI, and CT datasets.

Qualitative Results: In a blind user study, dermatologists and radiologists reviewed Grad-CAM heatmaps to determine which model focused on the most clinically relevant regions. The baseline ResNet-18 was never chosen. ResNet-18 + CBAM was overwhelmingly selected as the best model. Clinicians noted that it successfully highlighted irregular borders in melanomas and patchy consolidation in lungs, rather than getting distracted by surrounding healthy tissue.

Limitations and Future Work

The authors acknowledge that not all self-attention mechanisms universally improve medical classification, as evidenced by the poor performance of the GC module on several datasets. Additionally, the COVID-19 CT dataset was relatively small (812 images), which limits the statistical power of that specific test.

For future work, the authors suggest further validation across more diverse and larger datasets. They also imply a need to continue exploring why certain attention architectures (like GC) fail in medical contexts while others (like CBAM) thrive, in order to design even more specialized medical vision systems.

Summary updated

BibTeX
@inproceedings{rao2021studying,
  author = {Adrit Rao and Jongchan Park and Sanghyun Woo and Joon-Young Lee and Oliver Aalami},
  title = {{Studying the Effects of Self-Attention for Medical Image Analysis}},
  booktitle = {ICCVW},
  year = {2021},
  url = {https://openreview.net/forum?id=8Q9J2E1hSa},
}

Loading related content...

Figure