Three-dimensional geological modeling method based on octave convolution and generative adversarial network
Through methods based on octave convolution and generative adversarial networks, the problems of accuracy and computational resource consumption in three-dimensional geological modeling under complex geological environments are solved, and the efficient, automatic construction and accurate simulation of three-dimensional geological bodies are achieved.
Patent Information
- Application Number
- CN202410419933.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-09
- Publication Date
- 2024-08-27
AI Technical Summary
In complex geological environments, traditional three-dimensional geological modeling methods are difficult to accurately characterize heterogeneous and non-stationary characteristics, resulting in low simulation performance and high consumption of computing resources.
Using a method based on octave convolution and generative adversarial network, multi-scale characterization is performed through multi-source heterogeneous geological data and prior geological models, a generative adversarial network is constructed for multi-stage training, network parameters are optimized, and a three-dimensional geological model is generated to achieve high efficiency , automatic three-dimensional geological body construction.
It can effectively reproduce the distribution pattern characteristics and laws of physical property parameters in three-dimensional space, reduce the redundancy of convolution feature maps, improve the accuracy and efficiency of simulation results, and realize the rapid and efficient construction of three-dimensional geological bodies.
Smart Images

Figure CN118552689A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of three-dimensional geological modeling, and more specifically, to a three-dimensional geological modeling method based on octave convolution and generative adversarial network. Background Art
[0002] Three-dimensional geological models usually represent the spatial distribution patterns of different physical parameters, and can more intuitively and specifically describe the internal heterogeneity and anisotropy, playing an important role in natural resource exploration, numerical simulation, and visualization of underground space structures. With the continuous deepening of exploration, different geological units usually develop in complex geological environments. Under the conditions of geological exogenous forces, their structures have undergone deformation characteristics to varying degrees, and the corresponding attribute distribution patterns also have a certain degree of randomness. Therefore, how to efficiently and accurately establish three-dimensional structure-attribute models corresponding to different geological units under complex geological background conditions, and fully characterize and express the internal heterogeneity characteristics, has always been a hot and difficult issue in the field of three-dimensional geological modeling.
[0003] Three-dimensional geological modeling methods can generally be divided into two categories: deterministic modeling and stochastic modeling. Among them, deterministic modeling is based on given observation data and uses a series of interpolation methods to infer the attribute information of unknown areas. However, for the modeling process of complex geological units, the modeling precision and accuracy cannot be fully guaranteed by this method, and due to factors such as measurement data and geological cognitive bias, the uncertainty of modeling is difficult to quantify. For this reason, the stochastic modeling method has received widespread attention in the field of three-dimensional geological modeling. Its core idea is to establish the cumulative probability density distribution function of regionalized variables and reproduce the structural attribute characteristics of underground space by random sampling. However, the traditional stochastic modeling method is based on the second-order stationarity assumption and the intrinsic assumption. However, most geological units in nature have obvious non-stationary characteristics, that is, regionalized variables are independent of each other in different positions and directions. Therefore, the spatial structural characteristics and the corresponding attribute distribution patterns cannot be finely characterized, resulting in poor simulation performance. In addition, most stochastic simulation methods are CPU-intensive computing processes, and their internal parameters will be discarded at the end of the simulation process. Each simulation needs to be calculated repeatedly, which will cause more computing resource consumption for large-scale, high-precision, and continuous simulation processes. Summary of the invention
[0004] The purpose of the present invention is to provide a three-dimensional geological modeling method based on octave convolution and generative adversarial network, so as to better reproduce the distribution pattern characteristics and laws of different physical parameters in three-dimensional space; quickly obtain a variety of simulation results, and realize efficient and automatic construction of three-dimensional geological bodies.
[0005] The three-dimensional geological modeling method based on octave convolution and generative adversarial network provided by the present invention includes: S1: obtaining multi-source heterogeneous geological data and original irregular grids of a study area, and obtaining a priori geological model of the study area according to the multi-source heterogeneous geological data and the original irregular grid; S2: obtaining a regular grid, gridding the priori geological model, and obtaining attribute information of each grid; mapping all attribute information to the regular grid, performing multi-scale characterization on the regular grid, and obtaining a multi-scale characterization result, wherein the multi-scale characterization result includes training images of all training stages; S3: obtaining a generative adversarial network, wherein the generative adversarial network includes a generator and a discriminator; the generator is used to generate simulation results, and the discriminator is used to perform multi-scale discrimination at different training stages; obtaining hyperparameters of network training, wherein the hyperparameters are used for network training, and the hyperparameters include the total number of training stages, the learning rate, the size of the training image in the initial training stage, the adversarial loss and the weight loss. The weight coefficient of the loss term is constructed; S4: according to the multi-scale characterization result, the hyperparameter is used to perform multi-stage training on the generative adversarial network to obtain network parameter optimization results and simulation results of all training stages; S5: when the difference between the simulation result of each training stage and the training image of each training stage is less than a preset value, the training stage is ended to obtain the generator of each training stage, and the generator of each training stage is used for the three-dimensional reconstruction task of the subsequent process; when the difference between the simulation result of each training stage and the training image of the training stage is not less than a preset value, return to step S3, re-acquire the hyperparameter, and perform a new round of training on the adversarial network until the difference between the simulation result of each training stage and the training image of the training stage is less than a preset value; finally, the trained generators of all training stages are obtained; S6: using the trained generator, the simulation result of the last training stage is inversely mapped to the original irregular grid to obtain a multi-scale three-dimensional geological model.
[0006] Furthermore, step S2 of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network includes: S21: obtaining a regular grid, gridding the prior geological model, and obtaining attribute information of each grid; mapping all attribute information to the regular grid to obtain a new regular grid; S22: constructing a pyramid structure, such as formula:
[0007] y i =y n ×m ((n-1) / log n)*log(n-i)+1 , i=1,...,n-1
[0008] m=(min(L1, W1, H1) / min(L*δ, W*δ, H*δ)) 1 / (n-1)
[0009] δ=min(max(Ls , W s , H s ) / max(L, W, H), 1)
[0010] Where n is the number of training stages, y i is the training image size of the i-th training stage, min(·) is the minimum operation, max(·) is the maximum operation, L s is the length of the three-dimensional geological body, W s is the width of the three-dimensional geological body, H s is the height of the three-dimensional geological body, m and δ are scaling factors; S23: inputting the new regular grid into the pyramid structure to obtain a multi-scale characterization result, which includes training images of all training stages.
[0011] Furthermore, the discriminator of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network includes a preset number of convolution layers and activation function layers.
[0012] Furthermore, the generator of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network includes a preset number of octave convolution layers, such as formula:
[0013] Y H =f(X H ; W H→H )+upsample(f(X L ; W L→H ), 2)
[0014] Y L =f(X L ; W L→L )+f(pool(X H , 2), W H→L )
[0015] Among them, Y H is the generated high-frequency feature information, f(X;W) is the convolution calculation with parameter W for the object with feature map information X, X H To input high-frequency feature information, W H→H is the exchange of high-frequency feature information, upsample(X, k) is the upsampling with a scaling factor of k, and X L To input low-frequency feature information, W L→H For the exchange of feature information from low frequency to high frequency, Y L is the generated low-frequency feature information, W L→L is the exchange of low-frequency to low-frequency feature information, pool(X, k) is the average pooling of the convolution kernel size k×k×k, and W H→L It is the exchange of feature information from high frequency to low frequency.
[0016] Furthermore, step S4 of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network includes: S41: obtaining the noise of each training stage, and obtaining a random noise sequence according to the noise of each training stage, wherein the size of the noise of each training stage is the size of the training image of each training stage; S42: in the first training stage, randomly initializing the generative adversarial network, inputting the noise of this training stage into the generator, and obtaining the simulation result of this training stage; S43: starting from the second training stage, upsampling the simulation result of the adjacent previous training stage to obtain the processed result, and upsampling the processed result The result is combined with the noise of this training stage as the input of the generator of this training stage to obtain the simulation result of this training stage; S44: according to the simulation result of this training stage and the training image of this training stage, the discriminator is used to perform discrimination to obtain the discrimination result of this training stage; S45: construct a joint loss function, and use the joint loss function to optimize the network parameters of this training stage to obtain the network parameter optimization result of this training stage and the new simulation result of this training stage; S46: starting from the second training stage, repeat steps S43-S45 until the network parameters of all training stages are optimized.
[0017] Furthermore, step S45 of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network specifically includes: constructing a joint loss function, and calculating according to the simulation results, training images, and discrimination results of the present training stage; when the value of the loss function converges to a preset interval, stopping the training of the present training stage, and obtaining the network parameter optimization results of the present training stage and the simulation results of the present training stage, such as the formula:
[0018]
[0019]
[0020]
[0021]
[0022]
[0023] Among them, L total (G i , D i ) is the joint loss function of the i-th training stage, G i represents the generator of the i-th training stage, D i represents the discriminator of the i-th training stage, min is the minimum value calculation, max is the maximum value calculation, L adv (G i, D i ) is the adversarial loss of the i-th training stage, α is the weight coefficient, L rec (G i ) is the reconstruction loss of the i-th training stage, n is the number of preset training stages, is the mathematical expectation of the probability distribution characteristics of the simulation results of the i-th training stage, is the simulation result of the i-th training stage, P g is the probability distribution feature, D(·) is the discriminant result, is the mathematical expectation of the probability distribution characteristics of the training image in the i-th training stage, P r is the distribution feature of the real training image, x i is the training image of the i-th stage, β is the gradient penalty coefficient, L gp is the gradient penalty operator, E * is the corresponding mathematical expectation, is a random mixed tensor of simulation results and training images, is the distribution characteristic of the mixed tensor, ||**||2 is the L2 norm, is the gradient operator, G(·) is the simulation result of the generator, z i is the noise of the i-th training stage, and ↑ is the upsampling process.
[0024] The three-dimensional geological modeling method based on octave convolution and generative adversarial network provided by the present invention has the following beneficial effects:
[0025] Under the effect of multi-frequency feature representation, the 3D training image is decomposed into high-frequency information and low-frequency information, thereby reducing the redundancy of channels in the convolutional feature map and the redundancy of dense model parameters;
[0026] The adversarial loss and reconstruction loss are combined with different weights to construct a joint loss function. The difference between the generated distribution and the real distribution is calculated through the joint loss function. Based on the linear learning rate decreasing strategy, the network parameters of the generator and the discriminator are optimized using the gradient descent and back propagation algorithms to ensure the stability of the network training and the optimal structure of the simulation results, and better reproduce the distribution pattern characteristics and laws of different physical parameters in three-dimensional space.
[0027] Through the multi-scale reconstruction network, the abstract expression of prior geological knowledge is used to fit the potential distribution characteristics of the training data set, and the corresponding global and local feature information is captured under small-scale and large-scale conditions. The processing of different frequency feature maps in the three-dimensional image domain is realized, and a variety of simulation results are quickly obtained to achieve efficient and automatic construction of three-dimensional geological bodies. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0029] Figure 1 A flow chart of a three-dimensional geological modeling method based on octave convolution and generative adversarial network provided by the present invention;
[0030] Figure 2 A schematic diagram of the overall technical route of the three-dimensional geological modeling method provided by the present invention;
[0031] Figure 3 A schematic diagram of the network framework provided by the present invention;
[0032] Figure 4 A schematic diagram of random reconstruction results of porous medium sandstone with heterogeneous characteristics provided by the present invention;
[0033] Figure 5 The corresponding quantitative evaluation result diagram provided by the present invention is shown in FIG. Figure 5 (a) is to evaluate the spatial variability of the pore space structure using the variogram; Figure 5 (b) is to use multidimensional scaling analysis to measure the spatial structural similarity between different simulation results and the reference model; Figure 5 ( c )and Figure 5 (d) is an analysis of the connectivity of the pore space structure, including the calculation results of the connectivity probability in the horizontal direction (x direction) and the vertical direction (y direction). DETAILED DESCRIPTION
[0034] In order to make the purpose, technical scheme and technical effect of the present invention clearer, it will be further described below in conjunction with the accompanying drawings and specific implementation methods.
[0035] In this embodiment, the flow chart of the 3D geological modeling method based on octave convolution and generative adversarial network is as follows: Figure 1As shown, the three-dimensional geological modeling method based on octave convolution and generative adversarial network specifically includes the following steps: S1: obtaining multi-source heterogeneous geological data and original irregular grids of the study area, and obtaining a priori geological model of the study area according to the multi-source heterogeneous geological data and the original irregular grid; S2: obtaining a regular grid, gridding the priori geological model, and obtaining attribute information of each grid; mapping all attribute information to the regular grid, performing multi-scale characterization on the regular grid, and obtaining a multi-scale characterization result, and the multi-scale characterization result includes training images of all training stages; S3: obtaining a generative adversarial network, and the generative adversarial network includes a generator and a discriminator; the generator is used to generate simulation results, and the discriminator is used to perform multi-scale discrimination at different training stages; obtaining hyperparameters of network training, and the hyperparameters are used for network training, and the hyperparameters include the total number of training stages, the learning rate, the size of the training image in the initial training stage, the adversarial loss and the weight loss. The weight coefficient of the loss term is constructed; S4: according to the multi-scale characterization result, the hyperparameter is used to perform multi-stage training on the generative adversarial network to obtain the network parameter optimization results and simulation results of all training stages; S5: when the difference between the simulation results of each training stage and the training images of each training stage is less than a preset value, the training of the training stage is ended to obtain the generator of each training stage, and the generator of each training stage is used for the three-dimensional reconstruction task of the subsequent process; when the difference between the simulation results of each training stage and the training image of the training stage is not less than a preset value, return to step S3, re-acquire the hyperparameter, and perform a new round of training on the adversarial network until the difference between the simulation results of each training stage and the training images of the respective training stage is less than a preset value; finally, the trained generators of all training stages are obtained; S6: using the trained generator, the simulation results of the last training stage are inversely mapped to the original irregular grid to obtain a multi-scale three-dimensional geological model.
[0036] Specifically, step S2 of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network includes: S21: obtaining a regular grid, gridding the prior geological model, and obtaining attribute information of each grid; mapping all attribute information to the regular grid to obtain a new regular grid; S22: constructing a pyramid structure, such as formula:
[0037] y i =y n ×m ((n-1) / log n)*log(n-i)+1 , i=1,...,n-1
[0038] m=(min(L1, W1, H1) / min(L*δ, W*δ, H*δ)) 1 / (n-1)
[0039] δ=min(max(Ls , W s , H s ) / max(L, W, H), 1)
[0040] Where n is the number of training stages, y i is the training image size of the i-th training stage, min(·) is the minimum operation, max(·) is the maximum operation, L s is the length of the three-dimensional geological body, W s is the width of the three-dimensional geological body, H s is the height of the three-dimensional geological body, m and δ are scaling factors; S23: inputting the new regular grid into the pyramid structure to obtain a multi-scale characterization result, which includes training images of all training stages.
[0041] Specifically, the discriminator of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network includes a preset number of convolution layers and activation function layers.
[0042] Specifically, the generator of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network includes a preset number of octave convolution layers, such as formula:
[0043] Y H =f(X H ; W H→H )+upsample(f(X L ; W L→H ), 2)
[0044] Y L =f(X L ; W L→L )+f(pool(X H , 2), W H→L )
[0045] Among them, Y H is the generated high-frequency feature information, f(X;W) is the convolution calculation with parameter W for the object with feature map information X, X H To input high-frequency feature information, W H→H is the exchange of high-frequency feature information, upsample(X, k) is the upsampling with a scaling factor of k, and X L To input low-frequency feature information, W L→H For the exchange of feature information from low frequency to high frequency, Y L is the generated low-frequency feature information, W L→L is the exchange of low-frequency to low-frequency feature information, pool(X, k) is the average pooling of the convolution kernel size k×k×k, and W H→L It is the exchange of feature information from high frequency to low frequency.
[0046] Specifically, step S4 of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network includes: S41: obtaining the noise of each training stage, and obtaining a random noise sequence according to the noise of each training stage, and the size of the noise of each training stage is the size of the training image of each training stage; S42: in the first training stage, randomly initializing the generative adversarial network, inputting the noise of this training stage into the generator, and obtaining the simulation result of this training stage; S43: starting from the second training stage, upsampling the simulation result of the adjacent previous training stage to obtain the processed result, and the processed result The result is combined with the noise of this training stage as the input of the generator of this training stage to obtain the simulation result of this training stage; S44: according to the simulation result of this training stage and the training image of this training stage, the discriminator is used to perform discrimination to obtain the discrimination result of this training stage; S45: a joint loss function is constructed, and the network parameters of this training stage are optimized by using the joint loss function to obtain the network parameter optimization result of this training stage and the new simulation result of this training stage; S46: starting from the second training stage, steps S43-S45 are repeated until the network parameters of all training stages are optimized.
[0047] Specifically, step S45 of the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network specifically includes: constructing a joint loss function, and calculating according to the simulation results, training images, and discrimination results of the present training stage; when the value of the loss function converges to a preset interval, stopping the training of the present training stage, and obtaining the network parameter optimization results of the present training stage and the new simulation results of the present training stage, such as the formula:
[0048]
[0049]
[0050]
[0051]
[0052]
[0053] Among them, L total (G i , D i ) is the joint loss function of the i-th training stage, G i represents the generator of the i-th training stage, D i represents the discriminator of the i-th training stage, min is the minimum value calculation, max is the maximum value calculation, L adv (G i, D i ) is the adversarial loss of the i-th training stage, α is the weight coefficient, L rec (G i ) is the reconstruction loss of the i-th training stage, n is the number of preset training stages, is the mathematical expectation of the probability distribution characteristics of the simulation results of the i-th training stage, is the simulation result of the i-th training stage, P g is the probability distribution feature, D(·) is the discriminant result, is the mathematical expectation of the probability distribution characteristics of the training image in the i-th training stage, P r is the distribution feature of the real training image, x i is the training image of the i-th stage, β is the gradient penalty coefficient, L gp is the gradient penalty operator, E * is the corresponding mathematical expectation, is a random mixed tensor of simulation results and training images, is the distribution characteristic of the mixed tensor, ||**||2 is the L2 norm, is the gradient operator, G(·) is the simulation result of the generator, z i is the noise of the i-th training stage, and ↑ is the upsampling process.
[0054] In some embodiments, the above-mentioned three-dimensional geological modeling method based on octave convolution and generative adversarial network can also be implemented in the following way.
[0055] In this embodiment, Figure 2 As shown, the 3D geological modeling method includes the following steps:
[0056] (1) Using multi-source heterogeneous geological data, establish a priori geological model of the study area;
[0057] (2) Input the prior geological body into the pyramid structure, characterize it at multiple scales, and arrange the corresponding characterization results in order from the small scale. The multi-scale characterization results can perform the following steps (2-1) to (2-2):
[0058] (2-1) Map the structural attribute information of the prior geological body to a regular grid in a certain order, and obtain the length, width and height of the three-dimensional geological body, which are recorded as L, W and H respectively;
[0059] (2-2) Assuming that the total number of training stages is n, for each training stage, the corresponding training image size can be defined as:
[0060] y i =y n ×m ((n-1) / log n)*log(n-i)+1 , i=1,...,n-1,
[0061] Among them, m can be written as:
[0062] m=(min(L1, W1, H1) / min(L*δ, W*δ, H*δ)) 1 / (n-1) ,
[0063] δ=min(max(L s , W s , H s ) / max(L, W, H), 1),
[0064] Where min(·) and max(·) represent the minimum and maximum operations respectively, and m and δ represent the scaling factors;
[0065] (3) predefine the hyperparameters in the network training process, including the total training stage n, the learning rate lr, the initial stage training image size min_size, the loss function weight coefficient w, etc.;
[0066] (4) Start with a small-scale training image and perform a sequential traversal to start multi-stage training. The multi-stage training process can perform the following steps (4-1) to (4-5):
[0067] (4-1) For the first training stage, a generator network and a discriminator network are initialized. Starting from the second training stage, the generator and the discriminator load the network parameters of the previous stage respectively, and perform the training task of the current stage on this basis. Among them, the generator is a network structure superimposed by multiple octave convolution layers. The calculation process of octave convolution can be expressed by mathematical formula as follows:
[0068] Y H =f(X H ; W H→H )+upsample(f(X L ; W L→H ), 2),
[0069] Y L =f(X L ; W L→L )+f(pool(X H , 2), W H→L ),
[0070] Among them, f(X;W) represents the convolution calculation with parameter W. pool(X,k) represents the average pooling of the convolution kernel size of k×k×k, upsample(X,k) is the upsampling process with a scale factor of k. In the three-dimensional case, the trilinear interpolation process can be used instead, or the nearest neighbor interpolation can be used. Under the action of multi-frequency feature representation, the three-dimensional training image is decomposed into high-frequency information and low-frequency information, thereby reducing the redundancy of channels in the convolution feature map and the redundancy of dense model parameters. The discriminator adopts the classic PatchGAN architecture, which is constructed by multiple convolutional layers and activation function layers, and performs multi-scale discrimination at different training stages;
[0071] (4-2) Define a random noise sequence whose size is the same as the training image of each stage. For the first stage, only random noise needs to be input to obtain the corresponding simulation results. Starting from the second training stage, the simulation results of the previous stage are upsampled, combined with random noise, and then input into the generator of the current stage to obtain the corresponding simulation results;
[0072] (4-3) Input the simulation results and training images into the discriminator respectively to perform a multi-scale discrimination process;
[0073] (4-4) Using the discriminator's discrimination results, the joint loss function is used to calculate the difference between the generated distribution and the true distribution. Based on the linear learning rate decreasing strategy, the network parameters of the generator and discriminator are optimized using the gradient descent and back propagation algorithms. The joint loss function is defined as follows:
[0074]
[0075] in, represents the adversarial loss, which is used to optimize the network parameters of G and D. Represents the reconstruction loss, which only applies to the optimization process of G. It can be expanded into the following form:
[0076]
[0077]
[0078]
[0079] Among them, x i represents the training image of the i-th stage, is the corresponding simulation result. g is the probability distribution characteristic, E * is the corresponding mathematical expectation, β is the gradient penalty coefficient, is the gradient operator, is a mixed tensor, representing the element-wise addition of random proportions extracted from real data and generated data. i is random noise, and ↑ is the upsampling process. In terms of the experimental results, the calculation form of mean square error is mainly introduced to ensure the optimal structural characteristics of the reconstruction results, which can be summarized as follows:
[0080]
[0081] When the value of the loss function converges to a certain interval, the network training process is stopped and the corresponding network parameters are saved; the network framework is as follows Figure 3 As shown;
[0082] (4-5) Repeat steps (4-1) to (4-4) until the network parameters of all stages have been optimized;
[0083] (5) The simulation results of different scales are qualitatively and quantitatively evaluated in terms of spatial variability, channel connectivity, and spatial structure. If the simulation performance is good, the trained generator network parameters can be used multiple times and serially spliced to achieve a multi-scale reconstruction process; otherwise, return to step (2), reset the network hyperparameter values, and start a new round of training.
[0084] In some embodiments, the above three-dimensional geological modeling method can also be implemented in the following manner.
[0085] In this embodiment, taking porous sandstone structure as an example, firstly, different geological knowledge and cognitive laws are combined to map irregular attribute parameters into a regular grid, and a corresponding sandstone structure training image is established.
[0086] The original porous sandstone structure is meshed, and the attribute information is mapped to the regular grid to obtain the corresponding three-dimensional training image. The three-dimensional training image is input into the pyramid structure, the total training stage n is set to 5, the initial stage training image size min_size is defined as 20, the original training image size is 64, and the size of the training image in each stage can be calculated according to the formula as 20×20×20, 24×24×24, 31×31×31, 48×48×48 and 64×64×64.
[0087] The hyperparameters in the predefined network training process are as follows: the total training stage n is set to 5, the number of epochs in a single stage is set to 600, the learning rate lr is set to 0.0001, and the prior loss weight coefficient w is set to 1. prior Set to 1, the reconstruction loss weight coefficient α is set to 10, and the optimizer category selects Adam with default parameter settings;
[0088] Repeat the following process: For the first training stage, initialize a generator network and a discriminator network, and use only noise as the input of the generator in the first stage. Starting from the second stage, upsample the simulation results of the previous stage to the same size as the training image of the current stage, and then input the noise of the same size, and obtain the corresponding simulation results. Input the simulation results and the real training image into the discriminator, and optimize the network parameters of the current stage through the output of the discriminator based on the gradient descent and back propagation algorithm and the joint loss function. When the value of the joint loss function converges to a certain interval, it can be judged that the network parameter training is completed and has approached the global optimal value, and the network parameters are saved.
[0089] When the network parameter training of all stages is completed, the variogram, connectivity function and multidimensional scaling analysis are used to determine the degree of similarity between the simulation results and the reference model in terms of spatial variability, channel connectivity and spatial structure. If the difference between the two is small, the trained network parameters can be reused to reverse map the simulation results to the original irregular grid and realize the rapid and automatic construction of the three-dimensional geological body in the subsequent process; otherwise, the value range of the hyperparameters is reset and the network is retrained.
[0090] The specific random reconstruction results of porous sandstone are as follows: Figure 4 As shown; for the reconnection result, Figure 5 The corresponding quantitative evaluation results are provided, where Figure 5 (a) is to evaluate the spatial variability of the pore space structure using the variogram; Figure 5 (b) is to use multidimensional scaling analysis to measure the spatial structural similarity between different simulation results and the reference model; Figure 5 (c) and Figure 5 (d) is an analysis of the connectivity of the pore space structure, including the calculation results of the connectivity probability in the horizontal direction (x direction) and the vertical direction (y direction). It can be seen that the reconstruction results fit the reference model well.
[0091] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A three-dimensional geological modeling method based on octave convolution and generative adversarial network, characterized in that: include: S1: acquiring multi-source heterogeneous geological data and an original irregular grid of a study area, and obtaining a priori geological model of the study area according to the multi-source heterogeneous geological data and the original irregular grid; S2: Obtain a regular grid, grid the prior geological model, and obtain attribute information of each grid; map all attribute information to the regular grid, perform multi-scale characterization on the regular grid, and obtain a multi-scale characterization result, wherein the multi-scale characterization result includes training images of all training stages; S3: Obtain a generative adversarial network, the generative adversarial network includes a generator and a discriminator; the generator is used to generate simulation results, and the discriminator is used to perform multi-scale discrimination at different training stages; obtain hyperparameters for network training, the hyperparameters are used for network training, and the hyperparameters include the total number of training stages, the learning rate, the training image size in the initial training stage, and the weight coefficients of the adversarial loss and the reconstruction loss terms; S4: According to the multi-scale characterization result, the hyperparameters are used to perform multi-stage training on the generative adversarial network to obtain network parameter optimization results and simulation results of all training stages; S5: when the difference between the simulation results of each training stage and the training images of each training stage is less than a preset value, the training of the training stage is terminated to obtain the generator of each training stage, and the generator of each training stage is used for the three-dimensional reconstruction task of the subsequent process; when the difference between the simulation results of each training stage and the training images of the training stage is not less than a preset value, return to step S3, re-acquire the hyperparameters, and perform a new round of training on the adversarial network until the difference between the simulation results of each training stage and the training images of each training stage is less than a preset value; finally, the trained generators of all training stages and the simulation results of all training stages are obtained; S6: Using the trained generator, reversely map the simulation results of the last training stage to the original irregular grid to obtain a multi-scale three-dimensional geological model.
2. The three-dimensional geological modeling method based on octave convolution and generative adversarial network according to claim 1, characterized in that: The step S2 comprises: S21: Obtain a regular grid, grid the priori geological model, and obtain attribute information of each grid; map all attribute information to the regular grid to obtain a new regular grid; S22: Construct a pyramid structure, such as the formula: and i =and n ×m ((n-1) / log n)*log(n-i)+1, i=1,...,n-1 m=(min(L1, W1, H1) / min(L*δ, W*δ, H*δ)) 1 / (n-1) δ=min(max(L s ,IN s ,H s ) / max(L,W,H),1) Where n is the number of training stages, y i is the training image size of the i-th training stage, min(·) is the minimum operation, max(·) is the maximum operation, L s is the length of the three-dimensional geological body, W s is the width of the three-dimensional geological body, H s is the height of the three-dimensional geological body, m and δ are scaling factors; S23: Inputting the new regular grid into the pyramid structure to obtain a multi-scale characterization result, wherein the multi-scale characterization result includes training images of all training stages.
3. The three-dimensional geological modeling method based on octave convolution and generative adversarial network according to claim 2, characterized in that: The discriminator includes a preset number of convolutional layers and activation function layers.
4. The three-dimensional geological modeling method based on octave convolution and generative adversarial network as claimed in claim 3, characterized in that: The generator includes a preset number of octave convolutional layers, as shown in the formula: Y H =f(X H ;W H→H )+upsample(f(X L ;W L→H ),2) Y L =f(X L ;W L→L )+f(pool(X H ,2),W H→L ) Among them, Y H is the generated high-frequency feature information, f(X;W) is the convolution calculation with parameter W for the object with feature map information X, X H To input high-frequency feature information, W H→H is the exchange of high-frequency feature information, upsample(X, k) is the upsampling with a scaling factor of k, and X L To input low-frequency feature information, W L→H For the exchange of feature information from low frequency to high frequency, Y L is the generated low-frequency feature information, W L→L is the exchange of low-frequency to low-frequency feature information, pool(X, k) is the average pooling of the convolution kernel size k×k×k, and W H→L It is the exchange of feature information from high frequency to low frequency.
5. The three-dimensional geological modeling method based on octave convolution and generative adversarial network according to claim 3, characterized in that: The step S4 comprises: S41: Acquire the noise of each training stage, and obtain a random noise sequence according to the noise of each training stage, wherein the size of the noise of each training stage is the size of the training image of each training stage; S42: In the first training stage, the generative adversarial network is randomly initialized, and the noise of this training stage is input into the generator to obtain the simulation result of this training stage; S43: starting from the second training stage, upsampling the simulation result of the previous training stage to obtain a processed result, combining the processed result with the noise of the current training stage as the input of the generator of the current training stage to obtain the simulation result of the current training stage; S44: using the discriminator to perform discrimination according to the simulation result of the present training stage and the training image of the present training stage, and obtaining the discrimination result of the present training stage; S45: constructing a joint loss function, and using the joint loss function to optimize the network parameters of the current training stage, to obtain the network parameter optimization result of the current training stage and the new simulation result of the current training stage; S46: Starting from the second training stage, steps S43-S45 are repeated until the network parameters of all training stages are optimized.
6. The three-dimensional geological modeling method based on octave convolution and generative adversarial network according to claim 5, characterized in that: The step S45 specifically includes: Construct a joint loss function and perform calculations based on the simulation results, training images, and discrimination results of the current training phase; when the value of the loss function converges to a preset interval, stop the training of the current training phase, and obtain the network parameter optimization results of the current training phase and the new simulation results of the current training phase, as shown in the formula: Among them, L total (G i ,D i ) is the joint loss function of the i-th training stage, G i represents the generator of the i-th training stage, D i represents the discriminator of the i-th training stage, min is the minimum value calculation, max is the maximum value calculation, L adv (G i ,D i ) is the adversarial loss of the i-th training stage, α is the weight coefficient, L rec (G i ) is the reconstruction loss of the i-th training stage, n is the number of preset training stages, is the mathematical expectation of the probability distribution characteristics of the simulation results of the i-th training stage, is the simulation result of the i-th training stage, P g is the probability distribution feature, D(˙) is the discriminant result, is the mathematical expectation of the probability distribution characteristics of the training image in the i-th training stage, P r is the distribution feature of the real training image, x i is the training image of the i-th stage, β is the gradient penalty coefficient, L gp is the gradient penalty operator, E * is the corresponding mathematical expectation, is a random mixed tensor of simulation results and training images, is the distribution characteristic of the mixed tensor, ||**||2 is the L2 norm, is the gradient operator, G(˙) is the simulation result of the generator, z i is the noise of the i-th training stage, and ↑ is the upsampling process.
Citation Information
Cited By
Three-dimensional geological modeling parameter optimization method and system based on deep learning
CN119251423A
