---
title: 'SAMONAI: Zero-shot 3D MRI Segmentation'
url: https://www.emergentmind.com/topics/samonai
type: topic
---

# SAMONAI: Zero-shot 3D MRI Segmentation

SAMONAI denotes, most explicitly, a zero-shot, 3D prompt propagation algorithm that leverages the Segment Anything Model to segment 3D regions of interest from a single point prompt in volumetric MRI, and was introduced within an automated framework for surgical outcome prediction in colorectal liver metastasis (CRLM) from pre- and post-contrast MRI [2509.08935]. In adjacent literature, the same label is also used more loosely as a SAM-centric theme for injecting object-aware priors into downstream segmentation pipelines, including weakly supervised semantic segmentation and foundation-model adaptation. The term therefore names both a specific medical-imaging algorithm and, in some summaries, a broader design pattern in which SAM provides objectness or boundary structure while task-specific modules supply class semantics, radiomics, or decoder adaptation [2603.10216][2305.05803][2508.03566].

## 1. Nomenclature and scope

The literature does not use the label uniformly. In the CRLM studies, SAMONAI is the name of the prompt propagation algorithm itself: a “zero-shot, 3D prompt propagation strategy” or “depth-aware prompt propagation algorithm” that turns the 2D, interactive Segment Anything Model into a practical volumetric segmenter for medical MRI [2509.08935][2603.10216]. In the weakly supervised semantic segmentation summary built around SAM-enhanced pseudo-labels, “SAMONAI” appears as a thematic perspective rather than the formal title of the method; there, the operative algorithm is SEPL, which uses CAM pseudo-labels to select and combine class-agnostic SAM masks [2305.05803]. In the downstream binary-segmentation baseline SAM2-UNeXT, “SAMONAI” is again used as a contextual label for a SAM-centric downstream segmentation platform rather than as a separate architecture [2508.03566].

This terminological instability is reinforced by papers that explicitly redirect the query term elsewhere. One source states that “SAMONAI” corresponds to SAMO, “Sharpness-Aware Multi-task Optimization with Joint Global-Local Perturbation,” rather than to a distinct segmentation framework [2507.07883]. Another states that the queried term likely refers to SAMOSA, “Segment Anything with Motion, GeOmetry, and Semantic Adaptation,” and that “SAMONAI” does not appear in that paper [2605.22538]. A plausible implication is that “SAMONAI” functions partly as a cross-paper shorthand for “SAM on AI” systems, but only the CRLM papers assign it a precise algorithmic definition.

## 2. Core algorithm in volumetric MRI

In its most concrete form, SAMONAI addresses the problem of obtaining a consistent 3D segmentation of large, concave organs such as liver and spleen from a single user point prompt per object, without finetuning SAM on medical images and without requiring a prompt on every slice [2509.08935]. The inputs are a 3D MRI volume, a single 2D positive point per target object on any slice and view, and optionally one background negative point. The method wraps fixed, pretrained 2D SAM inference in a three-step 3D prompt engineering and propagation procedure.

The first step is point-prompt initialization in the user-selected view. A positive point is placed inside the object on one slice; SAM is run on that slice to produce a segmentation mask and logits. This initial 2D mask appears in each orthogonal view as a line of positive points, defined by the intersection of the 3D object with those slice planes. The second step is orthogonal view seeding with optimal prompt selection. For sagittal and coronal views, SAMONAI identifies the slice where the intersection line has the maximum number of positive points, uses that slice as the seed slice, and chooses the optimal positive prompt by minimizing a weighted cost that prefers points that are central, intensity-consistent, and locally homogeneous. The third step is full-volume propagation and fusion across views. For axial, sagittal, and coronal views, candidate positive points are precomputed for every slice intersecting the object, one positive prompt per slice is selected using the same cost, a negative prompt is chosen from background points outside a 3D bounding box fitted over the three perpendicular positive lines, and 2D SAM is run slice-by-slice. To control runtime, slices are sampled at a rate of \(1/3\) and missing slices are linearly interpolated [2509.08935].

