Manuscript Offprint

arXiv:2608.29253

QCell: Recombining and Aligning Cell Queries for Overlapping Instance Segmentation

Yaroslav Prytula, Anton Popov, Dmytro Fishman

Yaroslav Prytula 1,2^{1,2}

yaroslav.prytula@ut.ee

s.prytula@ucu.edu.ua

Anton Popov 2,3^{2,3}

a.popov@ucu.edu.ua

Dmytro Fishman 1,4,5^{1,4,5}

dmytro.fishman@ut.ee

1^{1} Institute of Computer Science

University of Tartu, Tartu, Estonia

2^{2} Faculty of Applied Sciences

Ukrainian Catholic University,

Lviv, Ukraine

3^{3} Department of Electronic Engineering, Micro- and Biomedical Electronics Igor Sikorsky Kyiv Polytechnic Institute, Kyiv, Ukraine

4^{4} STACC OÜ, Tartu, Estonia

5^{5} Better Medicine OÜ, Tartu, Estonia

Abstract

Instance segmentation of overlapping cells in microscopy remains challenging due to semi-transparent structures that produce weak boundaries and mixed visual evidence in overlap regions. Existing methods address this through local regions of interest or shape priors but lack global reasoning across overlapping objects. We present QCell, a novel query-based model that de-overlaps cell instances in microscopy scenes. Our approach combines (i) an instance recombination module that decomposes and recombines query representations in latent space, enabling the model to reason about complete object structure under overlap, and (ii) a contrastive query alignment objective that combines distinctive instance feature learning and separation of overlapping cell queries. We additionally introduce a new Organoid dataset benchmark for overlapping cell segmentation. We show that QCell outperforms state-of-the-art methods across multiple benchmarks, achieving +2.2 AP and +2.7 AJI on ISBI2014. Code is available at https://github.com/SlavkoPrytula/QCell

Figure

DoNet

MaskDINO

QCell (ours)

Figure 1. Overlapping cells produce weak boundaries and ambiguous visual evidence. Compared to existing methods, QCell better preserves complete structures and separates neighboring instances.

© 2026. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.

2 PRYTULA, POPOV, FISHMAN: QCELL: RECOMBINING AND ALIGNING CELL QUERIES

1 Introduction

Cell instance segmentation is a fundamental step in microscopy image analysis, enabling downstream measurements of cellular morphology, spatial organization, and population-level behavior [1]. Across imaging modalities including brightfield, phase-contrast, and fluorescence, this task is challenging due to non-specific contrast between cell structures and background, high variability in cell morphology, noise, and unclear boundaries [2, 3, 4]. In dense cultures and cytology specimens, cells frequently form overlapping clusters. Unlike natural-image occlusion, where the occluded region is often visually absent, many microscopy modalities exhibit semi-transparent overlap where the hidden cell structure remains partially visible but with weak contrast and mixed visual evidence [1]. Overlapping regions, therefore, contain information from multiple instances, producing ambiguous boundaries and strong appearance entanglement between neighboring cells.

Resolving these overlapping instances requires amodal reasoning about the complete object extent from partial observations. Existing approaches address this through region-level decomposition [12, 13, 14, 15, 16, 17, 18, 19], shape priors [10, 12, 13], or multi-stage generative completion [10, 11]. While effective, these methods typically operate on local Region of Interest (RoI) features or depend on upstream predictions, limiting their ability to jointly reason over the full scene. For overlapping cells specifically, understanding how each instance relates to its neighbors is essential for determining which evidence belongs to which cell. Query-based segmentation models [8, 10] provide a natural fit for this problem, as each instance is represented by a query that attends globally to image features and interacts with all other queries, enabling the inter-instance communication needed to reason about shared overlap regions in the full scene context.

In this work, we introduce QCell, for overlapping cell instance segmentation. We argue that de-overlapping requires understanding the object structure in terms of its visible and hidden parts. To this end, we decompose each instance query into amodal, visible, and invisible sub-representations and recombine them with consistency regularization to improve complete object perception. To ensure that queries of overlapping cells remain distinguishable, we further introduce contrastive query learning that leverages denoising queries, which provide stable ground-truth-initialized representations during training, combining an instance-discriminative loss with a query alignment loss to separate queries in embedding space.

Our contributions are as follows:

– We propose query-level instance decomposition and recombination with consistency regularization to model amodal, visible, and invisible cell structure.

– We introduce DN-guided contrastive query learning with instance-discriminative and cosine alignment losses to improve separation of overlapping cells.

– We introduce a new Organoids benchmark for evaluating overlapping cell instance segmentation. 1^{1}

References (45)