bioRxivBioinformaticsPreprint
stainlib: a python library for augmentation and normalization of histopathology H&E images
Sebastian OtáloraiD, Niccolò MariniiD, Damian PodareanuiD, Ruben Hekster, David TelleziD, Jeroen A. W. M. van der LaakiD, Henning MülleriD, Manfredo AtzoriiD
Abstract
Computational pathology is a domain of increasing scientific and social interest. The automatic analysis of histopathology images stained with Hematoxylin and Eosin (H&E) can help clinicians diagnose and quantify diseases. Computer vision methods based on deep learning can perform on par or better than pathologists in specific tasks [1, 2, 15]. Nevertheless, the visual heterogeneity in histopathology images due to batch effects, differences in preparation in different pathology laboratories, and the scanner can produce tissue appearance changes in the digitized whole-slide images. Such changes impede the application of the trained models in clinical scenarios where there is high variability in the images. We introduce stainlib, an easy-to-use and expandable python3 library that collects and unifies state-of-the-art methods for color augmentation and normalization of histopathology H&E images. stainlib also contains recent deep learning-based approaches that perform a robust stain-invariant training of CNN models. stainlib can help researchers build models robust to color domain shift by augmenting and harmonizing the training data, allowing the deployment of better models in the digital pathology practice.
- Citations
- 6
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- StainX: GPU-accelerated batch stain normalization for computational pathology at scale
Samir Moustafa, Yimin Zheng, André F. Rendeiro·bioRxiv·Aug 7, 2026
- HistoClean: Open-source Software for Histological Image Pre-processing and Augmentation to Improve Development of Robust Convolutional Neural Networks
K. D. McCombe, S. G. Craig, … J. A. James·bioRxiv·Jun 7, 2021
- StainStyleSampler: Clustering-based sampling of whole slide image appearances
Maya Maya Barbosa Silva, Sabine Maria Leh, Hrafn Weishaupt·Diagnostic PathologyPeer-reviewed·Feb 5, 2026
- HistoMIL: a Python package for training Multiple Instance Learning models on histopathology slides
S. Pan, M. Secrier·bioRxiv·Jun 2, 2023
- FalseColor-Python: a rapid intensity-leveling and digital-staining package for fluorescence-based slide-free digital pathology
R. Serafin, W. Xie, … J. T. C. Liu·bioRxiv·May 3, 2020
- Examining Batch Effect in Histopathology as a Distributionally Robust Optimization Problem
S. N. Hari, J. Nyman, … E. M. Van Allen·bioRxiv·Sep 14, 2021