# TotalSegmentator: robust segmentation of 104 anatomical structures in CT images

TotalSegmentator segments 104 anatomical structures in routine CT scans

Jakob Wasserthal, Hanns-Christian Breit, Manfred T. Meyer, Maurice Pradella, Daniel Hinck, Alexander W. Sauter and 6 more · arXiv · 2022-8-11

- **Problem** Most public CT segmentation models cover one organ or a few structures. The models that cover more were trained on small datasets that do not match routine clinical imaging.
- **Method** TotalSegmentator trains an nnU-Net on manually annotated routine CT from 1082 training patients. It segments 104 structures, with a 1.5 mm and a 3 mm variant.
- **Results** The 1.5 mm model reached a Dice of 0.943 on the test split. On 13 shared structures it scored 0.932 against 0.871 for a BTCV-trained nnU-Net.

## Why a multi-structure CT model is needed

Segmenting anatomical structures is a first step for many CT analyses, including extracting imaging biomarkers, detecting pathology, quantifying tumor load and preparing surgery or radiotherapy. Most publicly available models segment one organ, such as the pancreas, spleen, colon or lung, so a team that needs many structures usually has to build its own models.

The few models that cover more structures were trained on small datasets that do not reflect routine imaging, where contrast phase, acquisition settings and pathology vary widely.

The authors set four design goals: public availability including the training data, ease of use, coverage of most anatomically relevant structures across the body, and robust behaviour in any clinical setting. To show what such a tool can enable, they apply it to a polytrauma cohort of 4004 whole-body CT examinations and examine how age relates to the volume and attenuation of the segmented structures.

## Training and test data from routine CT

The training images were drawn at random from routine studies in the years 2012, 2016 and 2020 in the picture archiving and communication system of the University Hospital Basel, starting from 1368 CT images. Upper and lower extremity series (n = 37), series with missing sections (n = 87) and series in which an annotator could not reliably delineate structures because of pathology-related distortion (n = 40) were removed, and sampling within each examination aimed for variety.

All images were resampled to 1.5 mm isotropic resolution, and the final 1204 CT series were divided into 1082 training patients (90%), 57 validation patients (5%) and 65 test patients (5%).

The aging study dataset starts from 4102 patients with polytrauma who had whole-body CT between 2011 and 2020 at the same hospital. Patients with unknown age (n = 30), incomplete images (n = 33) or no contrast agent (n = 35) were excluded, leaving the 4004 examinations used in the analysis. Every patient received the same contrast-enhanced arteriovenous split-bolus protocol with a similar contrast dose, so the authors assumed the contrast-related change in HU values was small and that attenuation values are comparable across patients.

## How the annotations were produced

The authors defined 104 structures and annotated them in the Nora Imaging Platform, with two physicians supervising, one with 3 years and one with 6 years of body-imaging experience. Where a public model already existed for a structure, its output served as a first segmentation that the annotators then validated and corrected by hand.

To cut annotation time, a preliminary nnU-Net was trained after the first 5 patients were finished, and its predictions were refined manually; the intermediate model was retrained again after 5, 20 and 100 patients. All 1204 examinations were reviewed and corrected where needed, and these final labels served as ground truth for training and testing.

The final model was trained as a separate network, not as one of the intermediate models, so the test labels did not feed back into training through the workflow; the authors argue this keeps test-set bias to a minimum, and that fully manual test annotations would have introduced a distribution shift.

## The nnU-Net based model and its two resolutions

The model is built on the nnU-Net framework, a U-Net based segmentation method that derives its hyperparameters from the characteristics of the training dataset. The input is a body CT volume, and the output is a label mask for each of the 104 structures in that volume.

One variant was trained on CT resampled to 1.5 mm isotropic resolution, which the authors use for the highest accuracy. A second variant was trained at 3 mm isotropic resolution to lower the RAM and GPU memory needed at prediction time. Training details for both variants are in the supplement and are not described here.

## Accuracy on the held-out test split

Predictions were compared with the approved ground truth using the Dice similarity coefficient, an overlap measure, and the normalized surface distance, which counts how often the surface distance is below 3 mm; both run from 0 to 1, and both were computed on the test set. The 95% confidence intervals were obtained by nonparametric percentile bootstrapping with 10000 iterations.

The 1.5 mm model reached a Dice of 0.943 (95% CI \[0.938, 0.947\]) and a normalized surface distance of 0.966 (95% CI \[0.962, 0.971\]).

The 3 mm model reached a Dice of 0.840 (95% CI \[0.836, 0.844\]), a clear drop from the 1.5 mm model. Its normalized surface distance stayed at 0.966 (95% CI \[0.962, 0.969\]), and the authors read this as lower-resolution errors remaining within the 3 mm distance threshold, so the borders are less precise while the results are still usable. Per-structure Dice and normalized surface distance values are given in the supplement and in a results file on GitHub.

