LegSegNet: A Public Deep Learning System for Lower Extremity CT Tissue Segmentation and Quantification

Yuwen Chen\(^{1}\) Yaqian Chen\(^{1}\) Roy Colglazier\(^{3}\) Haoyu Dong\(^{1}\)
Hanxue Gu\(^{1}\) Maciej A. Mazurowski\(^{1,2,3,4}\) Kevin W. Southerland\(^{5}\)
\(^{1}\)Department of Electrical and Computer Engineering, Duke University, Durham, NC 27708
\(^{2}\)Department of Biostatistics & Bioinformatics, Duke University, Durham, NC 27708
\(^{3}\)Department of Radiology, Duke University, Durham, NC 27708
\(^{4}\)Department of Computer Science, Duke University, Durham, NC 27708
\(^{5}\)Department of Surgery, Duke University, Durham, NC 27708


Abstract

Lower extremity computed tomography (CT) contains clinically relevant information for body composition analysis, sarcopenia assessment, and musculoskeletal disease monitoring, but extracting these measurements at scale requires accurate tissue segmentation and an automated quantification workflow. Existing public segmentation tools are not designed for comprehensive lower extremity CT analysis, particularly for clinically important inter/intramuscular adipose tissue, and most public methods only provide mask prediction rather than an end-to-end quantification system. To address this problem, we present LegSegNet, a deep learning system for lower extremity CT tissue segmentation and body composition quantification. Given an input CT scan, LegSegNet segments bone, skeletal muscle, subcutaneous adipose tissue, and inter/intramuscular adipose tissue. It then computes quantitative tissue measurements for downstream analysis. We developed the segmentation model using 1,302 manually annotated CT slices and evaluated it on 900 held-out test slices, with all annotations reviewed by radiologists. We benchmark LegSegNet against a broad set of 2D segmentation methods, including CNN-based models, transformer-based models, and finetuned foundation models, and further evaluate its generalization on an external public CT dataset. LegSegNet achieves the best overall segmentation performance, with an average Dice score of 89.31 on the held-out test set. To our knowledge, LegSegNet is the first publicly available end-to-end system for lower extremity CT tissue segmentation and quantification, providing a practical evaluation tool for future computer vision research in medical image analysis. The code and model weights are available at: https://github.com/mazurowski-lab/LegSegNet

3pt

Table 1: Comparison of CT lower extremity deep learning segmentation models and systems for body composition analysis.
Models / Papers Labels Body Range Public Weights
Yang , 2022 [1] Muscle, bone, subcutaneous adipose tissue, intermuscular adipose tissue Thigh Not reported
Yoo , 2022 [2] Three thigh muscle groups and adipose tissue Thigh Not reported
TotalSegmentator, 2023 [3] Broad CT anatomy, including part of lower extremity bones and selected muscle labels in pelvis-to-knee region Whole-body Yes
Soufi , 2025 [4] 19 hip and thigh muscles and 3 bones Hip-to-knee Not reported
Imani , 2025 [5] Bone, bone marrow adipose tissue, skeletal muscle, intermuscular adipose tissue, subcutaneous adipose tissue Hip Not reported
Na , 2025 [6] Fat, muscle, and fluid-fibrotic tissue Lower extremity Not reported
Kim , 2025 [7] Thigh muscle Thigh Not reported
LegSegNet (ours) Bone, skeletal muscle, subcutaneous adipose tissue, inter/intramuscular adipose tissue Lower extremity Yes

1 Introduction↩︎

CT-based body composition analysis is widely used for assessing musculoskeletal health, metabolic disorders, and disease prognosis [8], [9]. In particular, quantitative assessment of lower extremity tissue volume and spatial distribution, including bone, skeletal muscle, and adipose tissue, can provide valuable imaging biomarkers for diseases such as sarcopenia, osteoporosis, obesity, and peripheral vascular disease [10][12]. However, reliable and efficient extraction of these biomarkers requires accurate tissue segmentation.

Manual segmentation and annotation of these tissues are labor-intensive and require domain expertise, which limits the scalability of body composition studies. To reduce this annotation burden, prior studies have explored a range of strategies for maintaining model robustness under limited annotation, including increasing the number of annotated volumes under a fixed annotation budget [13], leveraging domain adaptation across different imaging modalities [14], and using self-supervised or semi-supervised learning with unlabeled data [15], [16].

Beyond methods development, public datasets and released model weights have also played an important role in enabling reproducible evaluation, external validation, and broader adoption of segmentation tools [3], [17], [18]. However, existing public tools remain limited for comprehensive lower extremity CT tissue segmentation.

For example, TotalSegmentator [3] provides related masks such as bone and thigh-based muscle, but these tasks do not constitute a full lower extremity tissue model. Existing public CT body composition models primarily focus on the chest, abdomen, and pelvis rather than the lower extremities [9]. Prior lower extremity CT studies have explored lymphedema tissue segmentation [6], thigh muscle and bone assessment [4], and thigh muscle segmentation [7]. However, these models are often disease-specific, anatomically restricted, or not released for publicly available use. These limitations highlight the demand for a publicly available model for comprehensive lower extremity CT tissue segmentation.

To address this issue, we present LegSegNet, a deep learning framework specifically designed for multi-compartment segmentation of lower extremity CT scans, with public model weights for unified segmentation of bone, skeletal muscle, subcutaneous adipose tissue, and inter/intramuscular adipose tissue. We also develop a publicly available application for quantitative lower extremity CT analysis. Our main contributions are summarized below:

  • We provide a multi-class lower extremity CT segmentation model for bone, muscle, and adipose tissue.

  • We develop a comprehensive benchmark including multiple segmentation architectures, including CNN-based and transformer-based methods, and demonstrate that LegSegNet achieves the best average performance.

  • We introduce LegSegNet, which, to our knowledge, is the first publicly available end-to-end system for lower extremity CT tissue quantification and analysis, and we have made the code and model weights publicly available.

2 Related Work↩︎

2.0.0.1 Computer vision for medical image segmentation.

Computer vision methods have been widely used for medical image segmentation, enabling automated extraction of anatomical structures and quantitative biomarkers from large imaging cohorts. Convolutional neural networks (CNNs), such as UNet [19] and its variants [20][22], are still commonly used for biomedical segmentation. More recently, transformer-based models and foundation segmentation models, such as SAM [23] and MedSAM [24], have also been explored and developed for medical imaging tasks. Among these methods, nnUNet remains one of the state-of-the-art (SOTA) baselines [25], [26], as it automatically adapts preprocessing, training pipeline, and post-processing to the target dataset. Therefore, in this work, we use nnUNet as the basis for LegSegNet development and benchmark representative CNN-based and transformer-based methods.

2.0.0.2 CT body composition analysis.

CT-derived measurements of skeletal muscle, adipose tissue, and bone can provide clinically useful biomarkers for nutritional assessment, sarcopenia, osteoporosis, obesity, and disease prognosis [8], [10][12]. Traditional body composition analysis often relies on manual or semi-automated delineation of selected axial slices or anatomical regions, which limits efficiency and introduces observer variability. Thus, deep learning has become an important approach for scalable tissue quantification. Recent CT models have automated muscle and fat segmentation across the chest, abdomen, and pelvis [9], [27]. However, these systems are not designed to provide a comprehensive lower extremity tissue quantification covering bone, skeletal muscle and adipose tissues. This motivates the development of an automated lower extremity CT tissue segmentation and quantification system.

2.0.0.3 Public segmentation models for CT lower extremity segmentation.

Public systems specifically designed for lower extremity CT tissue segmentation and quantification remain limited. TotalSegmentator provides a broad, general-purpose CT segmentation system for many anatomical structures and includes part of the lower extremity labels such as bones and selected muscle groups [3]. However, it mainly focuses on thigh-based muscle and is not designed as an end-to-end lower extremity body composition system for joint quantification of bone, skeletal muscle and adipose tissue. In addition, other lower extremity CT studies have focused on narrower segmentation settings, including lymphedema tissue segmentation [6], hip-to-knee bone and muscle assessment [4], and thigh muscle segmentation [7]. These studies show the feasibility of deep learning for lower extremity CT analysis, but existing models are commonly disease-specific, anatomically restricted, or unavailable for public use (As shown in Table 1). Moreover, most existing models do not provide a unified quantification of clinically important inter/intramuscular adipose tissue [28], [29]. Thus, LegSegNet aims to close this gap by focusing on comprehensive lower extremity CT tissue segmentation and quantification, with a public release of the system and model weights.

3 Methods↩︎

3.1 Cohort Selection↩︎

We selected 107 patients for model development and an additional 30 patients for independent model evaluation who took CT examination at the Duke Health System between 2013 and 2020. The development cohort mainly consists of two CT protocols: CT chest abdomen pelvis with contrast and CT angiography with runoff. All imaging data were deidentified before export.

For both protocols, we only annotate axial slices below the pelvis, as shown in Figure 1. Based on [13], instead of annotating the whole volume, we randomly annotate between 1 and 50 axial slices (median 3) for each volume in the development cohort. This results in 1,302 annotated 2D slices for model development, which are then split by patient into 1,041 training slices and 261 validation slices. For the independent test set, we select 30 axial slices evenly below the pelvis from each of the 30 held-out patients, resulting in 900 testing slices.

We further test the model’s generalizability on external test set. We randomly select 30 whole-body CT scans from SAROS [30], a publicly available multi-center dataset, and evaluate LegSegNet on the lower extremity range. SAROS provides annotations for subcutaneous adipose tissue and skeletal muscle.

3.2 Label Description↩︎

Each axial CT slice has been annotated into four foreground classes. Subcutaneous adipose tissue (SAT) is defined as the soft tissue between the skin and the deep muscular fascia, and therefore includes the subcutaneous fat layer as well as related soft-tissue changes within this region. Skeletal muscle (SM) includes the visible muscle of the thigh and calf. Inter/intramuscular adipose tissue (IAT) refers to fat located within the muscle, either between muscle groups or within muscle tissue. Bone includes the visible bone structures, including femur, tibia, fibula, and patella. Small structures that are not part of the target label set, such as small vessels and edema, are assigned to the surrounding label to maintain a consistent compartment-level annotation strategy, similar as [27]. Therefore, these labels provide a practical representation of major lower extremity tissues for CT-based body composition analysis.

3.3 Annotation Pipeline↩︎

We adopt an interactive model-in-the-loop annotation pipeline to improve annotation efficiency. To do this, we first randomly select 10 volumes to annotate from scratch. A 2D nnUNet is then trained using the available annotations and used to generate pseudo masks for the next batch of volumes. The annotators load these pseudo masks into 3D Slicer [31] and manually correct the sampled slices. The corrected masks are then added back to the training set, and the model is retrained for the next annotation round.

Figure 1: Dataset overview. Left: Example coronal CT view of the lower extremities with the annotated region indicated. Right: Demographics of the training and test sets, including sex distribution, CT scanner manufacturer, and age distribution.

3.4 Segmentation Methods↩︎

LegSegNet is built upon nnUNet [25], a self-configuring deep learning framework that has become one of the strongest and most widely used approaches for biomedical image segmentation [26], [32]. Unlike manually designed pipelines, nnUNet automatically configures key components of the segmentation workflow, including preprocessing, patch size, network architecture, training pipelines, data augmentation, and postprocessing, based on an extracted dataset-specific fingerprint. In this study, we evaluate the default 2D nnUNet configuration and two residual-encoder variants, nnUNet 2D ResEnc-L and nnUNet 2D ResEnc-XL (See Table 3 for details).

Figure 2: Overall pipeline of LegSegNet. The system takes lower extremity CT scans as input, performs automated tissue segmentation, and generates visualizations and quantitative body composition measurements for downstream analysis.

3.5 Automated Quantification System Design↩︎

In addition to mask prediction, LegSegNet is designed as an automated lower extremity CT tissue quantification system. As shown in Figure 2, we implement the system with Gradio interface, which allows users to upload CT volumes or slices, run the trained segmentation model, visualize the predicted masks, and export quantitative measurements. The system supports both CPU and GPU inference, allowing it to run on standard local computers while also taking advantage of GPU acceleration when available. The system applies the trained model at slice-level, reconstructs the predicted labels in the original image space, and computes tissue measurements from the resulting masks.

For each tissue class \(c \in \{\boldsymbol{SAT}, \boldsymbol{SM}, \boldsymbol{IAT}, \boldsymbol{Bone}\}\) and axial slice \(k\), the cross-sectional area can be computed as following:

\[A_{c,k} = s_x \times s_y \times N_{c,k}\]

where \(N_{c,k}\) is the number of pixels assigned to class \(c\) and \(s_x, s_y\) are the pixel spacings. Then, tissue volume can be computed by summing slice areas across the analyzed lower extremity region:

\[V_c = \sum_k A_{c,k} \cdot \Delta z_k\]

where \(\Delta z_k\) is the slice thickness. The system also computes mean CT attenuation for each class as below:

\[\mu_c = \frac{1}{N_c}\sum_{i \in M_c} I_i\]

where \(M_c\) is the predicted mask for class \(c\), \(N_c\) is the number of voxels in the mask, and \(I_i\) is the CT intensity in Hounsfield units.

Based on the available labels, LegSegNet can report a set of directly computable lower extremity body composition metrics. Total adipose tissue volume is defined as the sum of subcutaneous and inter/intramuscular adipose tissue as:

\[V_{\mathrm{Fat}} = V_{\mathbf{SAT}} + V_{\mathbf{IAT}}.\]

