Segmentation by registration-enabled SAM prompt engineering using five reference images

Yaxi Chen, Aleksandra Ivanova, Shaheer U. Saeed, Rikin Hargunani, Jie Huang +2 more
7/25/2024
cs.CV

Official code: chrissyinreallife/KneeSegmentWithSAM (6 stars, last commit 2025-02-25).

Abstract

The recently proposed Segment Anything Model (SAM) is a general tool for image segmentation, but it requires additional adaptation and careful fine-tuning for medical image segmentation, especially for small, irregularly-shaped, and boundary-ambiguous anatomical structures such as the knee cartilage that is of interest in this work. Repaired cartilage, after certain surgical procedures, exhibits imaging patterns unseen to pre-training, posing further challenges for using models like SAM with or without general-purpose fine-tuning. To address this, we propose a novel registration-based prompt engineering framework for medical image segmentation using SAM. This approach utilises established image registration algorithms to align the new image (to-be-segmented) and a small number of reference images, without requiring segmentation labels. The spatial transformations generated by registration align either the new image or pre-defined point-based prompts, before using them as input to SAM. This strategy, requiring as few as five reference images with defined point prompts, effectively prompts SAM for inference on new images, without needing any segmentation labels. Evaluation of MR images from patients who received cartilage stem cell therapy yielded Dice scores of 0.89, 0.87, 0.53, and 0.52 for segmenting femur, tibia, femoral- and tibial cartilages, respectively. This outperforms atlas-based label fusion and is comparable to supervised nnUNet, an upper-bound fair baseline in this application, both of which require full segmentation labels for reference samples. The codes are available at: https://github.com/chrissyinreallife/KneeSegmentWithSAM.git

View on arXivView PDF

Code Implementations(1)

Segmentation by registration-enabled SAM prompt engineering using five reference images

60Mar 6, 20241 years ago

Similar Papers

Cite this paper

@article{chen2024segmentation,
  title  = {Segmentation by registration-enabled SAM prompt engineering using five reference images},
  author = {Yaxi Chen and Aleksandra Ivanova and Shaheer U. Saeed and Rikin Hargunani and Jie Huang and Chaozong Liu and Yipeng Hu},
  year   = {2024},
  eprint = {2407.17933},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.17933v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.17933.svg)](https://codeofpaper.com/paper/2407.17933)

Discussion