LeukocyteNet: An Explainable Transfer-Transformer Fusion Learning Model for Leukocyte Classification
Downloads
White Blood Cells (WBCs), or leukocytes, are essential components of the immune system that protect the body against infections and malignant disorders. Even minor fluctuations in leukocyte count can indicate serious pathological conditions, including life-threatening malignancies such as leukemia, lymphoma, and myelodysplastic syndromes. Conventional diagnosis through manual microscopic examination is time-consuming, subjective, and heavily dependent on the pathologist’s expertise. To overcome these challenges, this study introduces LeukocyteNet, a transfer–transformer fusion model designed for the automated classification of ten malignant leukocyte categories. The model integrates convolutional feature extraction from VGG19 with the Swin Transformer’s global attention mechanism, enabling robust representations of both local morphology and global spatial dependencies. The LeukocyteNet model was trained on three publicly available datasets “ALL-IDB, the American Society of Hematology Image Bank, and Tehran Taleqani Hospital” and achieved an overall accuracy of 97.34%, a macro-averaged F1-score of 0.95, and a recall of 0.93, outperforming all evaluated baseline models. Furthermore, the inclusion of explainable AI techniques Grad-CAM, LIME, and Saliency Map enhances explainability by visualizing class-specific decision regions, thereby increasing clinical transparency and reliability. These findings demonstrate that LeukocyteNet not only achieves state-of-the-art predictive performance but also provides interpretable insights critical for trustworthy medical diagnostics.
Downloads
[1] Bray, F., Ferlay, J., Soerjomataram, I., Siegel, R. L., Torre, L. A., & Jemal, A. (2018). Global cancer statistics 2018: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA: A Cancer Journal for Clinicians, 68(6), 394–424. doi:10.3322/caac.21492.
[2] Cazzola, M., & Malcovati, L. (2005). Myelodysplastic Syndromes — Coping with Ineffective Hematopoiesis. New England Journal of Medicine, 352(6), 536–538. doi:10.1056/nejmp048266.
[3] Chennamadhavuni, A., Iyengar, V., Mukkamalla, S. K. R., & Shimanovsky, A. (2023). Leukemia. StatPearls Publishing, Florida, United States. Available online: https://www.ncbi.nlm.nih.gov/books/NBK560490/ (accessed on May 2026).
[4] Maxhealthcare (2026). Is blood cancer curable: Types, symptoms & causes of blood cancer. Is Blood Cancer Curable: Types, Symptoms & Causes of Blood Cancer. Available online: https://www.maxhealthcare.in/blogs/is-blood-cancer-curable (accessed on May 2026).
[5] Deshpande, N. M., Gite, S., & Aluvalu, R. (2021). A review of microscopic analysis of blood cells for disease detection with AI perspective. PeerJ Computer Science, 7, e460. doi:10.7717/peerj-cs.460.
[6] Tran, K. A., Kondrashova, O., Bradley, A., Williams, E. D., Pearson, J. V., & Waddell, N. (2021). Deep learning in cancer diagnosis, prognosis and treatment selection. Genome medicine, 13(1), 152. doi:10.1186/S13073-021-00968-X.
[7] Alazaidah, R., Samara, G., Abu Asi, H., Abuowaida, S., Mashagba, H. A., Abd Aziz, A., … Al-Bawri, S. S. (2025). Breast Cancer Classification Using Deep Feature Extraction and Machine Learning. HighTech and Innovation Journal, 6(4), 1282–1299. doi:10.28991/HIJ-2025-06-04-09.
[8] Islam, M. S., Hasan, K. F., Sultana, S., Uddin, S., Lio’, P., Quinn, J. M. W., & Moni, M. A. (2023). HARDC: A novel ECG-based heartbeat classification method to detect arrhythmia using hierarchical attention based dual structured RNN with dilated CNN. Neural Networks, 162, 271–287. doi:10.1016/j.neunet.2023.03.004.
[9] Talukder, M. A., Islam, M. M., Uddin, M. A., Akhter, A., Hasan, K. F., & Moni, M. A. (2022). Machine learning-based lung and colon cancer detection using deep feature extraction and ensemble learning. Expert Systems with Applications, 205, 117695. doi:10.1016/j.eswa.2022.117695.
[10] Bala, M., Ali, M. H., Satu, M. S., Hasan, K. F., & Moni, M. A. (2022). Efficient Machine Learning Models for Early Stage Detection of Autism Spectrum Disorder. Algorithms, 15(5), 166. doi:10.3390/a15050166.
[11] Watson, D. S., Krutzinna, J., Bruce, I. N., Griffiths, C. E. M., McInnes, I. B., Barnes, M. R., & Floridi, L. (2019). Clinical applications of machine learning algorithms: Beyond the black box. BMJ, 364. doi:10.1136/bmj.l886.
[12] Loh, H. W., Ooi, C. P., Seoni, S., Barua, P. D., Molinari, F., & Acharya, U. R. (2022). Application of explainable artificial intelligence for healthcare: A systematic review of the last decade (2011–2022). Computer Methods and Programs in Biomedicine, 226, 107161. doi:10.1016/j.cmpb.2022.107161.
[13] Kabir, M. H., Hasan, K. F., Hasan, M. K., & Ansari, K. (2022). Explainable Artificial Intelligence for Smart City Application: A Secure and Trusted Platform. Explainable Artificial Intelligence for Cyber Security, Studies in Computational Intelligence, Springer, Cham, Switzerland. doi:10.1007/978-3-030-96630-0_11.
[14] Jia, N., Guo, J., Li, Y., Tang, S., Xu, L., Liu, L., & Xing, J. (2024). A fine-grained image classification algorithm based on self-supervised learning and multi-feature fusion of blood cells. Scientific Reports, 14(1), 22964. doi:10.1038/s41598-024-74753-2.
[15] Anand, V., Gupta, S., Koundal, D., Alghamdi, W. Y., & Alsharbi, B. M. (2024). Deep learning-based image annotation for leukocyte segmentation and classification of blood cell morphology. BMC Medical Imaging, 24(1), 83. doi:10.1186/s12880-024-01254-z.
[16] Üzen, H., & Fırat, H. (2024). A hybrid approach based on multipath Swin transformer and ConvMixer for white blood cells classification. Health Information Science and Systems, 12(1), 33. doi:10.1007/s13755-024-00291-w.
[17] Ghosh, A., Singh, S., & Sheet, D. (2017). Simultaneous localization and classification of acute lymphoblastic leukemic cells in peripheral blood smears using a deep convolutional network with average pooling layer. 2017 IEEE International Conference on Industrial and Information Systems (ICIIS), 1–6. doi:10.1109/ICIINFS.2017.8300425.
[18] Rota, P., Groeneveld-Krentz, S., & Reiter, M. (2015). On automated Flow Cytometric analysis for MRD estimation of Acute Lymphoblastic Leukaemia: A comparison among different approaches. 2015 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), 438–441. doi:10.1109/BIBM.2015.7359723.
[19] Amin, M. M., Kermani, S., Talebi, A., & Oghli, M. G. (2015). Recognition of acute lymphoblastic leukemia cells in microscopic images using k-means clustering and support vector machine classifier. Journal of Medical Signals & Sensors, 5(1), 49–58. doi:10.4103/2228-7477.150428.
[20] Rehman, A., Abbas, N., Saba, T., Rahman, S. I. u., Mehmood, Z., & Kolivand, H. (2018). Classification of acute lymphoblastic leukemia using deep learning. Microscopy Research and Technique, 81(11), 1310–1317. doi:10.1002/jemt.23139.
[21] Shafique, S., & Tehsin, S. (2018). Acute Lymphoblastic Leukemia Detection and Classification of Its Subtypes Using Pretrained Deep Convolutional Neural Networks. Technology in Cancer Research &Amp; Treatment, 17. doi:10.1177/1533033818802789.
[22] Wang, Q., Wang, J., Zhou, M., Li, Q., & Wang, Y. (2017). Spectral-spatial feature-based neural network method for acute lymphoblastic leukemia cell identification via microscopic hyperspectral imaging technology. Biomedical Optics Express, 8(6), 3017. doi:10.1364/boe.8.003017.
[23] Liu, Y., & Long, F. (2019). Acute Lymphoblastic Leukemia Cells Image Analysis with Deep Bagging Ensemble Learning. ISBI 2019 C-NMC Challenge: Classification in Cancer Cell Imaging, Lecture Notes in Bioengineering, Springer, Singapore. doi:10.1007/978-981-15-0798-4_12.
[24] Kassani, S. H., Kassani, P. H., Wesolowski, M. J., Schneider, K. A., & Deters, R. (2019). A Hybrid Deep Learning Architecture for Leukemic B-lymphoblast Classification. 2019 International Conference on Information and Communication Technology Convergence (ICTC), 271–276. doi:10.1109/ICTC46691.2019.8939959.
[25] Safuan, S. N. M., Tomari, M. R. M., Zakaria, W. N. W., Mohd, M. N. H., & Suriani, N. S. (2020). Investigation of white blood cell biomaker model for acute lymphoblastic leukemia detection based on convolutional neural network. Bulletin of Electrical Engineering and Informatics, 9(2), 611–618. doi:10.11591/eei.v9i2.1857.
[26] Ayyappan, V., Chang, A., Zhang, C., Paidi, S. K., Bordett, R., Liang, T., Barman, I., & Pandey, R. (2020). Identification and staging of B-cell acute lymphoblastic leukemia using quantitative phase imaging and machine learning. ACS Sensors, 5(10), 3281–3289. doi:10.1021/acssensors.0c01811.
[27] Bibi, N., Sikandar, M., Din, I. U., Almogren, A., & Ali, S. (2020). IOMT-based automated detection and classification of leukemia using deep learning. Journal of Healthcare Engineering, 2020(1), 6648574. doi:10.1155/2020/6648574.
[28] Genovese, A., Hosseini, M. S., Piuri, V., Plataniotis, K. N., & Scotti, F. (2021). Histopathological Transfer Learning for Acute Lymphoblastic Leukemia Detection. 2021 IEEE International Conference on Computational Intelligence and Virtual Environments for Measurement Systems and Applications (CIVEMSA), 1–6. doi:10.1109/CIVEMSA52099.2021.9493677.
[29] Das, P. K., & Meher, S. (2021). An efficient deep Convolutional Neural Network based detection and classification of Acute Lymphoblastic Leukemia. Expert Systems with Applications, 183, 115311. doi:10.1016/j.eswa.2021.115311.
[30] Dhalla, S., Mittal, A., Gupta, S., & Singh, H. (2021). Multi-model Ensemble to Classify Acute Lymphoblastic Leukemia in Blood Smear Images. Pattern Recognition, ICPR International Workshops and Challenges, ICPR 2021, Lecture Notes in Computer Science, Springer, Cham, Switzerland. doi:10.1007/978-3-030-68763-2_18.
[31] Khandekar, R., Shastry, P., Jaishankar, S., Faust, O., & Sampathila, N. (2021). Automated blast cell detection for Acute Lymphoblastic Leukemia diagnosis. Biomedical Signal Processing and Control, 68, 102690. doi:10.1016/j.bspc.2021.102690.
[32] Ahsan, M. M., Gupta, K. D., Islam, M. M., Sen, S., Rahman, M. L., & Hossain, M. S. (2020). Study of Different Deep Learning Approach with Explainable AI for Screening Patients with COVID-19 Symptoms: Using CT Scan and Chest X-ray Image Dataset. doi:10.3390/make2040027.
[33] Ye, Q., Xia, J., & Yang, G. (2021). Explainable AI for COVID-19 CT Classifiers: An Initial Comparison Study. 2021 IEEE 34th International Symposium on Computer-Based Medical Systems (CBMS), 521–526. doi:10.1109/CBMS52027.2021.00103.
[34] Zhang, A. Y., Lam, S. S. W., Ong, M. E. H., Tang, P. H., & Chan, L. L. (2019). Explainable AI. Proceedings of the 6th IEEE/ACM International Conference on Big Data Computing, Applications and Technologies, 95–102. doi:10.1145/3365109.3368791.
[35] Apon, T. S., Hasan, M. M., Islam, A., & Alam, Md. G. R. (2021). Demystifying Deep Learning Models for Retinal OCT Disease Classification using Explainable AI. 2021 IEEE Asia-Pacific Conference on Computer Science and Data Engineering (CSDE), 1–6. doi:10.1109/CSDE53843.2021.9718400.
[36] Halder, A., Gharami, S., Sadhu, P., Singh, P. K., Woźniak, M., & Ijaz, M. F. (2024). Implementing vision transformer for classifying 2D biomedical images. Scientific Reports, 14(1), 12567. doi:10.1038/s41598-024-63094-9.
[37] Raju, A. S. N., Venkatesh, K., Padmaja, B., Kumar, C. N. S., Patnala, P. R. M., Lasisi, A., Islam, S., Razak, A., & Khan, W. A. (2024). Exploring vision transformers and XGBoost as deep learning ensembles for transforming carcinoma recognition. Scientific Reports, 14(1), 30052. doi:10.1038/s41598-024-81456-1.
[38] Ghaderzadeh, M., Aria, M., Hosseini, A., Asadi, F., Bashash, D., & Abolghasemi, H. (2022). A fast and efficient CNN model for B-ALL diagnosis and its subtypes classification using peripheral blood smear images. International Journal of Intelligent Systems, 37(8), 5113–5133. doi:10.1002/int.22753.
[39] Labati, R. D., Piuri, V., & Scotti, F. (2011). All-IDB: The acute lymphoblastic leukemia image database for image processing. 2011 18th IEEE International Conference on Image Processing, 2045–2048. doi:10.1109/ICIP.2011.6115881.
[40] Imagebank (2026). The American Society of Hematology, Washington, United States. Available Online: https://imagebank.hematology.org/ (accessed on May 2026).
[41] Erlinger, T. P., Muntner, P., & Helzlsouer, K. J. (2004). WBC count and the risk of cancer mortality in a national sample of U.S. adults: Results from the Second National Health and Nutrition Examination Survey mortality study. Cancer Epidemiology Biomarkers and Prevention, 13(6), 1052–1056. doi:10.1158/1055-9965.1052.13.6.
[42] Faivdullah, L., Azahar, F., Htike, Z. Z., & Naing, W. Y. N. (2015). Leukemia Detection from Blood Smears. Journal of Medical and Bioengineering, 4(6), 488–491. doi:10.12720/jomb.4.6.488-491.
[43] Karim, Z. A. A., Khidhir, K. G., Ahmed, R. A., Hassan, H. A., & Karim, D. O. (2016). Leukemia Study in Sulaymaniyah Province, Kurdistan, Iraq. Chinese Medical Journal, 129(2), 244–245. doi:10.4103/0366-6999.173551.
[44] SEER Cancer Statistics. (2009). SEER cancer statistics review, 1975-2006. SEER Cancer Statistics, Washington D.C., United States. Available online: http://seer.cancer.gov/csr/1975_2006/ (accessed on May 2026).
[45] Swerdlow, S. H., Campo, E., Pileri, S. A., Harris, N. L., Stein, H., Siebert, R., Advani, R., Ghielmini, M., Salles, G. A., Zelenetz, A. D., & Jaffe, E. S. (2016). The 2016 revision of the World Health Organization classification of lymphoid neoplasms. Blood, 127(20), 2375–2390. doi:10.1182/blood-2016-01-643569.
[46] Stone, R. M., O’Donnell, M. R., & Sekeres, M. A. (2004). Acute Myeloid Leukemia. Hematology, 2004(1), 98–117. doi:10.1182/asheducation-2004.1.98.
[47] Döhner, H., Estey, E., Grimwade, D., Amadori, S., Appelbaum, F. R., Büchner, T., Dombret, H., Ebert, B. L., Fenaux, P., Larson, R. A., Levine, R. L., Lo-Coco, F., Naoe, T., Niederwieser, D., Ossenkoppele, G. J., Sanz, M., Sierra, J., Tallman, M. S., Tien, H. F., … Bloomfield, C. D. (2017). Diagnosis and management of AML in adults: 2017 ELN recommendations from an international expert panel. Blood, 129(4), 424–447. doi:10.1182/blood-2016-08-733196.
[48] Milne, K., Sturrock, B., & Chevassut, T. (2020). Chronic Lymphocytic Leukaemia in 2020: the Future Has Arrived. Current Oncology Reports, 22(4), 36. doi:10.1007/s11912-020-0893-0.
[49] Cuttner, J. (1992). Increased incidence of hematologic malignancies in first-degree relatives of patients with chronic lymphocytic leukemia. Cancer Investigation, 10(2), 103–109. doi:10.3109/07357909209032771.
[50] Pc, N. (1960). A Minute Chromosome in Human Chronic Granulocytic Leukemia. Science, 132, 1497.
[51] Sawyers, C. L. (1999). Chronic Myeloid Leukemia. New England Journal of Medicine, 340(17), 1330–1340. doi:10.1056/nejm199904293401706.
[52] Rollison, D. E., Howlader, N., Smith, M. T., Strom, S. S., Merritt, W. D., Ries, L. A., Edwards, B. K., & List, A. F. (2008). Epidemiology of myelodysplastic syndromes and chronic myeloproliferative disorders in the United States, 2001-2004, using data from the NAACCR and SEER programs. Blood, 112(1), 45–52. doi:10.1182/blood-2008-01-134858.
[53] Ribeiro, M., Singh, S., & Guestrin, C. (2016). “Why Should I Trust You?”: Explaining the Predictions of Any Classifier. Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Demonstrations, 97–101. doi:10.18653/v1/n16-3020.
[54] Chattopadhay, A., Sarkar, A., Howlader, P., & Balasubramanian, V. N. (2018). Grad-CAM++: Generalized Gradient-Based Visual Explanations for Deep Convolutional Networks. 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), 839–847. doi:10.1109/WACV.2018.00097.
[55] Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., & Batra, D. (2020). Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. International Journal of Computer Vision, 128(2), 336–359. doi:10.1007/s11263-019-01228-7.
[56] Selvaraju, R. R., Das, A., Vedantam, R., Cogswell, M., Parikh, D., & Batra, D. (2016). Grad-CAM: Why did you say that?. arXiv Preprint, arXiv:1611.07450. doi:10.48550/arViv.161107450.
[57] Simonyan, K., Vedaldi, A., & Zisserman, A. (2013). Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv Preprint, arXiv:1312.6034. doi:10.48550/arXiv.1312.6034.
[58] Mundhenk, T. N., Chen, B. Y., & Friedland, G. (2019). Efficient saliency maps for explainable AI. arXiv Preprint, arXiv:1911.11293. doi:10.48550/arXiv.1911.11293.
- This work (including HTML and PDF Files) is licensed under a Creative Commons Attribution 4.0 International License.



















