원시데이터 수집 시스템
선정목록으로

Preconditioning Markov Chain Monte Carlo Method for Geomechanical Subsidence using multiscale method and machine learning technique

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Maria Vasilyeva — Institute for Scientific Computation (ISC), Texas A&M University, College Station, TX 77843-3368, USA|||Institute of Mathematics and Informatics, North-Eastern Federal University, Yakutsk, Republic of Sakha (Yakutia), 677980, Russia
  2. Aleksei Tyrylgin — Institute of Mathematics and Informatics, North-Eastern Federal University, Yakutsk, Republic of Sakha (Yakutia), 677980, Russia
  3. Donald L. Brown — Equity Engineering Group, Shaker Heights, OH, 44122, USA
  4. Anirban Mondal — Department of Mathematics, Applied Mathematics, and Statistics, Case Western Reserve University, Cleveland, OH 44106, USA
DOI
10.1016/j.cam.2021.113420
저널
Journal of Computational and Applied Mathematics
발행년도
2021
발행기관
Elsevier BV
피인용수
20
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.cam.2021.113420
토픽
Composite Material Mechanics
OpenAlex ID
W3127637752

평가 내용

관련도
관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 90,474자

본문 펼치기
## Preconditioning Markov Chain Monte Carlo Method for Geomechanical Subsidence using multiscale method and machine learning technique Maria Vasilyeva <sup>_∗_</sup> Aleksei Tyrylgin <sup>_†_</sup> Donald L. Brown <sup>_‡_</sup> Anirban Mondal <sup>_§_</sup> July 2, 2020 Abstract In this paper, we consider the numerical solution of the poroelasticity problem with stochastic properties. We present a Two-stage Markov Chain Monte Carlo method for geomechanical subsidence. In this work, we study two techniques of preconditioning: (MS) multiscale method for model order reduction and (ML) machine learning technique. The purpose of preconditioning is the fast sampling, where a new proposal is first testes by a cheap multiscale solver or using fast prediction of the neural network and the full fine grid computations will be conducted only if the proposal passes the first step. To construct a reduced order model, we use the Generalized Multiscale Finite Element Method and present construction of the multiscale basis functions for pressure and displacements in stochastic fields. In order to construct a machine learning based preconditioning, we generate a dataset using a multiscale solver and use it to train neural networks. The Karhunen-Lo´eve expansion is used to represent the realization of the stochastic field. Numerical results are presented for two- and three-dimensional model examples. ### 1 Introduction Modelling geomechanical problems has important implications on the understanding of many of the physical processes. For example, in areas such as environmental engineering with modelling permafrost compaction and subsidence [26], and the oil and gas industry for reservoir geomechanics to increase production and overall reservoir life [29, 40]. There are many challenges in simulating these problems. One challenging being the length scales involved. There is a high variability in material parameters such as permeability and porosity for flow and Young’s modulus in the case of mechanical properties. Further compounding the problem is lack of knowledge of these parameters due to subsurface depth. This uncertainty may arise from under resolution from seismic data or, in the case of resistivity measurements with electromagnetic sensors, unclear physical matching of properties to data. As noted, the computational challenge is often two fold. First, heterogeneity of subsurface properties need to be accurately accounted for in the geomechanical model. In turn, this requires high resolution with adding many degrees of freedom that can be computationally expensive. Second is the uncertainty in the subsurface properties such as permeability and elastic parameters. However, in today’s “Big-Data” world, often a plethora of information is available to help characterize the subsurface. For example, in reservoir _∗_ Institute for Scientific Computation (ISC), Texas A&M University, College Station, TX 77843-3368, USA & Institute of Mathematics and Informatics, North-Eastern Federal University, Yakutsk, Republic of Sakha (Yakutia), Russia, 677980 _†_ Institute of Mathematics and Informatics, North-Eastern Federal University, Yakutsk, Republic of Sakha (Yakutia), Russia, 677980 _‡_ School of Mathematical Sciences, GeoEnergy Research Center, The University of Nottingham, University Park Nottingham, NG7 2RD, United Kingdom _§_ Department of Mathematics, Applied Mathematics, and Statistics Case Western Reserve University Cleveland, OH 44106 1 engineering there is extensive logs on production data such as oil-cut of produced wells. In addition, other metrics such as bottom hole pressure and time of flight have been extensively used in the history matching literature to integrate data into the subsurface models [22, 39]. In the areas of environmental science and engineering, near-surface resistivity measurements are often available to obtain constraints on subsurface moisture content reflit. There are various techniques to integrate data into subsurface models. The literature is quite extensive and various uncertainty quantification methodologies exist and have various advantages and disadvantages. Various data assimilations and variants are often used to integrate dynamic data information constantly into models. This is particularly useful for weather forecast modelling as well as geophysical problems. In this work, we will consider a Bayesian framework of updating a prior probability distribution with information to obtain a data-integrated posterior. It is well known that the resulting problems are high-dimensional and suffer from the curse of dimensionality. To circumvent some of this difficulty Monte-Carlo based techniques have been proposed. For example, a popular and useful technique is the Ensemble Kalman Filter (EnKF) [13] to integrate data into subsurface models. In this work, however, we consider a Markov-Chain Monte-Carlo method (MCMC) based on the classical Metropolis-Hastings sampling algorithm [8]. This is an effective tool to efficiently sample from an unknown posterior distribution that is conditioned to the data. However, the MCMC algorithms suffer from the fact that many simulations must be computed [17, 19]. This is again tied to the multiscale and high-contrast nature of the material properties as direct numerical simulations must fully resolve these scales. Moreover, the acceptance rate of proposed subsurface properties in the Metropolis-Hastings algorithm is known to be very low. With the availability surface sensors and satellite observation data (InSAR) [23], it is now possible to better characterize the geomechanical picture of the subsurface based on this data. This has proven particularly useful in the context of monitoring large scale CO2 sequestration projects [34, 28]. There are various subsurface mechanical models that one can consider, however, in this work we will work with a poroelastic earth model. The mathematical structure of the poroelasticity models are coupled equations for pressure and displacements known as Biot models [3]. Poroelastic models of this type have been explored in the petroleum engineering literature in the context of geomechanics for some time [31, 30, 24, 25, 27]. An interesting surface observation application such as permafrost modelling would require thermal and partially saturated moisture considerations, but we leave this to future work. As mentioned prior, the MCMC algorithm suffer from large number of simulation runs and low acceptance rates. A useful technique to expedite this procedure is preconditioning the Metropolis-Hasting algorithm in a two-stage (or multi-stage) procedure utilizing coarse-scale or upscaled models [10]. This is accomplished by using the coarser-scale simulation as a prior filtering stage in the accept-rejection procedure. There are many effective multiscale frameworks that have been developed in recent years for the poroelasticity problem [7, 32, 2, 33, 14, 35]. We will use the Generalized Multiscale Finite Element Method (GMsFEM) framework developed for poroelasticty in [4, 5], which is a generalization of the multiscale finite element method to build our course-scale models [12]. Utilizing GMsFEMs for this application has also been useful in Multi-Level MCMC for elliptic problems with high-contrast [15]. The GMsFEM has the advantage of being able to capture small scale features from the heterogeneities into coarse-grid basis functions and offline spaces, as well as having a unified computational grids for both mechanics and flow solves. The offline multiscale basis construction may proceed in both fluid and mechanics in parallel and both constructions are comparable. First a coarse-grid is generated and in each grid block a local static problem with varying boundary conditions is solved to construct the snapshot spaces. We then perform a dimension reduction of the snapshot space by solving auxiliary eigenvalue problems. Taking the corresponding smallest eigenpairs, and multiplying by a multiscale partition of unity we are able to construct our offline basis. In this greatly reduced dimension offline basis, the online solutions may be calculated for pressure and displacements for any viable boundary condition or forcing. Given a set or material properties such as permeability a set of standard MsFEM basis functions must be computed, however, utilizing the GMsFEM’s ability to handle parameters (as is used in nonlinear GMsFEM) as well as scales we are able to compute a single set of enriched basis functions for many possible realizations of physical parameters. For further reduction of the computational time of the first stage in the two-stage MCMC method, we 2 present a machine learning technique [36, 37]. The machine learning is used to quickly predict displacements for the estimation of the proposed fields. We generate a dataset using a multiscale solver and use it to train neural networks and learn dependencies between heterogeneous properties and displacements in each direction on the top boundary. As soon as neural networks are trained on the dataset, fast calculations can be performed as preconditioning of the MCMC method. We use a convolutional neural network and GPU training process to construct a machine learning algorithm [20, 18]. The work is organized as follows. In Section 2, we provide the mathematical background of the geomechanical subsidence problem. We introduce the Biot type model and highlight where the heterogeneity primarily occurs. In Section 3, we discuss the fine-scale and GMsFEM (coarse-scale) solution of the geomechanical problem. We utilize the nonlinear GMsFEM for poroelasticity developed in [4], whereby we are able to handle parametrization. In Section 4 we introduce the broad concepts of Bayesian uncertainty quantification. We discuss the parametrization of the randomness via the Karhunen-Loeve expansion so that when we search in the MCMC procedure the dimension of the space is reduced. We outline the single and two-stage Metropolis-Hastings algorithms used in the accept-reject procedure to sample from the “data-integrated” posterior distribution. In Section 5, we present a numerical algorithm based on two- and three-dimensional synthetic data at the surface to show the efficiency of the method as an expedited MCMC sampling method. ### 2 Problem Formulation We start with the description of the general geomechanical model that we use in our simulations. We keep the discussion very general and abstract, but ultimately the idea is to have one surface boundary that has open surface boundary conditions, and a truncated in situ ground that has fixed motion and is in physical reality connected to a much larger (functionally infinite) domain. We denote computational domain Ω _⊂_ R <sup>_d_</sup> _, d_ = 2 _,_ 3 _,_ to be a bounded sufficiently smooth (Lipschitz) region. We consider linear poroelasticity problem, with random or uncertain coefficients. That we may view as parameters. We wish to find a pressure _p_ and displacements _u_ satisfying the following Biot effective stress poroelasticity law _−_ div _σ_ ( _x, θ, u_ ) + _α_ grad _p_ = 0 _,_ _x ∈_ Ω _,_ _t >_ 0 _,_ <sup><u>div</u></sup> <sup>_<u>u</u>_</sup> + <sup><u>1</u></sup> _∂t_ _M_ (1) _α_ <sup>_<u>∂</u>_</sup> <sup><u>div</u></sup> <sup>_<u>u</u>_</sup> _M_ _<u>∂p</u>_ _∂t_ <sup>+ div</sup> <sup>_q_</sup> <sup>(</sup> <sup>_x, θ, p_</sup> <sup>) = 0</sup> <sup>_,_</sup> _x ∈_ Ω _,_ _t >_ 0 _,_ where _M_ is the Biot modulus and _α_ is the Biot-Willis fluid-solid coupling coefficient. These terms are lower order derivatives, so for simplicity we will suppose that these are constants and not random. Body forces, such as gravity, are neglected without loss of generality. Here we suppose that the stress tensor _σ_ and flux _q_ depend on both space _x_ and a large dimensional random parameter _θ_ _q_ ( _x, θ, p_ ) = _−_ <sup>_<u>k</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x, θ</u>_</sup> <sup><u>)</u></sup> grad _p,_ _σ_ ( _x, θ, u_ ) = 2 _µ_ ( _x, θ_ ) _ε_ ( _u_ ) + _λ_ ( _x, θ_ ) div _u I,_ _ν_ where _ε_ ( _u_ ) = (grad _u_ + grad _u_ <sup>_T_</sup> ) _/_ 2, _ν_ is the fluid viscosity, _k_ ( _x, θ_ ) is the permeability, _µ_ ( _x, θ_ ), _λ_ ( _x, θ_ ) are Lam´e coefficients, _I_ is the identity tensor. For Lam´e coefficients _λ_ and _µ_, we have following relations _µ_ ( _x, θ_ ) = 2(1 + <sup>_<u>E</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x, θ</u>_</sup> _η_ <sup><u>)</u></sup> ) <sup>_,_</sup> _λ_ ( _x, θ_ ) = (1 + _<u>E η</u>_ <u>()(1</u> _<u>x, θ −</u>_ <u>)</u> _<u>η</u>_ 2 _η_ ) <sup>_,_</sup> where _E_ ( _x, θ_ ) is the random spatially varying elastic modulus and _η_ is a constant Poisson’s ratio. One could choose to vary both, but for this work we consider a varying elastic modulus. Thus, the coefficients _k_ ( _x, θ_ ), _µ_ ( _x, θ_ ) and _λ_ ( _x, θ_ ) may be highly variable and contain randomness or uncertainty. We denote the initial condition for pressure _p_ = _p_ 0 _,_ _x ∈_ Ω _,_ _t_ = 0 _._ 3 In general, we suppose the following Neumann and Robyn boundary conditions on each portion _u_ = 0 _,_ _x ∈_ Γ _u,_ _σ · n_ = 0 _,_ _x ∈_ _∂_ Ω _/_ Γ _u,_ and _q · n_ = _γ_ ( _p −_ _p_ 1) _,_ _x ∈_ Γ _p,_ _q · n_ = 0 _,_ _x ∈_ _∂_ Ω _/_ Γ _p,_ where _n_ is the unit normal to the boundary. Here the primary sources of the heterogeneity and uncertainty in the physical properties are from mechanical properties related to _E_ ( _x, θ_ ) and fluid flow properties related to _k_ ( _x, θ_ ). To solve (1), we use a standard finite element method and implicit time integration. We have following variational formulation: find ( _u, p_ ) _∈_ _V_ _× Q_ such that _a_ ( _θ_ ; _u, v_ ) + _g_ ( _p, v_ ) = 0 _,_ _∀v_ _∈_ _V,_ - _<u>p −</u>_ _<u>p</u>_ <u>ˇ</u> _, q_ _τ_ - (2) + _b_ ( _θ_ ; _p, q_ ) = _l_ ( _q_ ) _,_ _∀q_ _∈_ _Q,_ _d_ - _<u>u −</u>_ _<u>u</u>_ <u>ˇ</u> _, q_ _τ_ + _m_ where _V_ _∈{v_ _∈_ [ _H_ 1(Ω)] <sup>_d_</sup> : _v_ ( _x_ ) = 0 _, x ∈_ Γ _u}_, _Q_ = _H_ 1(Ω), _τ_ is the time step, _u_ ˇ and _p_ ˇ are the solutions from previous time layer. Here for bilinear and linear forms we have _σ_ ( _x, θ, u_ ) : _ε_ ( _v_ ) _dx,_ _g_ ( _p, v_ ) = _α_ grad _p v dx,_ _a_ ( _θ_ ; _u, v_ ) = Ω Ω _γ p q ds,_ _l_ ( _q_ ) = Γ _p_ _γ p_ 1 _q ds,_ _b_ ( _θ_ ; _p, q_ ) = Ω _<u>k</u>_ <u>(</u> _<u>x, θ</u>_ <u>)</u> grad _p ·_ grad _q dx_ + _ν_ Γ _p_ Ω _m_ ( _p, q_ ) = Ω <u>1</u> _M_ <sup>_p q dx,_</sup> _d_ ( _u, q_ ) = _α_ div _u q dx._ Let _T_ <sup>_h_</sup> be a fine grid partition of the computational domain Ωinto finite elements and - _piψi,_ _u_ = - _uiφi,_ _p_ = where _φi_ and _ψi_ are the linear basis functions defined on _T_ <sup>_h_</sup> . Therefore, we have following matrix form on the fine grid _A_ <sup>_h_</sup> ( _θ_ ) _u_ + _G_ <sup>_h_</sup> _p_ = 0 _,_ _D_ <sup>_h_</sup> <sup>_<u>u −</u>_</sup> <sup>_<u>u</u>_</sup> <sup><u>ˇ</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>u</u>_</sup> <sup><u>ˇ</u></sup> + _M_ <sup>_h p −_</sup> <sup>_<u>p</u>_</sup> <sup><u>ˇ</u></sup> _τ_ _τ_ <sup>_<u>p</u>_</sup> <sup><u>ˇ</u></sup> + _B_ <sup>_h_</sup> ( _θ_ ) _p_ = _F_ <sup>_h_</sup> _,_ _τ_ (3) where _M_ <sup>_h_</sup> = [ _mij_ ] _,_ _mij_ = _m_ ( _ψi, ψj_ ), _B_ <sup>_h_</sup> = [ _bij_ ] _,_ _bij_ = _b_ ( _θ_ ; _ψi, ψj_ ), _A_ <sup>_h_</sup> = [ _aij_ ] _,_ _aij_ = _a_ ( _θ_ ; _φi, φj_ ), _D_ <sup>_h_</sup> = [ _dij_ ] _,_ _dij_ = _d_ ( _φi, ψj_ ), _G_ <sup>_h_</sup> = [ _gij_ ] _,_ _gij_ = _g_ ( _φi, ψj_ ) and _F_ = _{fj}_, _fj_ = _l_ ( _ψj_ ), ### 3 Coarse-Scale Discretization To construct a reduced order model on the coarse grid, we use a Generalized Multiscale Finite Element Method (GMsFEM). We construct an offline multiscale space for pressure and displacements using some number of random coefficients. Therefore constructed basis functions can be used for any input parameters _k_ ( _x, θ_ ) and _E_ ( _x, θ_ ). Let _T_ <sup>_H_</sup> be a standard conforming partition of the computational domain Ωinto finite elements (Figure 1). We refer to this partition as the coarse-grid and assume that each coarse element is partitioned into a 4 (a) 2D (b) 3D Figure 1: Illustration of a coarse grid and fine grid (fine grid - black color, coarse grid - green color. (a) 2D domain with 10 _×_ 10 coarse mesh. (b) 3D domain with 5 _×_ 5 _×_ 5 coarse mesh connected union of fine grid blocks. We use _{xi}_ <sup>_N_</sup> _i_ =1 <sup>_c_</sup> <sup>to denote the vertices of the coarse mesh</sup> <sup>_T_</sup> <sup>_H_</sup> <sup>, and define</sup> the neighborhood of the node _xi_ by _Kj_ _∈T_ <sup>_H_</sup> _| xi_ _∈_ _K_ _j_ _ωi_ = _j_ - _,_ where _Kj_ is the coarse cell and _Nc_ is the number of coarse nodes. The main idea for solution problem in the stochastic media is to precompute multiscale basis functions using a number of permeability and elastic modulus realizations and use them for the making inexpensive coarse grid calculations. 3.1 Multiscale basis functions for pressure In the offline computation, we first construct a snapshot space. Construction involves solving the local problem for various choices of input parameters and various boundary conditions. For each fixed parameter _θr_ ( _r_ = 1 _, ..., Nr_ ), we propose a snapshot space generated by harmonic extensions of _b_ ( _θr_ ; _p, q_ ) _b_ ( _θr_ ; _ψr,j_ <sup>_ωi,_</sup> <sup>snap</sup> _r,j_ <sup>_ωi,_</sup> <sup>snap</sup> _, q_ ) = 0 _x ∈_ _ωi,_ (4) _r,j_ <sup>_ωi,_</sup> <sup>snap</sup> = _gj_ ( _x_ ) _x ∈_ _∂ωi,_ _ψr,j_ <sup>_ωi,_</sup> <sup>snap</sup> where _gj_ ( _x_ ) = _δj,k_, _∀k_ _∈_ _Jh_ ( _ωi_ ) ( _Jh_ ( _ωi_ ) denotes the fine-grid boundary node on _∂ωi_ . We collect all solutions as a snapshot space in the local domain _ωi_ to define local snapshot space _Q_ <sup>_ωi,_</sup> <sup>snap</sup> = span _{ψr,j_ <sup>_ωi,_</sup> <sup>snap</sup> : 1 _≤_ _r_ _≤_ _Nr,_ 0 _≤_ _j_ _≤_ _N_ <sup>_∂ωi_</sup> _},_ where _N_ <sup>_∂ωi_</sup> is the number of the fine-grid boundary nodes on _∂ωi_ . 5 We reorder the snapshot functions using a single index to create the matrix _Mp,_ snap - _T_ _,_ _Rp_ <sup>_ωi,_</sup> <sup>snap</sup> = - _ψ_ 1 <sup>_ωi,_</sup> <sup>snap</sup> 1 <sup>_ωi,_</sup> <sup>snap</sup> _, . . ., ψM_ <sup>_ωi_</sup> _p,_ <sup>_,_</sup> <sup>snap</sup> snap where _Mp,_ snap = _N_ <sup>_∂ωi_</sup> _Nr_ denotes the total number of functions to keep in the snapshot construction. To construct the offline space _Qωi,_ off, we perform a dimension reduction of the space of snapshots by using an auxiliary spectral decomposition. More precisely, we solve the eigenvalue problem in the space of snapshots: _B_ <sup>_ωi,_</sup> <sup>off</sup> Ψ <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> = _λjS_ <sup>_ωi,_</sup> <sup>off</sup> Ψ <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> _,_ <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> _,_ (5) where Here _B_ <sup>_ωi,_</sup> <sup>off</sup> = _{blk},_ _blk_ = _S_ <sup>_ωi,_</sup> <sup>off</sup> = _{slk},_ _slk_ = _ωi_ _ωi_ _l_ <sup>_ωi,_</sup> <sup>snap</sup> _ψk_ <sup>_ωi,_</sup> <sup>snap</sup> _k_ ( _x_ ) _∇ψl_ <sup>_ωi,_</sup> <sup>snap</sup> _l_ <sup>_ωi,_</sup> <sup>snap</sup> _, ∇ψk_ <sup>_ωi,_</sup> <sup>snap</sup> _k_ <sup>_ωi,_</sup> <sup>snap</sup> _dx_ = _Rp_ <sup>_ωi,_</sup> <sup>snap</sup> _p_ <sup>_ωi,_</sup> <sup>snap</sup> _B_ ( _Rp_ <sup>_ωi,_</sup> <sup>snap</sup> _p_ <sup>_ωi,_</sup> <sup>snap</sup> ) <sup>_T_</sup> _,_ _k_ ( _x_ ) _ψl_ <sup>_ωi,_</sup> <sup>snap</sup> _k_ <sup>_ωi,_</sup> <sup>snap</sup> _dx_ = _Rp_ <sup>_ωi,_</sup> <sup>snap</sup> _p_ <sup>_ωi,_</sup> <sup>snap</sup> _S_ ( _Rp_ <sup>_ωi,_</sup> <sup>snap</sup> _p_ <sup>_ωi,_</sup> <sup>snap</sup> ) <sup>_T_</sup> _._ _k_ ( _x_ ) = _Nr_ _r_ =1 _trk_ ( _x, θr_ ) _,_ is independent of _θr_ and _tj_ are prescribed non-negative weights. The main objective is to use the offline space to accurately construct a set of multiscale basis functions for each _θr_ . At the offline stage the bilinear forms are chosen to be parameter-independent, such that there is no need to reconstruct the offline space for each _θr_ . We then choose the smallest _Mp_ <sup>_ωi_</sup> eigenvalues from Eq. (5) and form the corresponding eigenvectors in the space of snapshots by setting _p_ <sup>_ωi._</sup> _ψj_ <sup>_ωi,_</sup> <sup>off</sup> _p_ <sup>_ωi,_</sup> <sup>snap</sup> ) <sup>_T_</sup> Ψ <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> _j_ <sup>_ωi,_</sup> <sup>off</sup> = ( _Rp_ <sup>_ωi,_</sup> <sup>snap</sup> <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> _,_ _j_ = 1 _, . . ., Mp_ <sup>_ωi_</sup> Finally, we multiply the partition of unity functions _χi_ by the eigenfunctions to construct the resulting basis functions _ψi,j_ = _χiψj_ <sup>_ωi,_</sup> <sup>off</sup> _,_ 1 _≤_ _i ≤_ _Nv,_ 1 _≤_ _j_ _≤_ _Mp_ <sup>_ωi,_</sup> (6) where _χi_ is the standard linear partition of unity function. Next, we define the offline space and projection matrix as - _T_ _,_ (7) _QH_ = span _{ψi,j_ : 1 _≤_ _i ≤_ _Nc,_ 1 _≤_ _j_ _≤_ _Mp},_ _Rp_ = - _ψ_ 1 _,_ 1 _, . . ., ψNc,Mp_ where _Nc_ is number of coarse mesh nodes and _Mp_ = _Mp_ <sup>_ωi_</sup> ( _i_ = 1 _, ..., Nc_ ). 3.2 Multiscale basis functions for displacements For construction of multiscale basis functions for displacements we use similar algorithm. We first construct a snapshot space for each parameter _θr_ as a harmonic extension of _a_ ( _θr_ ; _u, v_ ) _a_ ( _θr_ ; _φ_ <sup>_ω_</sup> _r,j_ <sup>_i,_</sup> <sup>snap</sup> <sup>_ω_</sup> _r,j_ <sup>_i,_</sup> <sup>snap</sup> _, v_ ) = 0 _,_ _x ∈_ _ωi,_ (8) <sup>_ω_</sup> _r,j_ <sup>_i,_</sup> <sup>snap</sup> = _gj_ ( _x_ ) _,_ _x ∈_ _∂ωi,_ _φ_ <sup>_ω_</sup> _r,j_ <sup>_i,_</sup> <sup>snap</sup> where _gj_ ( _x_ ) = ( _δl,k,_ 0 _,_ 0) or (0 _, δl,k,_ 0) or (0 _,_ 0 _, δl,k_ ), _∀l, k_ _∈_ _Jh_ ( _ω_ ) ( _r_ = 1 _, ..., Nr_ ). Define local snapshot space _V_ <sup>_ωi,_</sup> <sup>snap</sup> = span _{φ_ <sup>_ω_</sup> _r,j_ <sup>_i,_</sup> <sup>snap</sup> : 1 _≤_ _r_ _≤_ _Nr,_ 0 _≤_ _j_ _≤_ _d · N_ <sup>_∂ωi_</sup> _},_ 6 for each subdomain _ωi_ and _d_ = 2 _,_ 3. We denote the corresponding matrix of snapshot functions, again with similar notation, to be _Mu,_ snap - _T_ _,_ _Ru_ <sup>_ωi,_</sup> <sup>snap</sup> = - _φ_ <sup>_ω_</sup> 1 <sup>_i,_</sup> <sup>snap</sup> <sup>_ω_</sup> 1 <sup>_i,_</sup> <sup>snap</sup> _, . . ., φ_ <sup>_ω_</sup> _M_ <sup>_i_</sup> _u,_ <sup>_,_</sup> <sup>snap</sup> snap where _Mu,_ snap = _d · N_ <sup>_∂ωi_</sup> _· Nr_ denotes the total number of functions to keep in the snapshot construction. Again, we perform a dimension reduction of the space of snapshots by using an auxiliary spectral decomposition. We solve the parameter-independent eigenvalue problem in the space of snapshots _A_ <sup>_ωi,_</sup> <sup>off</sup> Φ <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> _,_ (9) <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> = _ηjC_ <sup>_ωi,_</sup> <sup>off</sup> Φ <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> where _A_ <sup>_ωi,_</sup> <sup>off</sup> = _Rω_ <sup>_u_</sup> snap <sup>_u_</sup> <sup>)</sup> <sup>_T,_</sup> _ω_ <sup>_u_</sup> _i,_ snap <sup>)</sup> <sup>_T,_</sup> _C_ <sup>_ωi,_</sup> <sup>off</sup> = _Rω_ <sup>_u_</sup> _ω_ <sup>_u_</sup> _i,_ snap <sup>_A_</sup> <sup>(</sup> <sup>_R_</sup> _ω_ <sup>_u_</sup> _i_ _ω_ <sup>_u_</sup> _i,_ snap <sup>_C_</sup> <sup>(</sup> <sup>_Ru_</sup> where _A_ and _C_ denote fine scale matrices _A_ = _{alk},_ _alk_ = ( _λ_ ( _x_ ) + 2 _<u>µ</u>_ <u>(</u> _x_ )) _φl · φk dx,_ _ωi_ _ωi_ _σ_ ( _x, φl_ ) : _ε_ ( _φk_ ) _dx,_ _C_ = _{clk},_ _clk_ = _σ_ ( _x, u_ ) = 2 _<u>µ</u>_ <u>(</u> _x_ ) _ε_ ( _u_ ) + _λ_ ( _x_ ) div _u I,_ and _φk_ are fine-scale basis functions. Further, we have _<u>E</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _<u>E</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _<u>η</u>_ _<u>µ</u>_ <u>(</u> _x_ ) = 2(1 + _η_ ) <sup>_,_</sup> _λ_ ( _x_ ) = (1 + _η_ )(1 _−_ 2 _η_ ) <sup>_,_</sup> where _E_ ( _x_ ) = _Nr_ _r_ =1 _trE_ ( _x, θr_ ) _,_ is independent of _θr_ and _tr_ are prescribed non-negative weights. As before for the fluids flow module, at the offline stage of the mechanics the bilinear forms are chosen to be parameter-independent, such that there is no need to reconstruct the offline space for each _θr_ . We then choose the smallest _Mu_ <sup>_ωi_</sup> eigenvalues from Eq. (9) and form the corresponding eigenvectors in the space of snapshots by setting _u_ <sup>_ωi._</sup> _φ_ <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> snap <sup>_u_</sup> <sup>)</sup> <sup>_T_</sup> <sup>Φ</sup> <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> = ( _R_ <sup>_u_</sup> <sup>_ω_</sup> _j_ <sup>_i,_</sup> <sup>off</sup> _,_ _j_ = 1 _, . . ., Mu_ <sup>_ωi_</sup> Finally, we multiply the linear partition of unity functions _ξi_ by the eigenfunctions to construct the resulting basis functions _φi,j_ = _ξiφj_ <sup>_ωi,_</sup> <sup>off</sup> _u_ <sup>_ωi._</sup> (10) _j_ <sup>_ωi,_</sup> <sup>off</sup> _,_ 1 _≤_ _i ≤_ _Nc,_ _,_ 1 _≤_ _j_ _≤_ _Mu_ <sup>_ωi_</sup> Next, we define the multiscale space and projection matrix as _VH_ = span _{φi,j_ : 1 _≤_ _i ≤_ _Nc_ 1 _≤_ _j_ _≤_ _Mu},_ _Ru_ = [ _φ_ 1 _,_ 1 _, . . ., ϕNc,Mu_ ] <sup>_T_</sup> _,_ (11) where _Mu_ = _Mu_ <sup>_ωi_</sup> ( _∀i_ = 1 _, ..., Nc_ ). 3.3 Global coupling The multiscale spaces are constructed for both the fluid and mechanics, and we can use them at the global level. Using the matrices - _T_ _,_ and _Ru_ = [ _φ_ 1 _,_ 1 _, . . ., φNc,Mu_ ] <sup>_T_</sup> _,_ 7 _Rp_ = - _ψ_ 1 _,_ 1 _, . . ., ψNc,Mp_ we may write matrix form for the multiscale approximation _A_ <sup>_H_</sup> ( _θ_ ) _u_ <sup>_H_</sup> + _G_ <sup>_H_</sup> _p_ <sup>_H_</sup> = 0 _,_ _D_ <sup>_H uH_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>u</u>_</sup> <sup><u>ˇ</u></sup> <sup>_H_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>u</u>_</sup> <sup><u>ˇ</u></sup> <sup>_H_</sup> + _M_ <sup>_H pH_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>p</u>_</sup> <sup><u>ˇ</u></sup> <sup>_H_</sup> _τ_ _τ_ <sup>_<u>−</u>_</sup> <sup>_<u>p</u>_</sup> <sup><u>ˇ</u></sup> <sup>_H_</sup> + _B_ <sup>_H_</sup> ( _θ_ ) _p_ <sup>_H_</sup> = _F_ <sup>_H_</sup> _,_ _τ_ (12) where _u_ <sup>_T_</sup> <sup>_,_</sup> _G_ <sup>_H_</sup> = _RuG_ <sup>_h_</sup> _Rp_ <sup>_T_</sup> _A_ <sup>_H_</sup> ( _θ_ ) = _RuA_ ( _θ_ ) _Ru_ <sup>_T_</sup> _p_ <sup>_T_</sup> <sup>_,_</sup> _p_ <sup>_T_</sup> <sup>_,_</sup> _M_ <sup>_H_</sup> = _RpM_ <sup>_h_</sup> _Rp_ <sup>_T_</sup> _u_ <sup>_T_</sup> <sup>_,_</sup> _F_ <sup>_H_</sup> = _RpF._ _B_ <sup>_H_</sup> ( _θ_ ) = _RpB_ <sup>_h_</sup> ( _θ_ ) _Rp_ <sup>_T_</sup> _p_ <sup>_T_</sup> <sup>_,_</sup> _D_ <sup>_H_</sup> = _RpD_ <sup>_h_</sup> _Ru_ <sup>_T_</sup> Finally, we reconstruct solution on the fine grid by _u_ <sup>_ms_</sup> = _Ru_ <sup>_T_</sup> _u_ <sup>_T_</sup> <sup>_uH_</sup> <sup>,</sup> <sup>_pms_</sup> <sup>=</sup> <sup>_R_</sup> _p_ <sup>_T_</sup> Finally, we reconstruct solution on the fine grid by _u_ <sup>_ms_</sup> = _Ru_ <sup>_T_</sup> <sup>_uH_</sup> <sup>,</sup> <sup>_pms_</sup> <sup>=</sup> <sup>_R_</sup> _p_ <sup>_T_</sup> <sup>_pH_</sup> <sup>.</sup> Note that, the construction of the multiscale basis functions is performed on the offline stage and the same for any random field realization. Construction of basis usually contains two steps: (1) the construction of a snapshot space that will be used to compute an offline space; and (2) the construction of an offline space by performing a dimension reduction in the snapshot space. Multiscale basis functions for pressure and displacement described above are referred to Type 1. One can also use all the fine grid nodal basis as snapshots. This offline space is referred to Type 2. ### 4 Bayesian Uncertainty Quantification As noted earlier, in many geomechanical applications a multitude of data observations are measured, such as surface subsidence based on InSar data collected from earth observation [23, 6, 16]. Due to the collection procedures and data processing times involved in the apprehension of such data, these pieces of information are often sparse in time, yet spatially global. This is because only one or two post-processed displacement fields are available per year depending on various observation and processing constraints. Other local sensors may stream relatively constant data of surface subsidence, but only at few sparse random spatial locations. To integrate these observations into the subsurface picture we utilize a Bayesian update framework. We denote the set of such observations as _Fobs_ and want to condition the probability distribution of random fields such as _E_ and _k_ to respect the observed data. We develop an algorithm to sample the permeability and elastic parameters given observed data _Fobs_ that include subsidence data. This is accomplished by the well known Bayesian formula where we may relate a new posterior probability distribution given that we have measured information from a likelihood and a prior (usually Gaussian). 4.1 Subsurface Properties Parametrization To parametrize the subsurface properties, we use the Karhunen-Lo´eve expansion (KLE) [10, 11]. Let _Y_ ( _x, θ_ ) be a stochastic process such that E - _∥Y ∥_ <sup>2</sup> _L_ <sup>2</sup> (Ω)� _< ∞,_ where E is expectation. _Y_ ( _x, θ_ ) can be expand as a general Fourier series _Y_ ( _x, θ_ ) = _∞_ _k_ =1 _Yk_ ( _θ_ ) _ϕk_ ( _x_ ) _,_ where _Yk_ ( _θ_ ) = �Ω <sup>_Y_</sup> <sup>(</sup> <sup>_x, θ_</sup> <sup>)</sup> <sup>_ϕk_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_dx_</sup> <sup>is</sup> <sup>the</sup> <sup>Fourier</sup> <sup>coefficient</sup> <sup>in</sup> <sup>the</sup> <sup>given</sup> <sup>_L_</sup> <sup>2</sup> <sup>basis</sup> <sup>_{ϕk}_</sup> _k_ <sup>_∞_</sup> =1 <sup>.</sup> <sup>We</sup> <sup>wish</sup> <sup>to</sup> <sup>find</sup> an _L_ <sup>2</sup> basis so that the Fourier coefficients are uncorrelated, or in some sense orthogonal in the expectation. More specifically we require E [ _Yi_ ( _θ_ ) _Yj_ ( _θ_ )] = 0 _._ We denote the covariance matrix, usually assumed to be where _Yk_ ( _θ_ ) = Ω <sup>_Y_</sup> <sup>(</sup> <sup>_x, θ_</sup> <sup>)</sup> <sup>_ϕk_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_dx_</sup> <sup>is</sup> <sup>the</sup> <sup>Fourier</sup> <sup>coefficient</sup> <sup>in</sup> <sup>the</sup> <sup>given</sup> <sup>_L_</sup> <sup>2</sup> <sup>basis</sup> <sup>_{ϕk}_</sup> _k_ <sup>_∞_</sup> 8 Gaussian in their correlation lengths, to be given as _R_ ( _x, y_ ) = E [ _Y_ ( _x, θ_ ) _Y_ ( _y, θ_ )] _._ Note that it is symmetric and positive definite, thus, we have that �� E [ _Yi_ ( _θ_ ) _Yj_ ( _θ_ )] = E Ω - = _R_ ( _x, y_ ) _ϕi_ ( _x_ ) _ϕj_ ( _y_ ) _dx dy_ = _δij,_ _Y_ ( _x, θ_ ) _ϕi_ ( _x_ ) _dx_ _Y_ ( _y, θ_ ) _ϕj_ ( _y_ ) _dy_ Ω Ω Ω where _{ϕk}_ <sup>_∞_</sup> _k_ =1 <sup>are</sup> <sup>mutually</sup> <sup>orthogonal</sup> <sup>eigenfunctions</sup> <sup>corresponding</sup> <sup>to</sup> <sup>_R_</sup> <sup>.</sup> <sup>Indeed,</sup> <sup>we</sup> <sup>have</sup> Ω _R_ ( _x, y_ ) _ϕk_ ( _y_ ) _dy_ = _ψkϕk_ ( _x_ ) _,_ _k_ = 1 _,_ 2 _, . . .,_ _ψk_ = E - _Yk_ <sup>2(</sup> <sup>_θ_</sup> <sup>)</sup> �. We suppose that the Covariance structure _R_ ( _x, y_ ) is of the form where _ψk_ = E - _Yk_ <sup>2</sup> _k_ <sup>2(</sup> <sup>_θ_</sup> <sup>)</sup> _R_ ( _x, y_ ) = _σR_ <sup>2</sup> <sup>exp</sup> - _−_ ∆ <sup>2�</sup> _,_ (13) with for two - dimensional case and ∆ <sup>2</sup> = <sup>_<u>|x</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> <sup>_<u>|</u>_</sup> <sup>2</sup> _lx_ <sup>2</sup> + <sup>_<u>|y</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>2</u></sup> <sup>_<u>|</u>_</sup> <sup>2</sup> _ly_ <sup>2</sup> _,_ + <sup>_<u>|z</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>z</u>_</sup> <sup><u>2</u></sup> <sup>_<u>|</u>_</sup> <sup>2</sup> _lz_ <sup>2</sup> ∆ <sup>2</sup> = <sup>_<u>|x</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> <sup>_<u>|</u>_</sup> <sup>2</sup> _lx_ <sup>2</sup> + <sup>_<u>|y</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>2</u></sup> <sup>_<u>|</u>_</sup> <sup>2</sup> _ly_ <sup>2</sup> _,_ for three - dimensional case with correlation lengths _lx_, _ly_, _lz_ and variance _σR_ <sup>2</sup> <sup>.</sup> We denote the normalized stochastic Fourier coefficients as _νk_ ( _θ_ ) = _Yk_ ( _θ_ ) _/_ <sup>_√_</sup> _ψk_ and write _Y_ ( _x, θ_ ) = _∞_ - - _ψkνk_ ( _θ_ ) _ϕk_ ( _x_ ) _,_ (14) _k_ =1 where E [ _νi_ ( _θ_ )] = 0, E [ _νi_ ( _θ_ ) _νj_ ( _θ_ )] = _δij_, and _{ψk, ϕk_ ( _x_ ) _}_ <sup>_∞_</sup> _k_ =1 <sup>are</sup> <sup>the</sup> <sup>eigenpairs</sup> <sup>associated</sup> <sup>to</sup> <sup>the</sup> <sup>convolution</sup> eigenvalue problem. We assume that the eigenvalues _ψk_ are ordered _ψ_ 1 _≥_ _ψ_ 2 _≥_ _..._ . In simulations to characterize stochastic process, we keep _L_ -leading terms to capture most of the energy of the _Y_ ( _x, θ_ ) _YL_ ( _x, θ_ ) = with following energy ratio of the approximation _L_ - - _ψkνk_ ( _θ_ ) _ϕk_ ( _x_ ) _,_ (15) _k_ =1 _e_ ( _L_ ) = <sup>_<u>E||YL||</u>_</sup> <sup>2</sup> _E||Y ||_ <sup>2</sup> <sup>=</sup> <u>�</u> _Lk_ <u>=1</u> <sup>_<u>ψk</u>_</sup> <u>�</u> _<u>∞</u>_ _k_ =1 <sup>_ψk_</sup> _._ For definition of the permeability and elastic properties, we normalize and rescale random filed to define porosity _φ_ ( _x, θ_ ) = _φ_ ( _YL_ ( _x, θ_ )) _,_ (16) where _YL_ ( _x, θ_ ) is given by (15) with the corresponding covariance as _R_, eigenfunctions _ϕk_ and stochastic coefficients as _νk_ . We suppose that the permeability as a function of porosity _k_ ( _x, θ_ ) = exp ( _a φ_ ( _YL_ ( _x, θ_ ))) _,_ (17) 9 where _a >_ 0. The elasticity constants _λ_ and _µ_ are given such that _µ_ ( _x, θ_ ) = 2(1 + <sup>_<u>E</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x, θ</u>_</sup> _η_ <sup><u>)</u></sup> ) <sup>_,_</sup> _λ_ ( _x, θ_ ) = (1 + _<u>E η</u>_ <u>()(1</u> _<u>x, θ −</u>_ <u>)</u> _<u>η</u>_ 2 _η_ ) <sup>_,_</sup> where the elastic modulus is given by - _n_ _,_ (18) _E_ ( _x, θ_ ) = _b_ - <u>1</u> _<u>.</u>_ <u>0</u> _<u>−</u>_ _<u>φ</u>_ <u>(</u> _<u>YL</u>_ <u>(</u> _<u>x, θ</u>_ <u>))</u> _φ_ ( _YL_ ( _x, θ_ )) where _n_ = 1 _._ 5 and _b >_ 0 [38]. 4.2 Observable Surface Data For the case of surface subsidence, the surface displacement is used as the observable data _uobs_ ( _x, t_ ) _,_ _x ∈_ _∂_ Ω _surf_ where _∂_ Ω _surf_ the surface boundary. This data is usually dynamic, but sparse in the spatial extent, with the occasional inclusion of global deformation at sparse time interval snapshots. Temporally Sparse Surface Subsidence Satellite Observation Spatially Sparse Ground Sensors Figure 2: Observable surface data of geomechanical subsidence. Spatially sparse, but temporally constant ground motion sensors. Temporally sparse, but spatially global satellite observation. The dynamic data comes from surface sensors at sparse locations throughout the area of interest that continuously monitor displacement in time at sparse locations. While, the global information is available from InSar satellite observation data. However, due to the nature of the collection of this data and the length of time to process the large data sets involved, only snapshots of data are usually available in practical settings. To make this more precise, we suppose that at distinct points _xi_ _∈_ _∂_ Ω _surf_, for _i_ = 1 _, · · · Ndata_ <sup>_s_</sup> <sup>,</sup> <sup>_uobs_</sup> <sup>(</sup> <sup>_xi, t_</sup> <sup>)</sup> <sup>is</sup> known for all time _t_ _∈_ [0 _, T_ ]. Further, we suppose that at snapshot times _tj_, _j_ = 1 _, · · · Ndata_ <sup>_t_</sup> <sup>,</sup> <sup>_uobs_</sup> <sup>(</sup> <sup>_x, tj_</sup> <sup>)</sup> <sup>is</sup> known for all time _x ∈_ _∂_ Ω _surf_ Suppose that _uθ_ ( _x, t_ ) is the displacement computed using properties _E_ ( _θ_ ) and _k_ ( _θ_ ), then we define our data misfit as - _T_ _|uobs_ ( _xi, t_ ) _−_ _uθ_ ( _xi, t_ ) _|_ <sup>2</sup> _dt_ + 0 10 _Ndata_ <sup>_t_</sup> _j_ =1 _∥Fobs −_ _Fθ∥_ <sup>2</sup> = _Ndata_ <sup>_s_</sup> _i_ =1 _∂_ Ω _surf_ _|uobs_ ( _x, tj_ ) _−_ _uθ_ ( _x, tj_ ) _|_ <sup>2</sup> _ds,_ (19) where _ds_ is the surface measure. 4.3 Single-stage Metropolis - Hastings Algorithm The posterior distribution _π_ ( _θ_ ) can be expressed as _π_ ( _θ_ ) = _p_ ( _θ|Fobs_ ) _∝_ _p_ ( _Fobs|θ_ ) _p_ ( _θ_ ) _,_ (20) where _p_ ( _Fobs|θ_ ) is the likelihood and _p_ ( _θ_ ) is the prior distribution. Given a set of observed data _Fobs_ and heterogeneous field parameter data _θ_ we write _F_ ( _θ_ ) to be the corresponding simulated data (on the fine-grid) i.e. subsidence displacement or pressures. Due to uncertainty in the model and measurements, we suppose that the error is such that _Fobs −_ _F_ ( _θ_ ) = _ε,_ where _ε_ is random normal with mean 0 and variance _σf_ <sup>2</sup> _f_ <sup>2,</sup> <sup>or</sup> <sup>in</sup> <sup>standard</sup> <sup>notation</sup> <sup>_ε_</sup> <sup>follows</sup> <sup>_N_</sup> <sup>(0</sup> <sup>_, σ_</sup> _f_ <sup>2</sup> where _ε_ is random normal with mean 0 and variance _σf_ <sup>2,</sup> <sup>or</sup> <sup>in</sup> <sup>standard</sup> <sup>notation</sup> <sup>_ε_</sup> <sup>follows</sup> <sup>_N_</sup> <sup>(0</sup> <sup>_, σ_</sup> _f_ <sup>2).</sup> <sup>Thus,</sup> we will write the posterior as _p_ ( _θ_ ) _._ (21) _p_ ( _θ|Fobs_ ) _∝_ exp _−_ <sup>_<u>∥F</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>Fobs∥</u>_</sup> <sup>2</sup> _σf_ <sup>2</sup> _f_ Let _q_ ( _θ|θn_ ) be the instrumental distribution that is used to choose the next fields _θ_ given the previous properties _θn_ . We consider a random walk samplers for the transitional probability distribution _q_ ( _θ|θn_ ) and set _q_ ( _θ|θn_ ) = _θn_ + _δ · r_, where _r_ is a Gaussian random variable with zero mean and variance 1. _The_ _single_ _-_ _stage_ _Metropolis_ _-_ _Hastings_ _algorithm:_ 1. Given _θn_, generate new proposal _θ_, from _q_ ( _θ|θn_ ). 2. Solve forward problem, using _θ_, generate observable _F_ ( _θ_ ). 3. Determine the acceptance probability from Prob( _θn|θ_ ) = min �1 _,_ <sup>_<u>q</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θn|θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>p</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ|Fobs</u>_</sup> <sup><u>)</u></sup> _q_ ( _θ|θn_ ) _p_ ( _θn|Fobs_ ) _,_ (22) and take For symmetric _q_ ( _·|·_ ), we have _θn_ +1 = - _θ_ with probability Prob( _θn|θ_ ) _,_ _θn_ with probability 1 _−_ Prob( _θn|θ_ ) _._ _−_ <sup>_<u>E</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>E</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θn</u>_</sup> <sup><u>)</u></sup> _σf_ <sup>2</sup> �� _,_ Prob( _θn|θ_ ) = min 1 _,_ exp _f_ with _E_ ( _θ_ ) = _∥F_ ( _θ_ ) _−_ _Fobs∥_ <sup>2</sup> and _E_ ( _θn_ ) = _∥F_ ( _θn_ ) _−_ _Fobs∥_ <sup>2</sup> . It is well known that the above algorithm is very costly due to the expense of having to solve the fine-scale solution and the low acceptance rate of new proposals. A method to save computational cost is to use a coarse-scale model or/and machine learning technique as a preconditioning phase to cheaply reject proposals. Then, if the proposals is accepted on the cheap first-stage, run a fine-scale simulation and generate new acceptance-rejection probabilities. This two-stage procedure has been utilized in various other applications [10, 11, 15]. 11 4.4 Two-stage Metropolis - Hastings Algorithm Let _p_ <sup>_∗_</sup> ( _θ|Fobs_ ) _∝_ exp - _−_ <sup>_<u>E∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> _σc_ <sup>2</sup> _,_ (23) where _E_ <sup>_∗_</sup> ( _θ_ ) = _∥F_ <sup>_∗_</sup> ( _θ_ ) _−_ _Fobs∥_ <sup>2</sup> and _σc_ <sup>2</sup> <sup>is</sup> <sup>the</sup> <sup>precision</sup> <sup>associated</sup> <sup>with</sup> <sup>the</sup> <sup>approximate</sup> <sup>model.</sup> Here _F_ <sup>_∗_</sup> ( _θ_ ) denotes the simulated data that generated using _•_ _MS_ : coarse scale simulations (multiscale solver), _•_ _ML_ : machine learning techniques, _The_ _two_ _-_ _stage_ _Metropolis_ _-_ _Hastings_ _algorithm:_ 1. Given _θn_, generate new proposal _θ_ <sup>_′_</sup>, from _q_ ( _θ_ <sup>_′_</sup> _|θn_ ). 2. First stage: (a) Generate observable _F_ <sup>_∗_</sup> ( _θ_ <sup>_′_</sup> ) for given _θ_ <sup>_′_</sup> using forward multiscale solver ( _MS_ ) or machine learning technique ( _ML_ ). (b) Determine the acceptance probability from �1 _,_ <sup>_<u>q</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θn|θ′</u>_</sup> <sup><u>)</u></sup> <sup>_<u>p∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ′|Fobs</u>_</sup> <sup><u>)</u></sup> _q_ ( _θ_ <sup>_′_</sup> _|θn_ ) _p_ <sup>_∗_</sup> ( _θn|Fobs_ ) _g_ ( _θn|θ_ <sup>_′_</sup> ) = min _,_ (24) and take 3. Second stage, if accepted: _θ_ = - _θ′_ with probability _g_ ( _θn|θ_ ) _,_ _θn_ with probability 1 _−_ _g_ ( _θn|θ_ ) _._ (a) Solve fine-scale forward problem using _θ_ and generate observable _F_ ( _θ_ ). (b) Determine the acceptance probability from _ρ_ ( _θn|θ_ ) = min �1 _,_ <sup>_<u>p∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θn|Fobs</u>_</sup> <sup><u>)</u></sup> <sup>_<u>p</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ|Fobs</u>_</sup> <sup><u>)</u></sup> - _,_ (25) _p_ <sup>_∗_</sup> ( _θ|Fobs_ ) _p_ ( _θn|Fobs_ ) and take Here, we have and _ρ_ ( _θn|θ_ ) = min �1 _,_ <sup>_<u>p∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θn|Fobs</u>_</sup> <sup><u>)</u></sup> <sup>_<u>p</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ|Fobs</u>_</sup> <sup><u>)</u></sup> _p_ <sup>_∗_</sup> ( _θ|Fobs_ ) _p_ ( _θn|Fobs_ ) - _θ_ with probability _ρ_ ( _θn|θ_ ) _,_ _θn_ +1 = _θn_ with probability 1 _−_ _ρ_ ( _θn|θ_ ) _._ _g_ ( _θn|θ_ <sup>_′_</sup> ) = min - 1 _,_ exp _−_ <sup>_<u>E∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ′</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>E∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θn</u>_</sup> <sup><u>)</u></sup> _σc_ <sup>2</sup> �� _,_ _−_ <sup>_<u>E</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>E</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θn</u>_</sup> <sup><u>)</u></sup> _σf_ <sup>2</sup> - = min 1 _,_ exp _f_ �� + <sup>_<u>E∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>E∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θn</u>_</sup> <sup><u>)</u></sup> _σc_ <sup>2</sup> _._ If _E_ <sup>_∗_</sup> ( _θ_ ) is strongly correlated with _E_ ( _θ_ ), then the acceptance probability _ρ_ could be close to 1 for certain choice of _σc_ [11]. To Generate observable _E_ <sup>_∗_</sup> ( _θ_ <sup>_′_</sup> ) for given _θ_ <sup>_′_</sup> using forward multiscale solver ( _MS_ ), we use following steps: _•_ _Offline_ _stage_ . Construction of the projection matrices _Rp_ and _Ru_ . _•_ _Online_ _stage_ . For given _θ_ <sup>_′_</sup> : 12 1. generate a coarse grid system using preconstructed projection matrices, 2. solve time-depended coarse grid system (12), 3. find observable data _uobs_ ( _θ_ <sup>_′_</sup> ) on the surface boundary from multiscale solution, 4. generate _E_ <sup>_∗_</sup> ( _θ_ <sup>_′_</sup> ). In machine learning technique ( _ML_ ), we have following steps: _•_ _Offline_ _stage_ . Dataset generation and neural networks training. _•_ _Online_ _stage_ . For given _θ_ <sup>_′_</sup> : 1. predict observable data _uobs_ ( _θ_ <sup>_′_</sup> ) on the surface boundary using trained neural networks, 2. generate _E_ <sup>_∗_</sup> ( _θ_ <sup>_′_</sup> ). We construct a neural network (NN) for displacements in each direction _x, y_ and _z_ . Therefore, we train two NNs for two-dimensional problems (2D) and three NNs for three-dimensional problems (3D) [36]. In _ML_, we directly predict an observable data for given _θ_ <sup>_′_</sup>, without solution of the forward problem. To construct a neural network for prediction of the observable data, we generate a dataset by the solution of the forward problems using a multiscale solver for some number of random coefficient _θr_ ( _r_ = 1 _, ..., Nr_ ) Dataset: _{_ ( _Xr, Qr_ ) _,_ _r_ = 1 _, ..., Nr}._ where _Xr_ = _θr_ and _Qr_ = _uobs_ ( _θr_ ) are the input data and output data. The input field is represented as a twodimensional array for the two-dimensional problem and as a three-dimensional array for three-dimensional problems. The dataset is re-scaled to fall within the range 0 to 1. We use a convolutional neural network, where several convolutional, pooling, and activation layers are stacked with several fully-connected layers with dropout. Training of the machine learning algorithms is performed using mean square loss function (MSE). Implementation of the machine learning method is based on the library Keras [9] with TensorFlow backend [1] and performed on the GPU. The machine-learning algorithm learns dependence between global random coefficients ( _θ_ ) and observable data _uobs_ ( _θ_ ). ### 5 Numerical results In order to investigate the proposed method, we perform the following tests: _•_ In Section 5.1, we consider multiscale solver for three test cases in 2D and 3D formulations. We show the relative errors between reference (fine-grid) solution and GMsFEM solution with different numbers of the multiscale basis functions. Also, we present a solution time of the proposed multiscale method. _•_ In Section 5.2, we consider MCMC method with GMsFEM preconditioning. We start with tests of multiscale solver, where we present errors for pressure and displacements for 100 random realizations. Next, we demonstrate correlation between _E_ ( _θ_ ) (fine grid solver) and _E_ <sup>_∗_</sup> ( _θ_ ) (multiscale solver with different number of basis functions). After that, we present results for the two-stage MCMC method with GMsFEM preconditioning for 2D and 3D test problems. We investigate the influence of the method parameters on the numbers of the accepted fields and number of the fields that pass the first stage in the two-dimensional formulation. Some figures of accepted fields with corresponded solutions are presented. _•_ In Section 5.3, we consider the preconditioned MCMC method using a machine learning technique. We start with the demonstration of the neural network architectures for 2D and 3D problems, and we use them for the prediction of the observable data. Next, we demonstrate correlation between _E_ ( _θ_ ) (fine grid solver) and _E_ <sup>_∗_</sup> ( _θ_ ) (machine learning method). After that, we present results for the 13 preconditioned MCMC method, where we took an observable data for three test cases considered in Section 5.1. We shown results for both preconditioning approaches: ( _MS_ ) multiscale solver based on GMSFEM and ( _ML_ ) machine learning technique. Finally, we discuss the computational advantage of the method. 5.1 Multiscale method In this section, we present numerical examples to demonstrate the performance of the multiscale method for computing the solution of the poroelasticity problem with random heterogeneous properties. (a) _k_ ( _x_ ) for Case 1, 2 and 3 (from left to right). (b) _E_ ( _x_ ) for Case 1, 2 and 3 (from left to right). Figure 3: Random permeability _k_ and elastic modulus _E_ . Two - dimensional problem (2D). Case 1, 2 and 3 (from left to right). (a) permeability, _k_ ( _x_ ). (b) elastic modulus, _E_ ( _x_ ). We consider two and three-dimensional model problems in domain Ω= [0 _,_ 1] <sup>_d_</sup> with _d_ = 2 _,_ 3: _•_ Two - dimensional problem (2D). Coarse grid contains 121 nodes (10 _×_ 10) and the fine grid has 10201 nodes. _•_ Three - dimensional problem (3D). Coarse grid contains of 216 nodes (5 _×_ 5 _×_ 5) and fine grid has 9261 nodes. The coarse grid and fine grid are presented in Figure 1. 14 (a) _p_ for Case 1, 2 and 3 (from left to right). (b) _um_ for Case 1, 2 and 3 (from left to right). Figure 4: Numerical results for random permeability _k_ and elastic modulus _E_ . Case 1, 2 and 3 (from left to right). Fine grid solution of two - dimensional problem (2D). (a) pressure, _p_ . (b) displacement, _um_ . We perform simulations for _Tmax_ = 0 _._ 001 with 20 time steps. As an initial condition, we set _p_ 0 = 0 and impose the following boundary conditions: _ux_ = 0 _,_ _σy_ = 0 _,_ _σz_ = 0 _,_ _x_ = 0 _,_ _σx_ = 0 _,_ _uy_ = 0 _,_ _σz_ = 0 _,_ _y_ = 0 _,_ _σx_ = 0 _,_ _σy_ = 0 _,_ _uz_ = 0 _,_ _z_ = 0 _,_ _σ · n_ = 0 _,_ _x, y, z_ = 1 _,_ and _q · n_ = _γ_ ( _p −_ _p_ 1) _,_ _y_ = 1 _,_ _q · n_ = 0 _,_ _y̸_ = 1 _,_ with _γ_ = 10 <sup>4</sup> and _p_ 1 = 1 _._ 0. The high dimensional heterogeneity is represented using Karhunen-Lo´eve expansion. Random heterogeneous porosity fields are generated using _L_ = 200 basis functions ( _YL_ ( _x, θ_ )) with exponential covariance ( _lx_ = _ly_ = _lz_ = 0 _._ 2 and _σR_ <sup>2</sup> <sup>= 2)</sup> _φ_ ( _x, θ_ ) = _φ_ ( _Y_ ( _x, θ_ )) _,_ 15 (a) _k_ ( _x_ ) for Case 1, 2 and 3 (from left to right). (b) _E_ ( _x_ ) for Case 1, 2 and 3 (from left to right). Figure 5: Random permeability _k_ and elastic modulus _E_ . Three - dimensional problem (3D). Case 1, 2 and 3 (from left to right). (a) permeability, _k_ ( _x_ ). (b) elastic modulus, _E_ ( _x_ ). with normalization, that give _φ ∈_ [0 _._ 05 _,_ 0 _._ 2]. Heterogeneous permeability and elasticity modulus fields are given by _k_ ( _x, θ_ ) = exp ( _a φ_ ( _x, θ_ )) _,_ - _m_ _,_ _E_ ( _x, θ_ ) = _b_ - <u>1</u> _<u>.</u>_ <u>0</u> _<u>−</u>_ _<u>φ</u>_ <u>(</u> _<u>x, θ</u>_ <u>)</u> _φ_ ( _x, θ_ ) with _a_ = 40, _b_ = 0 _._ 1 and _m_ = 1 _._ 5 [38]. The Biot modulus is _M_ = 1 _._ 0, fluid viscosity is _ν_ = 1, fluid-solid coupling constant is _α_ = 0 _._ 1, the Poisson’s ratio is _η_ = 0 _._ 3. Permeability field and elastic modulus are shown in Figure 3 for 2D problems and in Figure 5 for 3D problems. We consider three test cases (Case 1, 2 and 3 are depicted from left to right). All permeabilities and elastic modulus are depicted in the log scale. The reference solution computed by a standard finite element method with linear basis functions for pressure and displacements on the fine grid. The reference pressure and the displacement fields at final time are presented in Figures 4 and 6. 16 (a) _p_ for Case 1, 2 and 3 (from left to right). (b) _um_ for Case 1, 2 and 3 (from left to right). Figure 6: Numerical results for random permeability _k_ and elastic modulus _E_ . Case 1, 2 and 3 (from left to right). Fine grid solution of three - dimensional problem (3D). (a) pressure, _p_ . (b) displacement, _um_ . To compare a multiscale solution, we calculate relative errors in _L_ <sup>2</sup> norm in % - <u>�</u> _ep_ = _eu_ = <u>Ω</u> <sup>(</sup> <sup>_pms_</sup> <sup>_−_</sup> <sup>_p, pms_</sup> <sup>_−_</sup> <sup>_p_</sup> <sup>)</sup> <sup>_dx_</sup> <u>�Ω</u> <sup>(</sup> <sup>_p, p_</sup> <sup>)</sup> <sup>_dx_</sup> _·_ 100% _,_ <u>Ω</u> <sup>(</sup> <sup>_pms_</sup> <sup>_−_</sup> <sup>_p, pms_</sup> <sup>_−_</sup> <sup>_p_</sup> <sup>)</sup> <sup>_dx_</sup> <u>�</u> <u>Ω</u> <sup>(</sup> <sup>_ums_</sup> <sup>_−_</sup> <sup>_u, ums_</sup> <sup>_−_</sup> <sup>_u_</sup> <sup>)</sup> <sup>_dx_</sup> <u>�Ω</u> <sup>(</sup> <sup>_u, u_</sup> <sup>)</sup> <sup>_dx_</sup> _·_ 100% _,_ <u>Ω</u> <sup>(</sup> <sup>_ums_</sup> <sup>_−_</sup> <sup>_u, ums_</sup> <sup>_−_</sup> <sup>_u_</sup> <sup>)</sup> <sup>_dx_</sup> <u>�</u> - <u>�</u> where _p_ <sup>_ms_</sup> and _u_ <sup>_ms_</sup> are multiscale solutions, _p_ and _u_ are reference solutions. For multiscale basis construction on the offline stage, we use a 10 random permeability and elastic fields. We present numerical results in Tables 1 and 2 for Type 1 and 2 multiscale basis functions. _DOFc_ and _DOFf_ are degrees of freedom for multiscale and reference (fine grid) solutions. _Mp_ and _Mu_ are the number of the multiscale basis functions for pressure and displacements, respectively. Varying the basis functions in both pressure and displacement multiscale spaces we presented the errors at the final times. We note that the first basis for pressure is standard linear basis function because the first eigenvalue of the local spectral problem 17 <u>2D</u> _<u>M</u>_ <u>+</u> _<u>Mp</u>_ _<u>Mu</u>_ _<u>DOFc</u>_ _<u>ep</u>_ <u>(%)</u> _<u>eu</u>_ <u>(%)</u> <u>Case</u> <u>1</u> 0 1 2 363 7.532 6.413 1 2 3 605 4.800 4.048 2 3 4 847 1.368 2.076 3 4 5 1089 0.940 1.634 4 5 6 1331 0.635 1.146 6 7 8 1815 0.303 0.840 <u>8</u> <u>9</u> <u>10</u> <u>2299</u> <u>0.182</u> <u>0.661</u> <u>Case</u> <u>2</u> 0 1 2 363 2.142 2.953 1 2 3 605 1.151 2.127 2 3 4 847 0.641 1.649 3 4 5 1089 0.529 1.309 4 5 6 1331 0.234 0.822 6 7 8 1815 0.117 0.552 <u>8</u> <u>9</u> <u>10</u> <u>2299</u> <u>0.068</u> <u>0.440</u> <u>Case</u> <u>3</u> 0 1 2 363 4.635 6.847 1 2 3 605 2.760 4.303 2 3 4 847 0.778 2.005 3 4 5 1089 0.492 1.579 4 5 6 1331 0.343 0.993 6 7 8 1815 0.198 0.694 <u>8</u> <u>9</u> <u>10</u> <u>2299</u> <u>0.124</u> <u>0.535</u> <u>3D</u> _<u>M</u>_ <u>+</u> _<u>Mp</u>_ _<u>Mu</u>_ _<u>DOFc</u>_ _<u>ep</u>_ <u>(%)</u> _<u>eu</u>_ <u>(%)</u> <u>Case</u> <u>1</u> 0 1 3 864 4.369 5.477 1 2 4 1296 2.727 4.343 2 3 5 1728 1.914 3.716 3 4 6 2160 1.356 3.220 4 5 7 2592 0.853 2.672 6 7 9 3456 0.453 1.904 <u>8</u> <u>9</u> <u>11</u> <u>4320</u> <u>0.352</u> <u>1.619</u> <u>Case</u> <u>2</u> 0 1 3 864 6.000 3.653 1 2 4 1296 5.194 3.235 2 3 5 1728 3.185 2.700 3 4 6 2160 2.144 2.455 4 5 7 2592 0.912 2.114 6 7 9 3456 0.571 1.693 <u>8</u> <u>9</u> <u>11</u> <u>4320</u> <u>0.452</u> <u>1.443</u> <u>Case</u> <u>3</u> 0 1 3 864 3.430 4.520 1 2 4 1296 2.752 3.997 2 3 5 1728 1.709 3.318 3 4 6 2160 1.129 3.071 4 5 7 2592 0.730 2.841 6 7 9 3456 0.487 2.331 <u>8</u> <u>9</u> <u>11</u> <u>4320</u> <u>0.377</u> <u>1.905</u> Table 1: Numerical results for random permeability _k_ and elastic modulus _E_ . Case 1, 2 and 3 (from left to right). Type 1 multiscale basis functions, _Mp_ = 1 + _M_ +, _Mu_ = _d_ + _M_ + and _DOFc_ = ( _Mp_ + _Mu_ ) _· Nc_ . Left: two - dimensional problem, _d_ = 2 ( _Nc_ = 121 and _DOFf_ = 30603). Right: three - dimensional problem, _d_ = 3 ( _Nc_ = 216 and _DOFf_ = 37044) is constant. Similarly for displacements, the first _d_ basis functions are standard linear basis functions. _M_ + is used to denote the number of the additional spectral basis functions calculated using algorithm presented in Section 3. Therefore, _Mp_ = 1 + _M_ +, _Mu_ = _d_ + _M_ + and _DOFc_ = ( _Mp_ + _Mu_ ) _· Nc_, where _Nc_ is the number of coarse grid nodes. For two - dimensional problem, we have _Nc_ = 121 and _DOFf_ = 30603. For three dimensional problem, we have _Nc_ = 216 and _DOFf_ = 37044. We can obtain good multiscale solution when we take sufficient number of multiscale basis functions for pressure and for displacements. For _M_ + = 2, we have near 1 _−_ 3% of errors in two - dimensional and three-dimensional problems for all cases. In Case 3 of heterogeneous permeability field, we have 0 _._ 7 % of pressure error and 2 _._ 0 % of displacement error in two-dimensional problems with 3 multiscale basis functions for pressure and 4 multiscale basis functions for displacements _M_ + = 2. In this case, we reduce size of the system from _DOFf_ = 30603 to _DOFc_ = 847. For three - dimensional problem, we have 1 _._ 7 % of pressure error and 3 _._ 3 % of displacement error with 3 basis functions for pressure and 5 basis functions for displacements ( _M_ + = 2). We reduce size of the system from _DOFf_ = 37044 to _DOFc_ = 1728. In Table 3, we present solution time for the coarse grid and fine grid solvers for Case 3. Solution time of the fine grid solver is 6 _._ 2 second for two - dimensional problem ( _DOFf_ = 30603) and 158 _._ 7 second for the three-dimensional problem ( _DOFf_ = 37044). When we use a multiscale method for the solution with _M_ + = 2, we solve two - dimensional problem by 0 _._ 8 seconds ( _DOFc_ = 847) and three-dimensional problem 18 <u>2D</u> _<u>M</u>_ <u>+</u> _<u>Mp</u>_ _<u>Mu</u>_ _<u>DOFc</u>_ _<u>ep</u>_ <u>(%)</u> _<u>eu</u>_ <u>(%)</u> <u>Case</u> <u>1</u> 0 1 2 363 7.532 6.413 1 2 3 605 5.737 4.669 2 3 4 847 2.396 2.793 3 4 5 1089 1.548 1.796 4 5 6 1331 1.102 1.300 6 7 8 1815 0.639 0.481 <u>8</u> <u>9</u> <u>10</u> <u>2299</u> <u>0.364</u> <u>0.272</u> <u>Case</u> <u>2</u> 0 1 2 363 2.142 2.953 1 2 3 605 1.219 1.847 2 3 4 847 0.703 1.430 3 4 5 1089 0.596 1.085 4 5 6 1331 0.380 0.708 6 7 8 1815 0.180 0.220 <u>8</u> <u>9</u> <u>10</u> <u>2299</u> <u>0.101</u> <u>0.146</u> <u>Case</u> <u>3</u> 0 1 2 363 4.635 6.847 1 2 3 605 2.397 4.294 2 3 4 847 0.842 2.596 3 4 5 1089 0.570 1.641 4 5 6 1331 0.379 1.109 6 7 8 1815 0.218 0.336 <u>8</u> <u>9</u> <u>10</u> <u>2299</u> <u>0.149</u> <u>0.224</u> <u>3D</u> _<u>M</u>_ <u>+</u> _<u>Mp</u>_ _<u>Mu</u>_ _<u>DOFc</u>_ _<u>ep</u>_ <u>(%)</u> _<u>eu</u>_ <u>(%)</u> <u>Case</u> <u>1</u> 0 1 3 864 4.369 5.477 1 2 4 1296 2.750 4.045 2 3 5 1728 1.707 3.530 3 4 6 2160 1.348 3.052 4 5 7 2592 0.906 2.691 6 7 9 3456 0.467 2.329 <u>8</u> <u>9</u> <u>11</u> <u>4320</u> <u>0.358</u> <u>1.962</u> <u>Case</u> <u>2</u> 0 1 3 864 6.000 3.653 1 2 4 1296 4.940 3.224 2 3 5 1728 3.585 2.731 3 4 6 2160 2.514 2.496 4 5 7 2592 1.805 2.327 6 7 9 3456 1.042 2.052 <u>8</u> <u>9</u> <u>11</u> <u>4320</u> <u>0.830</u> <u>1.694</u> <u>Case</u> <u>3</u> 0 1 3 864 3.430 4.520 1 2 4 1296 2.705 3.991 2 3 5 1728 1.613 3.197 3 4 6 2160 1.142 2.659 4 5 7 2592 0.812 2.544 6 7 9 3456 0.554 2.356 <u>8</u> <u>9</u> <u>11</u> <u>4320</u> <u>0.454</u> <u>2.062</u> Table 2: Numerical results for random permeability _k_ and elastic modulus _E_ . Case 1, 2 and 3 (from left to right). Type 2 multiscale basis functions, _Mp_ = 1 + _M_ +, _Mu_ = _d_ + _M_ + and _DOFc_ = ( _Mp_ + _Mu_ ) _· Nc_ . Left: two - dimensional problem, _d_ = 2 ( _Nc_ = 121 and _DOFf_ = 30603). Right: three - dimensional problem, _d_ = 3 ( _Nc_ = 216 and _DOFf_ = 37044) <u>2D</u> _<u>M</u>_ <u>+</u> _<u>Mp</u>_ _<u>Mu</u>_ _<u>DOFc</u>_ <u>Time</u> <u>(sec)</u> <u>fine</u> <u>grid</u> <u>30603</u> <u>6.211</u> 0 1 2 363 0.350 1 2 3 605 0.587 2 3 4 847 0.833 3 4 5 1089 1.171 4 5 6 1331 1.611 6 7 8 1815 2.767 <u>8</u> <u>9</u> <u>10</u> <u>2299</u> <u>4.569</u> <u>3D</u> _<u>M</u>_ <u>+</u> _<u>Mp</u>_ _<u>Mu</u>_ _<u>DOFc</u>_ <u>Time</u> <u>(sec)</u> <u>fine</u> <u>grid</u> <u>37044</u> <u>158.745</u> 0 1 3 864 2.525 1 2 4 1296 4.940 2 3 5 1728 9.633 3 4 6 2160 16.285 4 5 7 2592 20.495 6 7 9 3456 38.951 <u>8</u> <u>9</u> <u>11</u> <u>4320</u> <u>69.322</u> Table 3: Solution time for Case 3. Type 2 multiscale basis functions. Left: two - dimensional problem, _d_ = 2. Right: three - dimensional problem, _d_ = 3 by 9 _._ 6 seconds ( _DOFc_ = 1728). We see that a smaller number of basis functions give a coarse grid system with a smaller size and therefore solution time is faster. Here for the solution of the coarse and fine grid 19 systems, we used a direct solver (default solver in FEniCS [21]). Note that, the solution time doesn’t include a time of multiscale basis construction because they are constructed on the offline stage as precalculations. 5.2 Preconditioned MCMC using GMsFEM In this section, we present results for the Two-stage MCMC method. MCMC simulations on the fine grid (single-stage) are generally very computationally expensive because each proposal requires solving a forward coupled poroelasticity problem over a large time interval. In presented preconditioned MCMC simulations, we use inexpensive computations in the first stage. Preconditioning procedure is performed using 1. _MS_ multiscale solver based on GMSFEM, 2. _ML_ machine learning technique. Note that, the Preconditioning procedure should be inexpensive, but not necessarily very accurate. We start with a multiscale solver with a small number of multiscale basis functions. As we showed above, the size of the coarse grid system ( _DOFc_ ) depends on a number of multiscale basis functions. The multiscale basis functions are constructed only once on the offline stage, and we use them for all proposed permeability and elastic modulus without online recalculations. (a) 2D, _ep_ (%) (b) 3D, _ep_ (%) (c) 2D, _eu_ (%) (d) 3D, _eu_ (%) Figure 7: Multiscale method errors for 100 random realizations of heterogeneous filed for _M_ + = 0 _,_ 1 _,_ 2 _,_ 4 and 8. First row: pressure relative errors in %. Second row: displacement relative errors in %. Left: two dimensional problem. Right: three - dimensional problem. We present results for the proposed multiscale solver ( _MS_ ) for 100 random realizations of the heterogeneous fields, _θr_ . Relative errors for pressure and displacements are presented in Figure 7. In Figure 8, we plot _E_ ( _θ_ ) against _E_ <sup>_∗_</sup> ( _θ_ ) to demonstrate correlation between _E_ <sup>_∗_</sup> ( _θ_ ) and _E_ ( _θ_ ) for 100 realizations of random 20 (a) 2D (b) 3D Figure 8: Cross-plot between _E_ ( _θ_ ) (fine scale) and _E_ <sup>_∗_</sup> ( _θ_ ) (multiscale solver, _MS_ ) for _M_ + = 0 _,_ 1 _,_ 2 _,_ 4 and 8. For given observation data. (a) two - dimensional problem. (b) three - dimensional problem. fields. Here we use a relative difference between observation data and proposed solution for given _θ_ _E_ <sup>_∗_</sup> ( _θ_ ) = <sup>_<u>||F ∗</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>Fobs||</u>_</sup> <sup>2</sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>Fobs||</u>_</sup> <sup>2</sup> _,_ (26) _||Fobs||_ <sup>2</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>Fobs||</u>_</sup> <sup>2</sup> _,_ _E_ ( _θ_ ) = <sup>_<u>||F</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>Fobs||</u>_</sup> <sup>2</sup> _||Fobs||_ <sup>2</sup> _||Fobs||_ <sup>2</sup> where _F_ = _u_ ( _x, t_ ), _F_ <sup>_∗_</sup> = _u_ <sup>_ms_</sup> ( _x, t_ ) where _t_ = _Tmax_ (final time) and _x ∈_ _∂_ Ω _surf_ ( _∂_ Ω _surf_ is the top boundary of the domain). As observation data, we take solution that presented in Figure 13 and 14. We observe that if we take a sufficient number of multiscale basis, we can obtain a good correlation between these two characteristics. From this perspective we will use in our calculations _M_ + = 2 in MCMC algorithm which have _DOFc_ = 847 for 2D problem ( _Mp_ = 3 and _Mu_ = 4) and _DOFc_ = 1728 for 3D problem ( _Mp_ = 3 and _Mu_ = 5). Fine grid system size is _DOFf_ = 30603 for two-dimensional problem and _DOFf_ = 37044 for three-dimensional problem. The random heterogeneity is represented using Karhunen-Lo´eve expansion. In MCMC iterations, the heterogeneous porosity field is generated using _L_ = 200 basis functions ( _YL_ ( _x, θ_ )) with exponential covariance ( _lx_ = _ly_ = _lz_ = 0 _._ 2 and _σR_ <sup>2</sup> <sup>=</sup> <sup>2).</sup> <sup>Form</sup> <sup>of</sup> <sup>_φ_</sup> <sup>,</sup> <sup>_k_</sup> <sup>and</sup> <sup>_E_</sup> <sup>are</sup> <sup>presented</sup> <sup>in</sup> <sup>16,</sup> <sup>17</sup> and 18 with _a_ = 40, _b_ = 0 _._ 1. In numerical simulation, we pick a some realization of the random field _θref_ and use corresponded solution as observation data (see first columns of Figures 13 and 14). Next, we present results for MCMC algorithms with _σc_ <sup>2</sup> _c_ <sup>2</sup> <sup>=</sup> <sup>_β ·_</sup> <sup>_σ_</sup> _f_ <sup>2</sup> Next, we present results for MCMC algorithms with _σc_ <sup>2</sup> <sup>=</sup> <sup>_β ·_</sup> <sup>_σ_</sup> _f_ <sup>2.</sup> <sup>We</sup> <sup>test</sup> <sup>1000</sup> <sup>random</sup> <sup>fields</sup> <sup>proposals</sup> and use a random walk sampler for transitional probability distribution _q_ ( _θ|θn_ ) = _θn_ + _δ · r,_ where _r_ is a Gaussian random variable with zero mean and variance 1. We use relative difference between observation data and proposed solution form (26) with _F_ = _u_ ( _x, t_ ), _F_ <sup>_∗_</sup> = _u_ <sup>_ms_</sup> ( _x, t_ ) where _t_ = _Tmax_ (final time) and _x ∈_ _∂_ Ω _surf_ ( _∂_ Ω _surf_ is the top boundary of the domain). We consider the influence of the following parameters on the results and perform the following tests: _•_ Single-stage and two-stage MCMC method with _M_ + = 2 and 4 for 2D problem. _•_ Two-stage MCMC for three-dimensional test problem with _M_ + = 2. _•_ Influence of the _β_, _σf_ and _δ_ to the results of the two-stage MCMC method. In Figure 9, we present results for single-stage and two-stage MCMC method with _M_ + = 2 and 4. In the first row, we depict an accepted _uobs_ on the surface boundary, and on the second row, we present acceptance 21 (a) Single-stage MCMC (b) Two-stage MCMC, _M_ + = 2 (c) Two-stage MCMC, _M_ + = 4 Figure 9: Two - dimensional problem with _σf_ = 0 _._ 02. Random walk samples with _δ_ = 0 _._ 5. First row: accepted _uobs_ on surface boundary. Second row: _E_ <sup>_∗_</sup> ( _θ_ ) (green color) and _E_ ( _θ_ )(blue color) in each MCMC iteration. (a) Single-stage MCMC (34 accepted). (b) Two-stage MCMC with _β_ = 2 and _M_ + = 2 (31 accepted and 69 passed first stage). (b) Two-stage MCMC with _β_ = 2 and _M_ + = 4 (46 accepted and 68 passed first stage). Figure 10: Three - dimensional problem with _M_ + = 2. Two-stage MCMC with _σf_ = 0 _._ 02 and _β_ = 2. Random walk samples with _δ_ = 0 _._ 5. First row: accepted _uobs_ on surface boundary. Second row: _E_ <sup>_∗_</sup> ( _θ_ ) (green color) and _E_ ( _θ_ )(blue color) in each MCMC iteration. 29 accepted and 141 passed the first stage. errors. Results are presented for two - dimensional problem. In MCMC algorithm, we use a random walk sampler with _δ_ = 0 _._ 5 and set _σf_ = 0 _._ 02. We have 34 accepted fields in a single-stage method. In the two-stage MCMC with _M_ + = 2 we have 31 accepted and 69 passed first stage. For _M_ + = 4, we obtain 46 accepted and 68 passed first stage fields. In the first row of Figure 9, we depicted an accepted _uobs_ on the 22 (a) Two-stage MCMC, _σf_ = 0 _._ 01 (b) Two-stage MCMC, _σf_ = 0 _._ 04 (c) Two-stage MCMC, _σf_ = 0 _._ 06 Figure 11: Two - dimensional problem with _M_ + = 2. Two-stage MCMC with _β_ = 2 for different _σf_ = 0 _._ 01 _,_ 0 _._ 04 _,_ 0 _._ 06. Random walk samples with _δ_ = 0 _._ 5. First row: accepted _uobs_ on surface boundary. Second row: _E_ <sup>_∗_</sup> ( _θ_ ) (green color) and _E_ ( _θ_ )(blue color) in each MCMC iteration. (a) _σf_ = 0 _._ 01 (14 accepted and 50 passed first stage). (b) _σf_ = 0 _._ 04 (121 accepted and 212 passed first stage). (c) _σf_ = 0 _._ 06 (226 accepted and 336 passed first stage). (a) _σf_ (b) _β_ (c) _δ_ Figure 12: Number of accepted and number of passed first stage. Two - dimensional problem. Two-stage MCMC with _M_ + = 2. (a) _δ_ = 0 _._ 5, _σf_ = 0 _._ 02, _β_ = 1 _,_ 2 _,_ 4 _,_ 6 and 8. (b) _δ_ = 0 _._ 5, _β_ = 2, _σf_ = 0 _._ 01 _,_ 0 _._ 02 _,_ 0 _._ 04 and 0 _._ 06. (c) _β_ = 2, _σf_ = 0 _._ 02, _δ_ = 0 _,_ 25 _,_ 0 _._ 5 and 1 _._ 0. surface boundary, where with gradient coloring from yellow to red related to the number of accepted fields. We observe a convergence of the method from second row, where we depicted relative differences between observation data and the proposed solution. Here _E_ <sup>_∗_</sup> ( _θ_ ) is shown in green color for multiscale solver (fist stage) and _E_ ( _θ_ )is shown in blue color for _θ_ that passed the first stage and calculated using fine grid solver. In Figure 13, we present examples of accepted permeabilities with a reference solution that we used to calculate observation data (two-dimensional problem). 2D results are shown for two-stage MCMC algorithm with _σf_ = 0 _._ 02, _β_ = 2, _M_ + = 2 and random walk sampler with _δ_ = 0 _._ 5. On the first and second rows, 23 Figure 13: Reference solution and solutions for accepted random fields for two - dimensional problem (from left to right). Two-stage MCMC with _σf_ = 0 _._ 02, _β_ = 2 and _M_ + = 2. Random walk samples with _δ_ = 0 _._ 5. 31 accepted and 69 passed the first stage. First row: permeability, _k_ . Second row: elastic modulus, _E_ . Third row: pressure, _p_ . Fourth row: displacement, _um_ . we depict permeability and elastic modulus, _k_ and _E_ . Pressure and magnitude of the displacements are depicted in the third and fourth rows. In Figures 10 and 14, we present results for three-dimensional case. Results are presented for the two-stage MCMC algorithm with _σf_ = 0 _._ 02, _β_ = 2, _M_ + = 2 and random walk sampler with _δ_ = 0 _._ 5. For 2D and 3D results with the same parameters, we obtain: _•_ 2D: we have 31 accepted and 69 passed the first stage. _•_ 3D: we have 29 accepted and 141 passed the first stage. Numerical results for two-stage MCMC with different _σf_ = 0 _._ 01 _,_ 0 _._ 04 _,_ 0 _._ 06 are presented in Figure 11. We perform calculations for _β_ = 2 and random walk sampler with _δ_ = 0 _._ 5. In Figure 12, we show a histogram with number of accepted and number of passed first stage for two - dimensional problem with _M_ + = 2 and _δ_ = 0 _._ 5. In the first picture in Figure 12, we consider _δ_ = 0 _._ 5, _β_ = 2, _σf_ = 0 _._ 01 _,_ 0 _._ 02 _,_ 0 _._ 04 and 0 _._ 06. We have _•_ _σf_ = 0 _._ 01: 14 accepted and 50 passed first stage. _•_ _σf_ = 0 _._ 02: 31 accepted and 69 passed first stage. _•_ _σf_ = 0 _._ 04: 121 accepted and 212 passed first stage. 24 Figure 14: Reference solution and solutions for accepted random fields for three - dimensional problem (from left to right). Two-stage MCMC with _σf_ = 0 _._ 02, _β_ = 2 and _M_ + = 2. Random walk samples with _δ_ = 0 _._ 5. 29 accepted and 141 passed the first stage. First row: permeability, _k_ . Second row: elastic modulus, _E_ . Third row: pressure, _p_ . Fourth row: displacement, _um_ . _•_ _σf_ = 0 _._ 06: 226 accepted and 336 passed first stage. In the second picture, we show results for _σc_ = _β · σf_ _,_ with _σf_ = 0 _._ 02, _β_ = 1 _,_ 2 _,_ 4 _,_ 6 and 8. We obtain following results _•_ _β_ = 1: 23 accepted and 54 passed first stage. _•_ _β_ = 2: 31 accepted and 69 passed first stage. _•_ _β_ = 4: 35 accepted and 103 passed first stage. _•_ _β_ = 6: 29 accepted and 122 passed first stage. _•_ _β_ = 8: 29 accepted and 129 passed first stage. In third picture in Figure 12, we present results for _β_ = 2, _σf_ = 0 _._ 02, _δ_ = 0 _,_ 25 _,_ 0 _._ 5 and 1 _._ 0. We obtain _•_ _δ_ = 0 _._ 25: 123 accepted and 216 passed first stage. _•_ _δ_ = 0 _._ 5: 31 accepted and 69 passed first stage. 25 _•_ _δ_ = 1 _._ 0: 17 accepted and 23 passed first stage. We see that larger _β_ leads to larger acceptance on the first stage. We observe that _β_ = 2 is better to obtain an optimal number of the accepted on the first stage vs the number of the accepted on the fine grid. By increasing the parameter _σf_, we increase the number of the accepted fields by reducing requirements between proposed and observation data differences. The smaller parameter _δ_ from random walk leads to the larger number of accepted fields, but larger _δ_ leads to the larger jump in random field generator. 5.3 Preconditioned MCMC using Machine Learning Finally, we consider the preconditioned MCMC method using a machine learning technique ( _ML_ ). We construct the neural networks for the prediction of the observable data (displacements on the surface boundary). Neural networks are constructed for each direction of displacements separately. <u>MSE</u> <u>RMSE</u> <u>(%)</u> <u>MAE</u> <u>(%)</u> <u>2D</u> _NNx_ 0.0007 1.8878 1.6719 _<u>NNy</u>_ <u>0.0002</u> <u>1.3864</u> <u>1.2660</u> <u>3D</u> _NNx_ 0.0001 1.1049 0.8978 _NNy_ 0.0003 1.7468 1.5461 _<u>NNz</u>_ <u>0.0003</u> <u>1.7343</u> <u>1.4264</u> Table 4: Learning performance of a machine learning algorithms for 2D and 3D formulations. The architectures of the neural networks are presented in Figures 15 and 16 for 2D and 3D problems, respectively. In training process, we perform 3000 epochs using Adam optimizer with learning rate _ϵ_ = 0 _._ 001. For accelerating the training process of the CNN, we use GPU (GTX 1800 Ti). We use 3 <sup>_d_</sup> convolutions and 2 <sup>_d_</sup> maxpooling layers with RELU activation for _d_ = 2 _,_ 3. We have several layers of convolutions with several final fully connected layers. We use dropout with rate 10 % in order to prevent over-fitting. As a loss function, we use a mean square error (MSE). Convergence of the loss function presented in Figures 15 and 16, where we plot the MSE loss function vs epoch number. For error calculation, we use mean square errors, relative mean absolute and relative root mean square errors - <u>�</u> _<u>i</u>_ <sup>_<u>|Qi −</u>_</sup> <sup>_<u>Q</u>_</sup> <sup>˜</sup> <sup>_<u>i|</u>_</sup> <sup>2</sup> <u>�</u> _,_ _MAE_ = _i_ <sup>_|Qi|_</sup> <sup>2</sup> <u>�</u> _MSE_ = _i_ _|Qi −_ _Q_ <sup>˜</sup> _i|_ <sup>2</sup> _,_ _RMSE_ = _<u>i</u>_ <sup>_<u>|Qi −</u>_</sup> <sup>_<u>Q</u>_</sup> <sup>˜</sup> <sup>_<u>i|</u>_</sup> <u>�</u> _,_ _i_ <sup>_|Qi|_</sup> where _Qi_ and _Q_ <sup>˜</sup> _i_ denotes reference and predicted values for sample _Xi_ . Learning performance for neural networks are presented in Tables 4 for two and three - dimensional problems. We observe good convergence of the relative errors with _≈_ 1% of RMSE. In Figure 18, we present parity plots comparing reference values against predicted using trained neural networks for Case 1, 2 and 3. Cross plot demonstrate correlation between _E_ <sup>_∗_</sup> ( _θ_ ) and _E_ ( _θ_ ) for 100 realizations of random fields for three cases in 2D and 3D formulations. In Figure 17, we present a relative errors for displacements on the top boundary. We compare prediction using reference fine grid values of the displacements. We observe sufficiently good errors for predicted values, where we have less than 5% of errors for 2D and less than 10% of errors for 3D. Later, we will discuss the computational efficiency of the machine learning algorithms compared with direct forward calculations and preconditioning using multiscale solver. Next, we consider numerical results for the two-stage MCMC method with machine learning technique ( _ML_ ) and multiscale solver ( _MS_ ). In Figures 19 and 20, we present results two-dimensional problem for Case 1, 2 and 3 (see Section 5.1). In the first row, we depict an accepted _uobs_ on surface boundary and on the 26 (a) architecture of NN (b) loss function vs epoch Figure 15: Two neural networks for the 2D problem. (a) the architecture of neural networks. (b) learning performance, loss function vs epoch. _NNx_ for _x_ -displacement with RMSE = 1.887 %, and _NNy_ for _y_ displacement with RMSE = 1.386 % (from left to right). second row, we present an acceptence errors. In MCMC algorithm, we use a random walk sampler with _δ_ = 0 _._ 5. We use _σf_ = 0 _._ 02 and set _σc_ = 2 _· σf_ . For _MS_ preconditioning, we have _•_ Case 1 with 47 accepted and 105 passed first stage. _•_ Case 2 with 27 accepted and 62 passed first stage. _•_ Case 3 with 25 accepted and 72 passed first stage. For _ML_ preconditioning, we have _•_ Case 1 with 28 accepted and 132 passed first stage. 27 (a) architecture of NN (b) loss function vs epoch Figure 16: Three neural networks for the 3D problem. (a) the architecture of neural networks. (b) learning performance, loss function vs epoch. _NNx_ for _x_ -displacement with RMSE = 1.104 %, _NNy_ for _y_ displacement with RMSE = 1.746 %, and _NNz_ for _z_ -displacement with RMSE = 1.734 % (from left to right). (a) 2D (b) 3D Figure 17: Multiscale method errors for 100 random realizations of heterogeneous filed. Prediction of the machine learning algorithm and multiscale solver with _M_ + = 2 _,_ 4. Relative errors in % for displacements on the top boundary. 28 (a) Case 1 for 2D (b) Case 2 for 2D (c) Case 3 for 2D (d) Case 1 for 3D (e) Case 2 for 3D (f) Case 3 for 3D Figure 18: Cross-plot between _E_ ( _θ_ ) (fine scale) and _E_ <sup>_∗_</sup> ( _θ_ ). Prediction of the machine learning algorithm and multiscale solver with _M_ + = 2 _,_ 4. Case 1, 2 and 3 observation data (from left to right). First row: two-dimensional problem. Second row: three-dimensional problem. _•_ Case 2 with 18 accepted and 81 passed first stage. _•_ Case 3 with 14 accepted and 45 passed first stage. The results for three-dimensional problem are presented in Figures 22 and 23 for Case 1, 2 and 3 (see Section 5.1). For _MS_ preconditioning, we have _•_ Case 1 with 16 accepted and 67 passed first stage. _•_ Case 2 with 30 accepted and 71 passed first stage. _•_ Case 3 with 40 accepted and 124 passed first stage. For _ML_ preconditioning, we have _•_ Case 1 with 17 accepted and 89 passed first stage. _•_ Case 2 with 26 accepted and 63 passed first stage. _•_ Case 3 with 39 accepted and 159 passed first stage. In Figures 21 and 24, we depict an examples of accepted porosities with a reference porosity that we used to calculate observation data. Numerical results are shown for two-stage MCMC algorithm with _ML_ preconditioning for Case 1,2 and 3 in 2D and 3D formulations. 29 (a) Case 1 for 2D ( _MS_ ) (b) Case 3 for 2D ( _MS_ ) (c) Case 2 for 2D ( _MS_ ) Figure 19: Two - dimensional problem with _MS_ preconditioning. Two-stage MCMC with _σf_ = 0 _._ 02 and _β_ = 2. First row: accepted _uobs_ on surface boundary. Second row: _E_ <sup>_∗_</sup> ( _θ_ ) (green color) and _E_ ( _θ_ )(blue color) in each MCMC iteration. (a) Case 1. (b) Case 2. (c) Case 3. (a) Case 1 for 2D ( _ML_ ) (b) Case 3 for 2D ( _ML_ ) (c) Case 2 for 2D ( _ML_ ) Figure 20: Two - dimensional problem with _ML_ preconditioning. Two-stage MCMC with _σf_ = 0 _._ 02 and _β_ = 2. First row: accepted _uobs_ on surface boundary. Second row: _E_ <sup>_∗_</sup> ( _θ_ ) (green color) and _E_ ( _θ_ )(blue color) in each MCMC iteration. (a) Case 1. (b) Case 2. (c) Case 3. 30 (a) Case 1 for 2D ( _ML_ ) (b) Case 2 for 2D ( _ML_ ) (c) Case 3 for 2D ( _ML_ ) Figure 21: Reference field and accepted random fields for three - dimensional problem (from left to right). Two - dimensional problem with _ML_ preconditioning. Two-stage MCMC with _σf_ = 0 _._ 02 and _β_ = 2. (a) _φ_ for Case 1. (b) _φ_ for Case 2. (c) _φ_ for Case 3. We observe that we can obtain a good acceptance rate with very cheap machine learning-based prediction. The acceptance rate is _Naccepted/Nfine_, _Naccepted_ and _Nfine_ are the number of accepted fields and number of expensive fine grid calculations (passed the first stage). For the fast construction of the dataset that used for training, we used a multiscale solver with _M_ + = 2. Finally, we discuss the advantage of the proposed algorithm. In the single-stage MCMC method with _Niter_ iterations, time of calculations _TF_ is equal to number of iterations multiply to time of solution of the fine grid system _TF_ = _Niter · tfine,_ where _tfine_ is the time of fine grid system solution. Here for 2D system with _DOFf_ = 30603, we have _tfine_ = 6 _._ 2 seconds and _tfine_ = 158 _._ 7 seconds for 3D problem with _DOFf_ = 37044 (see Table 3). 31 (a) Case 1 for 3D ( _MS_ ) (b) Case 3 for 3D ( _MS_ ) (c) Case 2 for 3D ( _MS_ ) Figure 22: Three - dimensional problem with _MS_ preconditioning. Two-stage MCMC with _σf_ = 0 _._ 02 and _β_ = 2. First row: accepted _uobs_ on surface boundary. Second row: _E_ <sup>_∗_</sup> ( _θ_ ) (green color) and _E_ ( _θ_ )(blue color) in each MCMC iteration. (a) Case 1. (b) Case 2. (c) Case 3. (a) Case 1 for 3D ( _ML_ ) (b) Case 3 for 3D ( _ML_ ) (c) Case 2 for 3D ( _ML_ ) Figure 23: Three - dimensional problem with _ML_ preconditioning. Two-stage MCMC with _σf_ = 0 _._ 02 and _β_ = 2. First row: accepted _uobs_ on surface boundary. Second row: _E_ <sup>_∗_</sup> ( _θ_ ) (green color) and _E_ ( _θ_ )(blue color) in each MCMC iteration. (a) Case 1. (b) Case 2. (c) Case 3. 32 (a) Case 1 for 3D ( _ML_ ) (b) Case 2 for 3D ( _ML_ ) (c) Case 3 for 3D ( _ML_ ) Figure 24: Reference field and accepted random fields for three - dimensional problem (from left to right). Three - dimensional problem with _ML_ preconditioning. Two-stage MCMC with _σf_ = 0 _._ 02 and _β_ = 2. (a) _φ_ for Case 1. (b) _φ_ for Case 2. (c) _φ_ for Case 3. For _MS_ preconditioning of the MCMC method, we have _TMS_ = _Niter · tms_ + _Nfine · tfine,_ where _tms_ is the time of coarse grid system solution using GMsFEM and _Nfine_ is the number of accepted on the first stage. For _M_ + = 2, we have _tms_ = 0 _._ 83 seconds for 2D problem with _DOFc_ = 847 and _tms_ = 9 _._ 6 seconds for 3D problem with _DOFc_ = 1728 (see Table 3). In preconditioned MCMC method, we obtain that _Nfine_ _<<_ _Niter_, and therefore, we have a huge reduction in the solution time because the presented multiscale method provides a huge reduction of the system size, but it still takes some time for the solution. For further reduction of the time, we proposed a machine learning-based technique with a super quick prediction. For _ML_ preconditioning of the MCMC method, we have _TML_ = _Niter · tml_ + _Nfine · tfine,_ 33 where _tml_ is the time of coarse grid system solution using trained neural networks. Becuase prediction time is very fast i.e. _tml_ _<<_ 1 second, therefore _TML_ = _Nfine · tfine._ ### 6 Conclusion Simulation of the poroelasticity is difficult due to the complex heterogeneities and uncertainty. In this work, we considered a Two-stage Markov Chain Monte Carlo method for geomechanical subsidence. We presented two techniques for preconditioning: (MS) multiscale method for model order reduction and (ML) machine learning technique. Numerical results are presented for two- and three-dimensional models to show the efficiency of the method as an expedited MCMC sampling method. Codes used in this manuscript are publicly available on Bitbucket at https://bitbucket.org/vmasha/msmcmc. ### References [1] Mart´ın Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: a system for large-scale machine learning. In _OSDI_, volume 16, pages 265–283, 2016. [2] Robert Altmann, Eric Chung, Roland Maier, Daniel Peterseim, and Sai-Mang Pun. Computational multiscale methods for linear heterogeneous poroelasticity. _Journal_ _of_ _Computational_ _Mathematics_, 38(1):41–57, 2020. [3] Maurice A Biot. General theory of three-dimensional consolidation. _Journal_ _of_ _applied_ _physics_, 12(2):155–164, 1941. [4] Donald L Brown and Maria Vasilyeva. A generalized multiscale finite element method for poroelasticity problems i: linear problems. _Journal_ _of_ _Computational_ _and_ _Applied_ _Mathematics_, 294:372–388, 2016. [5] Donald L Brown and Maria Vasilyeva. A generalized multiscale finite element method for poroelasticity problems ii: Nonlinear coupling. _Journal_ _of_ _Computational_ _and_ _Applied_ _Mathematics_, 297:132–146, 2016. [6] Roland B¨urgmann, Paul A Rosen, and Eric J Fielding. Synthetic aperture radar interferometry to measure earth’s surface topography and its deformation. _Annual_ _review_ _of_ _earth_ _and_ _planetary_ _sciences_, 28(1):169–209, 2000. [7] Nicola Castelletto, Sergey Klevtsov, Hadi Hajibeygi, and Hamdi A Tchelepi. Multiscale two-stage solver for biot’s poroelasticity equations in subsurface media. _Computational Geosciences_, 23(2):207–224, 2019. [8] Siddhartha Chib and Edward Greenberg. Understanding the metropolis-hastings algorithm. _The_ _amer-_ _ican_ _statistician_, 49(4):327–335, 1995. [9] Fran¸cois Chollet et al. Keras: Deep learning library for theano and tensorflow. _URL:_ _https://keras._ _io/_ . [10] Yalchin Efendiev, Akhil Datta-Gupta, Victor Ginting, Xiang Ma, and Bani Mallick. An efficient two stage markov chain monte carlo method for dynamic data integration. _Water_ _Resources_ _Research_, 41(12), 2005. [11] Yalchin Efendiev, Thomas Hou, and Wuan Luo. Preconditioning markov chain monte carlo simulations using coarse-scale models. _SIAM_ _Journal_ _on_ _Scientific_ _Computing_, 28(2):776–803, 2006. 34 [12] Yalchin Efendiev and Thomas Y Hou. _Multiscale_ _finite_ _element_ _methods:_ _theory_ _and_ _applications_, volume 4. Springer Science & Business Media, 2009. [13] Geir Evensen. The ensemble kalman filter: Theoretical formulation and practical implementation. _Ocean_ _dynamics_, 53(4):343–367, 2003. [14] Shubin Fu, Robert Altmann, Eric T Chung, Roland Maier, Daniel Peterseim, and Sai-Mang Pun. Computational multiscale methods for linear poroelasticity with high contrast. _Journal of Computational_ _Physics_, 395:286–297, 2019. [15] Victor Ginting, Felipe Pereira, Michael Presho, and Shaochang Wo. Application of the two-stage markov chain monte carlo method for characterization of fractured reservoirs using a surrogate flow model. _Computational_ _Geosciences_, 15(4):691, 2011. [16] Ramon F Hanssen. _Radar_ _interferometry:_ _data_ _interpretation_ _and_ _error_ _analysis_, volume 2. Springer Science & Business Media, 2001. [17] Jiachuan He, Steven A Mattis, Troy D Butler, and Clint N Dawson. Data-driven uncertainty quan tification for predictive flow and transport modeling using support vector machines. _Computational_ _Geosciences_, 23(4):631–645, 2019. [18] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In _Advances_ _in_ _neural_ _information_ _processing_ _systems_, pages 1097–1105, 2012. [19] Prashant Kumar, Carmen Rodrigo, Francisco J Gaspar, and Cornelis W Oosterlee. A parametric acceleration of multilevel monte carlo convergence for nonlinear variably saturated flow. _Computational_ _Geosciences_, 24(1):311–331, 2020. [20] Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. _nature_, 521(7553):436, 2015. [21] Anders Logg, Kent-Andre Mardal, and Garth Wells. _Automated_ _solution_ _of_ _differential_ _equations_ _by_ _the_ _finite_ _element_ _method:_ _The_ _FEniCS_ _book_, volume 84. Springer Science & Business Media, 2012. [22] Xianlin Ma, Mishal Al-Harbi, Akhil Datta-Gupta, Yalchin Efendiev, et al. An efficient two-stage sampling method for uncertainty quantification in history matching geological models. _SPE_ _Journal_, 13(01):77–87, 2008. [23] Didier Massonnet and Kurt L Feigl. Radar interferometry and its application to changes in the earth’s surface. _Reviews_ _of_ _geophysics_, 36(4):441–500, 1998. [24] Andro Mikeli´c and Mary F Wheeler. Convergence of iterative coupling for coupled flow and geomechan ics. _Computational_ _Geosciences_, 17(3):455–461, 2013. [25] Susan E Minkoff, C Mike Stone, Steve Bryant, Malgorzata Peszynska, and Mary F Wheeler. Coupled fluid flow and geomechanical deformation modeling. _Journal_ _of_ _Petroleum_ _Science_ _and_ _Engineering_, 38(1-2):37–56, 2003. [26] RF Mitchell. A mechanical model for permafrost thaw subsidence. 1977. [27] Menel Rahrah and Fred Vermolen. A moving finite element framework for fast infiltration in nonlinear poroelastic media. _Computational_ _Geosciences:_ _modeling,_ _simulation_ _and_ _data_ _analysis_, 2020. [28] Alessio Rucci, DW Vasco, and Fabrizio Novali. Monitoring the geologic storage of carbon dioxide using multicomponent sar interferometry. _Geophysical_ _Journal_ _International_, 193(1):197–208, 2013. [29] Colin M Sayers and Peter MTM Schutjens. An introduction to reservoir geomechanics. _The_ _Leading_ _Edge_, 26(5):597–601, 2007. 35 [30] Antonin Settari, FM Mourits, et al. A coupled reservoir and geomechanical simulation system. _Spe_ _Journal_, 3(03):219–226, 1998. [31] Antonin Settari, Dale A Walters, et al. Advances in coupled geomechanical and reservoir modeling with applications to reservoir compaction. _Spe_ _Journal_, 6(03):334–342, 2001. [32] Irina Sokolova, Muhammad Gusti Bastisya, and Hadi Hajibeygi. Multiscale finite volume method for finite-volume-based simulation of poroelasticity. _Journal_ _of_ _Computational_ _Physics_, 379:309–324, 2019. [33] Aleksei Tyrylgin, Maria Vasilyeva, Denis Spiridonov, and Eric T Chung. Generalized multiscale finite element method for the poroelasticity problem in multicontinuum media. _Journal_ _of_ _Computational_ _and_ _Applied_ _Mathematics_, 374:112783, 2020. [34] DW Vasco, Alessio Rucci, Alessandro Ferretti, Fabrizio Novali, RC Bissell, PS Ringrose, AS Mathieson, and IW Wright. Satellite-based measurements of surface deformation reveal fluid flow associated with the geological storage of carbon dioxide. _Geophysical_ _Research_ _Letters_, 37(3), 2010. [35] Maria Vasilyeva, Eric T Chung, Yalchin Efendiev, and Jihoon Kim. Constrained energy minimization based upscaling for coupled flow and mechanics. _Journal_ _of_ _Computational_ _Physics_, 376:660–674, 2019. [36] Maria Vasilyeva, Wing T Leung, Eric T Chung, Yalchin Efendiev, and Mary Wheeler. Learning macro scopic parameters in nonlinear multiscale simulations using nonlocal multicontinua upscaling techniques. _Journal_ _of_ _Computational_ _Physics_, page 109323, 2020. [37] Maria Vasilyeva and Aleksey Tyrylgin. Machine learning for accelerating effective property prediction for poroelasticity problem in stochastic media. _arXiv_ _preprint_ _arXiv:1810.01586_, 2018. [38] Daegil Yang. _A_ _Simulator_ _with_ _numerical_ _upscaling_ _for_ _the_ _analysis_ _of_ _coupled_ _multiphase_ _flow_ _and_ _geomechanics_ _in_ _heterogeneous_ _and_ _deformable_ _porous_ _and_ _fractured_ _media_ . PhD thesis, 2013. [39] Jichao Yin, Han-Young Park, Akhil Datta-Gupta, Michael J King, and Manoj K Choudhary. A hierar chical streamline-assisted history matching approach with global and local parameter updates. _Journal_ _of_ _Petroleum_ _Science_ _and_ _Engineering_, 80(1):116–130, 2011. [40] Mark D Zoback. _Reservoir_ _geomechanics_ . Cambridge University Press, 2010. 36

