Core structure three-dimensional reconstruction method based on feature perception alignment generative adversarial network

By generating a three-dimensional core image reconstruction model based on feature-aware alignment to generate an adversarial network, and using a multi-scale perception feature loss function, the problems of low reconstruction efficiency and poor generalization in traditional methods are solved, and efficient and accurate three-dimensional core structure reconstruction is achieved, which is suitable for Images of cores with different porosity.

CN118823219APending Publication Date: 2024-10-22SICHUAN UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310404016.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-17
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Traditional core 3D reconstruction methods have problems such as low reconstruction efficiency, high time complexity, insufficient diversity of generated samples, and poor generalization to core images with different porosity. In particular, they require a large number of paired 2D-3D image data for training.

Method used

Design a three-dimensional reconstruction model of core images based on feature-aware alignment generative adversarial networks. Only 2D images are used for training and reconstruction. A multi-scale perceptual feature loss function is used to enable the model to adaptively learn the characteristics of core images with different porosity and improve the generalization ability.

Benefits of technology

It achieves efficient training and reconstruction of 3D core structures without the need for 3D structure labels, improves the model's generalization ability and reconstruction effect, and has good adaptability and accuracy for core images of different porosity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004180630400000051
    Figure BDA0004180630400000051
  • Figure BDA0004180630400000054
    Figure BDA0004180630400000054
  • Figure BDA0004180630400000055
    Figure BDA0004180630400000055
Patent Text Reader

Abstract

The invention discloses a core image microstructure three-dimensional reconstruction method based on a feature perception alignment generative adversarial network, and the method comprises the following steps: (1) collecting and making a core binary image data set for the training and testing of a network; (2) designing a generative adversarial network model based on feature perception alignment; (3) designing a feature alignment network module; (4) designing a multi-scale feature perception loss function; (5) designing a feature alignment loss function; (6) based on the above model and a loss function, completing training, and obtaining a multi-scale feature perception alignment generative adversarial network; (7) based on the trained model, using a generation module therein to complete three-dimensional reconstruction of the digital core image; according to the reconstruction method provided by the invention, the three-dimensional rock core image can be reconstructed by using a single image, and the method has generalization for rock core images with various different porosities, and has important application value in the field of petroleum geology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of three-dimensional reconstruction of core microstructure, and specifically relates to a three-dimensional reconstruction method of core image microstructure based on feature-aware alignment generative adversarial network, which belongs to the technical field of image processing. Background Art

[0002] The microscopic properties of core structure play an important guiding role in studying the macroscopic properties of reservoirs. Traditional rock physics experiments to obtain core microscopic properties have the following disadvantages: core samples are easily destroyed, the experiment is difficult to repeat; low-porosity rock displacement experiments are difficult to carry out; representative rock fracture samples are difficult to obtain; and the experimental cost is high. Digital core is a technology that uses digital core images to simulate and analyze the microscopic properties of cores, which can effectively solve the problems existing in rock physics experimental methods. Digital core modeling, analysis, and simulation of the microstructure of core images provide basic physical data for reservoir property analysis, resource and texture exploration, and has gradually become an important analytical tool in these fields in recent years.

[0003] There are two main paths to obtain the microstructure of the core. The direct reconstruction method uses imaging equipment (such as CT scanners, etc.) to scan and image the core sample to obtain the three-dimensional core structure. Limited by the imaging principle, the direct imaging method has the problem of balancing resolution and field of view, that is, scanning the high-resolution core structure, the sample size will be limited, and the smaller core samples lack representativeness. It is difficult for the direct imaging method to obtain a large field of view with high resolution and good representativeness. The digital core three-dimensional reconstruction method provides a new path for obtaining three-dimensional structure. Unlike the direct imaging method, the core three-dimensional reconstruction method usually only uses the pattern distribution, statistical characteristics and other information in the limited two-dimensional core image to reconstruct the corresponding three-dimensional structure. Traditional core three-dimensional reconstruction can be divided into reconstruction methods based on optimization, reconstruction methods based on multi-point statistics, reconstruction methods based on pattern matching, and reconstruction methods based on machine learning. This type of algorithm has problems such as low reconstruction efficiency, geometric multiplication of time complexity and reconstruction size, and insufficient diversity of generated samples. With the application of deep learning in this field, the core three-dimensional reconstruction algorithm based on deep learning has gradually become a research hotspot. The current mainstream deep learning algorithm is a three-dimensional reconstruction model based on generative adversarial networks. However, such methods usually require a large amount of paired 2D-3D image data, and there are also problems such as poor generalization. To this end, the present invention proposes a three-dimensional reconstruction model of core images based on feature-aware alignment generative adversarial networks. The algorithm does not require paired 2D-3D image data for training, and only requires 2D images during training, so the diversity of the data set can be expanded accordingly; in addition, the proposed multi-scale perception feature loss function can enable the model to adaptively learn the same features of core images with different porosities, so that the generalization ability of the model is improved. The algorithm only requires 2D images to train and reconstruct three-dimensional core structures, and has good generalization ability for core images of different porosities. Summary of the invention

