Prashant-Parwani commited on
Commit
3af943a
Β·
verified Β·
1 Parent(s): 186c329

Create README.MD

Browse files

# Brain Tumor Classification using VGG16 (Colorized MRI)

This repository contains a PyTorch-based VGG16 transfer learning model for automated brain tumor classification from MRI images. The model is trained on enhanced colorized MRI scans and classifies images into three tumor categories: Glioma, Meningioma, and Pituitary tumors.

---

## 🧠 Model Overview

- **Architecture:** VGG16 (Transfer Learning)
- **Framework:** PyTorch
- **Task:** Image Classification
- **Classes:** 3 (Glioma, Meningioma, Pituitary)
- **Input Type:** Colorized MRI images
- **Best Test Accuracy:** **88.70%**
- **Device Used:** GPU (CUDA)

---

## πŸ“Š Dataset Details

- **Dataset Type:** Enhanced Colorized MRI Images
- **Total Samples:** 3,600 images
- **Class Distribution:**
- Glioma
- Meningioma
- Pituitary

- **Data Split:**
- Training: 70%
- Validation: 15%
- Testing: 15%

> Note: The dataset is preprocessed and not hosted publicly on Hugging Face.

---

## βš™οΈ Training & Methodology

- Pre-trained VGG16 backbone
- Early convolutional layers frozen
- Custom fully connected classifier
- Image preprocessing with **CLAHE contrast enhancement**
- Data augmentation (rotation, zoom, shift, brightness)
- Optimized training with early stopping and learning rate scheduling

---

## πŸ“ˆ Performance

**Overall Test Accuracy:** 88.70%

The model demonstrates stable performance across all three tumor classes and serves as a strong comparative baseline against grayscale MRI models.

---

## πŸš€ Intended Use

- Research and academic purposes
- Comparative analysis of colorized vs grayscale MRI-based models
- Educational demonstrations of transfer learning in medical imaging

---

## ⚠️ Disclaimer

This model is **NOT a medical diagnostic tool**.
It is intended strictly for **research and educational use**.
Always consult certified medical professionals for clinical diagnosis and treatment.

---

## πŸ›  Frameworks & Libraries

- PyTorch
- Torchvision
- OpenCV
- NumPy

---

## πŸ‘€ Author

**Prashant Parwani**
Research Project on Brain Tumor Detection using Deep Learning

Files changed (1) hide show
  1. README.md +57 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: pytorch
4
+ pipeline_tag: image-classification
5
+ base_model: vgg16
6
+ metrics:
7
+ - accuracy
8
+ tags:
9
+ - brain-tumor
10
+ - medical-imaging
11
+ - mri
12
+ - vgg16
13
+ - transfer-learning
14
+ - colorized-images
15
+ - pytorch
16
+ - image-classification
17
+ language:
18
+ - en
19
+ ---
20
+
21
+ # Brain Tumor Classification using VGG16 (Colorized MRI)
22
+
23
+ This repository contains a **VGG16 transfer learning model trained on enhanced colorized MRI images** for automated brain tumor classification.
24
+
25
+ ## 🧠 Tumor Classes
26
+ - Glioma
27
+ - Meningioma
28
+ - Pituitary
29
+
30
+ ## πŸ“Š Model Performance
31
+ - **Test Accuracy:** **88.70%**
32
+ - **Framework:** PyTorch
33
+ - **Architecture:** VGG16 (Transfer Learning)
34
+ - **Pre-trained on:** ImageNet
35
+ - **Input Size:** 224Γ—224 RGB
36
+ - **Number of Classes:** 3
37
+
38
+ ## 🎨 Colorization Strategy
39
+ MRI images were enhanced using **CLAHE** and converted into multiple colormap representations to study the impact of color information on classification performance.
40
+
41
+ ## πŸ† Best Model Checkpoint
42
+ represents the **best-performing checkpoint**, saved at peak validation accuracy.
43
+
44
+ ## πŸ”¬ Training Highlights
45
+ - Transfer learning with frozen convolution layers
46
+ - Fine-tuned classifier head
47
+ - Data augmentation
48
+ - Stratified train/validation/test split (70/15/15)
49
+ - Early stopping and learning rate scheduling
50
+
51
+ ## ⚠️ Disclaimer
52
+ This model is intended **strictly for research and educational purposes** and must not be used for clinical diagnosis or treatment planning.
53
+
54
+ ## πŸ‘€ Author
55
+ **Prashant Parwani**
56
+
57
+ The uploaded file: