Prompting Segment Anything Model with Domain-Adaptive Prototype for Generalizable Medical Image Segmentation

Zhikai Wei, Wenhui Dong, Peilin Zhou, Yuliang Gu, Zhou Zhao +1 more
9/19/2024
cs.CV

Official code: wkklavis/DAPSAM (49 stars, last commit 2025-04-22).

Abstract

Deep learning based methods often suffer from performance degradation caused by domain shift. In recent years, many sophisticated network structures have been designed to tackle this problem. However, the advent of large model trained on massive data, with its exceptional segmentation capability, introduces a new perspective for solving medical segmentation problems. In this paper, we propose a novel Domain-Adaptive Prompt framework for fine-tuning the Segment Anything Model (termed as DAPSAM) to address single-source domain generalization (SDG) in segmenting medical images. DAPSAM not only utilizes a more generalization-friendly adapter to fine-tune the large model, but also introduces a self-learning prototype-based prompt generator to enhance model's generalization ability. Specifically, we first merge the important low-level features into intermediate features before feeding to each adapter, followed by an attention filter to remove redundant information. This yields more robust image embeddings. Then, we propose using a learnable memory bank to construct domain-adaptive prototypes for prompt generation, helping to achieve generalizable medical image segmentation. Extensive experimental results demonstrate that our DAPSAM achieves state-of-the-art performance on two SDG medical image segmentation tasks with different modalities. The code is available at https://github.com/wkklavis/DAPSAM.

View on arXivView PDF

Code Implementations(1)

wkklavis/DAPSAMOfficial100%
493PythonJan 30, 20241 years ago

Similar Papers

Cite this paper

@article{wei2024prompting,
  title  = {Prompting Segment Anything Model with Domain-Adaptive Prototype for Generalizable Medical Image Segmentation},
  author = {Zhikai Wei and Wenhui Dong and Peilin Zhou and Yuliang Gu and Zhou Zhao and Yongchao Xu},
  year   = {2024},
  eprint = {2409.12522},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.12522v1}
}

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/2409.12522.svg)](https://codeofpaper.com/paper/2409.12522)

Discussion