Modeling Dynamics of Biological Systems with Deep Generative Neural Networks

Scott Gigante, David van Dijk, Kevin R. Moon, Alexander Strzalkowski, Katie Ferguson, Guy Wolf, Smita Krishnaswamy

Abstract

Biological data often contains measurements of dynamic entities such as cells or organisms in various states of progression. However, biological systems are notoriously difficult to describe analytically due to their many interacting components, and in many cases, the technical challenge of taking longitudinal measurements. This leads to difficulties in studying the features of the dynamics, for examples the drivers of the transition. To address this problem, we present a deep neural network framework we call Dynamics Modeling Network or DyMoN. DyMoN is a neural network framework trained as a deep generative Markov model whose next state is a probability distribution based on the current state. DyMoN is well-suited to the idiosyncrasies of biological data, including noise, sparsity, and the lack of longitudinal measurements in many types of systems. Thus, DyMoN can be trained using probability distributions derived from the data in any way, such as trajectories derived via dimensionality reduction methods, and does not require longitudinal measurements. We show the advantage of learning deep models over shallow models such as Kalman filters and hidden Markov models that do not learn representations of the data, both in terms of learning embeddings of the data and also in terms training efficiency, accuracy and ability to multitask. We perform three case studies of applying DyMoN to different types of biological systems and extracting features of the dynamics in each case by examining the learned model.

Introduction

Biological systems are the ultimate "black boxes." Whether it’s a stem cell deciding to become a neuron or a network of brain cells firing in sync, these processes are inherently stochastic, non-linear, and incredibly noisy. A significant challenge in fields like single-cell genomics is the "longitudinal challenge": while we can measure a cell's state in exquisite detail (e.g., via scRNA-seq), the measurement process is usually destructive. Consequently, we cannot track a single cell from one time point to the next. Instead, researchers must infer dynamics from "snapshots"—static measurements of thousands of different cells at various stages of development.

Existing tools like Hidden Markov Models (HMMs) or Kalman Filters often struggle with the high dimensionality of this data or fail to learn meaningful internal representations. They can indicate where a system might go, but they are often poor at explaining why or handling the extreme noise and sparsity typical of biological datasets.

Methodology

DyMoN (Dynamics Modeling Network) treats biological progression as a stochastic Markov process. The core of the framework is a feed-forward neural network that takes a current state ($x$) and a random noise vector ($\epsilon$) as input to produce a predicted next state ($\hat{y}$).

DyMoN architecture and distributional learning schematic. Panel A shows the model structure using MMD loss; Panels B and C illustrate the mapping of observed to predicted state distributions.

Key technical innovations include:

  • Distributional Learning via MMD: Instead of a standard point-to-point loss, DyMoN uses Maximum Mean Discrepancy (MMD). This allows the network to match the distribution of predicted next states to the distribution of observed neighbors in the data, effectively capturing the "branching" nature of biology (e.g., a stem cell choosing between two different lineages).
  • The Jacobian "Transparent Box": To make the model interpretable, the authors compute the Jacobian matrices of the learned transition function. This reveals the "saliency" of features—essentially showing which genes are interacting to drive a specific transition at a specific point in time.

Results and Case Studies

The authors validated DyMoN across a diverse range of synthetic and real-world datasets, including calcium imaging of neurons, mass cytometry (CyTOF) of T cells, and scRNA-seq of human embryonic stem cells.

T-cell Lineage Commitment

In a study of 17,000 developing T cells in the mouse thymus, DyMoN's Jacobian analysis correctly identified the "tug-of-war" between CD4 and CD8 genes at the exact moment a cell decides its functional identity. This demonstrates the model's ability to extract biologically relevant drivers from high-dimensional snapshot data.

Case study of T-cell development in the mouse thymus. Panels show PCA embeddings colored by gene expression (CD8, CD4) and developmental progression, alongside heatmaps of gene interactions.

Performance and Efficiency

DyMoN demonstrated superior accuracy and efficiency compared to traditional benchmarks. On the Teapot dataset (predicting the next frame of a rotating object), DyMoN achieved an MSE of 1.8, significantly lower than RNNs (2.3) or HMMs (5.4). Furthermore, DyMoN’s inference time is orders of magnitude faster than Kalman Filters (1.2s vs 175s for the Teapot task).

Discussion

DyMoN proves that longitudinal data is not strictly necessary if one has a "geometry-revealing" manifold. By using diffusion-based methods to find likely future neighbors, DyMoN learns global dynamics from static snapshots. Moreover, unlike many Generative Adversarial Networks (GANs), DyMoN’s use of MMD and Markovian constraints prevents "mode collapse," ensuring the model captures the full diversity of biological outcomes.

However, the model's performance remains dependent on pre-processing steps like initial "pseudotime" or diffusion-based ordering. Future work will involve "wet lab" validation of the predicted gene interactions and reprogramming protocols, as well as optimizing the MMD loss calculation for scalability to massive single-cell atlases.

Conclusion

DyMoN provides a robust, interpretable, and efficient framework for modeling the complex dynamics of biological systems. By bridging the gap between static snapshots and continuous transitions, it opens new avenues for hypothesis generation in cellular development and disease progression.

Summary updated

BibTeX
@misc{gigante2019modeling,
  author = {Scott Gigante and David van Dijk and Kevin R. Moon and Alexander Strzalkowski and Katie Ferguson and Guy Wolf and Smita Krishnaswamy},
  title = {{Modeling Dynamics of Biological Systems with Deep Generative Neural Networks}},
  year = {2019},
  eprint = {1802.03497},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.03497},
}
Figure