Towards Robust CAD Systems for Digital Pathology: Evaluating Transformer-Based Backbones for Breast Cancer Classification
Pdf File

Keywords

Breast cancer
Histopathology images
Multi-class classification
Computer-aided diagnosis
Digital pathology

How to Cite

Towards Robust CAD Systems for Digital Pathology: Evaluating Transformer-Based Backbones for Breast Cancer Classification. (2026). Computers and Electronics in Medicine, 3(1), 54-59. https://doi.org/10.69882/adba.cem.2026017

Abstract

Breast cancer is one of the greatest global health burdens today and demands accurate diagnosis because of the vast histological variety. CNN-based systems had been the dominant technology in Digital Pathology, but with their inability to create a global representation has allowed other technologies such as Vision Transformers to compete. This paper evaluate the performance of three different transformer-based backbone architectures (DeiT Base, Swin Base, and ViT Base) for classifying breast histopathological images into eight granular classes using the BreaKHis database. To facilitate this comparison, we utilize transfer learning and distinct data augmentation methods. Each architecture was fine-tuned to classify four benign and four malignant subtypes with a minimum reported accuracy of 94%, with Swin Base performing more optimally than either of the other two approaches, obtaining highest reported accuracy of 0.9511 and an F1 score of 0.9434. The unique design and shifted windowing processes of Swin Base have allowed this architecture to capture detailed nuclear information as well as the larger context regarding breast cancers, to an extent greater than the other two architectures. Additionally, we provide an in-depth study of confusion matrices in conjunction with high classification accuracy, even when dealing with minor morphological overlap, to further support their claim regarding the ability of Swin Base and the remaining transformer architectures to successfully differentiate between histologically similar classes.

Pdf File

References

Abdulaal, A. H., M. Valizadeh, M. C. Amirani, and A. F. S. Shah, 2024a A self-learning deep neural network for classification of breast histopathological images. Biomedical Signal Processing and Control 87: 105418.

Abdulaal, A. H., R. A. Yassin, M. Valizadeh, A. H. Abdulwahhab, A. M. Jasim, et al., 2024b Cutting-edge cnn approaches for breast histopathological classification: The impact of spatial attention mechanisms. ShodhAI: Journal of Artificial Intelligence 1: 109–130–109–130.

Akshaya, K., A. Bhan, and S. Pathan, 2024 Deep learning based classification approach to improve breast cancer screening using histopathological images. 2024 International Conference on Advances in Modern Age Technologies for Health and Engineering Science, AMATHE 2024.

Aldakhil, L. A., H. F. Alhasson, S. S. Alharbi, R. U. Khan, and A. M. Qamar, 2025 Image-based breast cancer histopathology classification and diagnosis using deep learning approaches. Applied Computational Intelligence and Soft Computing 2025: 7011984.

Alshehri, H. M., 2025 Brenet: Attention-enhanced multi-scale cnn framework for breast cancer classification in histopathological images. IEEE Access.

Asha, N., 2025 Breast cancer data augmentation with detection using cnn model in deep learning. Lecture Notes in Electrical Engineering 1246 LNEE: 325–339.

Balasubramanian, A. A., S. M. A. Al-Heejawi, A. Singh, A. Breggia, B. Ahmad, et al., 2024 Ensemble deep learning-based image classification for breast cancer subtype and invasiveness diagnosis from whole slide image histopathology. Cancers 16.

Behzadpour, M., B. L. Ortiz, E. Azizi, and K. Wu, 2024 Breast tumor classification using efficientnet deep learning model.

Chikkala, R. B., C. Anuradha, P. S. C. Murty, S. Rajeswari, N. Rajeswaran, et al., 2025 Enhancing breast cancer diagnosis with bidirectional recurrent neural networks: A novel approach for histopathological image multi-classification. IEEE Access 13: 41682–41707.

Chitta, S., S. Sharma, and V. K. Yandrapalli, 2025 Hybrid deep learning model for enhanced breast cancer diagnosis using histopathological images. Procedia Computer Science 260: 245–251.

Dataset, 2025 Breakhis - breast cancer histopathological dataset.

Dosovitskiy, A., L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, et al., 2025 An image is worth 16x16 words: Transformers for image recognition at scale.

Getu, M. A., C. Lu, Y. Liu, A. Mehmood, Z. Iqbal, et al., 2025 Bcnet: A novel deep learning model for enhanced breast cancer classification using histopathological images.