섹션 본문 232문단 · 50,905자

(제목 없음)

1In this paper, we consider the numerical solution of the poroelasticity problem with stochastic properties.We present a Two-stage Markov Chain Monte Carlo method for geomechanical subsidence.In this work, we study two techniques of preconditioning: (MS) multiscale method for model order reduction and (ML) machine learning technique.The purpose of preconditioning is the fast sampling, where a new proposal is first testes by a cheap multiscale solver or using fast prediction of the neural network and the full fine grid computations will be conducted only if the proposal passes the first step.To construct a reduced order model, we use the Generalized Multiscale Finite Element Method and present construction of the multiscale basis functions for pressure and displacements in stochastic fields.In order to construct a machine learning based preconditioning, we generate a dataset using a multiscale solver and use it to train neural networks.The Karhunen-Loéve expansion is used to represent the realization of the stochastic field.Numerical results are presented for two-and three-dimensional model examples.

Introduction

2Modelling geomechanical problems has important implications on the understanding of many of the physical processes.For example, in areas such as environmental engineering with modelling permafrost compaction and subsidence [26], and the oil and gas industry for reservoir geomechanics to increase production and overall reservoir life [29,40].There are many challenges in simulating these problems.One challenging being the length scales involved.There is a high variability in material parameters such as permeability and porosity for flow and Young's modulus in the case of mechanical properties.Further compounding the problem is lack of knowledge of these parameters due to subsurface depth.This uncertainty may arise from under resolution from seismic data or, in the case of resistivity measurements with electromagnetic sensors, unclear physical matching of properties to data.

