







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Information about the MASS software package for brain extraction, which includes template selection, registration using DRAMMS algorithm, and label fusion. The software is designed for both individual and large population studies, and uses a clustering-based approach for template selection to increase template-subject similarity and improve registration accuracy.
What you will learn
Typology: Study notes
1 / 13
This page cannot be seen from the preview
Don't miss anything!
Release v1.1 (r240)
- August 20, Jimit Doshi
Bibliography 13
1 About the Algorithm
A general overview of the proposed method is given in the following figure. The MASS framework consists of 3 components: template selection, registration and label fusion.
The quality of a registration is directly related to the similarity between the template and the target images. Either due to differences between populations (e.g. age, disease, etc.) or changes in scanner type, technology and protocol (e.g.
1.2 Registration 5
1.5T to 3T), images from two different projects might be significantly different. In order to increase the template- subject similarity, and hence to improve the registration accuracy, we select a study-specific set of templates using a clustering-based approach. The same set of templates is used for processing all images in the study. In this way, we limit the work required for the preparation of the ground-truth brain masks, while using templates as similar as possible to the subjects in the study.
We have chosen a recently developed publicly available registration method DRAMMS because of its ability to meet two major challenges specific to registering raw brain MR images. The first major challenge is the large amount of intensity inhomogeneity and background noise in raw brain MR images. DRAMMS finds voxel-wise correspondences by looking at multi-scale and multi-orientation Gabor texture features around each voxel. Therefore, it is relatively robust to inhomogeneity and noise. The second major challenge in registering brain MR images with skull is the possible presence of outlier regions. Outlier regions, or missing correspondences, usually refer to regions that exist in one image but not in the other. For instance, the MR image of one subject may contain more neck regions, or may have part of superior skull missing due to different field-of-view (FOV) during MRI acquisition. DRAMMS meets this challenge using the mutual salience weighting, as it adaptively finds and relies on voxels/regions that are more likely to establish reliable correspondences across images. This way, it reduces the negative impact of outlier regions compared to other registration methods that forces matching for all voxels/regions.
We adopt a spatially adaptive fusion strategy that takes into consideration the local similarities between the templates and the target image. At each voxel, a weight is assigned to each template such that a higher confidence is given to templates that are locally more similar, e.g. more easily mapped, to the target image. Our main premise here is that the Jacobian maps are good indicators of local similarities between source and target images. Large Jacobian values often correlate with large geometric differences between template and target images. It’s preferable to assign high weights to labels from masks that are locally similar to the subject image, as we have more confidence on the registration when the source and target images are more similar. Such a weighting mechanism is also efficient for making the method more robust. If the registration of one (or a few in the extreme case) template completely fails, the corresponding Jacobian map will have extreme values in most voxels. Thus the brain mask from this template will be ranked very low in general, and the template will not have any effect on the final extraction/segmentation.
3 Installation
See the BASIS guide on software installation for a complete list of build tools and detailed installation instructions.
Dependency Version* Description BASIS 2.1.2 A meta-project developed at SBIA to standardize the software develop- ment. DRAMMS 1.4.1 A registration algorithm developed at SBIA to warp images. AFNI Using the version built on 2008_07_18_ FSL 4.1.5 A comprehensive library of analysis tools for brain imaging data SCIKIT-LEARN 0.14.1 A python package providing several data mining and data analysis tools. NIBABEL 1.2.0^ A python package for read and write access to common medical file formats
If you have access to a computing cluster which has a job scheduler/queuing software (SGE, PBS etc) installed, it can be used to significantly reduce the (wall-clock) time it will take for the MASS software to produce the results. During the installation process, you can initialize the SCHEDULER variable with the particular version of your job scheduler. Currently, there are four options that are supported. You can select the one that best fits your system:
SGE - Sun Grid Engine PBS - Portable Batch System NONE - No queuing system (default) MISC - User defined setting
If you have a different queuing software and you select the “MISC” option, you need to modify the src/schedulerSettings/SettingsMISC.sh file within the package with the appropriate options and arguments that are specific to your queuing system. You can refer to the corresponding files for SGE and PBS as examples.
cd mass-1.1.0-build
OR:
ccmake ../mass-1.1.0-source
After the configuration of the build tree, the software can be built using GNU Make:
make
After building the software, the software tests can be run using
make test
Allow 30-60 mins for the tests to finish. The last test, if the SCHEDULER variable is not set to NONE, is meant to check if submitting the jobs to the queuing system works. Please check your queue (for e.g. using qstat for SGE, PBS) to make sure that the jobs were submitted. If they are submitted, you can either delete them or wait for them to finish. As soon as these tests finish, you can proceed to the installation.
The final installation copies the built files and additional data and documentation files to the installation directory specified using the CMAKE_INSTALL_PREFIX option during the configuration of the build tree:
make install
After the successful installation, the build directory can be removed again.
ChooseTemplates -list /path/to/list/of/images.lst -clust 15 -a
Additionally, you can also submit this script to your computing cluster if you have a large number of images that need be clustered. Make sure that you use the appropriate options for requesting memory as well as the number of threads while submitting this script cluster. This will ensure that the script does not run out of memory or overload the cluster.
The main command of MASS which removes the skull and other non-brain tissues is named mass. The simplest use is:
mass -in /path/to/source/sourceimage.hdr
This command will generate 3 files in the /path/to/source/ directory:
sourceimage_brain.nii.gz - The skull-stripped image sourceimage_brainmask.nii.gz - The final brain mask sourceimage_brain_JacRank.nii.gz - The Jacobian Rank Mask
The Jacobian Rank Mask is a combination of the different registrations weighted locally by their jacobian determinants. This file can be thresholded using mass-thresholdjacobian to create stricter or more lenient masks. The maximum value within this file can vary with the number of templates that are used for registrations. Since it is a sum of ranks, that max value will always be N*(N+1)/2, where N is the number of templates used.
Supported File Formats: NIfTI-1 (recommended)
Supported Datatypes: byte (unsigned char, uint8), int8, short, int16, uint16, float, float32, int32.
To run the mass script which will internally do the processing and then submit the mass-registrations and mass-skullStripping jobs:
mass -in /Path/To/Source/Directory/Input_n3.nii.gz -dest /Path/To/Destination/Directory/;
To use the templates without the cerebellum:
mass -in /Path/To/Source/Directory/Input_n3.nii.gz -dest /Path/To/Destination/Directory/ -noCere;
To use a user defined set of templates:
mass -in /Path/To/Source/Directory/Input_n3.nii.gz -dest /Path/To/Destination/Directory/ -ref /Path/To/User/Defined/Templates/;
To remove the skull from the input image using the default options. However, do not use the computing cluster but run the mass-registrations jobs serially :
mass -in /Path/To/Source/Directory/Input_n3.nii.gz
4.5 Threshold Jacobian Rank Mask 11
-dest /Path/To/Destination/Directory/ -NOQ;
To remove the skull from the input image using the default options, but without the computing cluster. Additionally, use 6 CPU cores during mass-registrations to speed up the process:
mass -in /Path/To/Source/Directory/Input_n3.nii.gz -dest /Path/To/Destination/Directory/ -NOQ -MT 6;
To remove the skull from the input image that is larger than normal and therefore, needs more memory, request 20GB instead of the default 16GB:
mass -in /Path/To/Source/Directory/Input_n3.nii.gz -dest /Path/To/Destination/Directory/ -mem 20;
By default, the Jacobian Rank Mask is thresholded at 50% of the max value and then processed to get the final binary brain mask. If you’d like to threshold the Jacobian Rank Mask at a different percent value, say 70% to make the output brain mask stricter than the default value, use the following command:
mass-thresholdJacobian -in /Path/To/Source/Directory/Input_n3.nii.gz -jacRank /Path/To/Source/Directory/Input_n3_cbq_JacobianRankMask.nii.gz -perThresh 70
On the other hand, if you want to threshold using an absolute value of the Jacobian Rank Mask, say 47, you can run:
mass-thresholdJacobian -in /Path/To/Source/Directory/Input_n3.nii.gz -jacRank /Path/To/Source/Directory/Input_n3_cbq_JacobianRankMask.nii.gz -absThresh 47
6 People
References
[ARAD2013] Jimit Doshi, Guray Erus, Yangming Ou, Bilwaj Gaonkar, Christos Davatzikos. Multi-Atlas Skull- Stripping, MASS. Academic Radiology (web).
[MedIA2011] Yangming Ou, Aristeidis Sotiras, Nikos Paragios, Christos Davatzikos. DRAMMS: Deformable reg- istration via attribute matching and mutual-saliency weighting. Medical Image Analysis 15(4): 622-639 (2011). (web)
[IPMI2009] Yangming Ou, Christos Davatzikos. DRAMMS: Deformable Registration via Attribute Matching and Mutual-Saliency Weighting. IPMI 2009: 50-62. (web)
[WBIR2012] Yangming Ou, Dong Hye Ye, Kilian M. Pohl, Christos Davatzikos. Validation of DRAMMS among 12 Popular Methods in Cross-Subject Cardiac MRI Registration. WBIR 2012: 209-219. (web)