Progressive generation method of three-dimensional pore structure of soil aggregate

By preprocessing the CT scan image data of soil aggregates and training the adversarial network model through progressive reconstruction, the problem of difficulty in retaining the distribution pattern of soil aggregate pore characteristics in the existing technology is solved, and the three-dimensional pore structure of soil aggregates is realized. Efficient and diverse generation.

CN118799507AActive Publication Date: 2024-10-18JILIN AGRICULTURAL UNIV

Patent Information

Application Number
CN202411287593.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-10-18
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

Existing generative adversarial networks cannot effectively retain the distribution patterns of soil aggregate pore characteristics, resulting in generated soil structures that are not realistic and diverse enough.

Method used

A method for progressive generation of three-dimensional pore structure of soil aggregates is proposed. By preprocessing the original soil aggregate CT scan image data, a three-dimensional pore structure voxel matrix data set is constructed, and random sampling and down-sampling are performed at intervals to construct a progressive Reconstruct the generative adversarial network model and train the model to generate more realistic soil structures.

Benefits of technology

It realizes the automatic and rapid generation of clear and visually realistic three-dimensional pore structure of soil aggregates, improves the overall regularity and consistency of the generation process, and can better capture the overall distribution characteristics of soil pore structure at a specific resolution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799507A_ABST
    Figure CN118799507A_ABST
Patent Text Reader

Abstract

The invention discloses a progressive generation method of a three-dimensional pore structure of a soil aggregate. Belongs to the technical field of informatization image processing, and particularly relates to the technical field of soil aggregate structure feature analysis. The problem that an existing generative adversarial network cannot retain an original soil aggregate pore characteristic distribution rule is solved. Aiming at the problem that an existing generative model cannot retain an original soil aggregate pore feature distribution rule, adaptive improvement is carried out on a generative adversarial network framework, and a large number of clear and diversified soil aggregate pore three-dimensional structures with vivid visual effects can be automatically and rapidly generated; a one-time generation process of an original generative adversarial network is changed into a progressive generation process, the overall distribution characteristics of a pore structure under a specific resolution can be captured, and specific detail characteristics of a single sub-sample are not only concerned, so that a better generation effect is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of information-based image processing, and in particular to the technical field of soil aggregate structure characteristic analysis. Background Art

[0002] Soil supports about 95% of global agricultural production. It is an important resource for human survival and a key component of the earth's ecosystem. Soil quality is of great significance to maintaining biodiversity, stabilizing agricultural production and protecting the environment. Soil quality assessment needs to be based on baselines or reference values ​​in order to accurately determine the effectiveness of management measures. Generally, soil responds slowly to changes in land use and management methods, and it is often more complicated to monitor changes in soil quality before irreversible damage occurs. Soil quality assessment requires the determination of some soil sensitive properties that can reflect the ecological service capacity of soil. Soil structure is a key factor in assessing soil quality and can be used as an indicator to evaluate soil quality. Soil structure plays a vital role in regulating soil ecological functions. It directly affects water infiltration and retention, gas exchange, soil organic matter and nutrient cycling, and soil microbial diversity and activity. In addition, soil structure is affected by many factors, including environmental factors (such as parent material, topography, climate), biological factors (such as soil animals, plant roots, microbial activities) and human factors (such as tillage and mechanical compaction).

[0003] As the basic unit of soil structure, soil aggregates play an important role in regulating the physical, chemical and biological processes of soil, and their stability is an important indicator of the quality of soil structure. There is a very complex pore system inside soil aggregates, which directly affects the porosity and connectivity of the soil, determines the movement and exchange capacity of soil water, gas and nutrients, as well as the various physical, chemical and biological processes occurring inside the aggregates, and regulates various functions of the soil. A good soil aggregate structure can promote root development, enhance the effective use of water and nutrients, and thus improve soil quality and maintain soil health. Therefore, conducting soil quality-related analysis based on soil aggregate structure is of great significance to maintaining ecosystem health and improving agricultural productivity.

[0004] At present, the traditional method of obtaining the three-dimensional pore structure characteristic images of soil aggregates cannot directly observe soil aggregates. Since soil aggregates are usually located below the soil surface, have complex structural characteristics and are affected by many factors, direct observation and image acquisition become difficult. Existing studies extract color, geometry, texture and other features from CT images, and then establish classification or regression models with dependent variables, and have achieved certain results, but this mode of artificial design and feature extraction has certain limitations and limited generalization ability.

