Algorithm Search⌘K

Problemintro

Data assimilation problem

Also called data assimilation.

Estimate the state of a large dynamical system, such as the atmosphere, from a forecast model and sparse noisy observations over time.

The data assimilation problem asks for the state of a dynamical system, such as the atmosphere or the ocean, given a model of its evolution, a prior estimate of its initial state, and a stream of observations that are noisy, indirect and far too few to fix the state on their own. The model fills the gaps between observations in space and time, and the observations correct the drift of the model. In probabilistic form the answer is the distribution of the state given all observations so far (filtering) or over a whole time window (smoothing). In practice the state has 10710^7 to 10910^9 components, so every operational method computes an approximation: a point estimate with an error covariance that is modeled, sampled by an ensemble, or never formed. Weather prediction centers solve this problem several times a day to start their forecasts.

In plain words

A weather model can predict tomorrow from today, but only if it knows today exactly, and nobody does. There are measurements from stations, balloons, aircraft and satellites, but they cover only a small part of the atmosphere, they have errors, and many of them measure something other than what the model uses, such as the radiation that reaches a satellite. Data assimilation combines the last forecast with the new measurements to get the best picture of the present. It weighs each source by how much it can be trusted. The result starts the next forecast, which is then combined with the next measurements, and so on, in a cycle.

Definition

Notation. We use the notation of Ide, Courtier, Ghil and Lorenc (1997). The state at time tkt_k is xk∈Rnx_k \in \mathbb R^n, and pkp_k is the number of observations at that time. In the letters of the Kalman filter page, MkM_k is its AA, HkH_k is its CC, the forecast xkf,Pkfx^f_k, P^f_k is its predicted value, and the analysis xka,Pkax^a_k, P^a_k is its filtered value.

Input.

  • A model xk=Mk(xk−1)+ηkx_k = M_k(x_{k-1}) + \eta_k, with model errors ηk\eta_k of covariance QkQ_k (Qk=0Q_k = 0 for a perfect model).
  • Observations yko=Hk(xk)+εkoy^o_k = H_k(x_k) + \varepsilon^o_k at times k=1,…,Kk = 1, \ldots, K, with an observation operator Hk:Rn→RpkH_k : \mathbb R^n \to \mathbb R^{p_k} and observation errors εko\varepsilon^o_k of covariance RkR_k.
  • A prior for the initial state, usually a background xbx^b with the background error covariance BB, so x0∼N(xb,B)x_0 \sim \mathcal N(x^b, B) in the Gaussian case.
  • The errors x0−xbx_0 - x^b, ηk\eta_k and εko\varepsilon^o_k are independent of each other.

Output. One of the following, for the posterior distribution given by Bayes' theorem:

  • Filtering. The distribution p(xk∣y1o,…,yko)p(x_k \mid y^o_1, \ldots, y^o_k) at each time kk, or its mean xkax^a_k and covariance PkaP^a_k.
  • Smoothing. The distribution p(x0,…,xK∣y1o,…,yKo)p(x_0, \ldots, x_K \mid y^o_1, \ldots, y^o_K) of the whole trajectory, or its mode.

The cycle. The filtering solution is a recursion of two steps. The forecast step pushes the analysis distribution at time k−1k - 1 through the model to get the forecast distribution at time kk. The analysis step combines the forecast with ykoy^o_k by Bayes' theorem, p(xk∣y1:ko)∝p(yko∣xk) p(xk∣y1:k−1o)p(x_k \mid y^o_{1:k}) \propto p(y^o_k \mid x_k)\,p(x_k \mid y^o_{1:k-1}). The innovation dk=yko−Hk(xkf)d_k = y^o_k - H_k(x^f_k) measures the new information.

Variants

  • Linear Gaussian. MkM_k and HkH_k are linear and all errors are Gaussian. Then all distributions are Gaussian and the Kalman filter and the Rauch-Tung-Striebel smoother solve the problem exactly.
  • One analysis time (three-dimensional). Only the analysis step, with the forecast as the background: find xax^a from xbx^b, BB, yoy^o and RR. This is a Bayesian inverse problem.
  • Strong constraint (perfect model). Qk=0Q_k = 0, so the trajectory is fixed by x0x_0, and smoothing is an estimate of x0x_0 alone. This is the problem of strong constraint 4D-Var.
  • Weak constraint. Qk≠0Q_k \ne 0, and the model errors are unknowns too, as in weak constraint 4D-Var.
  • Parameter estimation. Unknown model parameters are added to the state and estimated with it.
  • Point estimate or distribution. Some methods return a single estimate, the posterior mode or mean, and others return a sample of the posterior, as ensemble methods do.

