Open Access

# Model order reduction for Bayesian approach to inverse problems

Asia Pacific Journal on Computational Engineering20141:2

DOI: 10.1186/2196-1166-1-2

Accepted: 23 November 2013

Published: 29 April 2014

## Abstract

This work presents an approach to solve inverse problems in the application of water quality management in reservoir systems. One such application is contaminant cleanup, which is challenging because tasks such as inferring the contaminant location and its distribution require large computational efforts and data storage requirements. In addition, real systems contain uncertain parameters such as wind velocity; these uncertainties must be accounted for in the inference problem. The approach developed here uses the combination of a reduced-order model and a Bayesian inference formulation to rapidly determine contaminant locations given sparse measurements of contaminant concentration. The system is modelled by the coupled Navier-Stokes equations and convection-diffusion transport equations. The Galerkin finite element method provides an approximate numerical solution-the ’full model’, which cannot be solved in real-time. The proper orthogonal decomposition and Galerkin projection technique are applied to obtain a reduced-order model that approximates the full model. The Bayesian formulation of the inverse problem is solved using a Markov chain Monte Carlo method for a variety of source locations in the domain. Numerical results show that applying the reduced-order model to the source inversion problem yields a speed-up in computational time by a factor of approximately 32 with acceptable accuracy in comparison with the full model. Application of the inference strategy shows the potential effectiveness of this computational modeling approach for managing water quality.

### Keywords

Bayesian Convection-diffusion equation Navier-Stokes equations Markov chain Monte Carlo Inverse problem Proper orthogonal decomposition Reduced-order model

## Background

Hydrodynamic processes such as contaminant transport in lakes and reservoirs have a direct impact on water quality. The contaminants will appear, spread out, and decrease in concentration, etc. because of some processes such as convection, diffusion, time rate release of contaminants, and distance of travel. To simulate such processes, a coupled system of partial differential equations (PDEs) including the Navier-Stokes equations (NSEs) and contaminant transport equations needs to be solved. A better understanding of these processes is important in managing water resources effectively.

The direct or forward problems compute the distribution of contaminant directly from given input information such as contaminant location, contaminant properties, fluid flow properties, boundary conditions, initial conditions, etc. On the contrary, the inverse problems infer the unknown physical parameters, boundary conditions, initial conditions, or geometry given a set of measured data. These known data can be obtained experimental or computational. In realistic applications, data are not perfect because of error due to sensor noise. In addition, the model may contain some uncertain parameters such as wind velocity. Thus, inverse problems are generally stochastic problems.

A Bayesian inference approach to inverse problems is one way to deal with the stochastic problem. This approach takes into account both the information of the model parameters with uncertainty and the inaccuracy of data in terms of a probability distribution [1, 2]. The Bayesian approach provides a general framework for the formulation of wide variety of problems such as climate modeling [3], contaminant transport modeling [46], and heat transfer [7]. Under the Bayesian framework, simulated solutions need to be evaluated repeatedly over different samples of the input parameters. There are available sampling strategies associated with Bayesian computation such as Markov chain Monte Carlo (MCMC) methods [811]. However, if we use traditional PDE discretization methods, such as finite element or finite volume methods, the resulting numerical models describing the system will be very large and expensive to solve.

This paper presents an efficient computational approach to solve the statistical inverse problem. The approach uses the combination of a reduced-order model and a Bayesian inference formulation. The Galerkin finite element method [12] provides an approximate numerical solution - the ‘full model’ or ‘forward model’. The MCMC method is applied to solve the Bayesian inverse problems. In particular, we are interested in inferring an arbitrary source location in a time-dependent convection-diffusion transport equation, given a velocity field and a set of measured data of the concentration field at sparse spatial and temporal locations. We obtain the velocity field by solving the Navier-Stokes equations.

Solution of large-scale inverse problems can be accelerated by applying model order reduction [1315]. The idea is to project the large-scale governing equations onto the subspace spanned by a reduced-space basis, yielding a low-order dynamical system. Proper orthogonal decomposition (POD) is the most popular method to find the reduced basis for a given set of data. The snapshot POD method, which was proposed by Sirovich [16], provide an efficient way for determining the POD basis vectors. Snapshots are solutions of a numerical simulation at selected times or choices of the parameters. The choice of snapshots should ensure that the resulting POD basis captures the most important characteristics of the system.

Since the convection term in contaminant transport equations is a velocity-dependent term, we cannot apply the standard POD reduction framework. The evaluation of the velocity-dependent convection term in the reduced system still depends on the full finite element dimension and has the same complexity as the full-order system. Thus, a system with velocity-dependent convection term needs an additional treatment to obtain an efficient reduced-order model.

This paper is outlined as follows. In the section ‘Methods’, we introduce the mathematical model, the finite element approximate technique, and the Bayesian inference formulation and its solution using an MCMC method. In section ‘Model order reduction’, we describe the model order reduction technique and the treatment of the velocity-dependent convection term. In the section ‘Results and discussion’, we use the numerical example to demonstrate the solution of the statistical inverse problem and the reduced-order model performance. We provide some concluding remarks in the final section.

## Methods

In this section, the mathematical model, finite element approximation technique, Bayesian inference formulation, and MCMC method are briefly introduced.

### Transport model

