Amb motiu del tancament d'estiu, la validació de documents es reprendrà a partir del 28 d'agost de 2026. Disculpeu les molèsties.
Con motivo del cierre de verano, la validación de documentos se reanudará a partir del 28 de agosto de 2026. Disculpad las molestias
Due to the summer closure, document validation will resume starting August 28, 2026. We apologize for any inconvenience.

Document type

Bachelor thesis

Publication date

Publication license

memòria: cc-nc-nd (c) David Blandón Tórrez, 2025
Please use this identifier to cite or link to this item: https://hdl.handle.net/2445/223419

Evaluation of Transformer-Based Models for Molecular Subtype Classification of Invasive Ductal Breast Carcinoma Using Mammography

Journal Title

Director/Tutor

Journal ISSN

Volume Title

Related resource

Abstract

Breast cancer remains the most prevalent malignancy and a leading cause of mortality in women worldwide. Early and accurate molecular characterization is critical for prognosis and treatment selection. Molecular subtyping, traditionally guided by invasive tissue biopsies and immunohistochemical analysis, enables personalized therapies but is costly, time-consuming, and not universally feasible. Non-invasive alternatives leveraging medical imaging, particularly mammography, have gained research interest for molecular classification. This study evaluates the potential of Transformer-based DL models to classify molecular subtypes of invasive ductal carcinoma using mammographic images exclusively from the public CMMD (The Chinese Mammography Database) dataset. A systematical analysis was conducted to compare three state-of-the-art Transformer architectures, Vision Transformer (ViT), Swin Transformer (Swin), and Multi-Axis Vision Transformer (MaxViT), against a traditional CNN model, ResNet-101. The experimental methodology addresses key challenges such as class imbalance through weighted loss functions, oversampling, data augmentation, and robust cross-validation strategies. Results demonstrate that transformer-based models consistently outperform the CNN baseline. ViT achieved the highest average AUC ( $0.635 \pm 0.016$ ) and balanced accuracy $(0.385 \pm 0.042)$ on test sets, compared to ResNet-101 (AUC: $0.563 \pm 0.03$; balanced accuracy: $0.322 \pm 0.062$ ). Statistical analysis confirmed significant performance differences ( $\mathrm{p}<0.05$ ), supporting the hypothesis that transformer self-attention mechanisms better model global spatial relationships in mammograms. Despite these advances, overall performance remains below clinically acceptable thresholds, highlighting the inherent difficulty of non-invasive molecular subtyping based solely on imaging and the need for larger datasets or multimodal integration. Nevertheless, this work demonstrates the potential of transformer-based approaches for accessible, non-invasive breast cancer characterization, establishing a robust foundation for future AI-driven advancements in medical imaging.

Description

Treballs Finals de Grau d'Enginyeria Informàtica, Facultat de Matemàtiques, Universitat de Barcelona, Any: 2025, Director: Oliver Díaz

Citation

Citation

BLANDÓN TÓRREZ, David. Evaluation of Transformer-Based Models for Molecular Subtype Classification of Invasive Ductal Breast Carcinoma Using Mammography. [consulted: 17 of August of 2026]. Available at: https://hdl.handle.net/2445/223419

Export metadata

JSON - METS

Share record