[0005] Advanced artificial intelligence data mining technology based on machine learning can identify potential distribution patterns in data sets, which is conducive to in-depth exploration of potential laws and connections in soil environmental data, and brings new perspectives to soil environmental science research. At present, machine learning has been widely used in soil classification, soil property prediction, digital soil mapping, soil pollution monitoring and soil quality (health) evaluation, and has achieved good results. In recent years, with the significant improvement of computer computing power and the continuous updating of algorithms and theories, the application cost and difficulty of machine learning have continued to decrease, and the accuracy of model methods has continued to improve, which is conducive to the application of machine learning methods in soil disciplines to carry out more in-depth and extensive research. Deep learning is an important branch of machine learning and a hot topic in the field of artificial intelligence. As a complex machine learning algorithm, deep learning aims to automatically extract multi-layer feature representations from data through a series of nonlinear transformations, relying on nonlinear information processing mechanisms, and using a combination of supervised and unsupervised training methods to extract and transform feature structures and data, and further realize the fitting of complex data relationships of samples. At present, it has been widely used in the monitoring and prediction of soil temperature and humidity, soil organic carbon, soil nutrients, etc. The deep cross-integration of machine learning methods and soil science can significantly improve the ability to analyze and interpret soil data, and improve the scientificity and accuracy of soil property prediction and soil management decisions. This interdisciplinary research method provides strong data support and methodological guarantees for revealing the complex relationship between soil properties and environmental factors, optimizing soil management practices, and supporting sustainable agricultural development.

[0006] In order to solve the problem that a large amount of data is required for model training, generative adversarial networks came into being. Generative adversarial networks (GANs) have achieved great success in image generation. Through adversarial training of generative models and discriminative models, the distribution of training data is learned, and potential information in the data is mined to generate new images with similar features. However, the original GAN ​​has disadvantages such as unstable training and low resolution of generated images. In recent years, many improved models have been proposed. Among them, 3D-porous-GAN is used to reconstruct digital cores from a single 3D image. This method successfully simulates and reconstructs complex 3D rock microstructures. E-GAN introduces evolutionary learning in the GAN generator, converts the adversarial training process into an evolutionary problem, and improves the stability of the training process and the performance of the generator.

[0007] Generating the three-dimensional pore structure of soil aggregates can learn the distribution of real soil data and generate a more realistic soil structure. It helps to explore the diversity and characteristic distribution of soil structure, including different pore shapes, size distribution, connectivity, etc., and deepen the understanding of the complexity of soil structure. Many studies have shown that generative adversarial networks have made significant progress in the field of rock and porous media microstructure generation, but the existing generative adversarial networks cannot retain the distribution law of the original soil aggregate pore characteristics. Summary of the invention

[0008] In order to solve the problem that the existing generative adversarial network cannot retain the distribution law of the original soil aggregate pore characteristics, the present invention proposes a progressive generation method of the three-dimensional pore structure of soil aggregates, which includes the following steps: S1, preprocessing the original soil aggregate CT scan image data, separating the pore part in the image, and constructing a three-dimensional pore structure voxel matrix data set of soil aggregates; S2, performing random sampling of the soil aggregate three-dimensional pore structure dataset to obtain the soil aggregate three-dimensional pore substructure dataset; S3, downsampling the three-dimensional pore substructure in the soil aggregate three-dimensional pore substructure dataset to obtain a soil aggregate three-dimensional pore substructure downsampled dataset; S4. Construct a progressive reconstruction generative adversarial network model, which is divided into a generative adversarial network branch and a reconstruction network branch; S5. Training a progressive reconstruction generative adversarial network model based on a soil aggregate three-dimensional pore substructure dataset to obtain an improved progressive reconstruction generative adversarial network model, and using the improved progressive reconstruction generative adversarial network model to generate the three-dimensional pore structure of soil aggregates.