Consider the fluid flow through a physical domain $\mathcal{D}\subset {\mathbb{R}}^{d},d=1,2,3$ with boundary Γ. The contaminant concentration c:≡c(x,t;θ) satisfies the dimensionless parabolic PDEs, boundary conditions, and initial conditions as follows:
$\begin{array}{lcr}\frac{\mathrm{\partial c}}{\mathrm{\partial t}}+\mathbf{u}·\nabla c-\frac{1}{\mathit{\text{Pe}}}\mathrm{\Delta c}& =& f\phantom{\rule{1em}{0ex}}\text{in}\phantom{\rule{2.77626pt}{0ex}}\mathcal{D}×\left[\phantom{\rule{0.3em}{0ex}}{t}_{0},{t}_{f}\right],\end{array}$
(1)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.8em}{0ex}}c=g\phantom{\rule{1em}{0ex}}\text{on}\phantom{\rule{2.77626pt}{0ex}}{\Gamma }_{D}×\left[\phantom{\rule{0.3em}{0ex}}{t}_{0},{t}_{f}\right],\end{array}$
(2)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2.4em}{0ex}}\frac{\mathrm{\partial c}}{\partial \mathbf{n}}=0\phantom{\rule{1em}{0ex}}\text{on}\phantom{\rule{2.77626pt}{0ex}}{\Gamma }_{N}×\left[\phantom{\rule{0.3em}{0ex}}{t}_{0},{t}_{f}\right],\end{array}$
(3)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2.7em}{0ex}}c\left(\mathbf{x},{t}_{0}\right)={c}_{0}\left(\mathbf{x}\right)\phantom{\rule{2.77626pt}{0ex}}\phantom{\rule{2.77626pt}{0ex}}\phantom{\rule{2.77626pt}{0ex}}\text{in}\phantom{\rule{2.77626pt}{0ex}}\mathcal{D},\end{array}$
(4)
where $\mathbf{x}\in \mathcal{D}$ denotes the spatial coordinates, t [ t0,t f ] denotes time, and c0 is the given initial condition. The inlet boundary Γ D is subjected to a Dirichlet condition, while the remainder of the boundary Γ N =ΓΓ D satisfies Neumann conditions. The external source f(x,t;θ) in Equation 1 is used here as a input parameter, where $\theta \in \mathcal{D}$ is the source location. In this study, we suppose that the contaminant source drives the transport process, given a velocity field $\mathbf{u}\in {\mathbb{R}}^{d}$. Thus, the Péclet number $\text{Pe}=\frac{\parallel \mathbf{u}\parallel \mathrm{L}}{\kappa }$, where κ is the diffusivity and L is the characteristic length. The velocity field is a function of x and t, u(x,t), which can be obtained by solving the Navier-Stokes equations, as follows:
$\begin{array}{lcr}\frac{\partial \mathbf{u}}{\mathrm{\partial t}}+\left(\right\mathbf{u}·\nabla \left)\right\mathbf{u}-\frac{1}{\text{Re}}{\nabla }^{2}\mathbf{u}+\nabla p& =& {\mathbf{f}}_{c}\phantom{\rule{1em}{0ex}}\text{in}\phantom{\rule{2.77626pt}{0ex}}\mathcal{D}×\phantom{\rule{2.77626pt}{0ex}}\left[\phantom{\rule{0.3em}{0ex}}{t}_{0},{t}_{f}\right],\end{array}$
(5)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\nabla ·\mathbf{u}=0\phantom{\rule{1em}{0ex}}\phantom{\rule{2.77626pt}{0ex}}\text{in}\phantom{\rule{2.77626pt}{0ex}}\mathcal{D}×\phantom{\rule{2.77626pt}{0ex}}\left[\phantom{\rule{0.3em}{0ex}}{t}_{0},{t}_{f}\right],\end{array}$
(6)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.7em}{0ex}}\mathbf{u}={\mathbf{u}}_{D}\phantom{\rule{2.77626pt}{0ex}}\text{on}\phantom{\rule{2.77626pt}{0ex}}\Gamma ×\phantom{\rule{2.77626pt}{0ex}}\left[\phantom{\rule{0.3em}{0ex}}{t}_{0},{t}_{f}\right],\end{array}$
(7)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2.8em}{0ex}}\mathbf{u}\left(\mathbf{x},{t}_{0}\right)={\mathbf{u}}_{0}\left(\mathbf{x}\right)\phantom{\rule{2.77626pt}{0ex}}\phantom{\rule{2.77626pt}{0ex}}\phantom{\rule{2.77626pt}{0ex}}\text{in}\phantom{\rule{2.77626pt}{0ex}}\mathcal{D},\end{array}$
(8)

where Re is the Reynolds number, p is the pressure field, and f c is the body force. So, for any given f and u, one can solve for the solution c(x,t;θ).

### Finite element approximations

The finite element method [12] associated with the stabilized second-order fractional-step method is applied to solve the incompressible Navier-Stokes equations (5 to 8). The detailed discussion and derivation of this method is beyond the scope of this paper. For more details, please refer to [17, 18].