Examples

One scalar analysis. The prior is x∼N(0,1)x \sim \mathcal N(0, 1), and one observation yo=1y^o = 1 of xx has the error variance R=1R = 1. The posterior is N(1/2,1/2)\mathcal N(1/2, 1/2): the analysis is halfway between background and observation, and its variance is half of each.

A scalar cycle. The model is a random walk xk=xk−1+ηkx_k = x_{k-1} + \eta_k with Q=1Q = 1, the prior is x0∼N(0,1)x_0 \sim \mathcal N(0, 1), and xkx_k is observed with R=1R = 1. With y1o=1y^o_1 = 1 and y2o=0y^o_2 = 0:

kk forecast mean forecast variance gain observation analysis mean analysis variance
1 0 2 2/3 1 2/3 2/3
2 2/3 5/3 5/8 0 1/4 5/8

Each forecast step adds the model error variance, and each analysis step reduces the variance by the factor 1−gain1 - \text{gain}.

A twin experiment. A truth run of the Lorenz-96 model with 40 variables is observed every 0.05 time units with errors of standard deviation 1. A method is judged by the root mean square error of its analysis against the truth after a spin-up. An error well below 1 means that the model has carried information between observations. This is the standard test of new methods (see observing system simulation experiment).

Weather prediction. A global center has a state of about 10910^9 numbers and assimilates of the order of 10710^7 observations per day, most of them satellite radiances whose observation operator is a radiative transfer model. These figures are rough orders of magnitude, not exact values.

Known algorithms

AlgorithmTimeSpacePropertiesCode
Ensemble adjustment Kalman filterΘ(p N (n + p)) worstΘ(N (n + p)) extradeterministicnot perturbed observations1 language
Ensemble Kalman filterΘ(N p (n + p) + p^3) worstΘ(n p + p^2 + N (n + p)) extraderivative freerandomizedperturbed observations1 language
Ensemble Kalman smootherΘ(T (p^3 + p^2 N + N^3 + N^2 n (L + 1))) worstΘ(N n (L + 1) + N^2 + p (p + N)) extradeterministic1 language
Ensemble square root filterΘ(p N (n + p)) worstΘ(N (n + p)) extradeterministicnot perturbed observations1 language
Ensemble transform Kalman filterΘ(p^3 + p^2 N + p N^2 + N^3 + n N^2) worstΘ(N^2 + p N + n N) extraanalysis in ensemble spandeterministicnot perturbed observations1 language
Four-dimensional ensemble-variational assimilationΘ(N K c + n^3 + p^3 + m (K N n^2 + p n)) worstΘ(N K n + n^2 + p^2) extradeterministicnot needs adjoint1 language
Four-dimensional variational assimilationΘ(n^3 + I (K c + n^2 + n p)) worstΘ(K n + n^2) extradeterministic1 language
Hybrid ensemble-variational assimilationΘ(n^3 + p^3 + m (N n^2 + p n + p^2)) worstΘ(N n + n^2 + p^2) extradeterministic1 language
Incremental 4D-VarΘ(n^3 + k (K c + m (K s + n^2 + n p))) worstΘ(K n + n^2) extradeterministic1 language
Local ensemble transform Kalman filterΘ(N p + n (p + s^2 N + s^3)) worstΘ(N (n + p) + s N + s^2) extradeterministicmean preservingnot perturbed observations1 language
Local particle filterΘ(N p + n N q) worstΘ(N p + n N) extrarandomized1 language
NudgingΘ(m (c + n + p + z)) worstΘ(n + p + z) extracontinuous in timedeterministic1 language
Optimal interpolationΘ(n s^3) worstΘ(s^2) extradeterministiclinear in data1 language
Representer methodΘ(p K (c + n^2) + p^2 n + p^3) worstΘ(K n + p n + p^2) extradeterministicexact for linear model1 language
Three-dimensional variational assimilationΘ(n^3 + p^3 + k m (n^2 + n p + p^2)) worstΘ(n^2 + n p + p^2) extradeterministic1 language
Weak-constraint 4D-VarΘ(K n^3 + k (K c + m (K s + K n^2 + n p))) worstΘ(K n^2) extradeterministic1 language