[0009] Furthermore, the step S1 is specifically as follows: intercepting a crack-free area in the original soil aggregate CT scan image as a feature domain image, performing normalization processing, noise elimination processing, and smoothing processing on the intercepted feature domain image in sequence, and then performing threshold segmentation on the processed feature domain image to separate the pore part in the feature domain image, generate a binary image, and convert the binary image into a voxel matrix, which is a voxel matrix data set of the three-dimensional pore structure of soil aggregates.

[0010] Further, in step S2, when random sampling is performed on the soil aggregate three-dimensional pore structure data set, according to The voxel matrix specification is used to extract the soil aggregate 3D pore structure dataset, where The length, width and height of the voxel matrix are all n.

[0011] Further, adopt hThe three-dimensional pore substructure is downsampled by different sampling multiples to obtain the downsampled dataset of the three-dimensional pore substructure of soil aggregates. ,in, They represent data sets corresponding to different sampling multiples.

[0012] Further, in step S4, the generative adversarial network branch includes a generative model and discriminant model ; The target loss function of the generative adversarial network branch is:

[0013] In the formula, To generate the model, is the discriminant model, A dataset of soil aggregate 3D pore substructure The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in Generate model for input A normally distributed random variable, To generate the mathematical expectation of the pore structure; The generative model Depend on The deconvolution layer is composed of layers. is a hyperparameter, generating a model To the front The deconvolution output of the layer is batch normalized and ReLU nonlinearly activated to generate the model Perform Tanh nonlinear activation on the deconvolution output of the last layer; The discriminant model Depend on The discriminant model is composed of layers of convolutional layers. To the front The convolution output of the layer is spectrally normalized and LeakyReLU nonlinearly activated; discriminant model The convolution output of the last layer is activated by Sigmoid nonlinearity. The expression of Sigmoid function is as follows: ; In the formula, For the discriminant model The convolution output of the last layer.

[0014] Further, in step S4, the reconstructed network branch includes generating a model and discriminant model ; The loss function of the reconstruction network branch consists of two parts: the pore structure quality loss function and the adversarial loss function, and each generation model and discriminant model Combination of Each has its corresponding loss function; The pore structure quality loss function is: ; In the formula, express The pore structure quality loss function is Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The number of mesoporous structures, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The The pore structure Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The The pore structure The adversarial loss function is: ; In the formula, To generate the model, is the discriminant model, A dataset of soil aggregate 3D pore substructure The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in A dataset of soil aggregate 3D pore substructure The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in ; The generative model All by Layer convolutional layer composition, generating model To the front The convolution output of the layer is batch normalized and LeakyReLU nonlinearly activated to generate the model Perform Tanh nonlinear activation on the convolution output of the last layer; The discriminant model All by Layer convolution layer composition, discriminant model To the front The convolution output of the layer is batch normalized and LeakyReLU nonlinearly activated to discriminate the model The convolution output of the last layer is activated with Sigmoid nonlinearity.

[0015] Furthermore, the training of the progressive reconstruction generative adversarial network model is specifically as follows: improving the effect of the three-dimensional pore substructure generated by the progressive reconstruction generative adversarial network model, optimizing the network framework structure and hyperparameters, until the progressive reconstruction generative adversarial network model generates a three-dimensional pore structure of soil aggregates that matches the characteristic distribution of the real three-dimensional pore substructure.

[0016] The beneficial effects of the method of the present invention are: (1) Aiming at the problem that the existing generative model cannot preserve the distribution law of the original soil aggregate pore characteristics, the present invention makes adaptive improvements to the generative adversarial network framework, which can automatically and quickly generate a large number of relatively clear, visually realistic, and diverse soil aggregate pore three-dimensional structures; the one-time generation process of the original generative adversarial network is changed to a progressive generation process. The distribution characteristics of the soil pore structure data show stronger overall regularity than ordinary RGB image data. The amount of information of a single pore structure sub-sample is relatively small, while the overall distribution of multiple sub-samples of the same soil type and the same resolution shows a high consistency. Based on this, the progressive generation process can capture the overall distribution characteristics of the pore structure at a specific resolution, rather than just focusing on the specific detailed characteristics of a single sub-sample, thereby achieving a better generation effect.

[0017] (2) The present invention can effectively extract the distribution law of pore characteristics of soil aggregates and provide a reference method for the generation of three-dimensional pore structure of soil aggregates.