3As noted, the computational challenge is often two fold.First, heterogeneity of subsurface properties need to be accurately accounted for in the geomechanical model.In turn, this requires high resolution with adding many degrees of freedom that can be computationally expensive.Second is the uncertainty in the subsurface properties such as permeability and elastic parameters.However, in today's "Big-Data" world, often a plethora of information is available to help characterize the subsurface.For example, in reservoir engineering there is extensive logs on production data such as oil-cut of produced wells.In addition, other metrics such as bottom hole pressure and time of flight have been extensively used in the history matching literature to integrate data into the subsurface models [22,39].In the areas of environmental science and engineering, near-surface resistivity measurements are often available to obtain constraints on subsurface moisture content reflit.

4There are various techniques to integrate data into subsurface models.The literature is quite extensive and various uncertainty quantification methodologies exist and have various advantages and disadvantages.Various data assimilations and variants are often used to integrate dynamic data information constantly into models.This is particularly useful for weather forecast modelling as well as geophysical problems.In this work, we will consider a Bayesian framework of updating a prior probability distribution with information to obtain a data-integrated posterior.It is well known that the resulting problems are high-dimensional and suffer from the curse of dimensionality.To circumvent some of this difficulty Monte-Carlo based techniques have been proposed.For example, a popular and useful technique is the Ensemble Kalman Filter (EnKF) [13] to integrate data into subsurface models.In this work, however, we consider a Markov-Chain Monte-Carlo method (MCMC) based on the classical Metropolis-Hastings sampling algorithm [8].This is an effective tool to efficiently sample from an unknown posterior distribution that is conditioned to the data.However, the MCMC algorithms suffer from the fact that many simulations must be computed [17,19].This is again tied to the multiscale and high-contrast nature of the material properties as direct numerical simulations must fully resolve these scales.Moreover, the acceptance rate of proposed subsurface properties in the Metropolis-Hastings algorithm is known to be very low.