The IAT-to-SAT ratio computes relative fat infiltration within the muscle compared with subcutaneous fat as:

\[R_{\mathbf{IAT}/\mathbf{SAT}} = \frac{V_{\mathbf{IAT}}}{V_{\mathbf{SAT}} + \epsilon}\]

where \(\epsilon=10^{-9}\) is a small positive constant added only to the denominator to avoid division by zero when the denominator tissue volume is zero or extremely small. The muscle-to-fat ratio is computed as:

\[R_{\mathbf{SM}/\mathrm{Fat}} = \frac{V_{\mathbf{SM}}}{V_{\mathbf{SAT}} + V_{\mathbf{IAT}} + \epsilon}\]

In addition, the system presents the skeletal muscle attenuation and adipose tissue attenuation as below:

\[\mu_{\mathbf{SM}} = \frac{1}{N_{\mathbf{SM}}}\sum_{i \in M_{\mathbf{SM}}} I_i\] \[\mu_{\mathrm{Fat}} = \frac{1}{N_{\mathbf{SAT}} + N_{\mathbf{IAT}}}\left(\sum_{i \in M_{\mathbf{SAT}}} I_i + \sum_{i \in M_{\mathbf{IAT}}} I_i\right)\]

Moreover, LegSegNet can summarize area-based measurements at each axial position to produce longitudinal tissue profiles \(\{A_{c,k}\}_{k=1}^{K}\) along the lower extremity, which can be useful for identifying regional muscle loss or abnormal fat distribution.

4 Experiments↩︎

Table 2: Model performance on held-out test set including per-class 3D Dice (\(\uparrow\)) and ASSD (\(\downarrow\)) with 95% bootstrap confidence intervals. The best is bold and runner-up is underlined.
Dice \(\uparrow\) ASSD \(\downarrow\)
Method SAT SM IAT Bone Ave. SAT SM IAT Bone Ave.
CNN-based
UNet 92.11 [90.56, 93.39] 91.51 [89.72, 93.12] 70.92 [68.21, 73.46] 96.04 [95.34, 96.59] 87.65 [86.40, 88.83] 0.356 [0.295, 0.423] 0.593 [0.460, 0.754] 1.191 [1.011, 1.383] 0.808 [0.277, 1.560] 0.737 [0.570, 0.947]
Attention UNet 92.46 [90.94, 93.72] 92.10 [90.39, 93.64] 70.08 [66.70, 73.27] 96.09 [94.77, 96.98] 87.68 [86.30, 89.06] 0.474 [0.300, 0.768] 0.517 [0.412, 0.643] 1.295 [1.071, 1.529] 0.930 [0.234, 2.174] 0.804 [0.565, 1.115]
SegResNet 92.61 [91.12, 93.89] 92.63 [91.08, 94.06] 72.19 [69.64, 74.68] 96.80 [96.26, 97.20] 88.56 [87.43, 89.65] 0.435 [0.303, 0.654] 0.445 [0.364, 0.532] 1.146 [0.947, 1.376] 0.623 [0.192, 1.366] 0.662 [0.502, 0.855]
EffNet-B0 UNet 92.04 [90.55, 93.26] 91.63 [89.90, 93.25] 69.66 [66.95, 72.25] 96.16 [95.60, 96.68] 87.37 [86.13, 88.55] 0.364 [0.302, 0.426] 0.532 [0.434, 0.659] 1.266 [1.081, 1.476] 0.687 [0.283, 1.398] 0.712 [0.569, 0.895]
Transformer-based
SwinUNETR 92.16 [90.78, 93.31] 91.43 [89.77, 93.00] 69.08 [66.47, 71.50] 95.18 [93.82, 96.16] 86.96 [85.72, 88.17] 0.363 [0.297, 0.434] 0.559 [0.448, 0.701] 1.263 [1.090, 1.457] 0.944 [0.312, 2.132] 0.782 [0.571, 1.088]
SAM ViT-B 90.93 [89.55, 92.10] 90.78 [89.19, 92.28] 68.55 [66.21, 70.79] 95.35 [94.86, 95.81] 86.40 [85.30, 87.49] 0.399 [0.342, 0.458] 0.592 [0.492, 0.704] 1.175 [1.014, 1.362] 0.483 [0.249, 0.878] 0.662 [0.564, 0.779]
MedSAM ViT-B 82.48 [80.39, 84.26] 88.21 [86.18, 90.12] 55.02 [51.97, 57.98] 90.96 [89.78, 92.03] 79.17 [77.80, 80.54] 0.774 [0.660, 0.896] 0.852 [0.687, 1.062] 1.792 [1.564, 2.053] 0.724 [0.428, 1.235] 1.036 [0.883, 1.225]
LegSegNet
nnUNet (default 2D) 93.19 [91.83, 94.36] 92.92 [91.43, 94.24] 73.98 [71.27, 76.54] 97.15 [96.82, 97.43] 89.31 [88.18, 90.41] 0.299 [0.246, 0.354] 0.404 [0.340, 0.471] 1.062 [0.863, 1.291] 0.296 [0.130, 0.572] 0.515 [0.434, 0.598]
nnUNet ResEnc-L 93.27 [91.94, 94.40] 92.76 [91.26, 94.13] 72.42 [69.55, 75.05] 97.05 [96.68, 97.36] 88.87 [87.67, 90.01] 0.290 [0.241, 0.338] 0.418 [0.353, 0.487] 1.138 [0.913, 1.403] 0.331 [0.133, 0.680] 0.544 [0.452, 0.640]
nnUNet ResEnc-XL 93.23 [91.83, 94.42] 92.79 [91.26, 94.15] 73.09 [70.44, 75.64] 97.10 [96.75, 97.38] 89.05 [87.88, 90.14] 0.288 [0.240, 0.337] 0.406 [0.340, 0.474] 1.133 [0.889, 1.452] 0.503 [0.155, 1.001] 0.583 [0.455, 0.727]

