Most real-world ecological dynamics, ranging from ecosystem dynamics to collective animal movement, are inherently stochastic in nature. Stochastic differential equations (SDEs) are a popular modelling framework to model dynamics with intrinsic randomness. Here, we focus on the inverse question: If one has empirically measured time-series data from some system of interest, is it possible to discover the SDE model that best describes the data. Here, we present PyDaddy (PYthon library for DAta Driven DYnamics), a toolbox to construct and analyze interpretable SDE models based on time-series data. We combine traditional approaches for data-driven SDE reconstruction with an equation learning approach, to derive symbolic equations governing the stochastic dynamics. The toolkit is presented as an open-source Python library, and consists of tools to construct and analyze SDEs. Functionality is included for visual examination of the stochastic structure of the data, guided extraction of the functional form of the SDE, and diagnosis and debugging of the underlying assumptions and the extracted model. Using simulated time-series datasets, exhibiting a wide range of dynamics, we show that PyDaddy is able to correctly identify underlying SDE models. We demonstrate the applicability of the toolkit to real-world data using a previously published movement data of a fish school. Starting from the time-series of the observed polarization of the school, pyDaddy readily discovers the SDE model governing the dynamics of group polarization. The model recovered by PyDaddy is consistent with the previous study. In summary, stochastic and noise-induced effects are central to the dynamics of many biological systems. In this context, we present an easy-to-use package to reconstruct SDEs from timeseries data.
翻译:从生态系统动态到集体动物运动,大多数真实世界生态动态本质上都是随机的。Stochastecal 差异方程式(SDEs)是一个流行的建模框架,可以以内在随机性模拟动态。在这里,我们侧重于反向问题:如果一个人从某种感兴趣的系统以经验方式测量了时间序列数据,那么有可能发现最能描述数据的SDE模型。在这里,我们介绍PyDaddy(Data Drewn Dynamics的PYthon图书馆),这是一个根据时间序列数据构建和分析可解释的 SDE 模型的工具箱。我们将数据驱动的SDE 应用性重建传统方法与方程式学习方法相结合,以生成关于Stochacistical动态的符号式方程式。工具包是作为公开源源的Python图书馆,由构建和分析SDEs的最佳工具构成。功能性包含对数据结构的直观检查,通过SDE的功能形式提取SDE的功能形式,以及对基础假设和提取模型的诊断和调试测的模型。我们利用了时间序列的SDread-deal dal drode dal 数据模型,展示了Sdiadeal deal dal demode drodemode drode drode drocude the sal decudy the sal deal decudeal deal deal deal deal deal deal deal deal deal deal deal deal deal deal deal deal decumental demodal decumental decude smad decumental decumental decumental decument.