We consider the commonly encountered situation (e.g., in weather forecast) where the goal is to predict the time evolution of a large, spatiotemporally chaotic dynamical system when we have access to both time series data of previous system states and an imperfect model of the full system dynamics. Specifically, we attempt to utilize machine learning as the essential tool for integrating the use of past data into predictions. In order to facilitate scalability to the common scenario of interest where the spatiotemporally chaotic system is very large and complex, we propose combining two approaches: (i) a parallel machine learning prediction scheme and (ii) a hybrid technique for a composite prediction system composed of a knowledge-based component and a machine learning-based component. We demonstrate that not only can this method combining (i) and (ii) be scaled to give excellent performance for very large systems but also that the length of time series data needed to train our multiple, parallel machine learning components is dramatically less than that necessary without parallelization. Furthermore, considering cases where computational realization of the knowledge-based component does not resolve subgrid-scale processes, our scheme is able to use training data to incorporate the effect of the unresolved short-scale dynamics upon the resolved longer-scale dynamics (subgrid-scale closure).

We consider the general problem of predicting the future time evolution of a large, complex spatial system when we have access to information coming from two sources: (i) measurements of what has happened in the past over some span of time and (ii) more general scientific knowledge, typically in the form of a numerical implementation of a mathematical system description, which is imperfect because of lack of knowledge regarding some aspects of the system processes or because of practical numerical restrictions like limited spatial resolution. Among many important examples of the general type of problem, what we have in mind is that of weather prediction, where the system involves details of complex geographical features (like mountains, oceans, etc.), as well as complex atmospheric structures (like clouds, convective vortices, etc.). In this paper, we ask if it is possible to use machine learning to combine knowledge from both sources (i) and (ii) to produce better predictions in a way that is feasible for very large systems. We describe a machine learning technique, Combined Hybrid-Parallel Prediction (CHyPP), that can potentially be applied to this situation and demonstrate its efficacy on test systems. Our proposed machine learning technique makes use of a version of “reservoir computing,” a method for training recurrent artificial neural networks that is effective at predicting complex evolving dynamics, which can be trained and applied using parallel computing systems. We combine this technique with a predictor formulated using imperfect knowledge to produce more accurate forecasts. In the future, we hope that our technique will prove effective for a large class of important problems.

## I. INTRODUCTION

In recent years, machine learning techniques have been used to solve a number of complex modeling problems ranging from effective translation between hundreds of different human languages^{1} to predicting the bioactivity of small molecules for drug discovery.^{2} Typically, the most impressive results have been obtained using artificial neural networks with many hidden neural states.^{3} These hidden layers form a “black box” model, where internal parameters are trained given a set of measured training data, but after which only the final model output is observed. This formulation using measured training data contrasts with how models used for forecasting physical spatiotemporally chaotic processes are formulated, which is typically done using the available scientific knowledge of the underlying mechanisms that govern the system’s evolution. For example, in the case of forecasting weather, this knowledge includes the Navier–Stokes equations, the first law of thermodynamics, the ideal gas law, and simplified representations of physics at the unresolved spatial scales (see Sec. IV).^{4}

In this paper, focusing on the key issues of scalability and unresolved subgrid physics, we consider the general problem of forecasting a very large and complex spatiotemporally chaotic system, where we have access to both past time series of measurements of the system state evolution and to an imperfect knowledge-based prediction model. We present a method for combining machine learning prediction with imperfect knowledge-based forecasting that is scalable to large systems with the aim that the resulting combined prediction system can be significantly more accurate and efficient than either a pure knowledge-based prediction or a pure machine learning-based prediction. A main source of difficulty for scalability of the machine learning is that the dimension of the state of the systems we are interested in can be extremely large. For example, in state-of-the-art global numerical weather models, the state dimension (number of variables at all grid points) can be on the order of $109$. Thus, both the machine learning input (the current atmospheric state) and output (the predicted atmospheric state) have this dimensionality. (In contrast to the description of some machine learning techniques as “deep,” one might refer to the situations we address as “wide.”) The prediction method that we propose for such large complex systems builds on the previous work on parallelizable machine learning prediction^{5} and hybridization of knowledge-based modeling with machine learning.^{6} We call our technique Combined Hybrid/Parallel Prediction (CHyPP, pronounced “chip”). Although the general method we propose is applicable to different kinds of machine learning, the numerical examples presented in this paper use a machine learning method known as reservoir computing.^{7,8} Jaeger and Haas^{9} described the effectiveness of reservoir computing for predicting low-dimensional chaotic systems. Research surrounding this technique has since expanded,^{10,11} and it has recently been shown that reservoir computing using recurrent neural networks can produce similar quality predictions for chaotic systems to those of other recurrent architectures, such as Long Short-Term Memory (LSTM)^{12} and Gated Recurrent Units (GRU),^{13} while often requiring much less computational time to train.^{14} Reservoir computing techniques can additionally be extended to physical implementations using, e.g., photonics^{15} and Field Programable Gate Arrays (FPGAs).^{16,17}

The rest of the paper is organized as follows. In Sec. II, we first review a simple version of reservoir computing^{7,8} and discuss its shortcomings for forecasting high-dimensional spatiotemporal chaos. We next describe the hybrid reservoir prediction technique (Refs. 6 and 18), as well as previous work on how machine learning can be parallelized for prediction of spatiotemporal systems.^{5} We then present our proposed CHyPP architecture combining the two. In Sec. III, we demonstrate how the CHyPP methodology improves on each of the component prediction methods. For these demonstrations, we use the paradigmatic example of the Kuramoto–Sivashinky model as our test model of the spatiotemporally chaotic system that we aim to predict. We highlight the scalability of the proposed method to very large systems as well as its efficient use of training data, which we view as the crucial issues for the general class of applications in which we are interested. In Sec. IV, we consider a situation with multiple time and space scales and show by numerical simulation tests that CHyPP can, through its use of data, effectively account for unknown subgrid-scale processes. The main conclusion of this paper is that our CHyPP methodology provides an extremely promising framework, potentially facilitating significant advances in the forecasting of large, complex, spatiotemporally chaotic systems. We believe that, in addition to weather, the method that we propose may potentially be applicable to a host of important areas, enabling currently unattainable capabilities. Some speculative examples of potential applications are forecasting of ocean conditions, forecasting conditions in the solar wind, magnetosphere, and ionosphere (also known as “space weather,” important for its impact on the Earth-orbiting satellites, Global Positioning System (GPS) accuracy, and high frequency communications), forecasting the evolution of forest fires and their response to mitigating interventions, forecasting the responses of ecological systems to climate change, analysis of neuronal activity, etc.

