Link model to paper and official code repository
Browse filesThis PR improves the model card for LegSegNet by:
- Linking the model to its research paper: [LegSegNet: A Public Deep Learning System for Lower Extremity CT Tissue Segmentation and Quantification](https://huggingface.co/papers/2605.30829).
- Updating the GitHub repository link to the official lab version (`mazurowski-lab/LegSegNet`).
- Adding detailed label information based on the `dataset.json` configuration.
- Including usage instructions and a citation section.
README.md
CHANGED
|
@@ -1,42 +1,73 @@
|
|
| 1 |
---
|
| 2 |
-
license: cc-by-nc-4.0
|
| 3 |
library_name: pytorch
|
| 4 |
-
|
| 5 |
-
- medical-image-segmentation
|
| 6 |
-
- ct
|
| 7 |
-
- lower-extremity
|
| 8 |
-
- body-composition
|
| 9 |
-
- computer-vision
|
| 10 |
pipeline_tag: image-segmentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
# LegSegNet
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
**
|
| 18 |
|
| 19 |
-
Given an input CT scan, LegSegNet segments four tissue compartments: **bone**, **skeletal muscle**, **subcutaneous adipose tissue (SAT)**, and **inter- and intramuscular adipose tissue (IMAT)**.
|
| 20 |
|
| 21 |
The system can further convert predicted masks into quantitative measurements, including tissue area, tissue volume, CT attenuation, and tissue-volume ratios, supporting downstream medical image analysis.
|
| 22 |
|
| 23 |
## Model Details
|
| 24 |
|
| 25 |
- **Task:** Lower extremity CT tissue segmentation
|
| 26 |
-
- **Input:** Lower extremity CT images
|
| 27 |
- **Output:** Multi-class segmentation mask and body composition measurements
|
| 28 |
-
- **Labels:**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
## Usage
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
## Citation
|
| 37 |
|
| 38 |
-
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## License
|
| 42 |
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: pytorch
|
| 3 |
+
license: cc-by-nc-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
pipeline_tag: image-segmentation
|
| 5 |
+
tags:
|
| 6 |
+
- medical-image-segmentation
|
| 7 |
+
- ct
|
| 8 |
+
- lower-extremity
|
| 9 |
+
- body-composition
|
| 10 |
+
- computer-vision
|
| 11 |
---
|
| 12 |
|
| 13 |
# LegSegNet
|
| 14 |
|
| 15 |
+
LegSegNet is a deep learning system for lower extremity CT tissue segmentation and body composition quantification, introduced in the paper [LegSegNet: A Public Deep Learning System for Lower Extremity CT Tissue Segmentation and Quantification](https://huggingface.co/papers/2605.30829).
|
| 16 |
|
| 17 |
+
**GitHub:** [https://github.com/mazurowski-lab/LegSegNet](https://github.com/mazurowski-lab/LegSegNet)
|
| 18 |
|
| 19 |
+
Given an input CT scan, LegSegNet segments four tissue compartments: **bone**, **skeletal muscle**, **subcutaneous adipose tissue (SAT)**, and **inter- and intramuscular adipose tissue (IMAT)**.
|
| 20 |
|
| 21 |
The system can further convert predicted masks into quantitative measurements, including tissue area, tissue volume, CT attenuation, and tissue-volume ratios, supporting downstream medical image analysis.
|
| 22 |
|
| 23 |
## Model Details
|
| 24 |
|
| 25 |
- **Task:** Lower extremity CT tissue segmentation
|
| 26 |
+
- **Input:** Lower extremity CT images (PNG) or volumes (NIfTI)
|
| 27 |
- **Output:** Multi-class segmentation mask and body composition measurements
|
| 28 |
+
- **Labels:**
|
| 29 |
+
- 0: Background
|
| 30 |
+
- 1: SAT (Subcutaneous adipose tissue)
|
| 31 |
+
- 2: Muscle (Skeletal muscle)
|
| 32 |
+
- 3: Inter/Intra (Inter- and intramuscular adipose tissue)
|
| 33 |
+
- 4: Bone
|
| 34 |
|
| 35 |
## Usage
|
| 36 |
|
| 37 |
+
LegSegNet uses a pretrained nnU-Net model. For a practical end-to-end workflow including a Gradio interface, please refer to the official GitHub repository.
|
| 38 |
+
|
| 39 |
+
### Installation and Inference
|
| 40 |
+
|
| 41 |
+
To run the application locally:
|
| 42 |
+
|
| 43 |
+
```bash
|
| 44 |
+
pip install -r requirements.txt
|
| 45 |
+
python app.py
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
### File Structure
|
| 49 |
|
| 50 |
+
Ensure the model files are organized as follows to use the inference scripts:
|
| 51 |
+
```text
|
| 52 |
+
model/
|
| 53 |
+
|-- plans.json
|
| 54 |
+
|-- dataset.json
|
| 55 |
+
|-- fold_0/
|
| 56 |
+
|-- checkpoint_best.pth
|
| 57 |
+
```
|
| 58 |
|
| 59 |
## Citation
|
| 60 |
|
| 61 |
+
If you find LegSegNet useful, please cite the following manuscript:
|
| 62 |
|
| 63 |
+
```bibtex
|
| 64 |
+
@article{legsegnet2026,
|
| 65 |
+
title={LegSegNet: A Public Deep Learning System for Lower Extremity CT Tissue Segmentation and Quantification},
|
| 66 |
+
author={Gao, Chen and others},
|
| 67 |
+
journal={arXiv preprint arXiv:2605.30829},
|
| 68 |
+
year={2026}
|
| 69 |
+
}
|
| 70 |
+
```
|
| 71 |
|
| 72 |
## License
|
| 73 |
|