Downloads · 30 days
17
17% of all-time downloads
mou11/pneumonia-detector
pneumonia-detector is a image classification model from mou11. Use it when you need a label for an image. The card lists the license as mit.
Downloads · 30 days
17
17% of all-time downloads
All-time downloads
102
Public
Repo size
371 MB
Likes
2
Public
Click a slice to open those files.
.pth343 MB · 100%
From the Hugging Face model README
👉 Try it on Hugging Face Spaces
A medical image classification system that detects pneumonia from chest X-ray images using Vision Transformer (ViT) with Grad-CAM explainability. The model highlights which regions of the X-ray influenced the prediction, making it transparent and trustworthy for medical screening.
| Metric | Score |
|---|---|
| Overall Accuracy | 87% |
| AUC-ROC | 0.9805 |
| PNEUMONIA Recall | 1.00 |
| NORMAL Precision | 0.99 |
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| NORMAL | 0.99 | 0.66 | 0.79 |
| PNEUMONIA | 0.83 | 1.00 | 0.91 |
Chest X-Ray Image → Preprocessing (224x224) → ViT Base Patch16 → Fine-tuned Classifier Head → Prediction + Grad-CAM Heatmap
| Component | Tool |
|---|---|
| Model | Google ViT Base Patch16 224 |
| Framework | PyTorch |
| Explainability | Grad-CAM |
| Dataset | Chest X-Ray Images (Pneumonia) — Kaggle |
| UI | Gradio |
| Training | Google Colab T4 GPU |