SIAM
Contrast-agnostic segmentation of the whole head from any MRI contrast or CT: brain tissues, deep nuclei, CSF, dura, vessels, skull and scalp, with an anomaly label.
Original model: SIAM v0.3 by Valabregue et al. · Repository · Paper
Run it
Ask your agent, once it is connected to MedMLX:
Use MedMLX to segment head.nii.gz in my work folder with SIAM.
Or run it from the terminal, in the folder that holds your files. Weights download on the first run.
uv tool install --python 3.13 "medmlx[segment,mcp]"
medmlx describe siam
medmlx run siam --arg image_path=head.nii.gz output_dir=siam
describe lists every argument the model takes.
Model card
- Input
- One 3D head scan saved as a NIfTI file: MRI of any contrast, or CT.
- Output
- A label map on the input scan’s grid. Its 17 labels cover grey and white matter, CSF and ventricles, cerebellar grey matter, five deep nuclei, hippocampus and amygdala, dura, vessels, skull and scalp, plus Anomalies (17) for pathology such as tumors.
- Training
- Trained by its authors on synthetic images; one model covers any MRI contrast or CT.
- Run
- In Python,
nnunet_mlx.named_models.siam.run(image_path=..., output_dir=...)returns the label map asoutputs["mask"]. In MedMLX the model issiam. - Runs on
- macOS 14.0 or later on Apple Silicon
Before you run
The five folds are averaged without mirroring, as the original siam-pred does; fold= runs one fold. For small heads, voxel_size= matches SIAM’s -voxelsize.
Cite the original work
Valabregue, R., Khemir, I., Bardinet, E., Rousseau, F., Auzias, G. & Dorent, R. (2026). SIAM: Head and Brain MRI Segmentation from Few High-Quality Templates via Synthetic Training. arXiv:2605.02737. Paper · Original repository
License and terms
Software: Apache-2.0. SIAM weights: CC BY 4.0, by Valabregue et al., converted from the original release.
Downloads and memory
| Model | Download | Peak memory | Measured on |
|---|---|---|---|
| SIAM | 2.8 GB | about 16 GB | Typical head MRI; larger fields of view need more |