[0018] (3) The progressive reconstruction generative adversarial network provided by the present invention can provide new ideas and technical assistance for other three-dimensional image data enhancement problems in the field of agricultural informatization technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Flow chart of the method for generating three-dimensional pore structure of soil aggregates based on progressive reconstruction generative adversarial network; Figure 2 The basic framework diagram of the adversarial network generated by progressive reconstruction; Figure 3 Schematic diagram of the generative adversarial network branches in the progressive reconstruction generative adversarial network; Figure 4 Schematic diagram of the reconstruction network branches in the progressive reconstruction generative adversarial network. DETAILED DESCRIPTION

[0020] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0021] Embodiment 1, This embodiment provides a method for gradually generating a three-dimensional pore structure of soil aggregates. Figure 1 As shown, the method comprises the following steps: S1, preprocessing the original soil aggregate CT scan image data, separating the pore part in the image, and constructing a three-dimensional pore structure voxel matrix data set of soil aggregates; S2, performing random sampling of the soil aggregate three-dimensional pore structure dataset to obtain the soil aggregate three-dimensional pore substructure dataset; S3, downsampling the three-dimensional pore substructure in the soil aggregate three-dimensional pore substructure dataset to obtain a soil aggregate three-dimensional pore substructure downsampled dataset; S4. Construct a progressive reconstruction generative adversarial network model, which is divided into a generative adversarial network branch and a reconstruction network branch; S5. Training a progressive reconstruction generative adversarial network model based on a soil aggregate three-dimensional pore substructure dataset to obtain an improved progressive reconstruction generative adversarial network model, and using the improved progressive reconstruction generative adversarial network model to generate the three-dimensional pore structure of soil aggregates.

[0022] Step S1 is specifically as follows: ImageJ software was used to capture the middle area of ​​the soil aggregate CT scan image ( Voxels) are used as feature domains. When selecting feature domains, in order to reduce the influence of external factors such as edge effects and radiation hardening, it is necessary to avoid obvious cracks and sample edge areas. Then the two-dimensional image stack is imported into ImageJ software, and the following operations are performed for image segmentation preprocessing. First, the Enhance Contrast command is used to normalize the image to eliminate the brightness difference between different CT slice images; then the Despeckle command is used to eliminate the noise of the image; finally, the Median operation is used to perform smoothing operations, making the pore structure in the image clearer and more accurate. When performing image segmentation operations, the Threshold operation is used to perform image threshold segmentation to separate the pore part in the image. Generate a binary image, in which the white area represents the pores and the black area represents the soil matrix, and convert them into a voxel matrix, which is composed of a voxel matrix dataset of the three-dimensional pore structure of soil aggregates.

[0023] Step S2 is specifically as follows: Based on the representative elementary volume cutting theory, select a voxel matrix with dimensions as the substructure unit for analysis. Here, n < N, where N is the size of the whole and n is the size of the small block randomly selected from the whole. The voxel matrix of this specification is sufficient to effectively capture and retain the geometric characteristics of the substructure and the interactions between substructures. According to the specifications of the voxel matrix, intercept the voxel matrix dataset of the three-dimensional pore structure of soil aggregates, and use the interval random sampling method to extract the sub-matrix as the three-dimensional pore substructure dataset of soil aggregates .

[0024] Step S3 is specifically as follows: Adopt h different sampling multiples to downsample the three-dimensional pore substructure to obtain the downsampled dataset of the three-dimensional pore substructure of soil aggregates , where respectively represent the datasets corresponding to different sampling multiples.

[0025] The progressive reconstruction generative adversarial network model in Step S4 is as Figure 2 shown, including a generative adversarial network branch and a reconstruction network branch; The generative model in the generative adversarial network branch is responsible for generating a rough version of the pore structure, and this version of the data is then input into the reconstruction network branch. The reconstruction network branch contains multiple generative models with the same structure, and an upsampling layer is set in front of each generative model. After the data in the generative adversarial network branch is input into the reconstruction network branch, it passes through the combination of h upsampling layers and generative models in sequence, and gradually refines and restores the detailed features of the pore structure at different resolutions by gradually increasing the resolution of the generated pore structure.

