File size: 10,523 Bytes
29d3b67
 
0c3aa26
29d3b67
 
 
 
 
 
 
 
 
 
 
 
 
26d3c8d
29d3b67
 
a8a95b5
 
29d3b67
 
 
 
a8a95b5
 
 
 
 
 
 
29d3b67
 
 
 
 
 
 
 
 
 
 
 
26d3c8d
 
 
01132a3
 
 
29d3b67
 
 
 
 
 
 
 
 
 
 
 
 
01132a3
 
 
 
 
a8a95b5
 
29d3b67
 
 
0c3aa26
29d3b67
0c3aa26
 
21c630b
29d3b67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a8a95b5
 
 
 
 
29d3b67
 
 
 
 
 
 
 
 
26d3c8d
01132a3
26d3c8d
 
 
29d3b67
0c3aa26
095bf40
0c3aa26
 
095bf40
 
 
21c630b
095bf40
 
0c3aa26
 
095bf40
 
0c3aa26
 
 
 
 
 
 
 
29d3b67
 
 
0c3aa26
21c630b
 
 
0c3aa26
29d3b67
 
 
 
 
 
 
0c3aa26
 
29d3b67
 
0c3aa26
 
29d3b67
 
 
 
 
 
 
 
 
 
 
 
a8a95b5
 
 
29d3b67
 
a8a95b5
 
 
 
 
 
 
 
 
 
 
29d3b67
 
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
---
license: apache-2.0
library_name: konfai
pipeline_tag: image-segmentation
datasets:
- HCedric/IMPACTSeg
tags:
- medical-imaging
- segmentation
- 3d
- CT
- CBCT
- MRI
- radiotherapy
- konfai
- nifti
- arxiv:2611.32903
---



<p align="center"><img src="ImpactSeg.png" alt="IMPACT-Seg logo" width="180"></p>

<h1 align="center">IMPACT-Seg models</h1>
<p align="center"><b>One model. One label set. CT, CBCT and MRI.</b></p>

<p align="center">
  <a href="https://arxiv.org/abs/2611.32903">📄 Paper</a> ·
  <a href="https://github.com/HEMONCedric/IMPACTSeg">💻 Code on GitHub</a> ·
  <a href="https://huggingface.co/datasets/HCedric/IMPACTSeg">🗂️ Dataset</a> ·
  <a href="#quick-start">🚀 Quick start</a>
</p>

<table>
<tr>
<td width="32%" align="center"><img src="anatomy_3d.png" alt="126 structures predicted on a whole-body CT"></td>
<td>

IMPACT-Seg segments **126 anatomical structures** with the same weights on **planning CT, cone-beam CT and MRI**:
abdominal and thoracic organs, the five lung lobes, heart chambers and great vessels, every vertebra and rib by level,
pelvic and limb bones, trunk muscles and head-and-neck organs at risk. It was built for radiotherapy imaging, where the
same patient is imaged on a planning CT, daily CBCTs and MRI.

- **One model for three modalities**: no modality flag, no per-modality fine-tuning.
- **Robust on CBCT**: Dice 0.842 on real CBCT, compared with 0.671 for the strongest comparator, and gastrointestinal Dice of 0.735
  on independent pancreatic radiotherapy CBCT, compared with 0.634 for TotalSegmentator. Prediction agreement reaches 0.881 on
  registered CT–CBCT pairs and 0.790 on CT–MRI pairs.
