Coder Social home page Coder Social logo

mappo23 / dl-direct-v8 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 178.73 MB

DL+DiReCT-v8 - Deep Learning-based Lesion-aware Brain Anatomy Segmentation and Parcellation Model

License: BSD 3-Clause "New" or "Revised" License

Shell 15.61% TeX 1.62% Python 82.77%
deep-learning medical-imaging mri-brain mri-segmentation semantic-segmentation

dl-direct-v8's Introduction

About DL+DiReCT v8

DL+DiReCT combines a deep learning-based neuroanatomy segmentation and cortex parcellation with a diffeomorphic registration technique to measure cortical thickness from T1w MRI.

This repo is a copy of the original and serves as a demo for the new retrained version of the model (i.e. v8). With this retrained version, the model gains the ability to be aware of lesions and to segment related hypointensity regions.

In /pat_test_data folder we include few patient data examples in order to test model.

To ensure consistency with the companion thesis work, we will cover the segmentation capabilities only of the DL+DiReCT pipeline.

Abstract

If you are using DL+DiReCT in your research, please cite (bibtex) the corresponding publication:

Rebsamen, M, Rummel, C, Reyes, M, Wiest, R, McKinley, R.
Direct cortical thickness estimation using deep learning‐based anatomy segmentation and cortex parcellation.
Human brain mapping. 2020; 41: 4804-4814. https://doi.org/10.1002/hbm.25159

Installation

Create virtual environment (optional)

Download and install Miniconda and create a new conda environment:

conda create -y -n DL_DiReCT python=3.10
source activate DL_DiReCT

Install DL+DiReCT

cd ${HOME}
git clone https://github.com/Mappo23/DL-DiReCT-v8
cd DL-DiReCT-v8
pip install numpy && pip install -e .

Usage

Run dl+direct on a patient T1-weighted MRI with:

source activate DL_DiReCT

dl+direct -n -k --model v8 <path_to_t1_input.nii.gz> <output_dir>

In environments with limited RAM capabilities (i.e. less than 16GB), we recommend using the flag --lowmem to ensure proper segmentation execution.

Following files of interest are generated in the output directory:

- T1w_norm.nii.gz		Re-sampled input volume
- T1w_norm_seg.nii.gz		Segmentation
- seg_<ROI>.nii.gz              <ROI> label probability map   
- seg_lesion.nii.gz             lesion label probability map   
- result-vol.csv		Segmentation volumes
- label_def.csv			Label definitions of the segmentation

lesion region is identified by label code 50000, the associated color is bright yellow.

To inspect segmentation results (i.e. T1w_norm_seg.nii.gz), it is recommended to utilise specialised software. Here, you can find a quick overview of the main options.

Other Available Models

The following models are available with the --model ... option:

For further details, consult the corresponding publication and the FAQ or contact us

dl-direct-v8's People

Contributors

alessandrobanti avatar mappo23 avatar

Watchers

 avatar  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.