[0004] The purpose of the present invention is to propose a three-dimensional reconstruction method for the microstructure of core images based on feature-aware alignment generative adversarial networks. Only 2D images are used for training and reconstruction, and the model can be applied to the three-dimensional reconstruction of core images with different porosities.

[0005] The present invention achieves the above object through the following technical solutions:

[0006] (1) Collect and produce a core binary image dataset for network training and testing;

[0007] (2) Design a generative network model based on feature-aware alignment generative adversarial network;

[0008] (3) Design a 3D core image generator module based on a 2D encoder, a feature alignment network module, and a 3D decoder;

[0009] (4) Design feature alignment loss function L fa ;

[0010] (5) Design discriminator modules for three slice directions;

[0011] (6) Design a multi-scale feature perception loss function L fp ;

[0012] (7) Based on the above model and loss function, complete the training and obtain a multi-scale feature-aware alignment generative adversarial network;

[0013] (8) Based on the trained model, the generation module is used to complete the three-dimensional reconstruction of the digital core image. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a flowchart of a method for three-dimensional reconstruction of core images based on a feature-aware alignment generative adversarial network of the present invention;

[0015] Figure 2 It is an algorithm block diagram of the multi-scale feature-aware alignment generative adversarial network proposed in the present invention;

[0016] Figure 3 It is the network structure of the multi-scale feature-aware alignment generative adversarial network generator proposed in the present invention;

[0017] Figure 4 It is the network structure of the multi-scale feature-aware alignment generative adversarial network discriminator proposed in the present invention;

[0018] Figure 5 Visual comparison of 3D reconstruction of core images with a porosity of 20%;

[0019] Figure 6 Quantitative comparison of statistical functions of core images with a porosity of 20%;

[0020] Figure 7 Visual comparison of 3D reconstruction of core images with a porosity of 11%;

[0021] Figure 8 Quantitative comparison of statistical functions of core images with a porosity of 11%; DETAILED DESCRIPTION

[0022] The embodiments of the present invention are described in more detail below with reference to the accompanying drawings. Although the embodiments of the present invention are given in the accompanying drawings and below, the present invention can be implemented in many forms and is not limited by the embodiments described in the accompanying drawings and below. The embodiments described in the accompanying drawings and below are provided to enable the present invention to be more completely and accurately understood by those skilled in the art.

[0023] Figure 1 In this paper, a new 3D reconstruction method of core images based on feature-aware alignment generative adversarial network is proposed, which can be divided into the following steps:

[0024] (1) Collect and produce a core binary image dataset for network training and testing;

[0025] (2) Design a generative network model based on feature-aware alignment generative adversarial network;

[0026] (3) Design a 3D core image generator module based on a 2D encoder, a feature alignment network module, and a 3D decoder;

[0027] (4) Design feature alignment loss function L fa ;

[0028] (5) Design discriminator modules for three slice directions;

[0029] (6) Design a multi-scale feature perception loss function L fp ;

[0030] (7) Based on the above model and loss function, complete the training and obtain a multi-scale feature-aware alignment generative adversarial network;

[0031] (8) Based on the trained model, the generation module is used to complete the three-dimensional reconstruction of the digital core image.

