Prediction method of equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network
By using a method based on convolutional neural networks, combined with the three-dimensional aquifer random structure model and the FloPy seepage model, the high cost and uncertainty problems of identifying the equivalent conductivity coefficient of heterogeneous aquifers are solved, and the floodplain phase aquifers are realized. The rapid and accurate prediction of the equivalent permeability coefficient of the profile improves the efficiency and accuracy of engineering applications.
Patent Information
- Application Number
- CN202410362273.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-03-28
AI Technical Summary
The existing technology has high cost, long time and uncertainty in quickly and accurately identifying the equivalent permeability coefficient of heterogeneous aquifers, and has great limitations in complex structural aquifers. Machine learning methods mainly focus on the micro scale. The problem of permeability has not yet been effectively solved through the identification of equivalent permeability coefficients at the macro-regional or site scale.
A method based on convolutional neural networks was used to build a three-dimensional aquifer random structure model, use FloPy to perform seepage model inversion, and build a convolutional neural network to predict the equivalent permeability coefficient of the floodplain aquifer profile, combining transition probability theory and groundwater Flow model to achieve rapid prediction of equivalent permeability coefficient.
It achieves rapid and accurate prediction of the equivalent permeability coefficient of the floodplain aquifer profile, reduces the cost and time overhead in engineering applications, improves the accuracy and universality of prediction, and avoids the uncertainty in traditional methods. .
Smart Images

