ClinicaDL Documentation¶
ClinicaDL is the deep learning extension of Clinica, an open-source Python library for neuroimaging preprocessing and analysis. This library was developed from the AD-DL project, a GitHub repository hosting the source code of a scientific publication on the deep learning classification of brain images in the context of Alzheimer's disease. This is why some functions (label definition and data set restriction) of ClinicaDL are still specific to Alzheimer's disease context. For more information on this clinical context, please refer to our tutorial.
If you are new to ClinicaDL, please consider reading the First steps section before starting your project!
ClinicaDL tutorial
Visit our hands-on tutorial web site to try ClinicaDL directly in a Google Colab instance!
Installation¶
See Installation section for detailed instructions.
ClinicaDL can be installed on Mac OS X and Linux machines, and possibly on Windows computers with a Linux Virtual Machine.
We assume that users installing and using ClinicaDL are comfortable using the command line.
User documentation (ClinicaDL)¶
Prepare your metadata¶
clinicadl tsvtool
- Handle TSV files for metadata processing and data splits
Prepare your imaging data¶
clinicadl quality-check
- Quality control of preprocessed data: use a pretrained network [Fonov et al., 2018] to classify adequately registered images.clinicadl extract
- Prepare input data for deep learning with PyTorch
Hyperparameter exploration¶
clinicadl random-search
- Explore hyperparameter space by training random models
Train deep learning networks¶
clinicadl train [classification|reconstruction|regression]
- Train with your data and create a modelclinicadl train from_json
- Reproduce an experiment from a JSON fileclinicadl train resume
Resume a prematurely stopped job
Inference using pretrained models¶
clinicadl predict
- Predict one image or a list of images with your previously trained network
Interpretation with gradient maps¶
clinicadl interpret
- Interpret trained CNNs on data groups
Pretrained models¶
Pretrained models for CNN networks performing classification of subjects for Alzheimer disease are proposed in here in MAPS format (ready to use with ClinicaDL >= 1.0.4). Models trained with previous versions of ClinicaDL are also available. For more details concerning the parameters used to create these models please refer to the supplementary material of [Wen et al., 2020], particularly the etable 4. All the original pretrained models, produced for the aforementioned publication are also available in this Zenodo record (note that models in this format are not useful anymore with current version of ClinicaDL).
Support¶
- Report an issue on GitHub
- Use the ClinicaDL GitHub Discussion to ask for help!
Contributions¶
If you want to contribute but are not familiar with GitHub, please read the Contribute section. You will also find how to run the test suite to check that your modifications are ready to be integrated.
License¶
ClinicaDL is distributed under the terms of the MIT license given here.
Citing ClinicaDL¶
For publications or communications using ClinicaDL, please cite [Thibeau-Sutre et al., 2021]
as well as the references mentioned on the wiki page of the pipelines you used
(for example, citing PyTorch when using the extract
pipeline).
Disclaimer
ClinicaDL is a software for research studies. It is not intended for use in medical routine.