The prompt-selection functional is explicit. For a candidate point set \(P\), SAMONAI uses
\[
C_l(p) = \left\| p - \frac{1}{|P|}\sum_{q \in P} q \right\|,
\]
\[
C_i(p) = \left| I(p) - \operatorname{median}_{q \in P}(I(q)) \right|,
\]
\[
C_h(p) = \sqrt{\frac{1}{|N|}\sum_{r \in N_{11\times 11}(p)}\big(I(r) - \mu_p\big)^2},\quad
\mu_p = \frac{1}{|N|}\sum_{r \in N_{11\times 11}(p)} I(r),
\]
and the min–max normalized weighted total cost
\[
C_t(p) = \alpha\,\hat{C}_l(p) + \beta\,\hat{C}_i(p) + \gamma\,\hat{C}_h(p),
\]
with \(\alpha=1,\ \beta=1,\ \gamma=2\), so that the optimal prompt is
\[
p^* = \arg\min_{p\in P} C_t(p).
\]
Negative prompts are restricted by the intensity threshold
\[
T_N = \min(I) + 0.1\cdot(\max(I)-\min(I)),\quad I(\text{background}) \ge T_N.
\]
This weighting makes homogeneity dominant and is intended to prefer stable interior prompts over edge-adjacent or intensity-ambiguous locations [2509.08935].

View fusion is likewise explicit. If \(L_{\text{ax}}, L_{\text{sg}}, L_{\text{co}}\) are the logits in axial, sagittal, and coronal views, then
\[
L_{\text{fused}} = \frac{L_{\text{ax}} + L_{\text{sg}} + L_{\text{co}}}{3}.
\]
Binarization is conservative:
\[
T_L = \mu_L + 2\sigma_L,\qquad
\mathbf{M}_L = \mathbb{1}\{L_{\text{fused}} \ge T_L\}.
\]
This thresholding favors high-confidence voxels and is explicitly motivated by minimizing false positives when excluding extra-hepatic tissue during liver or spleen segmentation [2509.08935].

Computationally, the method performs \(O(3S)\) 2D SAM calls, where \(S\) is the number of sampled slices per view, with memory dominated by storing view-wise logits and the fused volume. The slice-sampling strategy preserves near-single-view computational cost while injecting 3D awareness, and the per-slice operations are embarrassingly parallel over slices and views [2509.08935].

## 3. Role in CRLM segmentation and survival prediction

SAMONAI was introduced to solve a concrete annotation bottleneck in CRLM imaging: tumors were annotated across the dataset, but only a small subset had liver and spleen masks. In one account, SAMONAI is used to generate liver and spleen labels for 20 cases to complete missing annotations; these masks are combined with manual tumor masks, a few-shot UNETR with a ViT Adapter is finetuned on the subset, and the resulting model is then run over the whole dataset to fill in the remaining liver and spleen labels [2509.08935]. In another account, the same overall strategy is described as pseudo-label generation on a 15 training / 5 validation subset, followed by fine-tuning a 3D UNETR and then retraining a final supervised UNETR with real CRLM masks and organ masks [2603.10216]. The common structure is a three-stage pipeline: prompt-based organ completion, few-shot organ model training, and final supervised multi-class segmentation.

The clinical framework operates on pre- and post-contrast T1-weighted MRI. For evaluation of pre-contrast organ segmentation, post-contrast manual labels were registered to pre-contrast using affine plus deformable registration [2509.08935]. Once organ masks are available, the segmentation pipeline applies anatomy-aware post-processing, notably extra-hepatic removal using the liver mask and small-object removal for predicted tumors with volume \(< 100\ \mathrm{mm}^3\) [2509.08935][2603.10216]. This anatomy-aware filtering is integral to the downstream radiomics stage because extra-hepatic false positives can corrupt per-tumor feature extraction.

