SlicerKonfAI is a 3D Slicer extension that provides a graphical user interface (GUI) to run AI workflows for medical imaging directly inside Slicer, such as multi-organ segmentation and synthetic CT (sCT) generation.
With SlicerKonfAI, you can load patient images, select an AI App, run inference, and immediately visualize results as Slicer volumes or segmentations.
It also includes built-in Quality Assurance (QA) tools:
- Reference-based evaluation (when ground truth is available)
- Reference-free uncertainty estimation (when no ground truth is available)
If you are a developer who wants to create or package new Apps, see the Developer section below.
| Inference interface | Uncertainty interface |
|---|---|
![]() |
![]() |
| Figure 1 – Inference. | Figure 2 – Uncertainty estimation. |

Figure 3 – Evaluation with reference.
This quick tutorial demonstrates the typical clinical workflow: load → run inference → review results → assess reliability.
- Install 3D Slicer ≥ 5.10
- Open 3D Slicer and go to Extension Manager
- Search for KonfAI
- Click Install
- Restart Slicer and open the KonfAI module from the Pipeline category
- In Slicer, click DICOM (or drag-and-drop a NIfTI / NRRD / MHA file)
- Load a volume (e.g.,
volume.nii.gz) - Confirm the volume appears in the Data module and is visible in the slice views
- On KonfAI module go to the Inference tab
- Select:
- Input volume:
volume - KonfAI App: choose an app (e.g., TotalSegmentator or MRSegmentator)
- Input volume:
- Click Run
- Wait for completion: outputs are automatically loaded back into Slicer as:
- Segmentation nodes (organs, anatomical structures, tumors)
- Volume nodes (probability maps, heatmaps, synthetic CT, etc., depending on the app)
✅ You can now inspect the results in 2D and 3D and adjust visualization (opacity, label colors, 3D rendering).
When no ground truth annotation is available, you can still assess prediction reliability.
- Go to the Evaluation tab and select No reference (Uncertainty)
- Select the inference stack volume generated during prediction
- Click Run
- Review the generated uncertainty outputs (depending on the app), typically:
- uncertainty maps / heatmaps
- voxel-wise confidence measures
- summary metrics
Uncertainty can be computed using:
- test-time augmentation (TTA)
- stochastic dropout
- multi-model ensembling
If a reference annotation (ground truth) is available:
- Load the reference segmentation or volume
- Go to the Evaluation tab
- Select:
- Output volume
- Reference volume
- Optional ROI mask
- Click Run
- Review quantitative metrics and qualitative overlays inside Slicer
SlicerKonfAI automatically discovers and downloads KonfAI Apps hosted on Hugging Face. No manual installation is required: select an App from the list and it becomes instantly available. You can also add your own Apps to the workspace.
SlicerKonfAI runs KonfAI Apps directly inside Slicer, following the exact inference workflow defined in each App. This includes image preprocessing, model execution, and output reconstruction. The system supports GPU acceleration and optimized runtime performance to deliver fast, clinically usable inference.
SlicerKonfAI provides two complementary QA modules that assess prediction reliability by executing the App’s evaluation or uncertainty workflow, which can produce both quantitative metrics and qualitative output images:
- Reference-based QA : automatic comparison between predictions and available ground-truth annotations.
- Reference-free QA: uncertainty estimation when no reference is available, using:
- TTA
- Stochastic dropout
- Multi-model ensembling
Use volumes already loaded in Slicer (DICOM, NRRD, NIfTI, etc.) as inputs and write results back as:
- Volume nodes (e.g. synthetic CT, logits, heatmaps)
- Label maps / segmentation nodes (e.g. organ masks, tumor masks)
The workflows inside each App can be modified or extended (e.g., adding new evaluation metrics or custom processing steps), and SlicerKonfAI will automatically use the updated configuration.
By default, SlicerKonfAI includes several state-of-the-art KonfAI Apps for tasks such as anatomical segmentation and synthetic CT generation, providing ready-to-use baselines for experimentation and clinical evaluation.
SlicerKonfAI is built on top of the KonfAI , a fully configurable and modular deep learning framework that defines complete training, inference, and evaluation workflows through YAML files, enabling reproducible, transparent, and advanced medical imaging pipelines.
For more information about KonfAI, visit the project repository: https://github.com/vboussot/KonfAI
A KonfAI App is a self-contained workflow package built with KonfAI.
It defines how a model is executed, how its outputs are generated, and how optional evaluation or uncertainty workflows are performed.
Apps are portable, versioned, and can be executed identically from Python, the command line, or SlicerKonfAI.
A typical KonfAI App contains:
- A trained model (single checkpoint or ensemble)
- Workflow configuration files (
Prediction.yml,Evaluation.yml,Uncertainty.yml) defining inference, evaluation, and uncertainty pipelines - A metadata file (
app.json) describing the App for SlicerKonfAI
A minimal App directory may look like:
my_konfai_app/
├── app.json # Metadata for SlicerKonfAI
├── Prediction.yml # Inference config used by SlicerKonfAI
├── Evaluation.yml # (Optional) evaluation workflow
├── Uncertainty.yml # (Optional) uncertainty workflow
└── checkpoint.pt # Checkpoint used by Prediction.yml
An example app.json could be:
{
"display_name": "Lung Lobe Segmentation",
"short_description": "Deep learning model for segmenting lung lobes on CBCT scans.",
"description": "This App performs domain adaptation by first synthesizing a CT-like volume from the input CBCT, followed by lung lobe segmentation using a 3D UNet-based model.",
"tta": 4,
"mc_dropout": 0
}SlicerKonfAI uses this metadata to:
- Display the App name and description
- Enable App-specific options such as TTA or dropout
Internally, SlicerKonfAI typically:
-
Prepares a temporary working directory for the current case.
-
Exports the selected Slicer nodes to disk in MHA format, as expected by the App.
-
Executes the App by calling the KonfAI Apps CLI. For example, an inference call may look like:
konfai-apps infer \ -i Volume.mha \ -o Output --ensemble 2 --tta 2 --mc 0 --gpu 0 -
Monitors the running process (stdout/stderr) and streams logs to the Slicer interface.
-
Imports the generated outputs back into Slicer (volumes, segmentations, uncertainty maps, metrics).
Boussot, V. & Dillenseger, J.-L., KonfAI: A Modular and Fully Configurable Framework for Deep Learning in Medical Imaging. arXiv:2508.09823, 2025.
SlicerKonfAI = GUI + data exchange + process manager
KonfAI = the engine that does all computations.


