deBInfer: Bayesian inference for dynamical models of biological systems in R

1. Understanding the mechanisms underlying biological systems, and ultimately, predicting their behaviours in a changing environment requires overcoming the gap between mathematical models and experimental or observational data. Differential equations (DEs) are commonly used to model the temporal evolution of biological systems, but statistical methods for comparing DE models to data and for parameter inference are relatively poorly developed. This is especially problematic in the context of biological systems where observations are often noisy and only a small number of time points may be available. 2. The Bayesian approach offers a coherent framework for parameter inference that can account for multiple sources of uncertainty, while making use of prior information. It offers a rigorous methodology for parameter inference, as well as modelling the link between unobservable model states and parameters, and observable quantities. 3. We present deBInfer, a package for the statistical computing environment R, implementing a Bayesian framework for parameter inference in DEs. deBInfer provides templates for the DE model, the observation model and data likelihood, and the model parameters and their prior distributions. A Markov chain Monte Carlo (MCMC) procedure processes these inputs to estimate the posterior distributions of the parameters and any derived quantities, including the model trajectories. Further functionality is provided to facilitate MCMC diagnostics, the visualisation of the posterior distributions of model parameters and trajectories, and the use of compiled DE models for improved computational performance. 4. The templating approach makes deBInfer applicable to a wide range of DE models. We demonstrate its application to ordinary and delay DE models for population ecology.

[1]  A. Doucet,et al.  Particle Markov chain Monte Carlo methods , 2010 .

[2]  Edward L. Ionides,et al.  Plug-and-play inference for disease dynamics: measles in large and small populations as a case study , 2009, Journal of The Royal Society Interface.

[3]  D. S. Jones,et al.  Differential Equations and Mathematical Biology , 1983 .

[4]  Michael A. West,et al.  Combined Parameter and State Estimation in Simulation-Based Filtering , 2001, Sequential Monte Carlo Methods in Practice.

[5]  C. Baker,et al.  Computational approaches to parameter estimation and model selection in immunology , 2005 .

[6]  Maureen A. O’Malley,et al.  Do simple models lead to generality in ecology? , 2013, Trends in ecology & evolution.

[7]  M. Plummer,et al.  CODA: convergence diagnosis and output analysis for MCMC , 2006 .

[8]  Jon Cockayne,et al.  Comments on "Bayesian Solution Uncertainty Quantification for Differential Equations" by Chkrebtii, Campbell, Calderhead & Girolami , 2016 .

[9]  W. O. Kermack,et al.  A contribution to the mathematical theory of epidemics , 1927 .

[10]  H. Voss,et al.  Parameter estimation in nonlinear delayed feedback systems from noisy data , 2002 .

[11]  Vassily Lyutsarev,et al.  Inferred support for disturbance-recovery hypothesis of North Atlantic phytoplankton blooms , 2015 .

[12]  V. Volterra Fluctuations in the Abundance of a Species considered Mathematically , 1926, Nature.

[13]  M. Girolami,et al.  Bayesian Solution Uncertainty Quantification for Differential Equations , 2013 .

[14]  J. Stajich,et al.  The Deadly Chytrid Fungus: A Story of an Emerging Pathogen , 2010, PLoS pathogens.

[15]  A. Raftery,et al.  Inference for Deterministic Simulation Models: The Bayesian Melding Approach , 2000 .

[16]  Andrew Gelman,et al.  Handbook of Markov Chain Monte Carlo , 2011 .

[17]  Karline Soetaert,et al.  Solving Differential Equations in R , 2012 .

[18]  R Core Team,et al.  R: A language and environment for statistical computing. , 2014 .

[19]  M. Gabriela M. Gomes,et al.  A Bayesian Framework for Parameter Estimation in Dynamical Models , 2011, PloS one.

[20]  Jiqiang Guo,et al.  Stan: A Probabilistic Programming Language. , 2017, Journal of statistical software.

[21]  A. Tarantola,et al.  Inverse problems = Quest for information , 1982 .

[22]  Dao Nguyen,et al.  Statistical Inference for Partially Observed Markov Processes via the R Package pomp , 2015, 1509.00503.

[23]  M. van der Put,et al.  Solving differential equations , 2008, 0810.4039.

[24]  Mike Lonergan,et al.  Data availability constrains model complexity, generality, and utility: a response to Evans et al. , 2014, Trends in ecology & evolution.

[25]  Hal L. Smith,et al.  An introduction to delay differential equations with applications to the life sciences / Hal Smith , 2010 .

[26]  Clifford H. Thurber,et al.  Parameter estimation and inverse problems , 2005 .

[27]  Karline Soetaert,et al.  Solving Differential Equations in R: Package deSolve , 2010 .

[28]  M. Barenco,et al.  Fitting ordinary differential equations to short time course data , 2008, Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences.

[29]  L. Johnson,et al.  Temperature alters reproductive life history patterns in Batrachochytrium dendrobatidis, a lethal pathogen associated with the global loss of amphibians , 2012, Ecology and evolution.

[30]  David Welch,et al.  Approximate Bayesian computation scheme for parameter inference and model selection in dynamical systems , 2009, Journal of The Royal Society Interface.

[31]  D. Haydon Models for Ecological Data: An Introduction , 2008 .

[32]  Karline Soetaert,et al.  Inverse Modelling, Sensitivity and Monte Carlo Analysis in R Using Package FME , 2010 .

[33]  Andrew P. Dobson,et al.  Spatial and Temporal Association of Outbreaks of H5N1 Influenza Virus Infection in Wild Birds with the 0°C Isotherm , 2010, PLoS pathogens.

[34]  Hadley Wickham,et al.  Tools to Make Developing R Packages Easier , 2016 .

[35]  Leah R. Johnson,et al.  Bayesian inference for bioenergetic models , 2013 .