## Comparison with a BTCV-trained nnU-Net

The BTCV dataset from the Multi-Atlas Labeling Beyond the Cranial Vault Challenge labels only 13 structures, so the comparison was restricted to them and run on two image sets. On the test set of the training dataset, the 1.5 mm model reached a Dice of 0.932 (95% CI \[0.920, 0.942\]) against 0.871 (95% CI \[0.855, 0.887\]) for the BTCV-trained nnU-Net, and a normalized surface distance of 0.971 against 0.921.

Both differences were tested with the Wilcoxon signed rank test and reported at p\<0.001.

When the 1.5 mm model was run on the BTCV dataset, it reached a Dice of 0.849 (95% CI \[0.833, 0.862\]) and a normalized surface distance of 0.932 (95% CI \[0.920, 0.943\]), which the authors take as evidence of generalization to CT from another continent. Those scores are higher than the BTCV-trained nnU-Net's own Dice of 0.839 and normalized surface distance of 0.915 on that dataset, with p\<0.001 reported.

These two comparisons use different image sets, so they should be read as separate results rather than one combined protocol.

## Runtime and memory on a workstation

Runtime, RAM and GPU memory were measured for three study sizes: an abdomen study at 512 × 512 × 280 voxels, a thorax-abdomen study at 512 × 512 × 458 voxels and a head-to-knee study at 512 × 512 × 824 voxels. The measurements were made on a local workstation with an Intel Core i9 3.5GHz CPU and an Nvidia GeForce RTX 3090 GPU.

For the largest study, the 1.5 mm model took 3min 32s with 11.8GB RAM and 11.4GB GPU memory, while the 3 mm model took 1min 23s with 10.6GB RAM and 7.5GB GPU memory. For the smallest study, the 1.5 mm model took 1min 17s with 7.6GB RAM and 6.1GB GPU memory, and the 3 mm model took 34s with 7.4GB RAM and 5.2GB GPU memory. The authors also state that the pretrained package needs less than 12 GB of RAM and no GPU, so it can run on a normal laptop; that claim is separate from the GPU workstation measurements in the table.

## Age-related changes in volume and attenuation

The cohort contains 4004 patients aged 18 to 100 years, with 2543 males (63.5%) and 1461 females (36.5%). For each structure, age was correlated with volume and with mean attenuation in HU using Spearman's rank correlation, and structures whose volume fell below a lower plausibility bound were excluded as failed segmentations. Patients were also split into four age quartiles, compared with a Kruskal-Wallis test and followed by post-hoc Wilcoxon rank sum tests, with Bonferroni correction and p\<0.0001 as the threshold.

Attenuation fell with age in the clavicula (rs = −0.53), the hips (rs = −0.61) and the autochthonous dorsal musculature (rs = −0.74), and the gluteal muscles showed moderate to strong negative correlations (rs from −0.51 to −0.79). For the iliopsoas muscle, age correlated negatively with attenuation (rs = −0.57) and with volume (rs = −0.61), all with p\<0.0001.

Aortic volume rose with age (rs = 0.64), which the authors attribute most likely to aneurysm development, and the iliac arteries showed a weaker positive correlation (rs = 0.33). Kidney and pancreas volumes both correlated negatively with age (rs = −0.49).

The same analysis was run for all 104 classes, and the complete set of correlations is given in the supplement. These are unadjusted correlations; the authors plan a more detailed aging study that corrects for confounders and analyses more correlations.

## How the model compares with earlier multi-structure models

The authors know of three earlier studies that segment a larger number of structures in CT: one model covers 50 structures but is not publicly available and was trained on a homogeneous dataset from one scanner and sequence. Another model covers 120 structures and is public, but the authors report that it needs 256 GB of RAM and was trained on fewer than 100 individuals.

A third model covers 100 structures, and the authors describe its 339 homogeneous training samples as a reason it does not handle diverse slice orientations or contrast phases well. These are the authors' descriptions of prior work; the figures were not measured in this study under the same conditions.

The authors expect the model to serve as a base for organ dosimetry, reference values for organ volume and attenuation, and tumor load estimation when paired with a lesion-detection model. The authors also report over 4500 downloads of the model, and they note that a transformer-based network might improve on the default nnU-Net.

## Failure cases and limits of the evidence

The pathology results are qualitative: the authors show broken bones, a bowel displaced by an inguinal hernia, a missing spleen after splenectomy and a duplicated transplant kidney, without reporting Dice or NSD for these cases.

Male patients were overrepresented in the study datasets, which the authors attribute possibly to a larger male share of the hospital population. The training images come from a single hospital's PACS, with 8 sites and 16 scanners, and most were acquired on Siemens scanners. The main test split has 65 patients, and the BTCV comparison covers only 13 structures.

