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
- Muhammad Zubair, Syed Muhammad Sajjad Haider, Ans Rehman, Muhammad Saqib Javed, Aashir Waleed, Rimsha Chauhdary, PackMLP: A Patch Based MLP Model for Intelligent Inventory Forecasting and Automation with A-LIQ QR Scanning Integration , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Sumera Dero , Abdul Rehman Nangraj , Mustafa Abbas Fadhel , Radiative MHD flow and heat transfer characteristics of Cu-Fe3O4 /blood base hybridized nanofluid through stenotic artery , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 2 (2025): April Issue
- Gift Mbuzi, Abdur Rashid Sangi, Baha Ihnaini, Anil Carie, Sruthi Sivarajan, Satish Anamalamudi, Data-driven insights into groundwater quality: machine and deep learning approaches , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Muhammad Usman Malik, Muhammad Faisal Hayat, Prediction and classification of wheat plant disease in Pakistan using deep learning techniques , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Naveed Kaimkhani, Memoona Sami, Amirita Dewani, Junaid Ahmed, Mariam Jawed, Depression Detection in Social Media Data for Resource-Constrained Roman Urdu Using Machine Learning Methods , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Ashar Ahmed, Mario Muñoz-Organero, Bushra Aijaz, Exploring commuter stress dynamics through machine learning and double optimization , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 2 (2025): April Issue
- Shakeel Ahmad , Sheikh Muhammad Saqib , Asif Hassan Syed , Nashwan Alromema , Ali Kararay, Exploring the best fit: A comparative analysis of AFINN, Textblob, VADER, and Pattern on Arabic reviews for optimal dictionary extraction , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 2 (2025): April Issue
- Saad Rehman Lodhi, Sobia Arshad, Junaid Ali Khan , Saad Rehman , A Semi-Supervised Approach utilizing Deep Learning Pseudo-Label Refinement and Confidence Filtering for Enhanced Image Segmentation: An application towards Skin Lesion Analysis , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Sanam Narejo, Shabana Hajano , Anoud Shaikh, Jibran Virk , Maheen Shaikh, Efficient and Deployable Violence Detection using Transfer Learning Framework for Public Safety , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Naseer Ahmed, Mansoor Ahmed Khuhro, Asif Ali Laghari, Bridging the Gap: A Transformer-Based Chatbot Architecture for Low-Resource Brahui via Embedding Fusion and Transfer Learning , 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.