Skip to content

Ali-Jaan-Butt/brain_tumor_classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Brain Tumor Detection using Deep Learning ๐Ÿง 

This project focuses on detecting brain tumors from MRI images using Convolutional Neural Networks (CNNs) with transfer learning (ResNet50). The notebook includes preprocessing, model training, and evaluation steps to classify MRI scans as tumor or non-tumor.


๐Ÿ“‚ Dataset

The dataset used is Brain MRI Images for Brain Tumor Detection available on Kaggle.

  • Images are categorized into two classes:
    • Yes โ†’ MRI showing brain tumor
    • No โ†’ MRI without tumor

โš™๏ธ Workflow

The notebook follows these main steps:

  1. Import Libraries
    Uses numpy, pandas, matplotlib, seaborn, opencv, tensorflow/keras.

  2. Data Preprocessing

    • Load images and labels
    • Split into train and test sets (80/20)
    • Image normalization and augmentation
  3. Model Architecture

    • Based on ResNet50 with additional Dense and Dropout layers
    • Activation: ReLU, Softmax
    • Optimizer: Adam
  4. Training

    • Early stopping used to prevent overfitting
    • Data augmentation applied via ImageDataGenerator
  5. Evaluation

    • Accuracy, Confusion Matrix, and Classification Report

๐Ÿ“Š Results

  • Achieved high classification accuracy on test data
  • Clear distinction between tumor and non-tumor cases
  • Visualized performance using plots and confusion matrix

๐Ÿš€ Requirements

Make sure you have the following installed:

pip install numpy pandas matplotlib seaborn opencv-python tensorflow pillow scikit-learn

About

Brain Tumor Detection using Deep Learning ๐Ÿง 

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors