This notebook provides an end-to-end pipeline for two tasks on Brain MRI scans:
- Classification: Distinguish between healthy and diseased MRI images using Transfer Learning (ResNet50).
- Segmentation: Delineate regions of interest (e.g., tumors) in MRI slices with U-Net architectures.
All code (data loading, EDA, model training, evaluation, and visualization) is contained within a single Jupyter notebook.
βββ Brain_MRI_Classification&Segmentation.ipynb # Comprehensive notebook with code & plots
βββ images/ # Visualization outputs (PNG files)
βββ requirements.txt # Python dependencies
βββ README.md # Project overview and instructions
This project uses the Brain MRI segmentation dataset on Kaggle.
- Visit the Kaggle link above.
- Download and unzip the dataset.
- Clone the repository:
git clone https://github.com/v4nui/Brain_MRI_Class-Seg.git cd brain-mri-analysis - Create & activate a virtual environment:
python3 -m venv venv source venv/bin/activate # Linux/macOS venv\Scripts\activate # Windows
- Install dependencies:
pip install -r requirements.txt
Open and run the notebook:
jupyter notebook Brain_MRI_Classification\&Segmentation.ipynbContributions and suggestions are welcome! Please open an issue or submit a pull request.
For questions or feedback, reach out at vanuhi@live.com.