Abstract: Automatic cell segmentation in microscopy images works well with the support of deep neural networks trained with full supervision. Collecting and annotating images, though, is not a sustainable solution for every new microscopy database and cell type. Instead, we assume that we can access a plethora of annotated image data sets from different domains (sources) and a limited number of annotated image data sets from the domain of interest (target), where each domain denotes not only different image appearance but also a different type of cell segmentation problem. We pose this problem as meta-learning where the goal is to learn a generic and adaptable few-shot learning model from the available source domain data sets and cell segmentation tasks. The model can be afterwards fine-tuned on the few annotated images of the target domain that contains different image appearance and different cell type. In our meta-learning training, we propose the combination of three objective functions to segment the cells, move the segmentation results away from the classification boundary using cross-domain tasks, and learn an invariant representation between tasks of the source domains. Our experiments on five public databases show promising results from 1- to 10-shot meta-learning using standard segmentation neural network architectures.
Introduction
Deep learning has revolutionized medical image segmentation, but it suffers from a significant "data hunger" problem. Training a high-performing model typically requires thousands of expert-annotated images. In microscopy, this is a major bottleneck: every new experiment might involve a different cell type (e.g., nuclei vs. mitochondria) or a different imaging technique (e.g., fluorescence vs. electron microscopy), making manual annotation for every new project unsustainable.
While techniques like domain adaptation exist, they usually assume the task remains the same (e.g., segmenting the same type of nuclei across different labs). This research tackles a harder, more realistic scenario: few-shot task generalization. The goal is to leverage existing annotated datasets to learn a generic "how to segment cells" prior that can be rapidly adapted to a completely new cell type with minimal human effort (1 to 10 annotated samples).
Methodology
The framework utilizes an optimization-based meta-learning algorithm called Reptile. Unlike standard training, which minimizes loss on a single dataset, meta-learning treats different datasets as distinct "tasks" and seeks a weight initialization that is just a few gradient steps away from an optimal solution for any task.
Multi-Objective Loss Function
The core technical contribution lies in the multi-objective loss function used during meta-training:
- Weighted Binary Cross-Entropy ($L_{BCE}$): The standard supervised loss, weighted to handle the typical imbalance between cell pixels (foreground) and background.
- Entropy Regularization ($L_{ER}$): Applied to images from a different source domain without labels. It forces the model to make "confident" (more binary) predictions on unseen data, pushing results away from uncertain classification boundaries.
- Distillation Loss ($L_D$): Since cells share common morphological features (membranes, textures), this loss minimizes the Euclidean distance between latent representations of images from different domains, forcing the model to learn an invariant "feature language."
Experimental Setup
The study evaluated two architectures—a lightweight U-Net and a Fully Convolutional Regression Network (FCRN)—across five diverse public microscopy datasets:
- B5 (BBBC005): Synthetic fluorescent stain cells.
- B39 (BBBC039): Fluorescent nuclei.
- ssTEM: Mitochondria in neural tissues (Serial Section Transmission Electron Microscopy).
- EM: Electron microscopy images of mitochondria and synapses.
- TNBC: Histology images from Triple Negative Breast Cancer biopsies.
A leave-one-dataset-out protocol was used: training on four datasets and testing few-shot adaptation on the fifth, unseen dataset.
Results and Discussion
The proposed meta-learning approach consistently outperformed standard transfer learning across all datasets and shot counts (1, 3, 5, 7, 10).
Key Findings
- Adaptability: Standard transfer learning often overfits source data. Meta-learning explicitly trains for adaptability, making it significantly more robust when the target cell type differs drastically from the training data.
- Efficiency: Meta-learning converged 40x to 60x faster than traditional training methods. The results suggest a "5-shot sweet spot," where five annotated images provide a massive jump in performance over 1-shot, with diminishing returns thereafter.
- Visual Quality: As shown in Figure 1, the meta-learning approach (column b) produces significantly cleaner segmentations with fewer false positives (red) and false negatives (green) compared to traditional transfer learning (column c), particularly in challenging modalities like EM and TNBC.
Limitations
Performance varies based on domain correlation; for example, adapting to TNBC (histology) was more difficult than adapting to EM, likely because the source pool lacked enough histology-like features. Additionally, the weights for entropy ($\alpha$) and distillation ($\beta$) losses currently require grid searching to optimize.
Conclusion
By combining meta-learning with cross-domain entropy regularization and feature distillation, this framework enables effective cell segmentation with minimal annotation. This approach paves the way for more sustainable and scalable automated analysis in diverse microscopy research environments.
Summary updated