Histopathological Domain Adaptation with Generative Adversarial Networks Bridging the Domain Gap Between Thyroid Cancer Histopathology Datasets

William Dee, Rana Alaaeldin Ibrahim, Eirini Marouli

TL;DR

This paper tackles the challenge of applying deep learning to thyroid cancer histopathology images, where limited and diverse datasets hinder model generalizability. By using a StyleGAN2-ADA to generate synthetic histopathology images from a small dataset, they significantly improved a classifier's ability to generalize to external, unseen data, particularly for challenging minority tumor subtypes.

What Problem Does This Paper Address?

Deep learning models excel at image classification, but their performance often plummets when applied to data from different sources (domains) than what they were trained on. This "domain gap" is a major hurdle in medical imaging, where acquiring large, diverse datasets is difficult and expensive. Specifically, thyroid cancer histopathology classification faces issues with limited training data and significant inter-observer variability among pathologists, especially for rare tumor subtypes. This makes it hard for AI models to reliably distinguish between these subtle variations, leading to potential misdiagnoses and unnecessary patient anxiety or treatment.

Methods

The core of this work lies in using Generative Adversarial Networks (GANs), specifically the StyleGAN2-ADA architecture, to bridge the domain gap. StyleGAN2-ADA is chosen for its ability to generate high-quality synthetic images even with limited training data. The authors employed a conditional GAN approach, meaning the GAN was trained to generate images for specific classes (e.g., "PTC-like" or "Non-PTC-like," and even finer subtypes).

To maximize the training data for the GAN, they extensively cropped and augmented the original whole-slide images into smaller patches. The generated synthetic images were then used to augment the training set for a deep learning classifier (DLC), which was based on a ResNet101 architecture. The effectiveness of the GAN augmentation was evaluated by testing the DLC on an external dataset.

Datasets

  • Tharun and Thompson (T&T) dataset: This was the primary dataset used for training the GAN and the initial DLC. It comprises 156 whole-slide images of thyroid gland tumors.
  • Niki-TCGA dataset: This external dataset served as the test set to evaluate the model's generalizability. It's a combination of samples from the Nikiforov repository and The Cancer Genome Atlas (TCGA) Thyroid Carcinoma study, known for its heterogeneity and challenging classifications.

Key Insights and Ideas

  • GANs can learn subtle histopathological features: Even with a small dataset (156 samples), StyleGAN2-ADA could learn to generate realistic synthetic images that captured the nuanced visual characteristics of different thyroid tumor subtypes.
  • Synthetic data effectively narrows the domain gap: Visualizations using UMAP showed that GAN-generated images helped to align the distributions of the training and testing datasets, making the classifier more robust to domain shifts.
  • Minority classes benefit most: The most significant improvements in classification accuracy were observed for the challenging, less frequent tumor subtypes (NIFTP and FVPTC), where inter-observer variability is high. This suggests GANs can help models overcome limitations in data scarcity for rare conditions.
  • Multi-class conditional GANs are superior for subtype differentiation: Training the GAN to generate specific subtypes (multi-class) yielded better results than a simple binary classification (PTC-like vs. Non-PTC-like) for differentiating complex subtypes.

Key Results

  • The StyleGAN2-ADA achieved a competitive FID score of 5.05, indicating high-quality synthetic image generation.
  • Augmenting the training data with GAN-generated images led to a significant improvement in overall accuracy by 36% and F1 score by 42% when tested on the external Niki-TCGA dataset, compared to a baseline model trained without synthetic data.
  • For the minority subtypes (NIFTP and FVPTC) on the T&T dataset, the multi-class GAN approach improved accuracy from 49.95% to 83.33%.
  • On the Niki-TCGA dataset, the MC100 (multi-class GAN) approach increased overall patient accuracy by 35.71% and F1 score by 42.30% over the baseline.

Limitations and Future Work

  • FTC classification challenges: For the Follicular Thyroid Carcinoma (FTC) class, accuracy slightly decreased with GAN augmentation. The authors attribute this to the inherent ambiguity in defining the boundary for "nuclear atypia" in FTC, leading to inter-observer variability that even GANs struggle to fully resolve.
  • Future architectures: The authors suggest exploring more advanced deep learning architectures like Swin Transformers or ConvNeXt for future work, to see if they can further benefit from synthetic data augmentation.
  • Explainable AI: The paper acknowledges the "black box" nature of deep learning and suggests that incorporating explainable AI techniques, such as self-attention GANs (SAGANs), could improve trust and interpretability for pathologists.
  • Style-transfer GANs: The potential of style-transfer GANs as an alternative approach to bridging domain gaps is also mentioned.

Summary updated

BibTeX
@inproceedings{dee2024histopathological,
  author = {William Dee and Rana Alaaeldin Ibrahim and Eirini Marouli},
  title = {{Histopathological Domain Adaptation with Generative Adversarial Networks Bridging the Domain Gap Between Thyroid Cancer Histopathology Datasets}},
  booktitle = {PLoS},
  year = {2024},
  doi = {10.1371/journal.pone.0310417},
}
Figure