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

Prediction of Discretization of GMsFEM Using Deep Learning

간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (6) PEM(고분자전해질막)(7) MEA(막전극접합체)

기본 정보

저자
  1. Min Wang — Department of Mathematics, Texas A&M University, College Station, TX 77843, USA
  2. Siu Wun Cheung — Department of Mathematics, Texas A&M University, College Station, TX 77843, USA
  3. Eric T. Chung — Department of Mathematics, The Chinese University of Hong Kong, Hong Kong, China
  4. Yalchin Efendiev — Department of Mathematics, Texas A&M University, College Station, TX 77843, USA|||Multiscale Model Reduction Laboratory, North-Eastern Federal University, 677980 Yakutsk, Russia
  5. Wing Tat Leung — Institute for Computational Engineering and Sciences, The University of Texas at Austin, Austin, TX 78712, USA
  6. Yating Wang — Department of Mathematics, Texas A&M University, College Station, TX 77843, USA|||Department of Mathematics, Purdue University, West Lafayette, IN 47907, USA
DOI
10.3390/math7050412
저널
Mathematics
발행년도
2019
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
15
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/math7050412
토픽
Composite Material Mechanics
OpenAlex ID
W2963701954

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체)
R&D 측면
분석·모델링
확신도
0.60
근거 용어
porous media flow, permeability field, multiscale finite element method, deep learning, partial differential equation
판단 근거
본 논문은 다공성 매질(porous media) 내의 유체 흐름을 예측하기 위해 딥러닝을 이용한 다중 스케일 유한요소법(GMsFEM)을 다룹니다. 이는 수소연료전지(PEMFC)의 핵심 구성 요소인 중공사막(hollow fiber membrane)이나 가스확산층(GDL) 내의 기체/액체 투과 및 유동 해석 모델링에 응용될 수 있는 수치 해석 기법입니다.
R&D 활용 포인트
연료전지용 분리막이나 가스확산층 내의 복잡한 다공성 구조에서의 물질 전달 및 유동 현상을 시뮬레이션하는 고속 수치 모델링 기술로 활용 가능합니다.
평가 입력
본문 55,421자 중 30,032자 발췌

초록

In this paper, we propose a deep-learning-based approach to a class of multiscale problems. The generalized multiscale finite element method (GMsFEM) has been proven successful as a model reduction technique of flow problems in heterogeneous and high-contrast porous media. The key ingredients of GMsFEM include mutlsicale basis functions and coarse-scale parameters, which are obtained from solving local problems in each coarse neighborhood. Given a fixed medium, these quantities are precomputed by solving local problems in an offline stage, and result in a reduced-order model. However, these quantities have to be re-computed in case of varying media (various permeability fields). The objective of our work is to use deep learning techniques to mimic the nonlinear relation between the permeability field and the GMsFEM discretizations, and use neural networks to perform fast computation of GMsFEM ingredients repeatedly for a class of media. We provide numerical experiments to investigate the predictive power of neural networks and the usefulness of the resultant multiscale model in solving channelized porous media flow problems.

본문 55,421자