[0032] For step (1), since the multi-scale feature-aware alignment generative adversarial network proposed in the present invention only needs 2D core images to train and generate 3D core structures, and does not need corresponding 3D structures as labels, the preparation of the data set is relatively easy. At the same time, in order to improve the generation and generalization capabilities of the model, a variety of 2D core images of different porosities can be added to the data set for training.

[0033] In step (2), the algorithm block diagram of the multi-scale feature-aware alignment generative adversarial network proposed by the present invention is shown in Figure 2. The network consists of two modules: the generator and the discriminator. The generator includes three parts: a 2D encoder, a feature alignment network module, and a 3D decoder. The generator inputs a 2D image (i.e., a training image TI) and generates a 2D feature map through the 2D encoder. The 2D feature map is then superimposed with the 3D noise Z and passed through the feature alignment module and the feature alignment loss L. fa The discriminator mainly includes discriminators in the three slice directions of x, y, and z. The discriminator inputs the slice images randomly sampled from the three slice directions of the generated 3D structure and the training images for identification. The multi-scale feature perception loss L fp The role of optimizing the network.

[0034] Specifically, the generator network structure of the multi-scale feature-aware alignment generative adversarial network proposed by the present invention in step (3) is as follows: Figure 3 As shown. The generator consists of a 2D encoder, a feature alignment module and a 3D decoder. In the training phase, the encoder inputs a 2D training image TI of size (N, N), and obtains a feature map of size (B, C4, N / 16, N / 16) after the 2D encoder (here B refers to batchsize, C refers to the number of channels designed for the network, and C4 refers to the number of channels of the 4th convolutional layer); then, the three-dimensional noise of size (B, C, (N / 16-1), N / 16, N / 16) is superimposed on the feature map to obtain a new feature map of size (B, C, N / 16, N / 16, N / 16) and input it into the feature alignment module; in order to make the semantics of the 3D feature map consistent with the 2D feature map, they are respectively subjected to the maximum pooling operation to obtain two feature vectors l with a length of C. 2D and l 3D , semantic alignment loss L fp The two feature vectors are constrained so that the 2D and 3D feature maps are semantically consistent. Finally, the 3D decoder will generate a 3D core image. In the implementation example of the present invention, the size of the training set image is (128, 128, 128), the batchsize set during training is B=1, the convolutional layer is designed to be 11 layers, and the number of channels is C1=16, C2=64, C3=128, C4=256, C5=256, C6=256, C7=256, C8=128, C9=64, C10=16, C11=1. The feature map size obtained after the 2D encoder is (1,256,8,8), which is transformed into (1,256,1,8,8) after the dimension expansion operation, and then superimposed with the noise of size (1,256,7,8,8) to obtain a feature map of size (1,256,8,8,8). On the one hand, this operation effectively reduces the video memory occupancy during network training. On the other hand, the feature map is input into the feature alignment module and through the joint action of the feature alignment loss, a 3D feature map with consistent semantics with the 2D feature map can be obtained for generating the 3D core structure.

[0035] The feature alignment loss described in step (4) is as shown in formula (1):

[0036]

[0037] In the implementation example of the present invention, wherein l 2D The feature vector is obtained by maximum pooling the 2D feature map of size (1, 256, 8, 8) output by the encoder, and its length is 256; 3DThe 3D feature map of size (1, 256, 8, 8, 8) output by the feature alignment module is subjected to maximum pooling to obtain a feature vector, whose length is also 256; D kl It refers to KL divergence, and the calculation process is shown in formula (2):

[0038] D kl (p||g)=∑ x∈x [p(x)logp(x)-p(x)log q(x)] (2)

[0039] In the implementation example of the present invention, L fa The loss is expressed as:

[0040]

[0041] L fa The loss constrains the distribution of the 2D feature map to be consistent with that of the 3D feature map, so that the expression of the 3D feature map is consistent with that of the 2D feature map.

