Abstract
Understanding how cell populations evolve and differentiate across various developmental stages is a cornerstone of modern biology. While single-cell RNA sequencing (scRNA-seq) provides high-resolution data, existing computational tools often struggle with cross-sample trajectory construction, requiring labor-intensive manual intervention. We present TrajLens, a visual analytics system that combines deep learning with interactive visualization to streamline this process. TrajLens utilizes a hybrid Graph Neural Network (GNN) to predict evolutionary links and offers a multi-view interface for spatial and functional validation. Our evaluation demonstrates high prediction accuracy and significant improvements in biological discovery workflows.
Introduction
In the study of organogenesis and disease progression, researchers aim to map "trajectories"—the developmental paths cells traverse as they mature. While automated tools exist for single-sample analysis, biological development inherently spans multiple temporal stages and distinct samples. Constructing trajectories across these samples is challenging due to shifting spatial distributions, evolving gene expression patterns, and complex many-to-many mappings between cell populations.
Currently, biologists often manually "stitch" together findings from disparate samples, a process that is subjective, error-prone, and difficult to scale. There is a critical need for systems that can both predict these cross-sample links and provide the visual evidence—spatial and functional—required for rigorous validation.
Methods
TrajLens addresses these challenges through a two-pronged approach: a predictive backend and an interactive frontend.
Predictive Model and Workflow
The system employs a hybrid Graph Neural Network (GNN) to predict potential links between cell populations across different samples. This model integrates a Graph Attention Network (GAT) to capture local inter-cell interactions and a Graph Convolutional Network (GCN) for global structural propagation. The model processes two primary data types: genetic features (embedded via BioLinkBERT) and spatial features (reduced via PCA).
Visual Analytics Interface
The TrajLens interface is designed to support the "predict-and-validate" loop through four primary views:
- Core Cell Selection View (A): Uses line charts to help users identify "anchor" cell types based on temporal persistence.
- Path Selection View (B): Displays high-frequency predicted paths in a hierarchical tree structure.
- Path Inspection View (C): Provides synchronized multi-row visualizations using contour maps (Gaussian Kernel Density Estimation) to show spatial distribution and overlap metrics ($D_{sym}$).
- Gene Function View (D): Integrates Gene Set Enrichment Analysis (GSEA) to provide biological ground truth for predicted paths.
Results and Discussion
The system was evaluated using the Mouse-Embryo dataset, alongside benchmarks like Zebrafish-Embryo and standard GNN datasets (CoraFull, CiteSeer).
Performance and Discovery
The underlying GNN model achieved an accuracy of 88.56% on the Mouse-Embryo dataset, significantly outperforming baseline models like GraphSAGE. In a practical case study involving the mouse midbrain, an expert used TrajLens to identify a branching pattern where Radial Glial Cells (RGC) differentiate into GABA NeuB and GlioB populations. This discovery was validated through the Gene Function View, which showed consistent cytoplasmic translation functions across both branches.
Expert Feedback
Biologists noted that the contour map abstraction and hierarchical path views significantly improved the readability of complex networks. The system's ability to prioritize "high-frequency" paths—sequences that appear consistently across sample combinations—was highlighted as a key feature for identifying pivotal developmental mechanisms.
Conclusion
TrajLens bridges the gap in cross-sample trajectory analysis by combining predictive power with intuitive visual validation. While limited by the availability of high-quality multi-sample datasets and occasional "over-smoothing" in KDE visualizations, it represents a significant step toward automated, reproducible developmental mapping. Future work will focus on integrating advanced pseudo-time ordering and supporting more complex multi-core selection patterns.
Summary updated