Giter Site home page Giter Site logo

anindox8 / atlas-based-3d-brain-segmentation-in-t1-mri Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 4.0 820 KB

Fully supervised, multi-class 3D brain segmentation in T1 MRI, using atlas-based segmentation algorithms (label propagation, tissue models, Expectation-Maximization algorithm).

Batchfile 55.76% Python 44.24%
brain mri 3d-segmentation image-registration elastix atlas tissue-models expectation-maximization

atlas-based-3d-brain-segmentation-in-t1-mri's Introduction

Atlas-Based 3D Multi-Class Brain Segmentation in T1 MRI

Problem Statement: Fully supervised, multi-class 3D brain segmentation in T1 MRI.

Data: Label 1: Cerebrospinal Fluid (CSF); Label 2: White Matter (WM); Label 3: Gray Matter (GM) [15/20 : Train/Test Ratio]

Directories
● Register NIfTI Training Volumes to Reference Volume: elastix-scripts/register_train.bat
● Transform NIfTI Training Labels to Reference Space: elastix-scripts/transform_train.bat
● Register Training Reference Volume to NIfTI Testing Volumes: elastix-scripts/register_test.bat
● Transform Training Probabilistic Atlas to NIfTI Testing Labels: elastix-scripts/transform_test.bat
● Register MNI Template Volume to NIfTI Testing Volumes: elastix-scripts/register_test.bat
● Transform MNI Atlas to NIfTI Testing Labels: elastix-scripts/transform_test.bat
● Perform Segmentation Algorithms: scripts/prime.py

Affine and B-Spline Registration (via elastix-5)

elastix-5 RegistrationFigure 1. [left-to-right]: T1 MRI volume of the reference image (patient 1000), the moving image (patient 1006) and the registered image (patient 1006) using 3D affine and B-spline registration with gradient descent optimizer and Mattes mutual information metric (optimized from -0.355940 to -0.739491). Blue cross-hairs mark the same voxel across all 3 volumes at slice 135, verifying successful registration.

Probabilistic Atlases

Probabilistic AtlasesFigure 2. [left-to-right]: Mean segmentation ground truth for all 15 registered training labels, the CSF probabilistic atlas, the WM probabilistic atlas and the GM probabilistic atlas. Blue cross-hairs mark the same voxel across all 4 volumes at slice 135 with 0.13335, 0.06665, 0.80000 probabilities of belong to the CSF, WM and GM classes, respectively.

Tissue Models

Tissue ModelsFigure 3. [left-to-right]: Independent tissue models (where the area under each curve is equal to 1) and functional tissue models (where sum of the normalized frequency values/probabilities for all 3 classes at any given intensity value is equal to 1). Anomalous values appear in the functional tissue models after the intensity value 2000, owing to division by very small probabilities values.

Segmentation via Label Propagation

Label PropagationFigure 4. [top row, left-to-right]: CSF, WM and GM probabilistic atlas for patient 1125. [bottom row, left-to-right]: T1 MRI volume, ground truth segmentation and predicted segmentation via label propagation for patient 1125. Blue cross-hairs mark the same voxel across all 4 volumes at slice 130, highlighting the site of an abnormality that is not accounted for in the probabilistic atlas and is subsequently poorly segmented in the predicted mask.

Segmentation via Label Propagation with Tissue Models

Label Propagation with Tissue ModelsFigure 5. [top row, left-to-right]: CSF, WM and GM tissue models-based intensity atlas for patient 1125, showing the different class probabilities for intensity values across the volume. [bottom row, left-to-right]: T1 MRI volume, ground truth segmentation and predicted segmentation via label propagation with tissue models for patient 1125. Blue cross-hairs mark the same voxel across all 4 volumes at slice 130, highlighting the site of an abnormality that is accounted for in the intensity atlas and is subsequently accurately segmented in the predicted mask.

Segmentation via EM Algorithm (with Training Probabilistic Atlas)

EM with Training Probabilistic AtlasFigure 6. a) T1 MRI testing volume (patient 1038). b) Segmentation ground truth of testing volume (patient 1038). c) Segmentation using label propagation. d) EM segmentation initialized by K-Means. e) EM segmentation initialized by label propagation. f) Joint EM-atlas segmentation. Blue cross-hairs mark the same voxel across all 4 volumes at slice 140, highlighting the site of putamen structures in GM.

Segmentation via EM Algorithm (with MNI Atlas)

EM with MNI AtlasFigure 7. a) T1 MRI testing volume (patient 1038). b) Segmentation ground truth of testing volume (patient 1038). c) Segmentation using label propagation with MNI probabilistic atlas. d) Segmentation using label propagation with MNI atlas and tissue models. e) EM segmentation initialized by MNI atlas. f) Joint EM-MNI atlas segmentation. Blue cross-hairs mark the same voxel across all 4 volumes at slice 140, highlighting the site of putamen structures in GM.

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.