We also use the finite element method for spatial discretization of the contaminant transport equations in Equations 1 to 4. This leads to the semi-discrete equations
$\begin{array}{l}\mathbf{M}\stackrel{̇}{\mathbf{c}}+\left(\right\mathbf{C}\left(u\right)+K\mathbf{c}=\mathbf{F}\left(t;\theta \right),\end{array}$
(9)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\mathbf{c}\left({t}_{0}\right)={\mathbf{c}}_{0},\end{array}$
(10)
with the output of contaminant solution at sensor locations in the domain
$\begin{array}{l}\mathbf{y}=\mathit{\text{Bc}}.\end{array}$
(11)
Here, $\mathbf{c}\left(t\right)\in {\mathbb{R}}^{N}$ is the discretized approximation of c(x,t) and contains N state unknowns where N is the number of grid points in the spatial discretization. $\stackrel{̇}{\mathbf{c}}$ is the derivative of c with respect to time. The vector $\mathbf{y}\in {\mathbb{R}}^{{N}_{o}}$ contains the N o outputs of the system related to the state through the matrix $\mathbf{B}\in {\mathbb{R}}^{{N}_{o}×N},{N}_{o}\ll N$. The matrices $\mathbf{M},K,C\left(u\right)\in {ℝ}^{N×N}$ and the vector $\mathbf{F}\left(t;\theta \right)\in {\mathbb{R}}^{N}$ are defined in the finite element space as follows:
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.7em}{0ex}}{\mathbf{M}}_{i,j}=\underset{\mathcal{D}}{\int }{\varphi }_{i}\left(\mathbf{x}\right){\varphi }_{j}\left(\mathbf{x}\right)\phantom{\rule{0.3em}{0ex}}d\mathbf{x},\end{array}$
(12)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.7em}{0ex}}{\mathbf{K}}_{i,j}=\underset{\mathcal{D}}{\int }\frac{1}{\mathit{\text{Pe}}}\nabla {\varphi }_{i}\left(\mathbf{x}\right)·\nabla {\varphi }_{j}\left(\mathbf{x}\right)\phantom{\rule{0.3em}{0ex}}d\mathbf{x},\end{array}$
(13)
$\begin{array}{lcr}\left(\right\mathbf{C}\left(u\right)i,j& =& \underset{\mathcal{D}}{\int }\mathbf{u}·\nabla {\varphi }_{i}\left(\mathbf{x}\right){\varphi }_{j}\left(\mathbf{x}\right)\phantom{\rule{0.3em}{0ex}}d\mathbf{x},\end{array}$
(14)
$\begin{array}{lcr}\left(\right\mathbf{F}\left(t;\theta \right)j& =& \underset{\mathcal{D}}{\int }f\left(t;\theta \right){\varphi }_{j}\left(\mathbf{x}\right)\phantom{\rule{0.3em}{0ex}}d\mathbf{x}.\end{array}$
(15)

Here ϕ i with i=1,,N is the finite element basis and $\theta \in {\mathbb{R}}^{d}$ is the coordinate vector of the source location.

### Bayesian inference to inverse problems

The Bayesian formulation of an inference problem is derived from Bayes’ theorem [1]:
$p\left(\theta |\mathbf{y}\right)=\frac{p\left(\mathbf{y}|\theta \right)p\left(\theta \right)}{p\left(\mathbf{y}\right)},$
(16)
where $\mathbf{y}\in {\mathbb{R}}^{{N}_{o}}$ is the observed data and $\theta \in {\mathbb{R}}^{d}\subseteq \mathcal{D}$ is the vector of input parameters. p(θ) denotes the prior distribution of the parameters, p(y|θ) is the likelihood function, and p(θ|y) is the posterior distribution of parameters given the observed data. p(y) is the prior predictive distribution of y and may be set to an unknown constant that is not needed in the MCMC solution method. In this case, we write Bayes’s formula as
$p\left(\theta |\mathbf{y}\right)\propto p\left(\mathbf{y}|\theta \right)p\left(\theta \right).$
(17)
A simple model for the likelihood function can be obtained from the following relationship,
$\mathbf{y}=G\left(\theta \right)+\eta ,$
(18)
where η is the noise which we assume to be white Gaussian noise ηN(0,σ2I). The input-output relative in Equations 1 to 4 is denoted as the forward model G(θ). Subsequently, the likelihood can be written as
$p\left(\mathbf{y}|\theta \right)=\frac{1}{\sigma \sqrt{2\pi }}exp\left(-\frac{1}{2{\sigma }^{2}}\parallel \mathbf{y}-G\left(\theta \right){\parallel }^{2}\right).$
(19)
There are many approaches to define the prior information, such as Gaussian Markov random fields or uniform distribution models, etc. In this work, we assume that our only prior information on the source location is given by the bounds on the domain. Thus, using the principle of maximum entropy [19], we take our prior to be a uniform distribution. Therefore, Equation 17 becomes
$p\left(\theta |\mathbf{y}\right)\propto \prod _{i=1}^{K}exp\left[-\frac{1}{2{\sigma }^{2}}{\left({\mathbf{y}}_{i}-G{\left(\theta \right)}_{i}\right)}^{T}\left({\mathbf{y}}_{i}-G{\left(\theta \right)}_{i}\right)\right].$
(20)

Here, K is the number of time steps over which we collect the output data.

### Markov chain Monte Carlo for posterior sampling

MCMC simulation provides a sampling strategy from a proposal distribution to the target distribution using the Markov chain mechanism. Hastings introduced the Metropolis-Hastings (MH) algorithm [10], which is a generalized version of the Metropolis algorithm [8, 9], in which we can apply both symmetric and asymmetric proposal distributions. In this work, the MH algorithm is used to solve the Bayesian inverse problem. The MH algorithm is summarized as follows:
1. 1.

Initialize the chain θ 0 and set n=0

2. 2.

Repeat

• n=n+1

• Generate a proposal point θq(θ|θ)

• Generate U from a uniform U(0,1) distribution

• Update the state to θn+1 as
$\begin{array}{l}{\theta }^{n+1}=\left\{\begin{array}{cc}{\theta }^{\ast },& \text{if}\phantom{\rule{2.77626pt}{0ex}}\beta <\mathrm{U}\\ {\theta }^{n},& \text{otherwise}\end{array}\right\\end{array}$
1. 3.

Until n=N mcmc→ stop.

Here, β is the acceptance-rejection ratio, given by
$\beta =min\left(1,\frac{\pi \left({\theta }^{\ast }\right)q\left({\theta }^{n-1}|{\theta }^{\ast }\right)}{\pi \left({\theta }^{n-1}\right)q\left({\theta }^{\ast }\right)|{\theta }^{n-1}}\right).$
(21)

Nmcmc is the total number of samples, π(θ) is the target distribution, q(θ|θ) is a proposal distribution, and U is a random number.

The discretized model in the form of ordinary differential equations (ODEs) (Equations 9 to 11) may have very large dimensions and be expensive to solve. The MCMC method requires evaluating repeatedly the solution of the forward model (many thousands or even millions of times). Hence, these simulations can be a computationally expensive undertaking. In such situations, the reduced-order model is needed to approximate the large-scale model, which allows efficient simulations.

### Model order reduction

This section presents the model order reduction framework. This includes the reduction via projection, the proper orthogonal decomposition method, the additional treatment for the velocity-dependent convection term, and the error estimation.

### Reduction via projection

A reduced-order system approximating the ODEs (9 to 11) can be obtained by approximating the full state vector c as a linear combination of m basis vectors as follows:
$\mathbf{c}\approx V{\mathbf{c}}_{r},$
(22)
where ${\mathbf{c}}_{r}\in {\mathbb{R}}^{m}$ is the reduced order state and $V=\phantom{\rule{2.77626pt}{0ex}}\left[\phantom{\rule{0.3em}{0ex}}{v}_{1}\phantom{\rule{2.77626pt}{0ex}}{v}_{2}\phantom{\rule{2.77626pt}{0ex}}\cdots {v}_{m}\right]\in {\mathbb{R}}^{N×m}$ is an orthonormal basis, i.e., V T V=I. The low-order model can be derived by projecting the governing system (9 to 11) onto the reduced space formed by the column span of basis V. This yields
$\begin{array}{lcr}{\mathbf{M}}_{r}{\stackrel{̇}{\mathbf{c}}}_{r}+\left(\right{\mathbf{C}}_{r}\left(\mathbf{u}\right)+{\mathbf{K}}_{r}\left)\right{\mathbf{c}}_{r}& =& {\mathbf{F}}_{r}\left(t;\theta \right),\end{array}$
(23)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}{\mathbf{c}}_{r}\left({t}_{0}\right)={\mathbf{c}}_{0r},\end{array}$
(24)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}{\mathbf{y}}_{r}={\mathbf{B}}_{r}{\mathbf{c}}_{r},\end{array}$
(25)
where
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{1em}{0ex}}{\mathbf{M}}_{r}={V}^{T}\mathbf{M}V,\end{array}$
(26)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.3em}{0ex}}{\mathbf{K}}_{r}={V}^{T}\mathbf{K}V,\end{array}$
(27)
$\begin{array}{l}\phantom{\rule{1.8em}{0ex}}{\mathbf{C}}_{r}\left(\mathbf{u}\right)={V}^{T}\mathbf{C}\left(\mathbf{u}\right)V,\end{array}$
(28)
$\begin{array}{lcr}{\mathbf{F}}_{r}\left(t;\theta \right)& =& {V}^{T}\mathbf{F}\left(t;\theta \right),\end{array}$
(29)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.3em}{0ex}}{\mathbf{B}}_{r}=\mathbf{B}V,\end{array}$
(30)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.1em}{0ex}}{\mathbf{c}}_{0r}={V}^{T}{\mathbf{c}}_{0}.\end{array}$
(31)

