Twins2-Sat: A Taylor Bird Swarm Optimized Twin-Spatially‎A separable Self-Attention Transformer Model for Highly ‎Accurate Breast Cancer Classification

  • Authors

    • P. S. Anu Rakhi Research Scholar, Department of Computer Science and Engineering, Manonmaniam Sundaranar University, Tirunelveli, India
    • R. S. Rajesh Professor, Department of Computer Science and Engineering, Manonmaniam Sundaranar University, Tirunelveli, India
    https://doi.org/10.14419/qnnt4s07

    Received date: May 21, 2025

    Accepted date: June 29, 2025

    Published date: August 27, 2025

  • Adaptive Savitzky-Golay Filter (ASGF); Markov Random Field (MRF); GLCM; TwinS²SAT; TBSA
  • Abstract

    In light of the growing need for sophisticated diagnostic systems in medical imaging, this work presents a novel framework for the ‎diagnosis of breast cancer that focuses on accurate tissue characterization using texture and attention-based learning. Mammography images ‎of the breast are first preprocessed using an Adaptive Savitzky-Golay Filter (ASGF) to reduce noise and improve important structures. The ‎next step is the precise segmentation of problematic areas using the Markov Random Field (MRF) model, which efficiently defines tumor ‎borders by utilizing spatial dependencies. Following the isolation of the region of interest, texture features are extracted using the Gray-Level ‎Co-occurrence Matrix (GLCM), which uses statistical metrics like energy, contrast, and correlation to capture crucial spatial correlations in ‎pixel intensities. After that, these descriptive characteristics are sent to a TwinS²SAT model, which is an improved Twins-Spatially ‎Separable Self-Attention (SSSA) Transformer that has been tuned using the Taylor Bird Swarm Algorithm (TBSA) to enhance ‎classification performance and learning efficiency. The combination of a lightweight, attention-driven deep architecture with GLCM features ‎allows for a reliable differentiation between benign and malignant tissue patterns. Python software is used to evaluate the proposed model, and ‎the comparison is made with the Self-Attention Transformer (SAT) model. The results show that compared to SAT with 94.99% of accuracy, ‎the TBSA- TwinS²SAT model ranks with excellent accuracy of 97.94%, precision of 98%, and 99% recall, confirming its potential as a ‎useful tool for automated breast cancer diagnosis‎.

  • References

    1. Hirra I, Ahmad M, Hussain A, Usman Ashraf M, Saeed IA, Qadri SF, Alghamdi AM & Alfakeeh AS (2021), Breast cancer classification from his-topathological images using patch-based deep learning modeling, IEEE Access, 9, 24273-24287, https://doi.org/10.1109/ACCESS.2021.3056516.
    2. Saber A, Sakr M, Abo-Seida OM, Keshk A & Chen H (2021), A novel deep-learning model for automatic detection and classification of breast cancer using the transfer-learning technique. IEEE Access, 9, 71194-71209, https://doi.org/10.1109/ACCESS.2021.3079204.
    3. Liu M, Hu L, Tang Y, Wang C, He Y, Zeng C, Lin K, He Z & Huo W (2022), A deep learning method for breast cancer classification in the pa-thology images, IEEE Journal of Biomedical and Health Informatics, 26, 10, 5025-5032, https://doi.org/10.1109/JBHI.2022.3187765
    4. Naseem U, Rashid J, Ali L, Kim J, Haq QEU, Awan MJ & Imran M (2022), An automatic detection of breast cancer diagnosis and prognosis based on machine learning using ensemble of classifiers, IEEE Access, 10, 78242-78252, https://doi.org/10.1109/ACCESS.2022.3174599.
    5. Rehman MU, Shafique A, Ghadi YY, Boulila W, Jan SU, Gadekallu TR, Driss M & Ahmad J (2022), A novel chaos-based privacy-preserving deep learning model for cancer diagnosis, IEEE Transactions on Network Science and Engineering, 9, 6, 4322-4337, https://doi.org/10.1109/TNSE.2022.3199235.
    6. Fan M, Yuan C, Huang G, Xu M, Wang S, Gao X & Li L (2022), A framework for deep multitask learning with multiparametric magnetic reso-nance imaging for the joint prediction of histological characteristics in breast cancer, IEEE Journal of Biomedical and Health Informatics, 26, 8, 3884-3895, https://doi.org/10.1109/JBHI.2022.3179014.
    7. Gamal A, Sharafeldeen A, Alnaghy E, Alghandour R, Alghamdi NS, Ali KM & Shamaa S (2024), A novel machine learning approach for predict-ing neoadjuvant chemotherapy response in breast cancer: integration of multimodal radiomics with clinical and molecular subtype markers, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3432459.
    8. Jabeen K, Khan MA, Alhaisoni M, Tariq U, Zhang YD, Hamza A, Mickus A & Damaševičius R (2022), Breast cancer classification from ultra-sound images using probability-based optimal deep learning feature fusion, Sensors, 22, 3, 807, https://doi.org/10.3390/s22030807.
    9. Jadoon EK, Khan FG, Shah S, Khan A & Elaffendi M (2023), Deep learning-based multi-modal ensemble classification approach for human breast cancer prognosis, IEEE Access, 11, 85760-85769, https://doi.org/10.1109/ACCESS.2023.3304242.
    10. Jebarani PE, Umadevi N, Dang H & Pomplun M (2021), A novel hybrid K-means and GMM machine learning model for breast cancer detection”, IEEE Access, vol. 9, pp. 146153-146162, https://doi.org/10.1109/ACCESS.2021.3123425
    11. Sheng W, Xia S, Wang Y, Yan L, Ke S, Mellisa E, Gong F, Zheng Y & Tang T (2022), Invasive ductal breast cancer molecular subtype prediction by MRI radiomic and clinical features based on machine learning, Frontiers in Oncology, 12, 964605, https://doi.org/10.3389/fonc.2022.964605.
    12. Chikkala RB, Anuradha C, Murty PSC, Rajeswari S, Rajeswaran N, Murugappan M & Chowdhury ME (2025), Enhancing Breast Cancer Diagno-sis with Bidirectional Recurrent Neural Networks: A Novel Approach for Histopathological Image Multi-Classification, IEEE Access, https://doi.org/10.1109/ACCESS.2025.3542989.
    13. Abdullah KA, Marziali S, Nanaa M, Sánchez LE, Payne NR & Gilbert FJ (2025), Deep learning-based breast cancer diagnosis in breast MRI: sys-tematic review and meta-analysis, European Radiology, 1-16, https://doi.org/10.1007/s00330-025-11406-6.
    14. Paul Joshua K, Alex SA, Mageswari M & Jothilakshmi R (2024), Enhanced conditional self-attention generative adversarial network for detecting cotton plant disease in IoT-enabled crop management, Wireless Networks, 1-15, https://doi.org/10.1007/s11276-024-03762-w
    15. Sreelekshmi V, Pavithran K & Nair JJ (2024), SwinCNN: An Integrated Swin Trasformer and CNN for improved breast cancer grade classification, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3397667.
    16. Rashid TA, Majidpour J, Thinakaran R, Batumalay M, Dewi DA, Hassan BA, Dadgar H & Arabi H (2024), NSGA-II-DL: metaheuristic optimal feature selection with deep learning framework for HER2 classification in breast cancer, IEEE Access, 12, 38885-38898, https://doi.org/10.1109/ACCESS.2024.3374890
    17. Zeng R, Qu B, Liu W, Li J, Li H, Bing P, Duan S & Zhu L (2024), FastLeakyResNet-CIR: A novel deep learning framework for breast cancer de-tection and classification, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3401729
    18. Koshy SS & Jani Anbarasi L (2024), LMHistNet: Levenberg–Marquardt based deep neural network for classification of breast cancer histopatho-logical images, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3385011.
    19. Rahman M, Deb K, Dhar PK & Shimamura T (2024), ADBNet: An Attention-Guided Deep Broad Convolutional Neural Network for the Classifi-cation of Breast Cancer Histopathology Images, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3419004.
    20. Rastogi M, Vijarania M, Goel N, Agrawal A, Biamba CN & Iwendi C (2024), Conv1D-LSTM: Autonomous Breast Cancer Detection Using a One-Dimensional Convolutional Neural Network with Long Short-Term Memory, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3514662.
    21. Hayat M, Ahmad N, Nasir A & Tariq ZA (2024), Hybrid Deep Learning EfficientNetV2 and Vision Transformer (EffNetV2-ViT) Model for Breast Cancer Histopathological Image Classification, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3503413
    22. Zeynali A, Tinati MA & Tazehkand BM (2024), Hybrid CNN-Transformer Architecture with Xception-Based Feature Enhancement for Accurate Breast Cancer Classification, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3516535.
    23. Senapati K & Pandey AK (2024), A novel decision level class-wise ensemble method in deep learning for automatic multi-class classification of her2 breast cancer hematoxylin-eosin images, IEEE Access, 12, 46093-46103, https://doi.org/10.1109/ACCESS.2024.3382212
    24. Hekal AA, Elnakib A, Moustafa HE, & Amer HM (2024), Breast cancer segmentation from ultrasound images using deep dual-decoder technology with attention network, IEEE Access, 12, 10087-10101, https://doi.org/10.1109/ACCESS.2024.3351564.
    25. Vanitha K, Manimaran A, Chokkanathan K, Anitha K, Mahesh TR, Vinoth Kumar V & Vivekananda GN (2024), Attention-based Feature Fusion with External Attention Transformers for Breast Cancer Histopathology Analysis, IEEE Access, https://doi.org/10.1109/ACCESS.2024.3443126
    26. Mo Y, Han C, Liu Y, Liu M, Shi Z, Lin J, Zhao B, Huang C, Qiu B, Cui Y & Wu L (2023), Hover-trans: Anatomy-aware hover-transformer for roi-free breast cancer diagnosis in ultrasound images, IEEE Transactions on Medical Imaging, 42, 6, 1696-1706, https://doi.org/10.1109/TMI.2023.3236011.
    27. Monjezi E, Akbarizadeh G & Ansari-Asl K (2024), RI-ViT: A Multi-Scale Hybrid Method Based on Vision Transformer for Breast Cancer Detec-tion in Histopathological Images. IEEE Access, 12, 186074 – 186086, https://doi.org/10.1109/ACCESS.2024.3514322
    28. Maurya R, Pandey NN & Mahapatra S (2025), BMEA-ViT: Breast Cancer Classification using Lightweight Customised Vision Transformer Archi-tecture with Multi-Head External Attention. IEEE Access, 13, 44317 – 44329, https://doi.org/10.1109/ACCESS.2025.3547862
    29. Sabry M, Balaha HM, Ali KM, Soliman TH, Gondim D, Ghazal M, Alghamdi NS & El-Baz A (2025), Enhancing Breast Cancer Diagnosis with Multi-Resolution Vision Transformers and Robust Decision-Making. IEEE Access, 13, 89704 – 89722, https://doi.org/10.1109/ACCESS.2025.3570840.
    30. Al-Hejri AM, Al-Tam RM, Fazea M, Sable AH, Lee S & Al-Antari MA (2022), ETECADx: Ensemble self-attention transformer encoder for breast cancer diagnosis using full-field digital X-ray breast images. Diagnostics, 13, 1, 89, https://doi.org/10.3390/diagnostics13010089.
    31. Ahmed MR, Rahman H, Limon ZH, Siddiqui MI, Khan MA, Pranta AS, Haque R, Swapno SM, Cho YI & Abdallah MS (2025), Hierarchical Swin Transformer Ensemble with Explainable AI for Robust and Decentralized Breast Cancer Diagnosis. Bioengineering, 12, 6, 651, https://doi.org/10.3390/bioengineering12060651.
    32. Hamim M, El Moudden I, Pant MD, Moutachaouik H, & Hain M (2021), A hybrid gene selection strategy based on fisher and ant colony optimiza-tion algorithm for breast cancer classification, 148-163. https://doi.org/10.3991/ijoe.v17i02.19889.
    33. Bilal A, Imran A, Baig TI, Liu X, Abouel Nasr E & Long H (2024), Breast cancer diagnosis using support vector machine optimized by improved quantum inspired grey wolf optimization. Scientific Reports, 14, 1, 0714, https://doi.org/10.1038/s41598-024-61322-w
    34. Thawkar S (2021), A hybrid model using teaching–learning-based optimization and Salp swarm algorithm for feature selection and classification in digital mammography. Journal of ambient intelligence and humanized computing, 12, 8793-8808, https://doi.org/10.1007/s12652-020-02662-z
    35. Aguerchi K, Jabrane Y, Habba M & El Hassani AH (2024), A CNN hyperparameters optimization based on particle swarm optimization for mam-mography breast cancer classification. Journal of Imaging, 10, 2, 30, https://doi.org/10.3390/jimaging10020030
    36. Khan S, Islam N, Jan Z, Din IU & Rodrigues JJC (2019), A novel deep learning based framework for the detection and classification of breast can-cer using transfer learning, Pattern Recognition Letters, 125 1-6, https://doi.org/10.1016/j.patrec.2019.03.022
    37. Moon WK, Lee YW, Ke HH, Lee SH, Huang CS & Chang RF (2020), Computer‐aided diagnosis of breast ultrasound images using ensemble learning from convolutional neural networks, Computer methods and programs in biomedicine, 190, 105361, https://doi.org/10.1016/j.cmpb.2020.105361.
    38. Zuluaga-Gomez J, Masry ZA, Benaggoune K, Meraghni S & Zerhouni N (2021), A CNN-based methodology for breast cancer diagnosis using thermal images, Computer Methods in Biomechanics and Biomedical Engineering: Imaging & Visualization, 9, 2, 131-145, https://doi.org/10.1080/21681163.2020.1824685.
    39. Toğaçar M, Özkurt KB, Ergen B & Cömert Z (2020), BreastNet: A novel convolutional neural network model through histopathological images for the diagnosis of breast cancer, Physica A: Statistical Mechanics and its Applications, 545, 123592, https://doi.org/10.1016/j.physa.2019.123592.
    40. Hekal AA, Elnakib A & Moustafa HE (2021), Automated early breast cancer detection and classification system, Signal, Image and Video Pro-cessing, 15, 7, 1497-1505, https://doi.org/10.1007/s11760-021-01882-w
    41. Maqsood S, Damaševičius R & Maskeliūnas R (2022), TTCNN: A breast cancer detection and classification towards computer-aided diagnosis us-ing digital mammography in early stages, Applied Sciences, 12, 7, 3273, https://doi.org/10.3390/app12073273.
    42. Tavakoli N, Karimi M, Norouzi A, Karimi N, Samavi S & Soroushmehr SR (2023), Detection of abnormalities in mammograms using deep features, Journal of Ambient Intelligence and Humanized Computing, 1-13, https://doi.org/10.1007/s12652-019-01639-x
    43. Al-Masni MA, Al-Antari MA, Park JM, Gi G, Kim TY, Rivera P, Valarezo E, Choi MT, Han SM & Kim TS (2018), Simultaneous detection and classification of breast masses in digital mammograms via a deep learning YOLO-based CAD system, Computer methods and programs in biomed-icine, 157, 85-94, https://doi.org/10.1016/j.cmpb.2018.01.017
    44. Ragab DA, Attallah O, Sharkas M, Ren J & Marshall S (2021), A framework for breast cancer classification using multi-DCNNs, Computers in bi-ology and medicine, 131, 104245, https://doi.org/10.1016/j.compbiomed.2021.104245
    45. Ragab DA, Sharkas M, Marshall S & Ren J (2019), Breast cancer detection using deep convolutional neural networks and support vector machines, PeerJ, 7, e6201, https://doi.org/10.7717/peerj.6201/fig-1.
    46. Zhang H, Wu R., Yuan T, Jiang Z, Huang S, Wu J, Hua J, Niu Z & Ji D (2020), DE-Ada*: A novel model for breast mass classification using cross-modal pathological semantic mining and organic integration of multi-feature fusions, Information Sciences, 539, 461-486, https://doi.org/10.1016/j.ins.2020.05.080.
  • Downloads

  • How to Cite

    Rakhi , P. S. A. ., & Rajesh , R. S. . (2025). Twins2-Sat: A Taylor Bird Swarm Optimized Twin-Spatially‎A separable Self-Attention Transformer Model for Highly ‎Accurate Breast Cancer Classification. International Journal of Basic and Applied Sciences, 14(4), 685-697. https://doi.org/10.14419/qnnt4s07