[0026] The generative adversarial network branch uses a transposed convolutional neural network and a convolutional neural network as the main frameworks of the generative model and the discriminative model respectively, as Figure 3 shown: The generative model is used to learn the latent distribution of the real pore structure and generate a fake pore structure that is indistinguishable from the real pores; The discriminative model is used to learn to distinguish between real and fake pore structures and calculate the probability that the pore structure comes from the real training set; The objective loss function of the generative adversarial network branch is:

[0027] In the formula, is the generative model, is the discriminative model, is the three-dimensional pore substructure dataset of soil aggregates The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in Generate model for input A normally distributed random variable, To generate the mathematical expectation of the pore structure; The generative model Depend on The layer is composed of deconvolution layers, k is a hyperparameter obtained by experimental tests; Generative Models The input is: a normally distributed random variable ; The generative model To the front The deconvolution output of the layer is batch normalized and ReLU nonlinearly activated to generate the model The deconvolution output of the last layer is subjected to a Tanh nonlinear activation to generate a low-resolution representation of the 3D pore substructure of soil aggregates.

[0028] The discriminant model Depend on Layer convolutional layer composition; Discriminant model The input is: Generate model The resulting pore structure or soil aggregate 3D pore substructure dataset Real pore structure ; The discriminant model To the front The convolution output of the layer is spectrally normalized and LeakyReLU nonlinearly activated; discriminant model The convolution output of the last layer is activated by Sigmoid nonlinearity to calculate the probability that the input pore structure is classified as true; the expression of the Sigmoid function is as follows: ; In the above formula, For the discriminant model The convolution output of the last layer.

[0029] The reconstructed network branch is composed of Generative model and discriminative model with the same group structure Constructed and use convolutional neural network as the main framework of the generation model and the discriminant model; The loss function of the reconstruction network branch consists of two parts: the pore structure quality loss function and the adversarial loss function, as shown in Figure 4 As shown; in, The pore structure quality loss function is: ; In the formula, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The number of mesoporous structures, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The The pore structure, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The A pore structure.

[0030] The adversarial loss function is: ; In the formula, To generate the model, is the discriminant model, A dataset of soil aggregate 3D pore substructure The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in A dataset of soil aggregate 3D pore substructure The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in ; The generative model All by Layer convolutional layer composition; Generative Models The input is: soil aggregate 3D pore substructure dataset Real pore structure ; Real pore structure Input to the generative model After that, we first perform linear upsampling on it and modify The size of the soil aggregates makes it similar to the 3D pore substructure dataset Real pore structure The size is consistent, and then the pore structure after upsampling Input to the first convolutional layer of the generative model; The generative model To the front The convolution output of the layer is batch normalized and LeakyReLU nonlinearly activated to generate the model Tanh nonlinear activation is performed on the convolution output of the last layer to generate the three-dimensional pore substructure of soil aggregates at the corresponding resolution.

[0031] The discriminant model All by Layer convolutional layer composition; Discriminant model The input is: Generate model The resulting pore structure or soil aggregate 3D pore substructure dataset Real pore structure ; The discriminant model To the front The convolution output of the layer is batch normalized and LeakyReLU nonlinearly activated to discriminate the model The convolution output of the last layer is activated by Sigmoid nonlinearity to calculate the probability that the input pore structure is classified as true.

[0032] In step S5, training the progressive reconstruction generative adversarial network model specifically includes: improving the effect of the three-dimensional pore substructure generated by the progressive reconstruction generative adversarial network model, optimizing the network framework structure and hyperparameters, until the progressive reconstruction generative adversarial network model generates a three-dimensional pore structure of soil aggregates that matches the characteristic distribution of the real three-dimensional pore substructure; The hyperparameters of the optimized progressive reconstruction generative adversarial network model are: batch size is 16, loss function optimizer is Adam, learning rate is 0.0002, Beta1 is 0.5, and number of iterations is 100; the batch size is the number of samples selected for one training; the Beta1 is the exponential decay rate of the first-order moment estimate; the training of the progressive reconstruction generative adversarial network model can be implemented using the python-based pytorch deep learning module.

[0033] Embodiment 2, This embodiment is a further explanation of the embodiment 1, and the embodiment 1 is further explained by a specific experimental method.

[0034] Step S1: ImageJ software was used to intercept the four middle parts (300×300×300 voxels) of the soil aggregate CT scan image as feature domains. When selecting the feature domain, in order to reduce the influence of external factors including edge effect and radiation hardening, obvious cracks and sample edge areas were avoided. The two-dimensional image stack was then imported into ImageJ software, and the following operations were performed for image segmentation preprocessing. First, the Enhance Contrast command was used to normalize the image to eliminate the brightness difference between different CT slice images; then the Despeckle command was used to eliminate the image noise; finally, the Median operation was used to perform a smoothing operation to make the pore structure in the image clearer and more accurate. When performing image segmentation operations, the Threshold operation was used to perform image threshold segmentation to separate the pore part in the image. Four groups of 300 binary images were generated, in which the white area represented the pores and the black area represented the soil matrix, and they were converted into four Voxel matrix, which is the voxel matrix dataset of soil aggregate three-dimensional pore structure.

[0035] Step S2: The size is selected based on the representative basic volume cutting theory. The voxel matrix is ​​used as the substructure unit for analysis. The voxel matrix of this specification is sufficient to effectively capture and preserve the geometric characteristics of the substructures and the interactions between the substructures. The voxel matrix specifications were used to intercept the soil aggregate three-dimensional pore structure voxel matrix dataset, and 2000 sub-matrices were extracted as the soil aggregate three-dimensional pore substructure dataset using the interval random sampling method.

[0036] Step S3: In order to train the progressive reconstruction generative adversarial network model, it is necessary to downsample the three-dimensional pore substructure in the soil aggregate three-dimensional pore substructure dataset to obtain the soil aggregate three-dimensional pore substructure downsampled dataset. , and . A dataset of downsampled soil aggregate 3D pore substructure The data in the above table is the collection of soil aggregate three-dimensional pore substructure data. The 3D pore substructure of the voxel is downsampled to The three-dimensional pore substructure of a voxel; A dataset of down-sampled soil aggregate 3D pore substructure The data in the above table is the collection of soil aggregate three-dimensional pore substructure data. The 3D pore substructure of the voxel is downsampled to The three-dimensional pore substructure of a voxel.

[0037] A dataset of down-sampled soil aggregate 3D pore substructure The data in the above table is the collection of soil aggregate three-dimensional pore substructure data. The 3D pore substructure of the voxel is downsampled to The three-dimensional pore substructure of a voxel.

[0038] Step S4: (1) Generative adversarial network branch: The generative model in the generative adversarial network branch consists of 4 deconvolution layers; The number of channels in the input layer of the generative model is 100; from deconvolution layers 1 to 3, the number of channels output by each layer is 128, 64, and 32 respectively; the number of output channels of deconvolution layer 4 is 1; the convolution kernel size of the first deconvolution layer is , filled with 0, with a step size of 1; the convolution kernel size of the second deconvolution layer is , the padding is 1, the stride is 2; the convolution kernel size of the third deconvolution layer is , the padding is 1, the stride is 2; the convolution kernel size of the fourth deconvolution layer is , fill is 1, stride is 2; The generative model performs batch normalization and ReLU nonlinear activation on the deconvolution outputs of the first three layers, and performs Tanh nonlinear activation on the deconvolution outputs of the last layer to generate Low-resolution representation of the three-dimensional pore substructure of soil aggregates.

[0039] The discriminative model consists of 4 convolutional layers in the opposite order of the generative model; The input of the first convolutional layer is: Low-resolution representation of the three-dimensional pore substructure of soil aggregates; The number of channels in the input layer of the discriminant model is 1; from convolutional layers 1 to 3, the number of channels output by each layer is 32, 64, and 128 respectively; the number of output channels of convolutional layer 4 is 1; the convolution kernel size of the first convolutional layer is , the padding is 1, the stride is 2; the convolution kernel size of the second convolution layer is , the padding is 1, the stride is 2; the convolution kernel size of the third convolution layer is , the padding is 1, the stride is 2; the convolution kernel size of the fourth convolution layer is , filled with 0 and stride of 1.

[0040] (2) Reconstructing network branches: The reconstruction network branch consists of 3 groups of generative models and discriminative models with the same structure. Constructed and use convolutional neural network as the main framework of the generation model and the discriminant model; The input is a sampling dataset of soil aggregate 3D pore substructure The pore structure in The true pore structure in the soil is derived from the soil aggregate 3D pore substructure downsampling dataset ; The input is a sampling dataset of soil aggregate 3D pore substructure The pore structure in The true pore structure in the soil is derived from the soil aggregate 3D pore substructure downsampling dataset ; The input is a sampling dataset of soil aggregate 3D pore substructure The pore structure in The actual pore structure in comes from the soil aggregate 3D pore substructure dataset.

