TL;DR
This paper introduces StainNet, a new family of self-supervised foundation models specifically trained on immunohistochemistry (IHC) and special stains, addressing a key limitation of existing models that are primarily trained on H&E stains. StainNet demonstrates strong performance on various downstream tasks, highlighting the importance of domain-specific pre-training for non-H&E pathology images.
What Problem Does This Paper Address?
Computational pathology has seen significant advancements thanks to deep learning models, particularly foundation models pre-trained on large datasets of histological images. These models act as powerful feature extractors for tasks like cancer screening and tumor analysis. However, the vast majority of these existing foundation models are trained on Hematoxylin-Eosin (H&E) stained images, which are the most common in clinical practice. While H&E provides general structural information, other stains like IHC and special stains are crucial for visualizing specific proteins, cell subtypes, and cellular processes, playing vital roles in cancer diagnosis, subtyping, and treatment selection. The problem is that models pre-trained solely on H&E images often struggle to generalize effectively to these non-H&E stains due to significant differences in staining mechanisms, texture, and visual appearance. This limits their applicability in a broader range of clinical pathology scenarios.
Methods
The authors propose StainNet, a collection of foundation models based on the Vision Transformer (ViT) architecture. The core of StainNet's training relies on a self-supervised learning (SSL) approach called DINO (self-distillation with no labels). DINO utilizes a student-teacher network setup where the student learns to match the teacher's output. This is achieved by minimizing a cross-entropy loss between their predictions on different views (global and local crops) of the same image. This method allows the ViT models to learn robust, task-agnostic feature representations from unlabeled pathology images. StainNet includes two model sizes: ViT-Small and ViT-Base.
Datasets
The primary dataset used for pre-training StainNet is the HISTAI database, a large-scale collection of whole-slide images (WSIs). Specifically, the authors utilized 20,231 non-H&E stained WSIs from HISTAI, from which approximately 1.4 million patch images (224x224 pixels) were extracted for training.
For downstream evaluation, StainNet was tested on a variety of datasets:
- In-house IHC WSI tasks: NTUH-Ki67-Liver (3-class).
- Public IHC ROI tasks: BCI (HER2 expression), MIST (4 biomarkers: HER2, Ki67, ER, PR).
- In-house special stain ROI tasks: Glomerulus-Masson, Glomerulus-PAS, Glomerulus-PASM.
- Public H&E ROI tasks (for comparison): CRC-100K, KatherMS.
- Public H&E WSI task (for comparison): PANDA-Karo.
Key Insights and Ideas
- Domain-specific pre-training matters: Training foundation models on non-H&E stains (like IHC and special stains) leads to significantly better performance on downstream tasks involving these specific stain types compared to models pre-trained only on H&E.
- ViT architecture is suitable for diverse stains: The Vision Transformer architecture, when pre-trained with SSL on a large and diverse set of non-H&E images, can learn rich representations that are transferable to various pathology tasks.
- DINO is effective for pathology SSL: The DINO framework proves to be a capable SSL method for learning from unlabeled histopathology images, enabling the development of powerful foundation models without manual annotations.
- Model size vs. performance trade-off: While larger models (StainNet-Base) generally perform better, StainNet-Small demonstrates a remarkable balance between computational efficiency and strong performance, outperforming models of similar or even larger sizes on certain tasks.
- Pre-training data scale is crucial: Ablation studies showed that larger pre-training datasets lead to improved downstream performance, validating the scalability of DINO for pathology.
Key Results
StainNet models, particularly StainNet-Base, achieved state-of-the-art or highly competitive results across multiple downstream tasks, including IHC and special stain classification. For instance, on the P53-UCEC dataset, StainNet-Base outperformed other models, including billion-scale ones, by a significant margin in balanced accuracy. Even the smaller StainNet-Small model showed strong performance, often outperforming models of similar parameter sizes. In image retrieval tasks on the MIST dataset, StainNet models consistently achieved the best Recall@K and mAP@K scores, indicating their ability to learn a well-structured embedding space for special staining images.
Limitations and Future Work
- Limitations:
- The HISTAI dataset, while large, exhibits ambiguity in naming conventions and inconsistent annotations for non-H&E stains, making precise categorization challenging.
- While StainNet-Base shows strong performance on non-H&E tasks, it did not significantly improve performance on H&E tasks compared to other models, suggesting that H&E-specific models might still be superior for those specific tasks.
- The computational cost of training larger models like StainNet-Base is substantial.
- Future Work:
- Develop larger StainNet models by expanding the pre-training dataset and scaling model parameters.
- Explore integrating StainNet with H&E-based foundation models for multimodal applications (e.g., survival prognosis, therapy response prediction).
- Further investigate the impact of pre-training iterations and loss curve behavior on representation quality.
- Encourage future SSL development in computational pathology to consider allocating more training epochs for optimal model performance.
Summary updated