Wavelet based deep learning for robust breast cancer histopathology classification under domain shift

(1) * Dyah Ayu Woro Setyaningrum Mail (a. Department of Anatomic Pathology, Faculty of Medicine, Universitas Trisakti b. Department of Epidemiology, Faculty of Public Health, Universitas Indonesia, Indonesia)
(2) Mondastri Korib Sudaryo Mail (Department of Epidemiology, Faculty of Public Health, Universitas Indonesia, Indonesia)
(3) Ratna Djuwita Mail (Department of Epidemiology, Faculty of Public Health, Universitas Indonesia, Indonesia)
(4) Primariadewi Rustamadji Mail (Department of Anatomic Pathology, Faculty of Medicine, Universitas Indonesia, Indonesia)
(5) Syahril Siregar Mail (Department of Physics, Universitas Indonesia, Indonesia)
(6) Florinda Ilona Mail (Department of Anatomic Pathology, Faculty of Medicine, Universitas Trisakti, Indonesia)
(7) Julian Chendrasari Mail (Department of Anatomic Pathology, Faculty of Medicine, Universitas Trisakti, Indonesia)
(8) Reza Aditya Digambiro Mail (Department of Anatomic Pathology, Faculty of Medicine, Universitas Trisakti, Indonesia)
(9) Egi Martvi Atmaja Mail (Department of Anatomic Pathology, Faculty of Medicine, Universitas Trisakti, Indonesia)
*corresponding author

Abstract


Artificial intelligence (AI) models for breast cancer diagnosis, particularly invasive ductal carcinoma (IDC), often struggle to generalize to real-world pathology workflows, especially in resource-limited environments where datasets are small, imbalanced, and derived from conventional photomicrographs rather than whole-slide images (WSI). This study evaluates the robustness of deep learning models under domain shift using such real-world data. A comparative experimental design was employed using three deep learning models: WaveMix with Laplacian Shot, Vision Transformer (ViT), and Data-Efficient Image Transformer (DeiT). The models were trained on the imbalanced BreakHis dataset (140 benign and 896 malignant images) and externally validated on independent Indonesian IDC photomicrographs to assess real-world generalization. Model performance was assessed using sensitivity, precision, and F1-score, with interpretability evaluated using Grad-CAM. WaveMix achieved the highest generalization performance, with an external F1-score of 0.93, while maintaining strong sensitivity on both internal and independent external datasets. By contrast, ViT achieved perfect internal accuracy but failed significantly under domain shift during external validation (recall 0.02). DeiT showed moderate robustness (external testing F1-score 0.49). Grad-CAM confirmed that WaveMix captured clinically relevant histopathological features. WaveMix with Laplacian Shot provides more reliable domain generalization for IDC diagnosis from conventional photomicrographs than transformer-based models. These findings demonstrate that integrating WaveMix with Laplacian Shot improves robustness under domain shift and class imbalance. External validation using real-world photomicrographs highlight its clinical applicability for IDC diagnosis in resource-constrained settings and underscore the importance of evaluating AI models beyond internal benchmark performance.

Keywords


Breast cancer; Deep learning; Domain shift; Histopathology; External validation

   

DOI

https://doi.org/10.26555/ijain.v12i4.2301
      

Article metrics

Abstract views : 7

   

Cite

   

References


[1] S. R. Lakhani, I. O. Ellis, S. Schnitt, P. H. Tan, and M. van de Vijver, WHO Classification of Tumours of the Breast. Iarc, 2012.

[2] H. Sung et al., “Global Cancer Statistics 2020: GLOBOCAN Estimates of Incidence and Mortality Worldwide for 36 Cancers in 185 Countries,” CA. Cancer J. Clin., vol. 71, no. 3, pp. 209–249, May 2021, doi: 10.3322/caac.21660.

[3] D. Komura, M. Ochi, and S. Ishikawa, “Machine learning methods for histopathological image analysis: Updates in 2024,” Comput. Struct. Biotechnol. J., vol. 27, pp. 383–400, Jan. 2025, doi: 10.1016/j.csbj.2024.12.033.

