Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
| 1 |
-
---
|
| 2 |
-
license:
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- medical-imaging
|
| 5 |
+
- chest-xray
|
| 6 |
+
- pneumonia-detection
|
| 7 |
+
- efficientnet
|
| 8 |
+
- pytorch
|
| 9 |
+
- image-classification
|
| 10 |
+
datasets:
|
| 11 |
+
- chest-xray-pneumonia
|
| 12 |
+
metrics:
|
| 13 |
+
- accuracy
|
| 14 |
+
- auc
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# MediScan AI — EfficientNetB4 Chest X-Ray Classifier
|
| 18 |
+
|
| 19 |
+
Classifies chest X-rays as **NORMAL** or **PNEUMONIA**.
|
| 20 |
+
|
| 21 |
+
## Model Details
|
| 22 |
+
- Architecture: EfficientNetB4 (transfer learning, two-phase fine-tuning)
|
| 23 |
+
- Input: 380×380 RGB chest X-ray image
|
| 24 |
+
- Output: NORMAL | PNEUMONIA + confidence score
|
| 25 |
+
- Explainability: Grad-CAM heatmap overlay
|
| 26 |
+
|
| 27 |
+
## Performance (Kaggle Chest X-Ray Test Set, n=624)
|
| 28 |
+
| Metric | Value |
|
| 29 |
+
|--------|-------|
|
| 30 |
+
| Accuracy | 87.66% |
|
| 31 |
+
| AUC-ROC | 0.9428 |
|
| 32 |
+
| Avg Precision | 0.9605 |
|
| 33 |
+
| Pneumonia Recall | 93.59% |
|
| 34 |
+
|
| 35 |
+
## Training
|
| 36 |
+
- Dataset: Kaggle Chest X-Ray Images (Pneumonia) — 5,863 images
|
| 37 |
+
- Optimizer: AdamW + Cosine Annealing
|
| 38 |
+
- Epochs: 7 (early stopping)
|
| 39 |
+
- Hardware: Kaggle T4 GPU (8.5 min)
|
| 40 |
+
|
| 41 |
+
## Usage
|
| 42 |
+
```python
|
| 43 |
+
import torch
|
| 44 |
+
from inference import engine
|
| 45 |
+
|
| 46 |
+
engine.load("mediscan_v5.pth")
|
| 47 |
+
result = engine.predict(open("xray.jpg", "rb").read())
|
| 48 |
+
print(result["predicted_class"], result["confidence"])
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Disclaimer
|
| 52 |
+
For research and educational purposes only.
|
| 53 |
+
Not a certified medical device.
|