## II. RESERVOIR COMPUTING ARCHITECTURE FOR CHyPP

### A. A simple machine learning predictor

To begin, we initially consider the goal of a generic machine learning system for time series prediction of an unknown dynamical system evolving on an attractor of that system. Later, we will consider that the machine learning system is a reservoir computer and that the unknown chaotic system is not completely unknown, and we will try to make use of that knowledge. Given a finite duration time series of the unknown system state’s evolution up to a certain time $t0$, where the state at each time is represented by the $K$-dimensional vector $u(t)=[u1(t),u2(t),\u2026,uK(t)]T$, our goal is to predict the subsequent evolution of the state. As illustrated in Fig. 1(a), in the initial training phase, at each time $t=n\Delta t\u2264t0$, $u(t)$ is input to the machine learning system ($uin(t)=u(t)$), which is trained to output a time $\Delta t$ prediction of the dynamical system state $u(t+\Delta t)$ ($uout(t+\Delta t)\u2243u(t+\Delta t)$). We refer to the just-described input–output configuration as the “open-loop” system [Fig. 1(a)]. To ensure an accurate representation of the true dynamics with a reservoir of limited size, $\Delta t$ is typically short compared to natural time scales (such as the correlation time or the “Lyapunov time”) present in the unknown dynamical system whose state is to be predicted. Once trained, the machine learning system can be run in a “closed-loop” feedback configuration [Fig. 1(b)] to autonomously generate predictions over a finite duration of time. That is, with $t0$ representing the time at the end of the training data, we replace the former input from the training data by the output by inserting an output-to-input feedback loop, shown by the dashed line in Fig. 1(b). Then, when $uin(t0)=u(t0)$ is the input, the reservoir computer produces an output prediction for $u(t0+\Delta t)$, which we refer to as $u~(t0+\Delta t)=uout(t0+\Delta t)$. When this predicted state is then used as the input ($uin(t0+\Delta t)=u~(t0+\Delta t)$), the reservoir computer produces an output prediction for $u(t0+2\Delta t)$, denoted as $u~(t0+2\Delta t)$ ($uout(t0+2\Delta t)=u~(t0+2\Delta t)$). This process is then iterated to produce predictions of the system state at $t=t0+m\Delta t$ for $m=1,2,3,\u2026$ [Fig. 1(b)].

In the rest of this section, we first present background from previous work (Secs. II B and II D), then introduce our CHyPP method for combining a knowledge-based model with reservoir-based machine learning to form a scalable system concept suitable for state prediction of very large, spatiotemporally chaotic systems. Specifically, in Sec. II B, we review a basic reservoir computing setup based on the methods of Refs. 7 and 8 along with the proposal for its use as a predictor carried out in Ref. 9. In Sec. II C, we build upon the simple setup of Sec. II B and describe the methodology from Ref. 5 for hybrid forecasting of the dynamical system using a single reservoir computing network and an imperfect model. In Sec. II D, the reservoir computing forecasting technique of Sec. II B is extended via parallelization of the machine learning with multiple parallel reservoir computers, in order to predict high-dimensional spatiotemporally chaotic systems, as was first described in Ref. 5 (but without the incorporation of a knowledge-based model). Finally, in Sec. II E, we present our proposed CHyPP architecture and technique for combining the parallel reservoir method of Sec. II D with the hybridization of a knowledge-based predictor and a parallel reservoir-based machine learning prediction of Sec. II C. It is our belief that it is only by means of such a combination that the most effective application of machine learning-enabled prediction can be realized for large, complex, spatiotemporally chaotic dynamical systems.

### B. Basic reservoir computing

We now consider that the ML device shown in Fig. 1 is a reservoir computer which, as shown in Fig. 2 (and further discussed subsequently), consists of a linear input coupler ($Win$) that couples the state $uin(t)$ into the reservoir (the circle in Fig. 2). The state of the reservoir is given by a high-dimensional vector $r(t)$, which is then linearly coupled by $Wout$ to produce an output vector $uout(t+\Delta t)$ which, through the training, is a very good approximation to $u(t+\Delta t)$. In this paper, our implementation of the reservoir is an artificial recurrent neural network with a large number of nodes. The artificial neural network that forms our basis of the reservoir computing implementation is illustrated in Fig. 2. The reservoir network adjacency matrix is chosen to be a randomly generated, sparse matrix $A$ that represents a directed graph with weighted edges. The adjacency matrix $A$ has dimensions $Dr\xd7Dr$, where $Dr$ is the number of nodes in the network. Elements of $A$ are randomly generated such that the average number of incident connections per node (average number of nonzero elements of the matrix in each row) is set to a chosen value $\u27e8d\u27e9$, the “average in-degree,” while the nonzero elements of $A$ are chosen from a uniform distribution over the interval $[\u22121,1]$. Once generated, $A$ is re-scaled (i.e., multiplied by a scalar) so that the its largest absolute eigenvalue is a prescribed value $\rho $, called the spectral radius. Each node $i$ in the network has an associated scalar state $ri(t)$. The state of the network is represented by the $Dr$ dimensional vector $r(t)$, whose elements are $ri(t)$, where $i=1,2,3,\u2026,Dr$.

The reservoir network state $r(t)$ evolves dynamically while receiving input through a $K\xd7Dr$ input coupling matrix, $Win$. We choose the matrix $Win$ to contain an equal number of nonzero elements in each column, which corresponds to coupling each element of the reservoir input to an equal number of reservoir node states. Nonzero elements of this matrix are selected randomly and uniformly from the interval [$\u2212\sigma $, $\sigma $], where $\sigma $ is referred to as the input weight. Given the current state of the reservoir $r(t)$, the reservoir state is advanced at each time using a hyperbolic tangent activation function,

