CellMixer: Annotation-free Semantic Cell Segmentation of Heterogeneous Cell Populations

Mehdi Naouar, Gabriel Kalweit, Anusha Klett, Yannick Vogt, Paula Silvestrini, Diana Laura Infante Ramírez, Roland Mertelsmann, Joschka Boedecker, Maria KalweitarXiv 2023

Abstract

In recent years, several unsupervised cell segmentation methods have been presented, trying to omit the requirement of laborious pixel-level annotations for the training of a cell segmentation model. Most if not all of these methods handle the instance segmentation task by focusing on the detection of different cell instances ignoring their type. While such models prove adequate for certain tasks, like cell counting, other applications require the identification of each cell's type. In this paper, we present CellMixer, an innovative annotation-free approach for the semantic segmentation of heterogeneous cell populations. Our augmentation-based method enables the training of a segmentation model from image-level labels of homogeneous cell populations. Our results show that CellMixer can achieve competitive segmentation performance across multiple cell types and imaging modalities, demonstrating the method's scalability and potential for broader applications in medical imaging, cellular biology, and diagnostics.

Introduction

In digital pathology and cellular biology, semantic segmentation—the ability to identify both the location and the specific type of a cell—is a critical requirement for automated diagnostics. However, deep learning models typically require vast amounts of pixel-level annotated data. Manually tracing the boundaries of thousands of individual cells, such as morphologically diverse Peripheral Blood Mononuclear Cells (PBMCs), is time-intensive, expensive, and prone to human error.

While unsupervised methods have made strides in instance segmentation (identifying individual cell "blobs"), they often fail at semantic segmentation (distinguishing between cell types). CellMixer addresses this bottleneck by introducing a weakly-supervised framework that eliminates the need for manual pixel-level masks, relying instead on easily obtainable image-level labels from homogeneous cell populations.

Methodology: The CellMixer Pipeline

The CellMixer framework utilizes a four-stage process to transform simple homogeneous data into complex training signals for semantic segmentation.

Overview of the CellMixer pipeline, from homogeneous recordings to synthetic mixture generation and model training.
  1. Homogeneous Recording: The process begins by recording populations consisting of a single cell type (e.g., Jurkat cells, K562 cells, or PBMCs). Since the population is pure, every cell in the frame shares the same image-level label.
  2. Unsupervised Foreground Extraction: To generate initial masks without human intervention, a classical computer vision approach is employed. Sobel operators detect edges, morphological erosion breaks small connections between adjacent cells, and adaptive thresholding separates the cells from the background.
  3. Background-based Normalization: Before creating mixtures, images are normalized for brightness and saturation. Crucially, this normalization is performed based on background pixels rather than the entire image. This ensures that synthetic mixtures appear as cohesive, single microscopy slides rather than disjointed patches.
  4. Mixup Augmentation: This "secret sauce" involves blending two different homogeneous images and their corresponding unsupervised masks. This creates a synthetic heterogeneous population, forcing the model to learn subtle morphological differences between cell types within a shared environment.

The final architecture employs a high-performance DINOv2 encoder paired with a Segmenter decoder, trained exclusively on these artificially mixed images.

Experimental Setup

The study evaluated the framework using brightfield microscopy images at 20x magnification.

  • Training Data: Homogeneous populations of Jurkat cells (2,405 images), K562 cells (1,603 images), and PBMCs (588 images).
  • Evaluation Data: A test set of 152 partially annotated images of real-world heterogeneous cell mixtures, expert-labeled to provide a ground-truth benchmark.

Results and Discussion

A key finding was the "Neighborhood Bias" problem: models trained only on homogeneous images often assume that all nearby foreground pixels belong to the same class. CellMixer's Mixup strategy explicitly breaks this bias by teaching the model that different cell types can coexist in close proximity.

Qualitative comparison between Ground Truth, Baseline, and CellMixer across various cell mixtures.

As shown in Figure 2, CellMixer significantly outperforms baseline models trained on homogeneous data without the mixing strategy. While the baseline often mislabels entire clusters as a single type (notably in rows 2, 3, and 6), CellMixer correctly identifies individual cell types even when they are touching.

Quantitatively, on real Jurkat and K562 mixtures, CellMixer achieved a Mean Intersection over Union (mIoU) of approximately 72%, compared to the baseline's ~51%. In challenging PBMC mixtures, CellMixer maintained high accuracy (e.g., 95.76% mean accuracy for Jurkat cells), whereas the baseline performance dropped sharply.

Conclusion and Future Work

CellMixer demonstrates that competitive semantic segmentation is possible without manual pixel-level annotations. By leveraging synthetic mixtures of homogeneous populations, the method bridges the gap between image-level labeling and pixel-level understanding.

However, challenges remain in high-density environments where cells form dense clusters or overlap significantly. Future research will focus on multi-label segmentation to handle overlapping cells and improving augmentation strategies to generate more realistic cell "clumps," further mimicking the complexity of clinical samples.

Summary updated

BibTeX
@misc{naouar2023cellmixer,
  author = {Mehdi Naouar and Gabriel Kalweit and Anusha Klett and Yannick Vogt and Paula Silvestrini and Diana Laura Infante Ramírez and Roland Mertelsmann and Joschka Boedecker and Maria Kalweit},
  title = {{CellMixer: Annotation-free Semantic Cell Segmentation of Heterogeneous Cell Populations}},
  year = {2023},
  eprint = {2312.00671},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.00671},
}
Figure