Cargando…

Optimizing differential equations to fit data and predict outcomes

Many scientific problems focus on observed patterns of change or on how to design a system to achieve particular dynamics. Those problems often require fitting differential equation models to target trajectories. Fitting such models can be difficult because each evaluation of the fit must calculate...

Descripción completa

Detalles Bibliográficos
Autor principal: Frank, Steven A.
Formato: Online Artículo Texto
Lenguaje:English
Publicado: John Wiley and Sons Inc. 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10025256/
https://www.ncbi.nlm.nih.gov/pubmed/36950372
http://dx.doi.org/10.1002/ece3.9895
_version_ 1784909287949074432
author Frank, Steven A.
author_facet Frank, Steven A.
author_sort Frank, Steven A.
collection PubMed
description Many scientific problems focus on observed patterns of change or on how to design a system to achieve particular dynamics. Those problems often require fitting differential equation models to target trajectories. Fitting such models can be difficult because each evaluation of the fit must calculate the distance between the model and target patterns at numerous points along a trajectory. The gradient of the fit with respect to the model parameters can be challenging to compute. Recent technical advances in automatic differentiation through numerical differential equation solvers potentially change the fitting process into a relatively easy problem, opening up new possibilities to study dynamics. However, application of the new tools to real data may fail to achieve a good fit. This article illustrates how to overcome a variety of common challenges, using the classic ecological data for oscillations in hare and lynx populations. Models include simple ordinary differential equations (ODEs) and neural ordinary differential equations (NODEs), which use artificial neural networks to estimate the derivatives of differential equation systems. Comparing the fits obtained with ODEs versus NODEs, representing small and large parameter spaces, and changing the number of variable dimensions provide insight into the geometry of the observed and model trajectories. To analyze the quality of the models for predicting future observations, a Bayesian‐inspired preconditioned stochastic gradient Langevin dynamics (pSGLD) calculation of the posterior distribution of predicted model trajectories clarifies the tendency for various models to underfit or overfit the data. Coupling fitted differential equation systems with pSGLD sampling provides a powerful way to study the properties of optimization surfaces, raising an analogy with mutation‐selection dynamics on fitness landscapes.
format Online
Article
Text
id pubmed-10025256
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher John Wiley and Sons Inc.
record_format MEDLINE/PubMed
spelling pubmed-100252562023-03-21 Optimizing differential equations to fit data and predict outcomes Frank, Steven A. Ecol Evol Research Articles Many scientific problems focus on observed patterns of change or on how to design a system to achieve particular dynamics. Those problems often require fitting differential equation models to target trajectories. Fitting such models can be difficult because each evaluation of the fit must calculate the distance between the model and target patterns at numerous points along a trajectory. The gradient of the fit with respect to the model parameters can be challenging to compute. Recent technical advances in automatic differentiation through numerical differential equation solvers potentially change the fitting process into a relatively easy problem, opening up new possibilities to study dynamics. However, application of the new tools to real data may fail to achieve a good fit. This article illustrates how to overcome a variety of common challenges, using the classic ecological data for oscillations in hare and lynx populations. Models include simple ordinary differential equations (ODEs) and neural ordinary differential equations (NODEs), which use artificial neural networks to estimate the derivatives of differential equation systems. Comparing the fits obtained with ODEs versus NODEs, representing small and large parameter spaces, and changing the number of variable dimensions provide insight into the geometry of the observed and model trajectories. To analyze the quality of the models for predicting future observations, a Bayesian‐inspired preconditioned stochastic gradient Langevin dynamics (pSGLD) calculation of the posterior distribution of predicted model trajectories clarifies the tendency for various models to underfit or overfit the data. Coupling fitted differential equation systems with pSGLD sampling provides a powerful way to study the properties of optimization surfaces, raising an analogy with mutation‐selection dynamics on fitness landscapes. John Wiley and Sons Inc. 2023-03-19 /pmc/articles/PMC10025256/ /pubmed/36950372 http://dx.doi.org/10.1002/ece3.9895 Text en © 2023 The Author. Ecology and Evolution published by John Wiley & Sons Ltd. https://creativecommons.org/licenses/by/4.0/This is an open access article under the terms of the http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited.
spellingShingle Research Articles
Frank, Steven A.
Optimizing differential equations to fit data and predict outcomes
title Optimizing differential equations to fit data and predict outcomes
title_full Optimizing differential equations to fit data and predict outcomes
title_fullStr Optimizing differential equations to fit data and predict outcomes
title_full_unstemmed Optimizing differential equations to fit data and predict outcomes
title_short Optimizing differential equations to fit data and predict outcomes
title_sort optimizing differential equations to fit data and predict outcomes
topic Research Articles
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10025256/
https://www.ncbi.nlm.nih.gov/pubmed/36950372
http://dx.doi.org/10.1002/ece3.9895
work_keys_str_mv AT frankstevena optimizingdifferentialequationstofitdataandpredictoutcomes