The model reduction task is to find a suitable basis V so that mN and the reduced-order model yields accurate results. This study will consider POD as the method to compute the basis.

### Proper orthogonal decomposition

POD provides a method to compute the reduced-order basis V and construct the low-order system. Here, we briefly describe the general POD method (more details may be found in [16]).

Supposed that we have the snapshot matrix $X\in {\mathbb{R}}^{N×Q}$, where Q is the number of snapshot solutions, which are built from the instantaneous solution c s (t k ) of the forward model, corresponding to s=1,,S random input source locations, picked up at k=1,,T different time steps (so that Q=S T). The POD basis vectors are the m left singular vectors of X corresponding to the largest singular values (mQ). Let σ i ,i=1,2,,Q be the singular values of X in decreasing order. We choose the number of POD basis vectors to retain in the reduced-order model as mQ so that
$\sum _{i=1}^{m}{\sigma }_{i}^{2}/\sum _{j=1}^{Q}{\sigma }_{j}^{2}\ge {\epsilon }_{E},$
(32)

where ε E (%) is the required amount of energy, typically taken to be 99% or higher.

After obtaining the POD basis vectors for the contaminant, we have defined our reduced-order system. However, as mentioned earlier, the dimension of the system of Equations 24 to 26 is reduced only in state (concentration). The reduced convection matrix (C r (u)) in Equation 29 still depends on the full dimension of the velocity field as in Equation 14. This means that we have to re-compute the full convection matrix (C(u)) at each time-step before projecting it onto the reduced-space basis to obtain the reduced convection matrix (C r (u)). Hence, we need an additional treatment to avoid this computational cost.

