Multi-source and multi-scale digital core image fusion method based on attention guidance
Through the attention-guided multi-source and multi-scale digital core image fusion method, combined with CT and SEM images, the problem that existing technology cannot describe the microstructure of complex reservoir rocks is solved, and a comprehensive characterization of multi-scale pore structure and mineral distribution is achieved. , generate a high-precision digital core model, providing effective technical support for oil field exploration.
Patent Information
- Application Number
- CN202311317679.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-10-12
AI Technical Summary
Existing multi-scale fusion methods of digital core images are difficult to truly reconstruct the microstructure of complex reservoir rocks, especially because they ignore clay morphology and multi-mineral components, and cannot fully describe heterogeneous features such as the multi-scale pore structure of tight sandstone.
A multi-source and multi-scale digital core image fusion method based on attention guidance is adopted. Through the fusion of CT scanning and SEM electron microscope scanning images, the attention mask and content mask generator are used to construct a recurrent generative adversarial network to achieve low-resolution image processing. High-resolution reconstruction and conversely, training the model to generate high-accuracy digital core images.
It achieves a comprehensive characterization of the multi-scale pore structure and mineral distribution in complex reservoir rocks, generates a high-precision digital core model, takes into account the accuracy of high-resolution electron microscope scanning images and the breadth of low-resolution CT scanning images, and solves non-standard problems. The difficult problem of describing homogeneous characteristics provides the basis for oilfield exploration and development.
Smart Images

Figure CN117635451B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital rock images, and in particular to a multi-source and multi-scale digital core image fusion method based on attention guidance. Background Art
[0002] In recent years, digital core analysis has become a popular technology in the field of oil and gas exploration and development. Technologies such as CT scanning and scanning electron microscopy have been widely used in constructing multi-component digital core models that reflect the true state of the reservoir. At the same time, deep learning technology has also played an important role in digital core image reconstruction and digital core analysis.
[0003] However, the existing digital core image multi-scale fusion method mainly focuses on the pore structure of homogeneous rocks, ignoring the necessary information such as clay morphology in the rock, and it is difficult to truly reconstruct the microstructure inside the rock. Therefore, for complex reservoir rocks (such as tight sandstone) with heterogeneous characteristics such as multi-mineral components and multi-scale pore structures, it is difficult to fully describe the real microstructure of the rock using the existing digital core modeling method.
[0004] Therefore, it is urgent to propose a method that can fully integrate multi-source and multi-scale digital core images to comprehensively characterize the multi-scale pore structure and mineral distribution in complex reservoir rocks. Summary of the invention
[0005] In order to solve the problem of difficulty in characterizing the multi-scale structure of complex reservoir rocks, the present invention proposes a multi-source and multi-scale digital core image fusion method based on attention guidance to construct a large-scale high-precision digital core model. By fusing multi-source and multi-scale digital core images, a comprehensive characterization of multi-scale pore structures such as intergranular pores and clay micropores in complex reservoir rocks and an accurate description of the mineral distribution in complex reservoir rocks are achieved.
[0006] The present invention adopts the following technical solutions:
[0007] The multi-source and multi-scale digital core image fusion method based on attention guidance specifically includes the following steps:
[0008] Step 1: Collect multiple core samples in the study area, perform CT scanning test and SEM electron microscope scanning test on each core sample, and obtain a three-dimensional CT scanning image and electron microscope scanning image of each core sample;
[0009] Step 2, after cropping the three-dimensional CT scanning images and the electron microscope scanning images of each core sample, construct a training data set, the training data set includes a three-dimensional CT scanning image data set and an electron microscope scanning image data set, wherein the three-dimensional CT scanning image data set is composed of the three-dimensional CT scanning images of each core sample, and the electron microscope scanning image data set is composed of the electron microscope scanning images of each core sample;
[0010] Step 3, construct a multi-source and multi-scale digital core image fusion model based on the attention-guided recurrent generative adversarial network, and use the training dataset to train the multi-source and multi-scale digital core image fusion model;
[0011] Step 4: Input multiple low-resolution rock three-dimensional CT scanning images to be processed into the trained multi-source multi-scale digital core image fusion model in sequence, and use the trained multi-source multi-scale digital core image fusion model to perform digital core image fusion to obtain a multi-source multi-scale digital core image.
[0012] Preferably, in step 1, the image accuracy of the three-dimensional CT scanning image of the same core sample is lower than the image accuracy of the electron microscope scanning image.
[0013] Preferably, the attention-guided recurrent generative adversarial network introduces the attention mechanism into the unpaired image conversion method, generates multiple attention masks and multiple content masks, and obtains key parts in the three-dimensional CT scan image and the electron microscope scan image of the core sample for digital core image fusion;
[0014] The multi-source and multi-scale digital core image fusion model constructed by the attention-guided cyclic generative adversarial network includes a generator G for converting a low-resolution image into a high-resolution image, a generator F for converting a high-resolution image into a low-resolution image, and a discriminator D corresponding to the generator G. HR And the discriminator D corresponding to the generator F LR ;
[0015] The generator G and the generator F each include an attention mask generator and a content mask generator, wherein the attention mask generator is used to generate a plurality of attention masks, and the content mask generator is used to generate a content mask;
[0016] The generator G includes an attention mask generator G A and a content mask generator G C , attention mask generator G A and content mask generator G C Set network parameters independently, attention mask generator G A The network parameters and content mask generator G C The network parameters do not interfere with each other;
[0017] The generator F includes an attention mask generator F A and a content mask generator F C , attention mask generator F A and content mask generator F C Set network parameters independently, attention mask generator F A The network parameters and content mask generator F C The network parameters do not interfere with each other;
[0018] When the 3D CT scan image of the core sample is input into the attention-guided multi-source multi-scale digital core image fusion model, according to the input 3D CT scan image of the core sample and the preset number of output channels n, the content mask generator G in the generator G is C Generate n-1 high-resolution content masks, attention mask generator G A Generate n-1 high-resolution attention masks and one high-resolution identity attention mask;
[0019] The content mask generator G C The generated high-resolution content masks and attention mask generator G A The corresponding generated high-resolution attention mask is fused to obtain a fusion image of the high-resolution content mask and the high-resolution attention mask; the attention mask generator G A The generated high-resolution identity attention mask is interpolated and fused with the three-dimensional CT scan image of the core sample obtained by upsampling to obtain a fused image of the high-resolution identity attention mask and the upsampled CT image; the fused image of the high-resolution content mask and the high-resolution attention mask is superimposed with the fused image of the high-resolution identity attention mask and the upsampled CT image to obtain the rock electron microscope scan image reconstructed by the generator G;
[0020] The rock electron microscope scanning image reconstructed by generator G is input into generator F, and the content mask generator F in generator F C Generate n-1 low-resolution content masks, attention mask generator F A Generate n-1 low-resolution attention masks and one low-resolution identity attention mask;
[0021] The content mask generator F C The generated low-resolution content masks and attention mask generator F A The corresponding generated low-resolution attention masks are fused to obtain the content mask generator F C Generated fused image; attention mask generator F AThe generated low-resolution identity attention mask is fused with the interpolation of the electron microscope scanning image of the core sample obtained by downsampling to obtain the attention mask generator F A The generated fused image; the content mask in generator F is generated F C The generated fused image and attention mask generator F A The generated fusion images are superimposed to obtain the three-dimensional CT scan image of the rock restored by the generator F.
[0022] Preferably, the generator G is used to convert a low-resolution image into a high-resolution image, and the conversion process is shown in formula (1):
[0023]
[0024] In the formula, x LR is the input image of the generator G; i is the channel number, n is the preset number of channels, is the content mask generator G in generator G C The high-resolution content mask generated by the i-th channel in is the attention mask generator G in the generator G A The high-resolution attention mask generated by the ith channel in is the attention mask generator G in the generator G A Generated high-resolution identity attention mask; x Bic Interpolate the three-dimensional CT scan images of core samples;
[0025] The generator F is used to restore the high-resolution image to a low-resolution image. The restoration process is shown in formula (2):
[0026]
[0027] In the formula, The content mask generator F in generator F C The high-resolution content mask generated by the i-th channel in is the attention mask generator F in generator F A The high-resolution attention mask generated by the ith channel in is the attention mask generator F in generator F A The generated high-resolution identity attention mask, G(x LR ) Bic Interpolation of electron microscope scanning images of core samples.
[0028] Preferably, during the training of the multi-source multi-scale digital core image fusion model, the conversion process of the generator G and the restoration process of the generator F are implemented using cycle-consistent loss, as shown in formula (3):
[0029]
[0030] Where, L cyc is the cycle consistency loss value, x LR is the input image of the generator G, x HR is the input image of the generator F, and All are mathematical expectations;
[0031] During the training process, the identity mapping loss is used to constrain the generator G and the generator F, as shown in formula (4):
[0032]
[0033] Where, L id is the identity mapping loss value, The input image x obtained by downsampling and the generator G LR Images of the same size, The input image obtained by upsampling is x HR Images of the same size;
[0034] During the training process, the adversarial loss corresponds to two mappings:
[0035]
[0036]
[0037] Where, L GAN To combat the loss value, D HR is the output value of the discriminator corresponding to the generator F, D LR is the output value of the discriminator corresponding to the generator G;
[0038] Based on the cycle consistency loss value, the identity mapping loss value and the adversarial loss value, the loss function of the multi-source and multi-scale digital core image fusion model is determined as follows:
[0039] L=L GAN +λ cyc L cyc +λ id L id (7)
[0040] Where L is the loss function value of the source multi-scale digital core image fusion model.
[0041] Preferably, the step 3 specifically includes the following steps:
[0042] Step 3.1, construct a multi-source multi-scale digital core image fusion model based on the attention-guided recurrent generative adversarial network, set the number of training times of the multi-source multi-scale digital core image fusion model, preset the number of channels of the multi-source multi-scale digital core image fusion model, and simultaneously input the three-dimensional CT scanning images in the three-dimensional CT scanning image data set and the electron microscope scanning images in the electron microscope scanning image data set into the multi-source multi-scale digital core image fusion model;
[0043] Step 3.2, randomly select a 3D CT scan image from the 3D CT scan image data set and input it into the generator G of the multi-source multi-scale digital core image fusion model, and use the generator G to reconstruct the rock electron microscope scan image;
[0044] Step 3.3: Input the rock electron microscope scanning image reconstructed by generator G to the discriminator D corresponding to generator G at the same time. HR In the generator F, the generator F restores the reconstructed rock electron microscope scanning image to obtain the restored rock three-dimensional CT scanning image, and inputs the restored rock three-dimensional CT scanning image into the discriminator D corresponding to the generator F. LR middle;
[0045] Step 3.4, set up the discriminator D HR The convergence condition of the discriminator D HR It can be judged that the rock electron microscope scanning image reconstructed by the generator G is false, and the rock electron microscope scanning image reconstructed by the generator G is input into the discriminator D together with the electron microscope scanning image in the electron microscope scanning image data set. HR In the discriminator D HR According to the electron microscope scanning images in the electron microscope scanning image data set, the rock electron microscope scanning images reconstructed by the generator G are judged. If the discriminator D HR If the discriminator can judge that the rock electron microscope scanning image reconstructed by the generator G is false, the network parameters of the generator G are adjusted, and the generator G is trained again in step 3.2. If the discriminator cannot judge that the rock electron microscope scanning image reconstructed by the generator G is false, the step is entered into step 3.5.
[0046] Step 3.5, set up the discriminator D LR The convergence condition of the discriminator D LR It can be judged that the rock 3D CT scan image restored by the generator F is false, and the rock 3D CT scan image restored by the generator F is input into the discriminator D together with the 3D CT scan image in the 3D CT scan image data set. LR In the discriminator D LR According to the 3D CT scan images in the 3D CT scan image dataset, the 3D CT scan images of rocks restored by the generator F are judged. If the discriminator D LRIf the discriminator can determine that the 3D CT scan image of the rock restored by the generator F is false, the network parameters of the generator F are adjusted, and the training of the generator F is continued in step 3.2. If the discriminator cannot determine that the 3D CT scan image of the rock restored by the generator F is false, the training proceeds to step 3.6.
[0047] Step 3.6, judging whether the current training times of the multi-source multi-scale digital core image fusion model has reached the preset training times, if the current training times have reached the preset training times, proceeding to step 3.7, otherwise, returning to step 3.2 to continue training the multi-source multi-scale digital core image fusion model;
[0048] Step 3.7, complete the training of the multi-source multi-scale digital core image fusion model, and obtain the trained multi-source multi-scale digital core image fusion model.
[0049] Preferably, the training times are no less than 40 times.
[0050] The present invention has the following beneficial effects:
[0051] The present invention constructs a multi-source and multi-scale digital core image fusion model based on an attention-guided recurrent generative adversarial network, trains the multi-source and multi-scale digital core image fusion model using three-dimensional CT scanning images and electron microscope scanning images of core samples, and uses the trained multi-source and multi-scale digital core image fusion model to perform multi-source and multi-scale digital core image fusion, taking into account the accuracy of high-resolution electron microscope scanning images and the breadth of low-resolution three-dimensional CT scanning images, to generate multi-source and multi-scale digital core images, thereby realizing the fusion of multi-source and multi-scale digital core image information.
[0052] The present invention solves the problem that heterogeneous characteristics such as multi-mineral components and multi-scale pore structures in complex reservoir rocks cannot be fully described, and realizes the comprehensive characterization of multi-scale pore structures such as intergranular pores and clay micropores in complex reservoir rocks and the distribution of minerals in complex reservoir rocks, laying a foundation for guiding oil field exploration and development, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 Flowchart of the attention-guided multi-source and multi-scale digital core image fusion method.
[0054] Figure 2 Schematic diagram of the training process of the multi-source and multi-scale digital core image fusion model.
[0055] Figure 3 This is a structural diagram of the multi-source and multi-scale digital core image fusion model.
[0056] Figure 4These are two-dimensional electron microscope scanning images before and after processing by the multi-source and multi-scale digital core image fusion model.
[0057] Figure 5 These are three-dimensional electron microscope scanning images before and after processing by the multi-source and multi-scale digital core image fusion model. DETAILED DESCRIPTION
[0058] The following uses a certain oil field as a research area and further describes the specific implementation methods of the present invention in conjunction with the accompanying drawings:
[0059] This paper proposes a multi-source and multi-scale digital core image fusion method based on attention guidance, such as Figure 1 As shown, the specific steps include:
[0060] Step 1, collect multiple core samples in the study area. In this embodiment, the core samples are 2.54 cm plunger samples. Perform CT scanning test and SEM electron microscope scanning test on each core sample to obtain a three-dimensional CT scanning image and an electron microscope scanning image of each core sample. The image accuracy of the three-dimensional CT scanning image is lower than that of the electron microscope scanning image. In this embodiment, the resolution of the three-dimensional CT scanning image and the electron microscope scanning image differs by 16 times, the resolution of the three-dimensional CT scanning image is 8 μm, and the resolution of the electron microscope scanning image is 0.5 μm.
[0061] Step 2: crop the three-dimensional CT scanning image and the electron microscope scanning image of each core sample. After cropping, the three-dimensional CT scanning image is 64×64 pixels and the electron microscope scanning image is 1024×1024 pixels. Use the cropped three-dimensional CT scanning image and the electron microscope scanning image to construct a training data set including a three-dimensional CT scanning image data set and an electron microscope scanning image data set, wherein the three-dimensional CT scanning image data set consists of the three-dimensional CT scanning images of each core sample, and the electron microscope scanning image data set consists of the electron microscope scanning images of each core sample.
[0062] Step 3: construct a multi-source and multi-scale digital core image fusion model based on the attention-guided recurrent generative adversarial network, and use the training dataset to train the multi-source and multi-scale digital core image fusion model, such as Figure 2 As shown, the specific steps include:
[0063] Step 3.1, construct a multi-source and multi-scale digital core image fusion model based on the attention-guided recurrent generative adversarial network, set the training times of the multi-source and multi-scale digital core image fusion model to 40 times, preset the number of channels of the multi-source and multi-scale digital core image fusion model, and input the three-dimensional CT scanning images in the three-dimensional CT scanning image data set and the electron microscope scanning images in the electron microscope scanning image data set into the multi-source and multi-scale digital core image fusion model at the same time.
[0064] In this embodiment, in order to obtain higher quality images, the attention-guided recurrent generative adversarial network introduces the attention mechanism into the unpaired image conversion method, and obtains the key parts of the three-dimensional CT scan image and the electron microscope scan image of the core sample by generating multiple attention masks and multiple content masks, thereby improving the accuracy of digital core image fusion.
[0065] The multi-source and multi-scale digital core image fusion model constructed by the attention-guided cyclic generative adversarial network includes a generator G for converting a low-resolution image into a high-resolution image, a generator F for converting a high-resolution image into a low-resolution image, and a discriminator D corresponding to the generator G. HR And the discriminator D corresponding to the generator F LR ,like Figure 3 shown.
[0066] The generator G and the generator F both include an attention mask generator and a content mask generator, wherein the attention mask generator is used to generate multiple attention masks, and the content mask generator is used to generate a content mask.
[0067] The generator G includes an attention mask generator G A and a content mask generator G C , attention mask generator G A and content mask generator G C Set network parameters independently, attention mask generator G A The network parameters and content mask generator G C The network parameters do not interfere with each other.
[0068] The generator F includes an attention mask generator F A and a content mask generator F C , attention mask generator F A and content mask generator F C Set network parameters independently, attention mask generator F A The network parameters and content mask generator F C The network parameters do not interfere with each other.
[0069] When the 3D CT scan image of the core sample is input into the multi-source multi-scale digital core image fusion model based on attention guidance, according to the input 3D CT scan image of the core sample and the preset number of output channels n, in this embodiment, the preset number of channels n=8, the content mask generator G in the generator G is C Generate n-1 high-resolution content masks, attention mask generator G A Generate n-1 high-resolution attention masks and one high-resolution identity attention mask.
[0070] The content mask generator G C The generated high-resolution content masks and attention mask generator G A The corresponding generated high-resolution attention mask is fused to obtain a fusion image of the high-resolution content mask and the high-resolution attention mask; the attention mask generator G A The generated high-resolution identity attention mask is interpolated and fused with the three-dimensional CT scanning image of the core sample obtained by upsampling to obtain a fused image of the high-resolution identity attention mask and the upsampled CT image; the fused image of the high-resolution content mask and the high-resolution attention mask is superimposed with the fused image of the high-resolution identity attention mask and the upsampled CT image to obtain the rock electron microscope scanning image reconstructed by the generator G. In this way, the multi-source and multi-scale digital core image fusion model constructed based on the attention-guided recurrent generative adversarial network can learn the characteristics of different rock components in the high-resolution image while retaining the characteristics of the low-resolution image, and fuse the high-resolution content mask and its corresponding high-resolution attention mask with the original low-resolution image to generate a high-resolution fused image.
[0071] Then the rock electron microscope scanning image reconstructed by generator G is input into generator F, and the content mask generator F in generator F C Generate n-1 low-resolution content masks, attention mask generator F A Generate n-1 low-resolution attention masks and one low-resolution identity attention mask;
[0072] The content mask generator F C The generated low-resolution content masks and attention mask generator F A The corresponding generated low-resolution attention masks are fused to obtain the content mask generator F C Generated fused image; attention mask generator F A The generated low-resolution identity attention mask is fused with the interpolation of the electron microscope scanning image of the core sample obtained by downsampling to obtain the attention mask generator F A The generated fused image fuses the low-resolution content mask and its corresponding low-resolution attention mask with the generated high-resolution image. After reconstructing the low-resolution fused image, the content mask in generator F is generated by C The generated fused image and attention mask generator F A The generated fusion images are superimposed to obtain the three-dimensional CT scan image of the rock restored by the generator F.
[0073] The high resolution described in this embodiment is relative to the low resolution, and the high resolution is 16 times the low resolution.
[0074] In this embodiment, the generator G is used to convert a low-resolution image into a high-resolution image. The conversion process is shown in formula (1):
[0075]
[0076] In the formula, x LR is the input image of the generator G; i is the channel number, n is the preset number of channels, is the content mask generator G in generator G C The high-resolution content mask generated by the i-th channel in is the attention mask generator G in the generator G A The high-resolution attention mask generated by the ith channel in is the attention mask generator G in the generator G A Generated high-resolution identity attention mask; x Bic Interpolate the three-dimensional CT scan images of core samples;
[0077] The generator F is used to restore the high-resolution image to a low-resolution image. The restoration process is shown in formula (2):
[0078]
[0079] In the formula, The content mask generator F in generator F C The high-resolution content mask generated by the i-th channel in is the attention mask generator F in generator F A The high-resolution attention mask generated by the ith channel in is the attention mask generator F in generator F A The generated high-resolution identity attention mask, G(x LR ) Bic Interpolation of electron microscope scanning images of core samples.
[0080] During the training of the multi-source and multi-scale digital core image fusion model, the conversion process of the generator G and the restoration process of the generator F are implemented using cycle-consistent loss, as shown in formula (3):
[0081]
[0082] Where, L cyc is the cycle consistency loss value, x LR is the input image of the generator G, x HR is the input image of the generator F, and All are mathematical expectations.
[0083] During the training process, the identity mapping loss is used to constrain the generator G and the generator F, as shown in formula (4):
[0084]
[0085] Where, L id is the identity mapping loss value, The input image x obtained by downsampling and the generator G LR Images of the same size, The input image obtained by upsampling is x HR Images of the same size;
[0086] During the training process, the adversarial loss corresponds to two mappings:
[0087]
[0088]
[0089] Where, L GAN To combat the loss value, D HR is the output value of the discriminator corresponding to the generator F, D LR is the output value of the discriminator corresponding to the generator G.
[0090] Based on the cycle consistency loss value, the identity mapping loss value and the adversarial loss value, the loss function of the multi-source and multi-scale digital core image fusion model is determined as follows:
[0091] L=L GAN +λ cyc L cyc +λ id L id (7)
[0092] Where L is the loss function value of the source multi-scale digital core image fusion model.
[0093] Step 3.2, randomly select a three-dimensional CT scan image from the three-dimensional CT scan image data set and input it into the generator G of the multi-source multi-scale digital core image fusion model, and use the generator G to reconstruct the rock electron microscope scanning image.
[0094] Step 3.3: Input the rock electron microscope scanning image reconstructed by generator G to the discriminator D corresponding to generator G at the same time. HR In the generator F, the generator F restores the reconstructed rock electron microscope scanning image to obtain the restored rock three-dimensional CT scanning image, and inputs the restored rock three-dimensional CT scanning image into the discriminator D corresponding to the generator F. LR middle.
[0095] Step 3.4, set up the discriminator D HR The convergence condition of the discriminator D HR It can be judged that the rock electron microscope scanning image reconstructed by the generator G is false, and the rock electron microscope scanning image reconstructed by the generator G is input into the discriminator D together with the electron microscope scanning image in the electron microscope scanning image data set. HR In the discriminator D HR According to the electron microscope scanning images in the electron microscope scanning image data set, the rock electron microscope scanning images reconstructed by the generator G are judged. If the discriminator D HR If the discriminator can determine that the rock electron microscope scanning image reconstructed by generator G is false, adjust the network parameters of generator G and return to step 3.2 to continue training generator G. If the discriminator cannot determine that the rock electron microscope scanning image reconstructed by generator G is false, proceed to step 3.5.
[0096] Step 3.5, set up the discriminator D LR The convergence condition of the discriminator D LR It can be judged that the rock 3D CT scan image restored by the generator F is false, and the rock 3D CT scan image restored by the generator F is input into the discriminator D together with the 3D CT scan image in the 3D CT scan image data set. LR In the discriminator D LR According to the 3D CT scan images in the 3D CT scan image dataset, the 3D CT scan images of rocks restored by the generator F are judged. If the discriminator D LR If it can be determined that the 3D CT scan image of the rock restored by generator F is false, the network parameters of generator F are adjusted and the training of generator F is continued in step 3.2. If the discriminator cannot determine that the 3D CT scan image of the rock restored by generator F is false, the training process proceeds to step 3.6.
[0097] Step 3.6, determine whether the current training times of the multi-source multi-scale digital core image fusion model has reached the preset training times. If the current training times have reached the preset training times, proceed to step 3.7; otherwise, return to step 3.2 to continue training the multi-source multi-scale digital core image fusion model.
[0098] Step 3.7, complete the training of the multi-source multi-scale digital core image fusion model, and obtain the trained multi-source multi-scale digital core image fusion model. The image quality of the multi-source multi-scale digital core image generated by the trained multi-source multi-scale digital core image fusion model is the same as that of the real electron microscope scanning image.
[0099] Step 4: Input multiple low-resolution rock 3D CT scan images to be processed into the trained multi-source multi-scale digital core image fusion model in sequence, and use the trained multi-source multi-scale digital core image fusion model to perform digital core image fusion to obtain a multi-source multi-scale digital core image, such as Figure 4 and Figure 5 As shown, Figure 4 This is a schematic diagram of a 2D electron microscope scanning image before and after the 3D CT scanning image of a rock is processed by the multi-source and multi-scale digital core image fusion model. Figure 5 This is a schematic diagram of the three-dimensional electron microscope scanning image before and after the rock three-dimensional CT scanning image is processed by the multi-source and multi-scale digital core image fusion model.
[0100] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A multi-source and multi-scale digital core image fusion method based on attention guidance, characterized in that: The specific steps include: Step 1: Collect multiple core samples in the study area, perform CT scanning test and SEM electron microscope scanning test on each core sample, and obtain a three-dimensional CT scanning image and electron microscope scanning image of each core sample; Step 2, after cropping the three-dimensional CT scanning images and the electron microscope scanning images of each core sample, construct a training data set, the training data set includes a three-dimensional CT scanning image data set and an electron microscope scanning image data set, wherein the three-dimensional CT scanning image data set is composed of the three-dimensional CT scanning images of each core sample, and the electron microscope scanning image data set is composed of the electron microscope scanning images of each core sample; Step 3, construct a multi-source and multi-scale digital core image fusion model based on the attention-guided recurrent generative adversarial network, and use the training dataset to train the multi-source and multi-scale digital core image fusion model; Step 4: inputting a plurality of low-resolution rock three-dimensional CT scanning images to be processed into the trained multi-source multi-scale digital core image fusion model in sequence, and performing digital core image fusion using the trained multi-source multi-scale digital core image fusion model to obtain a multi-source multi-scale digital core image; The attention-guided recurrent generative adversarial network introduces the attention mechanism into the unpaired image conversion method, and generates multiple attention masks and multiple content masks to obtain the key parts of the three-dimensional CT scan image and the electron microscope scan image of the core sample for digital core image fusion; The multi-source and multi-scale digital core image fusion model constructed by the attention-guided cyclic generative adversarial network includes a generator G for converting a low-resolution image into a high-resolution image, a generator F for converting a high-resolution image into a low-resolution image, and a discriminator D corresponding to the generator G. HR And the discriminator D corresponding to the generator F LR ; The generator G and the generator F each include an attention mask generator and a content mask generator, wherein the attention mask generator is used to generate a plurality of attention masks, and the content mask generator is used to generate a content mask; The generator G includes an attention mask generator G A and a content mask generator G C , attention mask generator G A and content mask generator G C Set network parameters independently, attention mask generator G A The network parameters and content mask generator G C The network parameters do not interfere with each other; The generator F includes an attention mask generator F A and a content mask generator F C , attention mask generator F A and content mask generator F C Set network parameters independently, attention mask generator F A The network parameters and content mask generator F C The network parameters do not interfere with each other; When the 3D CT scan image of the core sample is input into the attention-guided multi-source multi-scale digital core image fusion model, according to the input 3D CT scan image of the core sample and the preset number of output channels n, the content mask generator G in the generator G is C Generate n-1 high-resolution content masks, attention mask generator G A Generate n-1 high-resolution attention masks and one high-resolution identity attention mask; The content mask generator G C The generated high-resolution content masks and attention mask generator G A The corresponding generated high-resolution attention mask is fused to obtain a fusion image of the high-resolution content mask and the high-resolution attention mask; the attention mask generator G A The generated high-resolution identity attention mask is interpolated and fused with the three-dimensional CT scan image of the core sample obtained by upsampling to obtain a fused image of the high-resolution identity attention mask and the upsampled CT image; the fused image of the high-resolution content mask and the high-resolution attention mask is superimposed with the fused image of the high-resolution identity attention mask and the upsampled CT image to obtain the rock electron microscope scan image reconstructed by the generator G; The rock electron microscope scanning image reconstructed by generator G is input into generator F, and the content mask generator F in generator F C Generate n-1 low-resolution content masks, attention mask generator F A Generate n-1 low-resolution attention masks and one low-resolution identity attention mask; The content mask generator F C The generated low-resolution content masks and attention mask generator F A The corresponding generated low-resolution attention masks are fused to obtain the content mask generator F C Generated fused image; attention mask generator F A The generated low-resolution identity attention mask is fused with the interpolation of the electron microscope scanning image of the core sample obtained by downsampling to obtain the attention mask generator F A The generated fused image; the content mask in generator F is generated F C The generated fused image and attention mask generator F A The generated fusion images are superimposed to obtain the three-dimensional CT scanning image of the rock restored by the generator F; The generator G is used to convert a low-resolution image into a high-resolution image. The conversion process is shown in formula (1): In the formula, x LR is the input image of the generator G; i is the channel number, n is the preset number of channels, is the content mask generator G in generator G C The high-resolution content mask generated by the i-th channel in is the attention mask generator G in the generator G A The high-resolution attention mask generated by the ith channel in is the attention mask generator G in the generator G A Generated high-resolution identity attention mask; x Bic Interpolate the three-dimensional CT scan images of core samples; The generator F is used to restore the high-resolution image to a low-resolution image. The restoration process is shown in formula (2): In the formula, The content mask generator F in generator F C The high-resolution content mask generated by the i-th channel in is the attention mask generator F in generator F A The high-resolution attention mask generated by the ith channel in is the attention mask generator F in generator F A The generated high-resolution identity attention mask, G(x LR ) Bic Interpolation of electron microscope scanning images of core samples.
2. The multi-source and multi-scale digital core image fusion method based on attention guidance according to claim 1 is characterized in that: In step 1, the image accuracy of the three-dimensional CT scanning image of the same core sample is lower than the image accuracy of the electron microscope scanning image.
3. The multi-source and multi-scale digital core image fusion method based on attention guidance according to claim 1 is characterized in that: During the training process of the multi-source multi-scale digital core image fusion model, the conversion process of the generator G and the restoration process of the generator F are implemented using cycle-consistent loss, as shown in formula (3): Where, L cyc is the cycle consistency loss value, x LR is the input image of the generator G, x HR is the input image of the generator F, and All are mathematical expectations; During the training process, the identity mapping loss is used to constrain the generator G and the generator F, as shown in formula (4): Where, L id is the identity mapping loss value, The input image x obtained by downsampling and the generator G LR Images of the same size, The input image obtained by upsampling is x HR Images of the same size; During the training process, the adversarial loss corresponds to two mappings: Where, L GAN To combat the loss value, D HR is the output value of the discriminator corresponding to the generator F, D LR is the output value of the discriminator corresponding to the generator G; Based on the cycle consistency loss value, the identity mapping loss value and the adversarial loss value, the loss function of the multi-source and multi-scale digital core image fusion model is determined as follows: L=L GAN +λ cyc L cyc +λ id L id (7) Where L is the loss function value of the source multi-scale digital core image fusion model.
4. The multi-source and multi-scale digital core image fusion method based on attention guidance according to claim 1 is characterized in that: The step 3 specifically includes the following steps: Step 3.1, construct a multi-source multi-scale digital core image fusion model based on the attention-guided recurrent generative adversarial network, set the number of training times of the multi-source multi-scale digital core image fusion model, preset the number of channels of the multi-source multi-scale digital core image fusion model, and simultaneously input the three-dimensional CT scanning images in the three-dimensional CT scanning image data set and the electron microscope scanning images in the electron microscope scanning image data set into the multi-source multi-scale digital core image fusion model; Step 3.2, randomly select a 3D CT scan image from the 3D CT scan image data set and input it into the generator G of the multi-source multi-scale digital core image fusion model, and use the generator G to reconstruct the rock electron microscope scan image; Step 3.3: Input the rock electron microscope scanning image reconstructed by generator G to the discriminator D corresponding to generator G at the same time. HR In the generator F, the generator F restores the reconstructed rock electron microscope scanning image to obtain the restored rock three-dimensional CT scanning image, and inputs the restored rock three-dimensional CT scanning image into the discriminator D corresponding to the generator F. LR middle; Step 3.4, set up the discriminator D HR The convergence condition of the discriminator D HR It can be judged that the rock electron microscope scanning image reconstructed by the generator G is false, and the rock electron microscope scanning image reconstructed by the generator G is input into the discriminator D together with the electron microscope scanning image in the electron microscope scanning image data set. HR In the discriminator D HR According to the electron microscope scanning images in the electron microscope scanning image data set, the rock electron microscope scanning images reconstructed by the generator G are judged. If the discriminator D HR If the discriminator can judge that the rock electron microscope scanning image reconstructed by the generator G is false, the network parameters of the generator G are adjusted, and the generator G is trained again in step 3.
2. If the discriminator cannot judge that the rock electron microscope scanning image reconstructed by the generator G is false, the step is entered into step 3.
5. Step 3.5, set up the discriminator D LR The convergence condition of the discriminator D LR It can be judged that the rock 3D CT scan image restored by the generator F is false, and the rock 3D CT scan image restored by the generator F is input into the discriminator D together with the 3D CT scan image in the 3D CT scan image data set. LR In the discriminator D LR According to the 3D CT scan images in the 3D CT scan image dataset, the 3D CT scan images of rocks restored by the generator F are judged. If the discriminator D LR If the discriminator can determine that the 3D CT scan image of the rock restored by the generator F is false, the network parameters of the generator F are adjusted, and the training of the generator F is continued in step 3.
2. If the discriminator cannot determine that the 3D CT scan image of the rock restored by the generator F is false, the training proceeds to step 3.
6. Step 3.6, judging whether the current training times of the multi-source multi-scale digital core image fusion model has reached the preset training times, if the current training times have reached the preset training times, proceeding to step 3.7, otherwise, returning to step 3.2 to continue training the multi-source multi-scale digital core image fusion model; Step 3.7, complete the training of the multi-source multi-scale digital core image fusion model, and obtain the trained multi-source multi-scale digital core image fusion model.
5. The multi-source and multi-scale digital core image fusion method based on attention guidance according to claim 4 is characterized in that: The training times are no less than 40 times.