Gul, M., 2025 A novel local binary patterns-based approach and proposed cnn model to diagnose breast cancer by analyzing histopathology images. IEEE Access 13: 39610–39620.

Hayat, M., N. Ahmad, A. Nasir, and Z. A. Tariq, 2024 Hybrid deep learning efficientnetv2 and vision transformer (effnetv2-vit) model for breast cancer histopathological image classification. IEEE Access 12: 184119–184131.

Jackson, J., L. E. Jackson, C. C. Ukwuoma, M. D. Kissi, A. Oluwasanmi, et al., 2025 A patch-based deep learning framework with 5-b network for breast cancer multi-classification using histopathological images. Engineering Applications of Artificial Intelligence 148: 110439.

Jakkaladiki, S. P. and F. Maly, 2024 Integrating hybrid transfer learning with attention-enhanced deep learning models to improve breast cancer diagnosis. PeerJ Computer Science 10: e1850.

Kansal, K., S. Kumar, and K. Kansal, 2025 Advances in deep learning techniques for breast cancer classification: A comprehensive review. Archives of Computational Methods in Engineering pp. 1–36.

Karthiga, R., K. Narasimhan, N. Raju, and R. Amirtharajan, 2025 Automatic approach for breast cancer detection based on deep belief network using histopathology images. Multimedia Tools and Applications 84: 4733–4750.

Liu, Z., Y. Lin, Y. Cao, H. Hu, Y. Wei, et al., 2025 Swin transformer: Hierarchical vision transformer using shifted windows.

Logu, K. and S. J. J. Thangaraj, 2024 Progressing breast cancer assessment: Precise tumor categorization through densenet201-based deep learning. TQCEBT 2024 - 2nd IEEE International Conference on Trends in Quantum Computing and Emerging Business Technologies 2024.

Mumuni, A., F. Mumuni, and N. K. Gerrar, 2024 A survey of synthetic data augmentation methods in machine vision. Machine Intelligence Research 2024 21(5): 831–869.

Murphy, G. and R. Singh, 2024 Comparative analysis and ensemble enhancement of leading cnn architectures for breast cancer classification.

Ogundokun, R. O., A. R. T. Abdullahi, A. R. Adenike, C. Awoniyi, H. B. Akande, et al., 2024 Hybrid deep learning for breast cancer diagnosis: Evaluating cnn and ann on breakhis_v1_400x. In International Conference on Science, Engineering and Business for Driving Sustainable Development Goals, SEB4SDG 2024, Institute of Electrical and Electronics Engineers Inc.

Rajaram, G., V. Rajinikanth, and B. S. Latha, 2024 Classification of breast histology into benign and malignant using resnet-variants: A study with breakhis database. In 2024 9th International Conference on Applying New Technology in Green Buildings, ATiGB 2024, pp. 479–483, Institute of Electrical and Electronics Engineers Inc.

Ramamoorthy, P., B. R. R. Reddy, S. S. Askar, and M. Abouhawwash, 2024 Histopathology-based breast cancer prediction using deep learning methods for healthcare applications. Frontiers in Oncology 14: 1300997.

Simonyan, E. O., J. A. Badejo, and J. S. Weijin, 2024 Histopathological breast cancer classification using cnn. Materials Today: Proceedings 105: 268–275.

Singh, A. and K. S. Kaswan, 2024 Empirical analysis on breast cancer datasets with machine learning. Proceedings - International Conference on Computing, Power, and Communication Technologies, IC2PCT 2024 pp. 223–227.

Thakur, N., S. Shrivastava, S. Shukla, and M. Gyanchandani, 2025 Patient-centric multilabel classification with svm on breakhis dataset. In 2025 3rd International Conference on Data Science and Network Security (ICDSNS), pp. 1–7, IEEE.

Touvron, H., M. Cord, M. Douze, F. Massa, A. Sablayrolles, et al., 2025 Training data-efficient image transformers & distillation through attention.

Ukwuoma, C. C., D. Cai, E. O. Eziefuna, A. Oluwasanmi, S. F. Abdi, et al., 2025 Enhancing histopathological medical image classification for early cancer diagnosis using deep learning and explainable ai – lime & shap. Biomedical Signal Processing and Control 100: 107014.

Wang, Z., P. Wang, K. Liu, P. Wang, Y. Fu, et al., 2024 A comprehensive survey on data augmentation.

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.