### Linear expansion techniques for velocity-dependent term

We proceed by representing the velocity field as a linear combination of POD velocity basis vectors. The velocity-dependent convection matrix can then be expanded based on this velocity expansion. In particular, let u(x,t) be a given velocity field and $\left\{\right\\mathbf{u}\left(\mathbf{x},{t}_{k}\right)k=1T$ be a set of ‘snapshots’ of velocities which are obtained from Equations 5 to 8 and taken over T time steps. The velocity field is decomposed as
$\mathbf{u}\left(\mathbf{x},t\right)={\mathbf{u}}_{m}\left(\mathbf{x}\right)+{\mathbf{u}}^{\prime }\left(\mathbf{x},t\right),$
(33)
where ${\mathbf{u}}_{m}\left(\mathbf{x}\right)=\frac{1}{T}\sum _{k=1}^{T}\mathbf{u}\left(\mathbf{x},{t}^{k}\right)$ is the mean velocity field and u(x,t) is the fluctuating velocity field. The fluctuating velocity field is then represented by
${\mathbf{u}}^{\prime }\left(\mathbf{x},t\right)=\sum _{k=1}^{T}{\alpha }_{k}\left(t\right){\Psi }_{k}\left(\mathbf{x}\right),$
(34)
where Ψ k (x) is the k th POD velocity basis and α k (t) is the corresponding time dependent amplitude. We now consider the expansion of the velocity field as
$\mathbf{u}\left(\mathbf{x},t\right)={\mathbf{u}}_{m}\left(\mathbf{x}\right)+\sum _{k=1}^{{N}_{u}}{\alpha }_{k}\left(t\right){\Psi }_{k}\left(\mathbf{x}\right),$
(35)

where N u T is the number of POD basis vectors use to represent the velocity.

Galerkin projection of the time-dependent velocity term in Equation 1 has the form as
$\begin{array}{l}\left(\mathbf{u}·\nabla c,{V}_{i}\right)=\left(\left[{\mathbf{u}}_{m}+\sum _{k=1}^{{N}_{u}}{\alpha }_{k}{\Psi }_{k}\right]·\nabla c,{V}_{i}\right)\\ \phantom{\rule{2em}{0ex}}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.6em}{0ex}}=\left[{\mathbf{u}}_{m}·\nabla c,{V}_{i}\right]+\left(\sum _{k=1}^{{N}_{u}}{\alpha }_{k}{\Psi }_{k}·\nabla c,{V}_{i}\right).\end{array}$
(36)
The discrete form of Equation 37 then becomes
$\begin{array}{l}{\mathbf{C}}_{r}\left(\mathbf{u}\right)=\left[{V}_{i},{\mathbf{u}}_{m}·\nabla {V}_{j}\right]+\sum _{k=1}^{{N}_{u}}{\alpha }_{k}\left[{V}_{i},{\Psi }_{k}·\nabla {V}_{j}\right]\\ \phantom{\rule{2em}{0ex}}\phantom{\rule{1.2em}{0ex}}={\mathbf{C}}_{\mathit{\text{rm}}}\left(\right{\mathbf{u}}_{m}\left)\right+\sum _{k=1}^{{N}_{u}}{\alpha }_{k}{\mathbf{C}}_{\mathit{\text{rk}}}\left(\right{\Psi }_{k}\left)\right.\end{array}$
(37)

Here, C r m (u m (x)) and C r k (Ψ k (x)),k=1,,N u are the reduced-order forms of the full-order convection matrices C(u m (x)) and C(Ψ k (x)), respectively. They are computed only once in the offline step. Thus, the first case of the reduced-order model (with Equation 29) is only reduced in state (concentration), but the second case (with Equation 38) is now reduced in both state (concentration) and parameter (velocity).

### Error estimation

In order to estimate the efficiency of the reduced model relative to the full model, we use the relative errors of state solutions and relative errors of outputs. These errors are defined as follows:
$\begin{array}{lcr}{\epsilon }_{F}\left({t}^{k},\theta \right)& =& \frac{\parallel \mathbf{c}\left({t}^{k};\theta \right)-V{\mathbf{c}}_{r}\left({t}^{k};\theta \right){\parallel }_{{L}_{2}\left(\mathcal{D}\right)}}{\parallel \mathbf{c}\left({t}^{k};\theta \right){\parallel }_{{L}_{2}\left(\mathcal{D}\right)}},\end{array}$
(38)
$\begin{array}{lcr}{\epsilon }_{s}\left({t}^{k},\theta \right)& =& \frac{\parallel \mathbf{y}\left({t}^{k};\theta \right)-{\mathbf{y}}_{r}\left({t}^{k};\theta \right){\parallel }_{{L}_{2}\left(\mathcal{D}\right)}}{\parallel \mathbf{y}\left({t}^{k};\theta \right){\parallel }_{{L}_{2}\left(\mathcal{D}\right)}}.\end{array}$
(39)

