All models

InstanSeg

A U-Net with seed and embedding heads for instance segmentation of cells and nuclei in microscopy images.

Medical imaging · 149 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (31 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
3.8M
Operations
149
Framework
PyTorch
Recurrent
No
Published
2024
Cited by
69 (as of 29 November 2026)
Authors
Thibaut Goldsborough, Ben Philps, Alan O'Callaghan and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17580
Graph hash
be522a96b98b3456ad17c4ce5487e026fa294c432e18205b8a237846e36c3a91
Skeleton hash
a199c989884de9fb9fe2e1b30831ed42cbc7aaa488cab87b5d7fdf93eb5d8b2d
Architecture hash
cbda217b8d668e80d638d0bf543ffea1a5e1d6eb2297fb3e06aadace3a62e90b
Diagram SHA-256
286d949bfdf324059f12279155fd2f00b4652d320a92a751591720b198113343
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

InstanSeg is an embedding-based instance segmentation pipeline for identifying cells and nuclei in microscopy images. Building on a modified U-Net backbone, it uses a lightweight neural network to cluster pixel embeddings around optimally selected seeds.

A feature encoder and three feature heads turn the input image into a seed map, a positional embedding and a conditional embedding. Seed pixels are sampled at local maxima of the seed map, and the offsets between the positional embeddings and each seed embedding, along with the conditional embeddings, go to an instance segmentation head that outputs a probability map of each pixel belonging to that instance. Earlier work by Neven and colleagues used a Gaussian function to map a similarity metric to a probability of belonging to an instance; InstanSeg replaces that fixed form with a small learned network. The backbone is a modified version of the Cellpose backbone network, with the style vectors removed to improve translational invariance.

The paper reports approximately four million parameters for its backbone, around half the number of trainable parameters of the original Cellpose model. Using six public cell segmentation datasets, the authors report improved accuracy over the most widely used alternative methods while reducing the processing time by at least 60%. The whole pipeline, postprocessing included, can be compiled in TorchScript, which the README says allows it to run directly in QuPath.

Key idea. InstanSeg uses a lightweight neural network on a modified U-Net backbone to cluster pixel embeddings around optimally selected seeds for cell and nucleus segmentation.

  • InstanSeg
  • cell segmentation
  • nucleus segmentation
  • instance segmentation
  • embedding-based instance segmentation
  • microscopy
  • brightfield
  • digital pathology
  • QuPath
  • instanseg-torch

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{goldsborough2024instansegembeddingbasedinstancesegmentation,
      title={InstanSeg: an embedding-based instance segmentation algorithm optimized for accurate, efficient and portable cell segmentation}, 
      author={Thibaut Goldsborough and Ben Philps and Alan O'Callaghan and Fiona Inglis and Leo Leplat and Andrew Filby and Hakan Bilen and Peter Bankhead},
      year={2024},
      eprint={2408.15954},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2408.15954}, 
}