File size: 2,327 Bytes
1afb623
fc1a743
7656078
4b5336a
7656078
 
 
 
 
 
1afb623
fc1a743
 
 
7656078
fc1a743
7656078
fc1a743
7656078
2d7ad0b
 
fc1a743
 
 
2d7ad0b
7656078
fc1a743
7656078
 
 
 
 
 
fc1a743
 
 
7656078
 
 
 
 
 
 
 
 
 
 
 
fc1a743
7656078
 
 
 
 
 
 
 
fc1a743
 
 
7656078
fc1a743
7656078
 
 
 
 
 
 
 
fc1a743
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
library_name: pytorch
license: cc-by-nc-4.0
pipeline_tag: image-segmentation
tags:
- medical-image-segmentation
- ct
- lower-extremity
- body-composition
- computer-vision
---

# LegSegNet

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).

**GitHub:** [https://github.com/mazurowski-lab/LegSegNet](https://github.com/mazurowski-lab/LegSegNet)

Given an input CT scan, LegSegNet segments four tissue compartments: **bone**, **skeletal muscle**, **subcutaneous adipose tissue (SAT)**, and **inter- and intramuscular adipose tissue (IMAT)**. 

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.

## Model Details

- **Task:** Lower extremity CT tissue segmentation
- **Input:** Lower extremity CT images (PNG) or volumes (NIfTI)
- **Output:** Multi-class segmentation mask and body composition measurements
- **Labels:** 
  - 0: Background
  - 1: SAT (Subcutaneous adipose tissue)
  - 2: Muscle (Skeletal muscle)
  - 3: Inter/Intra (Inter- and intramuscular adipose tissue)
  - 4: Bone

## Usage

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.

### Installation and Inference

To run the application locally:

```bash
pip install -r requirements.txt
python app.py
```

### File Structure

Ensure the model files are organized as follows to use the inference scripts:
```text
model/
|-- plans.json
|-- dataset.json
|-- fold_0/
    |-- checkpoint_best.pth
```

## Citation

If you find LegSegNet useful, please cite the following manuscript:

```bibtex
@article{legsegnet2026,
  title={LegSegNet: A Public Deep Learning System for Lower Extremity CT Tissue Segmentation and Quantification},
  author={Gao, Chen and others},
  journal={arXiv preprint arXiv:2605.30829},
  year={2026}
}
```

## License

This project is released under the **Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)**.