Skip to content
AI.info

Research

Unsupervised Learning of Cell Instances with Generative Routing Pyramids

Overview Research area: Unsupervised computer vision and object-centric generative modeling applied to microscopy image analysis (cell instance segmentation and single-cell phenotype representation).

arXiv
2608.16810
Published
2026-08-17
Authors
Ziwen Liu, Martin Weigert

AI summary

Overview

  • Research area: Unsupervised computer vision and object-centric generative modeling applied to microscopy image analysis (cell instance segmentation and single-cell phenotype representation).
  • Technical level: Advanced. The method combines a variational encoder, a coarse-to-fine routing pyramid, a Markov-chain ancestry interpretation and mixture-model phenotype analysis; readers need familiarity with instance segmentation metrics and generative latent-variable models.
  • Scope: The paper introduces Generative Routing Pyramids, an object-centric generative model that learns cell instances and cell-level representations directly from unlabeled 2D microscopy images, and evaluates it on three cell culture segmentation datasets plus a two-channel drug perturbation assay.

What This Paper Is About

Most successful cell segmentation methods are supervised: they need manual annotations of large image sets, and they treat instance segmentation and cell representation as two separate stages. This paper asks whether a single generative model, trained only on unlabeled microscopy images, can simultaneously recover instance masks and object-level latent representations of cell morphology. The proposed answer is a coarse-to-fine reconstruction pyramid in which every pixel is routed back to a sparse set of latent "sources," so the same learned routing that generates the image also defines the instances.

Key Contributions

  1. Generative Routing Pyramids: an object-centric generative model that predicts foreground and background latent fields, applies a sparsity-regularized presence map to mark object candidates, and reconstructs the image in a single decoder pass over all candidates.
  2. A routing-pyramid decoder: at each layer, every finer site softly selects a parent in a valid 3×3 neighborhood, forming a directed acyclic graph whose composed transitions yield a pixel-to-seed association matrix that directly defines instance masks.
  3. Joint instance segmentation and object representation: the same seed components that define masks also define embeddings (presence-weighted averages of foreground posterior means) used for phenotype analysis, avoiding separate data curation and training stages for segmentation and representation.
  4. Scalability argument and empirical demonstration: the model predicts all candidate sources in one O(N) forward pass and reconstructs a shared spatial feature field rather than rendering each candidate separately (reading out the K instance masks costs O(KN)), which the authors contrast with the scaling of MONet, IODINE, Slot Attention, DINOSAUR, SPACE and Cellulus; this is demonstrated on fluorescence and phase-contrast cell culture data and on a drug dilution series.

Main Findings

  • Best unsupervised segmentation results: Among the unsupervised methods compared, Generative Routing Pyramids obtains the best score on nearly every dataset and metric, improving panoptic quality over the strongest unsupervised baseline (Cellulus) on all three datasets: PQ 0.867, 0.800, 0.518 versus 0.787, 0.756, 0.370 for Allen, Fluo-HeLa and PhC-PSC respectively.
  • Close to a supervised reference: The method is second only to the supervised Cellpose-SAM reference in most settings (for example Fluo-HeLa PQ 0.800 versus 0.843; PhC-PSC PQ 0.518 versus 0.721).
  • Better than the supervised reference on the Allen dataset at strict overlap: On Allen, the method exceeds Cellpose-SAM in panoptic quality (0.867 versus 0.859) and in F1 at an IoU threshold of 0.9 (0.649 versus 0.256), indicating tighter agreement with ground-truth nuclear boundaries.
  • Minimal, dataset-independent post-processing: Cellulus and Otsu use dataset-specific post-processing parameters (object size 42/52 for Allen, 26/26 for Fluo-HeLa, 19/16 for PhC-PSC) selected on the test set, whereas the proposed method uses the same post-processing on all datasets (presence threshold τ_s = 0.5, mass threshold τ_m = 0.1, minimum area 100 pixels on the model-resolution grid).
  • Difficult phase-contrast boundary case: The main exception is F1 at IoU 0.9 on PhC-PSC, where every method scores below 0.1 (the proposed method 0.001), reflecting the difficulty of pixel-accurate boundaries in low-resolution phase-contrast images.
  • Latent codes encode perturbation phenotype: In a two-channel fluorescence assay of U2OS cells treated with a dilution series of LY294002 or wortmannin (BBBC013), PCA and UMAP of the object latents form distinct clusters by dose, both for the series-dilution split and the held-out controls.
  • Perfect control classification: A two-component Gaussian mixture model fit to the training-split object latents, with identities assigned by comparison to held-out controls and thresholding at 0.5 on average GMM responsibilities, recovers the positive/negative classes with 100% accuracy for the 16 control replicates.
  • Generative and retrieval use of the latent space: Sampling from the two Gaussian components produces generated 32×32 crops consistent with the perturbation-induced phenotypic variation, and nearest-neighbor retrieval (Euclidean distance to component means) retrieves cells with the corresponding morphologies.
  • Training setup: A single architecture with latent dimension d = 64 was trained from scratch on 256×256 crops for 200 epochs with batch size 64, using only single-channel images; encoder stride δ = 8 and background pooling stride δ_bg = 8, sparsity exponent α = 0.5, loss weights λ_rec = 1.0, λ_fg = 0.01, λ_bg = 0.05, λ_flow = 0.005, with λ_sparsity = 0.5 for Allen and PhC-PSC and 0.2 for Fluo-HeLa, and linear warmup of regularization terms over the first 10 epochs.

