Skip to content

Youssef-Bahaa/Brain-Tumor-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Brain Tumor Classifier - Deep Learning Model

A deep learning tool that detects and classifies brain tumors in MRI scans using a convolutional neural network (CNN).


📋 Overview

This project provides a complete MRI brain tumor classification system. Upload an image, and the model will tell you if there's a tumor and what kind.


🎯 Supported Diagnoses

The classifier predicts one of four possible categories:

  • No Tumor
  • Glioma
  • Meningioma
  • Pituitary Tumor

📈 Model Performance

  • Train Accuracy: 99%
  • Test Accuracy: 95%

📸 Application Interface

Initial interface:
Image 3 Image 1


🏗️ Project Structure

Brain-Tumor-Classifier/
├── model.py               # CNN model definition
├── train.py               # Model training script
├── eval.py                # GUI and evaluation code
├── dataset.py             # Dataset loader
├── brain_tumor_cnn.pth    # Trained weights
└── data/                  # MRI Data)

🚀 Getting Started

  1. Install dependencies:

    pip install -r requirements.txt
  2. Run the GUI app:

    python eval.py
  3. Usage:

    • Click "Load MRI Image" and select your scan
    • Click "Classify Image" to see the prediction and confidence
    • Click "Clear" to upload another image

About

MRI Brain Tumor Classifier Using CNN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages