MUET logo

Enhancing Malaria Diagnosis: A Hybrid Deep Learning Approach Integrating CNN-Swin Transformer, and Grad-CAM

Authors

  • Syed Noor Hussain Shah

    Center of Excellence in IT, Institute of Management Sciences, Peshawar, Pakistan
    Author
  • Muhammad Shahan Ibad

    Center of Excellence in IT, Institute of Management Sciences, Peshawar, Pakistan
    Author
  • Sumaira Johar

    Center of Excellence in IT, Institute of Management Sciences, Peshawar, Pakistan
    Author
  • Omar Bin Samin

    Center of Excellence in IT, Institute of Management Sciences, Peshawar, Pakistan
    Author
  • Afsheen Khalid

    Center of Excellence in IT, Institute of Management Sciences, Peshawar, Pakistan
    Author
  • Sami Ur Rahman

    Center of Excellence in IT, Institute of Management Sciences, Peshawar, Pakistan
    Author

DOI:

https://doi.org/10.22581/0570

Keywords:

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

2026-04-01

How to Cite

Enhancing Malaria Diagnosis: A Hybrid Deep Learning Approach Integrating CNN-Swin Transformer, and Grad-CAM. (2026). Mehran University Research Journal of Engineering and Technology, 45(2), 88-101. https://doi.org/10.22581/0570

Similar Articles

1-10 of 99

You may also start an advanced similarity search for this article.