4.1 Baselines↩︎

Table 3: Overview of evaluated segmentation models in benchmark.
Model Family Architecture Pretraining Training
nnUNet 2D (plain) nnUNet PlainConvUNet full
nnUNet 2D ResEnc-L nnUNet Residual-encoder UNet (L) full
nnUNet 2D ResEnc-XL nnUNet Residual-encoder UNet (XL) full
UNet CNN Residual UNet full
Attention UNet CNN UNet + attention gates full
SegResNet CNN Residual encoder-decoder full
FlexibleUNet CNN EfficientNet-B0 encoder + UNet decoder full
Swin UNETR Transformer Swin encoder + CNN decoder full
SAM (ViT-B) Foundation model ViT-B encoder + SAM decoder + adapters SA-1B adapters only
MedSAM (ViT-B) Foundation model ViT-B encoder + SAM decoder + adapters 1.5M medical (incl. CT) adapters only

We compare LegSegNet with a broad set of 2D segmentation baselines, including convolution-based and transformer-based architectures. Specifically, we train five models from scratch: UNet [19], Attention UNet [20], SegResNet [21], FlexibleUNet with an EfficientNet-B0 encoder [22], and SwinUNETR [33]. In addition, we evaluate finetuned ViT-B versions of SAM [23] and MedSAM [24] for automated multi-class segmentation. Following the adapter-based finetuning strategies, only the inserted adapter layers are trainable, while the original foundation model parameters are frozen.

4.2 Evaluation Metrics↩︎

We evaluate segmentation performance using Dice similarity coefficient (DSC) and average symmetric surface distance (ASSD). DSC measures the overlap between the predicted mask \(P\) and the ground-truth mask \(G\):

\[\mathrm{DSC}(P, G) = \frac{2|P \cap G|}{|P| + |G|}\]

A higher DSC indicates better model performance. ASSD measures the average boundary distance between the predicted surface \(S_P\) and the ground-truth surface \(S_G\):

\[\mathrm{ASSD}(S_P, S_G) = \frac{\sum_{p \in S_P} d(p, S_G) + \sum_{g \in S_G} d(g, S_P)}{|S_P| + |S_G|}\]

A lower ASSD indicates better boundary accuracy. Both metrics are computed separately for bone, skeletal muscle, subcutaneous adipose tissue, and inter/intramuscular adipose tissue at volume level.

4.3 Implementation Details↩︎

LegSegNet is implemented using nnUNet v2 [25]. We evaluate three 2D nnUNet configurations: the default plain UNet, ResEnc-L, and ResEnc-XL. All three models use the default nnUNet training pipeline without modification, including automatic preprocessing, patch size selection, data augmentation, deep supervision, SGD optimization, polynomial learning-rate decay, and training for 1000 epochs. The automatically selected patch size is 192 \(\times\) 256.

Figure 3: Qualitative segmentation results. Example CT slices from the test set with ground truth annotations and predictions from LegSegNet. Colors indicate different tissue types: bone (yellow), skeletal muscle (blue), subcutaneous adipose tissue (red), and inter/intramuscular adipose tissue (orange).