[0041] The loss function of the reconstruction network branch consists of two parts: image quality loss and adversarial loss.

[0042] in, The pore structure quality loss function is:

[0043] In the formula, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The number of mesoporous structures, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The The pore structure, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The A pore structure.

[0044] in, The pore structure quality loss function is:

[0045] In the formula, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The number of mesoporous structures, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The The pore structure, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The A pore structure.

[0046] in, The pore structure quality loss function is:

[0047] In the formula, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The number of mesoporous structures, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The The pore structure, Represents the first A pore structure.

[0048] , and The adversarial loss function is: ; In the formula, To generate the model, is the discriminant model, is the real pore structure. is the mathematical expectation of the real pore structure, Generate model for input A normally distributed random variable, To generate the mathematical expectation of the pore structure; The generative model , and They are all composed of 5 convolutional layers; The first convolutional layer has 1 input channel and 16 output channels; the second to fourth convolutional layers have 16 input and output channels; the fifth convolutional layer has 16 input channels and 1 output channel; all convolutional kernel sizes are set to , filled with 0, step size is 1; The generative model performs batch normalization and LeakyReLU nonlinear activation on the convolution outputs of the first four layers, and performs Tanh nonlinear activation on the convolution output of the last layer to generate a three-dimensional pore substructure of soil aggregates with corresponding resolution.

[0049] The discriminant model , and They are all composed of 5 convolutional layers; The first convolutional layer has 1 input channel and 16 output channels; the second to fourth convolutional layers have 16 input and output channels; the fifth convolutional layer has 16 input channels and 1 output channel; all convolutional kernel sizes are set to , filled with 0, step size is 1; The discriminant model performs batch normalization and LeakyReLU nonlinear activation on the convolution outputs of the first four layers, and performs Sigmoid nonlinear activation on the convolution output of the last layer to calculate the probability that the input pore structure is classified as true.

[0050] Step S5: After completing the construction of the progressive reconstruction generative adversarial network model, it is necessary to further optimize the hyperparameters of the model to achieve the best effect in the generation of the three-dimensional pore structure of soil aggregates; S5 The hyperparameters of the optimized progressive reconstruction generative adversarial network model are: batch size is 16, loss function optimizer is Adam, learning rate is 0.0002, Beta1 is 0.5, and number of iterations is 100; the batch size is the number of samples selected for one training; Beta1 is the exponential decay rate of the first-order moment estimate; The training of the progressive reconstruction generative adversarial network model can be implemented using the python-based pytorch deep learning module.

Claims

1. A method for progressively generating a three-dimensional pore structure of soil aggregates, characterized in that: The method comprises the following steps: S1, preprocessing the original soil aggregate CT scan image data, separating the pore part in the image, and constructing a three-dimensional pore structure voxel matrix data set of soil aggregates; S2, performing random sampling of the soil aggregate three-dimensional pore structure dataset to obtain the soil aggregate three-dimensional pore substructure dataset; S3, downsampling the three-dimensional pore substructure in the soil aggregate three-dimensional pore substructure dataset to obtain a soil aggregate three-dimensional pore substructure downsampled dataset; S4. Construct a progressive reconstruction generative adversarial network model, which is divided into a generative adversarial network branch and a reconstruction network branch; S5. Training a progressive reconstruction generative adversarial network model based on a soil aggregate three-dimensional pore substructure dataset to obtain an improved progressive reconstruction generative adversarial network model, and using the improved progressive reconstruction generative adversarial network model to generate the three-dimensional pore structure of soil aggregates.

2. The method for progressively generating a three-dimensional pore structure of soil aggregates according to claim 1, characterized in that: The step S1 specifically comprises: intercepting a crack-free area in the original soil aggregate CT scan image as a feature domain image, performing normalization processing, noise elimination processing, and smoothing processing on the intercepted feature domain image in sequence, and then performing threshold segmentation on the processed feature domain image to separate the pore part in the feature domain image to generate a binary image, and converting the binary image into a voxel matrix, and the voxel matrix constitutes a three-dimensional pore structure voxel matrix data set of soil aggregates.

