InstanSeg: an embedding-based instance segmentation algorithm optimized for accurate, efficient and portable cell segmentation
Thibaut Goldsborough, Ben Philps, Alan O'Callaghan, Fiona Inglis, Leo Leplat, Andrew Filby, Hakan Bilen, Peter Bankhead
TL;DR
InstanSeg tackles the demand for accurate, fast, and portable cell and nucleus instance segmentation in bioimages. It introduces an embedding-based pipeline that uses a seed-based strategy with positional and conditional embeddings, plus a neural instance head to generate per-pixel probabilities, enabling efficient clustering around seeds. The approach achieves state-of-the-art accuracy on six public datasets while delivering at least a 60% speedup, and it is serialized as TorchScript and exposed via a QuPath extension for broad hardware portability. Open-source Python code and a GUI-friendly QuPath integration facilitate deployment across diverse platforms and workflows.
Abstract
Cell and nucleus segmentation are fundamental tasks for quantitative bioimage analysis. Despite progress in recent years, biologists and other domain experts still require novel algorithms to handle increasingly large and complex real-world datasets. These algorithms must not only achieve state-of-the-art accuracy, but also be optimized for efficiency, portability and user-friendliness. Here, we introduce InstanSeg: a novel embedding-based instance segmentation pipeline designed to identify cells and nuclei in microscopy images. Using six public cell segmentation datasets, we demonstrate that InstanSeg can significantly improve accuracy when compared to the most widely used alternative methods, while reducing the processing time by at least 60%. Furthermore, InstanSeg is designed to be fully serializable as TorchScript and supports GPU acceleration on a range of hardware. We provide an open-source implementation of InstanSeg in Python, in addition to a user-friendly, interactive QuPath extension for inference written in Java. Our code and pre-trained models are available at https://github.com/instanseg/instanseg .