본문 펼치기
## Prediction of Discretization of GMsFEM using Deep Learning Min Wang <sup>_∗_</sup> Siu Wun Cheung <sup>_†_</sup> Eric T. Chung <sup>_‡_</sup> Yalchin Efendiev <sup>_§_</sup> Wing Tat Leung <sup>_¶_</sup> Yating Wang <sup>_∥_</sup> November 24, 2021 Abstract In this paper, we propose a deep-learning-based approach to a class of multiscale problems. THe Generalized Multiscale Finite Element Method (GMsFEM) has been proven successful as a model reduction technique of flow problems in heterogeneous and high-contrast porous media. The key ingredients of GMsFEM include mutlsicale basis functions and coarse-scale parameters, which are obtained from solving local problems in each coarse neighborhood. Given a fixed medium, these quantities are precomputed by solving local problems in an offline stage, and result in a reduced-order model. However, these quantities have to be re-computed in case of varying media. The objective of our work is to make use of deep learning techniques to mimic the nonlinear relation between the permeability field and the GMsFEM discretizations, and use neural networks to perform fast computation of GMsFEM ingredients repeatedly for a class of media. We provide numerical experiments to investigate the predictive power of neural networks and the usefulness of the resultant multiscale model in solving channelized porous media flow problems. ### 1 Introduction Multiscale features widely exist in many engineering problems. For instance, in porous media flow, the media properties typically vary over many scales and contain high contrast. Multiscale Finite Element Methods (MsFEM) [14, 21, 22] and Generalized Multiscale Finite Element Methods (GMsFEM) [12, 8] are designed for solving multiscale problems using local model reduction techniques. In these methods, the computational domain is partitioned into a coarse grid _T_ <sup>_H_</sup>, which does not necessarily resolve all multiscale features. We further perform a refinement of _T_ <sup>_H_</sup> to obtain a fine grid _T_ <sup>_h_</sup>, which essentially resolves all multiscale features. The idea of local model reduction in these methods is based on idenfications of local multiscale basis functions supported in coarse regions on the fine grid, and replacement of the macroscopic equations by a coarse-scale system using a limited number of local multiscale basis functions. As in many model reduction techniques, the computations of multiscale basis functions, which constitute a small dimensional subspace, can be performed in an offline stage. For a fixed medium, these multiscale basis functions are reusable for any force terms and boundary conditions. Therefore, these methods provide a substantial computational savings in the online stage, in which a coarse-scale system is constructed and solved on the reduced-order space. However, difficulties arise in situations with uncertainties in the media properties in some local regions, which are common for oil reservoirs or aquifers. One straightforward approach for quantifying the uncertainties is to sample realizations of media properties. In such cases, it is challenging to find an offline principal _∗_ Department of Mathematics, Texas A&M University, College Station, TX 77843, USA ( `wangmin@math.tamu.edu` ) _†_ Department of Mathematics, Texas A&M University, College Station, TX 77843, USA ( `tonycsw2905@math.tamu.edu` ) _‡_ Department of Mathematics, The Chinese University of Hong Kong, Shatin, New Territories, Hong Kong SAR, China ( `tschung@math.cuhk.edu.hk` ) _§_ Department of Mathematics & Institute for Scientific Computation (ISC), Texas A&M University, College Station, Texas, USA ( `efendiev@math.tamu.edu` ) _¶_ Institute for Computational Engineering and Sciences, The University of Texas at Austin, Austin, Texas, USA ( `wleungo@ices.utexas.edu` ) _∥_ Department of Mathematics, Texas A&M University, College Station, TX 77843, USA ( `wytgloria@math.tamu.edu` ) 1 component subspace which is able to universally solve the multiscale problems with different media properties. The computation of multiscale basis functions has to be performed in an online procedure for each medium. Even though the multiscale basis functions are reusable for different force terms and boundary conditions, the computational effort can grow very huge for a large number of realizations of media properties. To this end, building a functional relationship between the media properties and the multiscale model in an offline stage can avoid repeating expensive computations and thus vastly reduce the computational complexity. Due to the diversity of complexity of the media properties, the functional relationship is highly nonlinear. Modelling such a nonlinear functional relationship typically involves high-order approximations. Therefore, it is natural to use machine learning techniques to devise such complex models. In [15, 3], the authors make use of a Bayesian approach for learning multiscale models and incorporating essential observation data in the presence of uncertainties. Deep neural networks is one class of machine learning algorithm that is based on an artificial neural network, which is composed of a relatively large number of layers of nonlinear processing units, called neurons, for feature extraction. The neurons are connected to other neurons in the successive layers. The information propagates from the input, through the intermediate hidden layers, and to the output layer. In the propagation process, the output in each layer is used as input in the consecutive layer. Each layer transforms its input data into a little more abstract feature representation. In between layers, a nonlinear activation function is used as the nonlinear transformation on the input, which increases the expressive power of neural networks. Recently, deep neural network (DNN) has been successfully used to interpret complicated data sets and applied to tasks with pattern recognition, such as image recognition, speech recognition and natural language processing [25, 19, 18]. Extensive researches have also been conducted on investigating the expression power of deep neural networks [11, 20, 10, 28, 27, 17]. Results show that neural networks can represent and approximate a large class of functions. Recently, deep learning has been applied to model reductions and partial differential equations. In [31], the authors studied deep convolution networks for surrogate model construction. on dynamic flow problems in heterogeneous media. In [26], the authors studied the relationship between residual networks (ResNet) and characteristic equations of linear transport, and proposed an interpretation of deep neural networks by continuous flow models. In [30], the authors combined the idea of the Ritz method and deep learning techniques to solve elliptic problems and eigenvalue problems. In [23], a neural network has been designed to learn the physical quantities of interest as a function of random input coefficients. The concept of using deep learning to generate a reduced-order model for a dynamic flow has been applied to proper orthogonal decomposition (POD) global model reduction [2] and nonlocal multi-continuum upscaling (NLMC) [29]. In this work, we propose a deep-learning-based method for fast computation of the GMsFEM discretization. Our approach makes use of deep neural networks as a fast proxy to compute GMsFEM discretizations for flow problems in channelized porous media with uncertainties. More specifically, neural networks are used to express the functional relationship between the media properties and the multiscale model. Such networks are built up in an offline stage. Sufficient sample pairs are required to ensure the expressive power of the networks. With different realizations of media properties, one can use the built network and avoid computations of local problems and spectral problems. The paper is organized as follows. We start with the underlying partial differential equation that describes the flow within a heterogeneous media and the main ingredients of GMsFEM in Section 2. Next, in Section 3, we present the idea of using deep learning as a proxy for prediction of GMsFEM discretizations. The networks will be precisely defined and the sampling will be explained in detail. In Section 4, we present numerical experiments to show the effectiveness of our presented networks on several examples with different configurations. Finally, a conclusive discussion is provided in Section 5. ### 2 Preliminaries In this paper, we are considering the flow problem in highly heterogeneous media - _κ ∇u_ _−_ div - = _f_ in Ω _,_ _<u>∂u</u>_ _u_ = 0 or _∂n_ <sup>= 0</sup> on _∂_ Ω _,_ 2 (1) where Ωis the computational domain, _κ_ is the permeability coefficient in _L_ <sup>_∞_</sup> (Ω), and _f_ is a source function in _L_ <sup>2</sup> (Ω). We assume the coefficient _κ_ is highly heterogeneous with high contrast. The classical finite element method for solving (1) numerically is given by: find _uh_ _∈_ _Vh_ such that _fv_ _dx_ = ( _f, v_ ) for all _v_ _∈_ _Vh,_ (2) Ω _a_ ( _uh, v_ ) = Ω _κ∇uh · ∇v_ _dx_ = where _Vh_ is a standard conforming finite element space over a partition _Th_ of Ωwith mesh size _h_ . However, with the highly heterougeneous property of coefficient _κ_, the mesh size _h_ has to be taken extremely small to capture the underlying fine-scale features of _κ_ . This ends up with a large computational cost. Generalized Multiscale Finite Element Method (GMsFEM) [12, 8] serves as a model reduction technique to reduce the number of degree of freedom and attain both efficiency and accuracy to a considerable extent. GMsFEM has been successfully extended to other formulations and applied to other problems. Here we provide a brief introduction of the main ingredients of GMsFEM. For a more detailed discussion of GMsFEM and related concepts, the reader is referred to [6, 5, 13, 1, 7]. In GMsFEM, we define a coarse mesh _T_ <sup>_H_</sup> over the domain Ωand refine to obtain a fine mesh _T_ <sup>_h_</sup> with mesh size _h ≪_ _H_, which is fine enough to restore the multiscale properties of the problem. Multiscale basis functions are defined on coarse grid blocks using linear combinations of finite element basis functions on _T_ <sup>_h_</sup>, and designed to resolve the local multiscale behaviors of the exact solution. The multiscale finite element space _V_ ms, which is a principal component subspace of the conforming finite space _Vh_ with dim( _V_ ms) _≪_ dim( _Vh_ ), is constructed by the linear span of multiscale basis functions. The multiscale solution _u_ ms _∈_ _V_ ms is then defined by _a_ ( _u_ ms _, v_ ) = ( _f, v_ ) for all _v_ _∈_ _V_ ms _._ (3) In this work, we consider the identification of dominant modes for solving (1) by multiscale basis functions, including spectral basis functions and simplified basis functions, in GMsFEM. Here, we present the details of the construction of multiscale basis functions in GMsFEM. Let _Nx_ = _{xi_ _|_ 1 _≤_ _i ≤_ _Nv}_ be the set of nodes of the coarse mesh _T_ <sup>_H_</sup> . For each coarse grid node _xi_ _∈_ _Nx_, the coarse neighborhood _ωi_ is defined by _ωi_ = - _{Kj_ _∈T_ <sup>_H_</sup> ; _xi_ _∈_ _K_ _j},_ (4) that is, the union of the coarse elements _Kj_ _∈T_ <sup>_H_</sup> containing the coarse grid node _xi_ . An example of the coarse and fine mesh, coarse blocks and a coarse neighborhood is shown in Figure 1. For each coarse neighbourhood _ωi_, we construct multiscale basis functions _{φ_ <sup>_ω_</sup> _j_ <sup>_i}L_</sup> _j_ =1 <sup>_i_</sup> <sup>supported</sup> <sup>on</sup> <sup>_ωi_</sup> <sup>.</sup> For the construction of spectral basis functions, we first construct a snapshot space _V_ snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>spanned</sup> <sup>by</sup> local snapshot basis functions _ψ_ snap <sup>_i,k_</sup> <sup>for each local coarse neighborhood</sup> <sup>_ωi_</sup> <sup>.</sup> <sup>The snapshot basis function</sup> <sup>_ψ_</sup> snap <sup>_i,k_</sup> is the solution of a local problem <sup>_ω_</sup> _j_ <sup>_i}L_</sup> _j_ =1 <sup>_i_</sup> <sup>_L_</sup> _j_ =1 <sup>_i_</sup> <sup>supported</sup> <sup>on</sup> <sup>_ωi_</sup> <sup>.</sup> For the construction of spectral basis functions, we first construct a snapshot space _V_ snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> snap <sup>_i,k_</sup> <sup>for each local coarse neighborhood</sup> <sup>_ωi_</sup> <sup>.</sup> <sup>The snapshot basis function</sup> <sup>_ψ_</sup> snap <sup>_i,k_</sup> _−_ div( _κ∇ψ_ snap <sup>_i,k_</sup> <sup>) = 0</sup> <sup>_,_</sup> in _ωi_ _ψ_ snap <sup>_i,k_</sup> <sup>=</sup> <sup>_δi,k,_</sup> on _∂ωi_ (5) The fine grid functions _δi,k_ is a function defined for all _xs_ _∈_ _∂ωi_, where _{xs}_ denote the fine degrees of freedom on the boundary of local coarse region _ωi_ . In specific, _δi,k_ ( _xs_ ) = 1 if _s_ = _k_ 0 if _s̸_ = _k_ The linear span of these harmonic extensions forms the local snapshot space _V_ snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>=</sup> <sup>span</sup> _k_ <sup>_{ψ_</sup> snap <sup>_i,k_</sup> The linear span of these harmonic extensions forms the local snapshot space _V_ snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>=</sup> <sup>span</sup> _k_ <sup>_{ψ_</sup> snap <sup>_i,k_</sup> <sup>_}_</sup> <sup>.</sup> <sup>One</sup> can also use randomized boundary conditions to reduce the computational cost associated with snapshot calculations [1]. Next, a spectral problem is designed based on our analysis and used to reduce the dimension of local multiscale space. More precisely, we seek for eigenvalues _λ_ <sup>_i_</sup> _m_ <sup>and</sup> <sup>corresponding</sup> <sup>eigenfunctions</sup> _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>_∈_</sup> <sup>_V_</sup> snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>satisfying</sup> snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>satisfying</sup> _ai_ ( _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>_ω_</sup> _m_ <sup>_i, v_</sup> <sup>) =</sup> <sup>_λi_</sup> _m_ <sup>_i_</sup> <sup>_si_</sup> <sup>(</sup> <sup>_φω_</sup> _m_ <sup>_i_</sup> <sup>_ω_</sup> _m_ <sup>_i, v_</sup> <sup>)</sup> <sup>_,_</sup> _∀v_ _∈_ _V_ snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> snap <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_,_</sup> (6) 3 Figure 1: An illustration of coarse mesh (left), a coarse neighborhood and coarse blocks (right) where the bilinear forms in the spectral problem are defined as _ai_ ( _u, v_ ) = _si_ ( _u, v_ ) = _ωi_ _ωi_ _κ∇u · ∇v,_ _κuv,_ ˜ (7) where _κ_ ˜ = <sup>�</sup> _j_ <sup>_κ|∇χj|_</sup> <sup>2,</sup> <sup>and</sup> <sup>_χj_</sup> <sup>denotes</sup> <sup>the</sup> <sup>multiscale</sup> <sup>partition</sup> <sup>of</sup> <sup>unity</sup> <sup>function.</sup> <sup>We</sup> <sup>arrange</sup> <sup>the</sup> <sup>eigen-</sup> values _λ_ <sup>_i_</sup> _m_ <sup>of</sup> <sup>the</sup> <sup>spectral</sup> <sup>problem</sup> <sup>(6)</sup> <sup>in</sup> <sup>ascending</sup> <sup>order,</sup> <sup>and</sup> <sup>select</sup> <sup>the</sup> <sup>first</sup> <sup>_li_</sup> <sup>eigenfunctions</sup> <sup>_{φω_</sup> _m_ <sup>_i}_</sup> _m_ <sup>_li_</sup> =1 where _κ_ ˜ = <sup>�</sup> <sup>_i_</sup> _m_ <sup>of</sup> <sup>the</sup> <sup>spectral</sup> <sup>problem</sup> <sup>(6)</sup> <sup>in</sup> <sup>ascending</sup> <sup>order,</sup> <sup>and</sup> <sup>select</sup> <sup>the</sup> <sup>first</sup> <sup>_li_</sup> <sup>eigenfunctions</sup> <sup>_{φω_</sup> _m_ <sup>_i}_</sup> _m_ <sup>_li_</sup> _m_ <sup>of</sup> <sup>the</sup> <sup>spectral</sup> <sup>problem</sup> <sup>(6)</sup> <sup>in</sup> <sup>ascending</sup> <sup>order,</sup> <sup>and</sup> <sup>select</sup> <sup>the</sup> <sup>first</sup> <sup>_li_</sup> <sup>eigenfunctions</sup> <sup>_{φωi_</sup> _m_ =1 corresponding to the small eigenvalues as the multiscale basis functions. An alternative way to construct the multiscale basis function is using the idea of simplified basis functions. This approach assumes the number of channels and position of the channalized permeability field are known. Therefore we can obtain multiscale basis functions _{φ_ <sup>_ω_</sup> _m_ <sup>_i}l_</sup> _m_ <sup>_i_</sup> =1 <sup>using</sup> <sup>these</sup> <sup>information</sup> <sup>and</sup> <sup>without</sup> <sup>solving</sup> the spectral problem [9]. An alternative way to construct the multiscale basis function is using the idea of simplified basis functions. This approach assumes the number of channels and position of the channalized permeability field are known. Therefore we can obtain multiscale basis functions _{φ_ <sup>_ω_</sup> _m_ <sup>_i}l_</sup> _m_ <sup>_i_</sup> =1 <sup>using</sup> <sup>these</sup> <sup>information</sup> <sup>and</sup> <sup>without</sup> <sup>solving</sup> Once the multiscale basis functions are constructed, the span of the multiscale basis functions will form the offline space _Vms_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _ms_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>= span</sup> <sup>_{φω_</sup> _m_ <sup>_i_</sup> <sup>_ω_</sup> _m_ <sup>_i}_</sup> _m_ <sup>_li_</sup> _m_ <sup>_li_</sup> =1 <sup>_,_</sup> (8) _Vms_ = _⊕iVms_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_._</sup> We will then seek a multlscale solution _ums_ _∈_ _Vms_ satisfying _a_ ( _ums, v_ ) = ( _f, v_ ) for all _v_ _∈_ _Vms._ (9) which is a Galerkin projection of the (1) onto _Vms_, and can be written as a system of linear equations _Acuc_ = _bc,_ (10) where _Ac_ and _bc_ are the coarse-scale stiffness matrix and load vector. If we collect all the multiscale basis functions and arrange the fine-scale coordinate representation in columns, we obtain the downscaling operator _R_ . Then the fine-scale representation of the multiscale solution is given by _ums_ = _Ruc._ (11) 4 ### 3 Deep Learning for GMsFEM In real world applications, there are uncertainties within some local regions of the permeability field _κ_ in the flow problem. Thousands of forward simulations are needed to quantify the uncertainties of the flow solution. GMsFEM provides us with a fast solver to compute the solutions accurately and efficiently. Considering that there is a large amount of simulation data, we are interested in developing a method utilizing the existing offline data and reducing direct computational effort later. In this work, we aim at using DNN to model the relationship between heterogeneous permeability coefficient _κ_ and the key ingredients of GMsFEM solver, i.e., coarse scale stiffness matrices and multiscale basis functions. When the relation is built up, we can feed the network any realization of the permeability field and obtain the corresponding GMsFEM ingredients, and further restore fine-grid GMsFEM solution of (1). The general idea of utilizing deep learning in the GMsFEM framework is illustrated in Figure 2. Figure 2: A flow chart in illustrating the idea of using deep learning in the GMsFEM framework. Suppose that there are uncertainties for the heterogeneous coefficient in a local coarse block _K_ 0, which we call the target block, and the permeability outside the target block remains the same. For example, for a channelized permeability field, the position, location and the permeability values of the channels in the target block can vary. The target block _K_ 0 is inside 3 coarse neighborhoods, denoted by _ω_ 1 _, ω_ 2 _, ω_ 3. The union of the 3 neighborhoods, i.e. _ω_ <sup>+</sup> ( _K_ 0) = _ω_ 1 _∪_ _ω_ 2 _∪_ _ω_ 3 _,_ are constituted of by the target block _K_ 0 and 12 other coarse blocks, denoted by _{Kl}_ <sup>12</sup> _l_ =1 <sup>A</sup> <sup>target</sup> <sup>block</sup> and its surrounding neighborhoods are depicted in Figure 3. For a fixed permeability field _κ_, one can compute the multiscale basis functions _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>defined</sup> <sup>by</sup> <sup>(6),</sup> for _i_ = 1 _,_ 2 _,_ 3, and the local coarse-scale stiffness matrices _A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>),</sup> <sup>defined</sup> <sup>by</sup> [ _A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)]</sup> <sup>_i,j_</sup> _m,n_ <sup>=</sup> _Kl_ _κ∇φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>_· ∇φω_</sup> _n_ <sup>_j_</sup> <sup>_ω_</sup> _n_ <sup>_j_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>_._</sup> (12) for _l_ = 0 _,_ 1 _, . . .,_ 12. We are interested in constructing the maps _gB_ <sup>_m,i_</sup> _M_ <sup>_l_</sup> <sup>,</sup> <sup>where</sup> _B_ <sup>_m,i_</sup> and _g_ <sup>_l_</sup> _•_ _gB_ <sup>_m,i_</sup> maps the permeability coefficient _κ_ to a local multiscale basis function _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>,</sup> <sup>where</sup> <sup>_i_</sup> <sup>denotes</sup> <sup>the</sup> index of the coarse block, and _m_ denotes the index of the basis in coarse block _ωi_ _gB_ <sup>_m,i_</sup> <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>_,_</sup> _B_ <sup>_m,i_</sup> : _κ �→_ _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> _•_ _gM_ <sup>_l_</sup> <sup>maps</sup> <sup>the</sup> <sup>permeability</sup> <sup>coefficient</sup> <sup>_κ_</sup> <sup>to</sup> <sup>the</sup> <sup>coarse</sup> <sup>grid</sup> <sup>parameters</sup> <sup>_A_</sup> _c_ <sup>_Kl_</sup> ( _l_ = 0 _, · · ·_ _,_ 12) _gM_ <sup>_l_</sup> <sup>:</sup> <sup>_κ �→_</sup> <sup>_AK_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>_._</sup> In this work, our goal is to make use of deep learning to build fast approximations of these quantities associated with the uncertainties in the permeability field _κ_, which can provide fast and accurate solutions to the heterogeneous flow problem (1). 5 Figure 3: An illustration of a target coarse block _K_ 0 and related neighborhoods. For each realization _κ_, one can compute the images of _κ_ under the local multiscale basis maps _gB_ <sup>_m,i_</sup> and the local coarse-scale matrix maps _gM_ <sup>_l_</sup> <sup>.</sup> <sup>These</sup> <sup>forward</sup> <sup>calculations</sup> <sup>serve</sup> <sup>as</sup> <sup>training</sup> <sup>samples</sup> <sup>for</sup> <sup>building</sup> <sup>a</sup> deep neural network for approximation of the corresponding maps, i.e. _NB_ <sup>_m,i_</sup> _B_ <sup>_m,i_</sup> ( _κ_ ) _≈_ _gB_ <sup>_m,i_</sup> _B_ <sup>_m,i_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>_,_</sup> (13) _M_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>_≈_</sup> <sup>_gl_</sup> _N_ <sup>_l_</sup> _M_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>_._</sup> In our networks, the permeability field _κ_ is the input, while the multiscale basis functions _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>and the coarse-</sup> scale matrix _A_ <sup>_K_</sup> _c_ <sup>_l_</sup> are the outputs. Once the neural networks are built, we can use the networks to compute the multiscale basis functions and coarse-scale parameters in the associated region for any permeability field _κ_ . Using these local information from the neural networks together with the global information which can be pre-computed, we can form the downscale operator _R_ with the multiscale basis functions, form and solve the linear system (10), and obtain the multiscale solution by (11). 3.1 Network architecture In general, a _L_ -layer neural network _N_ can be written in the form _N_ ( _x_ ; _θ_ ) = _σ_ ( _WLσ_ ( _· · · σ_ ( _W_ 2 _σ_ ( _W_ 1 _x_ + _b_ 1) + _b_ 2) _· · ·_ ) + _bL_ ) _,_ where _θ_ := ( _W_ 1 _, W_ 2 _, · · ·_ _, WL, b_ 1 _, b_ 2 _, · · ·_ _, bL_ ), _W_ ’s are the weight matrices and _b_ ’s are the bias vectors, _σ_ is the activation function, _x_ is the input. Such a network is used to approximate the output _y_ . Our goal is then to find _θ_ <sup>_∗_</sup> by solving an optimization problem _θ_ <sup>_∗_</sup> = argmin _θ_ _L_ ( _θ_ ) _,_ where _L_ ( _θ_ ) is called loss function, which measures the mismatch between the image of the input _x_ under the the neural network _N_ ( _x, y_ ; _θ_ ) and the desired output _y_ in a set of training samples ( _xj, yj_ ). In this paper, we use the mean-squared error metric to be our loss function _∥yj_ _−N_ ( _xj_ ; _θ_ ) _∥_ <sup>2</sup> 2 <sup>_,_</sup> 6 _L_ ( _θ_ ) = <sup><u>1</u></sup> _N_ _N_ _j_ =1 Figure 4: An illustration of a deep neural network. where _N_ is the number of the training samples. An illustration of a deep neural network is shown in Figure 4. Suppose we have a set of different realizations of the permeability _{κ_ 1 _, κ_ 2 _, · · ·_ _, κN_ _}_ in the target block. In our network, the input _xj_ = _κj_ _∈_ R <sup>_d_</sup> is a vector containing the permeability image pixels in the target block. The output _yj_ is an entry of the local stiffness matrix _A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>,</sup> <sup>or</sup> <sup>the</sup> <sup>coordinate</sup> <sup>representation</sup> <sup>of</sup> <sup>a</sup> multiscale basis function _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>.</sup> <sup>We</sup> <sup>will</sup> <sup>make</sup> <sup>use</sup> <sup>of</sup> <sup>these</sup> <sup>sample</sup> <sup>pairs</sup> <sup>(</sup> <sup>_xj, yj_</sup> <sup>)</sup> <sup>to</sup> <sup>train</sup> <sup>a</sup> <sup>deep</sup> <sup>neural</sup> <sup>network</sup> _NB_ <sup>_m,i_</sup> ( _x_ ; _θB_ <sup>_∗_</sup> <sup>)</sup> <sup>and</sup> <sup>_N_</sup> _M_ <sup>_l_</sup> <sup>(</sup> <sup>_x_</sup> <sup>;</sup> <sup>_θ_</sup> _M_ <sup>_∗_</sup> <sup>)</sup> <sup>by</sup> <sup>minimizing</sup> <sup>the</sup> <sup>loss</sup> <sup>function</sup> <sup>with</sup> <sup>respect</sup> <sup>to</sup> <sup>the</sup> <sup>network</sup> <sup>parameter</sup> <sup>_θ_</sup> <sup>,</sup> <sup>such</sup> that the trained neural networks can approximate the functions _gB_ <sup>_m,i_</sup> and _gM_ <sup>_l_</sup> <sup>,</sup> <sup>respectively.</sup> <sup>Once</sup> <sup>the</sup> <sup>neural</sup> is constructed, for some given new permeability coefficient _κN_ +1, we use our trained networks to compute a fast prediction of the outputs, i.e. local multiscale basis functions _φ_ <sup>_ω_</sup> _m_ <sup>_i,_</sup> <sup>pred</sup> by _B_ <sup>_m,i_</sup> ( _x_ ; _θB_ <sup>_∗_</sup> _M_ <sup>_l_</sup> <sup>(</sup> <sup>_x_</sup> <sup>;</sup> <sup>_θ_</sup> _M_ <sup>_∗_</sup> _B_ <sup>_∗_</sup> <sup>)</sup> <sup>and</sup> <sup>_N l_</sup> _B_ <sup>_m,i_</sup> and _g_ <sup>_l_</sup> <sup>_ω_</sup> _m_ <sup>_i,_</sup> <sup>pred</sup> by _m_ <sup>_ωi_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+1)</sup> <sup>_,_</sup> <sup>_ω_</sup> _m_ <sup>_i,_</sup> <sup>pred</sup> ( _κN_ +1) = _NB_ <sup>_m,i_</sup> _B_ <sup>_∗_</sup> <sup>)</sup> <sup>_≈_</sup> <sup>_g_</sup> _B_ <sup>_m,i_</sup> _B_ <sup>_m,i_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+1) =</sup> <sup>_φ_</sup> _m_ <sup>_ωi_</sup> _φ_ <sup>_ω_</sup> _m_ <sup>_i,_</sup> <sup>pred</sup> _B_ <sup>_m,i_</sup> ( _κN_ +1; _θB_ <sup>_∗_</sup> and local coarse-scale stiffness matrix _A_ <sup>_K_</sup> _c_ <sup>_l,_</sup> <sup>pred</sup> by _M_ <sup>_l_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+1) =</sup> <sup>_AK_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+1)</sup> <sup>_._</sup> <sup>_K_</sup> _c_ <sup>_l,_</sup> <sup>pred</sup> ( _κN_ +1) = _N_ <sup>_l_</sup> _M_ <sup>_∗_</sup> <sup>)</sup> <sup>_≈_</sup> <sup>_gl_</sup> _A_ <sup>_K_</sup> _c_ <sup>_l,_</sup> <sup>pred</sup> _M_ <sup>_l_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+1;</sup> <sup>_θ_</sup> _M_ <sup>_∗_</sup> 3.2 Network-based multiscale solver Once the neural networks are built, we can assemble the predicted multiscale basis functions to obtain a prediction _R_ <sup>pred</sup> for the downscaling operator, and assemble the predicted local coarse-scale stiffness matrix _Ac_ <sup>_Kl,_</sup> <sup>pred</sup> in the global matrix _A_ <sup>pred</sup> _c_ . Following (10) and (11), we solve the predicted coarse-scale coefficient vector _u_ <sup>pred</sup> _c_ from the following linear system _c_ <sup>_Kl,_</sup> <sup>pred</sup> in the global matrix _A_ <sup>pred</sup> _c_ <sup>pred</sup> _c_ from the following linear system _A_ <sup>pred</sup> _c_ <sup>pred</sup> _c_ _u_ <sup>pred</sup> _c_ <sup>pred</sup> _c_ = _bc,_ (14) and obtain the predicted multiscale solution _u_ <sup>pred</sup> _ms_ by _u_ <sup>pred</sup> _ms_ <sup>pred</sup> _ms_ <sup>=</sup> <sup>_R_</sup> <sup>pred</sup> <sup>_u_</sup> _c_ <sup>pred</sup> _c_ <sup>pred</sup> _._ (15) ### 4 Numerical Results In this section, we present some numerical results for predicting the GMsFEM ingredients and solutions using our proposed method. We consider permeability fields _κ_ with high-contrast channels inside the domain Ω= (0 _,_ 1) <sup>2</sup>, which consist of uncertainties in a target cell _K_ 0. More precisely, we consider a number of random realizations of permeability fields _κ_ 1 _, κ_ 2 _, κ_ 3 _, · · ·_ _, κN_ + _M_ . Each permeability field contains two highconductivity channels, and the fields differ in the target cell _K_ 0 by: _•_ in Experiment 1, the channel configurations are all distinct, and the permeability coefficients inside the channels are fixed in each sample (see Figure 5 for illustrations), and 7 _•_ in Experiment 2, the channel configurations are randomly chosen among 5 configurations, and the permeability coefficients inside the channels follow a random distribution (see Figure 6 for illustrations). In these numerical experiments, we assume there are uncertainties in only the target block _K_ 0. The permeability field in Ω _\ K_ 0 is fixed across all the samples. We follow the procedures in Section 3 and to generate sample pairs using GMsFEM. Local spectral problems are solved to obtain the multiscale basis functions _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>.</sup> <sup>In</sup> <sup>the</sup> <sup>neural</sup> <sup>network,</sup> <sup>the</sup> <sup>permeability</sup> field _x_ = _κ_ is considered to be the input, while the local multiscale basis functions _y_ = _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>and</sup> <sup>local</sup> <sup>coarse-</sup> scale matrices _y_ = _A_ <sup>_K_</sup> _c_ <sup>_l_</sup> are regarded as the output. These sample pairs are divided into the training set and the learning set in a random manner. A large number _N_ of realizations, namely _κ_ 1 _, κ_ 2 _, . . ., κN_, are used to generate sample pairs in the training set, while the remaining _M_ realizations, namely, _κN_ +1 _, κN_ +2 _, . . ., κN_ + _M_ are used in testing the predictive power of the trained network. We remark that, for each basis function and each local matrix, we solve an optimization problem in minimizing the loss function defined by the sample pairs in the training set, and build a separate deep neural network. We summarize the network architectures for training local coarse scale stiffness matrix and multiscale basis functions as below: _•_ For the multiscale basis function _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>,</sup> <sup>we</sup> <sup>build</sup> <sup>a</sup> <sup>network</sup> <sup>_N_</sup> _B_ <sup>_m,i_</sup> using – Input: Vectorized permeability pixels values _κ_, – Output: Coefficient vector of multiscale basis _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>on</sup> <sup>coarse</sup> <sup>neighborhood</sup> <sup>_ωi_</sup> <sup>,</sup> – Loss Function: Mean squared error <sup><u>1</u></sup> _N_ _N_ _j_ =1 <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>(</sup> <sup>_κj_</sup> <sup>)</sup> <sup>_−N_</sup> _B_ <sup>_m,i_</sup> _||φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> _B_ <sup>_m,i_</sup> ( _κj_ ; _θB_ ) _||_ <sup>2</sup> 2 <sup>,</sup> <sup>2</sup> 2 <sup>,</sup> – Activation Function: Leaky ReLu function, – DNN structure: 10-20 hidden layers, each layer have 250-350 neurons, – Training Optimizer: Adamax. _•_ For the local coarse scale stiffness matrix _A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>,</sup> <sup>we</sup> <sup>build</sup> <sup>a</sup> <sup>network</sup> <sup>_N_</sup> _M_ <sup>_l_</sup> <sup>using</sup> – Input: Vectorized permeability pixels values _κ_, – Output: Vectorized coarse scale stiffness matrix _A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>on</sup> <sup>the</sup> <sup>coarse</sup> <sup>block</sup> <sup>_Kl_</sup> <sup>,</sup> – Loss Function: Mean squared error <sup><u>1</u></sup> _N_ _N_ _j_ =1 _M_ <sup>_l_</sup> <sup>(</sup> <sup>_κj_</sup> <sup>;</sup> <sup>_θM_</sup> <sup>)</sup> <sup>_||_</sup> 2 <sup>2</sup> _||A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κj_</sup> <sup>)</sup> <sup>_−N_</sup> _M_ <sup>_l_</sup> 2 <sup>2,</sup> – Activation Function: ReLu function (Rectifier), – DNN structure: 10-16 hidden layers, each layer have 100-500 neurons, – Training Optimizer: Proximal Adagrad. For simplicity, the activation functions ReLU function [16] and Leaky ReLU function are used as they have the simplest derivatives among all nonlinear functions. The ReLU function is proved to be useful in training deep neural network architectures The Leaky ReLU function can resolve the vanishing gradient problem which can accelerate the training in some occasions. The optimizers Adamax and Proximal Adagrad are stochastic gradient descent (SGD) based methods commonly used in neural network training [24]. In both experiments, we trained our network using Python API Tensorflow and Keras [4]. Once a neural network is built on training, it can be used to predict the output given a new input. The accuracy of the predictions is essential in making the network useful. In our experiments, we use of _M_ sample pairs, which are not used in training the network, to examine the predictive power of our network. On these sample pairs, referred to as the testing set, we compare the prediction and the exact output and compute the mismatch in some suitable metric. Here, we summarize the metric used in our numerical experiment. For the multiscale basis functions, we compute the relative error in _L_ <sup>2</sup> and _H_ <sup>1</sup> norm, i.e. - 2 <sup><u>1</u></sup> _,_ <u>Ω</u> <u>Ω</u> - _∇φωmi_ <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> <sup>_−∇φω_</sup> _<u>m</u>_ <sup>_i,_</sup> <sup>pred</sup> <sup>_ω_</sup> _<u>m</u>_ <sup>_i,_</sup> <sup>pred</sup> ( _κN_ + _j_ ) - _φωmi_ <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_φ_</sup> _<u>m</u>_ <sup>_ωi,_</sup> <sup>pred</sup> <sup>_N_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_φ_</sup> _<u>m</u>_ <sup>_ωi,_</sup> <sup>pred</sup> ( _κN_ + _j_ )��2 <u>�</u> _m_ <sup>(</sup> <sup>_κ_</sup> _N_ + _j_ <sup>)</sup> <sup>_|_</sup> <sup>2</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> <sup>_−∇φω_</sup> _<u>m</u>_ <sup>_i,_</sup> <sup>pred</sup> ( _κN_ + _j_ )��2 <u>�</u> _m_ <sup>(</sup> <sup>_κ_</sup> _N_ + _j_ <sup>)</sup> <sup>_|_</sup> <sup>2</sup> _<u>m</u>_ <sup>_ωi,_</sup> <sup>pred</sup> ( _κN_ + _j_ ) _eL_ 2( _κN_ + _j_ ) = _eH_ 1( _κN_ + _j_ ) = �� �� Ω <sup>_|∇φ_</sup> _m_ <sup>_ωi_</sup> <sup>(</sup> <sup>_κ_</sup> _N_ + _j_ <sup>)</sup> <sup>_|_</sup> <sup>2</sup> Ω <sup>_|φ_</sup> _m_ <sup>_ωi_</sup> <sup>(</sup> <sup>_κ_</sup> _N_ + _j_ <sup>)</sup> <sup>_|_</sup> <sup>2</sup> (16) - <sup><u>1</u></sup> 2 _._ 8 For the local stiffness matrices, we compute the relative error in entrywise _ℓ_ <sup>2</sup>, entrywise _ℓ_ <sup>_∞_</sup> and Frobenius norm, i.e. _eℓ_ 2( _κN_ + _j_ ) = <sup>_<u>∥A</u>_</sup> _<u>c</u>_ <sup>_Kl_</sup> <sup><u>(</u></sup> <sup>_<u>κN</u>_</sup> <sup><u>+</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>A</u>_</sup> _<u>c</u>_ <sup>_Kl,_</sup> <sup>pred</sup> <u>(</u> _<u>κN</u>_ <u>+</u> _<u>j</u>_ <u>)</u> _<u>∥</u>_ <u>2</u> _∥A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> _N_ + _j_ <sup>)</sup> <sup>_∥_</sup> 2 _,_ _<u>c</u>_ <sup><u>(</u></sup> <sup>_<u>κN</u>_</sup> <sup><u>+</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>A</u>_</sup> _<u>c</u>_ <sup>_Kl,_</sup> <sup>pred</sup> <u>(</u> _<u>κN</u>_ <u>+</u> _<u>j</u>_ <u>)</u> _<u>∥∞</u>_ _eℓ∞_ ( _κN_ + _j_ ) = <sup>_<u>∥AKl</u>_</sup> _,_ _∥A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> _N_ + _j_ <sup>)</sup> <sup>_∥_</sup> _∞_ (17) _eF_ ( _κN_ + _j_ ) = <sup>_<u>∥A</u>_</sup> _<u>c</u>_ <sup>_Kl_</sup> <sup><u>(</u></sup> <sup>_<u>κN</u>_</sup> <sup><u>+</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>A</u>_</sup> _<u>c</u>_ <sup>_Kl,_</sup> <sup>pred</sup> <u>(</u> _<u>κN</u>_ <u>+</u> _<u>j</u>_ <u>)</u> _<u>∥F</u>_ _∥A_ <sup>_K_</sup> _c_ <sup>_l_</sup> <sup>(</sup> <sup>_κ_</sup> _N_ + _j_ <sup>)</sup> <sup>_∥_</sup> _F_ _._ A more important measure of the usefulness of the trained neural network is the predicted multiscale solution _u_ <sup>pred</sup> _ms_ <sup>(</sup> <sup>_κ_</sup> <sup>)</sup> <sup>given</sup> <sup>by</sup> <sup>(14)–(15).</sup> <sup>We</sup> <sup>compare</sup> <sup>the</sup> <sup>predicted</sup> <sup>solution</sup> <sup>to</sup> <sup>_ums_</sup> <sup>defined</sup> <sup>by</sup> <sup>(10)–(11),</sup> <sup>and</sup> <sup>compute</sup> the relative error in _L_ <sup>2</sup> and energy norm, i.e. - 2 <sup><u>1</u></sup> _,_ <u>Ω</u> <sup>_κj_</sup> - _ums_ ( _κN_ + _j_ ) _−_ _u_ pred _<u>ms</u>_ <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> ( _κN_ + _j_ ) _−_ _u_ pred _<u>ms</u>_ <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> ��2 <u>�Ω</u> <sup>_|ums_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup> _eL_ 2( _κN_ + _j_ ) = _ea_ ( _κN_ + _j_ ) = 4.1 Experiment 1 �� �� <u>Ω</u> Ω <sup>_|ums_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup> (18) - 2 <sup><u>1</u></sup> _._ - _∇ums_ ( _κN_ + _j_ ) _−∇u_ pred _<u>ms</u>_ <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> _ums_ ( _κN_ + _j_ ) _−∇u_ pred _<u>ms</u>_ <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> ��2 <u>�Ω</u> <sup>_κj |∇ums_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup> Ω <sup>_κj |∇ums_</sup> <sup>(</sup> <sup>_κN_</sup> <sup>+</sup> <sup>_j_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup> In this experiment, we consider curved channelized permeability fields. Each permeability field contains a straight channel and a curved channel. The straight channel is fixed and the curved channel strikes the boundary of the target cell _K_ 0 at the same points. The curvature of the sine-shaped channel inside _K_ 0 varies among all realizations. We generate 2000 realizations of permeability fields, where the permeability coefficients are fixed. Samples of permeability fields are depicted in Figure 5. Among the 2000 realizations, 1980 sample pairs are randomly chosen and used as training samples, and the remaining 20 sample pairs are used as testing samples. For each realization, we compute the local multiscale basis functions and local coarse-scale stiffness matrix. In building the local snapshot space, we solve for harmonic extension of all the fine-grid boundary conditions. Local multiscale basis functions are then constructed by solving the spectral problem and multiplied the spectral basis functions with the multiscale partition of unity functions. With the offline space constructed, we compute the coarse-scale stiffness matrix. We use the training samples to build deep neural networks for approximating these GMsFEM quantities, and examine the performance of the approximations on the testing set. Tables 1–3 record the error of the prediction by the neural networks in each testing sample and the mean error measured in the defined metric. It can be seen that the prediction are of high accuracy. This is vital in ensuring the predicted GMsFEM solver useful. Table 4 records the error of the multiscale solution in each testing sample and the mean error using our proposed method. It can be observed that using the predicted GMsFEM solver, we obtain a good approximation of the multiscale solution compared with the exact GMsFEM solver. 4.2 Experiment 2 In this experiment, we consider sine-shaped channelized permeability fields. Each permeability field contains a straight channel and a sine-shaped channel. There are altogether 5 channel configurations, where the straight channel is fixed and the sine-shaped channel strikes the boundary of the target cell _K_ 0 at the same points. The curvature of the sine-shaped channel inside _K_ 0 varies among these configurations. For each channel configuration, we generate 500 realizations of permeability fields, where the permeability coefficients follow random distributions. Samples of permeability fields are depicted in Figure 6. Among the 2500 realizations, 2475 sample pairs are randomly chosen and used as training samples, and the remaining 25 sample pairs are used as testing samples. 9 Figure 5: Samples of permeability fields in the target block _K_ 0 in Experiment 1. Sample _ω_ 1 _ω_ 2 _ω_ 3 _<u>j</u>_ _<u>eL</u>_ 2 _<u>eH</u>_ 1 _<u>eL</u>_ 2 _<u>eH</u>_ 1 _<u>eL</u>_ 2 _<u>eH</u>_ 1 1 0.47% 3.2% 0.40% 3.6% 0.84% 5.1% 2 0.45% 4.4% 0.39% 3.3% 1.00% 6.3% 3 0.34% 2.3% 0.40% 3.1% 0.88% 4.3% 4 0.35% 4.2% 0.43% 5.4% 0.94% 6.6% 5 0.35% 3.3% 0.37% 3.9% 0.90% 6.1% 6 0.51% 4.7% 0.92% 12.0% 2.60% 19.0% 7 0.45% 4.1% 0.38% 3.2% 1.00% 6.4% 8 0.31% 3.4% 0.43% 5.5% 1.10% 7.7% 9 0.25% 2.2% 0.46% 5.6% 1.10% 6.2% <u>10</u> <u>0.31%</u> <u>3.5%</u> <u>0.42%</u> <u>4.5%</u> <u>1.30%</u> <u>7.6%</u> Mean 0.38% 3.5% 0.46% 5.0% 1.17% 7.5% Table 1: Percentage error of multiscale basis functions _φ_ <sup>_ω_</sup> 1 <sup>_i_</sup> in Experiment 1. Next, for each realization, we compute the local multiscale basis functions and local coarse-scale stiffness matrix. In building the local snapshot space, we solve for harmonic extension of randomized fine-grid boundary conditions, so as to reduce the number of local problems to be solved. Local multiscale basis functions are then constructed by solving the spectral problem and multiplied the spectral basis functions with the multiscale partition of unity functions. With the offline space constructed, we compute the coarsescale stiffness matrix. We use the training samples to build deep neural networks for approximating these 10 Sample _ω_ 1 _ω_ 2 _ω_ 3 _<u>j</u>_ _<u>eL</u>_ 2 _<u>eH</u>_ 1 _<u>eL</u>_ 2 _<u>eH</u>_ 1 _<u>eL</u>_ 2 _<u>eH</u>_ 1 1 0.47% 4.2% 0.40% 1.4% 0.32% 1.1% 2 0.57% 3.2% 0.31% 1.4% 0.30% 1.1% 3 0.58% 2.7% 0.31% 1.4% 0.33% 1.1% 4 0.59% 3.6% 0.13% 1.3% 0.32% 1.1% 5 0.53% 4.0% 0.51% 1.6% 0.27% 1.0% 6 0.85% 4.3% 0.51% 2.1% 0.29% 1.3% 7 0.50% 2.7% 0.22% 1.5% 0.29% 1.0% 8 0.43% 4.5% 0.61% 1.9% 0.35% 1.1% 9 0.71% 2.9% 0.14% 1.4% 0.27% 1.1% <u>10</u> <u>0.66%</u> <u>4.4%</u> <u>0.53%</u> <u>1.8%</u> <u>0.26%</u> <u>1.1%</u> Mean 0.59% 3.6% 0.37% 1.6% 0.30% 1.1% Table 2: Percentage error of multiscale basis functions _φ_ <sup>_ω_</sup> 2 <sup>_i_</sup> in Experiment 1. <u>Sample</u> _<u>j</u>_ _<u>eℓ</u>_ 2 _<u>eF</u>_ 1 0.67% 0.84% 2 0.37% 0.37% 3 0.32% 0.38% 4 1.32% 1.29% 5 0.51% 0.59% 6 4.43% 4.28% 7 0.34% 0.38% 8 0.86% 1.04% 9 1.00% 0.97% <u>10</u> <u>0.90%</u> <u>1.08%</u> Mean 0.76% 0.81% Table 3: Percentage error of the local stiffness matrix _A_ <sup>_K_</sup> _c_ <sup>0</sup> in Experiment 1. <u>Sample</u> _<u>j</u>_ _<u>eL</u>_ 2 _<u>ea</u>_ 1 0.31% 4.58% 2 0.30% 4.60% 3 0.30% 4.51% 4 0.27% 4.60% 5 0.29% 4.56% 6 0.47% 4.67% 7 0.39% 4.70% 8 0.30% 4.63% 9 0.35% 4.65% <u>10</u> <u>0.31%</u> <u>4.65%</u> Mean 0.33% 4.62% Table 4: Percentage error of multiscale solution _ums_ in Experiment 1. GMsFEM quantities, and examine the performance of the approximations on the testing set. Figures 7–9 show the comparison of the multiscale basis functions in 2 respective coarse neighborhoods. It can be observed that the predicted multiscale basis functions are in good agreement with the exact ones. In particular, the neural network successfully interprets the high conductivity regions as the support localization feature of the multiscale basis functions. Tables 5–6 record the mean error of the prediction by the neural networks, measured in the defined metric. Again, it can be seen that the prediction are of high accuracy. Table 7 records the mean error between the multiscale solution using the neural-network-based multiscale solver and using exact GMsFEM. we obtain a good approximation of the multiscale solution compared with 11 Figure 6: Samples of permeability fields in the target block _K_ 0 in Experiment 2. the exact GMsFEM solver. (a) Exact _φ_ <sup>_ω_</sup> 1 <sup>1</sup> 1 <sup>_ω_</sup> <sup>1</sup> <sup>_,_</sup> <sup>pred</sup> (c) Difference _φ_ <sup>_ω_</sup> 1 <sup>1</sup> <sup>_ω_</sup> 1 <sup>1</sup> (b) Prediction _φ_ 1 <sup>_ω_</sup> <sup>1</sup> <sup>_,_</sup> <sup>pred</sup> <sup>_ω_</sup> 1 <sup>1</sup> _−_ _φ_ 1 <sup>_ω_</sup> <sup>1</sup> <sup>_,_</sup> <sup>pred</sup> 1 (d) Exact _φ_ <sup>_ω_</sup> 2 <sup>1</sup> <sup>_ω_</sup> 2 <sup>1</sup> <sup>_,_</sup> <sup>pred</sup> (f) Difference _φ_ <sup>_ω_</sup> 2 <sup>1</sup> <sup>_ω_</sup> 2 <sup>1</sup> (e) Prediction _φ_ <sup>_ω_</sup> 2 <sup>1</sup> <sup>_,_</sup> <sup>pred</sup> <sup>_ω_</sup> 2 <sup>1</sup> _−_ _φ_ <sup>_ω_</sup> 2 <sup>1</sup> <sup>_,_</sup> <sup>pred</sup> 2 Figure 7: Exact multiscale basis functions _φ_ <sup>_ω_</sup> _m_ <sup>1</sup> <sup>and predicted multiscale basis functions</sup> <sup>_φ_</sup> _m_ <sup>_ω_</sup> <sup>1</sup> <sup>_,_</sup> <sup>pred</sup> in the coarse neighborhood _ω_ 1 in Experiment 2. Basis _ω_ 1 _ω_ 2 _ω_ 3 _<u>m</u>_ _<u>eL</u>_ 2 _<u>eH</u>_ 1 _<u>eL</u>_ 2 _<u>eH</u>_ 1 _<u>eL</u>_ 2 _<u>eH</u>_ 1 1 0.55 0.91 0.37 3.02 0.20 0.63 2 0.80 1.48 2.17 3.55 0.27 1.51 Table 5: Mean percentage error of multiscale basis functions _φ_ <sup>_ω_</sup> _m_ <sup>_i_</sup> <sup>in</sup> <sup>Experiment</sup> <sup>2.</sup> 12 (a) Exact _φ_ <sup>_ω_</sup> 1 <sup>2</sup> 1 <sup>_ω_</sup> <sup>2</sup> <sup>_,_</sup> <sup>pred</sup> (c) Difference _φ_ <sup>_ω_</sup> 1 <sup>2</sup> <sup>_ω_</sup> 1 <sup>2</sup> (b) Prediction _φ_ 1 <sup>_ω_</sup> <sup>2</sup> <sup>_,_</sup> <sup>pred</sup> <sup>_ω_</sup> 1 <sup>2</sup> _−_ _φ_ 1 <sup>_ω_</sup> <sup>2</sup> <sup>_,_</sup> <sup>pred</sup> 1 (d) Exact _φ_ <sup>_ω_</sup> 2 <sup>2</sup> <sup>_ω_</sup> 2 <sup>2</sup> <sup>_,_</sup> <sup>pred</sup> (f) Difference _φ_ <sup>_ω_</sup> 2 <sup>2</sup> <sup>_ω_</sup> 2 <sup>2</sup> (e) Prediction _φ_ <sup>_ω_</sup> 2 <sup>2</sup> <sup>_,_</sup> <sup>pred</sup> <sup>_ω_</sup> 2 <sup>2</sup> _−_ _φ_ <sup>_ω_</sup> 2 <sup>2</sup> <sup>_,_</sup> <sup>pred</sup> 2 Figure 8: Exact multiscale basis functions _φ_ <sup>_ω_</sup> _m_ <sup>2</sup> <sup>and predicted multiscale basis functions</sup> <sup>_φ_</sup> _m_ <sup>_ω_</sup> <sup>2</sup> <sup>_,_</sup> <sup>pred</sup> in the coarse neighborhood _ω_ 2 in Experiment 2. (a) Exact _φ_ <sup>_ω_</sup> 1 <sup>3</sup> 1 <sup>_ω_</sup> <sup>3</sup> <sup>_,_</sup> <sup>pred</sup> (c) Difference _φ_ <sup>_ω_</sup> 1 <sup>3</sup> <sup>_ω_</sup> 1 <sup>3</sup> (b) Prediction _φ_ 1 <sup>_ω_</sup> <sup>3</sup> <sup>_,_</sup> <sup>pred</sup> <sup>_ω_</sup> 1 <sup>3</sup> _−_ _φ_ 1 <sup>_ω_</sup> <sup>3</sup> <sup>_,_</sup> <sup>pred</sup> 1 (d) Exact _φ_ <sup>_ω_</sup> 2 <sup>3</sup> <sup>_ω_</sup> 2 <sup>3</sup> <sup>_,_</sup> <sup>pred</sup> (f) Difference _φ_ <sup>_ω_</sup> 2 <sup>3</sup> <sup>_ω_</sup> 2 <sup>3</sup> (e) Prediction _φ_ <sup>_ω_</sup> 2 <sup>3</sup> <sup>_,_</sup> <sup>pred</sup> <sup>_ω_</sup> 2 <sup>3</sup> _−_ _φ_ <sup>_ω_</sup> 2 <sup>3</sup> <sup>_,_</sup> <sup>pred</sup> 2 Figure 9: Exact multiscale basis functions _φ_ <sup>_ω_</sup> _m_ <sup>3</sup> <sup>and predicted multiscale basis functions</sup> <sup>_φ_</sup> _m_ <sup>_ω_</sup> <sup>3</sup> <sup>_,_</sup> <sup>pred</sup> in the coarse neighborhood _ω_ 3 in Experiment 2. _<u>eℓ</u>_ 2 _<u>eℓ∞</u>_ _<u>eF</u>_ Mean 0.75 0.72 0.80 Table 6: Percentage error of the local stiffness matrix _A_ <sup>_K_</sup> _c_ <sup>0</sup> in Experiment 2. ### 5 Conclusion In this paper, we develop a method using deep learning techniques for fast computation of GMsFEM discretizations. Given a particular permeability field, the main ingredients of GMsFEM, including the multiscale 13 _<u>eL</u>_ 2 _<u>ea</u>_ Mean 0.03 0.26 Table 7: Percentage error of multiscale solution _ums_ in Experiment 2. basis functions and coarse-scale matrices, are computed in an offline stage by solving local problems. However, when one is interested in calculating GMsFEM discretizations for multiple choices of permeability fields, repeatedly formulating and solving such local problems could become computationally expensive or even infeasible. Multi-layer networks are used to represent the nonlinear mapping from the fine-scale permeability field coefficients to the multiscale basis functions and the coarse-scale parameters. The networks provide a direct fast approximation of the GMsFEM ingredients in a local neigorhood for any online permeability fields, in contrast to repeatedly formulating and solving local problems. Numerical results are presented to show the performance of our proposed method. We see that, given sufficient samples of GMsFEM discretizations for supervised training, deep neural networks are capable of providing reasonably close approximations of the exact GMsFEM discretization. Moreover, the small consistency error provides good approximations of multiscale solutions. ### References [1] V. Calo, Y. Efendiev, J. Galvis, and G. Li. Randomized oversampling for generalized multiscale finite element methods. _arXiv_ _preprint,_ _arXiv:_ _1409.7114_, 2014. [2] Siu Wun Cheung, Eric T. Chung, Yalchin Efendiev, Eduardo Gildin, and Yating Wang. Deep global model reduction learning. _arXiv_ _preprint_ _arXiv:1807.09335_, 2018. [3] Siu Wun Cheung and Nilabja Guha. Dynamic data-driven bayesian GMsFEM. _arXiv_ _preprint_ _arXiv:1806.05832_, 2018. [4] Fran¸cois Chollet et al. Keras. `[https://keras.io](https://keras.io)`, 2015. [5] E. Chung, Y. Efendiev, and C. Lee. Mixed generalized multiscale finite element methods and applica tions. _SIAM_ _Multicale_ _Model._ _Simul._, 13:338–366, 2014. [6] E. Chung, Y. Efendiev, and W. T. Leung. Generalized multiscale finite element method for wave propagation in heterogeneous media. _SIAM_ _Multicale_ _Model._ _Simul._, 12:1691–1721, 2014. [7] E. T. Chung, Y. Efendiev, and W. T. Leung. Residual-driven online generalized multiscale finite element methods. _Journal_ _of_ _Computational_ _Physics_, 302:176–190, 2015. [8] Eric Chung, Yalchin Efendiev, and Thomas Y. Hou. Adaptive multiscale model reduction with gener alized multiscale finite element methods. _Journal_ _of_ _Computational_ _Physics_, 2016. [9] Eric T Chung, Efendiev, Wing Tat Leung, Maria Vasilyeva, and Yating Wang. Non-local multi-continua upscaling for flows in heterogeneous fractured media. _arXiv_ _preprint_ _arXiv:1708.08379_, 2018. [10] Balzs Csand Csji. Approximation with artificial neural networks. _Faculty_ _of_ _Sciences,_ _Etvs_ _Lornd_ _University_, 24(48), 2001. [11] G. Cybenko. Approximations by superpositions of sigmoidal functions. _Mathematics of Control, Signals,_ _and_ _Systems_, 2(4):303–314, 1989. [12] Y. Efendiev, J. Galvis, and T. Y. Hou. Generalized multiscale finite element methods (gmsfem). _Journal_ _of_ _Computational_ _Physics_, 251:116–135, 2013. [13] Y. Efendiev, J. Galvis, G. Li, and M. Presho. Generalized multiscale finite element methods. over sampling strategies. _International_ _Journal_ _for_ _Multiscale_ _Computational_ _Engineering,_ _accepted_, 12(6), 2013. 14 [14] Y. Efendiev and T. Hou. _Multiscale_ _Finite_ _Element_ _Methods:_ _Theory_ _and_ _Applications_, volume 4 of _Surveys_ _and_ _Tutorials_ _in_ _the_ _Applied_ _Mathematical_ _Sciences_ . Springer, New York, 2009. [15] Yalchin Efendiev, Wing Tat Leung, Siu Wun Cheung, Nilabja Guha, Viet Ha Hoang, and Bani Mallick. Bayesian multiscale finite element methods. modeling missing subgrid information probabilistically. _International_ _Journal_ _for_ _Multiscale_ _Computational_ _Engineering_, 2017. [16] Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In _Proceed-_ _ings_ _of_ _the_ _Fourteenth_ _International_ _Conference_ _on_ _Artificial_ _Intelligence_ _and_ _Statistics_, pages 315–323. PMLR, 2011. [17] Boris Hanin. Universal function approximation by deep neural nets with bounded width and relu activations. _arXiv:1708.02691_, 2017. [18] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. _Proceedings_ _of_ _the_ _IEEE_ _conference_ _on_ _computer_ _vision_ _and_ _pattern_ _recognition_, pages 770–778, 2016. [19] Geoffrey Hinton, Li Deng, Dong Yu, George E. Dahl, Abdel rahman Mohamed, Navdeep Jaitly, and Andrew Senior. Approximation capabilities of multilayer feedforward networks. _IEEE_ _Signal_ _Processing_ _Magazine_, 29(6):82–97, 2012. [20] Kurt Hornik. Approximation capabilities of multilayer feedforward networks. _Neural_ _Networks_, 4(2):251257, 1991. [21] T. Hou and X.H. Wu. A multiscale finite element method for elliptic problems in composite materials and porous media. _J._ _Comput._ _Phys._, 134:169–189, 1997. [22] P. Jenny, S.H. Lee, and H. Tchelepi. Multi-scale finite volume method for elliptic problems in subsurface flow simulation. _J._ _Comput._ _Phys._, 187:47–67, 2003. [23] Yuehaw Khoo, Jianfeng Lu, and Lexing Ying. Solving parametric pde problems with artificial neural networks. _arXiv:1707.03351_, 2017. [24] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. _arXiv_ _preprint_ _arXiv:1412.6980_, 2014. [25] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. _Advances_ _in_ _neural_ _information_ _processing_ _systems_, pages 1097–1105, 2012. [26] Zhen Li and Zuoqiang Shi. Deep residual learning and pdes on manifold. _arXiv:1708.05115._, 2017. [27] H. Mhaskar Q. Liao and T. Poggio. Learning functions: when is deep better than shallow. _arXiv:1603.00988v4_, 2016. [28] M. Telgrasky. Benefits of depth in neural nets. _JMLR:_ _Workshop_ _and_ _Conference_ _Proceedings_, 49(123), 2016. [29] Yating Wang, Siu Wun Cheung, Eric T. Chung, Yalchin Efendiev, and Min Wang. Deep multiscale model learning. _arXiv_ _preprint_ _arXiv:1806.04830_, 2018. [30] E. Weinan and Bing Yu. The deep ritz method: A deep learning-based numerical algorithm for solving variational problems. _Communications_ _in_ _Mathematics_ _and_ _Statistics_, 6(1):1–12, 2018. [31] Yinhao Zhu and Nicholas Zabaras. Bayesian deep convolutional encoder–decoder networks for surrogate modeling and uncertainty quantification. _Journal_ _of_ _Computational_ _Physics_, 366:415–447, 2018. 15

섹션 본문 71문단 · 28,465자

(제목 없음)

1In this paper, we propose a deep-learning-based approach to a class of multiscale problems.THe Generalized Multiscale Finite Element Method (GMsFEM) has been proven successful as a model reduction technique of flow problems in heterogeneous and high-contrast porous media.The key ingredients of GMsFEM include mutlsicale basis functions and coarse-scale parameters, which are obtained from solving local problems in each coarse neighborhood.Given a fixed medium, these quantities are precomputed by solving local problems in an offline stage, and result in a reduced-order model.However, these quantities have to be re-computed in case of varying media.The objective of our work is to make use of deep learning techniques to mimic the nonlinear relation between the permeability field and the GMsFEM discretizations, and use neural networks to perform fast computation of GMsFEM ingredients repeatedly for a class of media.We provide numerical experiments to investigate the predictive power of neural networks and the usefulness of the resultant multiscale model in solving channelized porous media flow problems.

Introduction

2Multiscale features widely exist in many engineering problems.For instance, in porous media flow, the media properties typically vary over many scales and contain high contrast.Multiscale Finite Element Methods (MsFEM) [14,21,22] and Generalized Multiscale Finite Element Methods (GMsFEM) [12,8] are designed for solving multiscale problems using local model reduction techniques.In these methods, the computational domain is partitioned into a coarse grid T H , which does not necessarily resolve all multiscale features.We further perform a refinement of T H to obtain a fine grid T h , which essentially resolves all multiscale features.The idea of local model reduction in these methods is based on idenfications of local multiscale basis functions supported in coarse regions on the fine grid, and replacement of the macroscopic equations by a coarse-scale system using a limited number of local multiscale basis functions.As in many model reduction techniques, the computations of multiscale basis functions, which constitute a small dimensional subspace, can be performed in an offline stage.For a fixed medium, these multiscale basis functions are reusable for any force terms and boundary conditions.Therefore, these methods provide a substantial computational savings in the online stage, in which a coarse-scale system is constructed and solved on the reduced-order space.

3However, difficulties arise in situations with uncertainties in the media properties in some local regions, which are common for oil reservoirs or aquifers.One straightforward approach for quantifying the uncertainties is to sample realizations of media properties.In such cases, it is challenging to find an offline principal component subspace which is able to universally solve the multiscale problems with different media properties.The computation of multiscale basis functions has to be performed in an online procedure for each medium.Even though the multiscale basis functions are reusable for different force terms and boundary conditions, the computational effort can grow very huge for a large number of realizations of media properties.To this end, building a functional relationship between the media properties and the multiscale model in an offline stage can avoid repeating expensive computations and thus vastly reduce the computational complexity.Due to the diversity of complexity of the media properties, the functional relationship is highly nonlinear.Modelling such a nonlinear functional relationship typically involves high-order approximations.Therefore, it is natural to use machine learning techniques to devise such complex models.In [15,3], the authors make use of a Bayesian approach for learning multiscale models and incorporating essential observation data in the presence of uncertainties.

4Deep neural networks is one class of machine learning algorithm that is based on an artificial neural network, which is composed of a relatively large number of layers of nonlinear processing units, called neurons, for feature extraction.The neurons are connected to other neurons in the successive layers.The information propagates from the input, through the intermediate hidden layers, and to the output layer.In the propagation process, the output in each layer is used as input in the consecutive layer.Each layer transforms its input data into a little more abstract feature representation.In between layers, a nonlinear activation function is used as the nonlinear transformation on the input, which increases the expressive power of neural networks.Recently, deep neural network (DNN) has been successfully used to interpret complicated data sets and applied to tasks with pattern recognition, such as image recognition, speech recognition and natural language processing [25,19,18].Extensive researches have also been conducted on investigating the expression power of deep neural networks [11,20,10,28,27,17]. Results show that neural networks can represent and approximate a large class of functions.Recently, deep learning has been applied to model reductions and partial differential equations.In [31], the authors studied deep convolution networks for surrogate model construction.on dynamic flow problems in heterogeneous media.In [26], the authors studied the relationship between residual networks (ResNet) and characteristic equations of linear transport, and proposed an interpretation of deep neural networks by continuous flow models.In [30], the authors combined the idea of the Ritz method and deep learning techniques to solve elliptic problems and eigenvalue problems.In [23], a neural network has been designed to learn the physical quantities of interest as a function of random input coefficients.The concept of using deep learning to generate a reduced-order model for a dynamic flow has been applied to proper orthogonal decomposition (POD) global model reduction [2] and nonlocal multi-continuum upscaling (NLMC) [29].