The downstream survival model is SurvAMINN, an autoencoder-based multiple instance neural network for right-censored survival prediction. Tumor-level hazards \(\eta_i\) are pooled to a patient-level hazard by LogSumExp,
\[
\eta_p = \log\Big(\sum_{i=1}^n e^{\eta_i}\Big),
\]
and optimized with a Cox partial likelihood
\[
\mathcal{L}_{\text{CoxPH}} = -\sum_{i:\delta_i=1}\left(\eta_i - \log \sum_{j \in \mathcal{R}(T_i)} e^{\eta_j}\right),
\]
combined with an autoencoder reconstruction loss
\[
\mathcal{L}_{\text{MSE}} = \frac{1}{N}\sum_{i=1}^N \|x_i - \hat{x}_i\|^2,\qquad
\mathcal{L} = (1-\alpha)\,\mathcal{L}_{\text{MSE}} + \alpha\,\mathcal{L}_{\text{CoxPH}}.
\]
Within this framework, SAMONAI-generated organ masks are not an isolated endpoint; they are a bootstrap mechanism that enables anatomically plausible tumor segmentation and, subsequently, liver-specific radiomics and survival modeling [2509.08935].

## 4. Evaluation, reported results, and version-to-version changes

Across the two CRLM reports, SAMONAI is consistently presented as improving zero-shot organ segmentation over MedSAM and as enabling an automated segmentation-plus-radiomics pipeline on a cohort of 227 CRLM patients [2509.08935][2603.10216]. The reported numbers, however, are not identical across versions. This suggests iterative refinement of the segmentation pipeline rather than a single frozen benchmark.

Before the table, two result patterns are especially stable. First, SAMONAI is reported to outperform MedSAM in the missing-label organ setting. One report gives mean Dice improvements of more than \(7\%\) for liver and more than \(9\%\) for spleen in pre-contrast MRI, and \(9\%\) for liver and \(11\%\) for spleen in post-contrast MRI [2509.08935]. A later report gives corresponding median improvements of \(+7\%\) liver and \(+8\%\) spleen pre-contrast, and \(+8\%\) liver and \(+10\%\) spleen post-contrast [2603.10216]. Second, the final survival prediction performance is essentially unchanged between reports, at a C-index of \(0.691\) or \(0.69\) [2509.08935][2603.10216].

| Source | Organ segmentation results | Tumor / survival results |
|---|---|---|
| [2509.08935] | Pre-contrast liver \(0.94\), spleen \(0.92\); post-contrast liver \(0.96\), spleen \(0.93\) | Tumor Dice \(0.54\) pre, \(0.70\) post; F1 \(0.71\) pre, \(0.79\) post; C-index \(0.691\) |
| [2603.10216] | Pre-contrast liver \(0.95\), spleen \(0.92\); post-contrast liver \(0.96\), spleen \(0.93\) | Tumor Dice \(0.65\) pre, \(0.78\) post; F1 \(0.71\) pre, \(0.79\) post; C-index \(0.69\) |

The CRLM papers also report detection statistics using one-to-one matching with Dice \(\ge 0.1\). In the earlier account, pre-contrast performance is \(TP=31,\ FP=15,\ FN=10\), and post-contrast performance is \(TP=36,\ FP=14,\ FN=5\), corresponding to F1-scores of \(0.71\) and \(0.79\), respectively [2509.08935]. That report further notes that expert review indicated many false positives and false negatives were artifactual or benign, suggesting actual precision and recall around \(\sim 0.93/\sim 0.95\) after correction [2509.08935]. The later report retains the same F1 values while reporting a higher tumor Dice, again indicating that the segmentation stack evolved while the overall clinical operating point remained similar [2603.10216].

## 5. Broader SAM-centric usage in weak supervision and downstream segmentation

