Surformer: An interpretable pattern-perceptive survival transformer for cancer survival prediction from histopathology whole slide images

Zhikang Wang, Qian Gao, Xiaoping Yi, Xinyu Zhang, Yiwen Zhang, Daokun Zhang, Pietro Liò, Chris Bain, Richard Bassed, Shanshan Li, Yuming Guo, Seiya Imoto, Jianhua Yao, Roger J. Daly, Jiangning Song

Introduction

Predicting patient survival from Whole Slide Images (WSIs) presents a significant "needle in a haystack" challenge. These gigapixel images, often exceeding $50,000 \times 50,000$ pixels, contain a wealth of information that must be distilled into a single prognostic risk score. While deep learning has revolutionized cancer diagnosis, survival prediction is inherently more complex, requiring the integration of local cellular details with global tissue architecture.

Existing models often function as "black boxes," providing risk scores without explaining the underlying histological patterns. Furthermore, standard Multiple Instance Learning (MIL) methods frequently struggle to capture the intricate, long-range dependencies between disparate tumor regions. To address these issues, the authors introduce Surformer, a novel transformer-based framework designed for interpretable cancer survival prediction.

Methodology: The Surformer Framework

The Surformer architecture consists of three primary stages: pre-processing, a feed-forward prediction step, and an analysis/interpretation phase.

The Surformer pipeline, illustrating the pre-processing steps, the feed-forward architecture featuring RRCA and MHSA modules, and the subsequent analysis and interpretation tools.

Pre-processing and Feature Embedding

WSIs are first segmented to isolate tissue from the background and then tiled into $256 \times 256$ patches. These patches are converted into high-dimensional feature vectors using a pre-trained ResNet50 backbone, creating a set of instance embeddings for each slide.

Ratio-Reserved Cross-Attention (RRCA)

The core innovation of Surformer is the Ratio-Reserved Cross-Attention (RRCA) module. This module utilizes learnable "prototypes" ($P_{global}$ and $P_{locals}$) that function as pattern detectors. These prototypes scan the patch embeddings to identify specific histological features. Crucially, the RRCA calculates ratio factors (rfs), which represent the proportion of the slide corresponding to each prototype. This provides a quantifiable link between visual patterns and clinical outcomes.

Disentangling Loss and Transformer Backbone

To ensure that the model identifies distinct biological features, a Disentangling Loss ($\mathcal{L}_{dis}$) is employed. This loss function encourages different local prototypes to focus on non-overlapping histological patterns. The model then utilizes Multi-Head Self-Attention (MHSA) and Multi-Head Cross-Attention (MHCA) to model the complex interactions between these identified patterns, ultimately predicting the hazard rate.

Experimental Setup and Datasets

The model's performance was rigorously evaluated using five large-scale datasets from The Cancer Genome Atlas (TCGA):

  • BLCA: Bladder Urothelial Carcinoma
  • BRCA: Breast Invasive Carcinoma
  • GBMLGG: Glioblastoma & Lower Grade Glioma
  • LUAD: Lung Adenocarcinoma
  • UCEC: Uterine Corpus Endometrial Carcinoma

Key Results and Interpretability

Surformer achieved state-of-the-art performance, outperforming established methods such as Patch-GCN and DeepAttnMISL. It reached an overall C-index of 0.687, a significant improvement over the previous benchmark of 0.642.

Quantifying Histological Patterns

One of the most powerful features of Surformer is its ability to quantify patterns without manual patch-level annotations. By analyzing the distribution of ratio factors ($rfs$), researchers can identify which histological features are prevalent in high-risk vs. low-risk cohorts.

Distribution analysis of ratio factors (rfs) across different prototypes, showing how the model distinguishes between high-risk and low-risk patient groups based on histological pattern prevalence.

Biological Validation

The authors validated the model's findings using external tools like HoverNet. In Breast Cancer (BRCA) cases, Surformer correctly identified that high-risk patients often exhibited vast immune cell infiltrates, a finding consistent with clinical literature. Kaplan-Meier survival curves further demonstrated the model's ability to stratify patients into statistically distinct risk groups ($P < 0.05$) across all tested cancer types.

Conclusion and Future Directions

Surformer represents a significant step forward in making deep learning for pathology both accurate and interpretable. By bridging the gap between gigapixel image data and clinical statistics through ratio factors, it provides pathologists with actionable insights. Future work will focus on incorporating more granular spatial context and integrating multi-modal data, including genomic sequences, to further refine survival predictions.

Reference: Wang, Z., et al. (2023). Surformer: An interpretable pattern-perceptive survival transformer for cancer survival prediction from histopathology whole slide images. Computer Methods and Programs in Biomedicine, 241, 107733.

Summary updated

BibTeX
@article{wang2023surformer,
  author = {Zhikang Wang and Qian Gao and Xiaoping Yi and Xinyu Zhang and Yiwen Zhang and Daokun Zhang and Pietro Liò and Chris Bain and Richard Bassed and Shanshan Li and Yuming Guo and Seiya Imoto and Jianhua Yao and Roger J. Daly and Jiangning Song},
  title = {{Surformer: An interpretable pattern-perceptive survival transformer for cancer survival prediction from histopathology whole slide images}},
  journal = {Comput. Methods Programs Biomed.},
  year = {2023},
  doi = {10.1016/j.cmpb.2023.107733},
}
Figure