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
- Saifullah Samo, Sameh EZZT Mohamed Ali Bdran, Raheel Ahmed Nizamani, Zero-Shot Payload Adaptation for Robotic Manipulators via Domain-Randomized Deep Reinforcement Learning , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Umaima Saleem Memon, Mehwish Shahzad Abbasi, Ghulam Qadir Chanihoon, Sidra Khan, Murk Saleem, Development of Highly Stable Ofloxacin-Capped Silver Nanoparticles as a Novel Nanoplatform for Vermox Detection in Biological and Environmental Systems , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Zahid Hussain Khaskheli , Qasim Ali, M Shehram Shah , Din Muhammad , Farast Ali, Hina Ali, Maria Khalid, Zoha Waheed, Umer Gaffar, Improving Human Action Recognition Through Cross-View Camera-Aware Augmentation , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Shahzor Memon, Imtiaz Hussain, Lubna Moin , Fault analysis of railway track superstructure using time-frequency method from vibrational data , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Abdul Ghani Ansari, Fareed Ahmed Jokhio, Muhammad Shehram Shah Syed, Hina Dharejo, Fayaz Ahmed Memon , Machine Learning-Driven Approach for DDOS Attacks Detection using Neural-Based Networks: A Proficiency Study , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Rana Saeed Ahmad, Haroon Rasheed, Enhanced Hybrid MMC Integration into DC Microgrid for low voltage application , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Hafiz Muhammad Saud, Tahir Sultan, Abdul Waqar Rajput, Ammad Hassan Khan, Muhammad Sabeeh Ul Zaman, Recycled Hybrid Fiber Reinforced Concrete Modified with Nano Zirconia: Mechanical Performance and Pavement Application , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Shabana Hajano, Sanam Narejo, Sofia Hajano, Fouzia Hajano, A Few-Shot Learning Framework for Understanding Mobile User Behavior , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Chandar Kumar, Dur Muhammad Soomro, Najeeb Ur Rehman Malik, Data Driven Learning Based Robust Control for Nonlinear Electromechanical Systems: A Case Study on SRV02 , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Lyu Guanghua, Syed Hadi Hussain Shah, Rizwan Arshad, Ni Jiahua, Machine Learning-Based Optimization of Photovoltaic Panel Cleaning Schedules in Arid Environments: A Case Study of Ryadh, Saudi Arabia , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
You may also start an advanced similarity search for this article.