Outside medical MRI, “SAMONAI” is also used as a broader theme for exploiting SAM as an objectness prior. In weakly supervised semantic segmentation, the central idea is that CAM-derived pseudo-labels are class-aware but not object-aware: they highlight discriminative regions but often exhibit partial activation and false activation. The SEPL procedure addresses this by using CAM pseudo-labels as cues to select and combine SAM masks, thereby producing pseudo-labels that are both class-aware and object-aware [2305.05803]. The pipeline is explicit: train a classifier with image-level labels \(y \in \{0,1\}^K\), compute CAMs \(M_k\), produce pseudo-labels \(P_k \in \{0,k\}^{H\times W}\), run SAM with automatic mask proposal using \(\texttt{--pred-iou-thresh}=0.86\), \(\texttt{--stability-score-thresh}=0.92\), and ViT-H, assign each SAM mask \(S_l\) to the class with largest intersection, and retain a mask if
\[
o_s(S,k)=\frac{|S\cap P_k|}{|S|} > t_1
\quad\text{or}\quad
o_p(S,k)=\frac{|S\cap P_k|}{|P_k|} > t_2,
\]
with \(t_1=0.5\) and \(t_2=0.85\). Selected masks are merged by OR to form \(\widehat{P}_k\). Averaged over 11 WSSS methods, this yields pseudo-label mIoU gains of \(+5.33\%\) on VOC train and \(+3.12\%\) on COCO train, with downstream DeepLab V2 improvements across multiple baselines [2305.05803].

A related but distinct SAM-centric usage appears in SAM2-UNeXT, where “SAMONAI” denotes a downstream segmentation platform built around encoder strengthening rather than prompt propagation. The method combines a frozen SAM2 Hiera-L encoder with adapters, a frozen DINOv2-L auxiliary encoder, dual-resolution inputs of \(1024\times 1024\) for SAM2 and \(448\times 448\) for DINOv2, a dense glue layer that aligns and fuses features, and a simple U-Net-style decoder [2508.03566]. The reported tasks are binary segmentation benchmarks including dichotomous image segmentation, camouflaged object detection, marine animal segmentation, and remote sensing saliency detection. Representative results include MAS3K \( \mathrm{mIoU}=0.853 \), RMAS \( \mathrm{mIoU}=0.774 \), CHAMELEON \( S_\alpha=0.942 \), and EORSSD \( S_\alpha=0.948 \) [2508.03566]. In this usage, SAMONAI is not a named algorithm but a system-level recipe in which SAM-derived features, auxiliary semantics, and lightweight decoding jointly define the downstream segmenter.

These broader usages share a common structural motif: SAM supplies a class-agnostic structural prior, while the task-specific pipeline supplies semantics, supervision, or fusion logic. This motif is stated directly in the weak-supervision account as a broader “Segment Anything On AI” direction in which “SAM provides the objectness prior and task-specific models supply class semantics” [2305.05803].

## 6. Limitations, failure modes, and common misconceptions

In the medical formulation, SAMONAI is training-free and modality-agnostic, but it remains sensitive to the correctness of the initial point prompt and the quality of the seed segmentations. Misplacement of the user point, ambiguous object boundaries, post-hepatectomy margins, biliary dilation, and complex topology can misguide propagation [2509.08935]. The algorithm has no explicit uncertainty map or iterative refinement; confidence is implicit in conservative thresholding. It also inherits the limitations of using a 2D foundation model in a 3D setting: three-view fusion injects depth cues, but there is no full 3D reasoning, so complex motion, artifacts, or very small low-contrast structures remain challenging [2509.08935]. The pipeline therefore delegates tumors to a trained 3D model and applies downstream small-object removal.

In the weakly supervised formulation, failure modes arise from incorrect or missing CAM cues, SAM masks that miss parts or merge multiple objects, and hierarchical mask overlaps in which large masks engulf smaller ones [2305.05803]. Because SAM mask selection is anchored on CAM overlap, object-aware refinement can worsen labels if the class cues are already wrong. These are not merely implementation details; they define the regime in which SAM-derived structural priors can be trusted.

A common misconception is that SAMONAI denotes a single standardized architecture. The literature instead contains at least three distinct usages: a specific 3D prompt propagation algorithm for medical MRI [2509.08935], a broader SAM-centric pseudo-labeling perspective for weak supervision [2305.05803], and a downstream platform label for encoder-centric segmentation adaptation [2508.03566]. Other papers explicitly state that the queried term may instead be a misnaming of SAMO or SAMOSA rather than a separate method [2507.07883][2605.22538]. The most defensible encyclopedia definition is therefore narrow: SAMONAI is, first and foremost, the CRLM-oriented 3D prompt propagation algorithm; broader uses describe a family resemblance among SAM-based systems rather than a single canonical model.

Source: https://www.emergentmind.com/topics/samonai