Massive computational acceleration by using neural networks to emulate mechanism-based biological models

Shangying Wang, Kai Fan, Nan Luo, Yangxiaolu Cao, Feilun Wu, Carolyn Zhang, Katherine Heller, Lingchong You

Abstract

For many biological applications, exploration of the massive parametric space of a mechanism-based model can impose a prohibitive computational demand. To overcome this limitation, we present a framework to improve computational efficiency by orders of magnitude. The key concept is to train a neural network using a limited number of simulations generated by a mechanistic model. This number is small enough such that the simulations can be completed in a short time frame but large enough to enable reliable training. The trained neural network can then be used to explore a much larger parametric space. We demonstrate this notion by training neural networks to predict pattern formation and stochastic gene expression. We further demonstrate that using an ensemble of neural networks enables the self-contained evaluation of the quality of each prediction. Our work can be a platform for fast parametric space screening of biological models with user defined objectives.

Introduction

Mechanism-based models, such as Partial Differential Equations (PDEs) for spatial dynamics or Stochastic Differential Equations (SDEs) for gene expression, are indispensable tools for understanding complex biological systems. However, their numerical solution is often computationally intensive. For instance, a model with 10 parameters, where each parameter is tested at just 6 values, results in $6^{10}$ combinations. If each simulation takes 5 minutes, screening the entire space would require over 500 years. This computational bottleneck forces researchers to explore only a small fraction of the parameter space, potentially missing rare but significant biological behaviors.

A Hybrid Modeling Framework

To address this challenge, the authors propose a hybrid approach that leverages the strengths of both mechanistic modeling and deep learning. The core idea is to use a slow mechanistic model to generate a manageable training dataset, which is then used to train a neural network. Once trained, the neural network acts as a fast emulator, mapping input parameters directly to final continuous output distributions.

Overview of the neural network framework for emulating mechanistic biological models.

Methods and Architecture

The framework utilizes a Long Short-Term Memory (LSTM) network architecture, which is particularly effective for sequence and distribution prediction. To optimize the learning process, the network is designed to predict two distinct targets: the peak value of the distribution and the normalized shape of the distribution.

A critical component of this framework is the use of Ensemble Voting for quality control. Because neural networks can be "black boxes," the authors train an ensemble of identical networks with different random initializations. High agreement among the networks indicates a reliable prediction, while divergence flags uncertainty. This self-evaluation mechanism allows for confident large-scale screening without constant verification against the slow mechanistic model.

The framework was validated using two primary datasets:

  1. Pattern Formation Model (PDE): $10^5$ simulations of an E. coli synthetic gene circuit.
  2. MYC/E2F Pathway Model (SDE): $10^4$ stochastic simulations predicting molecular level probability density functions.

Key Results and Performance

The neural network framework achieved a staggering ~30,000-fold computational acceleration. A standard PDE simulation taking approximately 350 seconds was replaced by a neural network prediction taking only 0.012 seconds.

Accuracy metrics and distribution predictions comparing neural network outputs to mechanistic simulations.

As shown in Figure 4, the predictions are highly accurate, with $R^2$ values of 0.987 for peak values and 0.998 for distribution shapes. The visual comparison between network predictions and PDE simulations (Fig 4b) demonstrates the network's ability to capture complex spatial patterns. Furthermore, the error for both distributional data and peak values decreases significantly as the training data size increases (Fig 4c).

This massive speedup enabled the screening of $10^8$ parameter combinations in just 12 days—a task that would otherwise take millennia. This large-scale exploration led to the discovery of 1,284 parameter sets yielding rare three-ring bacterial patterns, providing new insights into the biological constraints required for such complex formations.

Discussion and Future Directions

While highly effective, the framework has limitations. It assumes a relatively smooth parameter landscape and may struggle in regions where system outputs are extremely sensitive to minor parameter changes. Additionally, the initial generation of training data must be computationally feasible.

Future work could involve implementing adaptive sampling techniques. By generating training data more densely in regions of high local sensitivity, the network's accuracy can be improved exactly where the parameter landscape is most rugged, further enhancing the robustness of this powerful computational tool.

Summary updated

BibTeX
@inproceedings{wang2019massive,
  author = {Shangying Wang and Kai Fan and Nan Luo and Yangxiaolu Cao and Feilun Wu and Carolyn Zhang and Katherine Heller and Lingchong You},
  title = {{Massive computational acceleration by using neural networks to emulate mechanism-based biological models}},
  booktitle = {Nature Communications},
  year = {2019},
  doi = {10.1038/s41467-019-12342-y},
}
Figure