A deep learning framework for breast cancer diagnosis using Swin Transformer and Dual-Attention Multi-scale Fusion Network

Breast cancer is among the most prevalent cancers affecting women worldwide, and early detection through mammography is critical to reducing mortality rates. Convolutional neural networks (CNNs) have demonstrated notable effectiveness in classifying mammograms. However, they are constrained in their ability to capture long-range contextual dependencies. On the other hand, transformer-based models excel at handling global relationships; however, they often require large datasets and substantial computing power, which limits their direct application in medical imaging. To overcome these limitations, we propose Swin-DAMFN, a novel dual-branch hybrid architecture for breast cancer classification from mammograms. The first branch utilizes a Swin Transformer to model global dependencies through shifted window self-attention, while the second branch employs a CNN-based Dual-Attention Multi-scale Fusion Network (DAMFN) to capture fine-grained local features, such as microcalcifications and structural distortions. The CNN branch incorporates two custom modules, Multi Separable Attention (MSA) and Tri-Shuffle Convolution Attention (TSCA), for multi-scale discriminative feature extraction. An attention-guided fusion mechanism integrates global and local features into a unified representation. To address dataset limitations, we adopt an advanced augmentation strategy that combines Generative Adversarial Networks (GANs) to synthesize realistic mammograms and photometric augmentation to introduce appearance variability, thereby mitigating class imbalance and enhancing model generalization. A lightweight classification head based on global average pooling and fully connected layers ensures both efficiency and diagnostic accuracy. Extensive experiments on the MIAS and CBIS-DDSM datasets demonstrate that Swin-DAMFN achieves superior results, reaching 99.30% accuracy, 99.14% sensitivity, and 99.15% F1-score on CBIS-DDSM, while maintaining 98.75% accuracy, 98.37% sensitivity, and 98.42% F1-score on MIAS.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-03-12
DOI
https://doi.org/10.1038/s41598-026-37969-y
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A deep learning framework for breast cancer diagnosis using Swin Transformer and Dual-Attention Multi-scale Fusion Network

Marwa M. Emam, Murdhy A. Aldawsari, Saad Jamhan Aldosari, Atef Ismail
Scientific Reports
AI in cancer detection
article

A deep learning framework for breast cancer diagnosis using Swin Transformer and Dual-Attention Multi-scale Fusion Network

Marwa M. Emam, Murdhy A. Aldawsari, Saad Jamhan Aldosari, Atef Ismail
article en

Abstract

Breast cancer is among the most prevalent cancers affecting women worldwide, and early detection through mammography is critical to reducing mortality rates. Convolutional neural networks (CNNs) have demonstrated notable effectiveness in classifying mammograms. However, they are constrained in their ability to capture long-range contextual dependencies. On the other hand, transformer-based models excel at handling global relationships; however, they often require large datasets and substantial computing power, which limits their direct application in medical imaging. To overcome these limitations, we propose Swin-DAMFN, a novel dual-branch hybrid architecture for breast cancer classification from mammograms. The first branch utilizes a Swin Transformer to model global dependencies through shifted window self-attention, while the second branch employs a CNN-based Dual-Attention Multi-scale Fusion Network (DAMFN) to capture fine-grained local features, such as microcalcifications and structural distortions. The CNN branch incorporates two custom modules, Multi Separable Attention (MSA) and Tri-Shuffle Convolution Attention (TSCA), for multi-scale discriminative feature extraction. An attention-guided fusion mechanism integrates global and local features into a unified representation. To address dataset limitations, we adopt an advanced augmentation strategy that combines Generative Adversarial Networks (GANs) to synthesize realistic mammograms and photometric augmentation to introduce appearance variability, thereby mitigating class imbalance and enhancing model generalization. A lightweight classification head based on global average pooling and fully connected layers ensures both efficiency and diagnostic accuracy. Extensive experiments on the MIAS and CBIS-DDSM datasets demonstrate that Swin-DAMFN achieves superior results, reaching 99.30% accuracy, 99.14% sensitivity, and 99.15% F1-score on CBIS-DDSM, while maintaining 98.75% accuracy, 98.37% sensitivity, and 98.42% F1-score on MIAS.

Scientific ReportsVol. 16(1)
Prince Sattam Bin Abdulaziz University (SA), Al-Azhar University (EG), Minia University (EG)
Prince Sattam bin Abdulaziz University
Reduced inequalities
Openalex Percentile: Top 28%
AI in cancer detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.