TL;DR
This paper introduces a zero-shot, fully unsupervised cell tracking framework that integrates Meta's Segment Anything 2 (SAM2) and SAM-Med3D. By leveraging the foundation models' general segmentation and video memory capabilities, the method achieves competitive tracking and segmentation accuracy across diverse 2D and 3D microscopy datasets without requiring any manually labeled training data or dataset-specific fine-tuning.
What Problem Does This Paper Address?
Tracking individual cells and detecting division events (mitosis) in time-lapse microscopy is fundamental for understanding tissue development and disease progression. However, it is an algorithmic nightmare: images often suffer from low signal-to-noise ratios, blurry boundaries, dense cell clusters, and identical-looking objects.
While deep learning has advanced the field, existing state-of-the-art methods rely heavily on large, manually annotated datasets. Because microscopy data varies wildly across imaging modalities (e.g., phase-contrast vs. fluorescence microscopy), a model trained on one dataset rarely generalizes to another. The authors tackle this bottleneck by creating a tracking pipeline that requires zero manual annotations and generalizes out-of-the-box.
Methods
The authors propose two distinct pipelines depending on the dimensionality and scale of the data:
1. Cell Linking in 2D and Small 3D Datasets
For scenarios where a set of pre-segmented cell masks is already available, the framework uses a backward-propagation linking strategy.
Starting from the final frame, the algorithm crops local patches around a cell's center and feeds consecutive frames to SAM2 as a short video sequence. It uses the known mask at time $t$ to generate bounding box and point prompts, tasking SAM2 to predict the corresponding mask in the previous frame ($t-1$). Mitosis is naturally detected when two distinct masks at time $t$ link back to the same parent mask at $t-1$.
2. Simultaneous Tracking and Segmentation in Large-Scale 3D Datasets
For massive 3D datasets where manual or clean pre-segmentation is unfeasible, the authors switch to a forward-propagation approach that segments and tracks simultaneously.
- Rough Initialization: A simple, unsupervised method (like watershed or Laplacian of Gaussian) generates rough initial masks to fine-tune SAM-Med3D (a volumetric medical foundation model) on local patches.
- Feature Matching via SAM2: For a tracked cell at time $t$, the algorithm identifies neighbor candidates at $t+1$. It uses SAM2's image and memory encoders to extract high-level spatial-semantic feature vectors for the target cell and its candidates.
- Linking & Mitosis Detection: Cells are linked based on the highest cosine similarity of their memory features. If two candidates share a highly similar score (within a 0.1 difference), they are classified as daughter cells from a mitotic event.
- 3D Mask Generation: Once the correct center is linked at $t+1$, the fine-tuned SAM-Med3D generates the final 3D volumetric mask.
Datasets
The framework was evaluated on 13 blind test datasets from the international Cell Tracking Challenge (CTC). These datasets span a wide variety of cell types and imaging techniques, including:
- 2D Modalities: Fluo-N2DH-GOWT1, PhC-C2DL-PSC, Fluo-C2DL-MSC, BF-C2DL-MuSC, DIC-C2DH-HeLa.
- 3D Modalities: Fluo-N3DH-CE, Fluo-N3DH-CHO, Fluo-N3DL-TRIC, Fluo-N3DL-TRIF.
No ground-truth tracking annotations were used during the development or execution of this method.
Key Insights and Ideas
- Repurposing Video Memory for Biology: Instead of treating cell tracking as a complex global optimization problem (like Integer Linear Programming), this method cleverly exploits SAM2’s internal memory encoder. SAM2 treats consecutive microscopy frames as a video, tracking visual and semantic features across time.
- Localized Processing for Scalability: Large-scale 3D microscopy datasets can be gigabytes per frame. By saving data in Zarr format and processing only small, localized patches around candidate cells, the pipeline drastically cuts down computational overhead and allows for easy parallelization.
- The Power of Foundation Model Synergy: Combining SAM2 (excellent at temporal feature matching and 2D mask propagation) with SAM-Med3D (specialized in volumetric medical data) yields a robust 3D tracking pipeline without needing any manual annotations.
Key Results
The unsupervised framework achieved performance on par with, and sometimes exceeding, fully supervised state-of-the-art models:
- Top-3 Performance: Across all 13 CTC datasets, the method averaged a top-3 finish in the Linking Accuracy (LNK) metric.
- Large-Scale 3D Tracking: On massive 3D datasets (Fluo-N3DL-TRIC/TRIF), the pipeline ranked 2nd in tracking accuracy (TRA) and 3rd in segmentation accuracy (SEG) on average, outperforming several heavily supervised pipelines.
Limitations and Future Work
Despite its strong performance, the authors note a few key limitations:
- Large Displacements: The local patch-cropping strategy struggles when cells exhibit massive spatial movements or when time intervals between frames are too large, causing cells to jump out of the search radius.
- Biological Metric Discrepancy: While the model scored exceptionally high in pure linking accuracy (LNK), its biological accuracy (BIO) score—which heavily weights long-term lineage consistency—was lower. Because the model focuses primarily on local, consecutive frames, it can occasionally suffer from ID switches or track breakages over long time horizons.
Future Directions: The authors plan to integrate global motion prediction models to handle large cell displacements and incorporate life-cycle prediction models to improve long-term lineage tracking.
Summary updated