README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: vgg16
|
| 4 |
+
library_name: pytorch
|
| 5 |
+
pipeline_tag: image-classification
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
tags:
|
| 9 |
+
- brain-tumor
|
| 10 |
+
- medical-imaging
|
| 11 |
+
- mri
|
| 12 |
+
- vgg16
|
| 13 |
+
- transfer-learning
|
| 14 |
+
- grayscale-images
|
| 15 |
+
- pytorch
|
| 16 |
+
- image-classification
|
| 17 |
+
language:
|
| 18 |
+
- en
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Brain Tumor Classification using VGG16 (Grayscale MRI)
|
| 22 |
+
|
| 23 |
+
This repository contains a **VGG16 transfer learning model trained on enhanced grayscale MRI images** for automated brain tumor classification.
|
| 24 |
+
|
| 25 |
+
## 🧠 Tumor Classes
|
| 26 |
+
- Glioma
|
| 27 |
+
- Meningioma
|
| 28 |
+
- Pituitary
|
| 29 |
+
|
| 30 |
+
## 📊 Model Performance
|
| 31 |
+
- **Test Accuracy:** **93.52%**
|
| 32 |
+
- **Framework:** PyTorch
|
| 33 |
+
- **Architecture:** VGG16 (Transfer Learning)
|
| 34 |
+
- **Pre-trained on:** ImageNet
|
| 35 |
+
- **Input Size:** 224×224 RGB (grayscale replicated to 3 channels)
|
| 36 |
+
- **Number of Classes:** 3
|
| 37 |
+
|
| 38 |
+
## 🌑 Grayscale Strategy
|
| 39 |
+
MRI images were processed in **grayscale format** and enhanced using **CLAHE contrast enhancement** to preserve structural and intensity-based features critical for medical diagnosis.
|
| 40 |
+
|
| 41 |
+
This approach demonstrated **superior performance** compared to colorized representations.
|
| 42 |
+
|
| 43 |
+
## 🏆 Best Model Checkpoint
|
| 44 |
+
The uploaded file represents the **best-performing checkpoint**, saved at the highest validation accuracy during training.
|
| 45 |
+
|
| 46 |
+
## 🔬 Training Highlights
|
| 47 |
+
- Transfer learning with frozen convolution layers
|
| 48 |
+
- Fine-tuned classifier head
|
| 49 |
+
- CLAHE-based preprocessing
|
| 50 |
+
- Data augmentation
|
| 51 |
+
- Stratified train/validation/test split (70/15/15)
|
| 52 |
+
- Early stopping and learning rate scheduling
|
| 53 |
+
|
| 54 |
+
## ⚠️ Disclaimer
|
| 55 |
+
This model is intended **strictly for research and educational purposes** and must not be used for clinical diagnosis or treatment planning.
|
| 56 |
+
|
| 57 |
+
## 👤 Author
|
| 58 |
+
**Prashant Parwani**
|