Skip to content

JagadishSivakumar/Brain-Tumour-Segmentation

Repository files navigation

Brain Tumour Segmentation

I have implemented the Code using Keras, Data Set will be using the Brat Data Set - https://www.smir.ch/BRATS/Start2013

Dataset

https://figshare.com/articles/BRATS_2013_Leaderboard_and_Test_Datasets/1348692

GPU

Will be using the Google Colabs for accessing powerfull GPUs https://colab.research.google.com

Code author

This code belongs to Jagadish Sivakumar , developed in reference with the Jadevaibhav's Keras implementation and other online resources.

Resources

The whole reference paper that is used in this development is https://arxiv.org/pdf/1505.03540.pdf

Dataset

Segmentation slice by slice from axial view , due to loss of resolution in BRATS dataset in 3D. Thus, our model processes sequentially each 2D axial image (slice) where each pixel is associated with different image modalities namely; T1, T2, T1C and FLAIR.

Check Experiments and Results in the resource pdf to know about the BRAT dataset.

Dataset overview

The model takes a patch around the central pixel and labels from the five categories, as defined by the dataset -

  • Necrosis
  • Edema
  • Non-enhancing Tumor
  • Enhancing Tumour
  • Model goes over the entire image producing labels pixel by pixel

Brats Dataset

Well synthesised images as created by SMIR with 2 subdivided folder:

  • High Grade
  • Low Grade

4 Modalities (T1,T1-C,T2,FLAIR)

Dataset pre - processing

  • Slices with 4 modalities are created.
  • For 2D image modality, 2D dimension is used.
  • During testing we need to generate patches centered on pixels , for classifying.
  • The border pixel is ignored ,others are considered.
  • Dataset is generated per slice, blank slice and patches are filtered.
  • Non - Tumour pixels are ignored.

Our Idea - changes

  • The reference paper uses two-way training process but in the code 'weighted-categorical-loss' function for which weights are calculated per slice basis.

(Two path CNN Architecture) - It has 2 paths:

  • local path - focusing on details
  • global path - focused on context
    (average of output from each path trained seperately)

  • As per the paper, the loss is defined as cumulative loss of categorization of all patches-per-pixel of the given slice. Instead, I am creating a dataset for such slice and training using mini-batch gradient descent(where it should batch gradient descent in accordance of the paper).

About

Brain Tumour Segmentation using Deep Neural Networks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published