[0042] In step (5), the discriminator network structure of the multi-scale feature-aware alignment generative adversarial network proposed by the present invention is as follows: Figure 4 As shown. In order to make the 3D structure generated by the generator have similar features to the training image in the three section directions, three discriminators are designed to work together on the generator. The specific operation is to randomly sample a 2D section from the three section directions of the 3D core structure Rec generated by the generator and input it into the discriminator for identification with the training image TI. In the implementation example of the present invention, the size of the training image TI is (128, 128), and the size of the generated image Rec is (128, 128, 128). Then the sizes of the randomly sampled pictures yz, xz and xy in the three section directions of x, y and z are all (128, 128). They are respectively input into discriminator 1, discriminator 2 and discriminator 3 together with TI for identification. The network structure and loss function of the three discriminators are the same. The discriminator will obtain multiple feature maps of different scales. In order to make the generated section image and the training image correctly match the features of the same scale for learning, a multi-scale perceptual loss function is further designed for constraint. The multi-scale perceptual loss can adaptively perceive the corresponding features at different scales in the rich multi-scale features for matching.

[0043] In step (6), in order to enhance the reconstruction and generalization capabilities of the model and make the feature distribution of each scale of the network close to the training image, a multi-scale perceptual loss L is designed. fp Sliced ​​Wasserstein distance (SWD) is often used to measure the distance between two distributions. The optimal correspondence between the elements of the distributions can be achieved by simply sorting the samples. The formula of SWD is shown in formula (4):

[0044] SWD(P,Q)=E ω W(P ω , Q ω ) (4)

[0045] Here for the projection vector ω, P ω is the projection of the sample from P in the ω direction. During the optimization process, the gradient of SWD(P,Q) can be obtained by randomly selecting k projection directions for projection and calculating the gradient:

[0046]

[0047] On this basis, the present invention further proposes a multi-scale perceptual loss function L fp By calculating the SWD of multiple scales, the features of multiple scales are sorted as a whole, and the corresponding features of adaptive perception are matched. The multi-scale perception loss function L fp As shown in formula (6):

[0048]

[0049] In formula (6), s represents the sth scale; K s represents the total number of random projections of the sth scale. In the implementation example of the present invention, Figure 4 As shown, s is equal to the number of convolutional layers of the discriminator network, and s is equal to 4, i.e., four scales; the number of projections at each scale is K1=512, K2=384, K3=256, and K4=128 respectively. The feature vectors projected at each scale are concatenated, sorted, and the loss is calculated. The total loss of the three discriminators is shown in formula (7):

[0050]

[0051] In addition, there is also a commonly used generative adversarial loss constraint during training, as shown in formula (8):

[0052]

[0053] Therefore, the total loss of the entire network is L total As shown in formula (9):

[0054]

[0055] In the step (7), training is completed based on the above-designed model and loss function to obtain a three-dimensional reconstruction model based on a feature-aware alignment generative adversarial network.

[0056] In order to prove the effectiveness and generalization of the method of the present invention, the present invention uses core images with porosity of about 20% and 11% for reconstruction. Through visual reconstruction effect comparison and statistical function quantitative comparison, the effectiveness of the algorithm is determined. The relevant experimental results are as follows:

[0057] Figure 5 The three-dimensional reconstruction result of the core image with a porosity of 20% is shown in Figure 1. The reference image 1 is a 2D core image used for reference reconstruction, which respectively shows the three-dimensional structure of the real reconstruction target and the reconstructed image, the three-dimensional orthogonal section, and the 2D images of the 1st, 6th, 11th and 128th sections in the z direction. The generated image has a high similarity with the real image in morphology, and the multi-calibration of the generated image is also good. Figure 6 The quantified comparison of statistical parameters after three-dimensional reconstruction of a core with a porosity of 20% is shown. Through the quantitative comparison of two-point correlation function and linear path function, it can be seen that the three-dimensional model reconstructed by the method of the present invention has a high degree of matching with the real three-dimensional structure in various statistical characteristics.

