[Paper Review] Segment Any Cell: A SAM-based Auto-prompting Fine-tuning Framework for Nuclei Segmentation
SAC enhances SAM for nuclei segmentation by integrating a Low-Rank Attention Adapter and an automatic prompt generator, achieving state-of-the-art results on MoNuSeg and DSB datasets with automated prompts.
In the rapidly evolving field of AI research, foundational models like BERT and GPT have significantly advanced language and vision tasks. The advent of pretrain-prompting models such as ChatGPT and Segmentation Anything Model (SAM) has further revolutionized image segmentation. However, their applications in specialized areas, particularly in nuclei segmentation within medical imaging, reveal a key challenge: the generation of high-quality, informative prompts is as crucial as applying state-of-the-art (SOTA) fine-tuning techniques on foundation models. To address this, we introduce Segment Any Cell (SAC), an innovative framework that enhances SAM specifically for nuclei segmentation. SAC integrates a Low-Rank Adaptation (LoRA) within the attention layer of the Transformer to improve the fine-tuning process, outperforming existing SOTA methods. It also introduces an innovative auto-prompt generator that produces effective prompts to guide segmentation, a critical factor in handling the complexities of nuclei segmentation in biomedical imaging. Our extensive experiments demonstrate the superiority of SAC in nuclei segmentation tasks, proving its effectiveness as a tool for pathologists and researchers. Our contributions include a novel prompt generation strategy, automated adaptability for diverse segmentation tasks, the innovative application of Low-Rank Attention Adaptation in SAM, and a versatile framework for semantic segmentation challenges.
Motivation & Objective
- Motivate improved nuclei segmentation by addressing the prompt quality bottleneck in SAM-based methods.
- Develop a LoRA-based fine-tuning mechanism applied to SAM's transformer for efficient adaptation.
- Create an automatic prompt generator to produce high-quality positive/negative prompts for nuclei segmentation.
- Demonstrate automatic prompting’s compatibility with existing fine-tuning and adaptation methods.
- Showcase SAC’s generality for semantic segmentation tasks beyond nuclei segmentation.
Proposed method
- Apply a Low-Rank Attention Adapter (LoRA) within SAM's ViT attention layers by modifying the Q and V matrices (keeping K fixed).
- Introduce an Auto Prompt Generator (UNet-based) that creates high-quality prompts from images using a BCE objective.
- Use a frozen SAM image encoder with LoRA and auto-prompts feeding into a trainable SAM mask decoder for segmentation.
- Employ a prompt encoder (frozen) that processes generated or expert prompts; the final masks come from the SAM mask decoder.
- Provide an optional inference path for manual prompts to aid segmentation when needed.
Experimental results
Research questions
- RQ1Can LoRA-based fine-tuning of SAM improve nuclei segmentation without increasing parameter counts?
- RQ2Does automated prompt generation improve segmentation quality compared to expert prompts alone?
- RQ3How do centroid-based versus direct probability-based prompt selections affect segmentation performance?
- RQ4Is SAC adaptable to different semantic segmentation tasks beyond nuclei segmentation?
- RQ5What is the impact of prompt quantity and quality on SAM-based nuclei segmentation performance?
Key findings
- SAC achieves superior segmentation scores (Dice, IoU, F1) over baselines, including SAM-based variants and several CNN/Transformer methods, on MoNuSeg and DSB datasets.
- Zero-shot SAM (1-expert) performs poorly relative to fine-tuned approaches, whereas SAC with LoRA and auto-prompts outperforms SAM-FT and MSA across metrics.
- LoRA-based SAM fine-tuning with auto-prompts reaches higher Dice and IoU than MSA, demonstrating efficiency and effectiveness without adding parameters.
- Incremental auto-prompt usage (points) plus a few expert prompts improves performance; centroid-based prompt selection outperforms direct probability-based selection at larger point counts.
- SAC shows faster Dice convergence than SAM-FT and MSA, and uses a similar or fewer trainable parameters overall, highlighting efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.