5With the availability surface sensors and satellite observation data (InSAR) [23], it is now possible to better characterize the geomechanical picture of the subsurface based on this data.This has proven particularly useful in the context of monitoring large scale CO2 sequestration projects [34,28].There are various subsurface mechanical models that one can consider, however, in this work we will work with a poroelastic earth model.The mathematical structure of the poroelasticity models are coupled equations for pressure and displacements known as Biot models [3].Poroelastic models of this type have been explored in the petroleum engineering literature in the context of geomechanics for some time [31,30,24,25,27].An interesting surface observation application such as permafrost modelling would require thermal and partially saturated moisture considerations, but we leave this to future work.

6As mentioned prior, the MCMC algorithm suffer from large number of simulation runs and low acceptance rates.A useful technique to expedite this procedure is preconditioning the Metropolis-Hasting algorithm in a two-stage (or multi-stage) procedure utilizing coarse-scale or upscaled models [10].This is accomplished by using the coarser-scale simulation as a prior filtering stage in the accept-rejection procedure.There are many effective multiscale frameworks that have been developed in recent years for the poroelasticity problem [7,32,2,33,14,35].We will use the Generalized Multiscale Finite Element Method (GMsFEM) framework developed for poroelasticty in [4,5], which is a generalization of the multiscale finite element method to build our course-scale models [12].Utilizing GMsFEMs for this application has also been useful in Multi-Level MCMC for elliptic problems with high-contrast [15].

