1. Introduction
Quantitative analysis of full-spine radiographs remains central to diagnosis of spine disorders, treatment planning and longitudinal follow-up. Beyond visual assessment, routine workflows increasingly rely on reproducible measurements and structured anatomical cues, where vertebral delineation can support downstream tasks such as vertebra localization, indexing and geometry-based measurements. However, vertebral instance segmentation on radiographs is intrinsically challenging. Projection imaging compresses 3D anatomy into a 2D plane, leading to overlaps, foreshortening and weak or partially missing boundaries; radiographs may also exhibit noise, low contrast and acquisition-dependent artifacts. These factors, coupled with large inter-patient and inter-level anatomical variability, make reliable vertebral delineation difficult even for modern learning-based approaches [
1].
Most high-performing vertebra segmentation systems have been developed and validated primarily in CT and MRI, where volumetric context and clearer tissue interfaces facilitate delineation. Large curated datasets and benchmarks have enabled systematic progress, including multi-center evaluations and studies focusing on anatomical variations [
2,
3]. Methodologically, supervised pipelines often combine detection/localization with segmentation and labeling and can reach strong performance when trained on sufficiently large and representative cohorts [
4]. In contrast, radiographs—despite being widely available and clinically important—remain less covered by public instance-level annotations and are more prone to domain shift across devices, protocols and patient populations. While dedicated deep-learning approaches for spine X-ray segmentation and labeling have been proposed, they still largely depend on annotated training data and may require careful dataset curation to maintain robustness [
5].
The emergence of foundation models has introduced an alternative paradigm for medical image segmentation: promptable, general-purpose models that can be applied in a zero-shot manner. A prominent line of work evaluates the Segment Anything Model (SAM) family in medical imaging, showing that out-of-the-box promptable segmentation can be feasible for certain tasks, but that performance strongly depends on modality, anatomy and prompting strategy [
6,
7]. Beyond technical benchmarks, clinical-oriented studies indicate that SAM-style models can provide practically useful segmentations in specific scenarios (e.g., brain tumor delineation in MRI for radiotherapy planning), yet often require careful prompt design, quality control and occasionally domain-specific adaptation to achieve reliable boundary accuracy [
8]. To mitigate medical-domain appearance shifts, specialized variants and adaptations have been explored, including MedSAM-style models and SAM-compatible fine-tuning recipes, with evidence that medical adaptation can improve robustness in some spine-related settings while still exhibiting modality- and prompt-dependent behavior [
9].
Recently, the SAM ecosystem has expanded with newer backbones and interfaces, including SAM2-style models designed to improve efficiency and generalization across images (and originally videos), motivating early investigations of their applicability to 2D/3D medical segmentation. Initial medical studies report that SAM2 can be deployed for a range of anatomical structures, but limitations persist in low-contrast boundaries and dense-instance settings [
10]. Importantly for spine applications, analyses focusing on vertebral targets highlight that the success of learning-free segmentation depends not only on the backbone but also on how the target instance is specified, particularly when multiple vertebrae with highly repetitive appearance occupy the field of view [
11].
Prompt engineering therefore emerges as a key determinant of zero-shot performance. Across medical SAM studies, bounding-box prompts are frequently more reliable than single-point prompts because they provide explicit extent information and reduce ambiguity in crowded anatomical scenes [
12]. In parallel, automated or training-free prompt placement strategies aim to reduce manual effort and improve consistency, for example by propagating prompts in structured imaging scenarios [
13]. Other lines of work incorporate stronger priors through pseudo-mask prompts or external guidance; for spine imaging, multi-atlas or pseudo-label guidance has been used to steer SAM-like models toward anatomically plausible solutions without manual mask annotation [
14]. Finally, when strict zero-shot performance is insufficient, parameter-efficient fine-tuning (PEFT) approaches have been proposed to adapt SAM-like models with limited labeled data, providing a practical compromise between out-of-the-box generalization and fully supervised retraining [
15]. Complementary to prompting and adaptation, integrating anatomical priors (e.g., statistical or implicit shape models, deformable templates) remains a well-established direction for improving robustness under weak boundaries and high variability and can be viewed as synergistic with promptable segmentation in challenging spine imaging settings [
16,
17].
1.1. Related Work and Technical Context
1.1.1. Supervised Vertebral Segmentation and Benchmarks
Most vertebral segmentation literature has been developed for CT and MRI, where volumetric context and clearer tissue interfaces simplify delineation compared to projection radiography. Early and representative MRI pipelines include vertebral body segmentation in wide-range routine spine MRI [
18] and hybrid methods that combine CNNs with geometric optimization for whole-spine MRI [
19]. In CT, strong supervised baselines have been reported using iterative fully convolutional networks for joint segmentation and identification [
4], cascaded CNN pipelines for segmentation/localization/identification [
20] and hybrid learning–clustering schemes [
21]. Large public datasets and benchmarks (e.g., multi-detector CT labeling/segmentation challenges and multi-vendor datasets with anatomical variations) have enabled systematic evaluation and generalization studies [
2,
3]. Recent workflows continue to improve robustness and automation, for example through two-phase multi-class semantic and instance segmentation on T2-weighted MR images [
22], multi-stage networks for vertebra identification driven by mask prompts [
23], semantics–instance interactive learning in CT [
24] and fully automated segmentation/labeling pipelines targeting clinical deployment [
25]. Related spine-region segmentation work also covers intervertebral disc analysis and joint vertebra–disc segmentation designs [
26,
27], as well as broader biomedical segmentation architectures such as multi-scale attention-based networks [
28].
Despite this progress, radiographs remain comparatively under-served by large instance-level annotations and reproducible benchmarks, even though they are central for spinal parameters assessment. Dedicated X-ray approaches exist, including CNN-based lumbar spine X-ray segmentation and labeling [
5] and hybrid U-Net/FPN variants for spine segmentation [
29]. A comprehensive radiography-focused review highlights that projection artifacts, weak boundaries and acquisition variability complicate vertebral localization and measurement [
1]. Additional sources of variability include demographic and anatomical differences (e.g., reported differences in lumbar pedicle angles across ethnic groups), which motivate robust modeling across populations [
30]. Overall methodological context is provided by broader surveys of deep learning in medical image analysis, including trends and open challenges relevant to segmentation and generalization [
31].
1.1.2. Anatomical Priors, Shape Models and Synthetic Data
Because radiographs often exhibit missing/ambiguous boundaries, multiple lines of work incorporate stronger geometric or anatomical priors. Classical statistical shape modeling and correspondence estimation provide one avenue to encode plausible variability, including robust kernel PCA shape modeling under erroneous annotations [
32] and inter-subject correspondence computation without explicit organ segmentation [
33]. More recent learning-based priors include deep implicit statistical shape models for lumbar vertebrae delineation [
16] and structural descriptors that enforce low-rank shape consistency across vertebrae [
34]. Decomposition and template-based formulations provide complementary options, such as skeletonization-driven decomposition into anatomical regions [
35] and differentiable appearance modeling of a deformable spine template to achieve training-free vertebral segmentation [
17]. Parallel efforts explore modern sequence/state-space backbones and explicit shape priors in spinal segmentation, including residual visual Mamba layers [
36] and hierarchical Mamba-based spinal segmentation frameworks [
37]. Finally, synthetic or virtual case generation (e.g., creating virtual spine cases) has been investigated as a way to expand variability and stress-test segmentation and measurement pipelines [
38]. These developments connect to broader frameworks that emphasize geometric scene understanding for surgical data science and digital twins, where accurate anatomical segmentation is a core enabling capability [
39].
1.1.3. Promptable Foundation Models and Zero-Shot Medical Segmentation
The emergence of promptable foundation models has shifted attention toward training-free or minimally supervised segmentation. SAM-style models have been systematically evaluated in medical imaging, demonstrating both opportunities and limitations that depend on modality and prompting strategy [
6,
7]. Empirical assessments on specific modalities (e.g., brain tumor MRI and digital pathology) further highlight that zero-shot performance can be useful but requires careful interaction design and quality control [
40,
41], with clinical studies reporting favorable but imperfect accuracy in radiotherapy-relevant settings [
8]. Several works propose general improvements or practical guidelines for enhancing SAM behavior in medical images [
42,
43]. For spine imaging, comparisons between SAM and medically adapted variants such as MedSAM indicate modality-dependent trade-offs on lumbar spine MRI [
9].
The SAM ecosystem has expanded with SAM2, motivating early comparisons between SAM and SAM2 in medical segmentation [
44] and studies applying SAM2 to 2D/3D medical data [
10]. Clinical/clinical-adjacent investigations also analyze learning-free vertebral segmentation with metastatic lesions and characterize factors affecting SAM2 performance [
11], while other studies adapt SAM2’s tracking capabilities for zero-shot 3D segmentation in CT [
45]. For radiography specifically, recent work leverages foundation-model concepts to target automatic spine X-ray segmentation [
46], aligning with the broader question of how well promptable backbones transfer to projection imaging.
1.1.4. Prompt Engineering and Automated Prompting
A consistent conclusion across promptable segmentation literature is that prompt design strongly shapes outcomes. Systematic studies quantify how different prompts affect SAM performance in challenging medical settings, often finding that box- or region-constraining prompts outperform sparse points [
12,
47]. Overviews of prompt engineering in medical segmentation synthesize these observations and outline interaction paradigms and failure modes [
48]. Beyond manual prompting, multiple approaches pursue automated prompt generation and placement, including training-free prompt propagation in 3D bone CT [
13] and fully automated prompting pipelines for 3D multi-organ segmentation [
49]. Other work introduces stronger priors into the prompt itself, for instance by using registration-enabled prompt engineering with reference images [
50] or one-shot, reference-guided, training-free point prompting for segmenting arbitrary tissues [
51]. Prompt robustness has also been studied beyond standard imaging, such as variational prompting in non-visible spectrum imagery [
52], providing transferable insights into prompt uncertainty and ambiguity.
Prompting can be further enriched via multi-modal guidance and pseudo-mask cues. Text–image integration has been explored through CLIP-augmented promptable models, e.g., MedCLIP-SAM [
53] and SAM+CLIP cascades for test-time adaptation [
54]. Similarly, atlas- or pseudo-mask-guided prompting has been proposed for spine segmentation without manual mask prompts [
14]. At the other end of the interaction spectrum, “one-prompt” formulations aim to generalize segmentation from a single user signal across tasks and modalities [
55] and semantic-integration variants adapt SAM toward zero-shot medical semantic segmentation [
56]. In addition, methods that explicitly target improved dichotomous (binary) segmentation quality under the SAM interface continue to appear [
57].
1.1.5. Adaptation, 3D Extensions and Parameter-Efficient Fine-Tuning
When strict zero-shot performance is insufficient, a large body of work explores how to adapt SAM-like models efficiently. 3D extensions and adaptation recipes include volumetric SAM formulations [
58], modality-agnostic adaptation for 3D medical segmentation [
59] and Mamba-based efficient adaptations such as tri-plane designs for 3D data [
60]. Training-time or inference-time strategies that add minimal parameters have been proposed for 2.5D/3D adaptation [
61]. More broadly, parameter-efficient fine-tuning (PEFT) has been emphasized as a practical compromise for medical image analysis under limited labels, with analyses of missed opportunities [
62], orchestration strategies for SAM adaptation [
63] and SAM-to-medical transfer via PEFT [
15]. Related PEFT work on transformer backbones is also being explored in neuroimaging analysis [
64] and in no-reference image quality assessment, which is relevant for quality-aware deployment on heterogeneous radiographs [
65]. Finally, boundary-aware supervision strategies in other segmentation domains (e.g., cardiac structures) provide transferable ideas for reducing contour errors in weak-boundary settings [
66].
Despite this rapid progress, evidence on raw DICOM spine radiographs characterized by large field-of-view, multiple adjacent vertebral instances and substantial projection artifacts—remains limited compared to CT/MRI studies. This work addresses the gap via a pilot benchmark of zero-shot vertebral instance segmentation on full-spine DICOM radiographs using promptable segmentation foundation models. We evaluate three representative backbones (sam-vit-huge, sam2-hiera-large and medsam-vit-base) under a fully standardized pipeline for DICOM decoding and intensity normalization, automatic prompt generation (single centroid point vs. tight bounding box) and instance-level metric computation (overlap and boundary metrics). By isolating the effect of prompt type and model choice in a parameter-free setting, the study aims to clarify (i) how far current promptable models generalize to spine radiographs out-of-the-box and (ii) which prompting strategy yields reliable instance-level vertebral masks without interactive refinement.
The remainder of the paper is organized as follows.
Section 2.1 describes the evaluation dataset and annotation protocol.
Section 3.1 details the compared foundation models and the standardized inference pipeline, including prompt generation and mask selection. Section Results reports quantitative and qualitative outcomes across prompting strategies and backbones, followed by a discussion of failure modes, practical implications and limitations in Section Discussion.
2. Materials and Methods
2.1. Dataset Description
The experimental dataset consists of spine radiographs acquired for spinal parameters assessment and stored in the DICOM standard [
67].
Each radiograph is paired with a JSON annotation file that encodes instance-level vertebral delineations. For the purpose of quantitative evaluation, the annotations were rasterized into binary masks at the native image resolution, yielding one ground-truth mask per vertebra. Because this study focuses on zero-shot segmentation, the dataset was used exclusively for evaluation and no images were used for model fine-tuning.
Table 1 summarizes the dataset size and annotation density. On average, each radiograph contains multiple annotated vertebrae (median 10, range 2–16), enabling instance-level evaluation across a broad spectrum of anatomical coverage.
Table 2 reports the distribution of native image resolutions and annotation sizes.
Table 1 provides an overview of the dataset size and annotation density used in this study. The dataset consists of 144 unique spine radiographs acquired in the DICOM format and annotated with a total of 1309 instance-level vertebral masks. Each radiograph contains multiple annotated vertebrae, with an average of 9.09 vertebral instances per image and a standard deviation of 4.26. The number of annotated vertebrae per radiograph ranges from 2 to 16, indicating substantial variability in anatomical coverage. This variability reflects differences in image framing, spinal region visibility and spine disorders severity and enables a robust instance-level evaluation of vertebral segmentation performance across heterogeneous clinical cases.
Table 2 summarizes the spatial characteristics of the radiographs and the corresponding vertebral annotations. The images exhibit heterogeneous native resolutions, with a mean height of 3404 pixels and a mean width of 2575 pixels, highlighting differences in acquisition protocols and imaging equipment. The reported median values and interquartile ranges further confirm the broad distribution of image dimensions across the dataset.
Vertebral annotation sizes, expressed as mask areas in squared pixels (px2), show considerable variability. The mean vertebral mask area equals 38,837 px2, with a large standard deviation of 28,449 px2, indicating the presence of both small and large anatomical structures. This variability arises from differences in vertebral level, projection geometry and spinal curvature and poses a non-trivial challenge for segmentation methods. The reported statistics emphasize the need for segmentation models that are robust to scale variation and resolution heterogeneity.
2.2. Qualitative Examples
To complement the quantitative results in
Table 3,
Figure 1 presents representative qualitative examples of zero-shot vertebral segmentation for all six evaluated configurations (three backbones × two prompt types). Each panel shows a difference overlay between the predicted mask and the ground-truth mask: true positive overlap is shown in green, false positives in red and false negatives in blue. The examples are shown for illustration of typical boundary deviations observed under each configuration.
3. Methods
This study was designed as a pilot feasibility assessment of promptable foundation models for vertebral segmentation on spine radiographs in a strictly zero-shot setting. The primary aim was to quantify how far such models can generalize to DICOM spine radiographs without any task-specific training, rather than to develop an optimized, clinically validated segmentation system.
In the context of this work, zero-shot segmentation refers to applying pre-trained segmentation models directly to a new target domain and task without updating model parameters. Accordingly, no images from the evaluated dataset were used for fine-tuning, calibration, or any form of supervised adaptation and the publicly available model checkpoints were used as-is. The segmentation output is controlled exclusively through a prompt, i.e., a sparse spatial cue that specifies the target structure and initiates mask generation.
The zero-shot approach used here is characterized by the following properties: (i) parameter-free inference on the target dataset (no gradient-based optimization on study images); (ii) reliance on general visual representations learned during large-scale pre-training, which must transfer to radiographic appearance despite domain shift; (iii) prompt-conditioned instance segmentation, where the user (or an automated procedure) provides minimal information to indicate which structure should be segmented; (iv) sensitivity to prompt informativeness and ambiguity, which is particularly relevant in radiographs containing multiple anatomically similar structures in close proximity.
Because this is a pilot evaluation, we emphasize that the reported results primarily reflect the feasibility and limitations of out-of-the-box generalization under controlled prompting. The experimental protocol was therefore intentionally standardized: prompts were generated automatically from the reference annotations (point at centroid or tight bounding box) to eliminate inter-operator variability and to isolate the effect of prompt type and model choice. This design enables reproducible, model-to-model comparisons, while still reflecting the core constraint of the zero-shot paradigm, namely the absence of any training on the target cohort.
3.1. Segmentation Foundation Models
In this study we evaluated three promptable segmentation foundation models that can generate binary object masks conditioned on user prompts such as points and bounding boxes. All models were used in a zero-shot setting, without any fine-tuning on the target radiographs. To ensure a fair comparison, the same image pre-processing, prompt generation procedure, multi-mask handling and metric computation were applied across all evaluated backbones.
3.1.1. SAM-ViT-Huge
The Segment Anything Model (SAM) is a general-purpose foundation model for promptable segmentation designed to generalize across diverse visual domains and object categories [
68]. It formulates segmentation as a prompt-conditioned prediction problem: given an image and a prompt that specifies the target (e.g., a foreground point or a bounding box), the model outputs one or more candidate masks corresponding to the prompted object. The SAM architecture is composed of three key components: (i) an image encoder that maps the input image into a latent embedding space, (ii) a prompt encoder that converts user prompts (points, boxes and optional mask inputs) into prompt embeddings and (iii) a mask decoder that fuses image and prompt embeddings to produce segmentation masks and mask-quality estimates.
In our benchmark we used the facebook/sam-vit-huge checkpoint, which corresponds to the largest SAM image-encoder variant based on a Vision Transformer backbone (ViT-H). This model variant represents the highest-capacity SAM configuration commonly used for zero-shot segmentation and interactive annotation workflows. In the standard SAM inference mode, the model may return multiple candidate masks for a single prompt together with a predicted mask-quality score (often interpreted as an estimated IoU), which can be used to select the most plausible output when ground truth is not available [
68].
Within our pipeline, SAM inference was performed via the Hugging Face implementation (SamModel and SamProcessor). For computational efficiency, image embeddings were computed once per radiograph and reused for all vertebral instances from that image, ensuring identical encoder outputs regardless of the number of vertebrae annotated in the same radiograph.
3.1.2. MedSAM-ViT-Base
MedSAM is a medical imaging foundation model derived from the SAM paradigm, designed to improve segmentation robustness under medical-domain appearance shifts (e.g., modality differences, weak boundaries, low contrast and domain-specific textures) [
69]. Unlike the original SAM, which is primarily trained on natural images, MedSAM is obtained by fine-tuning the SAM-style promptable segmentation architecture on a large-scale curated medical segmentation corpus. According to the MedSAM publication, the model is developed using a dataset containing 1,570,263 image–mask pairs spanning 10 imaging modalities and more than 30 cancer types, with extensive internal and external validation across many segmentation tasks [
69]. This training strategy aims to provide a universal promptable model that can be applied across heterogeneous medical imaging scenarios.
From an architectural perspective, MedSAM follows the same modular design as SAM, relying on an image encoder, a prompt encoder and a mask decoder. The model is explicitly designed for promptable segmentation, where user inputs (commonly bounding boxes and/or points) define the target region of interest. MedSAM emphasizes the practical use of bounding-box prompts as an efficient and unambiguous way to specify targets, while still supporting point prompts. The MedSAM framework is also compatible with applying 2D promptable segmentation slice-wise to 3D acquisitions, enabling broad applicability across modalities.
In our evaluation we used the wanglab/medsam-vit-base checkpoint (ViT-Base backbone). Inference was performed using the same Hugging Face SAM-compatible API (SamModel/SamProcessor), which allowed us to keep the pre-processing and prompting interface consistent with the sam-vit-huge configuration. This made it possible to isolate the effect of medical-domain adaptation (MedSAM) from prompt type and evaluation protocol.
3.1.3. SAM2-Hiera-Large
SAM2 extends the Segment Anything concept from static images to both images and videos, aiming to provide a unified foundation model for promptable visual segmentation with improved efficiency and robustness [
70]. A key design element of SAM2 is the use of a transformer architecture equipped with streaming memory, which enables real-time processing and propagation of segmentation information across video frames. Although our dataset consists of single-frame radiographs (i.e., the image setting), the same promptable interface is retained: point and bounding-box prompts can be used to generate object masks and the model can output multiple candidate masks per prompt.
In this benchmark we used the facebook/sam2-hiera-large checkpoint, which corresponds to the Hiera-Large backbone variant. The official SAM2 release provides several checkpoint sizes; the Hiera-Large configuration represents a high-capacity option within the SAM2 family and is substantially smaller than the ViT-H SAM model, reflecting architectural and efficiency differences between the SAM and SAM2 design choices. For SAM2 inference we used the official SAM2ImagePredictor interface. As in the other models, segmentation was performed under both point and rectangle prompting and the multi-mask output mode was enabled to obtain a set of candidate masks per prompt for subsequent selection under our evaluation protocol.
Overall, the three evaluated backbones represent complementary design points: sam-vit-huge provides a high-capacity generalist SAM baseline; medsam-vit-base tests the impact of medical-domain adaptation within a SAM-compatible architecture; and sam2-hiera-large evaluates a newer promptable segmentation foundation model designed to generalize across images and videos with an updated backbone and memory-based architecture.
3.2. Benchmarking Pipeline and Metric Computation
All experiments were conducted using an automated benchmarking pipeline implemented in Python 3.11.14.
The pipeline evaluates zero-shot vertebral segmentation in a fully standardized manner, ensuring identical pre-processing, prompting strategy and metric computation across all models and cases. For each DICOM radiograph, every annotated vertebra (instance mask) is treated as an independent evaluation sample and all metrics are computed at the native image resolution.
3.2.1. Image Loading and Pre-Processing
Radiographs were loaded directly from the DICOM standard [
67]. A robust loading procedure was used: the pipeline first attempted to decode images using an internal DICOM utility function; if this failed, it fell back to header-driven decoding with pydicom [
71]. Pixel intensities were converted to floating point, optionally rescaled using the DICOM tags RescaleSlope and RescaleIntercept and corrected for MONOCHROME1 photometric interpretation by intensity inversion [
67]. We considered intensity windowing based on DICOM display parameters (WindowCenter/WindowWidth) or a VOI LUT to enhance bone contrast; however, because radiographic pixel values are not calibrated to a universal physical scale and windowing metadata can be vendor- and preset-dependent, we did not apply a fixed “bone window” in this benchmark. Instead, we used per-image min–max normalization to preserve the full available dynamic range in a reproducible, model-agnostic manner. Min–max normalization was applied per radiograph (not across the dataset), mapping the decoded pixel range to the unit interval [0, 1] prior to conversion to 8-bit. This provides a simple invariance to global brightness/contrast scaling differences caused by acquisition settings and vendor-specific processing. We note that min–max scaling can be influenced by extreme values (e.g., metallic implants, burned-in annotations, or collimation borders); therefore, we retained this transparent baseline and treat more robust alternatives (e.g., percentile-based scaling or histogram standardization) as future work. No additional spatial pre-processing (cropping to the spine, denoising, deblurring, or geometric resampling) was applied before the model-specific processors; resizing and padding were handled by the respective SAM/SAM2 preprocessors to match their expected input resolution.
After per-image min–max normalization, each image was converted to 8-bit grayscale and replicated to a three-channel RGB representation to comply with the input requirements of Segment Anything models. All ground-truth masks were rasterized from the JSON annotations at the native image resolution to prevent artifacts introduced by re-sampling.
3.2.2. Prompt Generation
Two prompting strategies were evaluated: (i) rectangle prompt and (ii) point prompt. For each vertebral instance mask, the rectangle prompt was defined as the tight axis-aligned bounding box enclosing the ground-truth mask. For point prompting, a single positive point was placed at the centroid of the ground-truth mask (in image coordinates). This automatic prompt generation eliminates inter-operator variability and provides a standardized comparison of model behavior under the two prompting modes.
Prompting Strategies: Rectangle vs. Point
The Segment Anything Model (SAM) framework supports multiple interaction modalities, referred to as prompts [
68], which guide the segmentation process by providing sparse spatial cues. In this study, two fundamentally different prompt types were systematically evaluated: rectangle (bounding-box) prompts and point prompts. Both prompting strategies were generated automatically from the ground-truth annotations to ensure full reproducibility and to eliminate inter-operator variability.
Rectangle (Bounding-Box) Prompting
In rectangle prompting, the model is provided with an axis-aligned bounding box that tightly encloses the target object. For each vertebral instance, the rectangle prompt was constructed as the minimal bounding box covering all foreground pixels of the corresponding ground-truth mask. Formally, let
denote the set of pixels belonging to a vertebra. The bounding box
B is defined as [
68]:
where
This rectangle prompt provides the model with explicit information about the spatial extent of the vertebra, constraining the segmentation to a well-defined region of interest. As a result, rectangle prompting strongly restricts the search space and reduces ambiguity caused by surrounding anatomical structures. Within the SAM architecture, the bounding box is encoded as a pair of corner coordinates and injected into the prompt encoder, where it conditions the mask decoder via cross-attention with image embeddings.
Point Prompting
In point prompting, the model is guided using one or more sparse point annotations indicating object presence or absence. In this benchmark, a single positive point prompt was used for each vertebral instance. The point was placed at the centroid of the ground-truth mask, computed as [
72]:
This centroid-based point represents a minimal localization cue, indicating only that the target object is present at a specific location, without conveying any information about its spatial extent or shape. The point prompt is encoded as a positive point (label ) in the SAM prompt encoder and influences the segmentation primarily through local attention around the indicated location.
Conceptual Differences Between Prompt Types
Rectangle and point prompting differ fundamentally in the amount of spatial information they provide. Rectangle prompts explicitly define both object location and approximate size, thereby enabling the model to focus on a constrained region and suppress irrelevant structures. In contrast, point prompts provide only a weak localization signal, leaving the model responsible for inferring the object’s full extent from global image context and learned priors.
These differences are particularly relevant in medical radiographs, where multiple anatomically similar structures coexist in close proximity. In such settings, point prompting may lead to over-segmentation or leakage into neighboring vertebrae, while rectangle prompting offers stronger spatial disambiguation. By evaluating both prompting strategies under identical experimental conditions, this study isolates the impact of prompt informativeness on zero-shot vertebral segmentation performance.
Prompt Consistency Across Models
Importantly, the same rectangle and point prompts were used across all evaluated models—SAM-ViT-Huge, MedSAM-ViT-Base and SAM2-Hiera-Large. This ensured that any observed performance differences arise from model architecture or training rather than from prompt design. Furthermore, prompt generation relied exclusively on geometric properties of the ground-truth masks and did not involve any manual interaction, making the evaluation fully automated and reproducible.
3.2.3. Model Inference and Multi-Mask Output
Three segmentation backbones were evaluated: SAM-ViT-Huge, MedSAM-ViT-Base and SAM2-Hiera-Large. For transformer-based SAM models (SAM-ViT-Huge and MedSAM-ViT-Base), inference was performed using Hugging Face SamModel and SamProcessor. Image embeddings were computed once per radiograph and reused across all vertebral instances in that image, reducing redundant computation. For SAM2, inference was performed using the official SAM2ImagePredictor API, with the image set once per radiograph. In all configurations, the models produced a multi-mask output consisting of three candidate segmentation masks per prompt.
3.2.4. Mask Selection and Post-Processing
To obtain a single prediction for evaluation, the multi-mask output was reduced to one mask per vertebra. SAM-like models output multiple candidate masks for a single prompt to represent alternative plausible segmentations (e.g., under prompt ambiguity) and to support interactive user choice among candidates. The primary evaluation used an oracle selection protocol, in which the candidate mask that maximized IoU with the ground-truth mask was selected. Oracle selection should therefore be interpreted as an optimistic upper bound (a hypothetical “perfect user” always choosing the best candidate), whereas a non-oracle real-world application must select a mask without access to ground truth. This protocol quantifies the best achievable performance given the prompt and the model’s candidate set and is particularly useful when comparing prompt types under a consistent selection rule.
In addition, the pipeline computed model-selected metrics, in which the candidate mask was selected using the model-provided confidence or predicted IoU score (when available). This second selection mode better reflects realistic deployment, where ground truth is not available at inference time. Both oracle-selected and model-selected results were exported to the output spreadsheets to enable transparent reporting and sensitivity analysis.
As a classical (non-learned) reference, we also evaluated a prompt-only baseline for rectangle prompts, where the bounding box prompt itself is used as a filled mask (all pixels inside the box are labeled as foreground). This provides context for interpreting zero-shot segmentation performance relative to coarse localization alone.
After selection, predicted masks were optionally cleaned using a lightweight morphological post-processing routine (noise removal and mask regularization) to reduce isolated artifacts.
3.2.5. Pixel-Wise Segmentation Metrics
All segmentation metrics were computed at the pixel level by comparing the predicted binary mask with the ground-truth binary mask. For each vertebral instance, the following confusion counts were computed: true positives (TP), false positives (FP), false negatives (FN) and true negatives (TN).
Overlap metrics were computed as [
73,
74]:
Classification-style metrics were computed as [
73]:
Agreement measures were also computed. Matthews correlation coefficient (MCC) was calculated as [
75]:
where
is a small constant used for numerical stability. Cohen’s kappa was computed from the observed agreement and expected agreement under independence [
76]:
with
and
derived from marginal probabilities of positive/negative predictions and labels.
To characterize scale-related behavior, mask areas were recorded as pixel counts (interpretable as squared pixels, px2), including ground-truth area, predicted area, absolute and relative area error and the area ratio between prediction and ground truth.
3.2.6. Surface Distance Metrics
To complement region-based overlap measures, boundary-based surface distance metrics were computed when the necessary numerical routines were available. Binary mask surfaces were extracted using one-step morphological erosion and symmetric surface distances were computed using a Euclidean distance transform [
77]. The following metrics were reported: average symmetric surface distance (ASSD), 95th percentile Hausdorff distance (HD95) and maximum Hausdorff distance (HD100) [
73,
78].
When DICOM pixel spacing metadata (PixelSpacing or ImagerPixelSpacing) was available, distances were expressed in millimeters. Otherwise, distances were reported in pixels.
3.2.7. Aggregation, Uncertainty Estimation and Statistical Comparisons
Metrics were computed for each vertebral instance and then aggregated across the dataset. The main results were reported as mean values across all vertebral instances for each model and prompt type, consistent with the case-level evaluation shown in
Table 3.
To quantify uncertainty while accounting for multiple vertebrae per radiograph, we computed 95% confidence intervals for mean metrics using a clustered (radiograph-level) bootstrap [
79]. Specifically, we resampled radiographs (image_id) with replacement (
resamples; fixed random seed) and recomputed instance-weighted means, reporting the 2.5th and 97.5th percentiles.
To assess statistical significance between prompting strategies and between models, we performed two-sided paired Wilcoxon signed-rank tests on per-radiograph mean metrics [
80].
p-values were adjusted for multiple comparisons using the Holm–Bonferroni procedure across all metrics and pairwise comparisons, with
.
4. Results
Table 3 presents a comprehensive quantitative comparison of zero-shot vertebral segmentation performance across three foundation-model variants—SAM-ViT-Huge, SAM2-Hiera-Large and MedSAM-ViT-Base—evaluated using two prompting strategies: point-based and rectangle-based prompts. All metrics are reported as mean values computed over individual vertebral instances, with 95% bootstrap confidence intervals, enabling a fine-grained assessment of segmentation accuracy and agreement at the instance level.
Because oracle selection is not available in real-world zero-shot deployment, we additionally report a non-oracle (deployable) evaluation using model-score-based mask selection in
Table 4;
Table 3 should be interpreted as an optimistic upper bound on attainable performance given the candidate set.
Across all evaluated models, rectangle-based prompting consistently yields substantially higher performance than point-based prompting in overlap-based metrics, including Intersection over Union (IoU) and Dice coefficient, as well as in agreement measures such as Matthews correlation coefficient (MCC) and Cohen’s kappa. This finding indicates that providing explicit spatial extent information via bounding boxes is critical for effective zero-shot vertebral segmentation on radiographic images. In contrast, point prompts alone appear insufficient to constrain the segmentation process, resulting in reduced spatial precision.
For the SAM-ViT-Huge model, rectangle prompting achieves the strongest overall performance among all tested configurations. The model attains a mean IoU of 0.782 and a Dice coefficient of 0.870, accompanied by high precision (0.850) and recall (0.906). The high values of MCC (0.874) and Cohen’s kappa (0.870) further indicate a strong agreement between predicted masks and ground-truth annotations. When compared to point prompting, rectangle prompting improves IoU and Dice by 0.517 and 0.559, respectively, representing a substantial relative gain in segmentation quality. Point-based prompting for SAM-ViT-Huge, despite achieving very high recall (0.911), yields markedly lower precision (0.293) and overlap scores, suggesting extensive over-segmentation with large false-positive regions.
A similar trend is observed for the SAM2-Hiera-Large model. Rectangle prompting results in strong segmentation performance, with IoU and Dice values of 0.744 and 0.848, respectively. Notably, this configuration achieves the highest recall across all evaluated methods (0.918), indicating a high sensitivity to vertebral structures. However, the corresponding precision (0.803) is slightly lower than that observed for SAM-ViT-Huge under rectangle prompting, which suggests a more permissive segmentation behavior and a higher propensity for false-positive predictions. Under point prompting, SAM2-Hiera-Large exhibits the same characteristic pattern as SAM-ViT-Huge, with low IoU (0.224) and Dice (0.276) values combined with high recall (0.907), again indicating over-segmentation in the absence of sufficient spatial guidance.
MedSAM-ViT-Base demonstrates overall lower segmentation performance compared with the two general-purpose SAM variants, particularly under rectangle prompting. The model achieves a mean IoU of 0.599 and a Dice coefficient of 0.737, with corresponding MCC and kappa values of 0.745 and 0.736, respectively. While rectangle prompting significantly improves performance relative to point prompting (ΔIoU = 0.280, ΔDice = 0.323), the absolute performance remains lower than that of SAM-ViT-Huge and SAM2-Hiera-Large. Under point prompting, MedSAM-ViT-Base exhibits reduced recall (0.762) compared with the other models, indicating a higher rate of missed vertebral regions. This suggests that, in the studied radiographic domain, medical-domain adaptation alone does not compensate for the reduced capacity of the base model architecture in a zero-shot setting.
Across all evaluated models, point-based prompting consistently results in very high recall values (ranging from 0.762 to 0.911) combined with low precision (ranging from 0.249 to 0.425) and poor overlap-based metrics. This pattern indicates a systematic tendency toward over-segmentation, where large image regions are incorrectly classified as vertebral structures. In contrast, rectangle-based prompting substantially improves spatial specificity, leading to balanced precision–recall trade-offs and markedly higher agreement with ground truth. These results demonstrate that prompt design is a dominant factor influencing zero-shot segmentation performance.
Overall, the findings reported in
Table 3 indicate that large, general-purpose foundation models can achieve clinically meaningful vertebral segmentation performance in a zero-shot setting when provided with appropriate spatial prompts. Among the evaluated approaches, SAM-ViT-Huge combined with rectangle prompting provides the most favorable balance between accuracy, agreement and sensitivity, making it the most robust configuration for zero-shot vertebral segmentation on DICOM radiographs in this study.
4.1. Oracle vs. Model-Score Mask Selection
To provide a realistic assessment without access to ground truth at inference time,
Table 4 reports performance when the candidate mask is selected using the model-provided confidence (predicted IoU). As expected, model-score-based selection reduces performance relative to the oracle upper bound in
Table 3. The gap is modest for rectangle prompting in SAM-ViT-Huge and SAM2-Hiera-Large (ΔIoU ≈ 0.045 in both cases), but substantially larger for MedSAM-ViT-Base under rectangle prompting (ΔIoU = 0.211). For point prompting, model-score selection yields low overlap across all models (mean IoU 0.131–0.222) despite very high recall (0.724–0.955), consistent with systematic over-segmentation under underconstrained prompts.
Paired statistical testing (
Section 3.2.7) confirmed that rectangle prompting significantly outperforms point prompting for all models across all reported metrics, and that pairwise differences between models under rectangle prompting are statistically significant across all metrics. Detailed Holm–Bonferroni-adjusted
p-values are reported in
Table 5.
4.2. Comparison to a Classical Prompt-Only Baseline
To contextualize the zero-shot results, we evaluated a simple classical baseline that requires no learning: for rectangle prompts, the prompt bounding box itself was treated as a filled segmentation mask (all pixels inside the box were labeled as vertebra), without using any image content. Baseline results are reported in
Table 4 for a direct comparison with model-based zero-shot segmentation. Because our rectangle prompts are generated as tight boxes around the reference masks, this baseline is optimistic; however, it provides a transparent reference for what can be achieved using coarse localization alone. Notably, the baseline performs well for very tight boxes, but degrades for looser prompts; in the loosest box quartile, SAM-ViT-Huge improves IoU from 0.590 (box baseline) to 0.661 (model-score selection), indicating added value when prompt localization is imperfect.
4.3. Sensitivity to Bounding-Box Tightness
Rectangle prompts were generated as tight bounding boxes around the reference masks. To probe robustness to imperfect box prompts without requiring additional manual annotations, we quantified an effective box tightness as the fill ratio
, where
is the ground-truth mask area and
is the prompt box area. Lower
r implies that the box contains proportionally more background and adjacent anatomy, which mimics a common clinical deviation where a user draws a looser box around the target. We stratified all vertebral instances into quartiles of
r and evaluated performance using model-score-based mask selection (
Table 4). As shown in
Table 6 and
Figure 2, SAM-ViT-Huge and SAM2-Hiera-Large exhibit a monotonic performance drop for looser boxes: mean IoU decreases from 0.802 to 0.661 (SAM-ViT-Huge) and from 0.751 to 0.634 (SAM2) between the tightest and loosest quartiles. This trend suggests that the amount of irrelevant context enclosed by a box prompt can materially affect segmentation quality, consistent with prior reports of prompt sensitivity in SAM-like models [
81,
82].
4.4. Image-Level Distributions, Uncertainty and Metric Relationships
While
Table 3 reports instance-level mean performance aggregated over vertebral masks, an image-level analysis provides an additional view on robustness across radiographs. Specifically, each radiograph yields multiple vertebral instances (median 10) and failure cases may be concentrated in a subset of radiographs (e.g., severe curvature, low contrast, or partial field-of-view). Therefore, we aggregated vertebra-level metrics within each radiograph to obtain one score per image and visualized the resulting distributions.
4.4.1. Overlap Metrics (Dice and IoU) Across Radiographs
Figure 3 summarizes the image-level distributions of Dice and IoU for all model–prompt combinations. A consistent pattern emerges: rectangle prompting produces both higher overlap and tighter distributions than point prompting. For sam-vit-huge and sam2-hiera-large, rectangle prompts yield high medians (Dice∼
–
, IoU∼
–
) with relatively narrow interquartile ranges (IQRs), indicating stable behavior across radiographs. In contrast, point prompting results in substantially lower medians (Dice∼
–
, IoU∼
–
) and markedly broader IQRs, with whiskers extending toward both near-zero overlap (complete failures) and near-perfect overlap (isolated successes). This wide dispersion suggests that a single centroid point is frequently underconstraining in spine radiographs, where multiple anatomically similar vertebrae coexist in close proximity.
MedSAM exhibits a qualitatively similar dependence on prompt type but with a different operating point. Under point prompting, medsam-vit-base shows a higher central tendency than the two SAM variants (median Dice∼, median IoU∼), indicating improved localization from a single point in a subset of cases. However, rectangle prompting remains superior and reduces dispersion, with medians shifting upward (Dice∼, IoU∼). Overall, the boxplots reinforce the conclusion that prompt informativeness is a dominant factor in zero-shot vertebral segmentation.
4.4.2. Surface Distance Metrics (ASSD and HD95) Across Radiographs
To complement overlap measures,
Figure 4 reports image-level surface distances, where lower values indicate better boundary alignment. Under rectangle prompting, all methods yield low distances with compact distributions, typically on the order of only a few pixels (or millimeters if pixel spacing was available), consistent with accurate boundary placement. For example, median ASSD values are ∼2–4 and median HD95 values are ∼6–10 for rectangle prompts. Conversely, point prompting leads to a dramatic increase in surface distances and heavy-tailed distributions. Median ASSD rises to tens of pixels (∼22–65 depending on the model) and HD95 frequently exceeds ∼50–130, with extreme outliers indicating severe leakage into adjacent anatomy. The strong separation between point and rectangle prompting in boundary metrics corroborates the overlap-based findings, but additionally highlights that point-based failures often correspond to clinically substantial contour misalignment.
4.4.3. Mean Performance with Uncertainty Estimates
Figure 5 reports mean Dice and IoU at the image level with 95% bootstrap CIs. The uncertainty intervals are narrowest for rectangle prompting in sam-vit-huge and sam2-hiera-large, reflecting consistent performance across radiographs. In contrast, point prompting yields broader intervals, consistent with the larger dispersion observed in the boxplots. Across all backbones, the mean improvement from point to rectangle prompting is larger than the corresponding CI widths, indicating a robust and practically meaningful effect of prompt type.
4.4.4. Global Score Distribution and Metric Redundancy
Figure 6 shows the histogram of image-level IoU values pooled across all model–prompt configurations. The distribution is distinctly bimodal, with one mode at low IoU values (dominated by point prompting) and another at high IoU values (dominated by rectangle prompting), illustrating that the prompting strategy induces two clearly separated performance regimes. Finally,
Figure 7 presents Spearman rank correlations among IoU, Dice, ASSD and HD95. IoU and Dice exhibit an almost perfect positive monotonic association, reflecting their deterministic relationship. Similarly, ASSD and HD95 are strongly positively correlated, indicating that both quantify related aspects of boundary error. Importantly, overlap-based metrics are strongly negatively correlated with surface distances, confirming that improved overlap is accompanied by reduced boundary discrepancies.
4.5. Failure Case Analysis and Point-Prompt Diagnostics
While mean overlap metrics summarize average segmentation quality, clinical deployment additionally requires understanding how often a configuration fails catastrophically and what those failures look like. Here we provide a focused failure-case analysis, with particular emphasis on single-point prompting, which showed the largest dispersion and heavy-tailed boundary errors in
Figure 3 and
Figure 4.
We operationally define an instance-level failure as IoU < 0.1 under the model-score selection protocol (i.e., selecting the candidate mask with the highest predicted IoU), because this protocol most closely reflects real-world zero-shot usage when ground truth is unavailable at inference time. To quantify boundary-error outliers, we additionally report the median and 95th percentile of the 95th-percentile Hausdorff distance (HD95) computed in millimeters for instances with available DICOM pixel spacing.
As shown in
Table 7, point prompting fails frequently in a deployable setting: the failure rate (IoU < 0.1) reaches 81.6% for SAM-ViT-Huge and 81.1% for SAM2-Hiera-Large and remains high at 51.8% for MedSAM-ViT-Base. Rectangle prompting is substantially more reliable for the two SAM variants (<1% failures), whereas MedSAM-ViT-Base exhibits a higher failure frequency under model-score selection, consistent with its larger oracle-to-model-score gap. Boundary diagnostics corroborate that point prompting produces clinically large contour deviations: median HD95 exceeds 155 mm for the SAM variants under point prompts, compared with 4–6 mm under rectangle prompts.
Inspection of the lowest-IoU point-prompt cases revealed two recurring failure modes: (i) leakage/over-segmentation, where the predicted mask spills into adjacent vertebrae and surrounding anatomy (high recall, very low precision and a large predicted-to-ground-truth area ratio), and (ii) missed-target/under-segmentation, where only a fragment of the vertebra is captured (low recall and an area ratio below one).
Figure 8 visualizes representative examples of both modes for each backbone using difference overlays (green: true positives; red: false positives; blue: false negatives).
These diagnostics suggest that, in addition to overlap scores, simple sanity checks such as predicted area ratios and boundary-distance outlier thresholds could serve as lightweight quality-control indicators when deploying interactive zero-shot segmentation on multi-vertebra radiographs.
Representative failure cases for point-prompt segmentation are illustrated in
Figure 8. These examples highlight two common error modes: leakage and missed targets. Representative boundary error diagnostics for point-prompt failure cases are summarized in
Table 8.
4.6. Computational Efficiency and Inference Latency
In addition to accuracy, computational efficiency and inference latency are important for clinical usability.
Table 9 summarizes wall-clock runtime for the standardized evaluation pipeline across models and prompt types. Across configurations, processing a single radiograph (containing on average about nine vertebral instances) required approximately 16–20 s, corresponding to about 1.8–2.2 s per vertebra. Among the tested backbones, SAM2-Hiera-Large achieved the lowest latency, whereas SAM-ViT-Huge was the slowest; nevertheless, the gap between the fastest and slowest rectangle configuration was modest (about 1.25×). Because the additional computation required for oracle vs. model-score mask selection is negligible compared to encoder/decoder inference, these latency figures apply to both selection protocols.
5. Discussion
5.1. Principal Findings and Overall Interpretation
This study investigated whether promptable segmentation foundation models can generalize zero-shot to vertebral instance segmentation on DICOM spine radiographs, without any task-specific fine-tuning. The results demonstrate three consistent and clinically relevant observations.
First, prompt informativeness dominated performance. This dependence on prompt informativeness is consistent with systematic evaluations of SAM-style models in medical imaging, where box-based prompts often yield more stable and anatomically constrained masks than sparse point prompts in crowded or low-contrast scenes. [
6,
12,
47,
48]. Across all evaluated backbones, rectangle (bounding-box) prompts substantially outperformed single-point prompts in overlap metrics (IoU, Dice), agreement measures (MCC, Cohen’s
) and boundary-based distances (ASSD, HD95). In
Table 3, the best-performing configuration was sam-vit-huge with rectangle prompting (IoU = 0.782, Dice = 0.870), followed closely by sam2-hiera-large with rectangle prompting (IoU = 0.744, Dice = 0.848). In contrast, all point-prompted configurations produced low overlap (IoU
, Dice
), despite often exhibiting high recall. This indicates that, on radiographs with multiple similar anatomical instances, a single point is frequently insufficient to unambiguously specify the intended vertebra.
Second, the failure modes under point prompting were systematic and severe. Point prompts yielded a characteristic pattern of very high recall but low precision (e.g., sam-vit-huge point: Precision = 0.293, Recall = 0.911), which is consistent with over-segmentation and leakage into surrounding anatomy. Similar ambiguity-driven leakage failures have been reported when SAM is applied to multi-instance or visually repetitive targets, where sparse prompts underconstrain the output and the model expands to adjacent structures [
6,
7,
81]. Conversely, several clinical-oriented studies report that single-point or sparse prompting can be effective for isolated, visually distinctive targets (e.g., focal lesions) when combined with careful interaction design and quality control, highlighting that point prompting sensitivity is task- and modality-dependent. [
8,
40,
41]. This behavior is further supported by the image-level distributions in
Figure 3 and the heavy-tailed boundary errors in
Figure 4, where point prompting led to large ASSD/HD95 values and extreme outliers, indicating clinically substantial contour deviations. The qualitative overlays in
Figure 1 corroborate these quantitative trends by visualizing typical false-positive leakage patterns.
Third, model choice mattered, but less than prompt type. Among rectangle-prompted configurations, sam-vit-huge achieved the best overall overlap and agreement, while sam2-hiera-large showed slightly higher recall but somewhat lower precision, suggesting a more permissive segmentation behavior. medsam-vit-base performed worst under rectangle prompting (IoU = 0.599, Dice = 0.737) and also exhibited lower recall under point prompting (Recall = 0.762) than the two SAM variants. These differences suggest that, in this radiographic domain, backbone capacity and representation generality may outweigh the benefits of medical-domain adaptation learned from other modalities.
Taken together, the findings indicate that large promptable foundation models can produce accurate vertebral masks in spine radiographs in a zero-shot setting, but only when the prompt sufficiently constrains the spatial extent of the target instance.
5.2. Why Rectangle Prompts Work and Point Prompts Fail in Spine Radiographs
The strong dependence on prompt type is expected given the structure of spine radiographs and the nature of promptable segmentation. Radiographs contain multiple vertebrae that are highly repetitive in appearance and closely spaced, often with partial occlusions, low contrast boundaries and projection artifacts. In this setting, a single centroid point provides a weak constraint: it indicates where something should be segmented but not how far the object extends. A foundation model trained on broad visual data may then rely on global context and learned priors and can easily expand the mask to include adjacent vertebrae, the spinal column, ribs, or other high-contrast structures.
Rectangle prompts mitigate this ambiguity by explicitly specifying an approximate extent. This reduces the solution space and effectively suppresses competing hypotheses around the prompt location. The distributional results in
Figure 3 highlight that rectangle prompts not only shift central tendency upward but also substantially reduce dispersion across radiographs. The histogram in
Figure 6 further supports this interpretation: pooled IoU values form two distinct regimes, with low-overlap samples dominated by point prompting and high-overlap samples dominated by rectangle prompting. This bimodality suggests that the prompt type induces a qualitative transition in the model’s behavior, rather than merely a gradual improvement.
A practical implication is that interactive or semi-automatic workflows should favor bounding-box-based interactions, particularly in multi-instance radiographic settings. If point-based interaction is preferred (e.g., faster user input), it likely requires additional constraints such as multiple points, negative points, iterative refinement, or box+point hybrid prompting. These interaction patterns align with established interactive segmentation paradigms and recent error-tolerant frameworks that explicitly model imperfect clicks and iterative correction [
48,
83,
84].
5.3. Model-Specific Behavior: SAM, SAM2 and MedSAM
Although prompt type was the main driver of performance, differences between backbones provide insight into generalization under domain shift.
5.3.1. SAM-ViT-Huge
The strongest overall performance was achieved by sam-vit-huge under rectangle prompting (
Table 3). This model also exhibited the highest precision among rectangle configurations, indicating that when spatial extent is constrained, the high-capacity image encoder and mask decoder can delineate vertebral boundaries reliably in most radiographs. The remaining errors likely arise from weak boundaries at vertebral endplates, partial visibility at the image margins and projection overlap with ribs and pelvis.
5.3.2. SAM2-Hiera-Large
sam2-hiera-large performed competitively under rectangle prompting and achieved the highest recall (0.918). This suggests that SAM2 tends to include most vertebral pixels, but may be slightly more prone to over-coverage, consistent with its lower precision than sam-vit-huge. From an application standpoint, this trade-off may be acceptable in downstream pipelines that can tolerate mild over-segmentation but require high sensitivity (e.g., candidate region extraction followed by shape-based refinement). Recent evaluations of SAM2-style backbones in medical imaging similarly report competitive accuracy but note persistent challenges in low-contrast boundaries and dense-instance settings, which may manifest as slight over-coverage under weak constraints [
10,
35].
5.3.3. MedSAM-ViT-Base
Despite being fine-tuned on large-scale medical segmentation data, medsam-vit-base did not outperform the two general-purpose SAM variants on radiographs. While medical-domain adaptation has been shown to improve robustness in several modalities and tasks, prior work also emphasizes that such gains can be modality-dependent and that prompt choice remains a major determinant of performance [
6,
9,
69]. A plausible explanation is that MedSAM’s medical corpus may be dominated by modalities and tasks with boundary cues that differ substantially from projection radiography. Moreover, the ViT-Base backbone has lower capacity than ViT-H and the results suggest that capacity and general-purpose representations are important for robust out-of-domain generalization in complex radiographs. Interestingly, MedSAM showed relatively better point-prompt performance (higher mean IoU/Dice than the other models under point prompting), which may reflect stronger medical priors for objectness around localized prompts; however, these priors are still insufficient to reliably disambiguate vertebrae without explicit extent information.
5.4. Boundary Metrics and the Importance of Complementary Evaluation
Overlap metrics (IoU and Dice) capture region agreement but can underrepresent clinically relevant boundary deviations, particularly when masks are systematically larger than ground truth. Boundary-based distances (ASSD, HD95) provided a crucial complementary perspective in this study. This is consistent with established recommendations in medical image segmentation to report both region overlap and boundary distances, because overlap alone may obscure clinically meaningful contour deviations, especially for systematically over- or under-segmented masks [
73].
The point-prompt configurations exhibited large ASSD and HD95 values with heavy tails (
Figure 4), indicating frequent catastrophic boundary errors. These failures are consistent with leakage into adjacent vertebrae and surrounding anatomy, which may still produce moderate recall but are unacceptable for precise anatomical measurements. In contrast, rectangle prompting achieved compact boundary distance distributions, supporting the interpretation that the masks are not only overlapping but also geometrically aligned.
The correlation analysis in
Figure 7 further clarifies metric redundancy and complementarity. IoU and Dice were nearly perfectly correlated, which is expected given their deterministic relationship. Similarly, ASSD and HD95 were strongly correlated, indicating that both quantify related aspects of contour error. Importantly, overlap metrics were strongly negatively correlated with boundary distances, confirming that improving overlap generally corresponds to improved boundary alignment in this benchmark. From a reporting standpoint, these results suggest that a minimal yet informative metric set could include one overlap metric (IoU or Dice) and one boundary metric (ASSD or HD95), with the remaining metrics used for additional interpretability (precision–recall balance and agreement).
5.5. Implications for Spinal Parameters Assessment Workflows
Accurate vertebral segmentation can support several steps in spinal parameters analysis, including vertebral localization, indexing and geometric measurement. In clinical practice, spine disorders severity is commonly assessed using angle measurements (e.g., Cobb angle), which require identification of end vertebrae and estimation of vertebral orientation. While the present study did not evaluate downstream clinical endpoints, the achieved overlap and boundary accuracy under rectangle prompting suggests that promptable segmentation models could serve as a pre-segmentation tool in semi-automatic pipelines.
A feasible workflow is human-in-the-loop: a clinician (or a pre-processing detector) provides a coarse bounding box for a target vertebra, the model outputs a mask and the mask is accepted or iteratively refined. This could reduce annotation time for dataset creation, accelerate semi-automatic measurement tools and enable rapid prototyping in settings where training data are limited. Related clinically oriented studies of SAM-style segmentation similarly emphasize human-in-the-loop prompting with quality control as a practical way to leverage strong foundation models despite imperfect zero-shot behavior [
8,
40]. For radiography-specific spine imaging, early work—including foundation-model-based studies and dedicated supervised pipelines—supports feasibility but highlights the importance of robust prompting and validation under acquisition variability [
5,
46]. However, for full automation, additional components are required: vertebra detection, vertebra indexing (T1–L5), endplate line estimation and quality control for failure cases.
From a computational perspective, the standardized pipeline achieved end-to-end runtimes on the order of tens of seconds per radiograph on a single CUDA-enabled GPU (
Table 9). In particular, rectangle prompting required 16.15–20.15 s per radiograph across models, while per-vertebra latency was 1.79–2.24 s. This suggests that, once prompts are provided, promptable foundation models can return vertebral masks within time budgets compatible with semi-automatic measurement workflows, although implementation-level optimizations (e.g., batching and mixed precision) could further reduce latency.
Importantly, the point-prompt results indicate that extremely lightweight interactions (single clicks) are unlikely to be robust enough for multi-vertebra radiographs without additional constraints. Thus, the practical value of zero-shot SAM-like models in radiography may depend on either bounding-box prompts or multi-point iterative prompting, rather than single-point prompting.
5.6. Future Directions
Several directions could improve both performance and clinical utility.
5.6.1. More Realistic Prompting and Interaction
A systematic evaluation with perturbed boxes, off-center points, multi-point prompts and negative points would quantify real-world robustness. Iterative prompting strategies (e.g., initial box followed by corrective clicks) could address failure cases while maintaining minimal interaction burden.
5.6.2. Automatic Prompt Generation
To move toward automation, bounding boxes could be generated by a lightweight vertebra detector or a spine-localization module. Even coarse automatic boxes may be sufficient given the strong benefit observed for rectangle prompting, especially if coupled with simple post-processing (connected component filtering and shape regularization).
5.6.3. Mask Selection Without Ground Truth
Because multi-mask output is inherent to SAM-like models, selecting the correct candidate mask is critical. Evaluating model-score-based selection versus oracle selection should be reported explicitly and improved selection heuristics (e.g., mask compactness priors, anatomical plausibility constraints, or consistency across adjacent vertebrae) could narrow the gap between upper-bound and deployable performance.
5.6.4. Domain Adaptation and Lightweight Fine-Tuning
While the present study focused on strict zero-shot evaluation, lightweight adaptation strategies (e.g., adapters, LoRA, or prompt tuning) using a small labeled subset may yield substantial gains, particularly for point prompting and difficult boundary cases. Such adaptation should be evaluated under realistic annotation budgets and across institutions.
5.6.5. Downstream Spinal Parameters Measurements
Finally, segmentation should be integrated into a full spinal parameters assessment pipeline to measure clinical endpoints and reliability. This includes vertebra indexing, endplate detection and automated angle computation with uncertainty estimation and quality control.
5.7. Summary
In a strictly zero-shot setting, promptable segmentation foundation models can achieve strong vertebral segmentation performance on DICOM spine radiographs, but performance is highly sensitive to prompt type. Bounding-box prompts enable stable, high-overlap, low-boundary-error segmentations across radiographs, whereas single-point prompts frequently lead to over-segmentation and large boundary deviations. Among the evaluated backbones, sam-vit-huge with rectangle prompting provided the most favorable accuracy–robustness trade-off. These findings support the feasibility of using foundation models as interactive or semi-automatic components in spine imaging workflows, while emphasizing the need for realistic prompt evaluation, non-oracle mask selection, external validation and clinical endpoint studies before deployment.
5.8. Methodological Considerations and Limitations
The main methodological limitations and generalization considerations are summarized below. This study was designed as a pilot feasibility benchmark and several limitations should be considered when interpreting the results.
5.8.1. Oracle Mask Selection Inflates Performance Relative to Deployment
All models produced multiple candidate masks per prompt. The main evaluation selected the best mask by maximizing IoU against ground truth (oracle protocol), which estimates an upper bound on achievable performance given the candidate set. In real deployment, ground truth is not available and mask selection must rely on model-provided confidence scores or additional heuristics. Therefore, the reported results likely overestimate real-world performance unless a reliable selection strategy is implemented and validated. Notably, the original SAM design outputs a per-mask predicted quality score (often interpreted as an estimated IoU), which can serve as a deployable heuristic for candidate selection [
68].
5.8.2. Prompts Were Derived from Ground Truth and Do Not Capture Clinical Prompt Noise
Both rectangle prompts (tight bounding boxes) and point prompts (centroids) were generated from reference masks to ensure reproducibility and to isolate model behaviour from inter-operator variability. In clinical practice, user-provided boxes are rarely perfectly localized: boxes may be looser, may include parts of adjacent vertebrae, and may be shifted or truncated depending on the operator and the viewing conditions. To partially address this limitation, we added a sensitivity analysis that stratifies instances by the ground-truth-to-box area ratio (fill ratio
;
Section 4.3), which controls how much background/adjacent anatomy is included within the box even under a tight construction. We observed a monotonic drop in performance for SAM-ViT-Huge and SAM2-Hiera-Large when the effective box becomes looser (
Table 6), indicating that segmentation quality is sensitive to the amount of irrelevant context enclosed by the prompt. Nevertheless, this proxy does not explicitly model box mis-centering or under-coverage; prior work has shown that SAM-like models can exhibit large output variations under small prompt perturbations and substantial inter-user variability in bounding boxes [
81,
82]. Several lines of work aim to mitigate prompt noise, including training or fine-tuning with perturbed bounding-box prompts [
85], decoupling prompt quality from mask generation in SAM-like architectures [
86], and designing error-tolerant interactive frameworks that explicitly account for imperfect user inputs [
83,
84]. These approaches are complementary and motivate future studies with manual prompts and controlled box perturbations in radiographic workflows.
5.8.3. Intensity Normalization Without Modality-Specific Windowing
Radiographs were normalized using per-image min–max scaling after DICOM decoding and photometric correction, without applying DICOM VOI LUT or WindowCenter/WindowWidth-based intensity windowing. This choice avoids dependence on vendor-specific display presets and maintains a fully reproducible, model-agnostic pipeline, but it may under-utilize clinically tuned bone-contrast settings in some acquisitions. Future work will investigate windowing strategies (e.g., DICOM VOI LUT/WindowCenter/WindowWidth when reliably available, or learned normalization) and quantify their impact on segmentation accuracy and prompt robustness.
5.8.4. Acquisition Variability and Radiography-Specific Intensity Non-Standardization
Projection radiography exhibits substantial variability across acquisition settings (e.g., view position, collimation, and dose), detector characteristics, and vendor post-processing pipelines (contrast enhancement and edge sharpening). Because radiograph pixel values are typically not calibrated to a standardized physical unit (unlike Hounsfield units in CT), such factors can alter global histograms and local contrast even after global normalization, and may therefore affect zero-shot generalization. Our study intentionally used a minimal, metadata-light DICOM preprocessing to remain reproducible and model-agnostic; however, future multi-institution evaluations should stratify performance by available acquisition metadata and test more robust intensity harmonization (e.g., VOI LUT when reliable, percentile-based scaling, or histogram standardization) to better control acquisition-driven variability.
5.8.5. Single-Center Dataset, Domain Shift and Limited External Validation
The dataset contained 144 radiographs with 1309 annotated vertebrae. All images were collected within a single clinical environment, which likely limits the diversity of scanners/detectors and vendor post-processing pipelines represented in this benchmark. Although this enables robust instance-level evaluation, generalization to different hospitals, imaging devices, acquisition protocols, patient populations and spine disorder severities remains untested. In particular, domain shift can arise from differences in X-ray systems (detector response, resolution, noise characteristics and scatter management), protocol parameters (dose/exposure, collimation and view positioning) and proprietary enhancement (edge sharpening, contrast equalization), which may affect both the appearance of vertebral boundaries and the reliability of prompt-driven segmentation. Furthermore, patient anatomy diversity (age-related morphology, body habitus, congenital variants such as transitional vertebrae, severe deformities, fractures/degenerative changes, and post-operative instrumentation) may introduce shapes, occlusions and artifacts that are underrepresented in small single-center cohorts and can challenge zero-shot generalization. External validation on multi-institution cohorts is necessary before clinical conclusions can be drawn. Multi-center vertebra segmentation benchmarks in CT/MRI have shown that performance can vary across scanners and patient cohorts, underscoring the importance of external validation and stratified reporting [
2,
3]. Future work should therefore evaluate cross-site performance, stratify results by available scanner/protocol metadata, and assess robustness in challenging anatomical subgroups.
5.8.6. Two-Dimensional Projection Challenges
Radiographs are 2D projections of a 3D structure. Overlaps, foreshortening and non-uniform contrast can make vertebral boundaries ambiguous even for human annotators. Some segmentation errors may therefore reflect inherent image ambiguity rather than model failure alone. In addition, left–right symmetry and repetitive anatomy can yield plausible but wrong segmentations under weak prompts.
5.8.7. Clinical Endpoint Not Evaluated
This benchmark quantified segmentation agreement but did not assess the impact on spine-specific clinical measures (e.g., vertebral tilt, Cobb angle). A small boundary error may or may not translate into clinically meaningful measurement error depending on where it occurs (endplates vs. lateral borders). Future work should connect segmentation quality to measurement accuracy and inter-/intra-rater reliability.
6. Conclusions
This study assessed the feasibility of zero-shot vertebral instance segmentation on DICOM spine radiographs using promptable foundation models. Three backbones were evaluated under a fully standardized and reproducible pipeline (identical pre-processing, prompt generation, multi-mask handling and metric computation): facebook/sam-vit-huge, facebook/sam2-hiera-large and wanglab/medsam-vit-base. Performance was quantified on 144 radiographs with 1309 annotated vertebral masks using overlap-based (IoU, Dice) and boundary-based (ASSD, HD95) metrics.
The main conclusions are as follows: (i) Prompt type is the dominant factor in zero-shot vertebral segmentation. Bounding-box (rectangle) prompts consistently produced substantially higher overlap and markedly lower boundary errors than single-point prompts across all backbones. Point prompting typically resulted in over-segmentation (high recall but low precision) and heavy-tailed boundary deviations, indicating that a single localization cue is insufficient in radiographs containing many similar anatomical instances.
(ii) High-capacity generalist models perform best when provided with sufficiently informative prompts. Among the tested configurations, sam-vit-huge with rectangle prompting achieved the strongest overall performance (mean IoU = 0.782, Dice = 0.870), with sam2-hiera-large closely following (IoU = 0.744, Dice = 0.848) and exhibiting the highest recall under rectangle prompts (Recall = 0.918). medsam-vit-base improved substantially with rectangle prompts but remained below the two SAM variants (IoU = 0.599, Dice = 0.737), suggesting that, in this radiographic domain, backbone capacity and general visual representations are critical for robust transfer.
(iii) For practical use in spine disorders workflows, rectangle prompting is strongly recommended. The observed separation between point- and rectangle-based performance indicates that clinically useful segmentation quality in radiographs is achievable in a zero-shot regime primarily when the prompt constrains object extent. Therefore, the most realistic near-term application is a human-in-the-loop or semi-automatic workflow in which bounding boxes are provided by the user or generated automatically by a lightweight detector, followed by promptable mask generation.
Overall, the findings support the feasibility of using promptable foundation models for vertebral segmentation on DICOM radiographs in a strictly zero-shot setting, provided that prompts deliver sufficient spatial disambiguation.