Skip to content

Deep learning model for brain tumor classification using MRI images. Built with TensorFlow, Keras, and OpenCV, trained on CNN architecture, and optimized with Adam. 🎯🔥

Notifications You must be signed in to change notification settings

realmir1/BrainTumor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Brain Tumor Detection

This repository contains a deep learning project for detecting brain tumors using MRI images. The model is built using TensorFlow and Keras, and it classifies MRI images into two categories: 'yes' (tumor) and 'no' (no tumor).

Dataset

The dataset used in this project is from Kaggle: Brain MRI Images for Brain Tumor Detection.

Dependencies

  • Python 3.x
  • TensorFlow
  • Keras
  • OpenCV
  • NumPy
  • Matplotlib
  • scikit-learn

You can install the dependencies using the following command:

pip install tensorflow keras opencv-python numpy matplotlib scikit-learn

File Description

  • tumorrr.py: This is the main script that:
    • Loads and preprocesses the data.
    • Splits the data into training and testing sets.
    • Defines and trains the CNN model.
    • Evaluates the model and displays the results.

Model Architecture

The Convolutional Neural Network (CNN) model consists of:

  • Conv2D layers with ReLU activation
  • MaxPooling2D layers
  • Flatten layer
  • Dense layers with ReLU activation
  • Dropout layer
  • Output layer with Softmax activation

Usage

  1. Clone the repository:
git clone https://github.com/realmir1/BrainTumor.git
cd BrainTumor
  1. Run the script:
python tumorrr.py

Results

  • The model is trained for 10 epochs.
  • The test accuracy is displayed after training.
  • Sample predictions are visualized using Matplotlib.

Author

  • Ali Emir SertbaÅŸ

Feel free to modify the README according to your specific needs.

About

Deep learning model for brain tumor classification using MRI images. Built with TensorFlow, Keras, and OpenCV, trained on CNN architecture, and optimized with Adam. 🎯🔥

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages