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

Predicting porosity, permeability, and tortuosity of porous media from images by deep learning

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

기본 정보

저자
  1. Krzysztof M. Graczyk — Institute of Theoretical Physics, Faculty of Physics and Astronomy, University of Wrocław, pl. M. Borna 9, 50-204, Wrocław, Poland
  2. Maciej Matyka — Institute of Theoretical Physics, Faculty of Physics and Astronomy, University of Wrocław, pl. M. Borna 9, 50-204, Wrocław, Poland
DOI
10.1038/s41598-020-78415-x
저널
Scientific Reports
발행년도
2020
발행기관
Nature Portfolio
피인용수
137
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-020-78415-x
토픽
Heat and Mass Transfer in Porous Media
OpenAlex ID
W3112842551

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체), (18) VENT(방수통기 부품)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
porous media, permeability, tortuosity, porosity, convolutional neural networks
판단 근거
본 논문은 다공성 매질(porous media)의 기공률, 투과율, 굴곡도를 딥러닝으로 예측하는 방법론을 다룹니다. 이는 코오롱인더스트리의 수소연료전지용 중공사막(5)이나 방수통기용 멤브레인(18) 등 다공성 막 소재의 유체 흐름 및 물성 분석 모델링에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
연료전지용 가습기(중공사막)나 방수통기 부품(ePTFE 멤브레인)의 미세 구조 이미지로부터 투과 성능을 빠르게 예측하는 디지털 트윈 또는 설계 최적화 모델 개발에 활용 가능합니다.
평가 입력
본문 40,978자

초록

Convolutional neural networks (CNN) are utilized to encode the relation between initial configurations of obstacles and three fundamental quantities in porous media: porosity ($\varphi$), permeability $k$, and tortuosity ($T$). The two-dimensional systems with obstacles are considered. The fluid flow through a porous medium is simulated with the lattice Boltzmann method. It is demonstrated that the CNNs are able to predict the porosity, permeability, and tortuosity with good accuracy. With the usage of the CNN models, the relation between $T$ and $\varphi$ has been reproduced and compared with the empirical estimate. The analysis has been performed for the systems with $\varphi \in (0.37,0.99)$ which covers five orders of magnitude span for permeability $k \in (0.78, 2.1\times 10^5)$ and tortuosity $T \in (1.03,2.74)$.

본문 40,978자

본문 펼치기
## OPEN # Predicting porosity, permeability, and tortuosity of porous media from images by deep learning Krzysztof M. Graczyk <sup>*</sup> & Maciej Matyka Convolutional neural networks (CNN) are utilized to encode the relation between initial configurations of obstacles and three fundamental quantities in porous media: porosity ( ϕ ), permeability ( _k_ ), and tortuosity ( _T_ ). The two-dimensional systems with obstacles are considered. The fluid flow through a porous medium is simulated with the lattice Boltzmann method. The analysis has been performed for the systems with ϕ ∈ ( 0.37, 0.99 ) which covers five orders of magnitude a span for permeability _k_ ∈ ( 0.78, 2.1 × 10 <sup>5</sup> ) and tortuosity _T_ ∈ ( 1.03, 2.74 ) . It is shown that the CNNs can be used to predict the porosity, permeability, and tortuosity with good accuracy. With the usage of the CNN models, the relation between _T_ and ϕ has been obtained and compared with the empirical estimate. Transport in porous media is ubiquitous: from the neuro-active molecules moving in the brain extracellular ­space <sup>1,2</sup>, water percolating through granular ­soils <sup>3</sup> to the mass transport in the porous electrodes of the Lithiumion ­batteries <sup>4</sup> used in hand-held electronics. The research in porous media concentrates on understanding the connections between two opposite scales: micro-world, which consists of voids and solids, and the macro-scale of porous objects. The macroscopic transport properties of these objects are of the key interest for various industries, including ­healthcare <sup>5</sup> and ­mining <sup>6</sup> . Macroscopic properties of the porous medium rely on the microscopic structure of interconnected pore space. The shape and complexity of pores depend on the type of medium. Indeed, the pores can be elongated and interwoven showing a high porosity and anisotropy like in fibrous ­media <sup>7,8</sup> . On the other hand, the medium can be of low porosity with a tight network of twisted channels. For instance, in rocks and shales, as a result of erosion or cracks, large fissures can be intertwined in various ­ways <sup>6</sup> . Porosity ( ϕ ), permeability ( _k_ ), and tortuosity ( _T_ ) are three parameters that play an important role in the description and understanding of the transport through the porous medium. The porosity is the fundamental number that describes the fraction of voids in the medium. The permeability defines the ability of the medium to transport fluid. Eventually, the tortuosity characterizes the paths of particles transported through the ­medium <sup>9,10</sup> . The porosity, permeability, and tortuosity are related by the Carman-Kozeny <sup>11</sup> law, namely, <u>ϕ</u> <sup>3</sup> k = cT <sup>2</sup> S <sup>2</sup> <sup>,</sup> (1) where _S_ is the specific surface area of pores and _c_ is the shape factor. The tortuosity is defined as the elongation of the flow paths in the pore ­space <sup>12,13</sup> : (2) T = <sup><u>L</u></sup> L <sup><u>ef</u></sup> <sup>,</sup> where Leff is an effective path length of particles in pore space and _L_ is a sample length ( L < Leff and thus, T - 1 ). The _T_ is calculated from the velocity field obtained either experimentally or numerically. There are experimental techniques for particle path imaging in a porous medium, like particle image ­velocimetry <sup>14</sup> . However, they have limitations due to the types of the porous medium. There are two popular numerical approaches for estimation of _T_ . In the first, the particle paths are generated by the integration of the equation of motion of fluid ­particles <sup>11,12</sup> . In the other, used in this work, _T_ is calculated directly from the velocity field by averaging its ­components <sup>11,15</sup> . Indeed, the tortuosity is given by the expression Institute of Theoretical Physics, Faculty of Physics and Astronomy, University of Wrocław, pl. M. Borna 9, 50‑204 Wrocław, Poland. <sup>*</sup> email: krzysztof.graczyk@uwr.edu.pl (3) T = <sup><u>�u�</u></sup> �ux� <sup>,</sup> <sup><u>�u�</u></sup> �ux� <sup>,</sup> where ⟨u⟩ is the average of the magnitude of fluid velocity and ⟨ux⟩ is the average of its component along macroscopic direction of the ­flow <sup>15</sup> . The pedagogical review of the approach is given by Matyka and ­Koza <sup>16</sup>, where the main features of the approach are explained in Figs. 3 and 5. Calculating the flow in the real porous medium, with the complicated structure of pores, requires either a special procedure for grid generation in the standard Navier-Stokes ­solvers <sup>17</sup> or usage of a kind of mesoscopic lattice gas-based ­methods <sup>18</sup> . Nevertheless of the type of solver used for the computation, the simulation procedure is time and computer resource consuming. Thus we propose the convolutional neural networks (CNN) based approach to simplify and speed up the process of computing the basic properties of a porous medium. The deep learning (DL) <sup>19</sup> is a part of the machine learning and artificial intelligence methods. It allows one to analyze or describe complex data. It is useful in optimizing the complicated numerical models. Eventually, it is a common practice to use the DL in problems not described analytically. The DL finds successful applications to real-life ­problems <sup>20</sup> like automatic speech recognition, visual-image recognition, natural language processing, medical image analysis, and others. The DL has become an important tool in science as well. Recently, the number of applications of the DL methods to problems in physics and material science grows ­exponentially <sup>21</sup> . One of the standard applications is to use the machine learning models to analyze the experimental ­data <sup>22</sup> . The deep neural networks are utilized to study the phase structure of the quantum and classical ­matters <sup>23</sup> . The DL is applied to solve the ordinary differential ­equations <sup>24–26</sup> . There are applications of the DL approaches to the problems of fluid dynamics. Here, the main idea is to obtain the relations between the system represented by the picture and the physical quantities, like velocities, pressure, etc. The DL is one of the tools considered in the investigation of the transport in a porous medium. For instance, the neural networks are used to obtain porous material parameters from the wave ­propagation <sup>27</sup> . The permeability is evaluated using the multivariate structural ­regression <sup>28</sup> . It is obtained directly from the ­images <sup>29</sup> too. The fluid flow field predictions by CNNs, based on the sphere packing input data, are given by Santos et al. <sup>30</sup> . The advantages of the usage of the machine learning techniques over physical models, in computing permeability of cemented sandstones, are shown by Male et al. <sup>31</sup> . The predictions of the tortuosity, for unsaturated flows in porous media, based on the scanning electron microscopy images, have been given by Zhang et al. <sup>32</sup> . Eventually, the diffusive transport properties have been investigated with CNNs, which take for the input the images of the media geometry ­only <sup>33</sup> . Our goal is to find the dependence between the configurations of obstacles, represented by the picture, and the porosity, permeability, and tortuosity. The relation is going to be encoded by the convolutional neural network, which for the input takes the binary picture with obstacles and it gives, as an output, the vector (ϕ, k, T) . To automate, simplify, and optimize the process we use the state of the art of CNNs and DL techniques combined with the geometry input and fluid solver based outputs. Namely, to train the networks, we consider a large number of synthetic, random, porous samples with controllable porosity. From various models and types of complex phenomena related to porous media flow like multi-phase <sup>18</sup>, multi-scale <sup>34</sup>, ­regular <sup>35</sup>, ­irregular <sup>7</sup> or even ­granular <sup>36</sup> media we chose the model of single-phase fluid flow through randomly deposited overlapping quads—the singlescale porous media model with controllable porosity. The training data set contains the porous media geometries with corresponding numerical values of the porosity, permeability, and tortuosity. The two latter variables are obtained from the flow simulations done with the lattice Boltzmann solver. As a result of the analysis, we obtain two CNN models which predict the porosity, permeability, and tortuosity with good accuracy. The relative difference between the predictions and the ’true’ values, for our best model, does not exceed 6% . Eventually, we generate a blind set of geometry data for which we make predictions of the tortuosity and porosity. The obtained T(ϕ) dependence is in qualitative agreement with the empirical fits. The paper is organized as follows: in “Lattice Boltzmann method” section the lattice Boltzmann method is introduced, “Deep learning approach” section describes the CNN approach and the method of the data generation, whereas “Results and summary” section contains the discussion of the numerical results and summary. Lattice Boltzmann method The data set consists of the rectangular pictures of the configuration of obstacles with corresponding quantities (labels): ϕ, _k_, and _T_, which are calculated from the lattice Boltzmann method (LBM) flow simulations. The LBM has confirmed its capability to solve complex flows in complicated porous ­geometries <sup>37</sup> . It is based on the density distribution function, which is transported according to the discrete Boltzmann equation. In the single relaxation time approximation the transport equation reads: Lattice Boltzmann method The data set consists of the rectangular pictures of the configuration of obstacles with corresponding quantities (labels): ϕ, _k_, and _T_, which are calculated from the lattice Boltzmann method (LBM) flow simulations. <u>∂f</u> τ <sup>(f</sup> <sup>−</sup> <sup>g),</sup> (4) ∂t <sup>+ �v · ∇f</sup> <sup>= −</sup> <sup><u>1</u></sup> ⃗ ⃗ τ <sup>(f</sup> <sup>−</sup> <sup>g),</sup> <sup><u>1</u></sup> where f (r⃗, t) is the density distribution function, v⃗ is the macroscopic velocity, τ is the relaxation time and _g_ is the Maxwell-Boltzmann distribution function at given velocity and density (see Duda et al. <sup>15</sup> and He and ­Lu <sup>38</sup> ). The LBM solver provides information about the time evolution of the density function, which is used to evaluate the velocity field. We consider the pore-scale approach—the obstacles are completely solid, while the pores are completely permeable. Hence the velocity field is solved at the pore space. Each simulation starts with the zero velocity condition. The sample is exposed to an external gravity force that pushes the flow. Notice that we keep the number of iterations larger than 10,000 and less than 1,000,000. For the steady-state condition, we take the sum of the relative change of the velocity field in the pore space: Figure 1. The exemplary pore-scale velocity magnitude in the fluid flow calculated using the LBM based on configurations from Fig. 2—brighter the color larger velocity. Contrast and brightness are adjusted to visualize the structure of emerged flow paths. Figure 2. Exemplary random porous samples at porosity ϕ = 0.95, 0.8 and 0.5 (from left to right), size 800 × 400 . Black blocks represent obstacles for the flow, while the interconnected light gray area is the pore space filled by fluid. Black clusters, visible for ϕ = 0.5, are the effect of the filling-gap algorithm used for prepossessing of the data, after generating with random deposition procedure. The gaps are not accessible for the fluid and, thus, we fill them before they are provided to the fluid solver and neural network. , (ui,j − ui <sup><u>′</u></sup> <u>i</u> <sup><u>′</u></sup> <u>,j</u> <sup>)2</sup> c = ui <sup>2</sup>,j, (5) i,j ui <sup>2</sup>,j i,j where _u_ is the local velocity at the current time step (taken at nodes _i_, _j_ ), and u <sup>′</sup> is the velocity at time step 500 times steps earlier. The local change of the velocity is monitored to verify if the steady-state is achieved. The exemplary velocity field resulting from the above procedure is shown in Fig. 1. Deep learning approach Convolutional neural networks. The convolutional neural networks are used to code the information about the dependence between the initial configuration of obstacles, represented by the picture, and the porosity, tortuosity as well as permeability. The CNN is a type of deep neural network designed to analyze multi-channel pictures. It has been successfully applied for the ­classification <sup>39</sup> and the non-linear regression ­problems <sup>40</sup> . The CNN consists of a sequence of convolutional blocks and fully connected layers. In the simplest scenario, a single block contains a convolutional layer with several kernels. Usually, the pooling layer follows on the convolutional layer, while in the hidden layer, the rectified linear units (ReLU) <sup>40</sup> are considered, as the activation functions. The theoretical foundations of the convolutional networks are given by Goodfellow et al. <sup>41</sup> . A kernel extracts a single feature of the input. The first layer of the CNN collects the simplest objects (features) such as edges, corners, etc. The next layers relate extracted features. The role of the pooling layer is to amplify the signal from the features as well as to reduce the size of the input. Usually, a sequence of fully connected layers follows on the section of the convolutional blocks. The CNNs considered in this work contain the batch normalization ­layers <sup>42</sup> . This type of layer has been proposed to maintain the proper normalization of the inputs. It has been shown that having the batch normalization layers improves the network performance on the validation set. Moreover, it is a method of regularization, which is an alternative to the dropout ­technique <sup>43</sup> . Data. We consider the random deposition model of a porous medium. It is the popular method for generating porous structures for numerical ­solvers <sup>44,45</sup> . The samples are build of overlapping quad solids laying on the two-dimensional surface. A total number of 100,000 one-channel figures with obstacles and predicted values of the porosity, tortuosity, and permeability have been prepared. A given figure, see Fig. 2, is the binary picture of the size 800 × 400 . It includes two vertical margins of the width 200 (pixels) each. The margins are kept to reduce the influence of boundaries on the calculations of the porosity, tortuosity, and permeability. But, for the CNN analysis, they do <u>Porosity</u> <u>Permeability</u> <u>Tortuosity</u> <u>Min</u> <u>0.37</u> <u>0.78</u> <u>1.03</u> <u>Max</u> <u>0.99</u> 2.1 × 10 <sup>5</sup> <u>2.74</u> Table 1. The ranges of the porosity, permeability, and tortuosity obtained for the ensemble of 100,000 samples of the systems generated within the fluid flow simulation procedure. Figure 3. The distribution of the generated samples (training and validation data sets together) with respect to porosity, permeability, and tortuosity. not contain the information. Hence in the training and inference process, the picture without margins is taken as an input for the network. Effectively, the input has the size 400 × 400. Each figure consists of 400 × 400 nodes, which are either free or blocked for the fluid flow. The periodic boundary condition is set at sides with margins, whereas two remaining sides are considered no-slip boundary condition. To generate the medium at given porosity, we start with an empty system and systematically add 4 × 4 quad obstacles at random positions in the porous region. The margins are excluded from this deposition procedure. We do not consider blocking of sites, thus, obstacles may overlap freely. Each time an obstacle is placed, we update current porosity and stop, if the desired value is reached. In the next step of the generation of figures, we use the simple flood-filling algorithm to eliminate all the non-physical islands from each sample—Island is the pore volume completely immersed in solids. The exemplary porous samples, at three different porosity values, are shown in Fig. 2. Having the binary images of the pore space, the LBM solver calculates the velocity distribution from which the quantities of interest: the porosity, tortuosity, and permeability are obtained. The success of the training of the network is determined by the quality of the data, its representative ability. The data should uniformly cover the space of label parameters. The ranges of the porosity, permeability, and tortuosity, for the systems discussed in our analysis, are given in Table 1. In the initial stage of the system generation procedure, the porosity of samples has been chosen from the uniform distribution. However, some of the samples have been not permeable. Therefore we notice the skewed character of the porosity distribution (see Fig. 3, left). As a consequence, the tortuosity distribution is skewed as well, with most of the systems at T < 1.5 . We found a few systems with T - 2.0 at low permeability, but they have been rejected from the final analysis because the predictions of the LBM solver are uncertain in this range. Moreover, to improve the learning process for higher porosity values, we generated additional samples with porosity ϕ - 0.85 . As a result, an important fraction of the samples belongs to the tail of the distributions. Training the network with such distributed data leads to the model with excellent performance on the data from the peak of distribution, and with the low predictive ability, for the systems from the tail of the distribution. We partially solve this problem by considering the re-weighted distribution of samples, namely, - the data are binned in the two-dimensional histogram in the permeability and tortuosity; - for every bin we calculate the weight given by the ratio of the total number of samples to the number of samples in a given bin; - the ratios form the re-weighted distribution of the samples; - during the training, labeled figures in the mini-batch, are sampled from the re-weighted distribution. Another standard procedure, adapted by us, is the transformation of labels, so that, they have the values on the neighborhood of zero. ϕ →ϕ/ϕs − <u>ϕ</u> (6) T →T/Ts − T. (7) In the case of the permeability, instead of _k_, we consider log of _k_ and do re-scaling: k → log(k)/ log(ks) − log(k). (8) In the final analyses the following settings are used: ϕs = 1.0, <u>ϕ</u> = 0.5, Ts = 2.8, T = 0.5 as well as log(ks) = 12.3, log(k) = 0.5 . Network architecture. In order to define the CNN architecture we introduce the blocks: - _C_ ( _N_, _K_, _S_, _P_, _act_ ) convolutional layer with: _N_ kernels of the size K × K with the stride _S_, padding _P_ and _act_ - activation function; - MP(K = 2) ≡ MP() max pooling layer of the size K × K; - _B_ ()—batch normalization layer; - _F_ ( _M_, _act_ ) fully connected layer with activation function _act_ . The code has been implemented using the PyTorch ­library <sup>47</sup> . We distinguish two types of the analyses: (A) the input figures are re-sized to 200 × 200; (B) the input figures are original of size 400 × 400. In the first case, the training of the network is faster, however, a fraction of the information, hidden in the figures, might be lost. In the other, the training is slower, but full information is utilized in the analysis. For the analysis (A) we consider a network netA . It contains six convolutional blocks and two (including output) fully connected layers (see Fig. 4), namely: input →C(10, 10, 1, 0, ReLU) · B() · MP() →C(20, 7, 1, 0, ReLU) · B() · MP() →C(40, 5, 1, 0, ReLU) · B() · MP() →C(80, 3, 1, 0, ReLU) · MP() →C(160, 2, 1, 0, ReLU) · MP() →C(400, 2, 1, 0, ReLU) · MP() →F(10, tanh) →F(3, id) = output, (9) where _id_ is identity map and tanh refers to hyperbolic tangent. The network, netB, used in the analysis (B), contains seven convolutional blocks and two (including output) fully connected layers, namely: input →C(10, 5, 1, 2, ReLU) · MP() →C(10, 10, 1, 0, ReLU) · B() · MP() →C(20, 7, 1, 0, ReLU) · B() · MP() →C(40, 5, 1, 0, ReLU) · B() · MP() →C(80, 3, 1, 0, ReLU) · MP() →C(160, 2, 1, 0, ReLU) · MP() →C(400, 2, 1, 0, ReLU) · MP() →F(10, tanh) →F(3, id) = output (10) Notice that the first three CNN blocks in netA and three subsequent blocks (starting from second) in netB contain the batch normalization layers. Training. The generated data set has been split into the training ( 85% of the total number) and validation ( 15% of the total number) data sets. After the cut in the tortuosity, we have 84,917 and 14,986 samples in training and validation data sets, respectively. In the pre-analysis, we considered two types of loss functions, namely, the mean absolute error (MAE) and mean square error (MSE). The MAE is more sensitive to the outliers. However, our preliminary experiments showed that optimization of the MSE leads to the models with better performance on the validation set than Training. The generated data set has been split into the training ( 85% of the total number) and validation ( 15% of the total number) data sets. After the cut in the tortuosity, we have 84,917 and 14,986 samples in training and validation data sets, respectively. ϕ _<u>k</u>_ _<u>T</u>_ netA <u>Training set</u> R <u>− 5.27e−04</u> <u>− 8.63e−04</u> <u>− 1.65e−04</u> <sup>~~<u>√</u>~~</sup> Var(R) <u>9.40e−03</u> <u>7.54e−02</u> <u>2.47e−03</u> <u>Validation set</u> R <u>− 5.83e−04</u> <u>− 8.88e−04</u> <u>− 1.37e−04</u> <sup>~~<u>√</u>~~</sup> Var(R) <u>9.33e−03</u> <u>5.55e−02</u> <u>2.45e−03</u> netB <u>Training set</u> R <u>− 2.64e−04</u> <u>− 1.91e−04</u> <u>2.81e−06</u> <sup>~~<u>√</u>~~</sup> Var(R) <u>7.44e−03</u> <u>3.35e−02</u> <u>2.01e−03</u> <u>Validation set</u> <u>Mean</u> <u>− 3.64e−04</u> <u>− 1.48e−03</u> <u>− 1.70e−05</u> <sup>~~<u>√</u>~~</sup> Var(R) <u>7.31e−03</u> <u>6.28e−01</u> <u>2.07e−03</u> Table 2. The mean of R and <sup>~~√~~</sup> Var(R) computed from the predictions of networks netA and netB. _R_ is defined by Eq. (11). Figure 4. The network netA architecture. It contains six convolutional blocks and two (including output) fully connected layers. Each convolutional block contains the max pooling layer. The first three convolutional blocks consist of the batch normalization layers. The graph was drawn using NN-SVG <sup>46</sup> . the models optimized with the MAE. Therefore, the final analysis has been run with the MSE loss. During each epoch step, we calculate the error on the validation data set. The model with the smallest error value is saved. The stochastic gradient descent (SGD) algorithm, in the mini-batch version, has been utilized for the ­training <sup>48,49</sup> . The mini-batch contains 250 (analysis (A)) and 65 (analysis (B)) samples, respectively. SGD is one of the simplest learning algorithms. But it is known that it regularizes naturally the networks. As a result, the obtained models work better on the validation data ­set <sup>20,50,51</sup> . Results and summary One of the difficulties in the DL analyses is a proper choice of the hyperparameters, such as the size of the mini-batch, the optimization algorithm parameters, number of the CNN blocks, the size of the kernels, etc. We experimented with various configurations of the hyperparameters. Eventually, we established the final settings, namely, the SGD algorithm is run with the momentum 0.9 and the initial value of the learning rate 0.1. The latter parameter is reduced by 10% every 50 epoch of the training. The sizes of the mini-batches as well as network architectures are reported in the previous section. Both network architectures are constructed so that the number of filters in the CNN increases, while the size of the inputs of the subsequent layers reduces with the depth of the network. The kernels in the first layer of the netB are relatively large ( K = 10 ). In the subsequent layers, the kernels are smaller. The nB is the network netA with an additional input layer. In the case of the netA, instead of the layer with K = 10, the input is re-sized. In both network schemes, (A) and (B), the output of the last CNN layer is a vector of the length 400. The best model is the one with the smallest error on the validation set. Figs. 5 and 6 present the results for model netA, whereas Figs. 7 and 8 show the results for the analysis (B). In each figure, the predictions of the Figure 5. Predictions of the porosity, permeability, and tortuosity by the CNN versus ‘true‘ data (upper row). In the bottom row, the histograms of _R_, see Eq. (11), are plotted. The results are obtained for analysis (A) and the training data set. Solid line, in the top row, represents predicted <u>= true equality.</u> Figure 6. Caption the same as in Fig. 5 but the predictions are made for the validation data set. porosity, permeability, and tortuosity versus the ‘true’ (as obtained from the LBM solver) values are plotted. Additionally, each figure contains the histograms of ratio , (11) R = 1 − <sup><u>predicted</u></sup> true where _R_ is computed for the porosity, permeability and tortuosity. More quantitative description of the histograms is given in Table 2, in which the mean (R ) and variance <sup>~~√~~</sup> Var(R) computed for all presented histograms are given. The variable _R_ is more informative than the standard metrics MSE or MAE, which give only qualitative information about goodness of fit. Notice that we present the network predictions for the training and validation data sets. The agreement between the network’s predictions and ‘true’ values seems to be pretty good. The performance of both networks is comparable. However, netA, with the resized input, seems to work better on the validation data set. Both models predict porosity well. The difficulties appeared in modeling the permeability and tortuosity. Figure 7. Predictions of porosity, permeability, and tortuosity by CNN versus ‘true‘ data (upper row). In the bottom row, the histograms of _R_, see Eq. (11), are plotted. The results are obtained for analysis (B) and the training data set. Solid line, in the top row, represents predicted <u>= true equality.</u> Figure 8. Caption the same as in Fig. 7 but the predictions are made for the validation data set. Indeed, it was difficult to obtain accurate model predictions for the low permeability and the tortuosity T - 1.75 . The re-weighting procedure described above, allowed to partially solve this problem. Another improvement is given by including the batch normalization layers in the network architecture. In the analysis (A), for a large fraction of samples the relative difference between the network response and the ’true’ value is smaller than 6% . The most accurate predictions are obtained for the porosity and tortuosity. Indeed, the difference between ’true’ and predicted is smaller than 1% . Model netB computes the porosity and tortuosity with similar accuracy as the model netA, but the predictions of the permeability are rather uncertain in this case. The fact that the performance of both models is comparable shows that, in the case of porous media studied here, re-sizing of the input in the analysis (A) reduces only a small amount of information about the system. Moreover, model (A) has better performance on the validation data set than model (B). Hence, in our analysis, the re-sizing of the input figures works as a regularization of the model. Both data sets, training, and validation are used in the optimization process. Hence to examine the quality of obtained models we generated the third set of the data. It contains 1, 300 unlabelled samples. This data set Figure 9. Tortuosity versus porosity: solid line represents empirical relation T(ϕ) = 1 − 0.77 log(ϕ) obtained within classical fluid flow ­approach <sup>12</sup> . The points are obtained from the unlabelled data set. is used to reconstruct the dependence between porosity and tortuosity, see Fig. 9). The obtained T(ϕ) relation agrees with the empirical fit from the analysis of the fluid ­flow <sup>12</sup> on qualitative level. Indeed, tortuosity grows with ϕ → ϕc, where ϕc is the percolation threshold ( ϕ ≈ 0.4 for overlapping quads ­model <sup>52</sup> ). Due to the finite size of the considered system, the actual percolation threshold is not sharp, and tortuosity around ϕc is underestimated in this area. The origin of the drop in the tortuosity below ϕc is the finite size of samples. To summarize, we have shown that the convolutional neural network technique is a good method for predicting the fundamental quantities of the porous media such as the porosity, permeability, and tortuosity. The predictions are made base on the analysis of the pictures representing the two-dimensional systems. The two types of networks have been discussed. In the first, the input pictures were resized, in the other, the input had the original size. We obtained good accuracy of predictions for all three quantities. The network models reproduce the empirical dependence between the tortuosity and porosity obtained in the previous ­studies <sup>12</sup> . Received: 16 July 2020; Accepted: 17 November 2020 References 1. Rusakov, D. A. & Kullmann, D. M. Geometric and viscous components of the tortuosity of the extracellular space in the brain. _Proc. Natl. Acad. Sci._ 95, 8975–8980 (1998). 2. Syková, E. & Nicholson, C. Diffusion in brain extracellular space. _Physiol. Rev._ 88, 1277–1340 (2008). 3. Nguyen, T. T. & Indraratna, B. The role of particle shape on the hydraulic conductivity of granular soils captured through Kozeny Carman approach. _Géotechnique Lett._ 10, 398–403 (2020). 4. Hossain, M. S. _et al._ Effective mass transport properties in lithium battery electrodes. _ACS Appl. Energy Mater._ 3, 440–446 (2019). 5. Suen, L., Guo, Y., Ho, S., Au-Yeung, C. & Lam, S. Comparing mask fit and usability of traditional and nanofibre n95 filtering facepiece respirators before and after nursing procedures. _J. Hosp. Infect._ (2019). 6. Huaqing, X. _et al._ Effects of hydration on the microstructure and physical properties of shale. _Petrol. Explor. Dev._ 45, 1146–1153 (2018). 7. Koponen, A. _et al._ Permeability of three-dimensional random fiber webs. _Phys. Rev. Lett._ 80, 716 (1998). 8. Shou, D., Fan, J. & Ding, F. Hydraulic permeability of fibrous porous media. _Int. J. Heat Mass Transf._ 54, 4009–4018 (2011). 9. Backeberg, N. R. _et al._ Quantifying the anisotropy and tortuosity of permeable pathways in clay-rich mudstones using models based on x-ray tomography. _Sci. Rep._ 7, 1–12 (2017). 10. Niya, S. R. & Selvadurai, A. A statistical correlation between permeability, porosity, tortuosity and conductance. _Transp. Porous_ _Media_ 121, 741–752 (2018). 11. Koponen, A., Kataja, M. & Timonen, J. Permeability and effective porosity of porous media. _Phys. Rev. E_ 56, 3319 (1997). 12. Matyka, M., Khalili, A. & Koza, Z. Tortuosity-porosity relation in porous media flow. _Phys. Rev. E_ 78, 026306 (2008). 13. Ghanbarian, B., Hunt, A. G., Ewing, R. P. & Sahimi, M. Tortuosity in porous media: A critical review. _Soil Sci. Soc. Am. J._ 77, 1461–1477 (2013). 14. Morad, M. R. & Khalili, A. Transition layer thickness in a fluid-porous medium of multi-sized spherical beads. _Exp. Fluids_ 46, 323 (2009). 15. Duda, A., Koza, Z. & Matyka, M. Hydraulic tortuosity in arbitrary porous media flow. _Phys. Rev. E Stat. Nonlinear Soft Matter Phys._ 84, 036319 (2011). 16. Matyka, M. & Koza, Z. How to calculate tortuosity easily? In _AIP Conference Proceedings 4_, Vol. 1453, 17–22 (American Institute of Physics, 2012). 17. Boccardo, G., Crevacore, E., Passalacqua, A. & Icardi, M. Computational analysis of transport in three-dimensional heterogeneous materials: an openfoamR©-based simulation framework. _Comput. Vis. Sci._ [https​://doi.org/10.1007/s0079​1-020-00321​-6 (2020).](https://doi.org/10.1007/s00791-020-00321-6) 18. Bakhshian, S., Hosseini, S. A. & Shokri, N. Pore-scale characteristics of multiphase flow in heterogeneous porous media using the lattice Boltzmann method. _Sci. Rep._ 9, 1–13 (2019). 19. LeCun, Y., Bengio, Y. & Hinton, G. Deep learning. _Nature_ 521, 436EP (2015). 20. Rumelhart, D. E., Hinton, G. E. & Williams, R. J. Learning representations by back-propagating errors. _Nature_ 323 [, 533–536. https​](https://doi.org/10.1038/323533a0) [://doi.org/10.1038/32353​3a0 (1986).](https://doi.org/10.1038/323533a0) 21. Mehta, P. _et al._ A high-bias, low-variance introduction to machine learning for physicists. _Phys. Rep._ 810 [, 1–124. https​://doi.](https://doi.org/10.1016/j.physrep.2019.03.001) [org/10.1016/j.physr​ep.2019.03.001 (2019).](https://doi.org/10.1016/j.physrep.2019.03.001) 22. Graczyk, K. M. & Juszczak, C. Proton radius from Bayesian inference. _Phys. Rev. C_ 90 [, 054334. https​://doi.org/10.1103/PhysR​](https://doi.org/10.1103/PhysRevC.90.054334) [evC.90.05433​4 (2014) (](https://doi.org/10.1103/PhysRevC.90.054334) 1408.0150 ). 23. Carrasquilla, J. _Machine Learning for Quantum Matter_ [arXiv​:2003.11040​ (2020).](http://arxiv.org/abs/2003.11040) 24. Lagaris, I., Likas, A. & Fotiadis, D. Artificial neural network methods in quantum mechanics. _Comput. Phys. Commu._ 104, 1–14. [https​://doi.org/10.1016/S0010​-4655(97)00054​-4 (1997).](https://doi.org/10.1016/S0010-4655%0x2897%0x2900054-4) 25. Özbay, A. G., Laizet, S., Tzirakis, P., Rizos, G. & Schuller, B. _Poisson CNN: Convolutional neural networks for the solution of the_ _Poisson equation with varying meshes and Dirichlet boundary conditions_ [arXiv preprint arXiv​:1910.08613​ (2019).](http://arxiv.org/abs/1910.08613) 26. Pannekoucke, O. & Fablet, R. Pde-netgen 1.0: from symbolic pde representations of physical processes to trainable neural network [representations. arXiv preprint arXiv​:2002.01029​ (2020).](http://arxiv.org/abs/2002.01029) 27. Lähivaara, T., Kärkkäinen, L., Huttunen, J. M. & Hesthaven, J. S. Deep convolutional neural networks for estimating porous mate rial parameters with ultrasound tomography. _J. Acoust. Soc. Am._ 143, 1148–1158 (2018). 28. Andrew, M. Permeability prediction using multivariant structural regression. In _E3S Web of Conferences_, vol. 146, 04001 (EDP Sciences, 2020). 29. Wu, J., Yin, X. & Xiao, H. Seeing permeability from images: fast prediction with convolutional neural networks. _Sci. Bull._ 63, 1215–1222 (2018). 30. Santos, J. E. _et al._ Poreflow-net: a 3d convolutional neural network to predict fluid flow through porous media. _Adv. Water Resour._ 138 [, 103539. https​://doi.org/10.1016/j.advwa​tres.2020.10353​9 (2020).](https://doi.org/10.1016/j.advwatres.2020.103539) 31. Male, F., Jensen, J. L. & Lake, L. W. Comparison of permeability predictions on cemented sandstones with physics-based and machine learning approaches. _J. Nat. Gas Sci. Eng._ 77, 103244 (2020). 32. Zhang, S., Tang, G., Wang, W., Li, Z. & Wang, B. Prediction and evolution of the hydraulic tortuosity for unsaturated flow in actual porous media. _Microporous Mesoporous Mater._ 298, 110097 (2020). 33. Wu, H., Fang, W.-Z., Kang, Q., Tao, W.-Q. & Qiao, R. Predicting effective diffusivity of porous media from images by deep learning. _Sci. Rep._ 9, 1–12 (2019). 34. Sabet, S., Mobedi, M. & Ozgumus, T. A pore scale study on fluid flow through two dimensional dual scale porous media with small number of intraparticle pores. _Polish J. Chem. Technol._ 18, 80–92 (2016). 35. Ozgumus, T., Mobedi, M. & Ozkol, U. Determination of Kozeny constant based on porosity and pore to throat size ratio in porous medium with rectangular rods. _Eng. Appl. Comput. Fluid Mech._ 8, 308–318 (2014). 36. Sobieski, W., Matyka, M., Gołembiewski, J. & Lipiński, S. The path tracking method as an alternative for tortuosity determination in granular beds. _Granular Matter_ 20, 72 (2018). 37. Succi, S. _The Lattice Boltzmann Equation: For Fluid Dynamics and Beyond_ (Oxford University Press, Oxford, 2001). 38. He, X. & Luo, L.-S. Theory of the lattice Boltzmann method: From the Boltzmann equation to the lattice Boltzmann equation. _Phys. Rev. E_ 56, 6811 (1997). 39. Lecun, Y., Bottou, L., Bengio, Y. & Haffner, P. Gradient-based learning applied to document recognition. _Proc. IEEE_ 86, 2278–2324 (1998). 40. Nair, V. & Hinton, G. E. Rectified linear units improve restricted boltzmann machines. In _Proceedings of the 27th International_ _Conference on Machine Learning (ICML-10)_ (eds Fürnkranz, J. & Joachims, T.), 807–814 (2010). 41. Goodfellow, I., Bengio, Y. & Courville, A. _Deep Learning_ (MIT Press, London, 2016). 42. Ioffe, S. & Szegedy, C. _Batch normalization: Accelerating deep network training by reducing internal covariate shift_ arXiv preprint [arXiv​:1502.03167​ (2015).](http://arxiv.org/abs/1502.03167) 43. Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I. & Salakhutdinov, R. Dropout: A simple way to prevent neural networks from overfitting. _J. Mach. Learn. Res._ 15, 1929–1958 (2014). 44. Chueh, C., Bertei, A., Pharoah, J. & Nicolella, C. Effective conductivity in random porous media with convex and non-convex porosity. _Int. J. Heat Mass Transf._ 71, 183–188 (2014). 45. Li, Z., Galindo-Torres, S., Yan, G., Scheuermann, A. & Li, L. A lattice Boltzmann investigation of steady-state fluid distribution, capillary pressure and relative permeability of a porous medium: Effects of fluid and geometrical properties. _Adv. Water Resour._ 116, 153–166 (2018). 46. LeNail, A. Nn-svg: Publication-ready neural network architecture schematics. _J. Open Source Softw._ 4, 747 (2019). 47. Paszke, A. _et al._ Pytorch: An imperative style, high-performance deep learning library. In _Advances in Neural Information Processing_ _Systems 32_, 8024–8035 (Curran Associates, Inc., 2019). 48. Bottou, L. _Stochastic Gradient Descent Tricks_ 421–436 (Springer, Berlin, 2012). 49. Sutskever, I., Martens, J., Dahl, G. & Hinton, G. On the importance of initialization and momentum in deep learning. In _Proceed-_ _ings of the 30th International Conference on Machine Learning_, vol. 28 of _Proceedings of Machine Learning Research_ (eds Dasgupta, S. & McAllester, D.) 1139–1147 (PMLR, Atlanta, 2013). 50. Bishop, C. M. Training with noise is equivalent to Tikhonov regularization. _Neural Comput._ 7 [, 108–116. https​://doi.org/10.1162/](https://doi.org/10.1162/neco.1995.7.1.108) [neco.1995.7.1.108 (1995).](https://doi.org/10.1162/neco.1995.7.1.108) 51. Keskar, N. S., Mudigere, D., Nocedal, J., Smelyanskiy, M. & Tang, P. T. P. _On large-batch training for deep learning: Generalization_ _gap and sharp minima_ [arXiv preprint arXiv​:1609.04836​ (2016).](http://arxiv.org/abs/1609.04836) 52. Koza, Z., Matyka, M. & Khalili, A. Finite-size anisotropy in statistically uniform porous media. _Phys. Rev. E Stat. Nonlinear Soft_ _Matter Phys._ 79, 066306 (2009). Acknowledgements The publication was partially financed by the Initiative Excellence–Research University program for University of Wroclaw. Author contributions K.G. and M.M. conceived and conducted the project. K.G. designed and performed the deep learning analysis. M.M. designed and performed fluid flow simulations. K.G. and M.M. wrote and reviewed the manuscript. Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to K.M.G. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from [the copyright holder. To view a copy of this licence, visit http://creat​iveco​mmons​.org/licen​ses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2020

섹션 본문 37문단 · 21,041자

(제목 없음)

1Convolutional neural networks (CNN) are utilized to encode the relation between initial configurations of obstacles and three fundamental quantities in porous media: porosity ( ϕ ), permeability (k), and tortuosity (T). The two-dimensional systems with obstacles are considered. The fluid flow through a porous medium is simulated with the lattice Boltzmann method. The analysis has been performed for the systems with ϕ ∈ (0.37, 0.99) which covers five orders of magnitude a span for permeability k ∈ (0.78, 2.1 × 10 5 ) and tortuosity T ∈ (1.03, 2.74) . It is shown that the CNNs can be used to predict the porosity, permeability, and tortuosity with good accuracy. With the usage of the CNN models, the relation between T and ϕ has been obtained and compared with the empirical estimate.

2where S is the specific surface area of pores and c is the shape factor. The tortuosity is defined as the elongation of the flow paths in the pore space 12,13 : where L eff is an effective path length of particles in pore space and L is a sample length ( L < L eff and thus, T > 1 ). The T is calculated from the velocity field obtained either experimentally or numerically. There are experimental techniques for particle path imaging in a porous medium, like particle image velocimetry 14 . However, they have limitations due to the types of the porous medium. There are two popular numerical approaches for estimation of T. In the first, the particle paths are generated by the integration of the equation of motion of fluid particles 11,12 . In the other, used in this work, T is calculated directly from the velocity field by averaging its components 11,15 . Indeed, the tortuosity is given by the expression www.nature.com/scientificreports/ where u is the average of the magnitude of fluid velocity and u x is the average of its component along macroscopic direction of the flow 15 . The pedagogical review of the approach is given by Matyka and Koza 16 , where the main features of the approach are explained in Figs. 3 and 5. Calculating the flow in the real porous medium, with the complicated structure of pores, requires either a special procedure for grid generation in the standard Navier-Stokes solvers 17 or usage of a kind of mesoscopic lattice gas-based methods 18 . Nevertheless of the type of solver used for the computation, the simulation procedure is time and computer resource consuming. Thus we propose the convolutional neural networks (CNN) based approach to simplify and speed up the process of computing the basic properties of a porous medium.

3The deep learning (DL) 19 is a part of the machine learning and artificial intelligence methods. It allows one to analyze or describe complex data. It is useful in optimizing the complicated numerical models. Eventually, it is a common practice to use the DL in problems not described analytically. The DL finds successful applications to real-life problems 20 like automatic speech recognition, visual-image recognition, natural language processing, medical image analysis, and others. The DL has become an important tool in science as well.

4Recently, the number of applications of the DL methods to problems in physics and material science grows exponentially 21 . One of the standard applications is to use the machine learning models to analyze the experimental data 22 . The deep neural networks are utilized to study the phase structure of the quantum and classical matters 23 . The DL is applied to solve the ordinary differential equations [24][25][26] . There are applications of the DL approaches to the problems of fluid dynamics. Here, the main idea is to obtain the relations between the system represented by the picture and the physical quantities, like velocities, pressure, etc.

5The DL is one of the tools considered in the investigation of the transport in a porous medium. For instance, the neural networks are used to obtain porous material parameters from the wave propagation 27 . The permeability is evaluated using the multivariate structural regression 28 . It is obtained directly from the images 29 too. The fluid flow field predictions by CNNs, based on the sphere packing input data, are given by Santos et al. 30 . The advantages of the usage of the machine learning techniques over physical models, in computing permeability of cemented sandstones, are shown by Male et al. 31 . The predictions of the tortuosity, for unsaturated flows in porous media, based on the scanning electron microscopy images, have been given by Zhang et al. 32 . Eventually, the diffusive transport properties have been investigated with CNNs, which take for the input the images of the media geometry only 33 .

6Our goal is to find the dependence between the configurations of obstacles, represented by the picture, and the porosity, permeability, and tortuosity. The relation is going to be encoded by the convolutional neural network, which for the input takes the binary picture with obstacles and it gives, as an output, the vector (ϕ, k, T) . To automate, simplify, and optimize the process we use the state of the art of CNNs and DL techniques combined with the geometry input and fluid solver based outputs. Namely, to train the networks, we consider a large number of synthetic, random, porous samples with controllable porosity. From various models and types of complex phenomena related to porous media flow like multi-phase 18 , multi-scale 34 , regular 35 , irregular 7 or even granular 36 media we chose the model of single-phase fluid flow through randomly deposited overlapping quads-the singlescale porous media model with controllable porosity. The training data set contains the porous media geometries with corresponding numerical values of the porosity, permeability, and tortuosity. The two latter variables are obtained from the flow simulations done with the lattice Boltzmann solver.

7As a result of the analysis, we obtain two CNN models which predict the porosity, permeability, and tortuosity with good accuracy. The relative difference between the predictions and the 'true' values, for our best model, does not exceed 6% . Eventually, we generate a blind set of geometry data for which we make predictions of the tortuosity and porosity. The obtained T(ϕ) dependence is in qualitative agreement with the empirical fits.

8The paper is organized as follows: in "Lattice Boltzmann method" section the lattice Boltzmann method is introduced, "Deep learning approach" section describes the CNN approach and the method of the data generation, whereas "Results and summary" section contains the discussion of the numerical results and summary.

Lattice Boltzmann method

9The data set consists of the rectangular pictures of the configuration of obstacles with corresponding quantities (labels): ϕ , k, and T, which are calculated from the lattice Boltzmann method (LBM) flow simulations.

10The LBM has confirmed its capability to solve complex flows in complicated porous geometries 37 . It is based on the density distribution function, which is transported according to the discrete Boltzmann equation. In the single relaxation time approximation the transport equation reads:

11where f ( r, t) is the density distribution function, v is the macroscopic velocity, τ is the relaxation time and g is the Maxwell-Boltzmann distribution function at given velocity and density (see Duda et al. 15 and He and Lu 38 ).

12The LBM solver provides information about the time evolution of the density function, which is used to evaluate the velocity field. We consider the pore-scale approach-the obstacles are completely solid, while the pores are completely permeable. Hence the velocity field is solved at the pore space. Each simulation starts with the zero velocity condition. The sample is exposed to an external gravity force that pushes the flow. Notice that we keep the number of iterations larger than 10,000 and less than 1,000,000. For the steady-state condition, we take the sum of the relative change of the velocity field in the pore space:

13Scientific Reports | (2020) 10:21488 | https://doi.org/10.1038/s41598-020-78415-x www.nature.com/scientificreports/ where u is the local velocity at the current time step (taken at nodes i,j), and u ′ is the velocity at time step 500 times steps earlier. The local change of the velocity is monitored to verify if the steady-state is achieved. The exemplary velocity field resulting from the above procedure is shown in Fig. 1.

Deep learning approach

14Convolutional neural networks. The convolutional neural networks are used to code the information about the dependence between the initial configuration of obstacles, represented by the picture, and the porosity, tortuosity as well as permeability. The CNN is a type of deep neural network designed to analyze multi-channel pictures. It has been successfully applied for the classification 39 and the non-linear regression problems 40 .

15The CNN consists of a sequence of convolutional blocks and fully connected layers. In the simplest scenario, a single block contains a convolutional layer with several kernels. Usually, the pooling layer follows on the convolutional layer, while in the hidden layer, the rectified linear units (ReLU) 40 are considered, as the activation functions. The theoretical foundations of the convolutional networks are given by Goodfellow et al. 41 .

16A kernel extracts a single feature of the input. The first layer of the CNN collects the simplest objects (features) such as edges, corners, etc. The next layers relate extracted features. The role of the pooling layer is to amplify the signal from the features as well as to reduce the size of the input. Usually, a sequence of fully connected layers follows on the section of the convolutional blocks.

17The CNNs considered in this work contain the batch normalization layers 42 . This type of layer has been proposed to maintain the proper normalization of the inputs. It has been shown that having the batch normalization layers improves the network performance on the validation set. Moreover, it is a method of regularization, which is an alternative to the dropout technique 43 . Data. We consider the random deposition model of a porous medium. It is the popular method for generating porous structures for numerical solvers 44,45 . The samples are build of overlapping quad solids laying on the two-dimensional surface.

18A total number of 100,000 one-channel figures with obstacles and predicted values of the porosity, tortuosity, and permeability have been prepared. A given figure, see Fig. 2, is the binary picture of the size 800 × 400 . It includes two vertical margins of the width 200 (pixels) each. The margins are kept to reduce the influence of boundaries on the calculations of the porosity, tortuosity, and permeability. But, for the CNN analysis, they do www.nature.com/scientificreports/ not contain the information. Hence in the training and inference process, the picture without margins is taken as an input for the network. Effectively, the input has the size 400 × 400. Each figure consists of 400 × 400 nodes, which are either free or blocked for the fluid flow. The periodic boundary condition is set at sides with margins, whereas two remaining sides are considered no-slip boundary condition. To generate the medium at given porosity, we start with an empty system and systematically add 4 × 4 quad obstacles at random positions in the porous region. The margins are excluded from this deposition procedure. We do not consider blocking of sites, thus, obstacles may overlap freely. Each time an obstacle is placed, we update current porosity and stop, if the desired value is reached. In the next step of the generation of figures, we use the simple flood-filling algorithm to eliminate all the non-physical islands from each sample-Island is the pore volume completely immersed in solids. The exemplary porous samples, at three different porosity values, are shown in Fig. 2. Having the binary images of the pore space, the LBM solver calculates the velocity distribution from which the quantities of interest: the porosity, tortuosity, and permeability are obtained.

19The success of the training of the network is determined by the quality of the data, its representative ability. The data should uniformly cover the space of label parameters. The ranges of the porosity, permeability, and tortuosity, for the systems discussed in our analysis, are given in Table 1. In the initial stage of the system generation procedure, the porosity of samples has been chosen from the uniform distribution. However, some of the samples have been not permeable. Therefore we notice the skewed character of the porosity distribution (see Fig. 3, left). As a consequence, the tortuosity distribution is skewed as well, with most of the systems at T < 1.5 . We found a few systems with T > 2.0 at low permeability, but they have been rejected from the final analysis because the predictions of the LBM solver are uncertain in this range. Moreover, to improve the learning process for higher porosity values, we generated additional samples with porosity ϕ > 0.85 . As a result, an important fraction of the samples belongs to the tail of the distributions. Training the network with such distributed data leads to the model with excellent performance on the data from the peak of distribution, and with the low predictive ability, for the systems from the tail of the distribution. We partially solve this problem by considering the re-weighted distribution of samples, namely,

20• the data are binned in the two-dimensional histogram in the permeability and tortuosity;

21• for every bin we calculate the weight given by the ratio of the total number of samples to the number of samples in a given bin; • the ratios form the re-weighted distribution of the samples; • during the training, labeled figures in the mini-batch, are sampled from the re-weighted distribution. www.nature.com/scientificreports/ Another standard procedure, adapted by us, is the transformation of labels, so that, they have the values on the neighborhood of zero.

22In the case of the permeability, instead of k, we consider log of k and do re-scaling:

23In the final analyses the following settings are used: ϕ s = 1.0 , ϕ = 0.5 , T s = 2.8 , T = 0.5 as well as log(k s ) = 12.3 , log(k) = 0.5 .

24Network architecture. In order to define the CNN architecture we introduce the blocks:

25• C(N, K, S, P, act) convolutional layer with: N kernels of the size K × K with the stride S, padding P and act -activation function; In the first case, the training of the network is faster, however, a fraction of the information, hidden in the figures, might be lost. In the other, the training is slower, but full information is utilized in the analysis.

26For the analysis (A) we consider a network net A . It contains six convolutional blocks and two (including output) fully connected layers (see Fig. 4), namely:

27where id is identity map and tanh refers to hyperbolic tangent.

28The network, net B , used in the analysis (B), contains seven convolutional blocks and two (including output) fully connected layers, namely:

29Notice that the first three CNN blocks in net A and three subsequent blocks (starting from second) in net B contain the batch normalization layers.

30Training. The generated data set has been split into the training ( 85% of the total number) and validation ( 15% of the total number) data sets. After the cut in the tortuosity, we have 84,917 and 14,986 samples in training and validation data sets, respectively.

31In the pre-analysis, we considered two types of loss functions, namely, the mean absolute error (MAE) and mean square error (MSE). The MAE is more sensitive to the outliers. However, our preliminary experiments showed that optimization of the MSE leads to the models with better performance on the validation set than www.nature.com/scientificreports/ the models optimized with the MAE. Therefore, the final analysis has been run with the MSE loss. During each epoch step, we calculate the error on the validation data set. The model with the smallest error value is saved. The stochastic gradient descent (SGD) algorithm, in the mini-batch version, has been utilized for the training 48,49 . The mini-batch contains 250 (analysis (A)) and 65 (analysis (B)) samples, respectively. SGD is one of the simplest learning algorithms. But it is known that it regularizes naturally the networks. As a result, the obtained models work better on the validation data set 20,50,51 .

Results and summary

32One of the difficulties in the DL analyses is a proper choice of the hyperparameters, such as the size of the mini-batch, the optimization algorithm parameters, number of the CNN blocks, the size of the kernels, etc. We experimented with various configurations of the hyperparameters. Eventually, we established the final settings, namely, the SGD algorithm is run with the momentum 0.9 and the initial value of the learning rate 0.1. The latter parameter is reduced by 10% every 50 epoch of the training. The sizes of the mini-batches as well as network architectures are reported in the previous section.

33Both network architectures are constructed so that the number of filters in the CNN increases, while the size of the inputs of the subsequent layers reduces with the depth of the network. The kernels in the first layer of the net B are relatively large ( K = 10 ). In the subsequent layers, the kernels are smaller. The n B is the network net A with an additional input layer. In the case of the net A , instead of the layer with K = 10 , the input is re-sized. In where R is computed for the porosity, permeability and tortuosity. More quantitative description of the histograms is given in Table 2, in which the mean ( R ) and variance √ Var(R) computed for all presented histograms are given. The variable R is more informative than the standard metrics MSE or MAE, which give only qualitative information about goodness of fit. Notice that we present the network predictions for the training and validation data sets.

34The agreement between the network's predictions and 'true' values seems to be pretty good. The performance of both networks is comparable. However, net A , with the resized input, seems to work better on the validation data set. Both models predict porosity well. The difficulties appeared in modeling the permeability and tortuosity. www.nature.com/scientificreports/ Indeed, it was difficult to obtain accurate model predictions for the low permeability and the tortuosity T > 1.75 . The re-weighting procedure described above, allowed to partially solve this problem. Another improvement is given by including the batch normalization layers in the network architecture.

35In the analysis (A), for a large fraction of samples the relative difference between the network response and the 'true' value is smaller than 6% . The most accurate predictions are obtained for the porosity and tortuosity. Indeed, the difference between 'true' and predicted is smaller than 1% . Model net B computes the porosity and tortuosity with similar accuracy as the model net A , but the predictions of the permeability are rather uncertain in this case. The fact that the performance of both models is comparable shows that, in the case of porous media studied here, re-sizing of the input in the analysis (A) reduces only a small amount of information about the system. Moreover, model (A) has better performance on the validation data set than model (B). Hence, in our analysis, the re-sizing of the input figures works as a regularization of the model.

36Both data sets, training, and validation are used in the optimization process. Hence to examine the quality of obtained models we generated the third set of the data. It contains 1, 300 unlabelled samples. This data set www.nature.com/scientificreports/ is used to reconstruct the dependence between porosity and tortuosity, see Fig. 9). The obtained T(ϕ) relation agrees with the empirical fit from the analysis of the fluid flow 12 on qualitative level. Indeed, tortuosity grows with ϕ → ϕ c , where ϕ c is the percolation threshold ( ϕ ≈ 0.4 for overlapping quads model 52 ). Due to the finite size of the considered system, the actual percolation threshold is not sharp, and tortuosity around ϕ c is underestimated in this area. The origin of the drop in the tortuosity below ϕ c is the finite size of samples. To summarize, we have shown that the convolutional neural network technique is a good method for predicting the fundamental quantities of the porous media such as the porosity, permeability, and tortuosity. The predictions are made base on the analysis of the pictures representing the two-dimensional systems. The two types of networks have been discussed. In the first, the input pictures were resized, in the other, the input had the original size. We obtained good accuracy of predictions for all three quantities. The network models reproduce the empirical dependence between the tortuosity and porosity obtained in the previous studies 12 .

37Received: 16 July 2020; Accepted: 17 November 2020