For comparison, we train additional 2D baselines from MONAI, including UNet, Attention UNet, SegResNet, FlexibleUNet with an EfficientNet-B0 encoder, and SwinUNETR. For preprocessing, CT intensities (HU) are clipped to \([-200, 200]\) and normalized to \([0, 255]\). These models are trained from scratch for 1000 epochs with input resolution of 256 \(\times\) 256, AdamW optimization, and standard spatial and intensity augmentations. We also finetune SAM and MedSAM in an automated multi-class setting for up to 300 epochs using adapters following [17], while keeping the original foundation model weights frozen. All experiments are run using a single NVIDIA A6000 GPU.

Figure 4: 3D visualization of predicted segmentation. Volumetric reconstruction of LegSegNet predictions.
Figure 5: Correlation between predicted and ground-truth tissue volumes. Pearson correlation between tissue volumes computed from LegSegNet and ground truth volumes for SAT, SM, IAT, and Bone on the held-out test set.

4.4 Results↩︎

4.4.1 Segmentation↩︎

Table 2 presents the quantitative segmentation performance across all methods. The default nnUNet (2D) achieves the highest average DSC of 89.31% and the lowest average ASSD of 0.515. The residual encoder variants (ResEnc-L and ResEnc-XL) achieve comparable overall performance, with ResEnc-L obtaining the best SAT DSC (93.27%).

Among CNN-based methods, SegResNet performs best with an average DSC of 88.56%, followed by UNet and Attention UNet. For Transformer-based methods, SwinUNETR achieves 86.96% average DSC. Finetuned SAM and MedSAM obtain average DSC values of 86.40% and 79.17%, respectively.

Across all tissues, bone segmentation achieves the highest performance, with Dice scores exceeding 95% for all methods except MedSAM. IAT segmentation achieves the lowest performance, with the best DSC of 73.98% obtained by the default nnUNet. The qualitative results in Figure 3 show that LegSegNet produces anatomically consistent masks across representative axial slices, and the 3D reconstruction in Figure 4 further illustrates the volumetric continuity of the predicted lower extremity tissue segmentation.

In addition, LegSegNet achieves a comparable SAT performance on the external test (92.13% DSC). However, the DSC of SM seems to decrease to around 87% due to different annotation protocols, as shown in Figure 7.

Table 4: Model performance on SAROS dataset including per-class 3D Dice (\(\uparrow\)) with 95% bootstrap confidence intervals. The best is bold and runner-up is underlined.
Method SAT SM Ave.
LegSegNet
nnUNet (default 2D) 92.13 [91.13, 93.06] 86.62 [85.53, 87.77] 89.38 [88.61, 90.16]
nnUNet ResEnc-L 92.04 [91.00, 93.04] 86.87 [85.85, 87.97] 89.45 [88.71, 90.19]
nnUNet ResEnc-XL 91.94 [90.86, 92.98] 87.02 [86.03, 88.09] 89.48 [88.72, 90.26]

4.4.2 Body Composition Correlation↩︎

To evaluate whether segmentation performance translates into reliable body composition measurements, we also compare LegSegNet-derived tissue volumes with reference volumes computed from the ground truth masks. This analysis is performed on stacked 3D test volumes. As shown in Figure 5, the Pearson correlation coefficients are 0.997 for SAT, 0.998 for SM, 0.968 for IAT, and 0.999 for Bone.

Figure 6: Overview of LegSegNet system. LegSegNet takes lower extremity CT scans as input and outputs tissue masks, visualizations, and body composition measurements for downstream analysis.

4.5 LegSegNet System↩︎

As shown in Figure 2 and Figure 6, LegSegNet provides an end-to-end workflow for lower extremity CT analysis. Given CT scans, the user can specify the axial range for analysis, after which the system automatically starts segmentation within the selected region. The predicted masks are then used to generate visual outputs including slice-level overlays, as well as quantitative body composition measurements such as tissue volume, attenuation, and ratios between different tissue volume.

4.6 Discussion↩︎

4.6.0.1 Performance analysis.

Our benchmark demonstrates that LegSegNet, based on nnUNet, consistently outperforms CNN-based, transformer-based, and finetuned foundation-model baselines. The default 2D nnUNet achieves the best overall performance with an average DSC of 89.31 and ASSD of 0.515. For class-wise results, ResEnc-L obtains the highest SAT DSC (93.27), while the default 2D nnUNet achieves the best performance on SM, IAT, and Bone. These results suggest that nnUNet’s self-configuring pipeline effectively adapts to lower extremity CT characteristics without manual tuning. The residual encoder variants do not improve overall performance over the default 2D nnUNet, indicating that increasing model capacity alone may not add further benefits to this task.

