Federated Learning for Couinaud Liver Segmentation at CT: A Multicenter Study
Model weights for automatic segmentation of the nine Couinaud liver segments (I, II, III, IVa, IVb, V–VIII) on portal venous phase CT, trained with federated averaging (FedAvg) across four hospitals. CT images and labels never left each hospital; only model parameters were exchanged.
- Code: github.com/AISeedHub/CouinaudFL
- Paper: Federated Learning for Couinaud Liver Segmentation at CT: A Multicenter Study (submitted to Radiology: Artificial Intelligence)
Files
| File | Description |
|---|---|
safetensors/fedavg_fold{0-4}.safetensors | FedAvg global model after the final round, one per cross-validation fold (recommended format) |
pytorch/fedavg_fold{0-4}.pth | Same weights as PyTorch state_dict files, for direct use with the repository scripts |
safetensors/pretrained.safetensors, pytorch/pretrained.pth | Common pretrained model used as the starting point of all single-hospital and federated models (before any training on hospital data) |
Each fold model was trained on the training patients of that fold at all four hospitals (10 rounds × 10 local epochs). The two formats contain identical tensors.
Model
- Architecture: nnU-Net 3d_fullres PlainConvUNet (6 stages, instance normalization, LeakyReLU, deep supervision), 31.2 M trainable parameters, same configuration as TotalSegmentator v2
- Output: 10 classes: background and S1, S2, S3, S4a, S4b, S5, S6, S7, S8
- Initialization: common model pretrained on public CT (MSD Task08, LiTS, 3D-IRCADb) starting from TotalSegmentator weights, released here as
pretrained. Its training labels do not divide S4, so it should be evaluated with S4a and S4b merged.
Input
| Item | Specification |
|---|---|
| Image | Axial CT, uint8, shape (D, 512, 512), cranial to caudal |
| Slice thickness | 4 mm |
| Intensity | Abdominal window (level 80 HU, width 225 HU) mapped to 0–255, then normalized as (x / 255 − 0.5) / 0.25 |
| Inference | Sliding window with 96 × 256 × 256 patches (50% overlap) |
Performance
Within-hospital held-out test (164 patients, 5-fold cross-validation, 9 segments, patient-level mean Dice)
| Model | Dice | HD95 (mm) |
|---|---|---|
| Single-hospital training | 0.731 | 20.0 |
| FedAvg (these weights) | 0.772 | 14.5 |
Public test set (49 CT scans from the same source as part of the pretraining data, not used for training; 8 segments with S4a and S4b merged)
| Model | Dice |
|---|---|
| Single-hospital training (four hospitals) | 0.638–0.699 |
| FedAvg (these weights) | 0.730 |
| Pretrained model (starting point) | 0.822 |
Because the public test set shares its image source and label sets with the pretraining data, it favors the pretrained model. At a participating hospital (62 held-out patients, 8 segments), FedAvg had a higher Dice score than the pretrained model (0.794 vs 0.738).
Usage
git clone https://github.com/AISeedHub/CouinaudFL.git && cd CouinaudFL
bash scripts/install.sh
hf download AISeedCorp/CouinaudFL --local-dir weights/
import numpy as np, torch
from safetensors.torch import load_file
from couinaudfl.model import build_model
from couinaudfl.infer import predict_volume_auto_orient
model = build_model()
model.load_state_dict(load_file("weights/safetensors/fedavg_fold0.safetensors"))
model = model.cuda().eval()
image = np.load("case/image.npy") # uint8 (D, 512, 512), 4 mm, abdominal window
with torch.no_grad():
label, _, _ = predict_volume_auto_orient(model, image, torch.device("cuda"))
# label: uint8 (D, 512, 512); 0 = background, 1–9 = S1, S2, S3, S4a, S4b, S5, S6, S7, S8
Evaluation against reference masks:
.venv/bin/python scripts/eval_ours_zero_shot.py \
--weights weights/pytorch/fedavg_fold0.pth --cases <data_root> --out <output_dir> --no-hd
Intended Use and Limitations
- Research use only. Not a medical device and not validated for clinical decision making.
- Trained on portal venous phase CT from four hospitals; performance on other phases, scanners, or populations is not established.
- The S4a/S4b boundary is the least accurate (Dice about 0.61).
- The reference standard was produced by one radiologist per hospital; interreader variability was not measured.
License
Research use only. The weights derive from public datasets and initialization weights with their own terms; users must also comply with those terms. The code is released under the Apache License 2.0 in the GitHub repository.