Musclesense
MuscleSense comprises a set deep learning AI networks that perform the anatomical segmentation and parcellation of calf, thigh, foot, and hand muscles in 3-point Dixon, T1w, and T2-stir MRI volumes.
Install / Use
/learn @bariskanber/MusclesenseREADME
MuscleSense
MuscleSense comprises a set deep learning AI networks that perform the anatomical segmentation and parcellation of calf, thigh, foot, and hand muscles in 3-point Dixon, T1w, and T2-stir MRI volumes.
Example
Installation
The instructions below are for installing the software at ~/musclesense on Linux. Replace ~ and musclesense as appropriate if you wish to install the software elsewhere on your filesystem.
- At the Linux terminal, execute:
cd ~
followed by:
git clone https://github.com/bariskanber/musclesense.git
- Install Miniconda3 (see here) in:
~/musclesense/miniconda3
The installation script will ask for the location.
- Install the required modules by running:
~/musclesense/miniconda3/bin/python -m pip install -r ~/musclesense/requirements.txt
Getting started
Please note that if the location you have installed the software to requires root privileges to write to, you may encouter a Permission denied: '.../models' error. Run the software with sudo once for each new modality you use and sudo will no longer be necessary once the appropriate model files have been downloaded.
Example 1
Run the following command to perform individual muscle segmentation on the two T1w calf datasets in the directory /mydir.
~/musclesense/miniconda3/bin/python ~/musclesense/mmseg_ll.py -al calf -modalities t1 -inputdir /mydir
mydir is expected to have the following directory structure:
mydir/
├── subject1/
│ └── t1.nii.gz
├── subject2/
│ └── t1.nii.gz
A file labelled calf_parcellation_t1.nii.gz will be produced in each subject directory.
Example 2
Run the following command to perform whole muscle segmentation on the two T2-stir thigh datasets in the directory /mydir.
~/musclesense/miniconda3/bin/python ~/musclesense/mmseg_ll.py -al thigh -modalities t2_stir -inputdir /mydir --wholemuscle
mydir is expected to have the following directory structure:
mydir/
├── subject1/
│ └── t2_stir.nii.gz
├── subject2/
│ └── t2_stir.nii.gz
A file labelled thigh_segmentation_t2_stir.nii.gz will be produced in each subject directory.
Example 3
Run the following command to perform individual muscle segmentation on the two 3-point Dixon calf datasets in the directory /mydir.
~/musclesense/miniconda3/bin/python ~/musclesense/mmseg_ll.py -al calf -modalities dixon_345_460_575 -inputdir /mydir
mydir is expected to have the following directory structure:
mydir/
├── subject1/
│ └── Dixon345.nii.gz
│ └── Dixon460.nii.gz
│ └── Dixon575.nii.gz
├── subject2/
│ └── Dixon345.nii.gz
│ └── Dixon460.nii.gz
│ └── Dixon575.nii.gz
A file labelled calf_parcellation_dixon_345_460_575.nii.gz will be produced in each subject directory.
Funding
We are grateful to the Wellcome Trust, National Institute for Health and Care Research, and National Brain Appeal for their kind funding and support of this project.
Please consider citing the following publications if you use MuscleSense in your research:
- Musclesense: a trained, artificial neural network for the anatomical segmentation of lower limb magnetic resonance images in neuromuscular diseases (https://pubmed.ncbi.nlm.nih.gov/32892313/)
- Quantitative MRI outcome measures in CMT1A using automated lower limb muscle segmentation (https://pubmed.ncbi.nlm.nih.gov/37979968/)
Enquiries
Please submit any enquiries here.
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
flutter-tutor
Flutter Learning Tutor Guide You are a friendly computer science tutor specializing in Flutter development. Your role is to guide the student through learning Flutter step by step, not to provide d