The performance drop for SM on SAROS is mainly due to differences in annotation protocols. As shown in Figure 7, IAT is included within SM in the SAROS masks, whereas our protocol labels IAT as a separate class. Moreover, LegSegNet maintains stable performance for SAT on SAROS, demonstrating good generalizability of our model.

Figure 7: Qualitative SAROS segmentation results. Example SAROS CT slices with ground truth annotations (SAT and SM) and predictions from LegSegNet.

4.6.0.2 Class-wise performance.

Bone segmentation is the most reliable target, likely because cortical bone has strong CT contrast and well-defined boundaries. In contrast, IAT remains the most challenging class because it is relatively sparse and can have similar intensity to adjacent adipose tissue compartments (e.g., SAT). This suggests that future improvements should focus on more consistent IAT annotation, and including more representative cases with diverse fat distribution.

4.6.0.3 Body composition analysis.

The strong tissue-volume correlations in Figure 5 indicate that high segmentation accuracy also translates into reliable quantitative measurements. The correlations are especially high for SAT, SM, and Bone, while IAT remains slightly lower, consistent with its lower segmentation DSC. These results support the use of LegSegNet not only for mask generation but also for automated lower extremity CT body composition analysis.

5 Conclusion↩︎

In this work, we present LegSegNet, an end-to-end deep learning system for lower extremity CT tissue segmentation and body composition quantification. LegSegNet can segment bone, skeletal muscle, SAT, and IAT, and convert the predicted masks into quantitative measurements including tissue volume, attenuation, and tissue volume ratios. Our comprehensive benchmark demonstrates that LegSegNet achieves the best overall segmentation performance compared with CNN-based, transformer-based, and finetuned foundation model-based baselines. In addition, the strong correlation between predicted and ground truth tissue volumes shows that LegSegNet preserves clinically relevant quantitative measurements for downstream body composition analysis. By releasing the system and model weights, we believe LegSegNet can serve as a public system for evaluating future computer vision models on clinically meaningful CT tissue segmentation and quantification tasks.

References↩︎