[4] C. Dunn, D. Brettle, C. Hodgson, R. Hughes, and D. Treanor, “An international study of stain variability in histopathology using qualitative and quantitative analysis,” J. Pathol. Inform., vol. 17, p. 100423, Apr. 2025, doi: 10.1016/j.jpi.2025.100423.

[5] S. A. Omoush, J. A. M. Alzyoud, N. K. T. El-Omari, and A. J. A. Alzyoud, “The Role of Whole Slide Imaging in AI-Based Digital Pathology: Current Challenges and Future Directions An Updated Literature Review,” J. Mol. Pathol., vol. 7, no. 1, p. 2, Jan. 2026, doi: 10.3390/jmp7010002.

[6] Salemis, “Tubular Adenoma of the Breast: A Rare Presentation and Review of the Literature,” J. Clin. Med. Res., 2012, doi: 10.4021/jocmr746w.

[7] Johnson AB, Aishat ON, Adedotun OA, Salewa OE, Adewale A, and Adebola A, “An audit of two hundred and fifty consecutive breast biopsies in Nigerian women,” Ibom Med. J., vol. 18, no. 2, pp. 294–303, Apr. 2025, doi: 10.61386/imj.v18i2.668.

[8] T. Mehmood, M. I. Anwar, M. H. Laique, D. Javed, A. Askari, and M. Rizwan, “Clinico-Epidemiological Profile Of Patients Presented With Breast Lesions: An Institutional Analysis,” J. Popul. Ther. Clin. Pharmacol., pp. 1296–1301, Dec. 2023, doi: 10.53555/jptcp.v30i19.3833.

[9] N. K. Srivastava, S. Singh, D. Mohanty, and N. Hussain, “Clinicopathological profile of breast cancer from Chhattisgarh India: A single-center hospital-based study,” J. Fam. Med. Prim. Care, vol. 12, no. 9, pp. 1923–1930, Sep. 2023, doi: 10.4103/jfmpc.jfmpc_2315_22.

[10] L. Lokarjana, E. Hamidah Abbas, N. Aida Fathya, and A. Wahyuni Kartika, “Description Of Mammae Carcinoma Patients Based On Age And Stadium At Hasan Sadikin Hospital Bandung,” ACTA Med. Heal. Sci., no. Volume 2 No 1, pp. 1–8, Jun. 2023, doi: 10.35990/amhs.v2n1.p1-8.

[11] M. Salmi, D. Atif, D. Oliva, A. Abraham, and S. Ventura, “Handling imbalanced medical datasets: review of a decade of research,” Artif. Intell. Rev., vol. 57, no. 10, p. 273, Sep. 2024, doi: 10.1007/s10462-024-10884-2.

[12] W. Albattah and R. U. Khan, “Impact of imbalanced features on large datasets,” Front. Big Data, vol. 8, Mar. 2025, doi: 10.3389/fdata.2025.1455442.

[13] Z. Yang et al., “A foundation model for generalizable cancer diagnosis and survival prediction from histopathological images,” Nat. Commun., vol. 16, no. 1, p. 2366, Mar. 2025, doi: 10.1038/s41467-025-57587-y.

[14] M. Asadi-Aghbolaghi et al., “Learning generalizable AI models for multi-center histopathology image classification,” npj Precis. Oncol., vol. 8, no. 1, p. 151, Jul. 2024, doi: 10.1038/s41698-024-00652-4.

[15] M. Sikaroudi, M. Hosseini, R. Gonzalez, S. Rahnamayan, and H. R. Tizhoosh, “Generalization of vision pre-trained models for histopathology,” Sci. Rep., vol. 13, no. 1, p. 6065, Apr. 2023, doi: 10.1038/s41598-023-33348-z.

[16] V. Ivanov et al., “Use of AI Histopathology in Breast Cancer Diagnosis,” Medicina (B. Aires)., vol. 61, no. 10, p. 1878, Oct. 2025, doi: 10.3390/medicina61101878.

[17] X. Chen et al., “AI-Driven Transcriptome Prediction in Human Pathology: From Molecular Insights to Clinical Applications,” Biology (Basel)., vol. 14, no. 6, p. 651, Jun. 2025, doi: 10.3390/biology14060651.