Here, c(t k ;θ),c r (t k ;θ),1≤kT are the full and reduced solutions, while y(t k ;θ) and y r (t k ;θ),1≤kT are the full and reduced outputs of interest, respectively.

## Results and discussion

We consider a numerical example based on a 2D mathematical model. The velocity field in the reservoir is obtained by solving a 2D laterally averaged Navier-Stokes model. The Bayesian formulation of the inverse problem is then solved to determine an uncertain contaminant source location. We compare the effectiveness of solving the inverse problem using both the full model and reduced model techniques.

### Model setup

The physical domain is illustrated in Figure 1a, which represents a simplified model of a 2D laterally averaged reservoir system. The reservoir system includes a main reservoir section and the river connections. We assume that the contaminant is present within the main reservoir section and that the contaminant transport processes are mainly affected by the inflow and wind velocity. We assume that other factors (such as heat exchange, etc.) have little influence on the processes. The spatial domain is discretized with a finite element mesh, as shown in Figure 1b. The total number of grid points is N=1,377 and the total number of elements is N E =2,560. The simulation is run from initial time t0=0 to final time t f =40, with time-step size Δ t=0.08. Thus, the number of time steps is T=500.

A time-dependent velocity field is obtained from the 2D laterally averaged system, which is given in Equations 5 to 8, where the body force f c = [f c x ; f c z ] T = [ 0; g] T with g the gravitational acceleration.

The boundary conditions are set up as follows (refer to Figure 1a for the boundary definitions):
$\begin{array}{lcr}\left(u,\phantom{\rule{0.3em}{0ex}}w\right)& =& \left(1,\phantom{\rule{0.3em}{0ex}}0\right)\phantom{\rule{1em}{0ex}}\text{on}\phantom{\rule{2.77626pt}{0ex}}{\Gamma }_{12},\end{array}$
(40)
$\begin{array}{lcr}\left(u,\phantom{\rule{0.3em}{0ex}}w\right)& =& \left(-16\ast \left(2.0+z\right)\ast \left(1.5+z\right),\phantom{\rule{0.3em}{0ex}}0\right)\phantom{\rule{1em}{0ex}}\text{on}\phantom{\rule{2.77626pt}{0ex}}{\Gamma }_{4},\end{array}$
(41)
$\begin{array}{lcr}\left(u,\phantom{\rule{0.3em}{0ex}}w\right)& =& \left(-16\ast \left(1.0+z\right)\ast \left(0.5+z\right),\phantom{\rule{0.3em}{0ex}}0\right)\phantom{\rule{1em}{0ex}}\text{on}\phantom{\rule{2.77626pt}{0ex}}{\Gamma }_{8},\end{array}$
(42)
$\begin{array}{lcr}\left(u,\phantom{\rule{0.3em}{0ex}}w\right)& =& \left(0.03{V}_{a},\phantom{\rule{0.3em}{0ex}}0\right)\phantom{\rule{1em}{0ex}}\text{on}\phantom{\rule{2.77626pt}{0ex}}{\Gamma }_{11},\end{array}$
(43)
$\begin{array}{l}\phantom{\rule{2em}{0ex}}\phantom{\rule{1.1em}{0ex}}p=0\phantom{\rule{1em}{0ex}}\text{on}\phantom{\rule{2.77626pt}{0ex}}{\Gamma }_{11}.\end{array}$
(44)

The velocity on remaining boundaries are set to zero. Here, V a is the wind speed at 10 m above the water surface. In this example, we assumed that V a =2 m/s for the entire simulation time. The Reynolds number is set to Re=5.0e5, and a mixing length turbulence model is used [20]. The full model system is given in Equations 9 to 10. The Crank-Nicolson method [21] is used to discretize the system in time.

The setup for the contaminant transport part of the problem is as follows. We use a contaminant source that is defined as the superposition of Gaussian sources, each one active on the time interval t0k [ t0,toff] and centered at ${\theta }_{k}\in \mathcal{D}$, with strength h k and width σ s k :
$f\left(\mathbf{x},t;\theta \right)=\sum _{k=1}^{{n}_{s}}\frac{{h}_{k}}{2\pi {\sigma }_{\mathit{\text{sk}}}^{2}}exp\left(-\frac{|{\theta }_{k}-\mathbf{x}{|}^{2}}{2\underset{\mathit{\text{sk}}}{\overset{2}{\sigma }}}\right)\delta \left(t-{t}_{0k}\right).$
(45)

Here, to simplify the problem, we choose the number of sources to be n s =1, located at θ1=(x c ,z c ), with strength h1=0.2 and width σs 1=0.05. The active time of the source is t01 [ 0,toff] with toff=10. The inflow boundary and other solid boundaries satisfy a homogeneous Dirichlet condition on the contaminant concentration; the outflow boundaries and free surface boundary satisfy a homogeneous Neumann condition. The diffusivity coefficient is assumed to be constant, κ=0.005. Thus, the Péclet number $\text{Pe}=\frac{\parallel \mathbf{u}\parallel \mathrm{L}}{\kappa }=100$, where the length of the inflow section is used as the characteristic length L=0.5. The contaminant concentration is assumed to be zero at initial time t0=0.