[0058] Figure 7 is the 3D reconstruction result of the core image with a porosity of 11%. Reference image 2 is the 2D core image used for reference reconstruction, which respectively shows the 3D structure of the real reconstructed target and the reconstructed image, the 3D orthogonal sections, and the 2D images of the 1st, 6th, 11th and 128th sections in the z direction. By observing the reconstructed 3D structure and comparing its 2D morphology with the real image, it can be seen that the generated 2D image is also similar to the target image in morphology. In addition, by conducting statistical parameter comparisons, such as Figure 8 As shown in Figure 2, the statistical parameters of the generated image are very consistent with those of the image to be reconstructed, which proves the effectiveness of the model.

[0059] Combining the comparison and verification of subjective visual effects and objective statistical functions, it can be seen that the method of the present invention has a good reconstruction effect on core images. And it has a good reconstruction effect for two groups of images with a large difference in porosity, which also proves the generalization ability of the method of the present invention. In summary, the present invention is an effective three-dimensional reconstruction method for core images. The invention can serve the field of petroleum geology, reduce the cost of core sample image acquisition, and improve the accuracy of core image analysis. It has great value in practical applications such as oil and gas exploration and mining.

[0060] The above embodiments are only preferred implementation cases of the present invention and are not limitations of the technical solutions described in the present invention. Any technical solution that can be implemented on the basis of the above implementation cases without creative work should be deemed to fall within the protection scope of the present invention.

Claims

1. 3D reconstruction method of core image microstructure based on feature-aware alignment generative adversarial network , It is characterized by the following steps: (1) Collect and produce a core binary image dataset for network training and testing; (2) Design a generative network model based on feature-aware alignment generative adversarial network; (3) Design a 3D core image generator module based on a 2D encoder, a feature alignment network module, and a 3D decoder; (4) Design feature alignment loss function L fa ; (5) Design discriminator modules for three slice directions; (6) Design a multi-scale feature perception loss function L fp ; (7) Based on the above model and loss function, complete the training and obtain a multi-scale feature-aware alignment generative adversarial network; (8) Based on the trained model, the generation module is used to complete the three-dimensional reconstruction of the digital core image.

2. According to claim 1, the method for three-dimensional reconstruction of core images based on feature-aware alignment generative adversarial network, Features The network model structure, generator module network structure and discriminator module network structure described in step (2), step (3) and step (5) are designed; the generator network structure of the multi-scale feature-aware alignment generative adversarial network proposed in the present invention consists of two modules, a generator and a discriminator. The generator includes three parts: a 2D encoder, a feature alignment network module and a 3D decoder. The generator inputs a 2D image (i.e., a training image TI) and generates a 2D feature map through a 2D encoder. The 2D feature map is then superimposed with the 3D noise Z and subjected to the joint action of the feature alignment module and the feature alignment loss L. fa , generate a 3D feature map that is semantically consistent with the 2D feature map, and finally generate a 3D core image through a 3D decoder; the discriminator mainly includes discriminators in three cross-sectional directions of x, y, and z. The discriminator inputs cross-sectional images randomly sampled from the three cross-sectional directions of the generated 3D structure and the training image for identification.

3. According to claim 1, the method for three-dimensional reconstruction of core images based on feature-aware alignment generative adversarial network, Features Design of the feature alignment loss function and the multi-scale perceptual loss function described in step (4) and step (6); In order to constrain the distribution of the 2D feature map and the 3D feature map to be consistent so that the expression of the 3D feature map is consistent with that of the 2D feature map, the feature alignment loss designed by the present invention is shown in formula (1): Among them l 2D The feature vector is obtained by maximum pooling of the 2D feature map output by the encoder; 3D The 3D feature map output by the feature alignment module is subjected to maximum pooling to obtain a feature vector; D kl It refers to KL divergence, and the calculation process is shown in formula (2): D kl (p||q)=∑ x∈X [p(x)logp(x)-p(x)logq(x)] (2) In order to enhance the reconstruction and generalization capabilities of the model and make the feature distribution of each scale of the network close to the training image, a multi-scale perceptual loss L is designed. fp , as shown in formula (2): Where s represents the sth scale; K s Represents the total number of random projections at the s-th scale.

Citation Information

Cited By

  • Weathered sandstone microscopic image generation method based on conditional generative adversarial network

    CN120655814A

  • Cement structure microstructure generation method and system based on multi-point statistical modification meaning, terminal and storage medium

    CN121616698A