[18] M. Kang, Z. Yang, T. Yu, D. Li, Z. Wang, and L. Chen, “Clinical applications of artificial intelligence in the histopathology of lymphoma: diagnosis, treatment and prognosis,” Discov. Oncol., vol. 16, no. 1, p. 2180, Nov. 2025, doi: 10.1007/s12672-025-03970-6.

[19] A. Marra et al., “Artificial intelligence entering the pathology arena in oncology: current applications and future perspectives,” Ann. Oncol., vol. 36, no. 7, pp. 712–725, Jul. 2025, doi: 10.1016/j.annonc.2025.03.006.

[20] A. Asif, K. Rajpoot, S. Graham, D. Snead, F. Minhas, and N. Rajpoot, “Unleashing the potential of AI for pathology: challenges and recommendations,” J. Pathol., vol. 260, no. 5, pp. 564–577, Aug. 2023, doi: 10.1002/path.6168.

[21] A. Dosovitskiy, “An image is worth 16x16 words: Transformers for image recognition at scale,” arXiv Prepr. arXiv2010.11929, 2020.

[22] H. Touvron, M. Cord, M. Douze, F. Massa, A. Sablayrolles, and H. Jégou, “Training data-efficient image transformers & distillation through attention,” in International conference on machine learning, 2021, pp. 10347–10357.

[23] Y. Ma, S. Jamdade, L. Konduri, and H. Sailem, “AI in Histopathology Explorer for comprehensive analysis of the evolving AI landscape in histopathology,” npj Digit. Med., vol. 8, no. 1, p. 156, Mar. 2025, doi: 10.1038/s41746-025-01524-2.

[24] A. Sevinc, M. Ucan, and B. Kaya, “A Distillation Approach to Transformer-Based Medical Image Classification with Limited Data,” Diagnostics, vol. 15, no. 7, p. 929, Apr. 2025, doi: 10.3390/diagnostics15070929.

[25] L. Gao, L. Zhang, C. Liu, and S. Wu, “Handling imbalanced medical image data: A deep-learning-based one-class classification approach,” Artif. Intell. Med., vol. 108, p. 101935, Aug. 2020, doi: 10.1016/j.artmed.2020.101935.

[26] P. Jeevan, K. Viswanathan, and A. Sethi, “Wavemix: A resource-efficient neural network for image analysis,” arXiv Prepr. arXiv2205.14375, 2022.

[27] F. A. Spanhol, L. S. Oliveira, C. Petitjean, and L. Heutte, “Breast cancer histopathological image classification using Convolutional Neural Networks,” in 2016 International Joint Conference on Neural Networks (IJCNN), 2016, pp. 2560–2567, doi: 10.1109/IJCNN.2016.7727519.

[28] I. Ziko, J. Dolz, E. Granger, and I. Ben Ayed, “Laplacian regularized few-shot learning,” in International conference on machine learning, 2020, pp. 11660–11670.

[29] J. Bergstra and Y. Bengio, “Random search for hyper-parameter optimization.,” J. Mach. Learn. Res., vol. 13, no. 2, 2012.

[30] D. Chicco and G. Jurman, “The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation,” BMC Genomics, vol. 21, no. 1, p. 6, Dec. 2020, doi: 10.1186/s12864-019-6413-7.

[31] F. Kamalov, F. Thabtah, and H. H. Leung, “Feature Selection in Imbalanced Data,” Ann. Data Sci., vol. 10, no. 6, pp. 1527–1541, Dec. 2023, doi: 10.1007/s40745-021-00366-5.

[32] J. Štifanić, D. Štifanić, N. Anđelić, and Z. Car, “Explainable AI for Oral Cancer Diagnosis: Multiclass Classification of Histopathology Images and Grad-CAM Visualization,” Biology (Basel)., vol. 14, no. 8, p. 909, Jul. 2025, doi: 10.3390/biology14080909.

[33] D. Tang, J. Chen, L. Ren, X. Wang, D. Li, and H. Zhang, “Reviewing CAM-Based Deep Explainable Methods in Healthcare,” Appl. Sci., vol. 14, no. 10, p. 4124, May 2024, doi: 10.3390/app14104124.

[34] S. Suara, A. Jha, P. Sinha, and A. A. Sekh, “Is Grad-CAM Explainable in Medical Images?,” 2024, pp. 124–135, doi: 10.1007/978-3-031-58181-6_11.