5In this work, we propose a deep-learning-based method for fast computation of the GMsFEM discretization.Our approach makes use of deep neural networks as a fast proxy to compute GMsFEM discretizations for flow problems in channelized porous media with uncertainties.More specifically, neural networks are used to express the functional relationship between the media properties and the multiscale model.Such networks are built up in an offline stage.Sufficient sample pairs are required to ensure the expressive power of the networks.With different realizations of media properties, one can use the built network and avoid computations of local problems and spectral problems.

6The paper is organized as follows.We start with the underlying partial differential equation that describes the flow within a heterogeneous media and the main ingredients of GMsFEM in Section 2. Next, in Section 3, we present the idea of using deep learning as a proxy for prediction of GMsFEM discretizations.The networks will be precisely defined and the sampling will be explained in detail.In Section 4, we present numerical experiments to show the effectiveness of our presented networks on several examples with different configurations.Finally, a conclusive discussion is provided in Section 5.

Preliminaries

7In this paper, we are considering the flow problem in highly heterogeneous media

8where Ω is the computational domain, κ is the permeability coefficient in L ∞ (Ω), and f is a source function in L 2 (Ω).We assume the coefficient κ is highly heterogeneous with high contrast.The classical finite element method for solving (1) numerically is given by: find

9where V h is a standard conforming finite element space over a partition T h of Ω with mesh size h.However, with the highly heterougeneous property of coefficient κ, the mesh size h has to be taken extremely small to capture the underlying fine-scale features of κ.This ends up with a large computational cost.Generalized Multiscale Finite Element Method (GMsFEM) [12,8] serves as a model reduction technique to reduce the number of degree of freedom and attain both efficiency and accuracy to a considerable extent.GMsFEM has been successfully extended to other formulations and applied to other problems.Here we provide a brief introduction of the main ingredients of GMsFEM.For a more detailed discussion of GMsFEM and related concepts, the reader is referred to [6,5,13,1,7].

