From data-driven differential equations to mechanistic forecasting with machine learning
Open Access
- 4 November 2026
- journal article
- Published by The Royal Society in Journal of The Royal Society Interface
- Vol. 23 (244)
Abstract
The equations of complex dynamical systems may not be identified by expert knowledge, especially if the underlying mechanisms are unknown. Data-driven discovery methods address this challenge by inferring governing equations from time-series data using a library of functions constructed from the measured variables. However, these methods typically assume time-invariant coefficients, which limits their ability to capture evolving system dynamics. To overcome this limitation, we allow some of the parameters to vary over time, learn their temporal evolution directly from data and infer a system of equations that incorporates both constant and time-varying parameters. We then transform this framework into a forecasting model by predicting the time-varying parameters and substituting these predictions into the learned equations. The model is validated on simulated susceptible–infected–recovered and consumer–resource systems, as well as on real-world greenhouse gas concentration and cyanobacteria cell count datasets. By dynamically adapting to temporal shifts, our proposed model achieved a mean absolute error below 3% for learning a time series and below 6% for forecasting up to a month ahead. We additionally compare forecasting performance against convolutional neural network–long short-term memory and gradient boosting machine, and show that our model outperforms these methods across most datasets. Our findings demonstrate that integrating time-varying parameters into data-driven discovery of differential equations improves both modelling accuracy and forecasting performance.Keywords
Funding Information
- Natural Sciences and Engineering Research Council of Canada (RGPIN-2025-05734)
- Canada Research Chairs Programme
- NSERC Discovery Grant
This publication has 70 references indexed in Scilit:
- Apply data science and feature selection techniques to predict carbon dioxide emissions in TaiwanStochastic Environmental Research and Risk Assessment, 2025
- Analysis of Time—Varying Coefficients and Forecasting Effects Between Greenhouse Gas Emissions and Its Determinants in Thailand2024
- Minimal model identification of drum brake squeal via SINDyArchive of Applied Mechanics, 2024
- Data assimilation method for improving the global spatiotemporal predictions of epidemic dynamics yielded by an ensemble Kalman filter and Metropolis–Hastings samplingNonlinear Dynamics, 2023
- From Policy to Prediction: Forecasting COVID-19 Dynamics Under Imperfect VaccinationBulletin of Mathematical Biology, 2022
- Data-driven modeling of the chaotic thermal convection in an annular thermosyphonTheoretical and Computational Fluid Dynamics, 2020
- Influence of weather variables on methane and carbon dioxide flux from a shallow pondBiogeochemistry, 2014
- Statistical and Computational Inverse Problems2005
- Early Stopping - But When?1998
- Numerical Solution of Stochastic Differential Equations1992