{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,23]],"date-time":"2026-04-23T02:46:50Z","timestamp":1776912410046,"version":"3.51.2"},"reference-count":34,"publisher":"MDPI AG","issue":"7","license":[{"start":{"date-parts":[[2022,7,20]],"date-time":"2022-07-20T00:00:00Z","timestamp":1658275200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100002347","name":"German Federal Ministry of Education and Research (BMBF)","doi-asserted-by":"publisher","award":["05M20LBD"],"award-info":[{"award-number":["05M20LBD"]}],"id":[{"id":"10.13039\/501100002347","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100002347","name":"German Federal Ministry of Education and Research (BMBF)","doi-asserted-by":"publisher","award":["281474342\/GRK2224\/1"],"award-info":[{"award-number":["281474342\/GRK2224\/1"]}],"id":[{"id":"10.13039\/501100002347","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001659","name":"Deutsche Forschungsgemeinschaft\u2014(DFG, German Research Foundation)","doi-asserted-by":"publisher","award":["05M20LBD"],"award-info":[{"award-number":["05M20LBD"]}],"id":[{"id":"10.13039\/501100001659","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001659","name":"Deutsche Forschungsgemeinschaft\u2014(DFG, German Research Foundation)","doi-asserted-by":"publisher","award":["281474342\/GRK2224\/1"],"award-info":[{"award-number":["281474342\/GRK2224\/1"]}],"id":[{"id":"10.13039\/501100001659","id-type":"DOI","asserted-by":"publisher"}]},{"name":"German Federal Ministry for Economic Affairs","award":["05M20LBD"],"award-info":[{"award-number":["05M20LBD"]}]},{"name":"German Federal Ministry for Economic Affairs","award":["281474342\/GRK2224\/1"],"award-info":[{"award-number":["281474342\/GRK2224\/1"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Imaging"],"abstract":"<jats:p>In recent years, numerous deep-learning approaches have been developed for the analysis of histopathology Whole Slide Images (WSI). A recurrent issue is the lack of generalization ability of a model that has been trained with images of one laboratory and then used to analyze images of a different laboratory. This occurs mainly due to the use of different scanners, laboratory procedures, and staining variations. This can produce strong color differences, which change not only the characteristics of the image, such as the contrast, brightness, and saturation, but also create more complex style variations. In this paper, we present a deep-learning solution based on contrastive learning to transfer from one staining style to another: StainCUT. This method eliminates the need to choose a reference frame and does not need paired images with different staining to learn the mapping between the stain distributions. Additionally, it does not rely on the CycleGAN approach, which makes the method efficient in terms of memory consumption and running time. We evaluate the model using two datasets that consist of the same specimens digitized with two different scanners. We also apply it as a preprocessing step for the semantic segmentation of metastases in lymph nodes. The model was trained on data from one of the laboratories and evaluated on data from another. The results validate the hypothesis that stain normalization indeed improves the performance of the model. Finally, we also investigate and compare the application of the stain normalization step during the training of the model and at inference.<\/jats:p>","DOI":"10.3390\/jimaging8070202","type":"journal-article","created":{"date-parts":[[2022,7,20]],"date-time":"2022-07-20T11:22:24Z","timestamp":1658316144000},"page":"202","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":14,"title":["StainCUT: Stain Normalization with Contrastive Learning"],"prefix":"10.3390","volume":"8","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-1224-9319","authenticated-orcid":false,"given":"Jos\u00e9 Carlos","family":"Guti\u00e9rrez P\u00e9rez","sequence":"first","affiliation":[{"name":"Center for Industrial Mathematics, University of Bremen, 28359 Bremen, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6550-6043","authenticated-orcid":false,"given":"Daniel","family":"Otero Baguer","sequence":"additional","affiliation":[{"name":"Center for Industrial Mathematics, University of Bremen, 28359 Bremen, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1448-8345","authenticated-orcid":false,"given":"Peter","family":"Maass","sequence":"additional","affiliation":[{"name":"Center for Industrial Mathematics, University of Bremen, 28359 Bremen, Germany"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2022,7,20]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"286","DOI":"10.1002\/path.5331","article-title":"Computational pathology definitions, best practices, and recommendations for regulatory guidance: A white paper from the Digital Pathology Association","volume":"249","author":"Abels","year":"2019","journal-title":"J. Pathol."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"775","DOI":"10.1038\/s41591-021-01343-4","article-title":"Deep learning in histopathology: The path to the clinic","volume":"27","author":"Litjens","year":"2021","journal-title":"Nat. Med."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Le\u2019Clerc Arrastia, J., Heilenk\u00f6tter, N., Otero Baguer, D., Hauberg-Lotte, L., Boskamp, T., Hetzer, S., Duschner, N., Schaller, J., and Maass, P. (2021). Deeply Supervised UNet for Semantic Segmentation to Assist Dermatopathological Assessment of Basal Cell Carcinoma. J. Imaging, 7.","DOI":"10.3390\/jimaging7040071"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"73","DOI":"10.1080\/10520290500138372","article-title":"The long history of hematoxylin","volume":"80","author":"Titford","year":"2005","journal-title":"Biotech. Histochem."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"261","DOI":"10.1080\/10520290310001633725","article-title":"Traditional staining for routine diagnostic pathology including the role of tannic acid. 1. Value and limitations of the hematoxylin-eosin stain","volume":"78","author":"Wittekind","year":"2003","journal-title":"Biotech. Histochem."},{"key":"ref_6","unstructured":"Bancroft, J.D., and Gamble, M. (2008). Theory and Practice of Histological Techniques, Elsevier Health Sciences."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Monaco, J., Hipp, J., Lucas, D., Smith, S., Balis, U., and Madabhushi, A. (2012, January 1\u20135). Image segmentation with implicit color standardization using spatially constrained expectation maximization: Detection of nuclei. Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, Nice, France.","DOI":"10.1007\/978-3-642-33415-3_45"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Park, T., Efros, A.A., Zhang, R., and Zhu, J.Y. (2020). Contrastive learning for unpaired image-to-image translation. European Conference on Computer Vision, Springer.","DOI":"10.1007\/978-3-030-58545-7_19"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"34","DOI":"10.1109\/38.946629","article-title":"Color transfer between images","volume":"21","author":"Reinhard","year":"2001","journal-title":"IEEE Comput. Graph. Appl."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"1729","DOI":"10.1109\/TBME.2014.2303294","article-title":"A nonlinear mapping approach to stain normalization in digital histopathology images using image-specific color deconvolution","volume":"61","author":"Khan","year":"2014","journal-title":"IEEE Trans. Biomed. Eng."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"404","DOI":"10.1109\/TMI.2015.2476509","article-title":"Stain specific standardization of whole-slide histopathological images","volume":"35","author":"Bejnordi","year":"2015","journal-title":"IEEE Trans. Med. Imaging"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Macenko, M., Niethammer, M., Marron, J.S., Borland, D., Woosley, J.T., Guan, X., Schmitt, C., and Thomas, N.E. (July, January 28). A method for normalizing histology slides for quantitative analysis. Proceedings of the 2009 IEEE International Symposium on Biomedical Imaging: From Nano to Macro, Boston, MA, USA.","DOI":"10.1109\/ISBI.2009.5193250"},{"key":"ref_13","first-page":"291","article-title":"Quantification of histochemical staining by color deconvolution","volume":"23","author":"Ruifrok","year":"2001","journal-title":"Anal. Quant. Cytol. Histol."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"1962","DOI":"10.1109\/TMI.2016.2529665","article-title":"Structure-preserving color normalization and sparse stain separation for histological images","volume":"35","author":"Vahadane","year":"2016","journal-title":"IEEE Trans. Med. Imaging"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"528","DOI":"10.1118\/1.4939130","article-title":"A method for normalizing pathology images to improve feature extraction for quantitative pathology","volume":"43","author":"Tam","year":"2016","journal-title":"Med. Phys."},{"key":"ref_16","first-page":"2672","article-title":"Generative adversarial nets","volume":"27","author":"Goodfellow","year":"2014","journal-title":"Adv. Neural Inf. Process. Syst."},{"key":"ref_17","unstructured":"Kingma, D.P., and Welling, M. (2013). Auto-encoding variational bayes. arXiv."},{"key":"ref_18","unstructured":"Zanjani, F.G., Zinger, S., Bejnordi, B.E., van der Laak, J.A., and de With, P.H.N. (2022, July 13). Histopathology stain-color normalization using deep generative models. Medical Imaging with Deep Learning. Available online: https:\/\/openreview.net\/forum?id=SkjdxkhoG."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Shaban, M.T., Baur, C., Navab, N., and Albarqouni, S. (2019, January 8\u201311). Staingan: Stain style transfer for digital histological images. Proceedings of the 2019 IEEE 16th International Symposium on Biomedical Imaging (ISBI 2019), Venice, Italy.","DOI":"10.1109\/ISBI.2019.8759152"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Zhu, J.Y., Park, T., Isola, P., and Efros, A.A. (2017, January 22\u201329). Unpaired image-to-image translation using cycle-consistent adversarial networks. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.","DOI":"10.1109\/ICCV.2017.244"},{"key":"ref_21","unstructured":"de Bel, T., Hermsen, M., Kers, J., van der Laak, J., and Litjens, G. (2018, January 4\u20136). Stain-transforming cycle-consistent generative adversarial networks for improved segmentation of renal histopathology. Proceedings of the International Conference on Medical Imaging with Deep Learning\u2014Full Paper Track, Amsterdam, The Netherlands."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Ciompi, F., Geessink, O., Bejnordi, B.E., De Souza, G.S., Baidoshvili, A., Litjens, G., Van Ginneken, B., Nagtegaal, I., and Van Der Laak, J. (2017, January 18\u201321). The importance of stain normalization in colorectal tissue classification with convolutional networks. Proceedings of the 2017 IEEE 14th International Symposium on Biomedical Imaging (ISBI 2017), Melbourne, Australia.","DOI":"10.1109\/ISBI.2017.7950492"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"300","DOI":"10.3389\/fbioe.2019.00300","article-title":"Assessing the Impact of Color Normalization in Convolutional Neural Network-Based Nuclei Segmentation Frameworks","volume":"7","author":"Pontalba","year":"2019","journal-title":"Front. Bioeng. Biotechnol."},{"key":"ref_24","unstructured":"Chen, X., Fan, H., Girshick, R., and He, K. (2020). Improved baselines with momentum contrastive learning. arXiv."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Ronneberger, O., Fischer, P., and Brox, T. (2015, January 5\u20139). U-net: Convolutional networks for biomedical image segmentation. Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, Munich, Germany.","DOI":"10.1007\/978-3-319-24574-4_28"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Isola, P., Zhu, J.Y., Zhou, T., and Efros, A.A. (2017, January 21\u201326). Image-to-image translation with conditional adversarial networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.","DOI":"10.1109\/CVPR.2017.632"},{"key":"ref_27","unstructured":"Wang, Z., Simoncelli, E., and Bovik, A. (2003, January 9\u201312). Multiscale structural similarity for image quality assessment. Proceedings of the Thrity-Seventh Asilomar Conference on Signals, Systems Computers, Pacific Grove, CA, USA."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"2378","DOI":"10.1109\/TIP.2011.2109730","article-title":"FSIM: A feature similarity index for image quality assessment","volume":"20","author":"Zhang","year":"2011","journal-title":"IEEE Trans. Image Process."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Zhang, R., Isola, P., Efros, A.A., Shechtman, E., and Wang, O. (2018). The Unreasonable Effectiveness of Deep Features as a Perceptual Metric, CVPR.","DOI":"10.1109\/CVPR.2018.00068"},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"giy065","DOI":"10.1093\/gigascience\/giy065","article-title":"1399 H&E-stained sentinel lymph node sections of breast cancer patients: The CAMELYON dataset","volume":"7","author":"Litjens","year":"2018","journal-title":"GigaScience"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27\u201330). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.","DOI":"10.1109\/CVPR.2016.90"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Student (1908). The probable error of a mean. Biometrika, 6, 1\u201325.","DOI":"10.1093\/biomet\/6.1.1"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"675","DOI":"10.1080\/01621459.1937.10503522","article-title":"The use of ranks to avoid the assumption of normality implicit in the analysis of variance","volume":"32","author":"Friedman","year":"1937","journal-title":"J. Am. Stat. Assoc."},{"key":"ref_34","unstructured":"Nemenyi, P.B. (1963). Distribution-Free Multiple Comparisons, Princeton University."}],"container-title":["Journal of Imaging"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2313-433X\/8\/7\/202\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T23:54:28Z","timestamp":1760140468000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2313-433X\/8\/7\/202"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,7,20]]},"references-count":34,"journal-issue":{"issue":"7","published-online":{"date-parts":[[2022,7]]}},"alternative-id":["jimaging8070202"],"URL":"https:\/\/doi.org\/10.3390\/jimaging8070202","relation":{},"ISSN":["2313-433X"],"issn-type":[{"value":"2313-433X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,7,20]]}}}