Before prediction begins, the reservoir computer is trained in the “open-loop” configuration. During this training phase, $uin(t)=u(t)+s\eta (t)$. Here, $u(t)$ is the measurement of dynamical system state at time $t$ in the form of a $K$-dimensional vector. As in Ref. 7, we add a small, normally distributed $K$-dimensional vector $s\eta (t)$ of mean 0 and standard deviation $s$ to the input dynamical system state during training. The elements of the vector $\eta (t)$ are chosen randomly and independently at each time $t$. The function of this added “stabilization noise” is to allow the reservoir computer to learn how to return to the true trajectory when the input trajectory has been perturbed away from it. We find that, in many cases, this additional small noise input beneficially promotes stability of the closed-loop prediction configuration once training has been completed.

The adjustable constants characterizing the overall prediction system (e.g., $Dr$, $\u27e8d\u27e9$, $\sigma $, $s$, and $\Delta t$) are referred to as “hyperparameters,” and it is important that they be chosen carefully in order for the reservoir computer to predict accurately. For example, as explained in the previous literature, the hyperparameters can be chosen so that the reservoir system has the so-called “echo-state property” (see, e.g., Ref. 7), whereby when in the open-loop training phase, the reservoir state $r(t)$, aside from an initial transient and with the random sequence $\eta (t)$ fixed, the reservoir state $r(t)$ becomes uniquely determined by the reservoir input sequence $u(t)$ (and hence independent of the initial values of $r$). Accordingly, prior to initiation of the training, we ignore and discard the reservoir and input states for the first few time steps. The state of the reservoir at the end of this transient nullification period is labeled $r(0)$. Starting with $r(0)$, the training system states $u(j\Delta t)$ ($j$ an integer, $j\Delta t\u2264t0$) and the resulting reservoir states, $r((j+1)\Delta t)$, are recorded and saved. We then desire to use these saved states to produce an output, $u~(t+\Delta t)$, when $u(t)$ is the input, which we desire to be very close to $u(t+\Delta t)$. To do this, we find it useful to perform an *ad hoc* operation on the reservoir state vectors that squares the value of half of the node states. Specifically, we define $r~(j\Delta t)$ such that

As surmised in footnote 16 of Ref. 5, this operation improves prediction by breaking a particular odd symmetry of the reservoir dynamics that is not generally present in the dynamics to be predicted. We next couple the transformed reservoir state $r~(t+\Delta t)$ via a $K\xd7Dr$ output coupling matrix $Wout$ to produce an output $uout(t+\Delta t)$,

and we endeavor to choose (train) the matrix elements of $Wout$ so that $uout(t+\Delta t)$ is close to $u(t+\Delta t)$. In general, this will require that $Dr\u226bK$. To accomplish this, we try to minimize the $L2$ difference between $u(t+\Delta t)$ and $uout(t+\Delta t)$. To prevent overfitting, we insert a Tikhonov regularization term to penalize very large values of the matrix elements of $Wout$,^{19} that is, we find

over the $KDr$ scalar values of the matrix $Wout$. Here, $\beta $ is a small regularization parameter and $\u2225\cdots \u2225$ denotes the $L2$ norm. This technique is commonly known as ridge regression. In our subsequent numerical experiments (Secs. III and IV), we use the “matrix solution” for the minimization problem to determine the trained $Wout$. In particular, we proceed as follows. We first form a matrix $R~$ where the $j$th column is the $j$th transformed reservoir state $r~(j\Delta t)$. We define a target matrix $U$ consisting of the time series of training data such that the $j$th column of $U$ is $u(j\Delta t)$. We then determine a matrix $Wout$ that satisfies the following linear system:

This can be done by explicitly calculating the matrix inverse, $Wout=UR~T(R~R~T+\beta I)\u22121$, or, more efficiently, by using a matrix division algorithm such as mrdivide in MATLAB^{20} as we do in our numerical experiments. We additionally note that methods of solving Eq. (5) for $Wout$ other than direct matrix solution are also available and may sometimes be advantageous (e.g., Generalized Minimal Residual Method (GMRES),^{21} stochastic gradient descent,^{22} etc.). By means of this minimization, it is hoped that $uout(t)\u2245u(t)$ is achieved. This completes the training process, following which we can switch to the closed-loop configurations [Fig. 1(b) and the dashed line in Fig. 2] and attempt to predict the subsequent evolution of $u(t)$. Prediction can then proceed via Eqs. (1), (2), and (6) where the prediction of the dynamical system state $u~(t)=uout(t)$ and the reservoir input is received from the feedback loop ($uin(t)=uout(t)$).

The closed-loop configuration system can be regarded as a surrogate dynamical system that mimics the original unknown dynamical system. As such, if the original unknown dynamical system is chaotic, the closed-loop predictor system will also be chaotic. Due to the exponential growth of small errors implied by chaos, we cannot expect prediction to be good for more than several Lyapunov times (the Lyapunov time is the typical e-folding time for error growth in a chaotic system). Thus, we will regard our predictions to be successful when they are good for a few Lyapunov times.

Now consider that we have made a prediction for $u(t)$, and, at some later time, we wish to perform another prediction of the same spatiotemporally evolving system with unknown dynamics. It is not necessary to retrain our predictor; we can, instead, re-use the previously obtained $Wout$.^{5} To do so, we re-initialize the reservoir state to zero, switch the reservoir computer into its open-loop configuration, and allow it to evolve given input states of the unknown dynamical system measured at times $tp\u2212TS\u2264t\u2264tp$ [i.e., $uin(t)=u(t)]$. $TS$ is some synchronization time that is sufficiently longer than the characteristic memory of the reservoir computer but, importantly, is much shorter than the necessary training time needed to determine $Wout$. $tp$ is the time at which we want to begin our prediction. After this synchronization period, the reservoir computer is switched to its standard closed-loop prediction configuration and is used to make predictions at later times.

