Research Article

Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs

Volume: 13 Number: 3 September 30, 2025

Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs

Abstract

Breast cancer is a major global health issue, and accurate early detection is critical for improving patient outcomes. Deep learning-based image classification techniques have shown remarkable success in medical imaging, particularly convolutional neural networks (CNNs) and transformer-based models. This study evaluates and compares the performance of Vision Transformers (ViTs) with well-established CNN architectures, including AlexNet, ResNet-50, and VGG-19, for breast cancer image classification. The research aims to investigate whether ViTs can outperform conventional deep learning models in this domain and to analyze their strengths and limitations. The study utilizes a publicly available breast cancer dataset comprising 9,248 images categorized into benign, malignant, and normal classes. The dataset is preprocessed by resizing all images to 224×224 pixels, normalizing pixel intensity values, and applying data augmentation techniques. All models are trained under the same conditions using 80% of the data for training, 10% for validation, and 10% for testing. Performance evaluation is conducted based on accuracy, precision, recall, and F1-score metrics. Experimental results indicate that ResNet-50 achieves the highest classification accuracy (93.62%), outperforming the other models in terms of overall performance. AlexNet, despite having the smallest parameter count, delivers competitive accuracy (88.32%) while being computationally efficient. VGG-19, known for its depth, achieves 87.51% accuracy but has the highest computational cost. ViTs, although promising, achieve a lower accuracy of 87.46%, suggesting that transformer-based architectures may require larger datasets and further optimization to surpass traditional CNNs in medical image classification tasks. This study highlights that CNN-based models, particularly ResNet-50, remain the most effective approach for breast cancer classification in the given dataset. However, ViTs present a potential alternative, and future research should explore hybrid models integrating both CNN and transformer-based architectures to enhance classification performance.

Keywords

References

  1. M. Arnold et al., “Current and future burden of breast cancer: Global statistics for 2020 and 2040,” The Breast, vol. 66, pp. 15–23, 2022.
  2. T. Iguchi, T. Sato, T. Nakajima, S. Miyagawa, and N. Takasugi, “New frontiers of developmental endocrinology opened by researchers connecting irreversible effects of sex hormones on developing organs,” Differentiation, vol. 118, pp. 4–23, 2021.
  3. L. Wilkinson and T. Gathani, “Understanding breast cancer as a global health concern,” Br. J. Radiol., vol. 95, no. 1130, p. 20211033, 2022.
  4. Y. Xu, M. Gong, Y. Wang, Y. Yang, S. Liu & Q. Zeng, “Global trends and forecasts of breast cancer incidence and deaths,” Scientific data, 10(1), 334, 2023.
  5. L. Tabár et al., “A new approach to breast cancer terminology based on the anatomic site of tumour origin: The importance of radiologic imaging biomarkers,” Eur. J. Radiol., vol. 149, p. 110189, 2022.
  6. Y. A. Yousef et al., “Ocular and periocular metastasis in breast cancer: Clinical characteristics, prognostic factors and treatment outcome,” Cancers, vol. 16, no. 8, p. 1518, 2024.
  7. H. Aljuaid, N. Alturki, N. Alsubaie, L. Cavallaro, and A. Liotta, “Computer-aided diagnosis for breast cancer classification using deep neural networks and transfer learning,” Comput. Methods Programs Biomed., vol. 223, p. 106951, 2022.
  8. E. Elyan et al., “Computer vision and machine learning for medical image analysis: Recent advances, challenges, and way forward,” Artif. Intell. Surg., vol. 2, no. 1, pp. 24–45, 2022.

Details

Primary Language

English

Subjects

Deep Learning, Neural Networks, Machine Learning (Other)

Journal Section

Research Article

Early Pub Date

September 30, 2025

Publication Date

September 30, 2025

Submission Date

March 23, 2025

Acceptance Date

May 29, 2025

Published in Issue

Year 2025 Volume: 13 Number: 3

APA
Demiroğlu, U., & Şenol, B. (2025). Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs. Academic Platform Journal of Engineering and Smart Systems, 13(3), 108-119. https://doi.org/10.21541/apjess.1663864
AMA
1.Demiroğlu U, Şenol B. Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs. APJESS. 2025;13(3):108-119. doi:10.21541/apjess.1663864
Chicago
Demiroğlu, Uğur, and Bilal Şenol. 2025. “Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs”. Academic Platform Journal of Engineering and Smart Systems 13 (3): 108-19. https://doi.org/10.21541/apjess.1663864.
EndNote
Demiroğlu U, Şenol B (September 1, 2025) Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs. Academic Platform Journal of Engineering and Smart Systems 13 3 108–119.
IEEE
[1]U. Demiroğlu and B. Şenol, “Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs”, APJESS, vol. 13, no. 3, pp. 108–119, Sept. 2025, doi: 10.21541/apjess.1663864.
ISNAD
Demiroğlu, Uğur - Şenol, Bilal. “Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs”. Academic Platform Journal of Engineering and Smart Systems 13/3 (September 1, 2025): 108-119. https://doi.org/10.21541/apjess.1663864.
JAMA
1.Demiroğlu U, Şenol B. Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs. APJESS. 2025;13:108–119.
MLA
Demiroğlu, Uğur, and Bilal Şenol. “Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs”. Academic Platform Journal of Engineering and Smart Systems, vol. 13, no. 3, Sept. 2025, pp. 108-19, doi:10.21541/apjess.1663864.
Vancouver
1.Uğur Demiroğlu, Bilal Şenol. Benchmarking Deep Learning Models for Breast Cancer Detection: A Comparison of Vision Transformers and CNNs. APJESS. 2025 Sep. 1;13(3):108-19. doi:10.21541/apjess.1663864

Cited By

Academic Platform Journal of Engineering and Smart Systems