7The GMsFEM has the advantage of being able to capture small scale features from the heterogeneities into coarse-grid basis functions and offline spaces, as well as having a unified computational grids for both mechanics and flow solves.The offline multiscale basis construction may proceed in both fluid and mechanics in parallel and both constructions are comparable.First a coarse-grid is generated and in each grid block a local static problem with varying boundary conditions is solved to construct the snapshot spaces.We then perform a dimension reduction of the snapshot space by solving auxiliary eigenvalue problems.Taking the corresponding smallest eigenpairs, and multiplying by a multiscale partition of unity we are able to construct our offline basis.In this greatly reduced dimension offline basis, the online solutions may be calculated for pressure and displacements for any viable boundary condition or forcing.Given a set or material properties such as permeability a set of standard MsFEM basis functions must be computed, however, utilizing the GMsFEM's ability to handle parameters (as is used in nonlinear GMsFEM) as well as scales we are able to compute a single set of enriched basis functions for many possible realizations of physical parameters.

8For further reduction of the computational time of the first stage in the two-stage MCMC method, we present a machine learning technique [36,37].The machine learning is used to quickly predict displacements for the estimation of the proposed fields.We generate a dataset using a multiscale solver and use it to train neural networks and learn dependencies between heterogeneous properties and displacements in each direction on the top boundary.As soon as neural networks are trained on the dataset, fast calculations can be performed as preconditioning of the MCMC method.We use a convolutional neural network and GPU training process to construct a machine learning algorithm [20,18].The work is organized as follows.In Section 2, we provide the mathematical background of the geomechanical subsidence problem.We introduce the Biot type model and highlight where the heterogeneity primarily occurs.In Section 3, we discuss the fine-scale and GMsFEM (coarse-scale) solution of the geomechanical problem.We utilize the nonlinear GMsFEM for poroelasticity developed in [4], whereby we are able to handle parametrization.In Section 4 we introduce the broad concepts of Bayesian uncertainty quantification.We discuss the parametrization of the randomness via the Karhunen-Loeve expansion so that when we search in the MCMC procedure the dimension of the space is reduced.We outline the single and two-stage Metropolis-Hastings algorithms used in the accept-reject procedure to sample from the "data-integrated" posterior distribution.In Section 5, we present a numerical algorithm based on two-and three-dimensional synthetic data at the surface to show the efficiency of the method as an expedited MCMC sampling method.

