Tackling stain variability using CycleGAN-based stain augmentation
- PMID: 36268102
- PMCID: PMC9577138
- DOI: 10.1016/j.jpi.2022.100140
Tackling stain variability using CycleGAN-based stain augmentation
Abstract
Background: Considerable inter- and intra-laboratory stain variability exists in pathology, representing a challenge in development and application of deep learning (DL) approaches. Since tackling all sources of stain variability with manual annotation is not feasible, we here investigated and compared unsupervised DL approaches to reduce the consequences of stain variability in kidney pathology.
Methods: We aimed to improve the applicability of a pretrained DL segmentation model to 3 external multi-centric cohorts with large stain variability. In contrast to the traditional approach of training generative adversarial networks (GAN) for stain normalization, we here propose to tackle stain variability by data augmentation. We augment the training data of the pretrained model by the stain variability using CycleGANs and then retrain the model on the stain-augmented dataset. We compared the performance of i/ the unmodified pretrained segmentation model with ii/ CycleGAN-based stain normalization, iii/ a feature-preserving modification to ii/ for improved normalization, and iv/ the proposed stain-augmented model.
Results: The proposed stain-augmented model showed highest mean segmentation accuracy in all external cohorts and maintained comparable performance on the training cohort. However, the increase in performance was only marginal compared to the pretrained model. CycleGAN-based stain normalization suffered from encoded imperceptible information into the normalizations that confused the pretrained model and thus resulted in slightly worse performance.
Conclusions: Our findings suggest that stain variability can be tackled more effectively by augmenting data by it than by following the commonly used approach of normalizing the stain. However, the applicability of this approach providing only a rather slight performance increase has to be weighted against an additional carbon footprint.
Keywords: Deep learning; Digital pathology; Kidney; Segmentation; Stain augmentation; Stain normalization.
© 2022 The Authors.
Conflict of interest statement
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Figures




Similar articles
-
Improving unsupervised stain-to-stain translation using self-supervision and meta-learning.J Pathol Inform. 2022 Jun 20;13:100107. doi: 10.1016/j.jpi.2022.100107. eCollection 2022. J Pathol Inform. 2022. PMID: 36268068 Free PMC article.
-
The role of unpaired image-to-image translation for stain color normalization in colorectal cancer histology classification.Comput Methods Programs Biomed. 2023 Jun;234:107511. doi: 10.1016/j.cmpb.2023.107511. Epub 2023 Mar 26. Comput Methods Programs Biomed. 2023. PMID: 37011426
-
Residual cyclegan for robust domain transformation of histopathological tissue slides.Med Image Anal. 2021 May;70:102004. doi: 10.1016/j.media.2021.102004. Epub 2021 Feb 18. Med Image Anal. 2021. PMID: 33647784
-
Generative Adversarial Networks in Digital Pathology and Histopathological Image Processing: A Review.J Pathol Inform. 2021 Nov 3;12:43. doi: 10.4103/jpi.jpi_103_20. eCollection 2021. J Pathol Inform. 2021. PMID: 34881098 Free PMC article. Review.
-
Insights and Considerations in Development and Performance Evaluation of Generative Adversarial Networks (GANs): What Radiologists Need to Know.Diagnostics (Basel). 2024 Aug 13;14(16):1756. doi: 10.3390/diagnostics14161756. Diagnostics (Basel). 2024. PMID: 39202244 Free PMC article. Review.
Cited by
-
ROSIE: AI generation of multiplex immunofluorescence staining from histopathology images.bioRxiv [Preprint]. 2024 Nov 18:2024.11.10.622859. doi: 10.1101/2024.11.10.622859. bioRxiv. 2024. Update in: Nat Commun. 2025 Aug 16;16(1):7633. doi: 10.1038/s41467-025-62346-0. PMID: 39605711 Free PMC article. Updated. Preprint.
-
Next-Generation Morphometry for pathomics-data mining in histopathology.Nat Commun. 2023 Jan 28;14(1):470. doi: 10.1038/s41467-023-36173-0. Nat Commun. 2023. PMID: 36709324 Free PMC article.
-
ROSIE: AI generation of multiplex immunofluorescence staining from histopathology images.Nat Commun. 2025 Aug 16;16(1):7633. doi: 10.1038/s41467-025-62346-0. Nat Commun. 2025. PMID: 40819165 Free PMC article.
References
-
- Tellez D., Litjens G., Bandi P., et al. 2019. Quantifying the effects of data augmentation and stain color normalization in convolutional neural networks for computational pathology. - PubMed
-
- Shaban M.T., Baur C., Navab N., Albarqouni S. 2019. Staingan: Stain Style Transfer for Digital Histological Images.
-
- Salehi P., Chalechale A. 2020. Pix2Pix-based Stain-to-Stain Translation: A Solution for Robust Stain Normalization in Histopathology Images Analysis.
LinkOut - more resources
Full Text Sources