NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Foundation Model for Cell Segmentation

Uriah Israel, Markus Marks, Rohit Dilip, Qilin Li, Morgan Schwartz, Elora Pradhan, Edward Pao, Shenyi Li, Alexander Pearson-Goulart, Pietro Perona, Georgia Gkioxari, Ross Barnowski, Yisong Yue, David Van ValenarXiv 2023 · DOI

Abstract

Cells are the fundamental unit of biological organization, and identifying them in imaging data - cell segmentation - is a critical task for various cellular imaging experiments. While deep learning methods have led to substantial progress on this problem, models that have seen wide use are specialist models that work well for specific domains. Methods that have learned the general notion of "what is a cell" and can identify them across different domains of cellular imaging data have proven elusive. In this work, we present CellSAM, a foundation model for cell segmentation that generalizes across diverse cellular imaging data. CellSAM builds on top of the Segment Anything Model (SAM) by developing a prompt engineering approach to mask generation. We train an object detector, CellFinder, to automatically detect cells and prompt SAM to generate segmentations. We show that this approach allows a single model to achieve state-of-the-art performance for segmenting images of mammalian cells (in tissues and cell culture), yeast, and bacteria collected with various imaging modalities. To enable accessibility, we integrate CellSAM into DeepCell Label to further accelerate human-in-the-loop labeling strategies for cellular imaging data. A deployed version of CellSAM is available at https://label-dev.deepcell.org/.

Introduction

In biology, cell segmentation—the process of identifying the boundaries of every individual cell in an image—is the gateway to quantitative discovery. Historically, this has been a "specialist" game. A model trained to find round mammalian cells in fluorescent images usually fails when looking at elongated bacteria in phase-contrast microscopy. Researchers often have to build or fine-tune separate models for every new experiment, which is time-consuming and expensive. While general-purpose models like Meta’s Segment Anything Model (SAM) have shown incredible zero-shot abilities on natural images, they struggle with the high density and noisy boundaries typical of cellular data.

Methods: The CellSAM Architecture

The authors introduce CellSAM, an architecture that automates the "prompting" required to make SAM work for microscopy. It uses the standard Vision Transformer (ViT) backbone from SAM to extract image features. The core innovation is CellFinder, a transformer-based object detector using the Anchor DETR framework. Unlike traditional detectors that struggle with crowded images, Anchor DETR treats detection as a set-prediction task, making it ideal for images containing thousands of tightly packed cells.

The CellSAM architecture integrates a Vision Transformer backbone with a specialized CellFinder object detector to provide bounding box prompts for the Segment Anything Model (SAM) decoder.

The workflow is as follows: an image passes through the ViT; CellFinder then uses those features to generate bounding boxes for every cell. These boxes act as "prompts" for SAM’s mask decoder, which produces the final, high-fidelity segmentation. Training occurs in two stages: first, the ViT and CellFinder are trained together on object detection; second, the ViT is frozen, and only the "neck" layers are fine-tuned to bridge the gap between natural and biological image distributions.

Key Results and Insights

To create a true foundation model, the authors curated a massive, diverse corpus of cellular data including TissueNet, Cellpose, DeepBacs, Omnipose, YeastNet, and nuclear segmentation data. CellSAM achieved state-of-the-art (SOTA) results across nine different datasets, covering bacteria, yeast, and mammalian cells.

Performance evaluation of CellSAM. (a) Distribution of training annotations. (b-d) Comparison of segmentation error (1-F1) across diverse cell types and models, highlighting CellSAM's superior generalist performance.

A key insight is that bounding boxes are far more effective prompts for cells than single center-points, as they provide spatial constraints that help resolve ambiguous boundaries in crowded environments. Notably, while traditional models often see a performance drop when trained on too many diverse datasets, CellSAM actually improved as it saw more diverse data, suggesting it successfully learns a universal representation of "what is a cell." On the unseen LIVECell dataset, CellSAM-generalist achieved a 4x improvement in segmentation performance compared to the Cellpose-generalist model.

Conclusion and Future Work

CellSAM represents a major leap forward in generalist cell segmentation. To enable accessibility, the model has been integrated into DeepCell Label, allowing researchers to use CellSAM to generate initial labels that humans can then quickly correct. While successful, future work remains in extending the model to 3D volumetric data, handling complex morphologies like neurons, and leveraging multi-stain or temporal information to further improve accuracy and tracking.

Summary updated

BibTeX
@misc{israel2023foundation,
  author = {Uriah Israel and Markus Marks and Rohit Dilip and Qilin Li and Morgan Schwartz and Elora Pradhan and Edward Pao and Shenyi Li and Alexander Pearson-Goulart and Pietro Perona and Georgia Gkioxari and Ross Barnowski and Yisong Yue and David Van Valen},
  title = {{A Foundation Model for Cell Segmentation}},
  year = {2023},
  eprint = {2311.11004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.11004},
}
Figure