Problem Formulation

9We start with the description of the general geomechanical model that we use in our simulations.We keep the discussion very general and abstract, but ultimately the idea is to have one surface boundary that has open surface boundary conditions, and a truncated in situ ground that has fixed motion and is in physical reality connected to a much larger (functionally infinite) domain.

10We denote computational domain Ω ⊂ R d , d = 2, 3, to be a bounded sufficiently smooth (Lipschitz) region.We consider linear poroelasticity problem, with random or uncertain coefficients.That we may view as parameters.We wish to find a pressure p and displacements u satisfying the following Biot effective stress poroelasticity law

11where M is the Biot modulus and α is the Biot-Willis fluid-solid coupling coefficient.These terms are lower order derivatives, so for simplicity we will suppose that these are constants and not random.Body forces, such as gravity, are neglected without loss of generality.

12Here we suppose that the stress tensor σ and flux q depend on both space x and a large dimensional random parameter θ

13where ε(u) = (grad u + grad u T )/2, ν is the fluid viscosity, k(x, θ) is the permeability, µ(x, θ), λ(x, θ) are Lamé coefficients, I is the identity tensor.

14For Lamé coefficients λ and µ, we have following relations

15,

16where E(x, θ) is the random spatially varying elastic modulus and η is a constant Poisson's ratio.One could choose to vary both, but for this work we consider a varying elastic modulus.Thus, the coefficients k(x, θ), µ(x, θ) and λ(x, θ) may be highly variable and contain randomness or uncertainty.We denote the initial condition for pressure

17In general, we suppose the following Neumann and Robyn boundary conditions on each portion

18where n is the unit normal to the boundary.

19Here the primary sources of the heterogeneity and uncertainty in the physical properties are from mechanical properties related to E(x, θ) and fluid flow properties related to k(x, θ).

20To solve (1), we use a standard finite element method and implicit time integration.We have following variational formulation: find (u, p)

21where

22, τ is the time step, ǔ and p are the solutions from previous time layer.

23Here for bilinear and linear forms we have

24Let T h be a fine grid partition of the computational domain Ω into finite elements and

25where φ i and ψ i are the linear basis functions defined on T h .Therefore, we have following matrix form on the fine grid

26where

Coarse-Scale Discretization

27To construct a reduced order model on the coarse grid, we use a Generalized Multiscale Finite Element Method (GMsFEM).We construct an offline multiscale space for pressure and displacements using some number of random coefficients.Therefore constructed basis functions can be used for any input parameters k(x, θ) and E(x, θ).

28Let T H be a standard conforming partition of the computational domain Ω into finite elements (Figure 1).We refer to this partition as the coarse-grid and assume that each coarse element is partitioned into a

29where K j is the coarse cell and N c is the number of coarse nodes.

30The main idea for solution problem in the stochastic media is to precompute multiscale basis functions using a number of permeability and elastic modulus realizations and use them for the making inexpensive coarse grid calculations.

Multiscale basis functions for pressure

