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
- Jairam Das Bather, Muhammad Saleem, Nisar Ahmed, Zahid Khaskheli, Zoha Waheed, Ali Kolachi, Umer Ghaffar, An Adaptive Gamification Optimization Algorithm for Analyzing Programming Learning Difficulties , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Najma Imtiaz Ali, Imtiaz Ali Brohi, Aadil Jamali, Kasturi Kanchymalay, Noor Zaman Jhanjhi, Safeeullah Soomro, Overcoming Occlusion in Person Re-Identification: A Multi-Level Attention Transformer Approach , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Abdul Rehman, Habib ur Rehman, Noor Muhammad Khan, Machine Learning Based Prediction of Hydraulic Jump Lengths in Stilling Basins for Barrages and Low-Head Hydraulic Structures , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Sadaf Hussain, Amna Sajid, Tanweer Sohail, Muhammad Nauman Aslam, Muhammad Shamrooz Aslam, Green Communication with Object Detection for Energy-Efficient Smart Shopping Carts , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Syed Shabeeb Raza, Muhammad Imran Saleem, Hassan Ahmed Khan, Shaheena Noor, Ali Yousuf Khan, Eman Razzaq, A Comparative Analysis of Software-Defined Networking (SDN) Security Policies With and Without Reinforcement Learning Automation , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Beenish Ayesha Akram , Muhammad Irfan , Amna Zafar , Sidra Khan , Rubina Shaheen , Impact of computing platforms on classifier performance in heart disease prediction , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 2 (2025): April Issue
- Rashid Hussain Chandio, Madad Ali Shah, Abdul Aziz Memon, Faheem Akhter Chachar, An improved fault current limiter for hybrid DC circuit breakers in large-scale MMC-HVDC systems , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Naadiya Mirbahar , Kamlesh Kumar, Asif Ali Laghari , Mansoor Ahmed Khuhro , Crowdsourced data leaking user's privacy while using anonymization technique , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 2 (2025): April Issue
- Ammar Afzal, Umer Ijaz, Muhammad Farhan, Design and Analysis of a Hybrid LiFi-Based IoT System with RF Energy Harvesting for Enhanced Power Management , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Umm-e-Laila, Khalid Mahboob, Muzammil Ahmed Khan, Muhammad Khurram, Mustafa Ahmed Khan, Contextual video analytics and recommendations through natural language processing (NLP) and graph machine learning (GML) , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
You may also start an advanced similarity search for this article.