Adaptive Stain Normalization for Cross-Domain Medical Histology
Tianyue Xu, Yanlin Wu, Abhai K. Tripathi, Matthew M. Ippolito, Benjamin D. Haeffele
TL;DR
The paper addresses color variability in histology images that induces domain shift and degrades cross-domain DL performance. It introduces BeerLaNet, a trainable, physics-informed stain normalization module based on the Beer-Lambert law and algorithmic unrolling of a nonnegative matrix factorization objective, designed to be a plug-and-play component with any backbone. Key contributions include adaptive stain disentanglement without predefined templates, an end-to-end trainable framework with learnable regularization and initialization, and robust cross-domain performance across malaria parasite detection/classification, whole-blood cell detection, and Camelyon17-WILDS. Experiments show BeerLaNet outperforms traditional normalization methods and many baselines with consistent gains across datasets, indicating improved generalization under cross-domain staining conditions.
Abstract
Deep learning advances have revolutionized automated digital pathology analysis. However, differences in staining protocols and imaging conditions can introduce significant color variability. In deep learning, such color inconsistency often reduces performance when deploying models on data acquired under different conditions from the training data, a challenge known as domain shift. Many existing methods attempt to address this problem via color normalization but suffer from several notable drawbacks such as introducing artifacts or requiring careful choice of a template image for stain mapping. To address these limitations, we propose a trainable color normalization model that can be integrated with any backbone network for downstream tasks such as object detection and classification. Based on the physics of the imaging process per the Beer-Lambert law, our model architecture is derived via algorithmic unrolling of a nonnegative matrix factorization (NMF) model to extract stain-invariant structural information from the original pathology images, which serves as input for further processing. Experimentally, we evaluate the method on publicly available pathology datasets and an internally curated collection of malaria blood smears for cross-domain object detection and classification, where our method outperforms many state-of-the-art stain normalization methods. Our code is available at https://github.com/xutianyue/BeerLaNet.
