Abstract
Deep learning segmentation and fluorescence imaging techniques allow the cellular morphology of living embryos to be constructed spatiotemporally. These development processes involve numerous molecules distributed at the subcellular scale, such as cell adhesion (E-cadherin), which accumulate at cell-cell interfaces to regulate intercellular connection. However, quantifying molecular distributions within specific subcellular regions across the entire embryo, where cell movement and molecular redistribution occur rapidly, is challenging due to the need for simultaneous cell morphology reconstruction and lineage tracing due to photobleaching and phototoxicity. We report a transformer-based pipeline, CTransformer, that establishes a 4D cellular morphology map before the 550-cell (late) stage. CTransformer constructed 4D cellular morphology atlases, reaching 80% accuracy at the 550-cell stage. Through this advanced architecture, we use only one channel to reconstruct cell morphology and achieve cell tracing. With each cell's morphology as a reference, the distribution of specific molecules throughout the cell body and at cell interfaces can be quantitatively measured in another fluorescence channel. We apply this methodology to track E-cadherin during embryonic development of the worm Caenorhabditis elegans, from fertilization to gastrulation. Our results reveal that E-cadherin is tightly regulated across individual embryos, both within single cells and at cell-cell interfaces, displaying an anterior-posterior gradient and cell- and lineage-specific patterns. Furthermore, its spatiotemporal heterogeneity influences cell mechanics and embryonic morphogenesis, helping explain how C. elegans achieves stereotypical developmental patterns at cellular resolution.
Introduction
The spatiotemporal reconstruction of cellular morphology in living embryos is a cornerstone of developmental biology. Establishing a "4D map"—tracking both the shape and lineage of every cell over time—is essential for understanding how complex organisms form. Traditionally, this requires dual-channel fluorescence imaging: one channel for cell nuclei to facilitate lineage tracing and another for cell membranes to define morphology.
However, this approach faces significant biological and technical hurdles. Increased laser exposure for multiple channels leads to phototoxicity and photobleaching, potentially altering the embryo's natural development. Furthermore, as embryos progress to late stages, such as the 550-cell stage in C. elegans, cell density increases and shapes become irregular, making automated segmentation and tracking prone to error propagation.
Methods: The CTransformer Framework
To address these challenges, we present CTransformer, a deep-learning pipeline that reconstructs 3D cell morphology and tracks lineages using only a single cell membrane fluorescence channel. The framework consists of three integrated modules:
- TUNETr (Topology-constraint U-shape Nucleus-prompting Euclidean distance transform Transformer): This module serves as the segmentation engine. Utilizing a Swin Transformer-based U-Net architecture, it captures complex 3D features. A key innovation is the use of a Topological Wasserstein Distance Loss, which ensures that segmented membranes remain continuous and biologically plausible, even in low-signal regions.
- m2nGAN (Membrane-to-Nucleus GAN): To enable lineage tracing without a dedicated nucleus channel, CTransformer employs a Generative Adversarial Network to synthesize "pseudo-nuclei" from the centroids of segmented membranes. These high-contrast synthetic signals often outperform real fluorescent labels in dense late-stage embryos.
- MolQuantifier: By consolidating morphology and lineage tasks into a single channel, the second imaging channel is "freed" to quantify the distribution of specific molecules, such as the adhesion protein E-cadherin, at subcellular resolutions.
Results
Performance Benchmarks
CTransformer was evaluated against nine state-of-the-art models using a dataset of 16,922 dual-channel volumetric images from 48 C. elegans embryos. The model achieved a superior Dice score of 0.908, significantly outperforming traditional architectures like 3DUNet++ and SwinUNETR (0.888). Notably, CTransformer maintained approximately 80% accuracy at the 550-cell stage and successfully reconstructed 96.5% of cell objects, whereas competing methods like StarDist3D and CShaper++ achieved 62.0% and 83.7% respectively.
Biological Discovery: E-cadherin Dynamics
Using the MolQuantifier module, we mapped the dynamics of E-cadherin (HMR-1) during embryonic development. Our analysis revealed a distinct anterior-posterior gradient and showed that adhesion levels are tightly regulated and reproducible across individual embryos. These findings suggest that spatiotemporal heterogeneity in molecular distribution plays a critical role in influencing cell mechanics and stereotypical developmental patterns.
Discussion
CTransformer represents a significant advancement in embryonic imaging, effectively doubling the viable imaging duration by reducing phototoxicity. While the model is highly robust up to the 550-cell stage, performance begins to decline as cells become even smaller and more crowded in later stages. Future iterations may incorporate human-in-the-loop refinements for initial prompt tuning and extend the framework to other high-density model organisms. Correlating these 4D morphology maps with transcriptomic data remains a promising avenue for future research.
Summary updated