If the original system is very high dimensional (i.e., the dimension $K$ of the measure vector $u(t)$ is very large), then $Dr\u226bK$ must be exceedingly large. This can make the training to determine $Wout$ infeasible. For example, if we solve Eq. (5) by the direct matrix method, Eq. (6) shows that we must solve a $Dr\xd7Dr$ linear system of equations. For our computational resources, we find that this becomes impossible as $Dr$ approaches $2\xd7104$. Due to this and other similar considerations, we deem the method discussed in this section to be untenable for the prediction of large, spatiotemporally chaotic systems of the type we are interested in.

### C. Hybrid reservoir computing

In this section, we briefly review a hybrid scheme proposed in Ref. 6 for combining reservoir computing with an imperfect knowledge-based model of the dynamical system of interest. We again assume access to time series data of measurements of the state of the dynamical system. We further assume that an imperfect knowledge-based model of the system producing the measurements is available and that this imperfect model is capable of forecasting the state of the dynamical system with some degree of accuracy, which we wish to improve upon. In the hybrid setup of Ref. 6 (Fig. 3) described below, it has been shown that the machine learning method and the knowledge-based model augment each other and, in conjunction, can provide a significantly better forecast than either the knowledge-based model or the pure machine learning model acting alone.

As in Sec. II, we assume that the data used for training is given by $K$ measurements of the state of the dynamical system at equally spaced increments in time, $\Delta t$, forming a vector time series $u(t)$. The imperfect knowledge-based model $M$ is an operator that maps the state $u(t)$ to a forecast of the state at time $(t+\Delta t)$.

We advance the reservoir state in time using the same activation function as described in Sec. II B,

Once again, during the training phase, $uin(t)=u(t)+s\eta (t)$. The training process is similar to the one employed in Sec. II for the basic reservoir computer but with the addition of the knowledge-based prediction (as illustrated in Fig. 3). Using ridge regression, we find a linear mapping $Wout$ from $r~(t)$ and $M[u(t)+s\eta (t)]$ to produce an approximate prediction of $u(t+\Delta t)$,

Here, $uin(t)$ is the same as that input to the reservoir, $uin(t)=u(t)+s\eta (t)$. We again include the small $s\eta (t)$ vector in the knowledge-based model input during training to improve the stability of the method. Additionally, recall that $r~$ is related to $r$ by Eq. (2). In the prediction phase, we run the hybrid system in a closed loop feedback configuration (Fig. 3 with the dashed line feedback connection present) using Eqs. (2) and (7), and the following equation:

During the prediction phase, the hybrid forecast $u~H(t)=uout(t)$ and the hybrid input is received from the feedback loop ($uin(t)=uout(t))$. Note that, in this scheme, the output is a linear combination of the reservoir state and the knowledge-based model output that optimizes the agreement of the combined system output with the training data. Thus, we can regard the result as being an optimum combination of the reservoir and knowledge-based components. Hence, we expect that if one component is superior for some aspect of the prediction, then it will be weighted more highly for that aspect of the prediction. This suggests that predictions by this method may be greatly improved over those available from either the knowledge-based component or the reservoir component acting alone (e.g., see Fig. 7 of Ref. 6).

In addition to the hybrid configuration shown in Fig. 3, we have also tested a modified configuration in which there is an additional input to the reservoir component from the output of the knowledge-based model $M$. We have empirically found that this modification sometimes yields a small positive improvement in prediction; however, for simplicity, we henceforth only consider the configuration in the figure.

### D. Parallelization

To obtain a good prediction of a chaotic dynamical system state using reservoir computing, the reservoir dimensionality must be much greater than that of the dynamical system (i.e., $Dr\u226bK$) so that there are enough free parameters available in $Wout$ for fitting the reservoir output state to the measured dynamical system state at time $(t+\Delta t)$. This can cause the computational cost of determining an optimum output matrix to become unfeasibly high for large dynamical systems, e.g., because the implementation of this step by the method of Eq. (6) involves solving a $Dr\xd7Dr$ linear system. As a point of reference, we note that the dimension of the state vector of a current typical operational global weather forecasting model is on the order of $109$. A method to make consideration of such problems feasible for machine learning approaches was proposed in Ref. 5. The idea is to exploit the short range of causal interactions over a small time period in many spatiotemporally chaotic dynamical systems. This was shown to allow the use of multiple relatively small reservoir computers that each make predictions of a part of the full dynamical system state as in a local region, illustrated in Fig. 4 and explained below. This method has the advantage that, in the training phase, all of the relatively small output matrices$Wout,p$ of each reservoir computer can be trained independently, in parallel, thus greatly reducing the difficulty of training.

For illustrative purposes, consider a spatiotemporal dynamical system in one spatial dimension with periodic boundary conditions. Let the dynamical system state be represented by a $K$-dimensional vector time series $u(t)=[u1(t),u2(t),\u2026,uK(t)]T$, where each scalar component $uj(t)$ represents the time series at a single spatial grid point. We divide the system state into $P$ equally sized, contiguous regions containing $Q$ system variables, where $PQ=K$. We denote the system variables in these regions as $up(t)=[uQ(p\u22121)+1(t),\u2026,uQp(t)]t$, where $1\u2264p\u2264P$. Each local region in space is predicted by a reservoir $Rp$, each of which has internal reservoir states $rp(t)$ and adjacency matrix $Ap$ generated via the process described in Sec. II B. Each reservoir is coupled to its input, $uin,p(t)$, via a matrix of input weights, $Win,p$. This input corresponds to a local region of the system that contains the region to be predicted by that reservoir as well as a size $\u2113$ overlap region on either side, $uin,p(t)=[uin,Q(p\u22121)+1\u2212\u2113(t),uin,Q(p\u22121)+2\u2212\u2113(t),\u2026,uin,Qp+\u2113(t)]T$. We denote the dynamical system state in this input region by the size $(2\u2113+Q)$ dimensional vector $vp(t)=[uQ(p\u22121)+1\u2212\u2113(t),uQ(p\u22121)+2\u2212\u2113(t),\u2026,uQp+\u2113(t)]T$. This overlap accounts for the short range causal interactions across the boundaries of the local regions. The assumption here is that, over the incremental prediction time $\Delta t$, state information does not propagate fast enough for nodes outside the input regions of reservoir $p$ to influence the time $\Delta t$ change in the dynamical system states predicted by reservoir $p$.

