Skip to content

Deep learning pipeline for brain tumor auto-segmentation using MRI scans, includes preprocessing, Dice loss and evaluation metrics.

License

Notifications You must be signed in to change notification settings

MaddyRizvi/Brain-Tumor-MRI-Segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Brain Tumor Auto-Segmentation (MRI)

Brain tumor auto-segmentation using Magnetic Resonance Imaging (MRI), This project demonstrates data preprocessing, 3D sub-volume extraction, MRI standardization and deep learning–based segmentation with Dice coefficient and soft Dice loss. Includes evaluation metrics (sensitivity, specificity) for tumor detection performance.

Topics / Tags

python · deep-learning · tensorflow · keras · medical-imaging · mri · brain-tumor · segmentation · computer-vision · healthcare-ai

Brain Tumor MRI Segmentation

Python TensorFlow Keras License: MIT Stars Forks

Deep learning pipeline for brain tumor auto-segmentation using MRI scans — includes preprocessing, Dice loss, and evaluation metrics.

Brain Tumor MRI AI Model

Image

Source: Stanford AI for Healthcare

Overview

The project demonstrates how to:

  • Preprocess MRI scans
  • Extract 3D sub-volumes from brain scans
  • Standardize MRI image data
  • Implement dice coefficient and soft dice loss for segmentation evaluation
  • Train a neural network for brain tumor segmentation
  • Compute sensitivity and specificity metrics for performance evaluation

File Structure

  • Brain_Tumor_Segmentation.py: Main Python assignment file with completed functions for sub-volume extraction, standardization, dice coefficient, loss function, and evaluation metrics.
  • README.md: This file with information about the repository.

Key Implemented Functions

  • get_sub_volume: Extracts sub-volumes from MRI scans for training.
  • standardize: Normalizes each channel and z-slice of MRI images.
  • single_class_dice_coefficient: Dice metric for a single class.
  • dice_coefficient: Mean dice coefficient across classes.
  • soft_dice_loss: Loss function for segmentation tasks.
  • compute_class_sens_spec: Sensitivity and specificity computation for segmentation results.

Usage

Run the Python file in Jupyter Notebook or Python environment to preprocess MRI data and evaluate segmentation models.

Acknowledgments

This project is inspired by deep learning applications in medical imaging, particularly brain tumor segmentation tasks in MRI data.

About

Deep learning pipeline for brain tumor auto-segmentation using MRI scans, includes preprocessing, Dice loss and evaluation metrics.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published