TotalSegmentator
Overview
This GEAR wraps a deep learning CT segmentation algorithm called TotalSegmentator.
Summary
TotalSegmentator is a tool for segmentation of 104 classes in CT images.
It was trained on a wide range of different CT images (different scanners,institutions,
protocols,...) and therefore should work well on most images.
Cite
Jakob Wasserthal, Manfred Meyer, Hanns-Christian Breit, Joshy Cyriac, Shan Yang, Martin Segeroth, "TotalSegmentator: robust segmentation of 104 anatomical structures in CT images"
Arxiv-link
License: MIT
Classification
Category: Analysis Gear
Gear Level:
Project
Subject
Session
Acquisition
Analysis
[[TOC ]]
Inputs
CT exam
Name : CT
Type : file
Optional : false
Classification : file
Description : Input CT volume as a zipped nifti file
Notes : {Gear accepts one zipped nifti file}
Config
use-fast
Name : use-fast
Type : boolean
Description : Use --fast flag. It will run a lower resolution model 3mm instead of 1.5mm
Default : false
use-multilabel
Name : use-multilabel
Type : boolean
Description : Use --ml flag. it will save one multilabel image for all classes
Default : true
compute-statistics
Name : compute-statistics
Type : boolean
Description : Use --statistics flag. It will calculate volume (in mm3) and mean intensity. Results will be in statistics.json
Default : false
Outputs
Files
Segmentation output
Name : combined_seg_output.nii
Type : file
Optional : false
Classification : file
Description : Segmentation output with a maximum of 104 labels
Notes : This is generated if the config option "use-multilabel" is selected
Statistics file
Name : statistics.json
Type : file
Optional : true
Classification : file
Description : This is generated if the config option "compute-statistics" is selected
Usage
Description
This gears operates by using the binary from TotalSegmentator application .
The input is a CT exam in zipped nifti format.
The output is saved to the Analysis section in the Flywheel platform.
File Specifications
This Gear has only 1 required input file. The details are below:
CT exam
The input is a CT exam in zipped nifti format. The authors claim that TotalSegmentator should work on most
images as it was trained on a wide range of different CT images (different scanners, institutions, protocols).
Workflow
graph LR;
A[Input-File]:::input --> C;
C[Upload] --> D[Parent Container <br> Project, Subject, etc];
D:::container --> E((Gear));
E:::gear --> F[Analysis]:::container;
classDef container fill:#57d,color:#fff
classDef input fill:#7a9,color:#fff
classDef gear fill:#659,color:#fff
Copy
Description of workflow
Upload file to container
Select file as input to gear
Gear places output in Analysis. All output files can be downloaded from Analysis.
The output files are available under "Outputs" section in job log. The combined_seg_output.nii
can be seen with OHIF viewer.
Use Cases
Use Case 1
*Conditions *:
[x] Collection of 3D-T1w brain MRI exams for which a fast Freesurfer-style segmentation is needed.
[x] For each timepoint, the data is available as a zipped nifti file.
Steps
Upload the zipped nifti files to your Flywheel instance
a. Follow these steps to upload de-identified data to Flywheel
Select the subjects' sessions that are to be analyzed
a.
Navigate to "Run Gear", select "Analysis Gear", and select Fast Surfer under the "Image Processing - Segmentation" section.
a.
Select the zipped nifti file to be segmented.
Run gear and review the results under Analysis or in the job log output section.
Logging
Logging will indicate if the processing was run on a GPU or CPU.
Three models are run to generate the final output.
The processing time for each model will be displayed in the log.
Contributing
[For more information about how to get started contributing to that gear,
checkout CONTRIBUTING.md .]
Repository
flywheel-io/scientific-solutions/gears/ct-total-segmentator