Abstract
With recent advances in multiplexed imaging and spatial transcriptomic and proteomic technologies, cell segmentation is becoming a crucial step in biomedical image analysis. In recent years, Fully Convolutional Networks (FCN) have achieved great success in nuclei segmentation in in vitro imaging. Nevertheless, it remains challenging to perform similar tasks on in situ tissue images with more cluttered cells of diverse shapes. To address this issue, we propose a novel transfer learning, cell segmentation framework incorporating shape-aware features in a deep learning model, with multi-level watershed and morphological post-processing steps. Our results show that incorporation of geometric features improves generalizability to segmenting cells in in situ tissue images, using solely in vitro images as training data.
Introduction
Cell segmentation—the process of identifying the boundaries of individual cells in an image—is the foundation of spatial biology. Accurate isolation of cells is required to reliably measure gene expression or protein levels. While deep learning models like U-Net have mastered segmenting in vitro images (cells grown in a dish, usually well-separated and uniform), they often fail when applied to in situ tissue images. In real tissue, cells are "cluttered," overlapping, and exhibit highly irregular shapes. Furthermore, high-quality annotated datasets for tissue images are rare and expensive to produce. This study addresses the "generalization gap" by leveraging simple in vitro data to train models capable of handling the complex reality of in situ tissue analysis.
Methodology
The proposed framework introduces a three-pronged approach to improve segmentation generalizability:
1. Architecture: FPN with Residual Blocks
Instead of a standard U-Net, the framework utilizes a Feature Pyramid Network (FPN). While U-Net makes predictions only at the final layer, FPN utilizes feature maps from multiple resolution levels. This allows the model to capture both fine details (borders) and global context (cell bodies) simultaneously.
2. Shape-Aware Weight Maps (SAW)
To force the model to prioritize difficult regions, the loss function incorporates Shape-Aware Weight Maps (SAW). These maps assign higher weights to pixels at cell borders and within narrow, irregular shapes. Additionally, a square-root normalization technique for class counts is used to prevent the model from ignoring cells in sparse images.
3. Multi-level Watershed Post-processing
Standard watershed algorithms often over-segment cells, splitting a single nucleus into multiple parts. The proposed multi-level method operates in two rounds. First, it identifies "convex-like" (simple, round) cells to estimate the average cell size and diameter for a specific image. Second, it uses these learned estimates as constraints to "flood" more complex, cluttered regions, ensuring that non-convex cells are preserved rather than incorrectly split.
Results and Discussion
The study utilized the 2018 Data Science Bowl dataset (in vitro) for training and the TNBC (Triple-Negative Breast Cancer) MIBI dataset (in situ) for evaluation. The proposed framework (FPN + SAW + Multi-level Watershed) significantly outperformed baselines on the challenging MIBI tissue dataset.
Key quantitative results include:
- F1 Score: The full pipeline achieved an F1 score of 0.8397, compared to 0.7115 for a base U-Net.
- Intersection over Union (IoU): The model reached an IoU of 0.6021, a nearly 10% improvement over the next best model without the multi-level watershed.
These results suggest that geometry acts as a "universal language" in cell imaging. While the visual texture of lab-grown cells and cancer tissue cells differs, their geometric properties—borders, convexity, and spacing—follow similar rules. By focusing the model on these geometric priors, it becomes less sensitive to the specific imaging technology used.
Conclusion
This transfer learning framework demonstrates that incorporating geometric features and adaptive post-processing can bridge the gap between in vitro training and in situ application. Future work will explore extending this geometric framework to 3D volumetric data and incorporating topological priors to further improve the understanding of cell connectivity.
Summary updated