3. The method for progressively generating a three-dimensional pore structure of soil aggregates according to claim 2, characterized in that: In step S2, when random sampling is performed on the soil aggregate three-dimensional pore structure data set, according to The voxel matrix specification is used to extract the soil aggregate 3D pore structure dataset, where The length, width and height of the voxel matrix are .

4. The method for progressively generating a three-dimensional pore structure of soil aggregates according to claim 3, characterized in that: In step S3, use h The three-dimensional pore substructure is downsampled by different sampling multiples to obtain the downsampled dataset of the three-dimensional pore substructure of soil aggregates. ,in, They represent data sets corresponding to different sampling multiples.

5. The method for progressively generating a three-dimensional pore structure of soil aggregates according to claim 4, characterized in that: In step S4, the generative adversarial network branch includes a generative model and discriminant model ; The target loss function of the generative adversarial network branch is: In the formula, To generate the model, is the discriminant model, A dataset of soil aggregate 3D pore substructure The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in Generate model for input A normally distributed random variable, To generate the mathematical expectation of the pore structure; The generative model Depend on The deconvolution layer consists of is a hyperparameter, generating a model To the front The deconvolution output of the layer is batch normalized and ReLU nonlinearly activated to generate the model Perform Tanh nonlinear activation on the deconvolution output of the last layer; The discriminant model Depend on The discriminant model is composed of layers of convolutional layers. To the front The convolution output of the layer is spectrally normalized and LeakyReLU nonlinearly activated; discriminant model The convolution output of the last layer is activated by Sigmoid nonlinearity. The expression of Sigmoid function is as follows: ; In the formula, For the discriminant model The convolution output of the last layer.

6. The method for progressively generating a three-dimensional pore structure of soil aggregates according to claim 5, characterized in that: In step S4, the reconstructed network branch includes generating a model and discriminant model ; The loss function of the reconstruction network branch consists of two parts: the pore structure quality loss function and the adversarial loss function, and each generation model and discriminant model Combination of Each has its corresponding loss function; The pore structure quality loss function is: ; In the formula, express The pore structure quality loss function is Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The number of mesoporous structures, Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The The pore structure Represents a downsampled dataset of the three-dimensional pore substructure of soil aggregates The The pore structure The adversarial loss function is: ; In the formula, To generate the model, is the discriminant model, A dataset of soil aggregate 3D pore substructure The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in A dataset of soil aggregate 3D pore substructure The real pore structure, A dataset of soil aggregate 3D pore substructure The mathematical expectation of the real pore structure in ; The generative model All by Layer convolutional layer composition, generating model To the front The convolution output of the layer is batch normalized and LeakyReLU nonlinearly activated to generate the model Perform Tanh nonlinear activation on the convolution output of the last layer; The discriminant model All by Layer convolution layer composition, discriminant model To the front The convolution output of the layer is batch normalized and LeakyReLU nonlinearly activated to discriminate the model Sigmoid nonlinear activation is performed on the convolution output of the last layer.

7. The method for progressively generating a three-dimensional pore structure of soil aggregates according to claim 6, characterized in that: In step S5, training the progressive reconstruction generative adversarial network model specifically includes: improving the effect of the three-dimensional pore substructure generated by the progressive reconstruction generative adversarial network model, optimizing the network framework structure and hyperparameters, until the progressive reconstruction generative adversarial network model generates a three-dimensional pore structure of soil aggregates that matches the characteristic distribution of the real three-dimensional pore substructure.

Citation Information

Patent Citations

  • Data enhancement method for seedling growth vigor evaluation based on improved generative adversarial network

    CN111369498A

  • Image super-division method based on progressive residual generative adversarial network

    CN114140323A

  • Image super-resolution reconstruction method based on generative adversarial network

    CN118396853A

  • Focusing-learning-based CT angiography smart imaging method

    WO2024066711A1

Cited By

  • Bottom mud aggregate pollutant release risk assessment system based on three-dimensional microstructure inversion prediction

    CN121257378A

  • System for assessing the risk of pollutant release from sediment aggregates based on three-dimensional microstructure inversion prediction

    CN121257378B