Each reservoir state is advanced using the following equation:

During the training phase (Fig. 4 with the dashed output-to-input connection absent), $uin,p(t)=vp(t)+s\eta (t)p$. Here, the $(2\u2113+Q)$ dimensional vector $\eta (t)p$ is the $p$th local region of a global vector of normally distributed random variables, $\eta (t)$, chosen independently at each time $t$,

After a suitably long transient nullification period, we determine the output matrices $Wout,p$ for each reservoir that solve the least squared optimization problem using ridge regression,

Note that, for each $p$, matrix $Wout,p$ can be relatively small as the number of outputs is the number of state variables in region $p$ (not the entire global state). Furthermore, the determinations of the relatively small $Wout,p$ matrices are independent for each region $p$, and thus can be computed in parallel. The “direct matrix method” solution for determining each of the $Wout,p$ matrices proceeds as follows. First, we rewrite Eq. (12) as

where in Eq. (13), $Up$ and $R~p$ are analogous to $U$ and $R~$ in the single reservoir prediction [see Eq. (6)]. $Up$ is the target matrix such that the $j$th column is $up(j\Delta t)$, while $R~p$ is obtained from $Rp$ analogous to the single reservoir case as described in Eq. (2). Each $Wout,p$ is calculated by solving the following equation:

Note that, as previously claimed, the minimization problem for each $p$, Eq. (13), is completely independent and can be solved for the different $p$ in parallel. As in Sec. II B, in the prediction phase and, after a period of synchronization, we produce a full state prediction $u~(t)$ by running the system in a closed loop feedback configuration (i.e., Fig. 4 with the dashed output-to-input feedback connection present). This is done by concatenating the local predictions from each reservoir $u~p(t)=uout,p(t)$ [where $uout,p(t)$ is the output state from each reservoir]. Reservoir $p$ then receives inputs from its own outputs in addition to the left and right overlap zone inputs from the $\u2113$ left grid points and the $\u2113$ right grid points. The entire system thus evolves as follows:

where $r~p(t)$ is obtained from $rp(t)$ using Eq.(2).

Finally, we compare the parallel reservoir method with Convolutional Neural Networks (CNNs), a commonly used form of the artificial neural network architecture that is constructed to learn spatial features.^{23} The main differences between the parallel reservoir method and CNN-based methods are in the type of models they produce and the method for training each of them. CNNs capture spatial features via a global model of the local dynamics that parameterizes many different local fields. Our chosen approach, on the other hand, determines many local models for each spatial region which, in the case of a spatially inhomogeneous system such as terrestrial weather, we believe will be more accurate than a global model. In addition, we expect our chosen method is easier to train due to the simplicity of obtaining the least squares optimal solution for each relatively small local region.

### E. Combined hybrid/parallel prediction (CHyPP)

In our previous work,^{6} we constructed a hybrid prediction method using a single reservoir. In this section, we consider a combination of the parallel approach of Sec. II D (which enables computationally efficient scaling to high-dimensional spatiotemporal chaos) and the hybrid approach of Sec. II C (which allows us to utilize partial prior knowledge of the dynamical system), where we assume that the knowledge-based system provides *global* predictions over the entire spatial domain. A diagram of this method can be found in Fig. 5. While the approach is easily generalized to 2- and 3-dimensional spatial processes, in order to most simply demonstrate our proposed methodology, we again consider a one-dimensional, spatiotemporally chaotic dynamical system with periodic boundary conditions, with a state represented by a $K$-dimensional vector time series $u(t)=[u1(t),u2(t),\u2026,uK(t)]T$. Our approximate knowledge-based prediction operator $M$ gives a global prediction of the full system state for a time $\Delta t$: $M[u(t)]=u^(t+\Delta t)$. As in our parallel reservoir computer prediction described in Sec. II D, we partition the system state into $P$ equally sized, continuous regions containing $Q$ variables, where $PQ=K$ and each such region is predicted by a reservoir $Rp$, $p=1,2,\u2026,P$.

Each reservoir $Rp$ input is coupled to a local region of the system states as in Sec. II D, and the reservoir state $rp(t)$ is advanced using the following equation:

During the initial training phase, $uin,p(t)=vp(t)+s\eta (t)p$. In Eq. (18), $Win,p$ is the input coupling matrix for the local system states, analogous to that described in Sec. II B. As in Sec. II D, $vp(t)$ is the state measurements at grid points within the local region to be predicted along with $\u2113$ grid points to either side and $\eta (t)p$ is the $p$th local region of the global vector of normally distributed random numbers $\eta (t)$. Each reservoir is trained independently, in parallel, using a set of training data consisting of an equally spaced time series of measured states of the large scale dynamics beginning at $t=0$ after some initial transient nullification period. Again, we solve the least squares optimization problem with ridge regression to determine an output mapping for each reservoir [analogous to Eq. (13)],

In Eq. (19), $U^p$ is a matrix whose $j$th column is $u^p(j\Delta t)$, where $u^p(j\Delta t)$ is the knowledge-based prediction of the $p$th local region of the system,

The solution to Eq. (19) by the direct matrix method is

In the prediction phase, we run the system in a closed-loop configuration according to Eqs. (22)–(25) to predict each local region of the system given each reservoir state and knowledge-based model prediction, obtaining $u~p(j\Delta t)$. The local predictions are appropriately concatenated to form a full state prediction, which is then used as input for the next prediction step, as follows:

In the above equations, we once again calculate $r~p(t)$ from $rp(t)$ using Eq. (2).

## III. TEST RESULTS ON THE KURAMOTO–SIVASHINSKY EQUATION

We test the effectiveness of our proposed CHyPP method (Sec. II E) by forecasting the state evolution of the Kuramoto–Sivashinsky equation with periodic boundary conditions,^{24,25}

where $y=y(x,t)$ and $y(x+L,t)=y(x,t)$. This spatial one-dimensional model generally produces spatiotemporally chaotic dynamics for periodicity length $L\u227350$. For the purpose of comparing various methods, we regard Eq. (26) as generating the state measurements of a putative system that we are interested in, while the imperfect prediction model we use is a modified version of this same equation, where an error term $\u03f5$ is introduced in the coefficient of the second derivative term,