Figure CN118171548B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of hydrogeology and engineering geology, and specifically relates to a method for rapidly predicting the equivalent permeability coefficient of a floodplain target aquifer profile by applying machine learning combined with aquifer parameter numerical inversion technology. Background Art
[0002] Permeability is an important hydrogeological parameter to measure the water permeability of soil (rock). Accurate identification of permeability of aquifers is the primary factor in groundwater seepage calculation, fluid-solid coupling calculation, and simulation of groundwater contamination solute migration. It is crucial in the study of groundwater resource evaluation, groundwater pollution protection, and groundwater engineering risks. In addition, since natural aquifers often have highly heterogeneous structures and complex medium distribution, in actual underground engineering design calculations (such as engineering precipitation design calculations and ground subsidence calculations), the equivalent permeability of the profile is often used to characterize the comprehensive permeability of the target aquifer. Therefore, rapid and accurate identification of the equivalent permeability of the target aquifer is of great significance in practical engineering applications.
[0003] At present, the equivalent permeability coefficient of heterogeneous aquifers is often obtained by field hydrogeological tests and computer numerical inversion methods. Field hydrogeological tests, such as pumping tests and water pressure tests, require drilling holes and pumping (pressure) tests in the exploration area, which are costly and time-consuming; and are affected by the burial depth and horizontal layout of test holes and observation holes. In aquifers with complex structures, the experimental observations and permeability calculation results often have large uncertainties. The application of groundwater flow numerical simulation technology (Visual Modflow and Feflow, etc.) based on finite difference, finite element and other methods can invert the equivalent permeability coefficient of aquifers with complex structures based on actual observed flow fields. However, it requires accurate characterization of conditions such as site or regional hydrogeological structure, water-bearing medium characteristics, boundaries, source and sink terms, etc., requires a large amount of data, and has high technical requirements, which has limitations in actual engineering applications.
[0004] In recent years, machine learning methods have been gradually applied to the research of identifying the water permeability and water-richness of rock and soil masses. For example, a fully connected neural network can use parameters such as pore size, throat size, porosity, and the proportion of soil with different particle sizes as input to predict the permeability of geological blocks. Machine learning models such as Random Forest, Support Vector Regression (SVR), and Convolutional Neural Network (CNN), combined with X-ray and mathematical modeling methods, can obtain three-dimensional digital structures or scanned images as input, so as to invert the permeability of geological blocks. In addition, with the development of X-ray and digital modeling technologies, three-dimensional pore medium structures can be obtained and parameters can be inverted. Such methods mainly focus on solving the permeability problems of fracture structures at the microscale, but there is still a lack in the identification and engineering application of the equivalent permeability coefficient of aquifers at the macroscale or site scale. Summary of the Invention
[0005] To solve the above technical problems, the present invention proposes a method for predicting the equivalent permeability coefficient of the floodplain aquifer profile based on a convolutional neural network, which specifically includes the following steps:
[0006] Step 1: Construct a three-dimensional random structure model of the aquifer that conforms to the floodplain sedimentary sequence and extract the two-dimensional profile structure;
[0007] Based on the floodplain stratum sequence obtained from actual boreholes, using the random stratum structure model T-Progs, based on the transition probability theory, generate a set of three-dimensional random structure models of the aquifer that conform to the floodplain sedimentary sequence;
[0008] Step 2: Use the FloPy seepage model to invert the equivalent permeability coefficient of the aquifer random structure profile;
[0009] Step 3: Build and train a convolutional neural network;
[0010] Step 4: Predict the equivalent permeability coefficient of the floodplain aquifer profile using the optimal convolutional neural network model and verify its universality.
[0011] Further, the specific content of Step 1 is as follows: According to the random stratum structure model T-Progs, by analyzing the existing spatial geological data, calculating the observed transition probability, interpolating and simulating the geological conditions of each spatial unit, and then establishing an error objective function, calculating the errors of various models to find the best model. The transition probability is the probability of moving from one state to another, and its calculation formula is:
[0012] t jk (h) = Pr{k occurs at x+h 丨 j occurs at h} (1)
[0013] Here, x is the spatial position, h is the lag distance, and j and k are mutually exclusive categories such as geological units or rock formations.
[0014] The three-dimensional aquifer random structure model is discretized into grids, each of which contains medium unit information m, generated by T-Progs; the medium unit information m includes "cell number", "layer", "row", "column", "medium category", and "whether it is an active cell", which is exported as an ".xlsx" file; the medium type is set to five types, from top to bottom: silty clay, sandy clay, silt sand, fine sand, and medium sand.
[0015] The obtained discrete grid is then digitized into a three-dimensional array. Then, two slicers P1 and P2 for extracting profiles are constructed to quickly extract heterogeneous two-dimensional profiles along the x and y axis directions of different three-dimensional geological structure models. The two-dimensional profile structure contains medium unit information m. Based on the three-dimensional aquifer random structure model, the structural data set of all two-dimensional profiles is extracted, represented by F. The profile structure data set F is divided into two parts in a certain proportion, one part is used as the training-validation data set F1 of the random structure profile in machine learning, and the other part is used as the subsequent test data set F2.
[0016] Furthermore, the step 2 is to use the training-validation data set F1 described in step 1 to construct a two-dimensional profile confined steady flow numerical model using the Python library (FloPy) of the groundwater flow model (MODFLOW) to obtain the horizontal equivalent permeability of the profile. Specifically, it includes:
[0017] Step 2-1. Mesh discretization and boundary setting of cross-section water flow model
[0018] A two-dimensional section pressurized steady flow model is established using FloPy: first, the two-dimensional section pressurized steady flow model is discretized, and its discretization is performed with reference to the size of the two-dimensional section structure extracted in step one, and a grid is set; then, the left and right sides of the two-dimensional section pressurized steady flow model are set as constant head unit boundaries B1 and B2, the B1 and B2 boundaries are set as pressurized heads, the head difference Δh is the difference between B1 and B2, and the other units are active units.
[0019] Step 2-2. Characterization and parameter setting of heterogeneous aquifer profile structure
[0020] The two-dimensional profile structure simulated by FloPy calls the profile structure created in step one (the medium unit information m remains consistent). The permeability ranges of the five generalized media (in step one) are shown in Table 1. The method of assigning the horizontal permeability hk of the five media in each group of profiles is to use the random.uniform function to randomly select floating-point numbers within the permeability range to generate a single medium parameter sequence hkm=[hk1, hk2, hk3, hk4, hk5]. The parameter sequence set hkm is coupled to the two-dimensional profile medium structure to obtain the permeability distribution of the heterogeneous aquifer profile. The vertical permeability Vk is set to 0.1 times the horizontal permeability. For the training-validation data set F1 of the profile structure, and the test data set F2, the corresponding two-dimensional arrays of the single medium parameter sequence are Hkm1 and Hkm2, respectively.
[0021] Step 2-3. Model operation and equivalent permeability inversion.
[0022] Run the two-dimensional section pressure steady flow model to generate ".hds" file and ".cbc" file, which are the unit flow data and unit head data respectively. Use the ZoneBudget package to use the ".cbc" file to obtain the flow value of the horizontal inflow boundary B1 or outflow boundary B2. Since the model is a two-dimensional steady flow, the inflow of the section area is equal to the outflow (Q B1 =Q B2 =Q). The equivalent permeability coefficient of the heterogeneous aquifer profile can be calculated using Darcy's formula:
[0023]
[0024] Where Q is the seepage rate flowing into (or out of) boundary B1 (or B2) per unit time (m 3 / s); A is the cross-sectional area of water flowing through boundary B1 (or B2) (m 2 );h 1 ,h 2 are the given confined water heads of boundaries B1 and B2 (m); L is the length of the straight seepage path (m); K is the horizontal equivalent permeability of the target section (m / s); and J is the horizontal hydraulic gradient.
[0025] Using the methods described in steps 2-1 to 2-3, the profile structure data set F (including F1 and F2) established in step 1 is inverted based on the single medium parameter sequence Hkm (including Hkm1 and Hkm2) randomly generated in step 2-2 to obtain the equivalent permeability K of the aquifer profile in the horizontal direction, and the corresponding data set X = [[F, Hkm], K] of the profile structure and the equivalent permeability is established. The data X1 = [[F1, Hkm1], K1] is used for the training and verification process of the neural network. The training set (Training Set, X1T ) and validation set (Validation Set, X1 V ) are randomly assigned in a ratio of 3:1; the test set (Test Set) X2 = [[F2, Hkm2], K2] is used for subsequent testing of the prediction effect of the convolutional neural network.
[0026] Furthermore, the step 3 specifically includes:
[0027] Step 3-1. Convolutional neural network construction;
[0028] The convolutional neural network is built using the Tensorflow python library, and the network structure of the convolutional neural network is built based on LeNet-5.
[0029] The neural network structure consists of two convolutional layers, each of which is connected to a pooling layer. After the flattening layer, they are connected to three fully connected layers to obtain the output. The convolution calculation, maximum pooling calculation, and full connection calculation are based on formulas (7), (8), and (9) respectively.
[0030]
[0031] In the formula, I represents the input tensor, O ij represents the output tensor value at position (i, j), F represents the convolution kernel or filter, σ represents the activation function, which introduces nonlinearity to the neuron by applying it to the summation, and R i,j represents the pooling window of the input tensor, x i is the input value of the i-th neuron in the previous layer, w i represents the connection weight between the i-th neuron in the previous layer and the j-th neuron in the fully connected layer, b j is the bias term associated with the jth neuron.
[0032] The functions of the convolutional layer, pooling layer, fully connected layer, and flatten layer are Conv2D(), MaxPooling2D(), Dense(), and Flatten() of the Keras library respectively.
[0033] The profile medium structure and the permeability sequence of a single medium are input into the neural network separately. The profile medium distribution matrix F is placed before the first convolutional layer as the first input, and the permeability sequence Hkm of the five generalized media is concatenated with the output of the first fully connected layer as the second input.
[0034] Finally, the Model function of the Keras library is used to determine the input layer and output layer.
[0035] The training data set X1 obtained in step 2 TAnd the validation dataset X1 V Input into the neural network. Among them, the profile medium sequence F and the single medium permeability coefficient sequence Hkm are used as input data, and the profile equivalent permeability coefficient K is used as the true value data. The convolutional neural network will conduct forward on the input layer data, pass the information to the output layer, and finally calculate the distance between the output layer and the true value, and then update the parameters in each layer by back-propagating the loss function gradient.
[0036] Step 3-2. Convolutional neural network hyperparameter setting;
[0037] Most of the hyperparameters in the neural network are set according to the data structure of the data set. According to the size of the medium grid of the input layer profile, the convolution kernel size is set to 3×3 and the pooling kernel size is set to 2×2. The model optimization training method selects stochastic gradient descent (SGD). The number of samples selected for one training (batch size) is set to 64, and the model is set to be trained at least 200 times (Epochs) using all the data in the training set. In addition, the learning rate (Learning rate) is increased to set parameters such as Decay and Momentum, and the Nesterov gradient acceleration method is used. These parameters can dynamically change the learning rate of the model, thereby optimizing the model fitting effect.
[0038] Step 3-3. Model training evaluation and parameter optimization;
[0039] Use the training set (Training Set, X1) obtained in step 2 T ) to train the model, using the validation set (Validation Set, X1 V ) to evaluate the performance of model prediction and promptly discover whether the model is overly dependent on specific features of the training set (i.e., overfitting). The loss function (Loss) is selected as the mean absolute percentage error MAPE to evaluate the model. The formula is as follows:
[0040]
[0041] in, is the CNN prediction value, y i is the inversion value of the FloPy model, and n is the number of statistical samples.
[0042] After establishing the model prediction evaluation criteria, grid search is performed on the following three network structure parameters to improve the model prediction accuracy and prevent overfitting: The first layer of convolution output channel n 1 , the second convolution output channel n 2And the number of output neurons in the first fully connected layer is m. The range and principle of the above three hyperparameters are as follows: (1) The output channels of the first and second convolution layers (n 1 、n 2 ) Search in multiples of 5, with a range of 5 to 30; (2) The second convolution output channel is required to be no less than the first convolution output channel (n 2 ≥n 1 ); (3) The number of output neurons in the fully connected layer (m) is generally a power of 2, such as 64, 128, 256, or 512. Parameter n 1 、n 2 The optimal combination of and m is 20, 20, 512, and the Loss value of the model is 3.46.
[0043] Furthermore, the step 4 is specifically as follows:
[0044] Based on the three-dimensional aquifer random structure model set in step 1, a test set X2 outside the training-prediction set is established as a data set for evaluating the model prediction ability. The model prediction process and result evaluation are the same as step 3. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a flow chart of the present invention;
[0046] Figure 2 (a) is the T-Progs three-dimensional aquifer random structure model diagram;
[0047] Figure 2 (b) is the extracted partial two-dimensional cross-sectional structure diagram;
[0048] Figure 3 Design diagram for boundary conditions of FloPy two-dimensional section pressure steady flow numerical model;
[0049] Figure 4 It is a neural network structure diagram;
[0050] Figure 5 Heat map of loss results of grid search CNN model;
[0051] Figure 6 The prediction results of the training-validation dataset and the test set are obtained for the optimal model. DETAILED DESCRIPTION
[0052] The technical solution of the present invention is now further described in conjunction with the accompanying drawings.
[0053] The present invention proposes a method for rapid prediction of equivalent permeability coefficient of floodplain heterogeneous aquifer profile based on convolutional neural network. Figure 1As shown. In this framework, first, a set of two-dimensional random structure profiles conforming to the floodplain facies sedimentary sequence is constructed and extracted; then, the groundwater seepage model (FloPy) is applied to invert the equivalent permeability coefficient of the random profile set, and a corresponding data set of random structure profiles and equivalent permeability coefficients is established; a neural network is constructed to predict the medium distribution sequence of different profiles and deeply learn the equivalent permeability coefficients corresponding to different profiles, and finally, the rapid prediction of the equivalent permeability coefficient of the target sedimentary layer profile is realized.
[0054] This method is specifically implemented through the following steps:
[0055] Step 1: Construct a three-dimensional aquifer random structure model conforming to the floodplain facies sedimentary sequence and extract two-dimensional structure profiles
[0056] Based on the real floodplain facies stratigraphic sequence obtained from 38 actual boreholes at a site along the middle and lower reaches of the Yangtze River, using the random stratigraphic structure model (T-Progs), based on the transition probability theory, a set of 15 three-dimensional aquifer random structure models conforming to the floodplain facies sedimentary sequence is generated.
[0057] The above-mentioned three-dimensional aquifer random structure model (T-Progs) is a process of analyzing existing spatial geological data, calculating the observed transition probability, interpolating and simulating the geological conditions of each spatial unit, then establishing an error objective function, and calculating the errors of various models to seek the best model. The transition probability is the probability of moving from one state to another state, calculated as:
[0058] t jk (h) = Pr{k occurs at x+h丨j occurs at h} (1)
[0059] where x is the spatial position, h is the lag distance, and j and k are mutually exclusive categories such as geological units or rock layers.
[0060] The three-dimensional aquifer random structure model is discretized into 150,000 (100 rows × 100 columns × 15 layers) grids, and the size of each grid is 1m × 1m × 3m. The medium types are set to five, from top to bottom: silty clay, sandy clay, silt, fine sand, and medium sand. The medium unit information m of the three-dimensional aquifer random structure model generated by T-Progs includes "cell number", "layer", "row", "column", "medium category", "whether it is an active cell", and is exported as an ".xlsx" file.
[0061] The obtained three-dimensional aquifer random structure model is digitized into a three-dimensional array D with a dimension size of 15 layers (z-axis), 100 rows (x-axis), and 100 columns (y-axis). Then, two slicers P1 and P2 for extracting profiles are constructed, and the code is run as follows:
[0062] F = np.empty([n,15,20])
[0063] f=D[:,j,i:i+20]#P1
[0064] f=D[:,i:i+20,j]#P2
[0065] F[s]=f
[0066] The characters separated by commas in the square brackets [,,] represent the range of layers, rows, and columns intercepted by slicers P1 and P2, respectively. The first “:” in the square brackets represents the total number of layers (15 layers in total) of the three-dimensional aquifer random structure model included in the intercepted section. Construct an empty set array to receive slice data, where n is the number of sections that can be extracted by the three-dimensional aquifer random structure model.
[0067] Use the for statement to loop and slice, and realize continuous extraction of profiles every time a cell is moved along the x or y axis of the 3D geological model. The range of i is 1 to 80, and the range of j is 1 to 100. s is initially set to 0, and its value increases by 1 after each profile extraction. The running code is as follows:
[0068]
[0069] According to the above method, a heterogeneous two-dimensional profile f with a depth of 15 layers (z-axis direction) and a length of 20 columns (x or y-axis direction) can be quickly extracted along the x and y-axis directions of different three-dimensional aquifer random structure models.
[0070] f=(m ij ) 15×20 (2)
[0071] Among them, i is the row of the two-dimensional array and j is the column of the two-dimensional array.
[0072] For a three-dimensional aquifer random structure model (100 rows × 100 columns × 15 layers), 16,000 sections can be extracted. A total of 240,000 sections were extracted for the 15 three-dimensional aquifer random structure models, of which 160,000 sections were divided from 10 three-dimensional stratigraphic models as the training-validation dataset F1 of random structure sections in machine learning, and 80,000 sections were divided from 5 three-dimensional aquifer random structure models as the subsequent test dataset F2.
[0073] F1, F2 = (f) 160,000 ,(f) 80,000 (3).
[0074] Step 2: Invert the equivalent permeability of the aquifer random structure section using the FloPy seepage model
[0075] For the 160,000 groups of profile structures (F1, training-validation data set), a two-dimensional profile confined steady flow numerical model was constructed using the Python library (FloPy) of the groundwater flow model (MODFLOW) to obtain the horizontal equivalent permeability of each group of profiles. The specific steps are as follows:
[0076] 2-1. Mesh discretization and boundary setting of cross-section flow model
[0077] A numerical model of two-dimensional section pressure steady flow based on FloPy ( Figure 3 The discretization of the two-dimensional section pressure-stable flow numerical model is carried out according to the section size extracted in step 1, and is set to 15 layers, 20 columns, and a total of 300 grids. The grid size is 1m×1m×3m, so the total height of the model is 45 meters, 20 meters long, and 1 meter thick. The left and right sides of the model are set as constant head unit boundaries (B1 and B2, Figure 3 ), the B1 and B2 boundaries are set to pressure heads of 50m and 45m respectively (the head difference Δh is 5m). The other units are active units.
[0078] 2-2. Characterization and parameter setting of heterogeneous profile structure
[0079] The two-dimensional profile structure simulated by FloPy calls the profile structure created in step 1. The profile media are generalized into five types: silty clay, sandy clay, silt, fine sand, and medium sand. The permeability range of each medium is shown in Table 1. For each group of profiles, the horizontal permeability hk of each medium is assigned a value, and the random.uniform function is used to randomly select floating-point numbers within its permeability range to generate a single medium parameter sequence hkm=[hk1, hk2, hk3, hk4, hk5]. The parameter sequence hkm is coupled to the medium sequence to obtain the permeability distribution of the heterogeneous aquifer profile. The vertical permeability Vk is set to 0.1 times the horizontal permeability. For the training-validation data set F1 of the profile structure, and the test data set F2, the corresponding two-dimensional arrays of the single medium parameter sequence are Hkm1 and Hkm2, respectively.
[0080] Hkm1,Hkm2=(hkm) 160,000×5 ,(hkm) 80,000×5 (4).
[0081] Table 1 shows the range of permeability coefficients of the medium
[0082] Media Type Permeability coefficient (m / d) Silty clay 0.001~0.10 Sandy silt 0.10~0.50 Pink sand 0.50~1.0 Fine sand 1.0~5.0 medium sand 5.0~20.0
[0083] 2-3. Model operation and equivalent permeability coefficient inversion
[0084] Run the model to generate ".hds" and ".cbc" files, which are cell flow data and cell head data, respectively. Use the ZoneBudget package to use the ".cbc" file to obtain the flow value of the horizontal inflow boundary B1 or outflow boundary B2. Since the model is a two-dimensional steady flow, the inflow of the cross-section area is equal to the outflow (Q B1 =Q B2 =Q). The equivalent permeability coefficient of the heterogeneous aquifer profile can be calculated using Darcy's formula:
[0085]
[0086]
[0087] Where Q is the seepage rate flowing into (or out of) boundary B1 (or B2) per unit time (m 3 / s); A is the cross-sectional area of water flowing through boundary B1 (or B2) (m 2 ), 45m 2 ;h 1 ,h 2 are the given confined water heads (m) of boundaries B1 and B2 respectively; L is the length of the straight seepage path (m), which is 20m; K is the horizontal equivalent permeability of the target section (m / s); J is the horizontal hydraulic gradient.
[0088] Using the above method, the profile structure data set F (including F1 and F2) established in step 1 is inverted based on the single medium parameter sequence Hkm (including Hkm1 and Hkm2) randomly generated in step 2-2 to obtain the equivalent permeability K of the aquifer profile in the horizontal direction, and the corresponding data set X = [[F, Hkm], K] of the profile structure and equivalent permeability is established. Among them, 160,000 sets of data X1 = [[F1, Hkm1], K1] are used for the training and verification process of the neural network. The training set (Training Set, X1 T ) and validation set (Validation Set, X1 V ) were randomly assigned in a ratio of 3:1; the other 80,000 groups of data were used as the test set (Test Set) X2=[[F2,Hkm2],K2] for subsequent testing of the prediction effect of the convolutional neural network.
[0089] Step 3: Convolutional Neural Network Construction and Training
[0090] 3-1. Convolutional Neural Network Construction
[0091] The convolutional neural network is built using the Tensorflow python library. The network structure of the convolutional neural network is based on LeNet-5 (such as Figure 4As shown in Figure 2.1.1). The neural network structure consists of two convolutional layers, each of which is connected to a pooling layer. After the flattening layer, they are connected to three fully connected layers to obtain the output. The convolution calculation, maximum pooling calculation, and full connection calculation are based on formulas (7), (8), and (9), respectively.
[0092]
[0093] In the formula, I represents the input tensor, O ij represents the output tensor value at position (i, j), F represents the convolution kernel or filter, σ represents the activation function, which introduces nonlinearity to the neuron by applying it to the summation, and R i,j represents the pooling window of the input tensor, x i is the input value of the i-th neuron in the previous layer, w i represents the connection weight between the i-th neuron in the previous layer and the j-th neuron in the fully connected layer, b j is the bias term associated with the jth neuron.
[0094] The functions of the convolutional layer, pooling layer, fully connected layer, and flattening layer are Conv2D(), MaxPooling2D(), Dense(), and Flatten() of the Keras library respectively. The algorithm is built using functional programming modeling:
[0095] x1 = Conv2D()(input1)
[0096] x1=MaxPooling2D()(x1)
[0097] x1=Flatten()(x1)
[0098] x1=Dense()(x1)
[0099] The profile medium structure and the permeability coefficient sequence of a single medium are input into the neural network separately. The profile medium distribution matrix F is placed before the first convolutional layer as the first input, and the permeability coefficient sequence Hkm of the five generalized media is concatenated with the output of the first fully connected layer as the second input. The concatenation function is concatenate() of the Keras library, and the input of the function is as follows:
[0100] c = concatenate([x1,input2])
[0101] After concatenation, two fully connected layers are connected to get the outputs.
[0102] x2=Dense()(c)
[0103] outputs = Dense()(x2)
[0104] This setting provides two input ends: the convolution layer and the pooling layer first analyze the profile medium distribution information, and then analyze it together with the profile medium permeability random sequence (permeability information of a single medium) in the fully connected layer. This setting can strengthen the supervision process and learning directionality of the neural network learning, which helps to improve the learning efficiency and results of the neural network. Finally, the Model function of the Keras library is used to determine the input layer and the output layer.
[0105] model=Model(inputs=[input1,input2],outputs=outputs)
[0106] The training data set X1 obtained in step 2 T And the validation dataset X1 V Input into the neural network. Among them, the profile medium sequence F and the single medium permeability coefficient sequence Hkm are used as input data, and the profile equivalent permeability coefficient K is used as the true value data. The convolutional neural network will conduct forward on the input layer data, pass the information to the output layer, and finally calculate the distance between the output layer and the true value, and then update the parameters in each layer by back-propagating the loss function gradient.
[0107] history = model.fit(x = [F T ,Hkm T ],y=K T ,validation_data=([F V ,Hkm V ],K V ))
[0108] 3-2. Convolutional Neural Network Hyperparameter Setting
[0109] Most of the hyperparameters in the neural network are set according to the data structure of the data set. According to the size of the input layer profile medium grid (15 layers × 20 columns), the convolution kernel size is set to 3 × 3 and the pooling kernel size is set to 2 × 2. The model optimization training method selects stochastic gradient descent (SGD). At the same time, we set the number of samples selected for one training (batch size) to 64, which is largely affected by the computer processor. Set the model to be trained 200 times (Epochs) using all the data in the training set. In addition, the learning rate (Learningrate) is increased by setting parameters such as Decay and Momentum, and the Nesterov gradient acceleration method is used. These parameters can dynamically change the learning rate of the model, thereby optimizing the model fitting effect. The specific values of the model's hyperparameters are shown in Table 2.
[0110] 3-3. Model training evaluation and parameter optimization
[0111] Use the training set (Training Set, X1) obtained in step 2 T ) to train the model, using the validation set (Validation Set, X1 V ) to evaluate the performance of model prediction and promptly discover whether the model is overly dependent on specific features of the training set (overfitting). The loss function (Loss) is selected as the Mean Absolute Percentage Error (MAPE) to evaluate the model. The formula is as follows:
[0112]
[0113] in, is the CNN prediction value, y i is the inversion value of the FloPy model, and n is the number of statistical samples.
[0114] After establishing the model prediction evaluation criteria, the following three network structure parameters are grid searched to improve the model prediction accuracy and prevent overfitting: the first layer convolution output channel n1, the second layer convolution output channel n2, and the number of output neurons m of the first fully connected layer. The value ranges and principles of the above three hyperparameters are as follows: (1) The first and second layer convolution output channels (n1, n2) are searched in multiples of 5, with a specified range of 5 to 30; (2) The second layer convolution output channel is required to be no less than the first layer convolution output channel (n2 ≥ n1); (3) The number of output neurons of the fully connected layer (m) is generally a power of 2, and is 64, 128, 256, or 512. The results of parameter grid search optimization are shown in Figure 2. Figure 5As shown in the figure (the box shows the optimal model validation set Loss result). The optimal combination of parameters n1, n2, and m is 20, 20, and 512, and the model's Loss value is 3.46. The optimized CNN model network structure parameters are shown in Table 3.
[0115] Table 2 Hyperparameter settings
[0116] parameter Setting Value Convolution kernel size 3×3 Pooling kernel size 2×2 Learning rate <![CDATA[1×10 -5 ]]> Learning rate decay value (Decay) <![CDATA[2×10 -5 ]]> Gradient acceleration (Nesterov) True Momentum 0.9 Batch size 64 Epochs 200 Loss Function MAPE Optimizer SGD
[0117] Table 3 CNN network structure parameter table.
[0118]
[0119] Step 4: Prediction and universality verification of the optimal convolutional neural network model for the equivalent permeability coefficient of the floodplain aquifer profile
[0120] Since the training set X1 T With the validation set X1 V It is a random assignment of the same group of profile structure-equivalent permeability coefficient data sets (X1), and the stratigraphic profile structures have certain similarities. In order to better verify the universal effect of the convolutional neural network model on the prediction of equivalent permeability coefficient of floodplain sedimentary profiles, based on the 5 groups of random stratigraphic structure models set in step 1, a test set X2 (a total of 80,000 groups) outside the training-prediction set is established as a data set for evaluating the model's prediction ability. The model prediction process and result evaluation are the same as step 3. Figure 6 As shown in the figure, the prediction results of the 80,000 test set X2 using the convolutional neural network model constructed above are good. In contrast, 96.7% of the samples in the training-validation dataset X1 have a Loss (MAPE) within 10%, and 71.2% of the samples in X2 have a Loss (MAPE) within 10%.
[0121] In addition, the CNN model based on this architecture has a significant advantage in predicting the equivalent permeability coefficient of the stratum profile. The average calculation time for every 10,000 samples does not exceed 1.5 seconds, which is much longer than the general groundwater seepage model software based on finite difference and finite element methods, as well as the Flopy module (>675s / 10,000 groups). And it only needs to provide the hydrogeological profile and medium type of the predicted target section as input for calculation. It has significant advantages in deducing the permeability coefficient of aquifers in different sections for engineering design in actual engineering problems.
Claims
1. A method for predicting equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network, characterized in that: The steps include: Step 1: Construct a three-dimensional aquifer random structure model that conforms to the floodplain sedimentary sequence and extract the two-dimensional profile structure; The step 1 specifically comprises: based on the floodplain strata sequence obtained by actual drilling, using the random stratigraphic structure model T-Progs, based on the transition probability theory, generating a set of three-dimensional aquifer random structure models that conform to the floodplain strata deposition sequence; further, according to the random stratigraphic structure model T-Progs, by analyzing the existing spatial geological data, calculating the observed transition probability, interpolating and simulating the geological conditions of each unit in the space, and then establishing an error objective function, calculating the errors of various models in the three-dimensional aquifer random structure model set, and seeking the optimal three-dimensional aquifer random structure model; the transition probability is the probability of moving from one state to another, and the calculation expression is: t jk Pr{k occurs at x + h | j occurs at h} (1) where x is the spatial position, h is the lag distance, and j and k are mutually exclusive categories such as geological units or rock formations; The three-dimensional aquifer random structure model is discretized into grids, each of which contains medium unit information m, generated by T-Progs; the medium unit information m includes "cell number", "layer", "row", "column", "medium category", "whether it is an active cell", and is exported as a ".xlsx" file; the medium type is set to five types, from top to bottom: silty clay, sandy clay, silt sand, fine sand, and medium sand; The obtained discrete grid is then digitized into a three-dimensional array. Next, two slicers P1 and P2 for extracting profiles are constructed to quickly extract heterogeneous two-dimensional profiles along the x and y axis directions of different three-dimensional geological structure models. The two-dimensional profile structure contains medium unit information m. Based on the three-dimensional aquifer random structure model, the structural data set of all two-dimensional profiles is extracted, represented by F. The profile structure data set F is divided into two parts in a certain ratio, one part is used as the training-validation data set F1 of the random structure profile in machine learning, and the other part is used as the subsequent test data set F2. Step 2: Use the FloPy seepage model to invert the equivalent permeability of the aquifer random structure section; Step 3: Convolutional neural network construction and training; Step 4: Prediction and universality verification of the optimal convolutional neural network model for the equivalent permeability coefficient of the floodplain aquifer profile.
2. The method for predicting equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network according to claim 1 is characterized in that: The step 2 is to use the training-validation data set F1 described in step 1 to construct a two-dimensional profile confined steady flow numerical model using the Python library FloPy of the groundwater flow model MODFLOW to obtain the horizontal equivalent permeability of the profile; specifically, it includes: Step 2-1. Mesh discretization and boundary setting of cross-section water flow model A two-dimensional section pressure-controlled steady flow model was established using FloPy: First, the two-dimensional section pressure-controlled steady flow model was discretized, and the discretization was performed with reference to the size of the two-dimensional section structure extracted in step 1, and a grid was set; then, the left and right sides of the two-dimensional section pressure-controlled steady flow model were set as constant head unit boundaries B1 and B2, the boundaries of B1 and B2 were set as pressure heads, the head difference Δh was the difference between B1 and B2, and the other units were active units; Step 2-2. Characterization and parameter setting of heterogeneous aquifer profile structure The two-dimensional profile structure simulated by FloPy calls the profile structure created in step 1; the permeability ranges of the five generalized media are shown in Table 1; the method of assigning the horizontal permeability hk of the five media in each group of profiles is to use the random.uniform function to randomly select floating-point numbers within the permeability range to generate a single medium parameter sequence hkm=[hk1, hk2, hk3, hk4, hk5]; the parameter sequence set hkm is coupled to the two-dimensional profile medium structure to obtain the permeability distribution of the heterogeneous aquifer profile; the vertical permeability Vk is set to 0.1 times the horizontal permeability; for the training-validation data set F1 of the profile structure, and the test data set F2, the corresponding two-dimensional arrays of the single medium parameter sequence are Hkm1 and Hkm2 respectively; Step 2-3. Model operation and equivalent permeability inversion.
3. The method for predicting equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network according to claim 2 is characterized in that: The steps 2-3 are as follows: Run the two-dimensional section pressure steady flow model to generate ".hds" and ".cbc" files, which are the cell flow data and cell head data respectively; use the ZoneBudget package to use the ".cbc" file to obtain the flow value of the horizontal inflow boundary B1 or outflow boundary B2; because the model is a two-dimensional steady flow, the inflow of the section area is equal to the outflow, that is, Q B1 =Q B2 =Q; The equivalent permeability coefficient of the heterogeneous aquifer section is calculated using Darcy's formula: Where Q is the seepage rate flowing into or out of the boundary B1 or B2 per unit time (m 3 / s); A is the cross-sectional area of water flowing through the boundary B1 or B2 m 2 ; h1, h2 are the given pressure heads of boundaries B1 and B2 respectively (m); L is the length of the seepage straight path (m); K is the horizontal equivalent permeability coefficient of the target section (m / s); J is the horizontal hydraulic gradient; Using the method described in step 2-1 to step 2-3, the profile structure data set F established in step 1 contains F1 and F2, and based on the single medium parameter sequence Hkm randomly generated in step 2-2 contains Hkm1 and Hkm2, the horizontal equivalent permeability K of the aquifer profile is inverted to establish the corresponding data set X = [[F, Hkm], K] of the profile structure and the equivalent permeability; the data X1 = [[F1, hkm1], K1] is used for the training and verification process of the neural network, and the training set (Training Set, X1 T ) and Validation Set (Validation Set, X1 V ) are randomly assigned in a ratio of 3:1; the test set (Test Set) X2 = [[F2, Hkm2], K2] is used for subsequent testing of the prediction effect of the convolutional neural network.
4. The method for predicting equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network according to claim 1, characterized in that: The step 3 specifically includes: Step 3-1. Convolutional neural network construction; Step 3-2. Convolutional neural network hyperparameter setting; Step 3-3. Model training evaluation and parameter optimization.
5. The method for predicting equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network according to claim 4 is characterized in that: The step 3-1 is as follows: Use Tensorflow python library to build a convolutional neural network, and the network structure of the convolutional neural network is built based on LeNet-5; The neural network structure includes two convolutional layers, each of which is connected to a pooling layer. After the flattening layer, they are connected to three fully connected layers to finally obtain the output. The convolution calculation, maximum pooling calculation, and full connection calculation are based on formulas (7), (8), and (9) respectively. In the formula, I represents the input tensor, O ij represents the output tensor value at position (i, j), F represents the convolution kernel or filter, σ represents the activation function, which introduces nonlinearity to the neuron by applying it to the summation, and R i,j represents the pooling window of the input tensor, x i is the input value of the i-th neuron in the previous layer, w i represents the connection weight between the i-th neuron in the previous layer and the j-th neuron in the fully connected layer, b j is the bias term associated with the jth neuron; The functions of the convolutional layer, pooling layer, fully connected layer, and flatten layer are Conv2D(), MaxPooling2D(), Dense(), and Flatten() of the Keras library respectively; The profile medium structure and the permeability coefficient sequence of a single medium are input into the neural network separately; the profile medium distribution matrix F is placed before the first convolutional layer as the first input, and the permeability coefficient sequence Hkm of the five generalized media is concatenated with the output of the first fully connected layer as the second input; Finally, the Model function of the Keras library is used to determine the input layer and output layer; The training data set X1 obtained in step 2 T And the validation dataset X1 V Input into the neural network; among them, the profile medium sequence F and the single medium permeability coefficient sequence Hkm are used as input data, and the profile equivalent permeability coefficient K is used as the true value data; the convolutional neural network will forward the input layer data, pass the information to the output layer, and finally calculate the distance between the output layer and the true value, and then update the parameters in each layer by back-propagating the loss function gradient.
6. The method for predicting equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network according to claim 4, characterized in that: The step 3-2 is as follows: Most of the hyperparameters in the neural network are set according to the data structure of the data set; according to the size of the medium grid of the input layer profile, the convolution kernel size is set to 3×3, and the pooling kernel size is set to 2×2; the stochastic gradient descent method SGD is selected as the model optimization training method; the number of samples selected for one training is set to 64, and the model is trained at least 200 times using all the data in the training set; in addition, the Decay and Momentum parameters are set for the learning rate increase, and the Nesterov gradient acceleration method is used. These parameters dynamically change the learning rate of the model, thereby optimizing the model fitting effect.
7. The method for predicting equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network according to claim 4, characterized in that: The step 3-3 is as follows: Use the training set (Training Set, X1) obtained in step 2 T ) to train the model, using the validation set (ValidationSet, X1 V ) to evaluate the performance of model prediction and promptly discover whether the model is overly dependent on specific features of the training set, i.e., overfitting; the loss function Loss is selected as the mean absolute percentage error MAPE to evaluate the model, and the formula is as follows: in, is the CNN prediction value, y i is the inversion value of FloPy model, n is the number of statistical samples; After establishing the model prediction evaluation criteria, the following three network structure parameters are grid searched to improve the model prediction accuracy and prevent overfitting: the first layer convolution output channel n1, the second layer convolution output channel n2 and the number of output neurons m of the first fully connected layer; the value ranges and principles of the above three hyperparameters are as follows: (1) The first and second layer convolution output channels n1 and n2 are searched in multiples of 5, with a specified range of 5 to 30; (2) The second layer convolution output channel is required to be no less than the first layer convolution output channel, that is, n2 ≥ n1; (3) The number of output neurons m of the fully connected layer is generally a power of 2, and is 64, 128, 256, or 512; the optimal combination of parameters n1, n2, and m is 20, 20, and 512, at which time the model's Loss value is 3.
46.
8. The method for predicting equivalent permeability coefficient of floodplain aquifer profile based on convolutional neural network according to claim 1, characterized in that: The step 4 is specifically as follows: Based on the three-dimensional aquifer random structure model set in step 1, a test set X2 outside the training-prediction set is established as a data set for evaluating the prediction ability of the model; the model prediction process and result evaluation are the same as step 3.