참고문헌 60건

  1. On the importance of initialization and momentum in deep learning International Conference on Machine Learning · 2013
  2. Learning representations by back-propagating errors Nature · Nature Portfolio · 1986 10.1038/323533a0
  3. The Lattice Boltzmann Equation: For Fluid Dynamics and Beyond 2001
  4. Rectified Linear Units Improve Restricted Boltzmann Machines International Conference on Machine Learning · 2010
  5. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1502.03167
  6. Stochastic Gradient Descent Tricks Lecture notes in computer science · Springer Science+Business Media · 2012 10.1007/978-3-642-35289-8_25
  7. Hydraulic tortuosity in arbitrary porous media flow Physical Review E · American Physical Society · 2011 10.1103/physreve.84.036319
  8. Finite-size anisotropy in statistically uniform porous media Physical Review E · American Physical Society · 2009 10.1103/physreve.79.066306
  9. Permeability and effective porosity of porous media Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1997 10.1103/physreve.56.3319
  10. Determination of Kozeny Constant Based on Porosity and Pore to Throat Size Ratio in Porous Medium with Rectangular Rods Engineering Applications of Computational Fluid Mechanics · Taylor & Francis · 2014 10.1080/19942060.2014.11015516
  11. Hydraulic permeability of fibrous porous media International Journal of Heat and Mass Transfer · Elsevier BV · 2011 10.1016/j.ijheatmasstransfer.2011.04.022
  12. How to calculate tortuosity easily? AIP conference proceedings · American Institute of Physics · 2012 10.1063/1.4711147
  13. Tortuosity in Porous Media: A Critical Review Soil Science Society of America Journal · Wiley · 2013 10.2136/sssaj2012.0435
  14. Effective conductivity in random porous media with convex and non-convex porosity International Journal of Heat and Mass Transfer · Elsevier BV · 2014 10.1016/j.ijheatmasstransfer.2013.12.041
  15. Proton radius from Bayesian inference Physical Review C · American Institute of Physics · 2014 10.1103/physrevc.90.054334
  16. Theory of the lattice Boltzmann method: From the Boltzmann equation to the lattice Boltzmann equation Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1997 10.1103/physreve.56.6811
  17. Geometric and viscous components of the tortuosity of the extracellular space in the brain Proceedings of the National Academy of Sciences · National Academy of Sciences · 1998 10.1073/pnas.95.15.8975
  18. Transition layer thickness in a fluid-porous medium of multi-sized spherical beads Experiments in Fluids · Springer Science+Business Media · 2008 10.1007/s00348-008-0562-9
  19. Dropout: a simple way to prevent neural networks from overfitting 2014
  20. Tortuosity-porosity relation in porous media flow Physical Review E · American Physical Society · 2008 10.1103/physreve.78.026306
  21. Diffusion in Brain Extracellular Space Physiological Reviews · American Physiological Society · 2008 10.1152/physrev.00027.2007
  22. Training with Noise is Equivalent to Tikhonov Regularization Neural Computation · The MIT Press · 1995 10.1162/neco.1995.7.1.108
  23. Gradient-based learning applied to document recognition Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1998 10.1109/5.726791
  24. Permeability of Three-Dimensional Random Fiber Webs Physical Review Letters · American Physical Society · 1998 10.1103/physrevlett.80.716
  25. Artificial neural network methods in quantum mechanics Computer Physics Communications · Elsevier BV · 1997 10.1016/s0010-4655(97)00054-4
  26. A pore scale study on fluid flow through two dimensional dual scale porous media with small number of intraparticle pores Polish Journal of Chemical Technology · De Gruyter Open · 2016 10.1515/pjct-2016-0013
  27. Deep Learning MIT Press eBooks · MIT Press · 2016
  28. Deep convolutional neural networks for estimating porous material parameters with ultrasound tomography The Journal of the Acoustical Society of America · Acoustical Society of America · 2018 10.1121/1.5024341
  29. Quantifying the anisotropy and tortuosity of permeable pathways in clay-rich mudstones using models based on X-ray tomography Scientific Reports · Nature Portfolio · 2017 10.1038/s41598-017-14810-1
  30. A Statistical Correlation Between Permeability, Porosity, Tortuosity and Conductance Transport in Porous Media · Springer Science+Business Media · 2017 10.1007/s11242-017-0983-0
  31. A lattice Boltzmann investigation of steady-state fluid distribution, capillary pressure and relative permeability of a porous medium: Effects of fluid and geometrical properties Advances in Water Resources · Elsevier BV · 2018 10.1016/j.advwatres.2018.04.009
  32. Seeing permeability from images: fast prediction with convolutional neural networks Science Bulletin · Elsevier BV · 2018 10.1016/j.scib.2018.08.006
  33. The Path Tracking Method as an alternative for tortuosity determination in granular beds Granular Matter · Springer Science+Business Media · 2018 10.1007/s10035-018-0842-x
  34. Effects of hydration on the microstructure and physical properties of shale Petroleum Exploration and Development · Elsevier BV · 2018 10.1016/s1876-3804(18)30118-6
  35. NN-SVG: Publication-Ready Neural Network Architecture Schematics The Journal of Open Source Software · Open Journals · 2019 10.21105/joss.00747
  36. Occurrence of the potent mutagens 2- nitrobenzanthrone and 3-nitrobenzanthrone in fine airborne particles Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-018-37186-2
  37. Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
  38. Pore-scale characteristics of multiphase flow in heterogeneous porous media using the lattice Boltzmann method Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-39741-x
  39. Carrier Transport and Recombination Mechanism in Blue Phosphorescent Organic Light-Emitting Diode with Hosts Consisting of Cabazole- and Triazole-Moiety Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-40068-w
  40. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift arXiv (Cornell University) · Cornell University · 2024 10.57702/o9raffed
  41. On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima 2016
  42. PyTorch: An Imperative Style, High-Performance Deep Learning Library arXiv (Cornell University) · Cornell University · 2019
  43. Comparing mask fit and usability of traditional and nanofibre N95 filtering facepiece respirators before and after nursing procedures Journal of Hospital Infection · Elsevier BV · 2019 10.1016/j.jhin.2019.09.014
  44. Poisson CNN: Convolutional Neural Networks for the Solution of the Poisson Equation with Varying Meshes and Dirichlet Boundary Conditions arXiv (Cornell University) · Cornell University · 2019
  45. Effective Mass Transport Properties in Lithium Battery Electrodes ACS Applied Energy Materials · American Chemical Society · 2019 10.1021/acsaem.9b01695
  46. Predicting Effective Diffusivity of Porous Media from Images by Deep Learning Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-56309-x
  47. Prediction and evolution of the hydraulic tortuosity for unsaturated flow in actual porous media Microporous and Mesoporous Materials · Elsevier BV · 2020 10.1016/j.micromeso.2020.110097
  48. Permeability Prediction using multivariant structural regression E3S Web of Conferences · EDP Sciences · 2020 10.1051/e3sconf/202014604001
  49. PoreFlow-Net: A 3D convolutional neural network to predict fluid flow through porous media Advances in Water Resources · Elsevier BV · 2020 10.1016/j.advwatres.2020.103539
  50. PDE-NetGen 1.0: from symbolic PDE representations of physicalprocesses to trainable neural network representations 2020 10.5194/gmd-2020-35
  51. Comparison of permeability predictions on cemented sandstones with physics-based and machine learning approaches Journal of Natural Gas Science and Engineering · Elsevier BV · 2020 10.1016/j.jngse.2020.103244
  52. Correction: Corrigendum: Cochlear gene therapy with ancestral AAV in adult mice: complete transduction of inner hair cells without cochlear dysfunction Scientific Reports · Nature Portfolio · 2017 10.1038/srep46827
  53. Computational analysis of transport in three-dimensional heterogeneous materials: An OpenFOAM®-based simulation framework Repository@Nottingham (University of Nottingham) · University of Nottingham · 2020 10.1007/s00791-020-00321-6
  54. The role of particle shape on hydraulic conductivity of granular soils captured through Kozeny–Carman approach Géotechnique Letters · ICE Publishing · 2020 10.1680/jgele.20.00032
  55. Machine learning for quantum matter Advances in Physics X · Taylor & Francis · 2020 10.1080/23746149.2020.1797528
  56. Deep convolutional neural networks for estimating porous material parameters with ultrasound tomography The Journal of the Acoustical Society of America · Acoustical Society of America · 2018 10.1121/1.5024341
  57. A high-bias, low-variance introduction to Machine Learning for physicists Physics Reports · Elsevier BV · 2019 10.1016/j.physrep.2019.03.001
  58. PyTorch: An Imperative Style, High-Performance Deep Learning Library arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1912.01703
  59. The Lattice Boltzmann Equation for Fluid Dynamics and Beyond Oxford University Press eBooks · Oxford University Press · 2001 10.1093/oso/9780198503989.001.0001
  60. PDE-NetGen : from symbolic PDE representations of physical processes to trainable neural network representations. HAL (Le Centre pour la Communication Scientifique Directe) · Le Centre pour la Communication Scientifique Directe · 2023 10.5281/zenodo.3891100