Bounds

  • Linear Gaussian, exact. The Kalman filter needs Θ(n2)\Theta(n^2) memory for PP and, with dense matrices, Θ(n3+n2p+p3)\Theta(n^3 + n^2 p + p^3) time per cycle for pp observations. For n=108n = 10^8 the covariance alone would have 101610^{16} entries, which is why operational methods never form it.
  • Optimality. Among all estimators that are linear in the data, the Kalman analysis has the smallest error covariance when the model is linear and the error covariances are correct (a theorem in the sense of the Gauss-Markov theorem). Gaussian errors make it optimal among all estimators.
  • Nonlinear, general. No finite-dimensional recursion gives the exact filter in general. Standard particle filters need a number of particles that grows exponentially with the effective dimension of the observations to avoid weight collapse.
  • Predictability. In a chaotic model, errors grow on average like eλ1te^{\lambda_1 t} between analyses, so the observations must be frequent and accurate enough to hold the analysis error below the size of the attractor. In Lorenz-96 with n=40n = 40 and F=8F = 8, λ1\lambda_1 is about 1.7 per time unit (a measurement, see the Lorenz-96 model).

Reductions

  • One analysis step to regularized least squares. For a linear HH and Gaussian errors, the analysis is the solution of a generalized least squares problem, the minimizer of ∥x−xb∥B−12+∥yo−Hx∥R−12\|x - x^b\|^2_{B^{-1}} + \|y^o - Hx\|^2_{R^{-1}}, which is Tikhonov regularization with the background as the prior. The cost of the reduction is that of forming products with BB, HH and R−1R^{-1}.
  • Strong constraint smoothing to nonlinear least squares. With Q=0Q = 0, the smoothing problem is the minimization over x0x_0 alone of a nonlinear least squares cost, which Gauss-Newton steps solve with tangent linear and adjoint runs.
  • Smoothing to filtering. For linear Gaussian models, a forward Kalman filter and a backward pass of the Rauch-Tung-Striebel smoother give the smoothing distribution in twice the cost of the filter.
  • From filtering to the general hidden Markov model. Data assimilation is filtering and smoothing for a state-space model with a very large state, a deterministic or almost deterministic transition and a linear or weakly nonlinear observation.

Applications

  • Initial conditions for numerical weather prediction, several times a day at every major center.
  • Reanalysis: a consistent record of the past atmosphere or ocean from all historical observations and a fixed modern system.
  • Ocean, sea ice, land surface, hydrology and atmospheric chemistry, where the models are partial differential equations and the observations are sparse.
  • Evaluation of new observing systems before they are built, with observing system simulation experiments.
  • Parameter estimation for physical models, and state estimation in engineering and epidemiology.

References

  1. Eugenia Kalnay, Atmospheric Modeling, Data Assimilation and Predictability, Cambridge University Press, 2003, Chapter 5 (data assimilation)
  2. K. Law, A. Stuart and K. Zygalakis, Data Assimilation, A Mathematical Introduction, Springer, 2015, Chapter 2 (the smoothing problem in Section 2.3 and the filtering problem in Section 2.4)
  3. M. Asch, M. Bocquet and M. Nodet, Data Assimilation, Methods, Algorithms, and Applications, SIAM, 2016, Chapter 1 (introduction to data assimilation and inverse problems)
  4. Geir Evensen, Data Assimilation, The Ensemble Kalman Filter, second edition, Springer, 2009, the formulation of the problem as Bayesian estimation
  5. K. Ide, P. Courtier, M. Ghil and A. C. Lorenc, Unified notation for data assimilation, operational, sequential and variational, Journal of the Meteorological Society of Japan 75(1B) (1997) 181-189, the notation used here

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a contract.yaml