[1]
Q. Yang et al., “Quantification of muscle, bones, and fat on single slice thigh CT,” 2022 , organization={SPIE}, vol. 12032, pp. 422–429.
[2]
H. J. Yoo, Y. J. Kim, H. Hong, S. H. Hong, H. D. Chae, and J.-Y. Choi, “Deep learning–based fully automated body composition analysis of thigh CT: Comparison with DXA measurement,” European Radiology, vol. 32, no. 11, pp. 7601–7611, 2022.
[3]
J. Wasserthal et al., “TotalSegmentator: Robust segmentation of 104 anatomic structures in CT images,” Radiology: Artificial Intelligence, vol. 5, no. 5, p. e230024, 2023.
[4]
M. Soufi et al., “Validation of musculoskeletal segmentation model with uncertainty estimation for bone and muscle assessment in hip-to-knee clinical CT images,” Scientific reports, vol. 15, no. 1, p. 125, 2025.
[5]
M. Imani et al., “Deep learning technique for automatic segmentation of proximal hip musculoskeletal tissues from CT scan images: A MrOS study,” Journal of Cachexia, Sarcopenia and Muscle, vol. 16, no. 2, p. e13728, 2025.
[6]
S. Na et al., “Automated CT segmentation for lower extremity tissues in lymphedema evaluation using deep learning,” European Radiology, vol. 35, no. 11, pp. 6842–6852, 2025.
[7]
Y. J. Kim, J.-E. Kim, Y. Park, J. W. Chai, K. G. Kim, and J.-Y. Choi, “Deep learning-based automatic muscle segmentation of the thigh using lower extremity CT images,” Diagnostics, vol. 15, no. 22, p. 2823, 2025.
[8]
C. M. Prado and S. B. Heymsfield, “Lean t,” Journal of Parenteral and Enteral Nutrition, vol. 38, no. 8, imaging: a new era for nutritional assessment and intervention, pp. 940–953, 2014.
[9]
Y. Chen et al., “Automated muscle and fat segmentation in computed tomography for comprehensive body composition analysis,” Machine Learning for Biomedical Imaging, vol. 3, pp. 581–618, 2025, doi: https://doi.org/10.59275/j.melba.2025-ag5g.
[10]
A. J. Cruz-Jentoft et al., “Sarcopenia: Revised european consensus on definition and diagnosis,” Age and ageing, vol. 48, no. 1, pp. 16–31, 2019.
[11]
A. Tolonen et al., “Methodology, clinical applications, and future directions of body composition analysis using computed tomography (CT) images: A review,” European journal of radiology, vol. 145, p. 109943, 2021.
[12]
K. Engelke, O. Museyko, L. Wang, and J.-D. Laredo, “Quantitative analysis of skeletal muscle by computed tomography imaging?state of the art,” Journal of orthopaedic translation, vol. 15, pp. 91–103, 2018.
[13]
Y. Zhang, K. Kramer, and M. A. Mazurowski, “How to select slices for annotation to train best-performing deep learning segmentation models for cross-sectional medical images?” arXiv preprint arXiv:2412.08081, 2024.
[14]
Y. Chen et al., “ContourDiff: Unpaired medical image translation with structural consistency,” Machine Learning for Biomedical Imaging, vol. 3, pp. 711–727, 2025, doi: https://doi.org/10.59275/j.melba.2025-79a2.
[15]
Y. Chen, H. Zhou, and Z. C. Lipton, “Moco-transfer: Investigating out-of-distribution contrastive learning for limited-data domains,” arXiv preprint arXiv:2311.09401, 2023.
[16]
H. Dong et al., “MRI-CORE: A foundation model for magnetic resonance imaging,” arXiv preprint arXiv:2506.12186, 2025.
[17]
H. Gu et al., “SegmentAnyBone: A universal model that segments any bone at any location on MRI,” Medical Image Analysis, vol. 101, p. 103469, 2025.
[18]
R. Colglazier et al., “SegmentAnyMuscle: A universal muscle segmentation model across different locations in MRI,” arXiv preprint arXiv:2506.22467, 2025.
[19]
O. Ronneberger, P. Fischer, and booktitle=International. C. on M. image computing and computer intervention Brox Thomas, “U-net: Convolutional networks for biomedical image segmentation,” 2015 , organization={Springer}, pp. 234–241.
[20]
O. Oktay et al., “Attention u-net: Learning where to look for the pancreas,” arXiv preprint arXiv:1804.03999, 2018.
[21]
booktitle=International. M. brainlesion workshop Myronenko Andriy, “3D MRI brain tumor segmentation using autoencoder regularization,” 2018 , organization={Springer}, pp. 311–320.
[22]
M. Tan, Q. E. Le, and booktitle=Proceedings. of the I. conference on machine learning,. L. B. C. U. others, “Rethinking model scaling for convolutional neural networks,” 2019, vol. 15.
[23]
A. Kirillov et al., “Segment anything,” 2023, pp. 4015–4026.
[24]
J. Ma, Y. He, F. Li, L. Han, C. You, and B. Wang, “Segment anything in medical images,” Nature communications, vol. 15, no. 1, p. 654, 2024.
[25]
F. Isensee, P. F. Jaeger, S. A. Kohl, J. Petersen, and K. H. Maier-Hein, “nnU-net: A self-configuring method for deep learning-based biomedical image segmentation,” Nature methods, vol. 18, no. 2, pp. 203–211, 2021.
[26]
F. Isensee et al., “Nnu-net revisited: A call for rigorous validation in 3d medical image segmentation,” 2024 , organization={Springer}, pp. 488–498.
[27]
L. Pu, N. S. Gezer, S. F. Ashraf, I. Ocak, D. E. Dresser, and R. Dhupar, “Automated segmentation of five different body tissues on computed tomography using deep learning,” Medical physics, vol. 50, no. 1, pp. 178–191, 2023.
[28]
J. Yim et al., “Intermuscular adipose t,” International journal of obesity, vol. 31, no. 9, rivals visceral adipose tissue in independent associations with cardiovascular risk, pp. 1400–1405, 2007.
[29]
T. Zhang, J. Li, X. Li, and Y. Liu, “Intermuscular adipose t,” Frontiers in Endocrinology, vol. 14, p. 1280853, 2023.
[30]
S. Koitka et al., “SAROS: A dataset for whole-body region and organ segmentation in CT imaging,” Scientific Data, vol. 11, no. 1, p. 483, 2024.
[31]
A. Fedorov et al., “3D slicer as an image computing platform for the quantitative imaging network,” Magnetic resonance imaging, vol. 30, no. 9, pp. 1323–1341, 2012.
[32]
Q. Li et al., “BreastSegNet: Multi-label segmentation of breast MRI,” 2025 , organization={Springer}, pp. 196–205.
[33]
A. Hatamizadeh, V. Nath, Y. Tang, D. Yang, H. R. Roth, and booktitle=International. M. brainlesion workshop Xu Daguang, “Swin unetr: Swin transformers for semantic segmentation of brain tumors in mri images,” 2021 , organization={Springer}, pp. 272–284.