On the Mathematics of RNA Velocity II: Algorithmic Aspects

Tiejun Li, Yizhuo Wang, Guoguo Yang, Peijie ZhouarXiv 2023 · DOI

Abstract

In a previous paper [CSIAM Trans. Appl. Math. 2 (2021), 1-55], the authors proposed a theoretical framework for the analysis of RNA velocity, which is a promising concept in scRNA-seq data analysis to reveal the cell state-transition dynamical processes underlying snapshot data. The current paper is devoted to the algorithmic study of some key components in RNA velocity workflow. Four important points are addressed in this paper: (1) We construct a rational time-scale fixation method which can determine the global gene-shared latent time for cells. (2) We present an uncertainty quantification strategy for the inferred parameters obtained through the EM algorithm. (3) We establish the optimal criterion for the choice of velocity kernel bandwidth with respect to the sample size in the downstream analysis and discuss its implications. (4) We propose a temporal distance estimation approach between two cell clusters along the cellular development path. Some illustrative numerical tests are also carried out to verify our analysis. These results are intended to provide tools and insights in further development of RNA velocity type methods in the future.

Introduction

Single-cell RNA sequencing (scRNA-seq) provides a static "snapshot" of gene expression across thousands of cells. RNA velocity analysis attempts to recover the temporal dimension by comparing unspliced and spliced mRNA counts to predict future cell states. While widely used, the computational pipelines for RNA velocity often rely on heuristic or "black box" steps. This paper provides a rigorous mathematical foundation for these algorithms, addressing critical gaps in time-scale alignment, parameter reliability, and transition dynamics.

Algorithmic Framework

The authors refine the RNA velocity workflow by addressing four specific algorithmic challenges, moving from parameter inference to downstream analysis.

The RNA velocity workflow, highlighting the specific algorithmic issues addressed in this study compared to current practices.

1. Global Time-Scale Fixation

A major hurdle in RNA velocity is that different genes often operate on different inferred time scales. The authors propose an optimization framework to align these latent times. By treating the alignment as a minimization of noise (either multiplicative or additive), they utilize the Perron-Frobenius theorem to derive a unique, "gene-shared" latent time that provides a consistent temporal coordinate for each cell.

2. Uncertainty Quantification (UQ)

To move beyond point estimates of kinetic parameters (transcription, splicing, and degradation rates), the authors apply the asymptotic theory of the Expectation-Maximization (EM) algorithm. By calculating Fisher information, they derive 95% confidence intervals, allowing researchers to quantify the reliability of the inferred dynamics.

3. Optimal Kernel Bandwidth

Visualizing cell transitions often involves "random walk" models and velocity kernels. The authors analyze the bias-variance tradeoff of the discrete generator used in these models. They establish a mathematical criterion for the optimal kernel bandwidth ($\epsilon$) relative to the sample size ($n$) and dimensionality ($d$), providing a principled way to tune visualization parameters.

4. Transition Times and Taboo Sets

Estimating the actual time it takes for a cell to differentiate between states is complex in branching lineages. The authors use Markov chain theory to calculate "mean first hitting times." To handle bifurcations, they introduce "taboo sets"—forbidden states that prevent the calculation from being skewed by alternative developmental paths.

Results and Validation

The proposed methods were validated using synthetic datasets (800 to 2,000 cells) where ground-truth kinetic rates and physical times were known.

Validation of the time-scale fixation method using synthetic data, showing high correlation between rescaled latent time and ground truth.

Key findings include:

  • Temporal Accuracy: The optimized gene-shared time achieved a correlation of approximately 0.989 with the actual physical time in simulations, significantly outperforming gene-specific time estimates.
  • Parameter Reliability: The UQ method successfully captured true kinetic parameters within the calculated 95% confidence intervals across various transcription stages.
  • Dimensionality and Flow: The authors mathematically proved that as the number of genes ($d$) increases, the error in the velocity kernel grows. This confirms that performing analysis in a lower-dimensional space (e.g., PCA or UMAP) is a mathematical necessity for stability.
  • Linearity of Pseudo-time: The "mean first hitting time" demonstrated a strong linear relationship ($R^2 = 0.971$) with actual physical time, validating it as a reliable proxy for biological progression.

Conclusion

By formalizing the mathematical underpinnings of the RNA velocity workflow, this work provides a more robust toolkit for single-cell analysis. While the "scale invariance" problem remains—meaning absolute physical time still requires external calibration—the introduction of gene-shared time and taboo sets offers significant improvements in the accuracy and interpretability of cellular trajectories. Future work will look toward incorporating gene regulatory networks to account for inter-gene dependencies.

Summary updated

BibTeX
@misc{li2023mathematics,
  author = {Tiejun Li and Yizhuo Wang and Guoguo Yang and Peijie Zhou},
  title = {{On the Mathematics of RNA Velocity II: Algorithmic Aspects}},
  year = {2023},
  eprint = {2306.05707},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.05707},
}
Figure