Skip to content

To Detect and Classify Brain Tumor using as an asset of Deep Learning and to examine the tumor position(segmentation).

Notifications You must be signed in to change notification settings

Shiveshanand09/Detecting-Brain-Tumors-through-Deep-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b382e08 · Sep 24, 2024

History

4 Commits
May 6, 2024
Sep 24, 2024

Repository files navigation

Brain Tumor Detection Project

This project involves detecting brain tumors using machine learning models applied to medical imaging data. The project uses image classification techniques to distinguish between different types of brain tumors, including glioma, meningioma, and pituitary tumors, as well as no tumor.

Table of Contents

Introduction

Brain tumor detection through medical imaging is crucial in early diagnosis and treatment. This project focuses on applying deep learning methods to classify MRI scans into four categories: glioma, meningioma, pituitary tumor, and no tumor. By training models on labeled MRI data, this project aims to achieve high accuracy in tumor detection.

Dataset

The dataset consists of MRI brain scans, which are categorized into four classes:

  • Glioma Tumor
  • Meningioma Tumor
  • Pituitary Tumor
  • No Tumor

The dataset is divided into training and testing sets, each containing images from the aforementioned categories.

Technologies Used

The following Python libraries and technologies are used in the project:

  • OpenCV: For image processing and displaying images.
  • TensorFlow/Keras: For building and training the deep learning model.
  • scikit-learn: For model evaluation metrics and data splitting.
  • Google Colab: For accessing datasets from Google Drive and running the model.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/brain-tumor-detection.git
  2. Install the required Python packages:

    pip install -r requirements.txt
  3. Make sure the dataset is stored in the correct path (/content/drive/MyDrive/Brain_Tumor/) or update the path in the notebook accordingly.

Usage

  1. Load the notebook in Google Colab or any Jupyter environment:

    jupyter notebook Brain_Tumor_Detection.ipynb
  2. Make sure the dataset is properly linked from Google Drive. Mount the drive:

    from google.colab import drive
    drive.mount('/content/drive')
  3. Run the notebook cells to:

    • Load and display brain tumor images.
    • Train a classification model using deep learning techniques.
    • Evaluate the model's accuracy.

Example Output Images

The following images show examples from each tumor type as displayed in the notebook:

Glioma Tumor Glioma Tumor Sample

Meningioma Tumor Meningioma Tumor Sample

Pituitary Tumor Pituitary Tumor Sample

No Tumor No Tumor Sample

Results

After training the model on the MRI dataset, the accuracy is evaluated using metrics like precision, recall, and F1-score. The model’s performance is assessed on a separate test set to ensure generalization.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for improvements, bug fixes, or new features.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

To Detect and Classify Brain Tumor using as an asset of Deep Learning and to examine the tumor position(segmentation).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published