With this setup, we have specified our forward problem with the input parameter $\theta \in {\mathbb{R}}^{2}$ in the range Θ:= [ 0, 2]× [ −2, 0]. Figure 2 shows the contaminant solution c(x,t;θ) of the forward model with θ1=(0.5,−0.5) at specific times. The contaminant field grows while the source is active. After the shutoff time of the source, the contaminant moves away, spreads out, and decreases in concentration due to convection and diffusion, until it flows out of the domain.

The outputs of interest are the values of contaminant solution c(x,t;θ) at selected sensor locations in the computational domain. These sensors are located on a 4×4 uniform grid covering the reservoir domain as shown in Figure 1b.

### Model order reduction

To perform the model order reduction, we need to obtain the POD expansion of velocity field.

Figure 3a shows all eigenvalues of the velocity field. As the number of eigenvalues increases, the significant of eigenvalues decreases, respectively. Figure 3b shows the relative errors of representing the velocity field with various numbers of POD velocity modes. The goal of this step is to find a suitable N u that can provide a fast computation of the velocity-dependent convection term and to ensure that the relative errors are acceptable. In this example, we choose the number of terms in the velocity expansion to be N u =12 yields the relative error around 5×10−3.
Figure 4 illustrates the first four POD basis vectors of the velocity field. Clearly, they represent the most important characteristics of the velocity field.
A comparison between the original velocity and the approximate velocity representation at final simulating time is given in Figure 5. We observe that the approximate velocity profiles at x=0.5 (Figures 5a,b) and x=1.0 (Figures 5c,d) are able to represent well the characteristics of the original velocity profiles.

To generate the snapshots needed for the POD basis to represent the contaminant concentration, we choose S location samples in the computational domain. In this example, we generate random input locations $\theta \in \mathcal{D}\subset {\mathbb{R}}^{2}$ for source term f(x,t;θ).

Table 1 shows the relative errors and computational time ratio of the reduced-order models (ROM) for different sample sizes of snapshot matrices. Here, we use the notation ROM-1 to denote the reduced model mentioned in the section ‘Proper orthogonal decomposition’ and ROM-2 for the one mentioned in the section ‘Linear expansion techniques for velocity-dependent term’. The POD basis is chosen based on the energy as in Equation 33, with ε E =99.999%. We observe that while the relative errors in the outputs are similar for both cases, the ratio of computational time differs significantly. The case ROM-2 shows speedups from 15 to 111 times, while the case ROM-1 is in fact more expensive to solve than the full forward model (t f u l l ≈285 seconds)1. This is because the first case consumes a lot of time in re-computing the velocity-dependent convection matrix and then projecting it onto the reduced space at each time step. We choose as our reduced-order model the case ROM-2 with sample size S=30.
Figure 6a presents the eigenvalues of contaminant snapshot matrix for the sample test case S=30. We observe that POD eigenvalues of the contaminant field are decayed very fast, and they are significantly important only at the first few hundred values. The first four POD contaminant basis vectors are shown in Figure 7.

Figure 6b shows relative errors of ROMs for different numbers of POD basis vectors. With the energy taken to 99.99999%, the ROM resulted in 434 POD basis vectors with relative error around 4×10−3. In the trade-off between accuracy results and computational efforts (please refer to Table 1), we can choose our ROM with 99.999% of energy captured which resulting in the size of m=257 POD basis vectors and an acceptably small error.

Figure 8a shows the outputs of the full model (y) and ROM-2 (y r ) with size m=257 at selected sensor locations. The selected sensors (sensor 6, 7, 10, and 11) capture more information of the contaminant than the others for the case studied. We observe that ROM-2 is able to capture well the behavior of the full model at the sensor locations. This reduced-order model will be utilized as the forward solver in solving the inverse problem.

### Inverse problems

MCMC is now used to solve the inverse problem for a variety of source locations using the ROM-2 solver above. By accounting for both measured noise and uncertain information in model parameters, Bayesian inference to inverse problem leads to a well-posed problem resulting in a posterior distribution of the unknown [1, 2]. Once obtaining the posterior distribution sample, all statistical questions related to the unknown could be answered with sample averages.

To represent the behavior of uncertain variables such as wind velocity, we generate noisy data at sensor locations. The ‘real’ data (yreal) is generated synthetically by adding noise to the ideal data (yideal) as in Equation 18. The noise is assumed to be Gaussian ηN(0,σ2I). Figure 8b shows the noisy data at sensor locations with σ=0.3.

We use the snapshots with S=30 samples above to generate several reduced-order models with different energies. To estimate the relative error of the inverse problem solutions (ε θ ), we choose the solution corresponding to the largest order as a ‘truth’ solution. We do the MCMC simulation with the starting point θini=(0.821; −0.955) T . The total number of MCMC samples is set to Nmcmc=5000. The initial burn-in period is set to Nburnin=500. After this stage, data is saved to compute summary statistics of source locations.

