Pneumonia Detection with Explainable Artificial Intelligence

Version 1.0.0 (10.8 KB) by Putu Fadya
This repository provides MATLAB implementations for pneumonia detection using deep learning models, enhanced with explainable AI techniques.
23 Downloads
Updated 18 Feb 2025

View License

This repository presents an approach for pneumonia detection using a MobileNetV2 pretrained model in MATLAB, combined with explainable AI techniques to improve interpretability. The deep learning model is trained on chest X-ray images, leveraging Grad-CAM, Grad-CAM++, Score-CAM, and Saliency Map to highlight critical regions that influence the model’s predictions.Key Features:
  1. MobileNetV2 Pretrained Model – A lightweight and efficient deep learning architecture for pneumonia classification.
  2. Grad-CAM & Grad-CAM++ – Gradient-based visualization techniques to generate class-discriminative heatmaps.
  3. Score-CAM – A perturbation-based method that improves upon Grad-CAM by removing the dependency on gradients.
  4. Saliency Map – Highlights pixel-wise contributions to the model’s decision.
  5. MATLAB Implementation – Fully coded in MATLAB, making it accessible for medical imaging researchers and engineers.
This project aims to enhance the transparency, reliability, and trustworthiness of AI-based medical diagnosis by providing clear visual explanations of model decisions, assisting clinicians in understanding why and how the model detects pneumonia.

Cite As

Putu Fadya (2025). Pneumonia Detection with Explainable Artificial Intelligence (https://www.mathworks.com/matlabcentral/fileexchange/180171-pneumonia-detection-with-explainable-artificial-intelligence), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0