GenSelfDiff-HIS: Generative Self-Supervision Using Diffusion for Histopathological Image Segmentation

Vishnuvardhan Purma, Suhas Srinath, Seshan Srirangarajan, Aanchal Kakkar, A. P. Prathosh

Abstract

GenSelfDiff-HIS is a novel self-supervised learning (SSL) framework designed for histopathological image segmentation. By leveraging generative diffusion models as a pretext task, the framework learns complex spatial structures from unannotated tissue slides. Subsequent fine-tuning with a specialized multi-loss function allows the model to achieve state-of-the-art performance while significantly reducing the reliance on expert-labeled data.

Introduction

Histopathological image segmentation—identifying structures like nuclei or tumors—is essential for cancer diagnosis. However, training deep learning models typically requires extensive pixel-level annotations from expert pathologists, creating a significant bottleneck. While Self-Supervised Learning (SSL) offers a way to utilize unannotated data, traditional predictive or contrastive tasks often fail to capture the dense spatial information necessary for high-quality segmentation. Generative models, particularly diffusion models, are better suited for this as they must learn the entire image distribution to reconstruct images from noise.

Methodology

The GenSelfDiff-HIS framework follows a two-stage approach:

  1. Generative Pre-training: A U-Net-based Denoising Diffusion Probabilistic Model (DDPM) is trained on unannotated images. It learns to reverse a process that adds Gaussian noise. To focus on meaningful tissue structures, the authors use Perception Prioritized (P2) weighting, emphasizing "coarse" and "content" features.
  2. Supervised Fine-tuning: The pre-trained U-Net is fine-tuned on a small labeled dataset. At inference, the model functions as a standard segmentation network (at time step $t=0$), avoiding the slow iterative sampling of standard diffusion.
  3. Multi-Loss Function: Fine-tuning employs Focal Loss to address class imbalance and a modified Structural Similarity (SS) loss to preserve geometric properties.
The GenSelfDiff-HIS framework: (a) Generative pre-training using a DDPM with P2 weighting, and (b) Supervised fine-tuning for segmentation.

Datasets

The method was evaluated on three distinct datasets:

  • GlaS: Gland segmentation in colon histology.
  • MoNuSeg: Multi-organ nucleus segmentation.
  • HN Cancer: A new dataset introduced by the authors containing 1,562 H&E-stained images of Head and Neck cancer, featuring complex classes like malignant cell islands and non-malignant stroma.

Results and Discussion

The proposed method consistently outperformed fully supervised baselines and other state-of-the-art SSL methods across various metrics, including Aggregated Jaccard Index (AJI), Intersection over Union (IoU), Hausdorff Distance (HD), and F1 score.

Quantitative comparison of GenSelfDiff-HIS against state-of-the-art supervised and self-supervised methods.

On the GlaS dataset, the method achieved an AJI of 0.8470, significantly higher than standard U-Nets (0.7565) and other SSL methods like VAEs (0.7372). The framework also demonstrated strong performance in low-data regimes and showed excellent cross-dataset generalization, suggesting it learns "universal" features of H&E-stained tissue.

Conclusion

GenSelfDiff-HIS demonstrates that generative diffusion is a powerful proxy for segmentation tasks. By utilizing the pre-trained weights at $t=0$, the model gains the representational power of diffusion without the inference-time speed penalty. Future work will focus on reducing label dependency further and exploring more segmentation-specific losses during pre-training.

Summary updated

BibTeX
@article{purma2023genselfdiff,
  author = {Vishnuvardhan Purma and Suhas Srinath and Seshan Srirangarajan and Aanchal Kakkar and A. P. Prathosh},
  title = {{GenSelfDiff-HIS: Generative Self-Supervision Using Diffusion for Histopathological Image Segmentation}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2023},
}
Figure