We have also investigated the case where the error is introduced by multiplying the $y\u2202y/\u2202x$ term in Eq. (26) by $(1+\u03f5)$. For the latter case, the results of our method are qualitatively similar to those for Eq. (27). We form our simulated measured time series $u(t)$ by taking the $i$th element of $u(t)$ to be $y(i\Delta x,t)$, where $\Delta x=L/K$ is the grid spacing used for our numerical solutions of Eq. (26). We numerically solve the Kuramoto–Sivashinky equation on the same discretized spatial grid using fourth-order Runge–Kutta exponential time differencing.^{26} As a metric for how long a prediction is valid, we calculate the normalized root mean square error (NRMSE) between the true and predicted system states. We define the length of valid prediction, or “valid time,” to be the time at which NRMSE exceeds 0.2. Since the NRMSE saturates at $sqrt(2)$, we consider this to be the point when error in the prediction reaches about 15% of its saturation value. In Sec. III A, we demonstrate that our CHyPP methodology can scale to predict very large systems. In Sec. III B, we show that the CHyPP method requires significantly less training data than the parallel scheme of Sec. II D (using reservoirs without a knowledge-based component). We then discuss, in Sec. III C, the sensitivity of the CHyPP and parallel machine learning (Sec. II D) methods to the local overlap length $\u2113$.

For all of our numerical experiments in this paper, in addition to our solution of the imperfect model, we use a digital computer to implement the machine learning. However, if, in the future, CHyPP is applied to very large systems (e.g., weather forecasting) requiring a much larger number of parallel machine learning units, then we envision that it may prove useful to perform the parallel machine learning using a special purpose physically implemented reservoir computing array, e.g., based on FPGAs or photonic devices.^{15–17} Such implementations, called “AI hardware accelerators,” show great promise with respect to low cost, speed, and compactness.

### A. Prediction scalability

We first test the ability of our CHyPP method to scale to large system sizes. We consider the Kuramoto–Sivashinsky equation, where we fix the number of system variables (grid points) each reservoir is trained to predict to $Q=8$, as well as the reservoir spatial density to $P/L=16/100$ (*P* is the number of reservoirs), while varying the periodicity length $L$. For all tests in this section, we use the hyperparameters in Table I unless otherwise specified. We additionally fix the error in the incorrect model to $\u03f5=0.1$. Figure 6 shows the resulting NRMSE between the true state and our hybrid parallel prediction averaged over 100 prediction periods vs time. For each value of $L$ plotted in Fig. 6, the density of the parallel reservoir computers is kept constant at $P/L=0.16$. Additionally, the time plotted horizontally is in units of the Lyapunov time (the average chaos-induced e-folding time of small errors in the predicted state orbit). The NRMSE is relatively unchanged as the value of $L$ is increased, indicating that the CHyPP prediction, like the parallel reservoir-only prediction in Ref. 5, can be scaled to very large systems by the addition of more reservoirs.

Finally, we note that our test system, the Kuramoto–Sivashinky equation, is homogeneous in space, while the real systems we are interested in are generally spatially inhomogeneous. For example, weather forecasting accounts for geographic features (continents, mountains, etc.), as well as for latitudinal variation of solar input, among other spatially inhomogeneous factors. In order to ensure that our numerical tests with a homogeneous model are also relevant for a typical inhomogeneous situation, we have not made any use of the homogeneity of Eq. (26): the adjacency matrices $Ap$ corresponding to each reservoir $p$ are independently randomly generated and each $Wout,p$ is determined separately (rather than taking all $Ap$ and $Wout,p$ to be the same, as would be possible for a homogeneous system).

### B. CHyPP promotes the possibility of good performance using a relatively small duration of training data

The prediction results shown in Figs. 7 and 8 use the parameters contained in Table I. In addition, the number of reservoirs and the length of training data are specified in the figure captions. Our true Kuramoto–Sivashinky equation dynamics and our imperfect model use a periodicity length of $L=100$ and are realized over $K=128$ spatial grid points. The imperfect model has an error of $\u03f5=0.1$ and a small valid prediction time of only $0.48$ Lyapunov times. Each plotted valid time is averaged over 100 predictions that are generated using the same set of reservoirs with the same training data sequence but that are synchronized to different initial conditions. Figure 7 displays a set of example predictions of one of these test time series. Figures 7 and 8 both demonstrate that CHyPP yields significantly longer valid predictions than the parallel reservoir-only method, which (for our choice of $\u03f5$ and reservoir size) produces longer valid predictions than the imperfect model alone. Both the parallel hybrid and parallel reservoir-only predictions outperform the imperfect model-only approach. From Fig. 8, we also observe that the CHyPP saturates or reaches a valid prediction time that increases only negligibly with the addition of more training data, at a much shorter length of training data than the parallel reservoir-only. As a result of this, the length of training data before which we would not benefit from increasing the size of the reservoir is also much shorter in the CHyPP prediction. For example, consider the plots in (b) and (f) in Fig. 8, where each prediction uses four reservoirs. If we have a 500 Lyapunov time length of training data, we would not benefit from increasing the number of nodes per reservoir above 2000 in the reservoirs-only prediction but could obtain a significant performance improvement if we did so using CHyPP. CHyPP exhibits its most impressive performance for very short lengths of training data. With only 22.5 Lyapunov times worth of training data, the parallel reservoir-only method is able to predict for only 0.44 Lyapunov times, whereas CHyPP with 16 reservoirs of 2000 nodes each predicts for 3.35 Lyapunov times on average, matching the saturated single reservoir-only prediction that is trained using 150 times more training data.

### C. Prediction quality dependence on local overlap length

In this section, we investigate the dependence of CHyPP performance on the local overlap length $\u2113$. Figure 9 shows that when the local overlap length $\u2113$ is zero or close to zero, the parallel reservoir-only prediction valid time (solid red line) is very poor, predicting for only around 0.5 Lyapunov times.

