Skip to content

Swapnaja964/Brain-tumor-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Brain Tumor MRI Image Classification

πŸš€ Deep Learning project for automatic Brain Tumor Detection & Classification using MRI Scans.
Built with TensorFlow/Keras, OpenCV, and Python.


Python
TensorFlow
Keras
OpenCV
Jupyter


πŸ“Œ Overview

This project explores deep learning models for classifying Brain MRI Scans into 4 categories:

  • 🟒 No Tumor
  • 🟑 Meningioma
  • πŸ”΅ Glioma
  • πŸ”΄ Pituitary Tumor

We evaluate three architectures:

  • ⚑ Multilayer Perceptron (MLP) – baseline
  • 🧩 AlexNet (custom variant) – CNN-based
  • πŸš€ InceptionV3 (transfer learning) – best performance

🌟 Key Highlights

✨ Feature πŸ” Details
🧹 Preprocessing Conversion from .mat β†’ RGB, resize (128Γ—128), normalization
🎨 Augmentation Rotations, zoom, shear, brightness adjustments
🧠 Models MLP, AlexNet variant, InceptionV3
πŸ“Š Dataset 3,459 T2-weighted MRI images
🎯 Results InceptionV3 achieved 97.85% test accuracy
πŸ’‘ Improvements Transfer learning, augmentation, stratified sampling

πŸ“‚ Project Structure

Brain_Tumor_Classification/
β”œβ”€β”€ Brain_Tumor_MRI_Image_Classification.ipynb   # Main Notebook
β”œβ”€β”€ dataset/                                     # MRI dataset
β”‚   β”œβ”€β”€ Training/ (yes/no + classes)  
β”‚   β”œβ”€β”€ Validation/  
β”‚   β”œβ”€β”€ Testing/  
β”œβ”€β”€ models/                                      # Saved models (H5/SavedModel)
β”œβ”€β”€ results/                                     # Confusion matrix, plots
β”œβ”€β”€ docs/                                        # Paper, screenshots
└── README.mdx                                   # Project Documentation

βš™οΈ Installation

Clone repository

git clone https://github.com/your-username/brain-tumor-classification.git
cd brain-tumor-classification

Create virtual environment

python -m venv venv
source venv/bin/activate   # Mac/Linux
venv\Scripts\activate      # Windows

Install dependencies

pip install -r requirements.txt

Dataset Link

https://drive.google.com/drive/folders/15HJheoZm5NLTytNxTu3X6Nm51lRuxq4g?usp=drive_link

About

Deep-learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors