explaingit

stevia-s/multiclass-lungdisease-detection-using-xai

Analysis updated 2026-05-18

51PythonAudience · researcherComplexity · 3/5LicenseSetup · moderate

TLDR

A deep learning tool that classifies lung CT scans as COVID, pneumonia, or normal and shows Grad-CAM heatmaps explaining each prediction.

Mindmap

mindmap
  root((Lung Disease XAI))
    What it does
      Classifies CT scans
      Detects COVID or pneumonia
      Shows Grad-CAM heatmaps
    Tech stack
      Python
      TensorFlow
      ResNet50
      VGG16
    Use cases
      Academic research demo
      Medical AI coursework
      Explainable AI study
    Audience
      Researchers
      Students

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Study how Grad-CAM can make a medical image classifier's decisions visible.

USE CASE 2

Use as a reference implementation for a ResNet50-VGG16 feature fusion model.

USE CASE 3

Run as an academic demo of explainable AI applied to lung disease detection.

What is it built with?

PythonTensorFlowKerasResNet50VGG16Streamlit

How does it compare?

stevia-s/multiclass-lungdisease-detection-using-xaicortex-trading-systems/polymarket-copy-trading-bot-clob-aiqianchentao9/swingsr
Stars515151
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity3/53/55/5
Audienceresearchergeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires TensorFlow, Keras, and a CT scan dataset for training before predictions can be made.

The README states the project is for academic and research purposes only, not for general or commercial use.

In plain English

This project is a deep learning system that analyzes CT scan images of lungs and classifies them into one of three categories: COVID, pneumonia, or normal. The core problem it addresses is that manually reading CT scans is time consuming, depends on having a specialist available, and can be error prone in subtle or complex cases. An AI system that flags a likely diagnosis is meant to help radiologists work faster and catch patterns that might otherwise be missed. What makes this project distinctive is its focus on explainability. Standard deep learning models are often described as black boxes because they produce a result without showing how they reached it, which is a real problem in medical settings where clinicians need to understand and trust a decision before acting on it. This project uses a technique called Grad-CAM, short for Gradient-weighted Class Activation Mapping, to generate a heatmap laid over the original CT scan that visually highlights the regions of the lung image that most influenced the model's classification. The model architecture combines features extracted by two separate neural networks, ResNet50 and VGG16, then fuses those features together before making the final classification. The pipeline runs a CT scan through image preprocessing, feature extraction, a classification layer, and then the Grad-CAM explainability step, producing both a predicted disease and a visual explanation for it. The system is built in Python using TensorFlow and Keras, with a Streamlit based web interface for running predictions. Reported accuracy ranges from about 90% to 97% depending on the dataset and training setup, according to the README. Listed future plans include a web based upload system, real time hospital integration, and mobile deployment, none of which are built yet. The project states plainly that it is intended for academic and research purposes only.

Copy-paste prompts

Prompt 1
Help me install the dependencies and run train.py and predict.py for this lung disease project.
Prompt 2
Explain how Grad-CAM generates the heatmap shown for each CT scan prediction.
Prompt 3
Walk me through how the ResNet50 and VGG16 feature fusion works in this model.
Prompt 4
Help me launch the Streamlit web app included in this project.

Frequently asked questions

What is multiclass-lungdisease-detection-using-xai?

A deep learning tool that classifies lung CT scans as COVID, pneumonia, or normal and shows Grad-CAM heatmaps explaining each prediction.

What language is multiclass-lungdisease-detection-using-xai written in?

Mainly Python. The stack also includes Python, TensorFlow, Keras.

What license does multiclass-lungdisease-detection-using-xai use?

The README states the project is for academic and research purposes only, not for general or commercial use.

How hard is multiclass-lungdisease-detection-using-xai to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is multiclass-lungdisease-detection-using-xai for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.