RadioTransformer: A Cascaded Global-Focal Transformer for Visual Attention-Guided Disease Classification

Moinak Bhattacharya, Shubham Jain, Prateek Prasanna

Introduction

Deep learning models have demonstrated remarkable proficiency in medical image classification, often matching or exceeding human performance in specific tasks. However, these models frequently operate as "black boxes," lacking the domain-specific search heuristics employed by expert radiologists. Unlike standard computer vision models that treat all image patches with equal potential relevance, radiologists utilize a sophisticated two-stage visual search strategy: a Global Screening phase to identify suspicious regions through coarse features, followed by a Focal Analysis phase for detailed examination of structural abnormalities.

RadioTransformer aims to bridge this gap by explicitly integrating human visual attention into a transformer-based architecture. By leveraging eye-gaze data during training, the model learns to mimic the hierarchical search patterns of experts, leading to improved diagnostic accuracy and better generalizability across diverse clinical datasets.

Methodology

Student-Teacher Framework

The core of the RadioTransformer is a student-teacher architecture designed to distill expert knowledge into a deployable classification model.

  1. The Teacher (HVAT): The Human Visual Attention Training (HVAT) network is pre-trained on a specialized dataset containing actual eye-gaze coordinates from radiologists. It learns to generate saliency maps and bounding boxes that represent "human visual attention regions."
  2. The Student: This network is responsible for the final disease classification. During training, it is guided by the teacher through a novel Visual Attention Loss (VAL), which forces the student’s internal attention mechanisms to align with the expert-derived attention maps.
The RadioTransformer framework utilizes a student-teacher architecture to align AI attention with expert radiologist gaze patterns.

Global-Focal Architecture

Both the student and teacher networks employ a dual-stream design inspired by biological visual pathways (the Magno and Parvo cells):

  • Global Modules: These modules utilize shifting window transformer blocks to capture high-level, coarse representations of the entire image.
  • Focal Modules: These focus on capturing low-level, granular details necessary for identifying specific morphological abnormalities.

To bridge the semantic gap between these scales, the streams are connected via Two-Way Lateral (TWL) connections. Training is further stabilized using Smoothed Exponential Moving Average (SEMA) to regulate the information flow between the global and focal streams.

Detailed view of the Global-Focal modules, showing the TWL connections, SEMA regulation, and the multi-component loss functions used for training.

Loss Functions

The training process utilizes a composite loss function. The Visual Attention Loss (VAL) is composed of Generalized Intersection over Union ($L_{GIoU}$) and Mean Squared Error ($L_{MSE}$) to ensure spatial and intensity alignment with the teacher's attention. The final classification is supervised by a standard Categorical Cross-Entropy ($L_{CCE}$) loss.

Experimental Setup and Datasets

The authors conducted a large-scale validation using eight distinct datasets, totaling over 260,000 images, covering various thoracic conditions:

  • Pneumonia: Cell and RSNA datasets.
  • COVID-19: SIIM, Rad, MIDRC, and SBU datasets.
  • General Thoracic Diseases: NIH (ChestX-ray14) and VinBigData (VBD) datasets.

The teacher network was trained using eye-tracking data from 1,083 chest X-rays in the MIMIC-CXR dataset. Crucially, this eye-gaze data is only required during the training phase; during inference, the student network operates independently on standard images.

Key Insights and Results

Quantitative Performance

RadioTransformer (RadT) consistently outperformed established baselines, including DenseNet-121, Vision Transformers (ViT), and Swin Transformers. On the RSNA pneumonia dataset, RadT achieved an AUC of 99.85 and an F1-score of 98.75.

Robustness and Generalization

A significant finding was the model's robustness on "unseen" test sets (e.g., MIDRC and SBU). By learning human-like attention patterns rather than relying on dataset-specific artifacts, the model demonstrated superior generalizability compared to standard architectures.

Qualitative Analysis

Class Activation Maps (CAMs) revealed that RadioTransformer focuses on clinically relevant areas, such as fluid accumulation or infiltrates, with high precision. In contrast, models trained without gaze guidance often focused on irrelevant image artifacts or healthy tissue, a phenomenon known as "shortcut learning."

Conclusion and Future Work

RadioTransformer represents a significant step toward more interpretable and expert-aligned medical AI. By treating expert gaze as a "soft label," the framework provides the model with structural intent. While the current implementation is limited to 2D radiographs and requires high-quality gaze data for training, future work aims to extend this approach to 3D modalities like CT and MRI scans and optimize the convergence of the visual attention loss for more complex pathologies.

Summary updated

BibTeX
@inproceedings{bhattacharya2022radiotransformer,
  author = {Moinak Bhattacharya and Shubham Jain and Prateek Prasanna},
  title = {{RadioTransformer: A Cascaded Global-Focal Transformer for Visual Attention-Guided Disease Classification}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19803-8\_40},
}
Figure