Giter Site home page Giter Site logo

exophytic-cyst-segmentation's Introduction

ExoCystSegNet

This software package (ExoCystSegNet) includes the source codes for a fully automated segmentation of kidneys and exophytic cysts in patients with autosomal dominant polycystic kidney disease (ADPKD). The nnU-Net was utilized to train the neural networks, and this package is for testing the pretrained neural networks to automatically segment right kidney, left kidney, and exophytic cysts. You can refer to the following paper if you would like to know what the exophytic cysts are:

Bae, K. T., Shi, T., Tao, C., et al. (2020). Expanded Imaging Classification of 
Autosomal Dominant Polycystic Kidney Disease. Journal of the American Society of 
Nephrology, 31(7), 1640-1651.

ExoCystSegNet was trained and tested using T2-MR images. The paper illustrating training procedure and details of training and testing datasets was submitted to the journal, and it will be updated once the paper is published.

Installation

Prior to using ExoCystSegNet, you need to install PyTorch and nnU-Net. Refer to the corresponding website and follow the instructions to install PyTorch and nnU-Net.

Note that ExoCystSegNet was tested on Linux (Ubuntu 16.04 LTS), and we do not guarantee if ExoCystSegNet works on other operating systems (Windows or macOS). We recommend to use virtual environment (e.g., Anaconda).

Usage

ExoCystSegNet consists of 2 main modules: 1) automated segmentation of kidneys and exophytic cysts generating region mask files (NIfTI format) and 2) Plotting label overlayed images on MR images.

1) Segmentation and generation of region mask files

This module uses pretrained weights stored in pretrained_model and loads test images in the images_test folder. In the images_test folder, there are 3 cases with exophytic cysts and 3 cases without exophytic cysts.

auto_eexo_seg_main.py -i [input_folder] -o [output_folder]

The input_folder and output_folder are set to images_test and eexo_seg_results_raw as a default, respectively. Specifying input and output folders is optional, so you can just put auto_eexo_seg_main.py if you want to test the default files.

2) Plotting label overlayed images

Plotting mask overlayed images module loads the original MR images and mask files and generate multiple images (slice-by-slice) overlayed in different colors with the corresponding kidneys and exophytic cysts masks (blue: right kidney, red: left kidney, green: exophytic cyst). The images are saved in eexo_seg_mask_overlay folder.

plot_maskoverlay_images_main.py -i [input_folder] -l [label_folder] -o [output_folder]

Specifying input, label and output folders is also optional, so you can just put plot_maskoverlay_images_main.py if you want to plot the images with the default files. The examples of saved images are illustrated below:

(Example 1) Label overlayed images (case without exophytic cysts)

case_without_exophytic_cysts

(Example 2) Label overlayed images (case with exophytic cysts)

case_with_exophytic_cysts

exophytic-cyst-segmentation's People

Contributors

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