Methodology in Plain English

The model is trained to do one thing: reconstruct an unlabeled microscopy image. An encoder looks at the image and produces two spatial fields of latent codes, one for foreground candidates and one for background. A learned "presence" gate decides, at each coarse location, whether the foreground code or the smoothed background code is used. A penalty encourages this gate to be active in only a few compact regions, so active regions become object seeds.

The decoder then builds the image from coarse to fine. At each step, every finer location softly chooses one nearby parent location on the coarser grid, and the decoder values and presence are pulled along those choices; the result is a pyramid-shaped graph in which all pixels eventually trace back to the coarse seeds. Because this routing is normalized, it can be read as the probability that a pixel's "mass" flows to a particular seed, and composing the layer-wise choices gives a pixel-to-seed association matrix. Thresholding and grouping the coarse seeds into connected components, then assigning each pixel to the component with the largest routed mass above a threshold, produces instance masks. Averaging the foreground latents of each component gives one embedding per cell. The whole model is trained end-to-end with a reconstruction loss, KL terms pulling both latent fields toward standard-normal priors, a sparsity penalty, and a flow penalty on the expected squared distance of each routing step.

Why This Matters

  • Impact on research: It shows that recurring visual structure within a single experimental setting can be exploited to learn cell instances without manual annotations, at a per-image cost that scales with the number of pixels rather than coupling every object to a full-image render. It also unifies two stages that microscopy pipelines usually treat separately (segmentation and representation), and the authors describe the learned association matrix as producing a Cellpose-like flow readout while being trained without flow targets or instance annotations.
  • Real-world applications mentioned or directly demonstrated in the paper:
    • Cell counting, morphological profiling and tracking in quantitative bioimage analysis.
    • Nuclear and whole-cell instance segmentation across fluorescence and phase-contrast modalities.
    • Phenotypic profiling in drug perturbation assays, including dose-response modeling of cells treated with LY294002 or wortmannin.
    • Generative modeling and retrieval of cell crops corresponding to learned phenotype clusters.
  • Industry relevance: Label-free segmentation and representation learning reduces the recurring cost of manual annotation whenever specimens, imaging modalities or acquisition conditions change, which is relevant to pharmaceutical screening, cell-culture quality control and imaging-based assay development; the authors note that the method is currently trained separately per dataset and assumes compact objects of similar appearance against a smoother background.

Future Directions

  • Generalization across datasets: The authors currently train a separate model for each dataset and state that generalization across diverse samples remains a question for future work.
  • More complex scenes: The method assumes compact objects of similar appearance against a smoother background; application to tissue imaging is described as unexplored.
  • Harder modalities and resolution: The low F1 at IoU 0.9 on PhC-PSC (every method below 0.1) points to pixel-accurate boundary prediction in low-resolution phase contrast as an open problem.
  • Extending the downstream use of object latents: The paper demonstrates classification via a two-component Gaussian mixture model, generation by sampling from the components, and retrieval by nearest neighbors; further uses of the same object embeddings for phenotype analysis are left open.

Target Audience

Researchers and practitioners in computational bioimage analysis, computer vision researchers working on object-centric generative models and unsupervised instance segmentation, and machine learning engineers in life-science or pharmaceutical imaging settings who need cell-level measurements without new manual annotations. Readers with a background in segmentation metrics (F1 at IoU thresholds, panoptic quality), variational latent-variable models and microscopy modalities will get the most out of it.

Authors’ abstract

Identifying and representing object instances such as cells or nuclei is a common task in microscopy image analysis. Established machine learning workflows typically use supervised detection or segmentation followed by feature extraction or classification, which requires manual annotations and treats instance segmentation and cell representation as separate stages. We describe a new unsupervised method for cell instance segmentation and phenotypic classification from unlabeled microscopy images. Our method is based on reconstructing each image using a coarse-to-fine routing pyramid that associates pixels with spatially sparse latent sources. The resulting pixel-to-latent associations yield instance masks, while the source latents encode cell morphology. We demonstrate competitive performance in instance segmentation across diverse cell morphologies and imaging modalities, as well as generative modeling of cellular phenotypes under perturbations. Source code and checkpoints are available at https://github.com/weigertlab/routing-pyramids.

Read the original paper