Can SAM Segment Polyps?

Tao Zhou, Yizhe Zhang, Yi Zhou, Ye Wu, Chen GongarXiv 2023

Abstract

Recently, Meta AI Research released the Segment Anything Model (SAM), a general-purpose segmentation foundation model that has shown remarkable performance across various natural image tasks. However, its efficacy in specialized medical domains, such as polyp segmentation, remains an open question. Polyp segmentation is critical for the early diagnosis and treatment of colorectal cancer but is challenged by blurred boundaries and low contrast between polyps and surrounding tissue. This report evaluates SAM’s performance in an unprompted (zero-shot) setting across five benchmark datasets, comparing it against 16 state-of-the-art (SOTA) specialized models. Our findings reveal a significant domain gap, suggesting that while SAM is powerful, specialized architectures still maintain a substantial lead in clinical medical imaging tasks.

Introduction

Polyp segmentation is a fundamental task in medical imaging. Unlike natural objects, polyps often lack sharp edges and share similar visual characteristics with healthy mucosa. The release of SAM prompted a critical investigation: can a model trained on 11 million natural images (SA-1B) generalize to the high-stakes, niche domain of colonoscopy images without specific fine-tuning? This study specifically examines SAM's "out-of-the-box" performance in unprompted settings to gauge its inherent medical knowledge.

Methodology

The evaluation compared two variants of SAM—SAM-H (ViT-H backbone) and SAM-L (ViT-L backbone)—against 14 CNN-based methods (e.g., UNet, PraNet) and 2 Transformer-based methods (Polyp-PVT, HSNet).

To give SAM a fair assessment in an unprompted setting, the researchers employed a "best-case" selection strategy. Since SAM can generate multiple mask proposals for a single input, the authors generated $N$ masks and selected the one with the highest alignment to the ground truth (GT) for quantitative reporting. Evaluation was conducted across five benchmarks: Kvasir, CVC-ClinicDB, CVC-ColonDB, ETIS, and CVC-300.

Quantitative Results

The performance gap between SAM and specialized models was stark across all datasets. On the CVC-ClinicDB dataset, the specialized Polyp-PVT achieved a mean Dice (mDice) score of 0.948, whereas SAM-H only reached 0.547. Similarly, on the Kvasir dataset, specialized models reached approximately 0.92 mDice, while SAM-H trailed at 0.778.

Table 1: Quantitative comparison on CVC-ClinicDB and Kvasir datasets showing the performance gap between SAM and specialized models.

Even on the most challenging ETIS dataset, specialized models like HSNet maintained a score of 0.808 mDice, while SAM-H struggled significantly at 0.517. These results indicate that the "best mask" selection is still insufficient to overcome the lack of domain-specific training.

Qualitative Analysis

Visual comparisons highlight the primary failure modes of SAM in this domain. While specialized models like Polyp-PVT and CFA-Net produce masks that closely follow the ground truth, SAM often misses the polyp entirely or segments unrelated background tissue when contrast is low. SAM’s reliance on sharp edges—a hallmark of its natural image training—becomes a liability in the "wet" and low-contrast environment of a colonoscopy.

Figure 1: Qualitative comparison of segmentation masks. SAM-H and SAM-L often produce fragmented or inaccurate masks compared to specialized models like Polyp-PVT.

Discussion and Future Work

The results underscore a significant domain gap between natural and medical imagery. SAM’s performance in unprompted settings suggests that foundation models are not yet a "one-size-fits-all" solution for medical AI. The blurred boundaries typical of polyps are particularly problematic for SAM's current architecture.

Future Directions: 1. MedSAM Evolution: Fine-tuning SAM on large-scale medical datasets is likely required to bridge the performance gap. 2. Prompt Engineering: Future studies should investigate if manual prompts (e.g., bounding boxes or point clicks from clinicians) can unlock SAM's potential in this field. 3. Hybrid Architectures: Combining SAM’s robust feature extraction with specialized segmentation heads tailored for medical textures may yield superior results.

Summary updated

BibTeX
@misc{zhou2023can,
  author = {Tao Zhou and Yizhe Zhang and Yi Zhou and Ye Wu and Chen Gong},
  title = {{Can SAM Segment Polyps?}},
  year = {2023},
  eprint = {2304.07583},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.07583},
}
Figure