CNN-based Preprocessing to Optimize Watershed-based Cell Segmentation in 3D Confocal Microscopy Images

Dennis Eschweiler, Thiago Vallin Spina, Rohan C. Choudhury, Elliot Meyerowitz, Alexandre Cunha, Johannes Stegmaier · DOI

Abstract

Accurate 3D cell segmentation in confocal microscopy is essential for quantitative developmental biology but is frequently hindered by signal degradation in deep tissues and membrane anisotropy. This paper introduces a hybrid pipeline that leverages a 3D U-Net to perform three-class semantic preprocessing—identifying cell centroids, membranes, and background. These predictions serve as high-quality seeds and constraints for a Seeded Watershed (SWS) algorithm. The resulting method significantly outperforms traditional filtering and existing state-of-the-art tools, maintaining high accuracy even in low-contrast, deep-tissue regions.

Introduction

Quantitative analysis of 3D cell morphology is vital for understanding developmental biology, yet segmenting cells in 3D confocal microscopy remains a significant challenge. Researchers typically face three primary hurdles:

  1. Signal Degradation: As light penetrates deeper into specimens, scattering increases and fluorescence intensity diminishes, making membranes difficult to distinguish.
  2. Anisotropy: Membranes parallel to the detection plane often appear weak or incomplete, creating "holes" in cell boundaries.
  3. Scale and Complexity: The volume of 3D data precludes manual annotation, while densely packed multi-instance scenes cause standard deep learning models to struggle with instance separation.

Traditional methods relying on hand-crafted filters (such as Hessian-based filtering) often require extensive parameter tuning and fail in the noisy, low-contrast environments of deep tissue.

Methods

The proposed pipeline utilizes a two-stage approach to bridge the gap between semantic deep learning and structural instance segmentation.

1. Semantic Preprocessing

A modified 3D U-Net is trained to perform three-class semantic segmentation. Rather than predicting membranes alone, the network identifies:

  • Cell Centroids: Used as unambiguous "seeds" for the watershed algorithm.
  • Cell Membranes: Defining the structural boundaries.
  • Background: Masking out areas outside the specimen.

To address the extreme class imbalance—where centroids occupy significantly fewer voxels than the background—the authors implemented a customized weighted Binary Cross Entropy (BCE) loss function. Weights are calculated dynamically for each training patch, ensuring the network prioritizes rare centroid pixels.

Visual representation of the segmentation pipeline: (A) Raw confocal image, (B) CNN-predicted seeds (green), membranes (blue), and background (red), and (C) Final instance segmentation.

2. Instance Segmentation

The output probability maps are processed via a Seeded Watershed (SWS) algorithm. The membrane map is converted into a Euclidean distance map, while the predicted centroids serve as markers. The watershed algorithm "floods" the distance map starting from these seeds, terminating at predicted membrane boundaries or the background mask. This approach ensures exactly one segment per predicted cell, preventing the over-segmentation common in noisy data.

Key Results

The U-Net + SWS pipeline was evaluated using 3D confocal stacks of Arabidopsis thaliana shoot apical meristems, compared against established methods like MARS and ACME.

  • Accuracy: The proposed method achieved a Jaccard Index (JI) of 0.870, significantly higher than MARS (0.776) and ACME (0.802).
  • Boundary Precision: The model reached a Boundary F1-score of 0.990, demonstrating exceptional fidelity in capturing membrane shapes.
  • Depth Robustness: A critical finding was the method's performance across Z-layers. While all methods show degradation at greater depths, the seeded approach maintained significantly higher accuracy in deep-tissue layers where traditional filtering fails.
Quantitative performance comparison showing Jaccard Index and Boundary F1-Score across different tissue depths (px).

Conclusion

By combining the semantic power of CNNs with the structural precision of the watershed algorithm, this hybrid approach provides a robust solution for 3D cell segmentation. The use of CNN-predicted centroids as seeds is the primary driver of success in deep-tissue regions. Future work will explore incorporating simulated specimens into training data to further improve the accuracy of initial probability maps and move closer to error-free automatic 3D segmentation.

Summary updated

BibTeX
@inproceedings{eschweiler2018cnn,
  author = {Dennis Eschweiler and Thiago Vallin Spina and Rohan C. Choudhury and Elliot Meyerowitz and Alexandre Cunha and Johannes Stegmaier},
  title = {{CNN-based Preprocessing to Optimize Watershed-based Cell Segmentation in 3D Confocal Microscopy Images}},
  booktitle = {ISBI},
  year = {2018},
  doi = {10.1109/isbi.2019.8759242},
}
Figure