{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,25]],"date-time":"2026-11-25T04:17:12Z","timestamp":1795580232850,"version":"4.11.0"},"reference-count":51,"publisher":"MDPI AG","issue":"5","license":[{"start":{"date-parts":[[2024,4,30]],"date-time":"2024-04-30T00:00:00Z","timestamp":1714435200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"HORIZON EUROPE Marie Sklodowska-Curie Actions, BosomShield project","award":["101073222"],"award-info":[{"award-number":["101073222"]}]},{"name":"HORIZON EUROPE Marie Sklodowska-Curie Actions, BosomShield project","award":["D.M. 117\/2023"],"award-info":[{"award-number":["D.M. 117\/2023"]}]},{"name":"Next-Generation EU","award":["101073222"],"award-info":[{"award-number":["101073222"]}]},{"name":"Next-Generation EU","award":["D.M. 117\/2023"],"award-info":[{"award-number":["D.M. 117\/2023"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Imaging"],"abstract":"<jats:p>This paper introduces a self-attention Vision Transformer model specifically developed for classifying breast cancer in histology images. We examine various training strategies and configurations, including pretraining, dimension resizing, data augmentation and color normalization strategies, patch overlap, and patch size configurations, in order to evaluate their impact on the effectiveness of the histology image classification. Additionally, we provide evidence for the increase in effectiveness gathered through geometric and color data augmentation techniques. We primarily utilize the BACH dataset to train and validate our methods and models, but we also test them on two additional datasets, BRACS and AIDPATH, to verify their generalization capabilities. Our model, developed from a transformer pretrained on ImageNet, achieves an accuracy rate of 0.91 on the BACH dataset, 0.74 on the BRACS dataset, and 0.92 on the AIDPATH dataset. Using a model based on the prostate small and prostate medium HistoEncoder models, we achieve accuracy rates of 0.89 and 0.86, respectively. Our results suggest that pretraining on large-scale general datasets like ImageNet is advantageous. We also show the potential benefits of using domain-specific pretraining datasets, such as extensive histopathological image collections as in HistoEncoder, though not yet with clear advantages.<\/jats:p>","DOI":"10.3390\/jimaging10050108","type":"journal-article","created":{"date-parts":[[2024,5,3]],"date-time":"2024-05-03T08:02:22Z","timestamp":1714723342000},"page":"108","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":49,"title":["Optimizing Vision Transformers for Histopathology: Pretraining and Normalization in Breast Cancer Classification"],"prefix":"10.3390","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0004-0150-7468","authenticated-orcid":false,"given":"Giulia Lucrezia","family":"Baroni","sequence":"first","affiliation":[{"name":"Department of Mathematics, Computer Science and Physics, University of Udine, 33100 Udine, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-4615-4772","authenticated-orcid":false,"given":"Laura","family":"Rasotto","sequence":"additional","affiliation":[{"name":"Department of Mathematics, Computer Science and Physics, University of Udine, 33100 Udine, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9191-3280","authenticated-orcid":false,"given":"Kevin","family":"Roitero","sequence":"additional","affiliation":[{"name":"Department of Mathematics, Computer Science and Physics, University of Udine, 33100 Udine, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Angelica","family":"Tulisso","sequence":"additional","affiliation":[{"name":"Istituto di Anatomia Patologica, Azienda Sanitaria Universitaria Friuli Centrale, 33100 Udine, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Carla","family":"Di Loreto","sequence":"additional","affiliation":[{"name":"Istituto di Anatomia Patologica, Azienda Sanitaria Universitaria Friuli Centrale, 33100 Udine, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0144-3802","authenticated-orcid":false,"given":"Vincenzo","family":"Della Mea","sequence":"additional","affiliation":[{"name":"Department of Mathematics, Computer Science and Physics, University of Udine, 33100 Udine, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,4,30]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"20552076231194551","DOI":"10.1177\/20552076231194551","article-title":"Digital pathology world tour","volume":"9","author":"Rizzo","year":"2023","journal-title":"Digit Health"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"e14464","DOI":"10.2196\/14464","article-title":"Breast cancer detection and diagnosis using mammographic data: Systematic review","volume":"21","author":"Gardezi","year":"2019","journal-title":"J. Med. Internet Res."},{"key":"ref_3","unstructured":"Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An image is worth 16 \u00d7 16 words: Transformers for image recognition at scale. arXiv."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Baroni, G.L., Rasotto, L., Roitero, K., Siraj, A.H., and Della Mea, V. (2023, January 11\u201315). Vision Transformers for Breast Cancer Histology Image Classification. Proceedings of the Image Analysis and Processing\u2014ICIAP 2023 Workshops, Udine, Italy.","DOI":"10.1007\/978-3-031-51026-7_2"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"122","DOI":"10.1016\/j.media.2019.05.010","article-title":"Bach: Grand challenge on breast cancer histology images","volume":"56","author":"Aresta","year":"2019","journal-title":"Med. Image Anal."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"101813","DOI":"10.1016\/j.media.2020.101813","article-title":"Deep neural network models for computational histopathology: A survey","volume":"67","author":"Srinidhi","year":"2021","journal-title":"Med. Image Anal."},{"key":"ref_7","unstructured":"Alom, M.Z., Taha, T.M., Yakopcic, C., Westberg, S., Sidike, P., Nasrin, M.S., Van Esesn, B.C., Awwal, A.A.S., and Asari, V.K. (2018). The history began from alexnet: A comprehensive survey on deep learning approaches. arXiv."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"87","DOI":"10.1109\/TPAMI.2022.3152247","article-title":"A survey on vision transformer","volume":"45","author":"Han","year":"2022","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"ref_9","unstructured":"Chennamsetty, S.S., Safwan, M., and Alex, V. (2018, January 27\u201329). Classification of breast cancer histology image using ensemble of pre-trained neural networks. Proceedings of the Image Analysis and Recognition: 15th International Conference, ICIAR 2018, P\u00f3voa de Varzim, Portugal. Proceedings 15."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"He, K., Zhang, X., Ren, S., and Sun, J. (2015). Deep Residual Learning for Image Recognition. arXiv.","DOI":"10.1109\/CVPR.2016.90"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Huang, G., Liu, Z., Van Der Maaten, L., and Weinberger, K.Q. (2017, January 21\u201326). Densely connected convolutional networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.","DOI":"10.1109\/CVPR.2017.243"},{"key":"ref_12","unstructured":"Kwok, S. (2018, January 27\u201329). Multiclass classification of breast cancer in whole-slide images. Proceedings of the Image Analysis and Recognition: 15th International Conference, ICIAR 2018, P\u00f3voa de Varzim, Portugal. Proceedings 15."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Szegedy, C., Ioffe, S., Vanhoucke, V., and Alemi, A. (2016). Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning. arXiv.","DOI":"10.1609\/aaai.v31i1.11231"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"264","DOI":"10.3389\/fmed.2019.00264","article-title":"Deep learning for whole slide image analysis: An overview","volume":"6","author":"Dimitriou","year":"2019","journal-title":"Front. Med."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"251","DOI":"10.1097\/PAP.0000000000000273","article-title":"Whole slide imaging: Technology and applications","volume":"27","author":"Hanna","year":"2020","journal-title":"Adv. Anat. Pathol."},{"key":"ref_16","unstructured":"Brancati, N., Frucci, M., and Riccio, D. (2018, January 27\u201329). Multi-classification of breast cancer histology images by using a fine-tuning strategy. Proceedings of the Image Analysis and Recognition: 15th International Conference, ICIAR 2018, P\u00f3voa de Varzim, Portugal. Proceedings 15."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"90","DOI":"10.1016\/j.compmedimag.2018.11.003","article-title":"Patch-based system for classification of breast histology images using deep learning","volume":"71","author":"Roy","year":"2019","journal-title":"Comput. Med. Imaging Graph."},{"key":"ref_18","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_19","unstructured":"Guyon, I., Luxburg, U.V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., and Garnett, R. (2017). Advances in Neural Information Processing Systems, Curran Associates, Inc."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"111","DOI":"10.1016\/j.aiopen.2022.10.001","article-title":"A survey of transformers","volume":"3","author":"Lin","year":"2022","journal-title":"AI Open"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Zhao, Y., Zhang, J., Hu, D., Qu, H., Tian, Y., and Cui, X. (2022). Application of Deep Learning in Histopathology Images of Breast Cancer: A Review. Micromachines, 13.","DOI":"10.3390\/mi13122197"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"929755","DOI":"10.3389\/fphar.2022.929755","article-title":"Semi-supervised vision transformer with adaptive token sampling for breast cancer classification","volume":"13","author":"Wang","year":"2022","journal-title":"Front. Pharmacol."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"1455","DOI":"10.1109\/TBME.2015.2496264","article-title":"A Dataset for Breast Cancer Histopathological Image Classification","volume":"63","author":"Spanhol","year":"2016","journal-title":"IEEE Trans. Biomed. Eng."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Tummala, S., Kim, J., and Kadry, S. (2022). BreaST-Net: Multi-class classification of breast cancer from histopathological images using ensemble of swin transformers. Mathematics, 10.","DOI":"10.3390\/math10214109"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021, January 11\u201317). Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. Proceedings of the 2021 IEEE\/CVF International Conference on Computer Vision (ICCV), Los Alamitos, CA, USA.","DOI":"10.1109\/ICCV48922.2021.00986"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Alotaibi, A., Alafif, T., Alkhilaiwi, F., Alatawi, Y., Althobaiti, H., Alrefaei, A., Hawsawi, Y., and Nguyen, T. (2023, January 23\u201325). ViT-DeiT: An Ensemble Model for Breast Cancer Histopathological Images Classification. Proceedings of the 2023 1st International Conference on Advanced Innovations in Smart Cities (ICAISC), Jeddah, Saudi Arabia.","DOI":"10.1109\/ICAISC56366.2023.10085467"},{"key":"ref_27","first-page":"10347","article-title":"Training data-efficient image transformers & distillation through attention","volume":"Volume 139","author":"Meila","year":"2021","journal-title":"Proceedings of the 38th International Conference on Machine Learning"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"1093","DOI":"10.1016\/j.ins.2022.06.091","article-title":"Deconv-transformer (DecT): A histopathological image classification model for breast cancer based on color deconvolution and transformer architecture","volume":"608","author":"He","year":"2022","journal-title":"Inf. Sci."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"39731","DOI":"10.1007\/s11042-023-16954-x","article-title":"Vision transformer and its variants for image classification in digital breast cancer histopathology: A comparative study","volume":"83","author":"Sriwastawa","year":"2023","journal-title":"Multimed. Tools Appl."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Heo, B., Yun, S., Han, D., Chun, S., Choe, J., and Oh, S.J. (2021, January 11\u201317). Rethinking spatial dimensions of vision transformers. Proceedings of the IEEE\/CVF International Conference on Computer Vision, Montreal, BC, Canada.","DOI":"10.1109\/ICCV48922.2021.01172"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Wu, H., Xiao, B., Codella, N., Liu, M., Dai, X., Yuan, L., and Zhang, L. (2021, January 11\u201317). Cvt: Introducing convolutions to vision transformers. Proceedings of the IEEE\/CVF International Conference on Computer Vision, Montreal, BC, Canada.","DOI":"10.1109\/ICCV48922.2021.00009"},{"key":"ref_32","unstructured":"Wang, W., Yao, L., Chen, L., Lin, B., Cai, D., He, X., and Liu, W. (2021, January 3\u20137). CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention. Proceedings of the International Conference on Learning Representations, Virtual."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Chen, C.F.R., Fan, Q., and Panda, R. (2021, January 11\u201317). Crossvit: Cross-attention multi-scale vision transformer for image classification. Proceedings of the IEEE\/CVF International Conference on Computer Vision, Montreal, BC, Canada.","DOI":"10.1109\/ICCV48922.2021.00041"},{"key":"ref_34","unstructured":"Zhang, Z., Zhang, H., Zhao, L., Chen, T., Arik, S.\u00d6., and Pfister, T. (March, January 22). Nested hierarchical transformer: Towards accurate, data-efficient and interpretable visual understanding. Proceedings of the AAAI Conference on Artificial Intelligence, Online."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Tu, Z., Talebi, H., Zhang, H., Yang, F., Milanfar, P., Bovik, A., and Li, Y. (2022, January 23\u201327). Maxvit: Multi-axis vision transformer. Proceedings of the European Conference on Computer Vision, Tel Aviv, Israel.","DOI":"10.1007\/978-3-031-20053-3_27"},{"key":"ref_36","unstructured":"Li, W., Wang, X., Xia, X., Wu, J., Xiao, X., Zheng, M., and Wen, S. (2022). Sepvit: Separable vision transformer. arXiv."},{"key":"ref_37","first-page":"904103","article-title":"Automatic detection of invasive ductal carcinoma in whole slide images with convolutional neural networks","volume":"Volume 9041","author":"Basavanhally","year":"2014","journal-title":"Proceedings of the Medical Imaging 2014: Digital Pathology"},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"29","DOI":"10.4103\/2153-3539.186902","article-title":"Deep learning for digital pathology image analysis: A comprehensive tutorial with selected use cases","volume":"7","author":"Janowczyk","year":"2016","journal-title":"J. Pathol. Inform."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Yao, H., Zhang, X., Zhou, X., and Liu, S. (2019). Parallel structure deep neural network using CNN and RNN with an attention mechanism for breast cancer histology image classification. Cancers, 11.","DOI":"10.3390\/cancers11121901"},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Karuppasamy, A. (2023, January 6\u20138). Recent ViT based models for Breast Cancer Histopathology Image Classification. Proceedings of the 2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT), Delhi, India.","DOI":"10.1109\/ICCCNT56998.2023.10306739"},{"key":"ref_41","unstructured":"Pohjonen, J. (2024, April 25). HistoEncoder: Foundation Models for Digital Pathology. GitHub Repository. Available online: https:\/\/github.com\/jopo666\/HistoEncoder."},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Brancati, N., Anniciello, A.M., Pati, P., Riccio, D., Scognamiglio, G., Jaume, G., De Pietro, G., Di Bonito, M., Foncubierta, A., and Botti, G. (2022). BRACS: A Dataset for BReAst Carcinoma Subtyping in H&E Histology Images. Database J. Biol. Databases Curation, 2022.","DOI":"10.1093\/database\/baac093"},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"S1","DOI":"10.1038\/modpathol.2010.56","article-title":"Intraductal proliferative lesions of the breast: Morphology, associated risk and molecular biology","volume":"23","author":"Ellis","year":"2010","journal-title":"Mod. Pathol."},{"key":"ref_44","unstructured":"Gobbi, H. (2019). Breast Diseases: An Evidence-Based Pocket Guide, Springer Nature."},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"331","DOI":"10.1007\/s41095-022-0271-y","article-title":"Attention mechanisms in computer vision: A survey","volume":"8","author":"Guo","year":"2022","journal-title":"Comput. Vis. Media"},{"key":"ref_46","doi-asserted-by":"crossref","first-page":"102276","DOI":"10.1016\/j.artmed.2022.102276","article-title":"Breast cancer detection using artificial intelligence techniques: A systematic literature review","volume":"127","author":"Nassif","year":"2022","journal-title":"Artif. Intell. Med."},{"key":"ref_47","unstructured":"Tay, Y., Dehghani, M., Rao, J., Fedus, W., Abnar, S., Chung, H.W., Narang, S., Yogatama, D., Vaswani, A., and Metzler, D. (2021). Scale Efficiently: Insights from Pre-training and Fine-tuning Transformers. arXiv."},{"key":"ref_48","doi-asserted-by":"crossref","first-page":"9","DOI":"10.1186\/s40537-016-0043-6","article-title":"A survey of transfer learning","volume":"3","author":"Weiss","year":"2016","journal-title":"J. Big Data"},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"43","DOI":"10.1109\/JPROC.2020.3004555","article-title":"A comprehensive survey on transfer learning","volume":"109","author":"Zhuang","year":"2020","journal-title":"Proc. IEEE"},{"key":"ref_50","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_51","first-page":"64","article-title":"Recurrent neural networks","volume":"5","author":"Medsker","year":"2001","journal-title":"Des. Appl."}],"container-title":["Journal of Imaging"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2313-433X\/10\/5\/108\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T14:37:28Z","timestamp":1760107048000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2313-433X\/10\/5\/108"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,4,30]]},"references-count":51,"journal-issue":{"issue":"5","published-online":{"date-parts":[[2024,5]]}},"alternative-id":["jimaging10050108"],"URL":"https:\/\/doi.org\/10.3390\/jimaging10050108","relation":{},"ISSN":["2313-433X"],"issn-type":[{"value":"2313-433X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,4,30]]}}}