nnU-Net: Dataset119_ToothFairy2_All
Maxillofacial cone-beam CT (CBCT, 0.3 mm isotropic, HU-scaled) of the 480 training volumes of the ToothFairy2 challenge (MICCAI 2024, University of Modena and Reggio Emilia; set A 417 "P" volumes, set B 63 "F" volumes with larger field of view) with 42 classes: jaws, inferior alveolar canals, maxillary sinuses, pharynx, bridges, crowns, implants and all 32 teeth. Converted from the official mha release to NIfTI with the unused FDI-based label IDs removed so that IDs are consecutive 0-42.
Validation case ToothFairy2F_057 (fold 0): image, reference segmentation and the cross-validation prediction of nnUNetTrainer_onlyMirror01_DASegOrd0__nnUNetResEncUNetLPlans__3d_fullres, which did not see this case in training. Image and reference: Dataset119_ToothFairy2_All, CC-BY-SA-4.0; one slice, intensities windowed, labels overlaid.
Use it
nnUNetv2_hub predict toothfairy2 -i image.nii.gz -o seg.nii.gz
from nnunetv2.hub import load
model = load('toothfairy2')
seg = model.predict('image.nii.gz') # numpy array with the label values below
toothfairy2 runs the best model of this dataset on the hub; MIC-DKFZ/nnUNet_toothfairy2 in its place runs this repo. This repo runs nnUNetTrainer_onlyMirror01_DASegOrd0__nnUNetResEncUNetLPlans__3d_fullres with fold_all and test-time mirroring.
Input
| Channel | Name |
|---|---|
| 0 | CT |
File ending .nii.gz.
Labels
| Value | Label | Name in dataset.json |
|---|---|---|
| 0 | background | background |
| 1 | Lower Jawbone | Lower Jawbone |
| 2 | Upper Jawbone | Upper Jawbone |
| 3 | Left Inferior Alveolar Canal | Left Inferior Alveolar Canal |
| 4 | Right Inferior Alveolar Canal | Right Inferior Alveolar Canal |
| 5 | Left Maxillary Sinus | Left Maxillary Sinus |
| 6 | Right Maxillary Sinus | Right Maxillary Sinus |
| 7 | Pharynx | Pharynx |
| 8 | Bridge | Bridge |
| 9 | Crown | Crown |
| 10 | Implant | Implant |
| 11 | Upper Right Central Incisor | Upper Right Central Incisor |
| 12 | Upper Right Lateral Incisor | Upper Right Lateral Incisor |
| 13 | Upper Right Canine | Upper Right Canine |
| 14 | Upper Right First Premolar | Upper Right First Premolar |
| 15 | Upper Right Second Premolar | Upper Right Second Premolar |
| 16 | Upper Right First Molar | Upper Right First Molar |
| 17 | Upper Right Second Molar | Upper Right Second Molar |
| 18 | Upper Right Third Molar (Wisdom Tooth) | Upper Right Third Molar (Wisdom Tooth) |
| 19 | Upper Left Central Incisor | Upper Left Central Incisor |
| 20 | Upper Left Lateral Incisor | Upper Left Lateral Incisor |
| 21 | Upper Left Canine | Upper Left Canine |
| 22 | Upper Left First Premolar | Upper Left First Premolar |
| 23 | Upper Left Second Premolar | Upper Left Second Premolar |
| 24 | Upper Left First Molar | Upper Left First Molar |
| 25 | Upper Left Second Molar | Upper Left Second Molar |
| 26 | Upper Left Third Molar (Wisdom Tooth) | Upper Left Third Molar (Wisdom Tooth) |
| 27 | Lower Left Central Incisor | Lower Left Central Incisor |
| 28 | Lower Left Lateral Incisor | Lower Left Lateral Incisor |
| 29 | Lower Left Canine | Lower Left Canine |
| 30 | Lower Left First Premolar | Lower Left First Premolar |
| 31 | Lower Left Second Premolar | Lower Left Second Premolar |
| 32 | Lower Left First Molar | Lower Left First Molar |
| 33 | Lower Left Second Molar | Lower Left Second Molar |
| 34 | Lower Left Third Molar (Wisdom Tooth) | Lower Left Third Molar (Wisdom Tooth) |
| 35 | Lower Right Central Incisor | Lower Right Central Incisor |
| 36 | Lower Right Lateral Incisor | Lower Right Lateral Incisor |
| 37 | Lower Right Canine | Lower Right Canine |
| 38 | Lower Right First Premolar | Lower Right First Premolar |
| 39 | Lower Right Second Premolar | Lower Right Second Premolar |
| 40 | Lower Right First Molar | Lower Right First Molar |
| 41 | Lower Right Second Molar | Lower Right Second Molar |
| 42 | Lower Right Third Molar (Wisdom Tooth) | Lower Right Third Molar (Wisdom Tooth) |
Cross-validation results
CV Dice is nnU-Net's cross-validation Dice. The validation predictions of all 5 folds are pooled, so every training case counts once. For each label (or region), Dice is computed per case and averaged over the cases: a case where the label is in neither the reference nor the prediction is left out, and a case where it is predicted but absent from the reference counts as 0. CV Dice is the mean of these per-label values (labels that occur in no reference case are skipped), so small and rare labels count as much as large ones. It is not comparable with challenge metrics such as lesion-wise Dice.
Note: CV Dice and the ToothFairy2 challenge metric differ a lot on this dataset. The challenge scores a label that is in neither the reference nor the prediction as Dice 1; CV Dice leaves such cases out and counts a prediction of an absent label as 0. Many labels are absent from most cases (the maxillary sinuses and the upper jawbone lie outside the smaller field of view of most P cases; bridges, crowns and implants are rare), so a few false positives pull their CV Dice down. With the challenge's definition the default variant reaches a mean Dice of 0.8612 on all 480 cases and 0.9086 on the 63 F cases, matching the nnU-Net ResEnc L configuration without left/right mirroring in Table 1 of Scaling nnU-Net for CBCT Segmentation (Isensee, Kirchhoff et al., 2024: 0.8610 and 0.9083).
| Variant | CV Dice | fold_all |
|---|---|---|
nnUNetTrainer_onlyMirror01_DASegOrd0__nnUNetResEncUNetLPlans__3d_fullres (default) |
0.7654 | yes |
nnUNetTrainer_onlyMirror01_DASegOrd0__nnUNetResEncUNetMPlans__3d_fullres |
0.7576 | yes |
nnUNetTrainer_onlyMirror01_DASegOrd0__nnUNetPlans__3d_fullres |
0.7546 | yes |
Every fold's validation predictions and summary.json (per-label and per-case values) are in this repo, next to the splits.
Training data
- Source: Dataset119_ToothFairy2_All, 20/04/2024
- Data license: CC-BY-SA-4.0
- Changes made to the data: FDI tooth numbers (11-48) are mapped to consecutive label values (11-42) in the same order; label names unchanged.
License
The weights are licensed under CC-BY-SA-4.0. The data they were trained on is licensed under CC-BY-SA-4.0.
Citation
If you use this model, please cite nnU-Net and the dataset:
- Isensee, F., Jaeger, P. F., Kohl, S. A., Petersen, J., & Maier-Hein, K. H. (2021). nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation. Nature Methods, 18(2), 203-211.
- Bolelli, F., Lumetti, L., van Nistelrooij, N., Vinayahalingam, S., Di Bartolomeo, M., Marchesini, K., Pellacani, A., Candeloro, E., Rosati, G., Xi, T., Isensee, F., Kirchhoff, Y., Krämer, L., Rokuss, M., Ulrich, C., Maier-Hein, K., et al. (2026). Multi-structure segmentation in CBCT volumes: The ToothFairy2 challenge. Medical Image Analysis, 112, 104095. https://doi.org/10.1016/j.media.2026.104095
- Bolelli, F., Marchesini, K., van Nistelrooij, N., Lumetti, L., Pipoli, V., Ficarra, E., Vinayahalingam, S., & Grana, C. (2025). Segmenting Maxillofacial Structures in CBCT Volumes. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 5238-5248. https://doi.org/10.1109/CVPR52734.2025.00494
- Lumetti, L., Pipoli, V., Bolelli, F., Ficarra, E., & Grana, C. (2024). Enhancing Patch-Based Learning for the Segmentation of the Mandibular Canal. IEEE Access, 12, 79014-79024. https://doi.org/10.1109/ACCESS.2024.3408629
- Isensee, F., Wald, T., Ulrich, C., Baumgartner, M., Roy, S., Maier-Hein, K., & Jaeger, P. F. (2024). nnU-Net Revisited: A Call for Rigorous Validation in 3D Medical Image Segmentation. MICCAI 2024.