Table 2 shows the results of the inverse source problems with different numbers of POD basis. For the case with m=257, the computational time is around 24 h to obtain the solution. If we use the full forward solver, with the speedup factor as given in Table 1, the computational time is estimated around 773 h or approximately 32 days.
Figure 9a shows the credible regions of the source locations θ. In this figure, both a pairwise scatter plot and 1D marginal distributions are displayed. The dash line (in θ1 axis) and dash-dot line (in θ2 axis) show the probability density function of each parameter while the solid blue regions show the 95% and 99% credible regions in which the parameters appeared the most (the blue dots).
To assess the convergence of the MCMC approach, we generate four different initial points for the MH sampler. Figure 9b shows the contour plot of the posterior probability density function (the contour plot corresponds to the result of Init1) and the historical trajectories of MCMC samplers for each starting point. We observe that for all four initial points, the MCMC simulations converge to the same final solution. However, depending on the position of the initial points, the computational time varies, as given in Table 3.

## Conclusion

This study has applied successfully the combination of a model order reduction technique based on the POD and a Bayesian inference approach to solve an inverse problem that seeks to identify an uncertain contaminant location. Applying an additional POD expansion to approximate the velocity results in a reduced-order model in both state (concentration) and parameter (velocity). The resulting reduced-order model is efficient for solution of the forward problem. Solution of the Bayesian formulation of the inverse problem using the reduced-order solver is much more rapid than using the full model, yielding the probability density of the source location in reasonable computational times. The computational time of using a reduced-order model with m=257 degrees of freedom is about a factor of 32 times lower than using the full model with size N=1,377. This reduction is important in real-time water quality management applications because it reduces time cost and storage requirements.

## Endnote

1 The simulations were performed on a personal computer (PC) with processor Intel(R) Core(TM)2 Duo CPU E8200 @2.66GHz 2.66GHz, RAM 3.25GB, 32-bit Operating System.

## Authors’ Affiliations

(1)
Singapore-MIT Alliance, National University of Singapore
(2)
Department of Mechanical Engineering, National University of Singapore
(3)
Massachusetts Institute of Technology

## References

1. Tarantola A: Inverse problem theory and methods for model parameter estimation. SIAM, Philadelphia. 2004.Google Scholar
2. Sivia DS, Skilling J: Data analysis: a Bayesian tutorial, Second edition. Oxford University Press Inc., New York; 2006.Google Scholar
3. Jackson C, Sen MK, Stoffa PL: An efficient stochastic Bayesian approach to optimal parameter and uncertainty estimation for climate model predictions. J Climate 2004, 17: 2828–2841. 10.1175/1520-0442(2004)017<2828:AESBAT>2.0.CO;2
4. Snodgrass MF, Kitanidis PK: A geostatistical approach to contaminant source identification. Water Resour Res 1997,34(4):537–546.
5. Woodbury AD, Ulrych TJ: A full-Bayesian approach to the groundwater inverse problem for steady state flow. Water Resour Res 2000,36(1):159–171. 10.1029/1999WR900273
6. Marzouk YM, Najm HN, Rahn LA: Stochastic spectral methods for efficient Bayesian solution of inverse problems. J Comput Phys 2007,224(2):560–586. 10.1016/j.jcp.2006.10.010
7. Wang J, Zabaras N: Hierarchical Bayesian models for inverse problems in heat conduction. Inverse Probl 2005, 21: 183–206. 10.1088/0266-5611/21/1/012
8. Metropolis N, Ulam S: The Monte Carlo method. J Am Stat Assoc 1949, 44: 335–341. 10.1080/01621459.1949.10483310
9. Metropolis N, Rosenbluth AW, Rosenbluth MN, Teller AH, Teller E: Equations of state calculations by fast computing machines. J Chem Phys 1953, 21: 1087–1092. 10.1063/1.1699114
10. Hastings WK: Monte Carlo sampling methods using Markov chains and their applications. Biometrika 1970, 57: 97–109. 10.1093/biomet/57.1.97
11. Gelman A, Carlin J, Stern H, Rubin D: Bayesian data analysis. Second Edition, Chapman &Hall/CRC Texts in Statistical Science; 2003.Google Scholar
12. Zienkiewicz OC, Morgan K: Finite elements and approximation. Wiley, New York; 1983.Google Scholar
13. Antoulas AC: Approximation of large-scale dynamical systems. SIAM Advances in Design and Control, Philadelphia; 2005.
14. Lieberman C, Willcox K, Ghattas O: Parameter and state model reduction for large-scale statistical inverse problems. SIAM J Sci Comput 2010,32(5):2523–2542. 10.1137/090775622
15. Lieberman C, Willcox K: Goal-oriented inference: approach, linear theory, and application to advection-diffusion. SIAM J Sci Comput 2012,34(4):1880–1904. 10.1137/110857763
16. Sirovich L: Turbulence and the dynamics of coherent structures. Part 1: coherent structures. Q Appl Math 1987,45(3):561–571.
17. Codina R, Blasco J: Stabilized finite element method for the transient Navier-Stokes equations based on a pressure gradient projection. Comput Methods Appl Mech Engrg 2000, 182: 277–300. 10.1016/S0045-7825(99)00194-2
18. Ma X, Zabaras N: A stabilized stochastic finite element second-order projection method for modeling natural convection in random porous media. J Comput Phys 2008, 227: 8448–8471. 10.1016/j.jcp.2008.06.008
19. Jaynes ET: Information theory and statistical mechanics. Phys Rev 1957,104(4):620–630.
20. Wilcox CD: Turbulence Modeling for CFD, DCW Industries, La Cañada, California. 1993.Google Scholar
21. Crank J, Nicolson P: A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type. Adv Comput Math 1996,6(1):207–226. 10.1007/BF02127704