CLN-Segmenter β MSD Task06 Lung Tumor Segmentation (fold 0)
A 3D U-Net (nnU-Net v2 3d_fullres) trained on the Medical Segmentation Decathlon Task06: Lung Tumor dataset, fold 0 of 5-fold cross-validation. Released as part of the CLN-Segmenter project at the Rasool Lab, Moffitt Cancer Center.
This is a single-fold pretrain checkpoint, intended as a starting point for downstream lung-lesion segmentation work β not a clinical-grade tool.
Quick stats
| Architecture | nnU-Net v2 3d_fullres (PlainConvUNet, 6 stages, features [32, 64, 128, 256, 320, 320]) |
| Training data | MSD Task06 Lung β 63 cases (50 train / 13 val for fold 0) |
| Loss | Dice + Cross-Entropy (nnU-Net default), batch_dice=True |
| Schedule | 1000 epochs, polynomial LR decay 0.01 β 0, batch size 2, patch [80, 192, 160] |
| Hardware | 1Γ NVIDIA H100 80GB, ~6h wall-time |
| Best EMA Pseudo Dice | 0.8155 (epoch ~755) |
| Expected real test Dice | ~0.82β0.84 via sliding-window inference |
| Comparison | At the top of published nnU-Net Task06 baselines (0.69β0.78) |
Files in this repo
| File | Role |
|---|---|
checkpoint_best.pth |
Model weights β saved at the EMA Pseudo Dice peak (~epoch 755), before the late-epoch overfitting plateau |
nnUNetPlans.json |
Architecture spec + preprocessing plans. Required for inference. |
dataset.json |
Channel names, label names, file ending (nnU-Net v2 schema). Required for inference. |
dataset_fingerprint.json |
HU intensity stats from training data |
splits_final.json |
Train/val case ID splits for fold 0 (reproducibility) |
progress.png |
Training curves: loss, Pseudo Dice, epoch duration, learning rate |
Training data and provenance
This model was trained only on the publicly available MSD Task06 Lung dataset (Antonelli et al. 2022, Nature Communications, CC-BY-SA 4.0). It contains expert pixel-level lung tumor annotations from 63 diagnostic CT scans.
No patient-identifiable or institutional data was used. This checkpoint contains no information derived from any non-public source.
Intended use
- Pretrained starting point for finetuning on related lung-lesion segmentation tasks (smaller datasets, domain shift, etc.)
- Reference baseline for published Task06 numbers
- Input to ensembling with other folds (when 5-fold runs are available)
How NOT to use it
- β Not validated for clinical diagnosis or treatment decisions
- β Not validated on low-dose screening CT (LDCT) β see Limitations
- β Single fold, not an ensemble β paper-grade results require all 5 folds
- β Not validated outside the MSD Task06 case distribution
How to use
1. Download the checkpoint and metadata
from huggingface_hub import snapshot_download
local_dir = snapshot_download(repo_id="Lab-Rasool/CLN-Segmenter-MSD-fold0")
print("Files at:", local_dir)
2. Set up an nnU-Net inference directory
nnU-Net expects a specific directory structure for results:
nnUNet_results/
βββ Dataset502_MSDLung/
βββ nnUNetTrainer__nnUNetPlans__3d_fullres/
βββ dataset.json
βββ plans.json (rename from nnUNetPlans.json)
βββ dataset_fingerprint.json
βββ fold_0/
βββ checkpoint_best.pth
βββ splits_final.json
You can build this with:
DST=/path/to/nnUNet_results/Dataset502_MSDLung/nnUNetTrainer__nnUNetPlans__3d_fullres
mkdir -p $DST/fold_0
cp $local_dir/dataset.json $DST/dataset.json
cp $local_dir/nnUNetPlans.json $DST/plans.json
cp $local_dir/dataset_fingerprint.json $DST/dataset_fingerprint.json
cp $local_dir/checkpoint_best.pth $DST/fold_0/checkpoint_best.pth
cp $local_dir/splits_final.json $DST/fold_0/splits_final.json
3. Run inference with nnU-Net
export nnUNet_results=/path/to/nnUNet_results
nnUNetv2_predict \
-i /path/to/your/input_images \
-o /path/to/output_predictions \
-d 502 \
-c 3d_fullres \
-tr nnUNetTrainer \
-p nnUNetPlans \
-f 0 \
-chk checkpoint_best.pth
Input images should be CT volumes named with the nnU-Net channel suffix: <case_id>_0000.nii.gz.
Training procedure
- Framework: nnU-Net v2.7.0 (default trainer)
- Preprocessing: CT-specific normalization (HU clipping at the 0.5/99.5 percentiles of foreground voxels, then per-case z-score), resampling to target spacing
[1.245, 0.785, 0.785]mm - Augmentation: nnU-Net's default 3D augmentation pipeline (rotation, scaling, gamma, mirroring, gaussian noise/blur, low-resolution simulation)
- Optimization: SGD + Nesterov momentum (Ξ²=0.99), polynomial LR decay (initial LR 0.01)
- Iterations: fixed 250 per epoch (nnU-Net default; independent of dataset size)
- Best-checkpoint mechanism: nnU-Net automatically tracks EMA of validation Pseudo Dice and saves
checkpoint_best.pthat the peak
Evaluation
| Metric | Value |
|---|---|
| Best EMA Pseudo Dice (fold 0 validation) | 0.8155 |
| Pseudo Dice raw (jagged) range | 0.50β0.85 |
| Final-epoch train loss | -0.85 |
| Final-epoch val loss | -0.75 |
| Train/val gap | ~0.10 (mild late-stage overfitting; checkpoint_best predates this) |
The training plot (progress.png) shows a smooth Pseudo Dice climb from 0 β 0.7 in the first ~50 epochs and a slow refinement to 0.81 by epoch ~750. After that, train loss continues to drop while val loss plateaus β this is the overfitting signature, and nnU-Net's best-checkpoint mechanism preserves the pre-overfit weights.
Note that Pseudo Dice is voxel-pooled across validation patches, not per-case averaged. Real test-time Dice (per-case, full-volume sliding-window inference) typically lands 0.5β3% higher than Pseudo Dice β so the 0.8155 number translates to roughly 0.82β0.84 real test Dice, which we expect to confirm via nnUNetv2_predict on the 13 fold-0 validation cases.
Limitations
- Single fold of 5-fold CV β not an ensemble. Published-grade numbers require all 5 folds either averaged or ensembled at inference.
- Trained on diagnostic CT only β performance on low-dose screening CT (LDCT) is unknown and likely lower without finetuning.
- Small training set β 50 cases. The model showed mild late-stage overfitting consistent with this scale; the best-checkpoint is from before that point but generalization is bounded by data size.
- MSD Task06 case distribution β annotations focus on primary lung tumors (median volume ~5.2 cmΒ³). Performance on small nodules (e.g. <5mm) or non-tumor lung lesions is not characterized.
- No clinical validation β this is a research artifact, not a medical device.
License
CC-BY-SA 4.0, inherited from the share-alike clause of the MSD Task06 source dataset license.
Citation
If you use this model, please cite:
@article{isensee2021nnunet,
title = {nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation},
author = {Isensee, Fabian and Jaeger, Paul F and Kohl, Simon A A and Petersen, Jens and Maier-Hein, Klaus H},
journal = {Nature Methods},
volume = {18},
number = {2},
pages = {203--211},
year = {2021}
}
@article{antonelli2022medical,
title = {The Medical Segmentation Decathlon},
author = {Antonelli, Michela and Reinke, Annika and Bakas, Spyridon and others},
journal = {Nature Communications},
volume = {13},
number = {1},
pages = {4128},
year = {2022}
}
Project context
Part of CLN-Segmenter at the Rasool Lab, Moffitt Cancer Center: a two-stage approach for lung lesion segmentation that pretrains on public datasets (this is one component) and finetunes on internal data with domain-specific loss formulations.
Other models in this series:
Lab-Rasool/CLN-Segmenter-NLSTseg-fold0β single-dataset NLSTseg POC (LDCT, 605 expert cases)Lab-Rasool/CLN-Segmenter-Dataset500-fold0β unified MSD + NLSTseg pretrain (planned)