10In GMsFEM, we define a coarse mesh T H over the domain Ω and refine to obtain a fine mesh T h with mesh size h H, which is fine enough to restore the multiscale properties of the problem.Multiscale basis functions are defined on coarse grid blocks using linear combinations of finite element basis functions on T h , and designed to resolve the local multiscale behaviors of the exact solution.The multiscale finite element space V ms , which is a principal component subspace of the conforming finite space V h with dim(V ms ) dim(V h ), is constructed by the linear span of multiscale basis functions.The multiscale solution u ms ∈ V ms is then defined by

11In this work, we consider the identification of dominant modes for solving (1) by multiscale basis functions, including spectral basis functions and simplified basis functions, in GMsFEM.Here, we present the details of the construction of multiscale basis functions in GMsFEM.Let N x = {x i |1 ≤ i ≤ N v } be the set of nodes of the coarse mesh T H .For each coarse grid node x i ∈ N x , the coarse neighborhood ω i is defined by

12that is, the union of the coarse elements K j ∈ T H containing the coarse grid node x i .An example of the coarse and fine mesh, coarse blocks and a coarse neighborhood is shown in Figure 1.For each coarse neighbourhood ω i , we construct multiscale basis functions {φ ωi j } Li j=1 supported on ω i .For the construction of spectral basis functions, we first construct a snapshot space V (i) snap spanned by local snapshot basis functions ψ i,k snap for each local coarse neighborhood ω i .The snapshot basis function ψ i,k snap is the solution of a local problem