CHyPP, however, is still able to obtain good predictions with a very little local overlap length. For CHyPP, this indicates that it is able to utilize the inaccurate model prediction to infer the propagation of dynamical influences between the adjacent prediction regions. We note that neither CHyPP nor the 16 parallel reservoirs-only prediction is able to improve upon a corresponding single, large reservoir hybrid prediction or corresponding single large reservoir-only prediction when the local overlap length is near 0. Regarding this comparison, however, it is important to recognize that in systems larger than the one we have used to test our method here, use of a single reservoir prediction is not possible because the reservoir size necessary for prediction becomes infeasible, as discussed in Sec. II. This result is, nevertheless, very important for large-scale implementations of the proposed method. In realistic systems with three spatial dimensions, a small increase in the local overlap length $\u2113$ can lead to increasingly large memory requirements and increasingly large amounts of information that must be communicated between reservoirs at each prediction iteration. Being able to obtain a good prediction with less local overlap length when the propagating dynamics is adequately explained by the imperfect model is thus another advantage of CHyPP.

## IV. TEST RESULTS ON A MULTISCALE SYSTEM PREDICTION AND THE PROBLEM OF SUBGRID-SCALE CLOSURE

A common difficulty in numerical modeling arises because many physical processes involve dynamics on multiple scales. As a result, fundamentally crucial subgrid-scale dynamics is often only crudely captured in an *ad hoc* manner. The formulation of subgrid-scale models by analytical techniques has been extensively studied (e.g., see Ref. 27) and is sometimes referred to as “subgrid-scale closure.” In this section, we show that our CHyPP methodology provides a very effective data-based (as opposed to analysis-based) approach to subgrid-scale closure.

In particular, we test our CHyPP prediction method on a dynamical system with multiple spatial and temporal scales. The particular system we choose to predict is the multiscale “toy” atmospheric model formulated by Lorenz in his 2005 paper.^{28} We refer to this model as Lorenz Model III. This model is a smoothed extension of Lorenz’s original “toy” atmospheric model described in his 1996 paper^{29} (hereafter referred to as Lorenz Model I), with the addition of small-scale dynamical activity. Lorenz Model III describes the evolution of a single atmospheric variable, $Z$, on a one-dimensional grid with $N$ grid points and periodic boundary conditions, representing a single latitude. The value of $Z$ at each grid point, $Zn$, evolves according to the following equation:

In Eq. (28), $X$ is a smoothed version of $Z$, and $Y$ is the difference between $Z$ and $X$,

Here, $I$ denotes the smoothing distance. Thus, $X$ describes the large-spatial scale, long-time scale wave component of $Z$, while $Y$ describes the small-spatial scale, short-time scale wave component. $[V,W]K,n$ indicates a coupling between the variables $V$ and $W$ [i.e., interaction within scales ($V=W=X$ or $Y$) or between scales for ($V=X$, $W=Y$)]. For $K$ even, this coupling takes the form

Here, $J=K/2$ and $\u2211\u2032$ denotes a modified summation where the first and last summands are divided by 2. For $K$ odd, $J=(K\u22121)/2$ and each $\u2211\u2032$ becomes a standard summation $\u2211$. In Eq. (28), the parameters $K$, $b$, $c$, and $F$ describe the coupling distance of the system’s large-scale dynamics, the increase in small-scale oscillation rapidity and the decrease in amplitude (relative to the large-scale dynamics), the degree of interaction between the large- and small-scale dynamics, and the overall forcing in the system, respectively. We note that when $b=c=0$ and $K=1$, this model reduces to the Lorenz Model I.

For the purposes of testing our CHyPP method, we also introduce another model formulated by Lorenz, which we will refer to as Lorenz Model II.^{28} This model is equivalent to Lorenz Model III with no distinct small-scale wave component or smoothing present in the equation

Importantly for our tests, Lorenz notes that, for constant $F$, the dominant wavenumber in Lorenz Model II depends only on the ratio $N/K$.

We test our CHyPP method by using it to predict the dynamics generated from Lorenz Model III using Lorenz Model II as our imperfect knowledge-based predictor. As we discussed in Sec. I, knowledge-based models used to predict physical multiscale systems (i.e., the weather) often use simplified representations of subgrid-scale dynamics. To replicate this type of imperfection in the knowledge-based model in CHyPP, we realize the Lorenz Model II dynamics over an equal or fewer number of grid points $NModel II$ while using the same $N/K$ ratio as used to generate the true Lorenz Model III dynamics (i.e., $NModel III/KModel III=NModel II/KModel II$). Our imperfect model thus incorrectly represents the effect of small-scale dynamics that, when $NModel III>NModel II$, are also subgrid. In our tests, each of these models is solved numerically using a fourth-order Runge–Kutta scheme.

For the following results in this section, we use the parameters in Table II. In addition, the value of $s$ used in each of the reservoir computing-based prediction methods has been selected for each method to maximize the valid prediction time. Figure 10 shows a solution of Lorenz Model III where the value of $Z$ is color-coded. The spatial variable is plotted vertically, time is plotted horizontally, and the model parameters are given in the caption. As seen in Fig. 10, there is a wave-like motion with a dominant wavenumber of $\u22487$ (seven oscillations along the vertical periodicity length). This corresponds to Lorenz’s design of the model to mimic atmospheric dynamics, which has a predominant wavenumber for Rossby waves of this order as one goes around a mid-latitude circle. Figures 11–14 show predictions of the true Lorenz Model III dynamics (in Fig. 10) for grid resolutions of varying coarseness. In particular, while the truth (Fig. 10) is obtained from Model III with $N=960$ grid points, the number of Model II grid points is $N=960$, $480$, $240$, and $120$ for Figs. 11, 12, 13, and 14, respectively. Also note that the measurements are taken from the Model III result only at the Model II grid points. For both the parallel reservoir-only predictions and CHyPP, we fix the ratio of the number of nodes per reservoir to the number of grid points each reservoir predicts to be $Dr/Q=25$. We choose the Lorenz Model III time units rather than the Lyapunov time as our time scale for these plots since the largest Lyapunov exponent of Model III corresponds to the small-spatial scale, short-time scale dynamics and thus will not be relevant to our intended goal of forecasting the large-spatial scale, long-time scale dynamics.

