Code Monkey home page Code Monkey logo

brats's Introduction

Brats

Dataset

This repository details a U-Net approach to solving the BRaTS Dataset from 2020, using a combination of specific hyperparameters and binary-crossentropy for multi-class segmentation.

The BRaTS Dataset comprises of 220 high-grade gliomas (HGG) and 54 low-grade gliomas (LGG) MRIs. The four MRI modalities are T1, T1c, T2, and T2FLAIR. Segmented “ground truth” is 3 intra-tumoral classes. edema, enhancing tumor, and necrosis.

U-Net architecture

68747470733a2f2f6c6d622e696e666f726d6174696b2e756e692d66726569627572672e64652f70656f706c652f726f6e6e656265722f752d6e65742f752d6e65742d6172636869746563747572652e706e67

U-Net is an architecture designed for biomedical image segmentation, Its output size is specifically designed so that it can be the same as the input size for minimal information loss within the data being segmented. It contains 2 paths and skip connections, one path being a contracting encoder that applies convolutional blocks followed by max-pooling to encode the input to extract the features. The decoder path is a symmetric expanding path that projects feature to gain a dense classification by using transposed convolutions.

Framework

For each file of the framework, it was loaded as an np array using nibabel and stored as a 4-dimensional matrix of width, height, depth, and a number of channels. Then due to the dataset being computationally expensive, the images were resized. The images were trained as a collection of 2D slices rather than a 3D array for faster computation and allowing for more specialized metrics to be evaluated.

Predictions

pred1

pred2

Evaluation

The framework evaluation results are calculated using Keras submodules and a set of custom metrics calculating the Mean Intersection over Union, the Dice Coefficient of the overall prediciton, and each class. It was evaluated over 32 images in a batch size of 10:

Metric Evaluation
32/32 [==============================] - 11s 241ms/step - loss: 0.2069 
- accuracy: 0.9924 - mean_io_u_1: 0.8061 - dice_coef: 0.5741 - precision: 0.9937 
- sensitivity: 0.9902 - specificity: 0.9978 - dice_necrotic: 0.4602 
- dice_edema: 0.7037 - dice_enhancing: 0.6893

brats's People

Contributors

prayge avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.