[Paper Review] Embedding-based Instance Segmentation in Microscopy
This paper introduces EmbedSeg, a lightweight, end-to-end instance segmentation method for 2D and 3D microscopy images that uses pixel-wise spatial embeddings and uncertainty-aware clustering to achieve state-of-the-art performance. It outperforms existing methods on multiple datasets while requiring only 7 GB GPU memory, enabling training on consumer-grade GPUs.
Automatic detection and segmentation of objects in 2D and 3D microscopy data is important for countless biomedical applications. In the natural image domain, spatial embedding-based instance segmentation methods are known to yield high-quality results, but their utility for segmenting microscopy data is currently little researched. Here we introduce EmbedSeg, an embedding-based instance segmentation method which outperforms existing state-of-the-art baselines on 2D as well as 3D microscopy datasets. Additionally, we show that EmbedSeg has a GPU memory footprint small enough to train even on laptop GPUs, making it accessible to virtually everyone. Finally, we introduce four new 3D microscopy datasets, which we make publicly available alongside ground truth training labels. Our open-source implementation is available at https://github.com/juglab/EmbedSeg.
Motivation & Objective
- Address the lack of effective instance segmentation methods for complex, irregularly shaped objects in 2D and 3D microscopy images.
- Overcome limitations of axis-aligned bounding box methods (e.g., Mask R-CNN) and star-convexity assumptions (e.g., StarDist) in handling diverse morphologies.
- Enable direct 3D instance segmentation with minimal GPU memory usage, making it accessible on standard hardware.
- Provide a new benchmark by releasing four high-quality 3D microscopy datasets with ground truth annotations.
- Develop a unified framework that generalizes across 2D and 3D data using spatial embeddings and learnable clustering bandwidths.
Proposed method
- Each pixel predicts a 3D offset vector to a unique embedding point within its object instance, enabling instance-specific clustering.
- A separate uncertainty vector per pixel estimates the reliability of the predicted embedding, improving robustness to noise and ambiguity.
- A seediness score is predicted per pixel to identify high-confidence centers of object instances, aiding in instance separation.
- The model uses a branched ERF-Net architecture with shared encoder and split heads for offset, uncertainty, and seediness prediction.
- Training is optimized via a loss function that maximizes IoU between predicted and ground truth masks through embedding consistency and clustering constraints.
- Clustering is performed during inference using the predicted embeddings and bandwidths, with each cluster corresponding to one object instance.
Experimental results
Research questions
- RQ1Can embedding-based instance segmentation be effectively adapted to 2D and 3D microscopy data with complex, non-axis-aligned object shapes?
- RQ2Does the proposed method outperform existing state-of-the-art baselines on both 2D and 3D microscopy instance segmentation benchmarks?
- RQ3Can the method be trained and deployed efficiently on low-resource hardware, such as laptop GPUs?
- RQ4How does the inclusion of uncertainty and seediness heads improve segmentation performance compared to standard embedding-only approaches?
- RQ5Can the method generalize across diverse biological imaging modalities and object morphologies in 3D volumetric data?
Key findings
- EmbedSeg achieves state-of-the-art performance on three 2D and four 3D microscopy datasets, outperforming existing baselines including U-Net, Cellpose, and StarDist-3D.
- On the Paryhale-Nuclei-IGFL 2D dataset, EmbedSeg achieves a mean AP of 0.581 at IoU threshold 0.5, surpassing the best baseline (Cellpose) with 0.545.
- On the 3D Mouse-Organoid-Cells-CBG dataset, EmbedSeg achieves a mean AP of 0.581 at IoU 0.5, outperforming StarDist-3D (0.472) and U-Net (0.280).
- EmbedSeg requires only 7 GB of GPU memory, enabling training on consumer-grade GPUs, while StarDist-3D requires 20 GB and is thus less accessible.
- The method generalizes well across diverse 3D datasets, including mouse organoids, platynereis embryos, and skull nuclei, with consistent performance gains.
- The release of four new 3D microscopy datasets with ground truth labels provides a valuable benchmark for future research in 3D instance segmentation.
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.