Abstract
Medical image analysis continues to hold interesting challenges given the subtle characteristics of certain diseases and the significant overlap in appearance between diseases. In this study, we explore the concept of self-attention for tackling such subtleties in and between diseases. To this end, we introduce, a multi-scale encoder-decoder self-attention (MEDUSA) mechanism tailored for medical image analysis. While self-attention deep convolutional neural network architectures in existing literature center around the notion of multiple isolated lightweight attention mechanisms with limited individual capacities being incorporated at different points in the network architecture, MEDUSA takes a significant departure from this notion by possessing a single, unified self-attention mechanism with significantly higher capacity with multiple attention heads feeding into different scales in the network architecture. To the best of the authors' knowledge, this is the first "single body, multi-scale heads" realization of self-attention and enables explicit global context among selective attention at different levels of representational abstractions while still enabling differing local attention context at individual levels of abstractions. With MEDUSA, we obtain state-of-the-art performance on multiple challenging medical image analysis benchmarks including COVIDx, Radiological Society of North America (RSNA) RICORD, and RSNA Pneumonia Challenge when compared to previous work.
Introduction
Medical image analysis is notoriously difficult because the diagnostic "signal" is often buried in noise. Early-stage diseases may appear as faint, subtle opacities, and different pathologies often exhibit high inter-disease similarity. To help models focus, researchers frequently employ attention mechanisms—modules designed to highlight the most relevant pixels. However, standard approaches typically "sprinkle" small, isolated attention modules throughout a network. These modules act independently, lacking a unified "big picture" view of the image and failing to communicate across different scales. This often leads to a loss of focus on relevant anatomy as the model processes deeper layers, particularly when faced with artifacts like medical wires or poor image quality.
The MEDUSA Architecture
To address these limitations, we propose MEDUSA (Multi-Scale Encoder-Decoder Self-Attention). Instead of many tiny, isolated attention blocks, MEDUSA utilizes a single high-capacity "body" consisting of an Encoder-Decoder sub-module (similar to a U-Net). This module analyzes the entire input image to generate a single, unified global attention map.
Key architectural features include:
- Single Body, Multi-Scale Heads: The global attention map is branched into multiple "heads." These heads use bilinear interpolation and simple convolutions to resize and tailor the global map to the specific dimensions of different layers (scales) in the main classification backbone (e.g., a ResNet-50).
- Transfer Learning: The attention body is pre-trained on a lung segmentation task, providing an anatomical head start for identifying relevant regions.
- Alternating Training: To ensure stability, we employ a "freeze-and-thaw" approach, alternating training between the main classification backbone and the MEDUSA block.
Experimental Setup and Datasets
The model was evaluated on three major benchmarks involving diverse chest X-ray presentations:
- COVIDx (CXR-2): A large-scale dataset of over 19,000 chest X-rays for COVID-19 detection.
- RSNA Pneumonia Challenge: Approximately 26,000 images used to identify pneumonia-positive cases amidst significant image distortions.
- RSNA RICORD: A multi-national cohort used for scoring the severity of COVID-19 based on lung opacities.
Key Results and Insights
MEDUSA outperformed several state-of-the-art architectures across all benchmarks:
- COVID-19 Detection: Achieved 98.3% accuracy on the COVIDx dataset, significantly surpassing standard ResNet-50 (90.5%).
- Pneumonia Detection: Reached 83.0% accuracy on the RSNA dataset, compared to 68.0% for SE-ResNet-50 and 74.0% for CBAM.
- Sensitivity Boost: In the RSNA Pneumonia challenge, MEDUSA showed a 14% gain in sensitivity over other methods, proving more effective at catching subtle disease markers.
Beyond accuracy, the unified nature of the attention mechanism allowed the model to converge 10x faster than models using isolated attention blocks. Qualitative analysis via heatmaps also confirmed that MEDUSA is highly resilient to artifacts; while standard models are often distracted by chest tubes or ECG wires, MEDUSA consistently ignores these non-discriminative patterns.
Conclusion and Future Work
By deriving attention from the raw input via a unified encoder-decoder, MEDUSA maintains a "global anchor" that persists even in deep layers where spatial resolution is low. While currently optimized for 2D images, future work will explore extending this "single body, multi-scale heads" philosophy to 3D volumetric data (such as CT scans) and improving detection for mild, early-stage disease cases where features are nearly invisible to the naked eye.
Summary updated