Skip to content

Eddowesselink/SlicerMuscleMap

Repository files navigation

SlicerMuscleMap: An Open-Source, Community-Supported Consortium for Whole-Body Quantitative MRI of Muscle

The SlicerMuscleMap extension is a community-suported, open-source, segmentation model for the automated analysis of whole-body muscle morphometry and composition.

When citing MuscleMap, please cite the following publication:

McKay MJ, Weber KA 2nd, Wesselink EO, Smith ZA, Abbott R, Anderson DB, Ashton-James CE, Atyeo J, Beach AJ, Burns J, Clarke S, Collins NJ, Coppieters MW, Cornwall J, Crawford RJ, De Martino E, Dunn AG, Eyles JP, Feng HJ, Fortin M, Franettovich Smith MM, Galloway G, Gandomkar Z, Glastras S, Henderson LA, Hides JA, Hiller CE, Hilmer SN, Hoggarth MA, Kim B, Lal N, LaPorta L, Magnussen JS, Maloney S, March L, Nackley AG, O'Leary SP, Peolsson A, Perraton Z, Pool-Goudzwaard AL, Schnitzler M, Seitz AL, Semciw AI, Sheard PW, Smith AC, Snodgrass SJ, Sullivan J, Tran V, Valentin S, Walton DM, Wishart LR, Elliott JM. MuscleMap: An Open-Source, Community-Supported Consortium for Whole-Body Quantitative MRI of Muscle. J Imaging. 2024;10(11):262. https://doi.org/10.3390/jimaging10110262

Wesselink EO, Elliott JM, Coppieters MW, Hancock MJ, Cronin B, Pool-Goudzwaard A, Weber II KA.Convolutional neural networks for the automatic segmentation of lumbar paraspinal muscles in people with low back pain. Sci Rep. 2022;12(1):13485. https://doi.org/10.1038/s41598-022-16710-5

Set up

If you have a GPU available and installed then whole-body segmentation can be computed in a few minutes. Therefore, it is recommended to set up GPU acceleration as described in this section. CUDA installation is not necessary when a suitable GPU is not available, but will take more time. By default, the Slicer3D Pytorch module will be installed alongside the MuscleMap installation.

To use a GPU, you need a compatible NVIDIA GPU with CUDA installed or a compatible AMD GPU with ROCM installed. You then need to install the corresponding GPU-compatible version of PyTorch v2.4.0.

Usage

  • Start 3D slicer
  • Go to MuscleMap module
  • Install important MuscleMap depencies by clicking on the button in the main module.
  • Load an imput image into the Slicer3D console.
    • Example open-source to test the model can be found --for example-- at MyoSegmentum thigh or MyoSegmentum Spine . Dependent on the availability of a GPU and image size, segmentation may a few seconds up to a minute to segment the image.
  • When this module is used for the first time, please first download and install Pytorch and MuscleMap dependencies by clicking on the button ('Install MuscleMap dependencies'). This can take several minutes.
    • You may get an error popup: Failed to compute results ... Command ... 'pip', 'install' ... returned non-zero exit status 1. This may be normal, see what to do in Troubleshooting section
  • When dependencies are succesfully installed, click on the button ('Run MuscleMap Segmentation').
    • Expected computation time:
      • With CUDA-capable GPU: 3 seconds to 1 minute, dependent on image resolution and size.
      • Without GPU: 1 minute to 20 minutes, dependent on image resolution and size.

Contact

Please post any questions to the MuscleMap issue page.

Contributing

Contributions to this extensions are welcome. Please send a pull request with any suggested changes.

About

3D Slicer extension for MuscleMap whole-body muscle segmentation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published