Enhancing Malaria Diagnosis: A Hybrid Deep Learning Approach Integrating CNN-Swin Transformer, and Grad-CAM
DOI:
https://doi.org/10.22581/0570Keywords:
Malaria Detection , Hybrid Deep Learning , Swin Transformer, Explainable AI , Red Blood Cells (RBCs)Abstract
Malaria remains one of the most pressing global health challenges, demanding diagnostic solutions that are accurate, interpretable, and deployable in clinical practice. Most existing studies rely on traditional machine learning, which depends on handcrafted features and struggles to capture the heterogeneous morphology of malaria parasites. Deep learning approaches, particularly Convolutional Neural Networks (CNNs), have improved feature extraction but are limited by their local receptive fields, weak generalization across diverse blood smear images, and the absence of interpretability mechanisms. Moreover, only limited efforts have been made to utilize red blood cell (RBC) images for robust detection, and prior works seldom explored hybrid architectures or explainable AI (XAI), both of which are crucial for healthcare adoption. To address these gaps, this study proposes a hybrid deep learning framework that integrates CNNs for local feature representation with the Swin Transformer to capture global contextual dependencies. Additionally, XAI techniques, including Grad-CAM, are employed to provide transparent visual explanations by highlighting image regions most relevant to predictions. Experiments conducted on a benchmark malaria cell image dataset demonstrate state-of-the-art performance, achieving 96.8% accuracy, 96.7% precision, 96.9% recall, and a 96.8% F1-score. Confusion matrix analyses confirm balanced sensitivity and specificity, while interpretability visualizations validate the model’s reliability in reducing each false negative and false positive. The results establish the proposed CNN–Swin Transformer with XAI integration as the first effective RBC-based hybrid framework for malaria detection, offering a robust, accurate, and interpretable diagnostic solution well-suited for both advanced clinical workflows and resource-constrained healthcare environments.
Downloads
References
[1] NobelPrize.org, “Alphonse Laveran – Facts,” 1907. [Online]. Available: https://www.nobelprize.org/prizes/medicine/1907/laveran/facts/
[2] Centers for Disease Control and Prevention, “The history of malaria,” U.S. Department of Health & Human Services, n.d. [Online]. Available: https://www.cdc.gov/malaria/history/index.html
[3] World Health Organization, “Malaria history,” n.d. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/malaria
[4] The Lancet, “The Lancet,” 2023.
[5] World Health Organization, World Malaria Report 2023, 2023.
[6] Common Management Unit Pakistan, “Malaria Technical Unit – Annual statistics 2023,” Islamabad: Government of Pakistan, 2024. [Online]. Available: https://www.cmu.gov.pk/dmc-directorate-of-malaria-control/
[7] Common Management Unit Pakistan, “Flood-related malaria report or situation update,” Islamabad: Government of Pakistan, 2024. [Online]. Available: https://www.cmu.gov.pk
[8] The Lancet Planetary Health, “Coverage of the 2022 Pakistan floods.”
[9] Y. Benachour, F. Flitti, and H. M. Khalid, “Enhancing Malaria Detection Through Deep Learning: A Comparative Study of Convolutional Neural Networks,” IEEE Access, 2025.
[10] M. Hamza et al., “Leveraging Machine Learning and Deep Learning for Advanced Malaria Detection Through Blood Cell Images,” 2025.
[11] S. Kumar et al., “Optimized deep CNN with rotation-driven features for malaria parasite detection,” Neural Computing and Applications, pp. 1–20, 2025.
[12] S. A. Kumar et al., “Application of hybrid capsule network model for malaria parasite detection on microscopic blood smear images,” Multimedia Tools and Applications, vol. 84, no. 7, pp. 3459–3485, 2025.
[13] J. Wekalao and A. Rajakannu, “VLSI-integrated CMOS-compatible high-performance terahertz metasurface biosensor for dual-mode detection of cancer and malaria with machine learning optimization,” Plasmonics, pp. 1–18, 2025.
[14] P. Karuppasamy et al., “Design and optimization of a hybrid graphene-copper terahertz metasurfaces biosensor for high-sensitivity malaria detection,” Plasmonics, pp. 1–14, 2025.
[15] S. S. Birunda et al., “Machine Learning-Enhanced Terahertz Biosensor with Mxene-Graphene Conjugate for High-Sensitivity Malaria Detection,” Plasmonics, pp. 1–14, 2025.
[16] O. R. Shahin et al., “Automated multi-model framework for malaria detection using deep learning and feature fusion,” Scientific Reports, vol. 15, no. 1, p. 25672, 2025.
[17] C. Kyeremah et al., “Enhanced detection of malaria infected red blood cells through phase driven classification,” Scientific Reports, vol. 15, no. 1, p. 30733, 2025.
[18] D. A. Ramos-Briceño et al., “Deep learning-based malaria parasite detection,” Scientific Reports, vol. 15, no. 1, p. 3746, 2025.
[19] M. F. Ahamed et al., “Improving Malaria diagnosis through interpretable customized CNNs architectures,” Scientific Reports, vol. 15, no. 1, p. 6484, 2025.
[20] E. Ahishakiye et al., “Enhancing malaria detection and classification using convolutional neural networks-vision transformer architecture,” Discover Applied Sciences, vol. 7, no. 6, p. 612, 2025.
[21] J. Sora-Cardenas et al., “Image-Based Detection and Classification of Malaria Parasites and Leukocytes,” Sensors, vol. 25, no. 2, p. 390, 2025.
[22] M. Rejili et al., “Malaria Parasite Detection Using Vision Transformer (ViT) and Deep Learning-Based Image Analysis,” 2025.
[23] S. B. Nettur et al., “UltraLightSqueezeNet: A Deep Learning Architecture for Malaria Classification,” IEEE Access, 2025.
Published
Issue
Section
License
Copyright (c) 2026 Mehran University Research Journal of Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
How to Cite
Similar Articles
- Maria Saleem, Bushra Naz Soomro, Almas Ali, Zartasha Baloch, Multi-Modal Bio signal Transformer Based Deep Learning Approach for Mental Stress Detection , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Zeeshan Ali Haider, Nasser A Alsadhan, Fida Muhammad Khan, Waleed Al-Azzawi, Inam Ullah Khan, Inam ullah, Deep learning-based dual optimization framework for accurate thyroid disease diagnosis using CNN architectures , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 2 (2025): April Issue
- Kamran Kazi, Arbab Nighat, Farida Memon, Tarique Rafique, Azam Rafique Memon, Robust outdoor trajectory mapping using CNN features and loop closure optimization , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Roshni Mustafa, Shafi Muhammad Jiskani, Muhammad Aamir Panhwar, Sanam Narejo, Zohaib Ahmed, YOLO-Scan: A Real-Time Deep Learning Framework for Brain Tumor Detection in MRI , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Ayesha Rafique , Rabia Noor Enam, Madiha Abbasi , Noreen Akram, Application of deep learning models for pest detection and identification , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 2 (2025): April Issue
- Amina Shaikh, Imran Khan Keerio, Mutiullah Shaikh, Asadullah Shah, Enhanced Real-Time Face Detection in Challenging Environments: Leveraging YOLOv8 for Partially Occluded and Low-Light Conditions , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Syed Mibran Hassan Zaidi, Maria Khan, Mustafa Latif, Ali Akhtar, Sallar Khan , Use of deep learning in early software bug detection , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Abdul Razaque, Pawang Rai, Memoona Sami, Junaid Baloch, Amirita Dewani, Mariam Memon, Transforming Early Autism Screening with Multimodal Machine Learning in Digital Health , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Yang Haoxuan, Faizan Qamar, Syed Hussain Ali Kazmi, Khairul Akram Zainol Ariffin, Kashif Nisar, Hybrid Model for Data-Driven Channel Estimation in mmWave Massive MIMO Systems with Compressed Sensing and Deep Learning , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Maryam Arain, Sheeraz Ahmed Memon, Attiya Baqai, Mohsin Memon, Kundan Kumar, Sajid Hussain, Zuhaib Siddiqui, Rapid Detection and Classification of Escherichia Coli, Salmonella Typhi, and Staphylococcus Aureus using Smartphone-Based Deep Learning System , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
You may also start an advanced similarity search for this article.