arXiv:2610.37026cs.CVOct 2026

Manuscript Offprint

arXiv:2610.37026

Interpretable Deep Learning Models for Breast Cancer Diagnosis Using Medical Imaging

Sami Alnawali, Muhammad Atif Saeed, Abdul Hadi, Azka Atiq, Akhtar Jamil, Ahmad Din

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sami Alnawali ∗^{*}

Information Systems Department

College of Computer Science and Information Technology

King Faisal University, Alahsaa, Saudi Arabia

salnawali@kfu.edu.sa

Abdul Hadi †^{\dagger}

Department of Robotics & Artificial Intelligence

Shaheed Zulfikar Ali Bhutto Institute

of Science and Technology

Islamabad, Pakistan

abdulhaadii146@gmail.com

Akhtar Jamil

Department of Computer Science

National University of Computer and Emerging Sciences

Islamabad, Pakistan

akhtar.jamil@nu.edu.pk

Muhammad Atif Saeed †^{\dagger}

Department of Artificial Intelligence & Data Science

National University of Computer and Emerging Sciences

Islamabad, Pakistan

atif.saeed@isb.nu.edu.pk

Azka Atiq †^{\dagger}

Department of Artificial Intelligence & Data Science

National University of Computer and Emerging Sciences

Islamabad, Pakistan

azka.atiq@isb.nu.edu.pk

Ahmad Din

Department of Artificial Intelligence & Data Science

National University of Computer and Emerging Sciences

Islamabad, Pakistan

ahmad.din@nu.edu.pk

ABSTRACT

Breast cancer continues to be a leading cause of mortality among women globally, highlighting the necessity for precise and comprehensible diagnostic tools. Although deep learning demonstrates significant potential, several current methodologies emphasize accuracy at the expense of interpretability, hence limiting their clinical applicability. To tackle this issue, we established a thorough framework that assesses ten advanced transfer learning models ResNet50, VGG19, InceptionV3, DenseNet121, Xception, MobileNetV2, EfficientNetV2S, EfficientNet-B7, Vision Transformer, and Swin Transformer, using the BreakHis dataset for automated breast cancer classification. All models underwent pretraining on ImageNet and were subsequently fine-tuned using bespoke classification heads, strengthened by comprehensive preprocessing and data augmentation methods including rotation, flipping, zooming, normalization, and contrast enhancement to increase generalization. To improve transparency, explainable AI (XAI) techniques such as Grad-CAM, LIME, SHAP, and LRP were utilized to display distinguishing histological features, emphasizing nuclei-rich and glandular areas aligned with clinical significance. Experimental results indicated that DenseNet121 attained superior performance, achieving a test accuracy of 99.4% and an AUC-ROC of 0.9997 across various magnifications, whilst EfficientNet also exhibited robust performance with an accuracy of 98.5% and continuously low false positive rates. Transformer-based models as Swin Transformer and ViT demonstrated strong generalization in intricate scenarios, while the lightweight MobileNetV2 provided competitive performance for implementation in resource-constrained settings. This study demonstrates the efficacy of integrating advanced transfer learning with explainable artificial intelligence to provide clinically relevant and interpretable frameworks for breast cancer detection. Future work will extend this framework to include multi-modal datasets, detailed tumor subtyping, and more advanced explainable artificial intelligence techniques to augment diagnostic reliability and facilitate clinical adoption.

Keywords Breast cancer · Histopathology · BreakHis · Transfer learning · Vision transformers · Explainable AI

∗^{*}Corresponding author.

†^{\dagger}These authors contributed equally to this work.

1 Introduction

Breast cancer is among the most common and lethal malignancies impacting women globally. The World Health Organization reports over 2.3 million new cases and over 680,000 deaths per year, establishing it as a primary cause of cancer-related mortality in women[1]. Timely and precise identification of breast cancer is crucial for enhancing treatment efficacy, survival probabilities, and the overall quality of life for patients[2]. Traditional diagnostic methods, including mammography, histological examination, and ultrasound imaging, while useful, are prone to inter-observer variability, necessitate professional interpretation, and may overlook small abnormalities in the early stages[3]. These constraints have catalyzed the integration of artificial intelligence (AI) and deep learning (DL) methodologies in medical imaging to aid radiologists in achieving precise and prompt diagnosis[4], [5].

Deep learning, especially convolutional neural networks (CNNs), has demonstrated exceptional efficacy in visual recognition tasks, encompassing medical image classification, segmentation, and detection[6]. Numerous research have utilized CNN architectures, including VGG, ResNet, Inception, and DenseNet, for breast cancer classification, with remarkable accuracy[1]. Nonetheless, these models frequently necessitate substantial quantities of annotated training data and considerable computational resources, posing challenges in the medical field where labeled data is limited and costly to obtain[7]. Furthermore, deep learning models are often criticized for their opacity and lack of interpretability, presenting a substantial obstacle to clinical implementation[8]. Comprehending the rationale behind a model's decision-making process is essential in healthcare applications, as erroneous predictions can lead to severe repercussions[9].

To mitigate data scarcity and enhance model generalisability, transfer learning has emerged as an effective technique that facilitates the utilization of pretrained models on extensive datasets (e.g., ImageNet) for domain-specific applications such as breast cancer classification[10], [11]. Transfer learning decreases computational demands and training duration while improving performance on limited, specialized medical datasets. The use of Explainable Artificial Intelligence (XAI) techniques, including Grad-CAM, LIME, SHAP, and XRAI, has created new opportunities for visualizing model behavior, enhancing clinician trust, and streamlining regulatory approval[7], [12].

This paper presents a comprehensive and interpretable deep learning framework that integrates various transfer learning models with explainable artificial intelligence methodologies for robust breast cancer classification[8]. We assess ten cutting-edge models, ResNet50, VGG19, InceptionV3, DenseNet121, Xception, MobileNetV2, EfficientNetV2S, EfficientNet-B7, Vision Transformer (ViT), and Swin Transformer, across four prevalent breast cancer datasets[13]. To improve model performance and generalisation, we employ customised data augmentation methods, normalisation, and patch-based image preprocessing[4]. Additionally, we incorporate various XAI techniques to deliver both local and global interpretability, assisting physicians in comprehending the reasoning behind the model's predictions[3].

The subsequent sections of this work are structured as follows: Section 1 delineates the pertinent literature and recent progress in deep learning for breast cancer diagnosis. Section 2 delineates the datasets employed, encompassing their structure, clinical context, and preparation procedures. Section 3 delineates the methodology, encompassing model architectures, transfer learning procedures, data augmentation techniques, and explainability methods. Section 4 delineates the experimental configuration and assessment criteria. Section 5 examines the outcomes derived from various models and datasets. Section 6 ultimately summarises the paper by presenting insights, limitations, and prospective future directions.

References (45)