31In the offline computation, we first construct a snapshot space.Construction involves solving the local problem for various choices of input parameters and various boundary conditions.For each fixed parameter θ r (r = 1, ..., N r ), we propose a snapshot space generated by harmonic extensions of b(θ r ; p, q) b(θ r ; ψ ωi,snap r,j

32where g j (x) = δ j,k , ∀k ∈ J h (ω i ) (J h (ω i ) denotes the fine-grid boundary node on ∂ω i .We collect all solutions as a snapshot space in the local domain ω i to define local snapshot space

33where N ∂ωi is the number of the fine-grid boundary nodes on ∂ω i .

34We reorder the snapshot functions using a single index to create the matrix

35where M p,snap = N ∂ωi N r denotes the total number of functions to keep in the snapshot construction.

36To construct the offline space Q ωi,off , we perform a dimension reduction of the space of snapshots by using an auxiliary spectral decomposition.More precisely, we solve the eigenvalue problem in the space of snapshots:

37where

38Here

39is independent of θ r and t j are prescribed non-negative weights.The main objective is to use the offline space to accurately construct a set of multiscale basis functions for each θ r .At the offline stage the bilinear forms are chosen to be parameter-independent, such that there is no need to reconstruct the offline space for each θ r .

40We then choose the smallest M ωi p eigenvalues from Eq. ( 5) and form the corresponding eigenvectors in the space of snapshots by setting

41Finally, we multiply the partition of unity functions χ i by the eigenfunctions to construct the resulting basis functions

42where χ i is the standard linear partition of unity function.

43Next, we define the offline space and projection matrix as

44where N c is number of coarse mesh nodes and M p = M ωi p (i = 1, ..., N c ).

Multiscale basis functions for displacements

45For construction of multiscale basis functions for displacements we use similar algorithm.We first construct a snapshot space for each parameter θ r as a harmonic extension of a(θ r ; u, v)

46where

47for each subdomain ω i and d = 2, 3. We denote the corresponding matrix of snapshot functions, again with similar notation, to be

48where M u,snap = d • N ∂ωi • N r denotes the total number of functions to keep in the snapshot construction.Again, we perform a dimension reduction of the space of snapshots by using an auxiliary spectral decomposition.We solve the parameter-independent eigenvalue problem in the space of snapshots

49where

50where A and C denote fine scale matrices

51and φ k are fine-scale basis functions.Further, we have

52,

53where

54is independent of θ r and t r are prescribed non-negative weights.

55As before for the fluids flow module, at the offline stage of the mechanics the bilinear forms are chosen to be parameter-independent, such that there is no need to reconstruct the offline space for each θ r .

56We then choose the smallest M ωi u eigenvalues from Eq. ( 9) and form the corresponding eigenvectors in the space of snapshots by setting

57Finally, we multiply the linear partition of unity functions ξ i by the eigenfunctions to construct the resulting basis functions

58Next, we define the multiscale space and projection matrix as

59where

Global coupling

60The multiscale spaces are constructed for both the fluid and mechanics, and we can use them at the global level.Using the matrices

61we may write matrix form for the multiscale approximation

62where

63Finally, we reconstruct solution on the fine grid by u ms = R T u u H , p ms = R T p p H .Note that, the construction of the multiscale basis functions is performed on the offline stage and the same for any random field realization.Construction of basis usually contains two steps: (1) the construction of a snapshot space that will be used to compute an offline space; and (2) the construction of an offline space by performing a dimension reduction in the snapshot space.Multiscale basis functions for pressure and displacement described above are referred to Type 1.One can also use all the fine grid nodal basis as snapshots.This offline space is referred to Type 2.

Bayesian Uncertainty Quantification

64As noted earlier, in many geomechanical applications a multitude of data observations are measured, such as surface subsidence based on InSar data collected from earth observation [23,6,16].Due to the collection procedures and data processing times involved in the apprehension of such data, these pieces of information are often sparse in time, yet spatially global.This is because only one or two post-processed displacement fields are available per year depending on various observation and processing constraints.Other local sensors may stream relatively constant data of surface subsidence, but only at few sparse random spatial locations.To integrate these observations into the subsurface picture we utilize a Bayesian update framework.

65We denote the set of such observations as F obs and want to condition the probability distribution of random fields such as E and k to respect the observed data.We develop an algorithm to sample the permeability and elastic parameters given observed data F obs that include subsidence data.This is accomplished by the well known Bayesian formula where we may relate a new posterior probability distribution given that we have measured information from a likelihood and a prior (usually Gaussian).

Subsurface Properties Parametrization

66To parametrize the subsurface properties, we use the Karhunen-Loéve expansion (KLE) [10,11].Let Y (x, θ) be a stochastic process such that

67where E is expectation.

68Y (x, θ) can be expand as a general Fourier series

69where

70We wish to find an L 2 basis so that the Fourier coefficients are uncorrelated, or in some sense orthogonal in the expectation.More specifically we require E [Y i (θ)Y j (θ)] = 0. We denote the covariance matrix, usually assumed to be Gaussian in their correlation lengths, to be given as R(x, y) = E [Y (x, θ)Y (y, θ)] .Note that it is symmetric and positive definite, thus, we have that

71where {ϕ k } ∞ k=1 are mutually orthogonal eigenfunctions corresponding to R. Indeed, we have

72where

73with

74for two -dimensional case and

75for three -dimensional case with correlation lengths l x , l y , l z and variance σ 2 R .We denote the normalized stochastic Fourier coefficients as

76where E [ν i (θ)] = 0, E [ν i (θ)ν j (θ)] = δ ij , and {ψ k , ϕ k (x)} ∞ k=1 are the eigenpairs associated to the convolution eigenvalue problem.We assume that the eigenvalues ψ k are ordered ψ 1 ≥ ψ 2 ≥ ....

77In simulations to characterize stochastic process, we keep L-leading terms to capture most of the energy of the Y (x, θ)

78with following energy ratio of the approximation

79For definition of the permeability and elastic properties, we normalize and rescale random filed to define porosity

80where Y L (x, θ) is given by (15) with the corresponding covariance as R, eigenfunctions ϕ k and stochastic coefficients as ν k .

81We suppose that the permeability as a function of porosity

82where a > 0.

83The elasticity constants λ and µ are given such that

84where the elastic modulus is given by

85where n = 1.5 and b > 0 [38].

Observable Surface Data

86For the case of surface subsidence, the surface displacement is used as the observable data

87where ∂Ω surf the surface boundary.This data is usually dynamic, but sparse in the spatial extent, with the occasional inclusion of global deformation at sparse time interval snapshots.

Spatially Sparse Ground Sensors

88Temporally Sparse Satellite Observation Surface Subsidence The dynamic data comes from surface sensors at sparse locations throughout the area of interest that continuously monitor displacement in time at sparse locations.While, the global information is available from InSar satellite observation data.However, due to the nature of the collection of this data and the length of time to process the large data sets involved, only snapshots of data are usually available in practical settings.To make this more precise, we suppose that at distinct points

89Suppose that u θ (x, t) is the displacement computed using properties E(θ) and k(θ), then we define our data misfit as

90where ds is the surface measure.

Single-stage Metropolis -Hastings Algorithm

91The posterior distribution π(θ) can be expressed as

92where p(F obs |θ) is the likelihood and p(θ) is the prior distribution.Given a set of observed data F obs and heterogeneous field parameter data θ we write F (θ) to be the corresponding simulated data (on the fine-grid) i.e. subsidence displacement or pressures.Due to uncertainty in the model and measurements, we suppose that the error is such that

93where ε is random normal with mean 0 and variance σ 2 f , or in standard notation ε follows N (0, σ 2 f ).Thus, we will write the posterior as

94Let q(θ|θ n ) be the instrumental distribution that is used to choose the next fields θ given the previous properties θ n .We consider a random walk samplers for the transitional probability distribution q(θ|θ n ) and set q(θ|θ n ) = θ n + δ • r, where r is a Gaussian random variable with zero mean and variance 1.

95The single -stage Metropolis -Hastings algorithm:

961. Given θ n , generate new proposal θ, from q(θ|θ n ).

972. Solve forward problem, using θ, generate observable F (θ).

Determine the acceptance probability from

98Prob(θ n |θ) = min 1, q(θ n |θ) p(θ|F obs ) q(θ|θ n ) p(θ n |F obs ) ,

99and take

100It is well known that the above algorithm is very costly due to the expense of having to solve the fine-scale solution and the low acceptance rate of new proposals.A method to save computational cost is to use a coarse-scale model or/and machine learning technique as a preconditioning phase to cheaply reject proposals.Then, if the proposals is accepted on the cheap first-stage, run a fine-scale simulation and generate new acceptance-rejection probabilities.This two-stage procedure has been utilized in various other applications [10,11,15].

Two-stage Metropolis -Hastings Algorithm

101where E * (θ) = F * (θ) − F obs 2 and σ 2 c is the precision associated with the approximate model.Here F * (θ) denotes the simulated data that generated using

102• MS : coarse scale simulations (multiscale solver),

103• ML: machine learning techniques,

104The two -stage Metropolis -Hastings algorithm:

1051. Given θ n , generate new proposal θ , from q(θ |θ n ).

First stage:

106(a) Generate observable F * (θ ) for given θ using forward multiscale solver (MS ) or machine learning technique (ML).

107(b) Determine the acceptance probability from

108and take θ = θ with probability g(θ n |θ), θ n with probability 1 − g(θ n |θ).

109and take

110Here, we have

111.

112If E * (θ) is strongly correlated with E(θ), then the acceptance probability ρ could be close to 1 for certain choice of σ c [11].

113To Generate observable E * (θ ) for given θ using forward multiscale solver (MS ), we use following steps:

114• Offline stage.Construction of the projection matrices R p and R u .

115• Online stage.For given θ :

1161. generate a coarse grid system using preconstructed projection matrices, 2. solve time-depended coarse grid system (12), 3. find observable data u obs (θ ) on the surface boundary from multiscale solution, 4. generate E * (θ ).

117In machine learning technique (ML), we have following steps:

118• Offline stage.Dataset generation and neural networks training.

119• Online stage.For given θ :

1201. predict observable data u obs (θ ) on the surface boundary using trained neural networks, 2. generate E * (θ ).

121We construct a neural network (NN) for displacements in each direction x, y and z.Therefore, we train two NNs for two-dimensional problems (2D) and three NNs for three-dimensional problems (3D) [36].In ML, we directly predict an observable data for given θ , without solution of the forward problem.

122To construct a neural network for prediction of the observable data, we generate a dataset by the solution of the forward problems using a multiscale solver for some number of random coefficient θ r (r = 1, ..., N r )

123where X r = θ r and Q r = u obs (θ r ) are the input data and output data.The input field is represented as a twodimensional array for the two-dimensional problem and as a three-dimensional array for three-dimensional problems.The dataset is re-scaled to fall within the range 0 to 1.

124We use a convolutional neural network, where several convolutional, pooling, and activation layers are stacked with several fully-connected layers with dropout.Training of the machine learning algorithms is performed using mean square loss function (MSE).Implementation of the machine learning method is based on the library Keras [9] with TensorFlow backend [1] and performed on the GPU.The machine-learning algorithm learns dependence between global random coefficients (θ) and observable data u obs (θ).

Numerical results

125In order to investigate the proposed method, we perform the following tests:

126• In Section 5.1, we consider multiscale solver for three test cases in 2D and 3D formulations.We show the relative errors between reference (fine-grid) solution and GMsFEM solution with different numbers of the multiscale basis functions.Also, we present a solution time of the proposed multiscale method.

127• In Section 5.2, we consider MCMC method with GMsFEM preconditioning.We start with tests of multiscale solver, where we present errors for pressure and displacements for 100 random realizations.Next, we demonstrate correlation between E(θ) (fine grid solver) and E * (θ) (multiscale solver with different number of basis functions).After that, we present results for the two-stage MCMC method with GMsFEM preconditioning for 2D and 3D test problems.We investigate the influence of the method parameters on the numbers of the accepted fields and number of the fields that pass the first stage in the two-dimensional formulation.Some figures of accepted fields with corresponded solutions are presented.

128• In Section 5.3, we consider the preconditioned MCMC method using a machine learning technique.We start with the demonstration of the neural network architectures for 2D and 3D problems, and we use them for the prediction of the observable data.Next, we demonstrate correlation between E(θ) (fine grid solver) and E * (θ) (machine learning method).After that, we present results for the preconditioned MCMC method, where we took an observable data for three test cases considered in Section 5.1.We shown results for both preconditioning approaches: (MS ) multiscale solver based on GMSFEM and (ML) machine learning technique.Finally, we discuss the computational advantage of the method.

Multiscale method

129In this section, we present numerical examples to demonstrate the performance of the multiscale method for computing the solution of the poroelasticity problem with random heterogeneous properties.We consider two and three-dimensional model problems in domain Ω = [0, 1] d with d = 2, 3:

130• Two -dimensional problem (2D).Coarse grid contains 121 nodes (10 × 10) and the fine grid has 10201 nodes.

131• Three -dimensional problem (3D).Coarse grid contains of 216 nodes (5 × 5 × 5) and fine grid has 9261 nodes.

132The coarse grid and fine grid are presented in Figure 1.We perform simulations for T max = 0.001 with 20 time steps.As an initial condition, we set p 0 = 0 and impose the following boundary conditions:

133with γ = 10 4 and p 1 = 1.0.The high dimensional heterogeneity is represented using Karhunen-Loéve expansion.Random heterogeneous porosity fields are generated using L = 200 basis functions (Y L (x, θ)) with exponential covariance (l x = l y = l z = 0.2 and The reference solution computed by a standard finite element method with linear basis functions for pressure and displacements on the fine grid.The reference pressure and the displacement fields at final time are presented in Figures 4 and 6

134where p ms and u ms are multiscale solutions, p and u are reference solutions.

135For multiscale basis construction on the offline stage, we use a 10 random permeability and elastic fields.We present numerical results in Tables 1 and 2 for Type 1 and 2 multiscale basis functions.DOF c and DOF f are degrees of freedom for multiscale and reference (fine grid) solutions.M p and M u are the number of the multiscale basis functions for pressure and displacements, respectively.Varying the basis functions in both pressure and displacement multiscale spaces we presented the errors at the final times.We note that the first basis for pressure is standard linear basis function because the first eigenvalue of the local spectral problem We can obtain good multiscale solution when we take sufficient number of multiscale basis functions for pressure and for displacements.For M + = 2, we have near 1 − 3% of errors in two -dimensional and three-dimensional problems for all cases.In Case 3 of heterogeneous permeability field, we have 0.7 % of pressure error and 2.0 % of displacement error in two-dimensional problems with 3 multiscale basis functions for pressure and 4 multiscale basis functions for displacements M + = 2.In this case, we reduce size of the system from DOF f = 30603 to DOF c = 847.For three -dimensional problem, we have 1.7 % of pressure error and 3.3 % of displacement error with 3 basis functions for pressure and 5 basis functions for displacements (M + = 2).We reduce size of the system from DOF f = 37044 to DOF c = 1728.

136In Table 3, we present solution time for the coarse grid and fine grid solvers for Case 3. Solution time of the fine grid solver is 6.2 second for two -dimensional problem (DOF f = 30603) and 158.7 second for the three-dimensional problem (DOF f = 37044).When we use a multiscale method for the solution with M + = 2, we solve two -dimensional problem by 0.8 seconds (DOF c = 847) and three-dimensional problem ).We see that a smaller number of basis functions give a coarse grid system with a smaller size and therefore solution time is faster.Here for the solution of the coarse and fine grid systems, we used a direct solver (default solver in FEniCS [21]).Note that, the solution time doesn't include a time of multiscale basis construction because they are constructed on the offline stage as precalculations.

Preconditioned MCMC using GMsFEM

137In this section, we present results for the Two-stage MCMC method.MCMC simulations on the fine grid (single-stage) are generally very computationally expensive because each proposal requires solving a forward coupled poroelasticity problem over a large time interval.In presented preconditioned MCMC simulations, we use inexpensive computations in the first stage.Preconditioning procedure is performed using 1.MS multiscale solver based on GMSFEM, 2. ML machine learning technique.

138Note that, the Preconditioning procedure should be inexpensive, but not necessarily very accurate.We start with a multiscale solver with a small number of multiscale basis functions.As we showed above, the size of the coarse grid system (DOF c ) depends on a number of multiscale basis functions.The multiscale basis functions are constructed only once on the offline stage, and we use them for all proposed permeability and elastic modulus without online recalculations.We present results for the proposed multiscale solver (MS ) for 100 random realizations of the heterogeneous fields, θ r .Relative errors for pressure and displacements are presented in Figure 7.In Figure 8, we plot E(θ) against E * (θ) to demonstrate correlation between E * (θ) and E(θ) for 100 realizations of random fields.Here we use a relative difference between observation data and proposed solution for given θ

139where F = u(x, t), F * = u ms (x, t) where t = T max (final time) and x ∈ ∂Ω surf (∂Ω surf is the top boundary of the domain).As observation data, we take solution that presented in Figure 13 and 14.We observe that if we take a sufficient number of multiscale basis, we can obtain a good correlation between these two characteristics.From this perspective we will use in our calculations M + = 2 in MCMC algorithm which have DOF c = 847 for 2D problem (M p = 3 and M u = 4) and DOF c = 1728 for 3D problem (M p = 3 and M u = 5).Fine grid system size is DOF f = 30603 for two-dimensional problem and DOF f = 37044 for three-dimensional problem.The random heterogeneity is represented using Karhunen-Loéve expansion.

140In MCMC iterations, the heterogeneous porosity field is generated using L = 200 basis functions (Y L (x, θ)) with exponential covariance (l x = l y = l z = 0.2 and σ 2 R = 2).Form of φ, k and E are presented in 16, 17 and 18 with a = 40, b = 0.1.In numerical simulation, we pick a some realization of the random field θ ref and use corresponded solution as observation data (see first columns of Figures 13 and 14).

141Next, we present results for MCMC algorithms with σ 2 c = β • σ 2 f .We test 1000 random fields proposals and use a random walk sampler for transitional probability distribution

142where r is a Gaussian random variable with zero mean and variance 1.We use relative difference between observation data and proposed solution form (26) with F = u(x, t), F * = u ms (x, t) where t = T max (final time) and x ∈ ∂Ω surf (∂Ω surf is the top boundary of the domain).

143We consider the influence of the following parameters on the results and perform the following tests:

144• Single-stage and two-stage MCMC method with M + = 2 and 4 for 2D problem.

145• Two-stage MCMC for three-dimensional test problem with M + = 2.

146• Influence of the β, σ f and δ to the results of the two-stage MCMC method.

147In Figure 9, we present results for single-stage and two-stage MCMC method with M + = 2 and 4. In the first row, we depict an accepted u obs on the surface boundary, and on the second row, we present acceptance surface boundary, where with gradient coloring from yellow to red related to the number of accepted fields.We observe a convergence of the method from second row, where we depicted relative differences between observation data and the proposed solution.Here E * (θ) is shown in green color for multiscale solver (fist stage) and E(θ)is shown in blue color for θ that passed the first stage and calculated using fine grid solver.

148In Figure 13, we present examples of accepted permeabilities with a reference solution that we used to calculate observation data (two-dimensional problem).2D results are shown for two-stage MCMC algorithm with σ f = 0.02, β = 2, M + = 2 and random walk sampler with δ = 0.5.On the first and second rows, we depict permeability and elastic modulus, k and E. Pressure and magnitude of the displacements are depicted in the third and fourth rows.In Figures 10 and 14, we present results for three-dimensional case.Results are presented for the two-stage MCMC algorithm with σ f = 0.02, β = 2, M + = 2 and random walk sampler with δ = 0.5.For 2D and 3D results with the same parameters, we obtain:

149• 2D: we have 31 accepted and 69 passed the first stage.

150• 3D: we have 29 accepted and 141 passed the first stage.

151Numerical results for two-stage MCMC with different σ f = 0.01, 0.04, 0.06 are presented in Figure 11.We perform calculations for β = 2 and random walk sampler with δ = 0.5.In Figure 12, we show a histogram with number of accepted and number of passed first stage for two -dimensional problem with M + = 2 and δ = 0.5.In the first picture in Figure 12, we consider δ = 0.5, β = 2, σ f = 0.01, 0.02, 0.04 and 0.06.We have • σ f = 0.01: 14 accepted and 50 passed first stage.

152• σ f = 0.02: 31 accepted and 69 passed first stage.

153• σ f = 0.04: 121 accepted and 212 passed first stage.• σ f = 0.06: 226 accepted and 336 passed first stage.

154In the second picture, we show results for

155with σ f = 0.02, β = 1, 2, 4, 6 and 8.We obtain following results

156• β = 1: 23 accepted and 54 passed first stage.

157• β = 2: 31 accepted and 69 passed first stage.

158• β = 4: 35 accepted and 103 passed first stage.

159• β = 6: 29 accepted and 122 passed first stage.

160• β = 8: 29 accepted and 129 passed first stage.

161In third picture in Figure 12, we present results for β = 2, σ f = 0.02, δ = 0, 25, 0.5 and 1.0.We obtain

162• δ = 0.25: 123 accepted and 216 passed first stage.

163• δ = 0.5: 31 accepted and 69 passed first stage.

164• δ = 1.0: 17 accepted and passed first stage.

165We see that larger β leads to larger acceptance on the first stage.We observe that β = 2 is better to obtain an optimal number of the accepted on the first stage vs the number of the accepted on the fine grid.By increasing the parameter σ f , we increase the number of the accepted fields by reducing requirements between proposed and observation data differences.The smaller parameter δ from random walk leads to the larger number of accepted fields, but larger δ leads to the larger jump in random field generator.

Preconditioned MCMC using Machine Learning

166Finally, we consider the preconditioned MCMC method using a machine learning technique (ML).We construct the neural networks for the prediction of the observable data (displacements on the surface boundary In training process, we perform 3000 epochs using Adam optimizer with learning rate = 0.001.For accelerating the training process of the CNN, we use GPU (GTX 1800 Ti).We use 3 d convolutions and 2 d maxpooling layers with RELU activation for d = 2, 3. We have several layers of convolutions with several final fully connected layers.We use dropout with rate 10 % in order to prevent over-fitting.As a loss function, we use a mean square error (MSE).Convergence of the loss function presented in Figures 15 and 16, where we plot the MSE loss function vs epoch number.

167For error calculation, we use mean square errors, relative mean absolute and relative root mean square errors

168where Q i and Qi denotes reference and predicted values for sample X i .Learning performance for neural networks are presented in Tables 4 for two and three -dimensional problems.We observe good convergence of the relative errors with ≈ 1% of RMSE.

169In Figure 18, we present parity plots comparing reference values against predicted using trained neural networks for Case 1, 2 and 3. Cross plot demonstrate correlation between E * (θ) and E(θ) for 100 realizations of random fields for three cases in 2D and 3D formulations.In Figure 17, we present a relative errors for displacements on the top boundary.We compare prediction using reference fine grid values of the displacements.We observe sufficiently good errors for predicted values, where we have less than 5% of errors for 2D and less than 10% of errors for 3D.Later, we will discuss the computational efficiency of the machine learning algorithms compared with direct forward calculations and preconditioning using multiscale solver.Next, we consider numerical results for the two-stage MCMC method with machine learning technique (ML) and multiscale solver (MS ).In Figures 19 and 20, we present results two-dimensional problem for Case 1, 2 and 3 (see Section 5.1).In the first row, we depict an accepted u obs on surface boundary and on the second row, we present an acceptence errors.In MCMC algorithm, we use a random walk sampler with δ = 0.5.We use σ f = 0.02 and set σ c = 2 • σ f .

170For MS preconditioning, we have

171• Case 1 with 47 accepted and 105 passed first stage.

172• Case 2 with 27 accepted and 62 passed first stage.

173• Case 3 with 25 accepted and 72 passed first stage.

174For ML preconditioning, we have

175• Case 1 with 28 accepted and 132 passed first stage.• Case 2 with 18 accepted and 81 passed first stage.

176• Case 3 with 14 accepted and 45 passed first stage.

177The results for three-dimensional problem are presented in Figures 22 and 23 for Case 1, 2 and 3 (see Section 5.1).

178For MS preconditioning, we have

179• Case 1 with 16 accepted and 67 passed first stage.

180• Case 2 with 30 accepted and 71 passed first stage.

181• Case 3 with 40 accepted and 124 passed first stage.

182For ML preconditioning, we have

183• Case 1 with 17 accepted and 89 passed first stage.

184• Case 2 with 26 accepted and 63 passed first stage.

185• Case 3 with 39 accepted and 159 passed first stage.

186In Figures 21 and 24, we depict an examples of accepted porosities with a reference porosity that we used to calculate observation data.Numerical results are shown for two-stage MCMC algorithm with ML preconditioning for Case 1,2 and 3 in 2D and 3D formulations.We observe that we can obtain a good acceptance rate with very cheap machine learning-based prediction.The acceptance rate is N accepted /N f ine , N accepted and N f ine are the number of accepted fields and number of expensive fine grid calculations (passed the first stage).For the fast construction of the dataset that used for training, we used a multiscale solver with M + = 2.

187Finally, we discuss the advantage of the proposed algorithm.In the single-stage MCMC method with N iter iterations, time of calculations T F is equal to number of iterations multiply to time of solution of the fine grid system

188where t f ine is the time of fine grid system solution.Here for 2D system with DOF f = 30603, we have t f ine = 6.2 seconds and t f ine = 158.7 seconds for 3D problem with DOF f = 37044 (see Table 3).For MS preconditioning of the MCMC method, we have

189where t ms is the time of coarse grid system solution using GMsFEM and N f ine is the number of accepted on the first stage.For M + = 2, we have t ms = 0.83 seconds for 2D problem with DOF c = 847 and t ms = 9.6 seconds for 3D problem with DOF c = 1728 (see Table 3).In preconditioned MCMC method, we obtain that N f ine << N iter , and therefore, we have a huge reduction in the solution time because the presented multiscale method provides a huge reduction of the system size, but it still takes some time for the solution.For further reduction of the time, we proposed a machine learning-based technique with a super quick prediction.For ML preconditioning of the MCMC method, we have T M L = N iter • t ml + N f ine • t f ine , where t ml is the time of coarse grid system solution trained neural networks.Becuase prediction time is very fast i.e. t ml << 1 second, therefore

Conclusion

190Simulation of the poroelasticity is difficult due to the complex heterogeneities and uncertainty.In this work, we considered a Two-stage Markov Chain Monte Carlo method for geomechanical subsidence.We presented two techniques for preconditioning: (MS) multiscale method for model order reduction and (ML) machine learning technique.Numerical results are presented for two-and three-dimensional models to show the efficiency of the method as an expedited MCMC sampling method.

191Codes used in this manuscript are publicly available on Bitbucket at https://bitbucket.org/vmasha/msmcmc.

Figure 1 :

192Figure 1: Illustration of a coarse grid and fine grid (fine grid -black color, coarse grid -green color.(a) 2D domain with 10 × 10 coarse mesh.(b) 3D domain with 5 × 5 × 5 coarse mesh

Figure 2 :

193Figure 2: Observable surface data of geomechanical subsidence.Spatially sparse, but temporally constant ground motion sensors.Temporally sparse, but spatially global satellite observation.

3 .

194Second stage, if accepted: (a) Solve fine-scale forward problem using θ and generate observable F (θ).(b) Determine the acceptance probability from ρ(θ n |θ) = min 1, p * (θ n |F obs )p(θ|F obs ) p * (θ|F obs )p(θ n |F obs ) ,

195(a) k(x) for Case 1, 2 and 3 (from left to right).(b) E(x) for Case 1, 2 and 3 (from left to right).

Figure 3 :

196Figure 3: Random permeability k and elastic modulus E. Two -dimensional problem (2D).Case 1, 2 and 3 (from left to right).(a) permeability, k(x).(b) elastic modulus, E(x).

197(a) p for Case 1, 2 and 3 (from left to right).(b) um for Case 1, 2 and 3 (from left to right).

Figure 4 :

198Figure 4: Numerical results for random permeability k and elastic modulus E. Case 1, 2 and 3 (from left to right).Fine grid solution of two -dimensional problem (2D).(a) pressure, p.(b) displacement, u m .

199(a) k(x) for Case 1, 2 and 3 (from left to right).(b) E(x) for Case 1, 2 and 3 (from left to right).

Figure 5 :

200Figure 5: Random permeability k and elastic modulus E. Three -dimensional problem (3D).Case 1, 2 and 3 (from left to right).(a) permeability, k(x).(b) elastic modulus, E(x).

201.

202(a) p for Case 1, 2 and 3 (from left to right).(b) um for Case 1, 2 and 3 (from left to right).

Figure 6 :

203Figure 6: Numerical results for random permeability k and elastic modulus E. Case 1, 2 and 3 (from left to right).Fine grid solution of three -dimensional problem (3D).(a) pressure, p.(b) displacement, u m .

204Case 1, 2 and 3 (from left to right).Type 1 multiscale basis functions, M p = 1 + M + , M u = d + M + and DOF c = (M p + M u ) • N c .Left: two -dimensional problem, d = 2 (N c = 121 and DOF f = 30603).Right: three -dimensional problem, d = 3 (N c = 216 and DOF f = 37044) is constant.Similarly for displacements, the first d basis functions are standard linear basis functions.M + is used to denote the number of the additional spectral basis functions calculated using algorithm presented in Section 3. Therefore, M p = 1 + M + , M u = d + M + and DOF c = (M p + M u ) • N c , where N c is the number of coarse grid nodes.For two -dimensional problem, we have N c = 121 and DOF f = 30603.For threedimensional problem, we have N c = 216 and DOF f = 37044.

205(a) 2D, ep (%) (b) 3D, ep (%) (c) 2D, eu (%) (d) 3D, eu (%)

Figure 7 :

206Figure 7: Multiscale method errors for 100 random realizations of heterogeneous filed for M + = 0, 1, 2, 4 and 8. First row: pressure relative errors in %.Second row: displacement relative errors in %.Left: twodimensional problem.Right: three -dimensional problem.

Figure 8 :

207Figure 8: Cross-plot between E(θ) (fine scale) and E * (θ) (multiscale solver, MS ) for M + = 0, 1, 2, 4 and 8.For given observation data.(a) two -dimensional problem.(b) three -dimensional problem.

208(a) Single-stage MCMC (b) Two-stage MCMC, M+ = 2 (c) Two-stage MCMC, M+ = 4

Figure 9 :

209Figure 9: Two -dimensional problem with σ f = 0.02.Random walk samples with δ = 0.5.First row: accepted u obs on surface boundary.Second row: E * (θ) (green color) and E(θ)(blue color) in each MCMC iteration.(a) Single-stage MCMC (34 accepted).(b) Two-stage MCMC with β = 2 and M + = 2 (31 accepted and 69 passed first stage).(b) Two-stage MCMC with β = 2 and M + = 4 (46 accepted and 68 passed first stage).

Figure 10 :Figure 11 :

210Figure 10: Three -dimensional problem with M + = 2. Two-stage MCMC with σ f = 0.02 and β = 2. Random walk samples with δ = 0.5.First row: accepted u obs on surface boundary.Second row: E * (θ) (green color) and E(θ)(blue color) in each MCMC iteration.29 accepted and 141 passed the first stage.

211(a) σ f (b) β (c) δ

Figure 12 :

212Figure 12: Number of accepted and number of passed first stage.Two -dimensional problem.Two-stage MCMC with M + = 2. (a) δ = 0.5, σ f = 0.02, β = 1, 2, 4, 6 and 8. (b) δ = 0.5, β = 2, σ f = 0.01, 0.02, 0.04 and 0.06.(c) β = 2, σ f = 0.02, δ = 0, 25, 0.5 and 1.0.

Figure 13 :

213Figure 13: Reference solution and solutions for random fields for two -dimensional problem (from left to right).Two-stage MCMC with σ f = 0.02, β = 2 and M + = 2. Random walk samples with δ = 0.5.31 accepted and 69 passed the first stage.First row: permeability, k.Second row: elastic modulus, E. Third row: pressure, p. Fourth row: displacement, u m .

Figure 14 :

214Figure 14: Reference solution and solutions for random fields for three -dimensional problem (from left to right).Two-stage MCMC with σ f = 0.02, β = 2 and M + = 2. Random walk samples with δ = 0.5.29 accepted and 141 passed the first stage.First row: permeability, k.Second row: elastic modulus, E. Third row: pressure, p. Fourth row: displacement, u m .

215(a) architecture of NN (b) loss function epoch

Figure 15 :

216Figure 15: Two neural networks for the 2D problem.(a) the architecture of neural networks.(b) learning performance, loss function vs epoch.N N x for x-displacement with RMSE = 1.887 %, and N N y for ydisplacement with RMSE = 1.386 % (from left to right).

Figure 16 :

217Figure 16: Three networks for the 3D problem.(a) the architecture of neural networks.(b) learning performance, loss function vs epoch.N N x for x-displacement with RMSE = 1.104 %, N N y for ydisplacement with RMSE = 1.746 %, and N N z for z-displacement with RMSE = 1.734 % (from left to right).

Figure 17 :

218Figure 17: Multiscale method errors for 100 random realizations of heterogeneous filed.Prediction of the machine learning algorithm and multiscale solver with M + = 2, 4. Relative errors in % for displacements on the top boundary.

Figure 18 :

219Figure 18: Cross-plot between E(θ) (fine scale) and E * (θ).Prediction of the machine learning algorithm and multiscale solver with M + = 2, 4. Case 1, 2 and 3 observation data (from left to right).First row: two-dimensional problem.Second row: three-dimensional problem.

Figure 19 :

220Figure 19: Two -dimensional problem with MS preconditioning.Two-stage MCMC with σ f = 0.02 and β = 2. First row: accepted u obs on surface boundary.Second row: E * (θ) (green color) and E(θ)(blue color) in each MCMC iteration.(a) Case 1.(b) Case 2. (c) Case 3.

221(a) Case 1 for 2D (ML) (b) Case 3 for 2D (ML) (c) Case 2 for 2D (ML)

Figure 20 :

222Figure 20: Two -dimensional problem with ML preconditioning.Two-stage MCMC with σ f = 0.02 and β = 2. First row: accepted u obs on surface boundary.Second row: E * (θ) (green color) and E(θ)(blue color) in each MCMC iteration.(a) Case 1.(b) Case 2. (c) Case 3.

Figure 21 :

223Figure 21: Reference field and accepted random fields for three -dimensional problem (from left to right).Two -dimensional problem with ML preconditioning.Two-stage MCMC with σ f = 0.02 and β = 2. (a) φ for Case 1.(b) φ for Case 2. (c) φ for Case 3.

Figure 22 :

224Figure 22: Three -dimensional problem with MS preconditioning.Two-stage MCMC with σ f = 0.02 and β = 2. First row: accepted u obs on surface boundary.Second row: E * (θ) (green color) and E(θ)(blue color) in each MCMC iteration.(a) Case 1.(b) Case 2. (c) Case 3.

225(a) Case 1 for 3D (ML) (b) Case 3 for 3D (ML) (c) Case 2 for 3D (ML)

Figure 23 :

226Figure 23: Three -dimensional problem with ML preconditioning.Two-stage MCMC with σ f = 0.02 and β = 2. First row: accepted u obs on surface boundary.Second row: E * (θ) (green color) and E(θ)(blue color) in each MCMC iteration.(a) Case 1.(b) Case 2. (c) Case 3.

Figure 24 :

227Figure 24: Reference field and accepted random fields for three -dimensional problem (from left to right).Three -dimensional problem with ML preconditioning.Two-stage MCMC with σ f = 0.02 and β = 2. (a) φ for Case 1.(b) φ for Case 2. (c) φ for Case 3.

Table 1 :

2282DM + M p M u DOF c e p (%) e u (%) M p M u DOF c e p (%) e u (%) Numerical results for random permeability k and elastic modulus E.

Table 2 :

2292DM + M p M u DOF c e p (%) e u (%) M p M u DOF c e p (%) e u (%)

230Numerical results for random permeability k and elastic modulus E. Case 1, 2 and 3 (from left to right).Type 2 multiscale basis functions, M p = 1 + M + , M u = d + M + and DOF c = (M p + M u ) • N c .Left: two -dimensional problem, d = 2 (N c = 121 and DOF f = 30603).Right: three -dimensional problem, d = 3 (N c = 216 and DOF f = 37044)

Table 3 :

231Solution time for Case 3. Type 2 multiscale basis functions.Left: two -dimensional problem, d = 2. Right: three -dimensional problem, d = 3 by 9.6 seconds (DOF c = 1728

Table 4 :

232Learning performance of a machine learning algorithms for 2D and 3D formulations.The architectures of the neural networks are presented in Figures15 and 16for 2D and 3D problems, respectively.

참고문헌 40건

  1. Radar Interferometry: Data Interpretation and Error Analysis 2001
  2. An efficient two‐stage Markov chain Monte Carlo method for dynamic data integration Water Resources Research · Wiley · 2005 10.1029/2004wr003764
  3. A Generalized Multiscale Finite Element Method for poroelasticity problems I: Linear problems Journal of Computational and Applied Mathematics · Elsevier BV · 2015 10.1016/j.cam.2015.08.007
  4. An Efficient Two-Stage Sampling Method for Uncertainty Quantification in History Matching Geological Models SPE Journal · Society of Petroleum Engineers · 2008 10.2118/102476-pa
  5. Application of the two-stage Markov chain Monte Carlo method for characterization of fractured reservoirs using a surrogate flow model Computational Geosciences · Springer Science+Business Media · 2011 10.1007/s10596-011-9236-4
  6. Monitoring the geologic storage of carbon dioxide using multicomponent SAR interferometry Geophysical Journal International · Oxford University Press · 2013 10.1093/gji/ggs112
  7. A hierarchical streamline-assisted history matching approach with global and local parameter updates Journal of Petroleum Science and Engineering · Elsevier BV · 2011 10.1016/j.petrol.2011.10.014
  8. The Ensemble Kalman Filter: theoretical formulation and practical implementation Ocean Dynamics · Springer Science+Business Media · 2003 10.1007/s10236-003-0036-9
  9. A Mechanical Model for Permafrost Thaw Subsidence Journal of Pressure Vessel Technology · ASM International · 1977 10.1115/1.3454506
  10. Convergence of iterative coupling for coupled flow and geomechanics Computational Geosciences · Springer Science+Business Media · 2012 10.1007/s10596-012-9318-y
  11. A Coupled Reservoir and Geomechanical Simulation System SPE Journal · Society of Petroleum Engineers · 1998 10.2118/50939-pa
  12. General Theory of Three-Dimensional Consolidation Journal of Applied Physics · American Institute of Physics · 1941 10.1063/1.1712886
  13. Radar interferometry and its application to changes in the Earth's surface Reviews of Geophysics · Wiley · 1998 10.1029/97rg03139
  14. Coupled fluid flow and geomechanical deformation modeling Journal of Petroleum Science and Engineering · Elsevier BV · 2003 10.1016/s0920-4105(03)00021-4
  15. Advances in Coupled Geomechanical and Reservoir Modeling With Applications to Reservoir Compaction SPE Journal · Society of Petroleum Engineers · 2001 10.2118/74142-pa
  16. Understanding the Metropolis-Hastings Algorithm The American Statistician · Taylor & Francis · 1995 10.1080/00031305.1995.10476177
  17. An introduction to reservoir geomechanics The Leading Edge · Society of Exploration Geophysicists · 2007 10.1190/1.2737100
  18. Satellite‐based measurements of surface deformation reveal fluid flow associated with the geological storage of carbon dioxide Geophysical Research Letters · American Geophysical Union · 2010 10.1029/2009gl041544
  19. Preconditioning Markov Chain Monte Carlo Simulations Using Coarse-Scale Models SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2006 10.1137/050628568
  20. Synthetic Aperture Radar Interferometry to Measure Earth’s Surface Topography and Its Deformation Annual Review of Earth and Planetary Sciences · Annual Reviews · 2000 10.1146/annurev.earth.28.1.169
  21. ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
  22. A Simulator with Numerical Upscaling for the Analysis of Coupled Multiphase Flow and Geomechanics in Heterogeneous and Deformable Porous and Fractured Media 2013
  23. Advances in Neural Information Processing Systems 25 MIT Press eBooks · MIT Press · 2012
  24. Constrained energy minimization based upscaling for coupled flow and mechanics Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.09.054
  25. Data-driven uncertainty quantification for predictive flow and transport modeling using support vector machines Computational Geosciences · Springer Science+Business Media · 2018 10.1007/s10596-018-9762-4
  26. Multiscale two-stage solver for Biot’s poroelasticity equations in subsurface media Computational Geosciences · Springer Science+Business Media · 2018 10.1007/s10596-018-9791-z
  27. Multiscale finite volume method for finite-volume-based simulation of poroelasticity Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.11.039
  28. Computational multiscale methods for linear poroelasticity with high contrast Journal of Computational Physics · Elsevier BV · 2019 10.1016/j.jcp.2019.06.027
  29. Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
  30. TensorFlow: A system for large-scale machine learning arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1605.08695
  31. Learning macroscopic parameters in nonlinear multiscale simulations using nonlocal multicontinua upscaling techniques Journal of Computational Physics · Elsevier BV · 2020 10.1016/j.jcp.2020.109323
  32. A generalized multiscale finite element method for poroelasticity problems II: Nonlinear coupling Journal of Computational and Applied Mathematics · Elsevier BV · 2015 10.1016/j.cam.2015.11.007
  33. A parametric acceleration of multilevel Monte Carlo convergence for nonlinear variably saturated flow Computational Geosciences · Springer Science+Business Media · 2019 10.1007/s10596-019-09922-8
  34. Generalized Multiscale Finite Element Method for the poroelasticity problem in multicontinuum media Journal of Computational and Applied Mathematics · Elsevier BV · 2020 10.1016/j.cam.2020.112783
  35. Computational Multiscale Methods for Linear Heterogeneous Poroelasticity Journal of Computational Mathematics · Global Science Press · 2020 10.4208/jcm.1902-m2018-0186
  36. Convergence of iterative coupling for coupled flow and geomechanics Computers & Geosciences · Elsevier BV · 2013
  37. A moving finite element framework for fast infiltration in nonlinear poroelastic media Computational Geosciences · Springer Science+Business Media · 2020 10.1007/s10596-020-09959-0
  38. Machine learning for accelerating macroscopic parameters prediction for poroelasticity problem in stochastic media Computers & Mathematics with Applications · Elsevier BV · 2021 10.1016/j.camwa.2020.09.024
  39. Reservoir Geomechanics Episodes · International Union of Geological Sciences · 2009 10.18814/epiiugs/2009/v32i3/009
  40. Automated Solution of Differential Equations by the Finite Element Method: The FEniCS Book 2012