Abstract
Analyzing gigapixel Whole Slide Images (WSIs) presents a significant challenge in digital pathology due to the high computational cost of modeling long-range dependencies and the necessity of integrating multiple tissue stains. We present MUSTANG (MUlti-STain self-AtteNtion Graph), an end-to-end pipeline that represents WSIs as sparse $k$-Nearest Neighbour Graphs. By leveraging Graph Attention Networks (GAT) and Self-Attention Graph Pooling (SAGPool), MUSTANG effectively captures both micro- and macro-architectural features across different stains. Evaluated on the R4RA clinical trial dataset, MUSTANG achieves state-of-the-art performance, outperforming the CLAM model with an AUC of 0.92 and an F1-score of 0.89, while maintaining computational efficiency.
Introduction
Digital pathology relies on Whole Slide Images (WSIs) that often exceed 100,000 pixels in each dimension. The primary challenge in analyzing these images is the "weakly supervised" nature of the task: labels are typically provided at the patient level rather than the pixel level. Traditional Multiple Instance Learning (MIL) methods partition slides into patches but often struggle to capture long-range spatial dependencies. While Transformers offer a solution through self-attention, their $O(N^2)$ complexity makes them computationally prohibitive for the thousands of patches generated from a single WSI. Furthermore, clinical diagnosis often requires integrating information from multiple chemical stains (e.g., H&E and IHC), a capability lacking in many current AI models.
Methodology
The MUSTANG pipeline transforms the multi-stain WSI analysis into a graph-based learning problem by representing a patient's set of slides as a single sparse graph.
- Segmentation and Feature Extraction: A UNet model identifies tissue regions, which are then divided into $224 \times 224$ pixel patches. Each patch is encoded into a 1024-dimensional feature vector using a VGG16 backbone.
- Sparse Graph Construction: To manage computational complexity, MUSTANG constructs a sparse $k$-Nearest Neighbour Graph ($k$-NNG). Edges are established only between patches that are similar in the high-dimensional feature space, effectively reducing the attention mechanism's overhead.
- Graph Attention and Pooling: The model utilizes Graph Attention Networks (GAT) to learn the relative importance of neighboring nodes. Self-Attention Graph Pooling (SAGPool) is then applied to hierarchically downsample the graph, preserving critical topological structures while focusing on the most informative regions for classification.
Experimental Setup
The model was validated using the R4RA (Rituximab vs. Tocilizumab in RA) clinical trial dataset, comprising 651 WSIs from 164 patients. The dataset includes four distinct stains: Hematoxylin & Eosin (H&E), CD20+, CD68+, and CD138+. The objective was the binary classification of inflammatory pathotypes (Lymphoid vs. Myeloid/Fibroid), a key predictor for drug response in Rheumatoid Arthritis.
Results and Discussion
MUSTANG demonstrates superior performance compared to the established CLAM (Clustering-constrained Attention Multiple-instance learning) baseline.
The model achieved an AUC of 0.92 and an F1-score of 0.89, compared to CLAM's 0.88 and 0.84, respectively. Notably, MUSTANG reached a sensitivity of 0.93, which is critical for clinical applications to minimize false negatives. Despite its higher parameter count (3.29M vs. 0.47M), MUSTANG's inference time remained comparable to CLAM (~11 minutes), validating the efficiency of the sparse graph approach.
Key insights from the study include:
- Sparsity as an Advantage: Optimal results were achieved with a very sparse graph ($k=5$), suggesting that local feature-space neighborhoods contain sufficient biological signals.
- Multi-Stain Integration: MUSTANG successfully fuses information from disparate stains without requiring complex image registration, treating patches from different slides as nodes within a unified patient-level graph.
Conclusion and Future Work
MUSTANG provides a robust framework for multi-stain WSI analysis by combining graph-based representations with self-attention. Future work will focus on enhancing model interpretability through attention heatmaps and exploring the integration of physical spatial relationships alongside feature-based edges. Testing on broader, multi-stain public datasets remains a priority for further validation.
Summary updated