Segment Any Cell: A SAM-based Auto-prompting Fine-tuning Framework for Nuclei Segmentation
Saiyang Na, Yuzhi Guo, Feng Jiang, Hehuan Ma, Junzhou Huang
TL;DR
This work presents Segment Any Cell (SAC), a SAM-based auto-prompting fine-tuning framework for nuclei segmentation that jointly optimizes a LoRA‑augmented image encoder and an automatic, discriminative prompting pipeline. By applying Low-Rank Adaptation directly within the attention QKV matrices and introducing an auto-prompt generator that yields positive/negative prompts, SAC significantly improves segmentation accuracy over SAM variants and other baselines on MoNuSeg and DSB, while reducing reliance on expert prompts. The approach also enables efficient training and demonstrates robustness across tasks, including gland segmentation on GlaS, suggesting broad applicability to semantic segmentation tasks with minimal manual prompting. Overall, SAC offers a practical, automated solution for pathology workflows, combining enhanced model adaptability with intelligent prompting to improve nuclei segmentation performance. $W_{\,\Delta} = B A$, $h = W_{0}x + W_{\,\Delta}x = W_{Q/V}x + B A x$, and $M = \mathcal{F}(\theta_{u}, I)$ are central to the method's design and optimization.
Abstract
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.