13The fine grid functions δ i,k is a function defined for all x s ∈ ∂ω i , where {x s } denote the fine degrees of freedom on the boundary of local coarse region ω i .In specific,

14The linear span of these harmonic extensions forms the local snapshot space

15One can also use randomized boundary conditions to reduce the computational cost associated with snapshot calculations [1].Next, a spectral problem is designed based on our analysis and used to reduce the dimension of local multiscale space.More precisely, we seek for eigenvalues λ i m and corresponding eigenfunctions where the bilinear forms in the spectral problem are defined as

16where κ = j κ|∇χ j | 2 , and χ j denotes the multiscale partition of unity function.We arrange the eigenvalues λ i m of the spectral problem (6) in ascending order, and select the first l i eigenfunctions {φ ωi m } li m=1 corresponding to the small eigenvalues as the multiscale basis functions.

17An alternative way to construct the multiscale basis function is using the idea of simplified basis functions.This approach assumes the number of channels and position of the channalized permeability field are known.Therefore we can obtain multiscale basis functions {φ ωi m } li m=1 using these information and without solving the spectral problem [9].

18Once the multiscale basis functions are constructed, the span of the multiscale basis functions will form the offline space

19We will then seek a multlscale solution u ms ∈ V ms satisfying

20which is a Galerkin projection of the (1) onto V ms , and can be written as a system of linear equations

21where A c and b c are the coarse-scale stiffness matrix and load vector.If we collect all the multiscale basis functions and arrange the fine-scale coordinate representation in columns, we obtain the downscaling operator R. Then the fine-scale representation of the multiscale solution is given by

223 Deep Learning for GMsFEM

23In real world applications, there are uncertainties within some local regions of the permeability field κ in the flow problem.Thousands of forward simulations are needed to quantify the uncertainties of the flow solution.

24GMsFEM provides us with a fast solver to compute the solutions accurately and efficiently.Considering that there is a large amount of simulation data, we are interested in developing a method utilizing the existing offline data and reducing direct computational effort later.In this work, we aim at using DNN to model the relationship between heterogeneous permeability coefficient κ and the key ingredients of GMsFEM solver, i.e., coarse scale stiffness matrices and multiscale basis functions.When the relation is built up, we can feed the network any realization of the permeability field and obtain the corresponding GMsFEM ingredients, and further restore fine-grid GMsFEM solution of (1).The general idea of utilizing deep learning in the GMsFEM framework is illustrated in Figure 2. Suppose that there are uncertainties for the heterogeneous coefficient in a local coarse block K 0 , which we call the target block, and the permeability outside the target block remains the same.For example, for a channelized permeability field, the position, location and the permeability values of the channels in the target block can vary.The target block K 0 is inside 3 coarse neighborhoods, denoted by ω 1 , ω 2 , ω 3 .The union of the 3 neighborhoods, i.e.

25ω

26are constituted of by the target block K 0 and 12 other coarse blocks, denoted by {K l } 12 l=1 A target block and its surrounding neighborhoods are depicted in Figure 3.

27For a fixed permeability field κ, one can compute the multiscale basis functions φ ωi m (κ) defined by ( 6), for i = 1, 2, 3, and the local coarse-scale stiffness matrices A K l c (κ), defined by

28for l = 0, 1, . . ., 12.We are interested in constructing the maps g m,i B and g l M , where

29B maps the permeability coefficient κ to a local multiscale basis function φ ωi m , where i denotes the index of the coarse block, and m denotes the index of the basis in coarse block ω i g m,i B : κ → φ ωi m (κ),

30• g l M maps the permeability coefficient κ to the coarse grid parameters

31In this work, our goal is to make use of deep learning to build fast approximations of these quantities associated with the uncertainties in the permeability field κ, which can provide fast and accurate solutions to the heterogeneous flow problem (1).

32In our networks, the permeability field κ is the input, while the multiscale basis functions φ ωi m and the coarsescale matrix A K l c are the outputs.Once the neural networks are built, we can use the networks to compute the multiscale basis functions and coarse-scale parameters in the associated region for any permeability field κ.Using these local information from the neural networks together with the global information which can be pre-computed, we can form the downscale operator R with the multiscale basis functions, form and solve the linear system (10), and obtain the multiscale solution by (11).

Network architecture

33In general, a L-layer neural network N can be written in the form

34are the weight matrices and b's are the bias vectors, σ is the activation function, x is the input.Such a network is used to approximate the output y.Our goal is then to find θ * by solving an optimization problem

35where L(θ) is called loss function, which measures the mismatch between the image of the input x under the the neural network N (x, y; θ) and the desired output y in a set of training samples (x j , y j ).In this paper, we use the mean-squared error metric to be our loss function where N is the number of the training samples.An illustration of a deep neural network is shown in Figure 4.

36Suppose we have a set of different realizations of the permeability {κ 1 , κ 2 , • • • , κ N } in the target block.In our network, the input x j = κ j ∈ R d is a vector containing the permeability image pixels in the target block.The output y j is an entry of the local stiffness matrix A K l c , or the coordinate representation of a multiscale basis function φ ωi m .We will make use of these sample pairs (x j , y j ) to train a deep neural network N m,i B (x; θ * B ) and N l M (x; θ * M ) by minimizing the loss function with respect to the network parameter θ, such that the trained neural networks can approximate the functions g m,i B and g l M , respectively.Once the neural is constructed, for some given new permeability coefficient κ N +1 , we use our trained networks to compute a fast prediction of the outputs, i.e. local multiscale basis functions φ ωi,pred m by

37and local coarse-scale stiffness matrix A K l ,pred c by

Network-based multiscale solver

38Once the neural networks are built, we can assemble the predicted multiscale basis functions to obtain a prediction R pred for the downscaling operator, and assemble the predicted local coarse-scale stiffness matrix A K l ,pred c in the global matrix A pred c .Following (10) and (11), we solve the predicted coarse-scale coefficient vector u pred c from the following linear system

39and obtain the predicted multiscale solution u pred ms by

Numerical Results

40In this section, we present some numerical results for predicting the GMsFEM ingredients and solutions using our proposed method.We consider permeability fields κ with high-contrast channels inside the domain Ω = (0, 1) 2 , which consist of uncertainties in a target cell K 0 .More precisely, we consider a number of random realizations of permeability fields κ 1 , κ 2 , κ 3 , • • • , κ N +M .Each permeability field contains two highconductivity channels, and the fields differ in the target cell K 0 by:

41• in Experiment 1, the channel configurations are all distinct, and the permeability coefficients inside the channels are fixed in each sample (see Figure 5 for illustrations), and

42• in Experiment 2, the channel configurations are randomly chosen among 5 configurations, and the permeability coefficients inside the channels follow a random distribution (see Figure 6 for illustrations).

43In these numerical experiments, we assume there are uncertainties in only the target block K 0 .The permeability field in Ω \ K 0 is fixed across all the samples.We follow the procedures in Section 3 and to generate sample pairs using GMsFEM.Local spectral problems are solved to obtain the multiscale basis functions φ ωi m .In the neural network, the permeability field x = κ is considered to be the input, while the local multiscale basis functions y = φ ωi m and local coarsescale matrices y = A K l c are regarded as the output.These sample pairs are divided into the training set and the learning set in a random manner.A large number N of realizations, namely κ 1 , κ 2 , . . ., κ N , are used to generate sample pairs in the training set, while the remaining M realizations, namely, κ N +1 , κ N +2 , . . ., κ N +M are used in testing the predictive power of the trained network.We remark that, for each basis function and each local matrix, we solve an optimization problem in minimizing the loss function defined by the sample pairs in the training set, and build a separate deep neural network.We summarize the network architectures for training local coarse scale stiffness matrix and multiscale basis functions as below:

44• For the multiscale basis function φ ωi m , we build a network N m,i B using -Input: Vectorized permeability pixels values κ, -Output: Coefficient vector of multiscale basis φ ωi m (κ) on coarse neighborhood ω i , -Loss Function: Mean squared error 1

45-Activation Function: Leaky ReLu function, -DNN structure: 10-20 hidden layers, each layer have 250-350 neurons, -Training Optimizer: Adamax.