[35] D. Bhati, F. Neha, and M. Amiruzzaman, “A Survey on Explainable Artificial Intelligence (XAI) Techniques for Visualizing Deep Learning Models in Medical Imaging,” J. Imaging, vol. 10, no. 10, p. 239, Sep. 2024, doi: 10.3390/jimaging10100239.

[36] E. A. M. Stanley et al., “Towards objective and systematic evaluation of bias in artificial intelligence for medical imaging,” J. Am. Med. Informatics Assoc., vol. 31, no. 11, pp. 2613–2621, Nov. 2024, doi: 10.1093/jamia/ocae165.

[37] L. Zhang, Y. Lin, X. Yang, T. Chen, X. Cheng, and W. Cheng, “From Sample Poverty to Rich Feature Learning: A New Metric Learning Method for Few-Shot Classification,” IEEE Access, vol. 12, pp. 124990–125002, 2024, doi: 10.1109/ACCESS.2024.3444483.

[38] X. Han, D. Shi, Z. Wang, Y. Chen, S. Jin, and S. Yang, “Meta learning for few shot open task recognition,” Sci. Rep., vol. 16, no. 1, p. 5624, Jan. 2026, doi: 10.1038/s41598-026-36291-x.

[39] L. Yu and X.-S. Gao, “Improve Robustness and Accuracy of Deep Neural Network with L2,∞ Normalization,” J. Syst. Sci. Complex., vol. 36, no. 1, pp. 3–28, Feb. 2023, doi: 10.1007/s11424-022-1326-y.

[40] J. Liu et al., “HASD: Hierarchical Adaption for Pathology Slide Level Domain Shift,” 2026, pp. 332–342, doi: 10.1007/978-3-032-04978-0_32.

[41] F. Abdullakutty, Y. Akbari, S. Al-Maadeed, A. Bouridane, I. M. Talaat, and R. Hamoudi, “Histopathology in focus: a review on explainable multi-modal approaches for breast cancer diagnosis,” Front. Med., vol. 11, Sep. 2024, doi: 10.3389/fmed.2024.1450103.

[42] G. Faa, M.2Fraschini, and L. Barberini, “Reproducibility and explainability in digital pathology: The need to make black-box artificial intelligence systems more transparent,” J. Public health Res., vol. 13, no. 4, Oct. 2024, doi: 10.1177/22799036241284898.

[43] O. Elharrouss et al., “ViTs as backbones: Leveraging vision transformers for feature extraction,” Inf. Fusion, vol. 118, p. 102951, Jun. 2025, doi: 10.1016/j.inffus.2025.102951.

[44] S. Alijani, J. Fayyad, and H. Najjaran, “Vision transformers in domain adaptation and domain generalization: a study of robustness,” Neural Comput. Appl., vol. 36, no. 29, pp. 17979–18007, Oct. 2024, doi: 10.1007/s00521-024-10353-5.

[45] J. Loo et al., “Autofluorescence Virtual Staining System for H&E Histology and Multiplex Immunofluorescence Applied to Immuno-Oncology Biomarkers in Lung Cancer.” 13-Jun-2024, doi: 10.1101/2024.06.12.24308841.

[46] S. Lin, H. Zhou, M. Watson, R. Govindan, R. J. Cote, and C. Yang, “Impact of stain variation and color normalization for prognostic predictions in pathology,” Sci. Rep., vol. 15, no. 1, p. 2369, Jan. 2025, doi: 10.1038/s41598-024-83267-w.

[47] J. S. Yoon, K. Oh, Y. Shin, M. A. Mazurowski, and H.-I. Suk, “Domain Generalization for Medical Image Analysis: A Review,” Proc. IEEE, vol. 112, no. 10, pp. 1583–1609, Oct. 2024, doi: 10.1109/JPROC.2024.3507831.




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

___________________________________________________________
International Journal of Advances in Intelligent Informatics
ISSN 2442-6571  (print) | 2548-3161 (online)
Organized by UAD and ASCEE Computer Society
Published by Universitas Ahmad Dahlan
W: http://ijain.org
E: info@ijain.org (paper handling issues)
 andri.pranolo.id@ieee.org (publication issues)

View IJAIN Stats

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0