Skip to main content
QUICK REVIEW

[Paper Review] Slide-SAM: Medical SAM Meets Sliding Window

Quan Quan, Fenghe Tang|arXiv (Cornell University)|Nov 16, 2023
AI in cancer detectionComputer Science4 citations
TL;DR

Slide-SAM proposes a sliding window approach to enable efficient, multi-slice 3D medical image segmentation using the pre-trained Segment Anything Model (SAM), requiring only a single prompt on the central slice. By leveraging pre-trained weights, generating pseudo-labels via superpixel-based prompting, and using a hybrid loss with 3D and 2D labels, it achieves state-of-the-art performance with minimal prompting, outperforming 2D SAM baselines in few-prompt settings.

ABSTRACT

The Segment Anything Model (SAM) has achieved a notable success in two-dimensional image segmentation in natural images. However, the substantial gap between medical and natural images hinders its direct application to medical image segmentation tasks. Particularly in 3D medical images, SAM struggles to learn contextual relationships between slices, limiting its practical applicability. Moreover, applying 2D SAM to 3D images requires prompting the entire volume, which is time- and label-consuming. To address these problems, we propose Slide-SAM, which treats a stack of three adjacent slices as a prediction window. It firstly takes three slices from a 3D volume and point- or bounding box prompts on the central slice as inputs to predict segmentation masks for all three slices. Subsequently, the masks of the top and bottom slices are then used to generate new prompts for adjacent slices. Finally, step-wise prediction can be achieved by sliding the prediction window forward or backward through the entire volume. Our model is trained on multiple public and private medical datasets and demonstrates its effectiveness through extensive 3D segmetnation experiments, with the help of minimal prompts. Code is available at \url{https://github.com/Curli-quan/Slide-SAM}.

Motivation & Objective

  • To address the challenge of applying 2D SAM to 3D medical volumes, where slice-wise inference leads to discontinuities and high annotation costs.
  • To enable effective 3D segmentation using only one initial prompt while preserving SAM’s pre-trained weights.
  • To enhance data efficiency by generating rich 2D pseudo-labels from threshold ranges and superpixel-based prompts.
  • To improve training and inference robustness through a hybrid loss combining 3D ground-truth and 2D pseudo-labels.
  • To boost performance via ensemble learning with 2D SAM, leveraging complementary strengths.

Proposed method

  • Slide-SAM processes three adjacent slices as a sliding window, using a prompt on the central slice to predict masks for all three.
  • It propagates predictions from top and bottom slices to generate new prompts for the next window, enabling sequential, step-wise inference through the volume.
  • Pseudo-labels are generated by applying SAM to superpixel-based prompts across various threshold ranges in medical images.
  • A hybrid loss function selectively applies 3D ground-truth and 2D pseudo-labels during training, optimizing for both single-slice and multi-slice supervision.
  • An ensemble strategy combines Slide-SAM with 2D SAM by filtering and re-evaluating predictions based on stability scores and IoU thresholds.
  • The method preserves SAM’s pre-trained vision encoder and decoder while introducing a lightweight adapter for 3D context modeling.

Experimental results

Research questions

  • RQ1Can a 2D pre-trained SAM be effectively adapted for 3D medical image segmentation without retraining from scratch?
  • RQ2How can minimal human prompting be leveraged to achieve high-quality 3D segmentation across entire volumes?
  • RQ3Can pseudo-labels generated from superpixel-based prompting improve model generalization in low-data regimes?
  • RQ4How does the integration of Slide-SAM with 2D SAM enhance segmentation robustness and accuracy?
  • RQ5To what extent does the sliding window mechanism reduce annotation cost while maintaining spatial consistency?

Key findings

  • Slide-SAM achieves competitive 3D segmentation performance on AbdomenCT-1K and CHAOS datasets using only 5 prompts per anatomical structure, significantly fewer than 2D SAM baselines requiring ~40 prompts on average.
  • The method reduces the number of prompts needed to reach 90% Dice score by over 50% compared to 2D SAM methods, demonstrating superior few-shot efficiency.
  • Visual results show smooth, coherent segmentation across slices, eliminating the discontinuities common in slice-by-slice SAM inference.
  • The ensemble of Slide-SAM and 2D SAM improves performance across all anatomical structures, with significant gains in Dice scores on multiple test sets.
  • Pseudo-labels generated via superpixel prompting and SAM inference substantially improve model performance, outperforming fine-tuning with only real labels.
  • The model demonstrates robustness to noisy point and box prompts, particularly for box prompts under translation and scaling perturbations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.