The model was not evaluated on the 3 mm variant with the same external comparison, and the aging correlations do not correct for confounders.

## Paper info

- **Authors**: Jakob Wasserthal, Hanns-Christian Breit, Manfred T. Meyer, Maurice Pradella, Daniel Hinck, Alexander W. Sauter, Tobias Heye, Daniel Boll, Joshy Cyriac, Shan Yang, Michael Bach, Martin Segeroth
- **Venue**: arXiv · Preprint
- **First published**: 2022-8-11
- **Added**: 2026-11-12
- **Updated**: 2023-6-16
- **Version**: v2
- **arXiv**: 2208.05868
- **DOI**: 10.1148/ryai.230024
- **Category**: eess.IV · cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2208.05868v2) · [PDF ↗](https://arxiv.org/pdf/2208.05868v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Jakob Wasserthal, Hanns-Christian Breit, Manfred T. Meyer, Maurice Pradella, Daniel Hinck, Alexander W. Sauter, Tobias Heye, Daniel Boll, Joshy Cyriac, Shan Yang, Michael Bach, Martin Segeroth (2022). TotalSegmentator: robust segmentation of 104 anatomical structures in CT images. arXiv:2208.05868v2. https://doi.org/10.1148/ryai.230024

**BibTeX**

```
@article{wasserthal2022totalsegmentator,
  title = {{TotalSegmentator: robust segmentation of 104 anatomical structures in CT images}},
  author = {Jakob Wasserthal and Hanns-Christian Breit and Manfred T. Meyer and Maurice Pradella and Daniel Hinck and Alexander W. Sauter and Tobias Heye and Daniel Boll and Joshy Cyriac and Shan Yang and Michael Bach and Martin Segeroth},
  year = {2022},
  eprint = {2208.05868},
  archivePrefix = {arXiv},
  doi = {10.1148/ryai.230024},
  url = {https://arxiv.org/abs/2208.05868v2}
}
```

## Other paper commentary

- [RMPE: Regional Multi-person Pose Estimation](https://refivu.com/en/papers/a258675a-c286-4c65-9760-3d72305d7120-rmpe-regional-multi-person-pose-estimation.md)
- [Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detection](https://refivu.com/en/papers/b6435fab-e010-4a4f-aeb8-b125ca06e94a-memorizing-normality-to-detect-anomaly-memory-augmented-deep.md)
- [LLNet: A Deep Autoencoder Approach to Natural Low-light Image Enhancement](https://refivu.com/en/papers/1b58b4f0-48b5-40db-be28-ecd8cf270c6f-llnet-a-deep-autoencoder-approach-to-natural-low.md)
- [MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer](https://refivu.com/en/papers/c76255ba-9c87-4edc-80cc-28d59c4ccfc5-mobilevit-light-weight-general-purpose-and-mobile-friendly.md)
- [FairMOT: On the Fairness of Detection and Re-Identification in Multiple Object Tracking](https://refivu.com/en/papers/081a3a22-90c6-4c70-a7df-d2e70b35ad22-fairmot-on-the-fairness-of-detection-and-re.md)
- [Is Space-Time Attention All You Need for Video Understanding?](https://refivu.com/en/papers/b6bd7278-3728-4d96-9fe0-5f483de3f3bd-is-space-time-attention-all-you-need-for.md)
- [Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labels](https://refivu.com/en/papers/41c59d55-611c-4abf-a4e2-459eb900711f-generalized-cross-entropy-loss-for-training-deep-neural.md)
- [Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition](https://refivu.com/en/papers/4809d645-7dd0-42ce-ba15-4c5208cfa877-speech-commands-a-dataset-for-limited-vocabulary-speech.md)
- [RePaint: Inpainting using Denoising Diffusion Probabilistic Models](https://refivu.com/en/papers/3c0a622f-efc1-4d6c-bb30-bd253079ac9a-repaint-inpainting-using-denoising-diffusion-probabilistic.md)
- [Hypergraph Neural Networks](https://refivu.com/en/papers/cf9d7d35-b5ef-4472-b64e-4c332f808ace-hypergraph-neural-networks.md)
- [RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space](https://refivu.com/en/papers/6cf7532c-a2b4-4553-a534-0482af8548e2-rotate-knowledge-graph-embedding-by-relational-rotation-in.md)

## Terms in this paper

- [nnU-Net](https://refivu.com/en/terms/606216a52500-nnu-net)
- [normalized surface distance](https://refivu.com/en/terms/5456cde5af2d-normalized-surface-distance)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/38d65e87-91c3-4285-bca2-9755328de70d-totalsegmentator-robust-segmentation-of-104-anatomical)
