Physics-informed machine learning: A mathematical framework with applications to time series forecasting | Synapse