46• For the local coarse scale stiffness matrix A K l c , we build a network N l M using -Input: Vectorized permeability pixels values κ, -Output: Vectorized coarse scale stiffness matrix A K l c (κ) on the coarse block K l , -Loss Function: Mean squared error 1

47-Activation Function: ReLu function (Rectifier), -DNN structure: 10-16 hidden layers, each layer have 100-500 neurons, -Training Optimizer: Proximal Adagrad.

48For simplicity, the activation functions ReLU function [16] and Leaky ReLU function are used as they have the simplest derivatives among all nonlinear functions.The ReLU function is proved to be useful in training deep neural network architectures The Leaky ReLU function can resolve the vanishing gradient problem which can accelerate the training in some occasions.The optimizers Adamax and Proximal Adagrad are stochastic gradient descent (SGD) based methods commonly used in neural network training [24].In both experiments, we trained our network using Python API Tensorflow and Keras [4].Once a neural network is built on training, it can be used to predict the output given a new input.The accuracy of the predictions is essential in making the network useful.In our experiments, we use of M sample pairs, which are not used in training the network, to examine the predictive power of our network.On these sample pairs, referred to as the testing set, we compare the prediction and the exact output and compute the mismatch in some suitable metric.Here, we summarize the metric used in our numerical experiment.For the multiscale basis functions, we compute the relative error in L 2 and H 1 norm, i.e.

49For the local stiffness matrices, we compute the relative error in entrywise 2 , entrywise ∞ and Frobenius norm, i.e.

50A more important measure of the usefulness of the trained neural network is the predicted multiscale solution u pred ms (κ) given by ( 14)- (15).We compare the predicted solution to u ms defined by ( 10)-( 11), and compute the relative error in L 2 and energy norm, i.e.

Experiment 1

51In this experiment, we consider curved channelized permeability fields.Each permeability field contains a straight channel and a curved channel.The straight channel is fixed and the curved channel strikes the boundary of the target cell K 0 at the same points.The curvature of the sine-shaped channel inside K 0 varies among all realizations.We generate 2000 realizations of permeability fields, where the permeability coefficients are fixed.Samples of permeability fields are depicted in Figure 5.Among the 2000 realizations, 1980 sample pairs are randomly chosen and used as training samples, and the remaining 20 sample pairs are used as testing samples.

52For each realization, we compute the local multiscale basis functions and local coarse-scale stiffness matrix.In building the local snapshot space, we solve for harmonic extension of all the fine-grid boundary conditions.Local multiscale basis functions are then constructed by solving the spectral problem and multiplied the spectral basis functions with the multiscale partition of unity functions.With the offline space constructed, we compute the coarse-scale stiffness matrix.We use the training samples to build deep neural networks for approximating these GMsFEM quantities, and examine the performance of the approximations on the testing set.

53Tables 1-3 record the error of the prediction by the neural networks in each testing sample and the mean error measured in the defined metric.It can be seen that the prediction are of high accuracy.This is vital in ensuring the predicted GMsFEM solver useful.Table 4 records the error of the multiscale solution in each testing sample and the mean error using our proposed method.It can be observed that using the predicted GMsFEM solver, we obtain a good approximation of the multiscale solution compared with the exact GMsFEM solver.

Experiment 2

54In this experiment, we consider sine-shaped channelized permeability fields.Each permeability field contains a straight channel and a sine-shaped channel.There are altogether 5 channel configurations, where the straight channel is fixed and the sine-shaped channel strikes the boundary of the target cell K 0 at the same points.The curvature of the sine-shaped channel inside K 0 varies among these configurations.For each channel configuration, we generate 500 realizations of permeability fields, where the permeability coefficients follow random distributions.Samples of permeability fields are depicted in Figure 6.Among the 2500 realizations, 2475 sample pairs are randomly chosen and used as training samples, and the remaining 25 sample pairs are used as testing samples.Next, for each realization, we compute the local multiscale basis functions and local coarse-scale stiffness matrix.In building the local snapshot space, we solve for harmonic extension of randomized fine-grid boundary conditions, so as to reduce the number of local problems to be solved.Local multiscale basis functions are then constructed by solving the spectral problem and multiplied the spectral basis functions with the multiscale partition of unity functions.With the offline space constructed, we compute the coarsescale stiffness matrix.We use the training samples to build deep neural networks for approximating these GMsFEM quantities, and examine the performance of the approximations on the testing set.Figures 7-9 show the comparison of the multiscale basis functions in 2 respective coarse neighborhoods.It can be observed that the predicted multiscale basis functions are in good agreement with the exact ones.In particular, the neural network successfully interprets the high conductivity regions as the support localization feature of the multiscale basis functions.Tables 5-6 record the mean error of the prediction by the neural networks, measured in the defined metric.Again, it can be seen that the prediction are of high accuracy.Table 7 records the mean error between the multiscale solution using the neural-network-based multiscale solver and using exact GMsFEM.we obtain a good approximation of the multiscale solution compared with

Conclusion

55In this paper, we develop a method using deep learning techniques for fast computation of GMsFEM discretizations.Given a particular permeability field, the main ingredients of GMsFEM, including the multiscale e L 2 e a Mean 0.03 0.26 basis functions and coarse-scale matrices, are computed in an offline stage by solving local problems.However, when one is interested in calculating GMsFEM discretizations for multiple choices of permeability fields, repeatedly formulating and solving such local problems could become computationally expensive or even infeasible.Multi-layer networks are used to represent the nonlinear mapping from the fine-scale permeability field coefficients to the multiscale basis functions and the coarse-scale parameters.The networks provide a direct fast approximation of the GMsFEM ingredients in a local neigorhood for any online permeability fields, in contrast to repeatedly formulating and solving local problems.Numerical results are presented to show the performance of our proposed method.We see that, given sufficient samples of GMsFEM discretizations for supervised training, deep neural networks are capable of providing reasonably close approximations of the exact GMsFEM discretization.Moreover, the small consistency error provides good approximations of multiscale solutions.

Figure 1 :

56Figure 1: An illustration of coarse mesh (left), a coarse neighborhood and coarse blocks (right)

Figure 2 :

57Figure 2: A flow chart in illustrating the idea of using deep learning in the GMsFEM framework.

Figure 3 :

58Figure 3: An illustration of a target coarse block K 0 and related neighborhoods.

Figure 4 :

59Figure 4: An illustration of a deep neural network.

Figure 5 :

60Figure 5: Samples of permeability fields in the target block K 0 in Experiment 1.

Figure 6 :

61Figure 6: Samples of permeability fields in the target block K 0 in Experiment 2.

(a) Exact φ ω 1 1 ( 1 (d) Exact φ ω 1 2 (e) Prediction φ ω 1 ,pred 2 (f) Difference φ ω 1 2 − φ ω 1 ,pred 2 Figure 7 :

62Figure 7: Exact multiscale basis functions φ ω1 m and predicted multiscale basis functions φ ω1,pred m in the coarse neighborhood ω 1 in Experiment 2.

(a) Exact φ ω 2 1 (b) Prediction φ ω 2 ,pred 1 (c) Difference φ ω 2 1 − φ ω 2 ,pred 1 (d) Exact φ ω 2 2 ( 2 Figure 8 :

63Figure 8: Exact multiscale basis functions φ ω2 m and predicted multiscale basis functions φ ω2,pred m in the coarse neighborhood ω 2 in Experiment 2.

(a) Exact φ ω 3 1 ( 1 (d) Exact φ ω 3 2 (e) Prediction φ ω 3 ,pred 2 (f) Difference φ ω 3 2 − φ ω 3 ,pred 2 Figure 9 :

64Figure 9: Exact multiscale basis functions φ ω3 m and predicted multiscale basis functions φ ω3,pred m in the coarse neighborhood ω 3 in Experiment 2.

Table 6 :

65Percentage error of the local stiffness matrix A K0 c in Experiment 2.

Table 1 :

66Percentage error of multiscale basis functions φ ωi 1 in Experiment 1.

Table 2 :

67Percentage error of multiscale basis functions φ ωi 2 in Experiment 1.

Table 3 :

68Percentage error of the local stiffness matrix A K0

Table 4 :

69Percentage error of multiscale solution u ms in Experiment 1.

Table 5 :

70Mean percentage error of multiscale basis functions φ ωi m in Experiment 2.

Table 7 :

71Percentage error of multiscale solution u ms in Experiment 2.

참고문헌 26건

  1. A Multiscale Finite Element Method for Elliptic Problems in Composite Materials and Porous Media Journal of Computational Physics · Elsevier BV · 1997 10.1006/jcph.1997.5682
  2. Multi-scale finite-volume method for elliptic problems in subsurface flow simulation Journal of Computational Physics · Elsevier BV · 2003 10.1016/s0021-9991(03)00075-5
  3. Generalized multiscale finite element methods (GMsFEM) Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.04.045
  4. Adaptive multiscale model reduction with Generalized Multiscale Finite Element Methods Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.04.054
  5. BAYESIAN MULTISCALE FINITE ELEMENT METHODS. MODELING MISSING SUBGRID INFORMATION PROBABILISTICALLY International Journal for Multiscale Computational Engineering · Begell House · 2017 10.1615/intjmultcompeng.2017019851
  6. Dynamic data-driven Bayesian GMsFEM Journal of Computational and Applied Mathematics · Elsevier BV · 2019 10.1016/j.cam.2018.12.010
  7. ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
  8. Deep Neural Networks for Acoustic Modeling in Speech Recognition: The Shared Views of Four Research Groups IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2012 10.1109/msp.2012.2205597
  9. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  10. Approximation by superpositions of a sigmoidal function Mathematics of Control Signals and Systems · Springer Science+Business Media · 1989 10.1007/bf02551274
  11. Approximation capabilities of multilayer feedforward networks Neural Networks · Elsevier BV · 1991 10.1016/0893-6080(91)90009-t
  12. Bayesian deep convolutional encoder–decoder networks for surrogate modeling and uncertainty quantification Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.04.018
  13. The Deep Ritz Method: A Deep Learning-Based Numerical Algorithm for Solving Variational Problems Communications in Mathematics and Statistics · Springer Science+Business Media · 2018 10.1007/s40304-018-0127-z
  14. Generalized Multiscale Finite Element Methods for Wave Propagation in Heterogeneous Media Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2014 10.1137/130926675
  15. Mixed Generalized Multiscale Finite Element Methods and Applications Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2015 10.1137/140970574
  16. GENERALIZED MULTISCALE FINITE ELEMENT METHODS: OVERSAMPLING STRATEGIES International Journal for Multiscale Computational Engineering · Begell House · 2014 10.1615/intjmultcompeng.2014007646
  17. Residual-driven online generalized multiscale finite element methods Journal of Computational Physics · Elsevier BV · 2015 10.1016/j.jcp.2015.07.068
  18. Non-local multi-continua upscaling for flows in heterogeneous fractured media Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.05.038
  19. Universal Function Approximation by Deep Neural Nets with Bounded Width and ReLU Activations Mathematics · Multidisciplinary Digital Publishing Institute · 2019 10.3390/math7100992
  20. Deep Multiscale Model Learning arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1806.04830
  21. ImageNet classification with deep convolutional neural networks Communications of the ACM · Association for Computing Machinery · 2017 10.1145/3065386
  22. Learning Functions: When Is Deep Better Than Shallow arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1603.00988
  23. Multiscale Finite Element Methods: Theory and Applications 2009
  24. Deep Global Model Reduction Learning arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1807.09335
  25. The Deep Ritz method: A deep learning-based numerical algorithm for solving variational problems arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1710.00211
  26. Randomized Oversampling for Generalized Multiscale Finite Element Methods Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2016 10.1137/140988826