We find that CHyPP significantly outperforms each of its component methods and that this is true for all of the grid resolutions we tested. We note that, unlike in the Model II and parallel reservoir-only predictions, the prediction error in CHyPP seems to appear locally in a small region and manifests as slanted streaks in the error plots in Figs. 11–14. We have verified that the slant of these streaks corresponds to the group velocity of the dominant wave motion (wavenumber $\u22487$). For all predictions made, we again calculate a valid time of prediction; however, since in this case early error growth using CHyPP is local in space and affects only a small part of the prediction domain, we choose to use a higher valid time error threshold of 0.85 ($\u223c60$% of the error saturation value) so that the valid time metric reflects when error is present in the entire prediction domain. Figure 15 shows the valid time averaged over 100 predictions from different initial conditions vs training time for different grid resolutions and reservoir sizes. The dashed lines are parallel reservoir-only predictions, while the solid lines are CHyPP predictions. In this figure, the reservoir sizes are scaled in proportion to the number of Model II grid points used. We find that, while the quality of the scaled parallel reservoir-only prediction degrades significantly as the grid resolution decreases, the quality of the scaled CHyPP prediction degrades much more slightly from an average valid time of $3.23$ at full resolution to $3.05$ at $1/8$ resolution. The Model II valid time is essentially constant at $\u223c0.95$, corresponding to the fact that all of the grid spacings tested are well below the characteristic Model II spatial scale. We see from Fig. 15 that the parallel reservoir-only prediction and CHyPP prediction appear to reach valid time saturation at about the same training data length for each grid resolution.

## V. CONCLUSION AND DISCUSSION

In this paper, we address the general goal of utilizing machine learning to enable expanded capability in the forecasting of large, complex, spatiotemporally chaotic systems for which an imperfect knowledge-based model exists. Some typical common sources of imperfection in such a knowledge-based model are unresolved subgrid-scale processes and lack of first principles knowledge or computational ability for modeling some necessary aspect or aspects of the physics. The hope is that these “imperfections” can be compensated for by use of measured time series data and machine learning. The two main foreseeable difficulties in realizing this hope are how to effectively combine the machine learning component with the knowledge-based component in such a way that they mutually enhance each other, and how to promote feasible scaling of the machine learning requirements with respect to its computational cost and necessary amount of training data. Note that addressing the first of these issues necessarily lessens the difficulty of dealing with the second issue, since good use of any valid scientific knowledge of the system being forecast can potentially reduce the amount of learning required from the machine learning component.

To address these two issues, we propose a methodology (CHyPP) that combines two previously proposed techniques: (i) a hybrid utilization of an imperfect knowledge-based model with a single machine learning component^{6,18} and (ii) a parallel machine learning scheme using many spatially distributed machine learning devices.^{5} We note that (ii) applies to large spatial systems with the common attribute of what we have called “local short-time causal interactions.” Numerical tests of our proposed combination of (i) and (ii) are presented in Secs. III and IV and demonstrate good quality prediction that is scalable with size (Figs. 6 and 7), reduced required length of training data (Fig. 8), and ability to compensate for unresolved subgrid-scale processes (Figs. 10–15).

In this paper, our proof-of-principle problems have been one-dimensional in space with relatively simple mathematical formulations. We note, however, that the CHyPP methodology is readily applicable to higher dimensions and more complicated situations. For example, we are currently in the process of applying CHyPP to global atmospheric weather forecasting for which the atmospheric state is spatially three-dimensional and the system is strongly inhomogeneous, e.g., due to the presence of complex geographic features (including continents, mountains, and oceans), as well as the latitudinal variation of solar heating.

Finally, we note that in many situations, such as operational weather forecasting, predictions are produced cyclically once every cycle time interval. To do this, an accurate estimation of the initial condition is required at the beginning of each cycle. The process of formulating accurate initial conditions is called “data assimilation” and is vital to account for sparse and uncertain measurements. Once every cycle time interval, a set of forecasts are produced for a set of forecast times, where one of these times is equal to the cycle time interval. Then, at the beginning of the next cycle, the previous forecast for the state at the cycle time interval is combined with state measurements taken during the previous cycle and their corresponding estimated uncertainty to obtain an estimate of the current state of the system to be predicted. This state estimate is then used as an initial condition for a forecast model making the next set of predictions. The problem of formulating data assimilation for our improved prediction model (CHyPP) awaits further study, which we are currently pursuing.

In conclusion, we have shown that data-assisted forecasting via parallel reservoir computing and an imperfect knowledge-based model can significantly improve prediction of a large spatiotemporally chaotic system over existing methods. This method is scalable to even larger systems, requires significantly less training data than previous methods to obtain high quality predictions, is able to effectively utilize a knowledge-based forecast of information propagation between local regions to improve prediction quality, and effectively provides a means of using data to compensate for unresolved subgrid-scale processes (playing a role akin to traditional analysis-based closure schemes).

## ACKNOWLEDGMENTS

We thank Sarthak Chandra for his helpful discussion and comments. This work was supported by the Defense Advanced Research Projects Agency (DARPA) under Contract No. DARPA-PA-18-01(HR111890044).

## DATA AVAILABILITY

The data that support the findings of this study are available from the corresponding author upon reasonable request. Our software implementation of CHyPP in MATLAB is publicly available at https://github.com/awikner/CHyPP.

## REFERENCES

*GMD Technical Report 148*(German National Research Center for Information Technology, Bonn, 2001), p. 34.

*Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)*(Association for Computational Linguistics, Doha, 2014), pp. 1724–1734.

*Solutions of Ill-Posed Problems*, Scripta Series in Mathematics (Winston, 1977).

*Proceedings of the Twenty-First International Conference on Machine Learning*, ICML ’04 (Association for Computing Machinery, Banff, 2004), p. 116.

*Deep Learning*(MIT Press, 2017), p. 321–361.

*Seminar on Predictability, Shinfield Park, Reading, 4–8 September 1995*(ECMWF, 1995), Vol. 1, pp. 1–18.