Introduction
Single-cell RNA sequencing (scRNA-seq) has revolutionized our ability to observe cellular states, yet the high-dimensional nature of this data makes interpretation challenging. In biological development, cells typically follow a hierarchical differentiation path—a process often likened to Waddington’s epigenetic landscape, where stem cells "roll" down branching valleys toward specialized fates. While standard dimensionality reduction tools like t-SNE and UMAP are widely used, they often fail to preserve these continuous, branching trajectories, frequently fragmenting them into disconnected clusters.
To address this, we introduce DTAE (Density Tree-biased Autoencoder), a framework designed to visualize scRNA-seq data while explicitly preserving its underlying hierarchical structure. By integrating a density-based topological prior into a deep learning architecture, DTAE produces 2D visualizations that are both biologically intuitive and mathematically robust.
The DTAE Framework
The DTAE approach consists of two primary stages: building a robust topological prior and using it to guide a neural network's embedding process.
1. Building the Density Tree
Rather than relying on simple Euclidean distances, which are susceptible to noise in high-dimensional space, DTAE constructs a "density tree." The data is first summarized using $k$-means clustering to reduce noise. A Maximum Spanning Tree (MST) is then built where edge weights represent the data density between clusters. This ensures the tree follows the actual "paths" of cellular transition rather than taking artificial shortcuts across low-density regions.
2. Tree-Biased Autoencoder
The core of DTAE is an autoencoder—a neural network that compresses data into a 2D bottleneck layer. To ensure this bottleneck respects the hierarchy, we introduce a novel Push-Pull Loss:
- Pull: Attracts a cell's 2D coordinates toward its closest centroids in the high-dimensional tree.
- Push: Prevents the embedding from collapsing, maintaining global structure.
- Geodesic Weighting: The loss is weighted by distances measured along the tree branches. This "secret sauce" penalizes the network heavily if it attempts to place cells from distant biological branches near each other in the 2D plot.
The Importance of Density over Distance
A key insight of this work is that for biological trajectories, the "empty space" between clusters is as informative as the clusters themselves. Standard Euclidean-based trees often create "shortcuts" that do not exist in nature. By focusing on density, DTAE ensures that the visualization reflects the true developmental manifold.
Experimental Evaluation
DTAE was evaluated across several complex biological datasets, including endocrine pancreatic cells, T-cell infection responses, and synthetic data with known ground truths.
Key Results
- Qualitative Clarity: In pancreatic and T-cell datasets, DTAE produced distinct, non-overlapping branches where competing methods like scVI or SAUCIE often collapsed different cell types together.
- Quantitative Performance: DTAE outperformed popular methods (UMAP, PHATE, PCA) across eight metrics, including Voronoi-based neighborhood preservation and the Adjusted Rand Index (ARI).
- Robustness: The density-based tree proved significantly more stable across varying datasets compared to standard MST approaches.
Discussion and Limitations
While DTAE excels at visualizing hierarchical data, it is fundamentally a "tree-biased" model. In cases where the underlying biology is highly clustered or contains cycles (such as the cell cycle), the tree assumption may be violated. For instance, in a "failure case" involving Dentate Gyrus data, DTAE's performance was limited by the non-hierarchical nature of the dataset.
Future work will focus on extending DTAE to handle "forests" (multiple disconnected trees) and incorporating more complex topological priors to accommodate non-tree-like biological processes.
Summary updated