- **Fast**: a whole-body CT in 8.0 s (2.5D) or 14.8 s (3D) on one GPU with less than 6 GB of memory.
- **A representation**: the features of the last decoder layer of the 3D network, used as the similarity of a
  multimodal registration, rank **first on the
  Learn2Reg [AbdomenMRCT](https://learn2reg.grand-challenge.org/evaluation/test/leaderboard/) and
  [ThoraxCBCT](https://learn2reg.grand-challenge.org/evaluation/thoraxcbct/leaderboard/) leaderboards**.

<sub>Left: 126 structures predicted by the 3D network on a held-out whole-body CT (lungs and large muscles translucent).</sub>

</td>
</tr>
</table>

<p align="center"><img src="multimodal.png" alt="IMPACT-Seg 3D on CT, simulated and real CBCT, and whole-body MRI" width="100%"></p>
<p align="center"><sub>Out-of-fold predictions of the 3D network: whole-body CT, CBCT simulated from a whole-body CT, real thoracic CBCT,
and a whole-body MRI from an external dataset (five-fold ensemble).</sub></p>

<video controls muted loop playsinline width="100%" poster="https://huggingface.co/HCedric/IMPACTSeg/resolve/main/video_poster.jpg"
       src="https://huggingface.co/HCedric/IMPACTSeg/resolve/main/impactseg.mp4"></video>
<p align="center"><sub>IMPACT-Seg in 55 s: one model on CT, CBCT and MRI, 126 structures, and its features used for
multimodal registration. Images: MTBD / Multimodal-HC (Hinge et al., <i>Scientific Data</i> 2026, CC BY 4.0) and Learn2Reg AbdomenMRCT.</sub></p>

> Research use only, not a clinically validated device.
> The associated paper is available on [arXiv](https://arxiv.org/abs/2611.32903).

## Models

| App | Network | Input / patch | Normalization | Weights | Whole-body CT (RTX A6000) |
|---|---|---|---|---:|---|
| `fine-2.5d` | 2.5D residual-encoder U-Net, five folds | 5 adjacent axial slices, 288 × 288 | BatchNorm | 206 MB / fold | 8.0 s · 5.7 GB |
| `fine-3d` | 3D residual-encoder U-Net, five folds | 128 × 128 × 128 | InstanceNorm | 608 MB / fold | 14.8 s · 4.4 GB |
| `coarse-3d` | light 3D residual-encoder U-Net (7 M parameters) | 128 × 128 × 128 at 3 mm | InstanceNorm | 29 MB | < 3 s · < 1 GB |

The **2.5D and 3D networks** predict 126 of the 131 labels of the dataset's `mask_fine`: the cochleae, the optic
chiasm and the optic nerves, a few tens of voxels at the training resolution, were not learned and are never output
(`not_output_by_the_models` in `labels.json`). They were trained for 2 M iterations on CT, real and simulated CBCT and
MRI, as five folds on different patient splits. Every fold is a complete model; the five-fold ensemble is the most
accurate option on new data. The 3D network is the more accurate, thanks to its wider context (vertebra and rib
levels); the 2.5D network is the faster.

The **coarse network** predicts the 11 body-region and tissue classes of `mask_coarse` (subcutaneous tissue, muscle,
abdominal and thoracic cavities, bones, glandular structure, pericardium, breast implant, mediastinum, spinal cord,
brain). It was trained on one split (2661 training, 100 validation and 64 test volumes) and reached a case-level Dice
of 0.888 on CT, 0.859 on CBCT and 0.812 on MRI on the test volumes, and 0.768 on the 100 validation MRIs (indicative:
part of the coarse references are audited pseudo-labels).

### Results of the 2.5D and 3D networks

Mean Dice on the structures shared with the compared methods,
using out-of-fold predictions for internal benchmarks and
five-fold ensembles for external benchmarks, with the same
cases and labels for every method. Further details are provided
in the [paper](https://arxiv.org/abs/2611.32903).

| Benchmark | 2.5D | 3D | Best other method |
|---|---:|---:|---:|
| Real CBCT (SynthRAD, 139 cases) | 0.819 | **0.842** | 0.671 (NV-Segment-CTMR) |
| Simulated CBCT (497 cases) | 0.833 | **0.855** | 0.741 (TotalSegmentator) |
| CT (VISCERAL, 58 cases) | 0.833 | 0.850 | **0.853** (TotalSegmentator) |
| MRI (SynthRAD, 52 cases) | 0.817 | **0.822** | 0.820 (TotalSegmentator) |
| External CT, TotalSegmentator v3 (247 cases, 5-fold ensemble) | 0.816 | 0.846 | **0.932** (TotalSegmentator) |
| External MRI, TotalSegmentator v3 (253 cases, 5-fold ensemble) | 0.780 | 0.795 | **0.843** (TotalSegmentator) |
| External clinical CBCT, pancreatic radiotherapy (MSKCC, 80 CBCTs, GI Dice) | 0.713 | **0.735** | 0.634 (TotalSegmentator) |

On the external pancreatic CBCTs, gastrointestinal Dice is computed on the union of the small bowel, stomach and duodenum to account
for differences in delineation conventions. Rigidly propagated planning-CT contours reached 0.690, while the five-fold ensembles
of IMPACT-Seg reached 0.719 (2.5D) and 0.742 (3D).

## Quick start

The three networks are [KonfAI](https://github.com/fideus-labs/KonfAI) apps: no configuration to write, and the weights
download on first use. They need KonfAI 1.9.0 or later.

```bash
pip install impact_seg_konfai
impact-seg-konfai segment fine-3d -i image.nii.gz -o output/ --gpu 0     # or fine-2.5d, coarse-3d, coarse-2.5d
```

- `--ensemble 1` runs one fold instead of five: five times faster, and one set of weights to download.
- The same apps with the generic runner: `konfai-apps infer HCedric/IMPACTSeg:fine-3d -i image.nii.gz -o output/`.
- In 3D Slicer: the [IMPACT-Seg extension](https://github.com/vboussot/SlicerImpactSeg).

An app applies the whole pipeline: reorientation to RAS, z-score normalization over the volume (no HU window),
resampling (1.5 × 1.5 × 2.0 mm, 3 mm for the coarse model), sliding-window inference where overlapping patches keep the
most confident prediction (with several folds, the probabilities are averaged first), and return to the original grid
with nearest-neighbour interpolation. The fine apps use a 50 % overlap; the coarse app uses the training patch grid,
since padded edge patches that contain only air can make it predict spurious tissue on large fields of view. The input
is read by regions: against the whole-volume evaluation pipeline, the labels are the same voxels on a CT or CBCT in HU
with the 3D networks, and at most 0.02 % of the foreground voxels apart on a float volume. Label names are in
`labels.json`.

```text
.
├── fine-3d/, fine-2.5d/     app.json, Prediction.yml, Evaluation.yml, model.py (the network), fold1…5.safetensors
├── coarse-3d/, coarse-2.5d/ the same, with coarse.safetensors
│                            each app: fusion.py (the patch fusion), impactseg.wasm (the same for KonfAI Edge) and
│                            extension/, its source
└── labels.json, LICENSE, NOTICE
```

## Intended use and limitations

- **Scope**: adult anatomy from head and neck to pelvis on CT, CBCT and MRI. Paediatric scans, limb-only or joint
  acquisitions and brain-only scans are outside the intended scope.
- **Evaluation on the dataset**: every case of the [IMPACT-Seg dataset](https://huggingface.co/datasets/HCedric/IMPACTSeg)
  was used for training by some of the folds. Do not evaluate a fold or an ensemble on these cases: the splits and a
  crosswalk to the dataset folders are in the [code repository](https://github.com/HEMONCedric/IMPACTSeg).
- **Known weaknesses**: vertebra and rib levels can be shifted by one (less often with the 3D network); accuracy is
  lower on MRI protocols that are rare in the training data (e.g. whole-body Dixon) and on very small structures.
- **Security**: the weights are safetensors, which load no code; an app runs its own `model.py` and `fusion.py`, as
  every KonfAI app does.

## Training data and license

The networks were trained on the [IMPACT-Seg dataset](https://huggingface.co/datasets/HCedric/IMPACTSeg) (CT, real
and simulated CBCT and MRI from public cohorts with harmonized references); its card lists the sources and their
licenses, several of which are non-commercial. The model files are distributed under the Apache License 2.0
(`LICENSE`); check that the terms of the training sources are compatible with your intended use. Training code and
splits: [github.com/HEMONCedric/IMPACTSeg](https://github.com/HEMONCedric/IMPACTSeg), built with
[KonfAI](https://github.com/fideus-labs/KonfAI).

## Citation

If you use IMPACT-Seg, its pretrained models, its dataset, or its
learned anatomical representations in your research, please cite
our [paper](https://arxiv.org/abs/2611.32903):

```bibtex
@misc{hemon2026impactseg,
  title         = {{IMPACT-Seg}: Consistent Anatomical Segmentation and
                   Representation Learning Across {CT}, {CBCT}, and {MRI}},
  author        = {H{\'e}mon, C{\'e}dric and Boussot, Valentin and
                   McCormick, Matthew and Zimmermann, Lukas and
                   Kurz, Christopher and Landry, Guillaume},
  year          = {2026},
  eprint        = {2611.32903},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2611.32903}
}
```