TL;DR
This paper introduces a novel two-stage deep learning model, PAT, that predicts the spatio-temporal attention (scanpaths) of pathologists grading whole slide images (WSIs) of cancer. By leveraging a large, newly collected dataset and a transformer-based architecture, PAT aims to provide AI-assisted training tools that guide pathologists on where and when to focus their attention, ultimately improving diagnostic accuracy and reducing inter-observer variability.
What Problem Does This Paper Address?
Diagnosing cancer from whole slide images (WSIs) is a complex task that requires pathologists to meticulously examine vast amounts of visual information. This process demands years of training to develop an expert's ability to allocate attention effectively. While previous research has explored predicting where pathologists look (attention heatmaps), understanding when they shift their attention and why (i.e., the dynamic scanpath) is crucial for developing effective AI-powered training tools. Existing methods often struggle with the temporal dynamics and multi-resolution nature of WSI analysis. This paper addresses this gap by proposing a model that predicts the full spatio-temporal attention trajectory of pathologists, aiming to mimic expert visual search strategies.
Methods
The authors propose a two-stage model called Pathologist Attention Transformer (PAT):
- Stage 1: PAT-Heatmap (PAT-H): This sub-network predicts attention heatmaps at different magnification levels. It uses a transformer encoder to process patch-level features extracted from the WSI, incorporating positional and patch embeddings. A convolutional decoder then generates the heatmap. The loss function is based on the cross-correlation score between predicted and ground-truth heatmaps.
- Stage 2: PAT-Scanpath (PAT-S): This sub-network predicts the attention scanpath autoregressively, fixation by fixation. It leverages encoded features from PAT-H at low (2X) and high (10X) magnifications. Key components include:
- Feature Extraction Module: Utilizes multi-resolution features from PAT-H.
- Foveation Module: Maintains a dynamic working memory of attended and peripheral regions.
- Aggregation Module: Aggregates information from the working memory using a transformer decoder.
- Fixation Prediction Module: Predicts the next viewport fixation location (x, y) via a heatmap.
- Magnification Prediction Module: A novel component that predicts the magnification level (m) for the next fixation, considering probabilistic transitions.
A crucial preprocessing step is a scanpath simplification algorithm that condenses dense viewport trajectories into fewer "fixation" points while preserving semantic information, making them suitable for model training.
Datasets
The authors introduce a new dataset comprising:
- 1,016 attention scanpaths from 43 pathologists across 11 institutions.
- These scanpaths were collected while pathologists graded 123 WSIs of prostate cancer from the TCGA-PRAD dataset.
- This dataset is described as the largest to date for pathologist attention modeling.
Key Insights and Ideas
- Spatio-temporal attention is key: Simply predicting where pathologists look (heatmaps) isn't enough; understanding the sequence and timing of their gaze (scanpaths) is vital for effective training and decision support.
- Multi-resolution is clinically relevant: Pathologists explicitly select different magnifications (2X, 10X, etc.) to examine specific features. The model leverages this by incorporating features from multiple magnification levels, reflecting actual diagnostic reasoning.
- Probabilistic magnification prediction matters: Capturing the variability in how pathologists change magnification (increase, decrease, or stay the same) probabilistically leads to more realistic scanpath predictions than deterministic approaches.
- Scanpath simplification is necessary: Dense raw scanpath data is too noisy and voluminous for direct model training. A simplification algorithm that retains key semantic information is essential.
Key Results
- The proposed PAT model, particularly the PAT-ProbMag variant, outperforms various baseline models in predicting attention scanpaths.
- TokSimScan and NSS scores show significant improvements with PAT-ProbMag, indicating better alignment with pathologist scanpaths and fixation locations.
- The Semantic Sequence Score (SSS), measuring alignment with Gleason-graded tumor regions, is highest for PAT-ProbMag, outperforming baselines and even showing better agreement than inter-pathologist agreement (0.467 vs. 0.420).
- The PAT-Heatmap sub-network, especially when using Kang et al. features, consistently outperforms baselines in predicting attention heatmaps, achieving high CC and NSS scores.
- Qualitative comparisons show that PAT-predicted scanpaths more closely resemble pathologist scanpaths and exhibit stronger spatial correlation with tumor regions.
Limitations and Future Work
- Generalizability: While the model is designed to be domain-agnostic, it was primarily tested on prostate cancer. Future work will involve testing its effectiveness across multiple cancer types and pathology subspecialties.
- Explicit Semantic Information: The authors are exploring incorporating explicit semantic information (e.g., tumor segmentation maps, Gleason patterns) as model input to further improve predictions. They hypothesize this will significantly enhance model performance.
- Dataset Size: While the introduced dataset is large, further expansion across more cancer types is needed for broader validation.
Summary updated