Rock-soil sampling data enhancement method based on variational auto-encoder

Enhancement of soil data through variational autoencoders solves the problems of data scarcity and insufficient model generalization capabilities in soil mechanics technology, improves the prediction accuracy and stability of the model, reduces experimental requirements, and improves data security. .

CN118708967AActive Publication Date: 2024-09-27中国水利水电第七工程局有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410802341.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-27
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Existing soil mechanics technology relies on traditional experimental methods and statistical models, which results in difficulty and high cost in data acquisition and poor model performance in handling complex soil characteristics. Machine learning methods are prone to overfitting and insufficient generalization capabilities when using small data sets.

Method used

The geotechnical sampling data enhancement method based on variational autoencoders is used to enhance the soil data through the VAE generation model to generate new data that conforms to the original data distribution, which is used to update the data set and train the machine learning model to reduce the risk of overfitting. And improve the model generalization ability.

Benefits of technology

The generated data improves model prediction accuracy, improves model performance and stability, reduces the need for field testing, reduces resource investment, and improves data security in resource-constrained environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708967A
    Figure CN118708967A
Patent Text Reader

Abstract

The invention discloses a rock-soil sampling data enhancement method based on a variational auto-encoder, and the method comprises the steps: S1, obtaining a data set comprising a plurality of samples, and carrying out the preprocessing of the data set; each sample comprises multiple types of geotechnical data; s2, inputting the preprocessed data set into a trained VAE generation model for data enhancement to obtain reconstructed data; s3, performing interval limitation on the reconstructed data to update physical property loss items of the data set; s4, taking any soil data in the reconstructed data as a prediction item, and inputting a non-prediction item in the reconstructed data into the trained regression model to obtain regression prediction data; s5, updating a consistency loss item by adopting a prediction item and regression prediction data, and updating a total loss function of the VAE generation model; and S6, accumulating the number of iterations once, judging whether the number of iterations is greater than or equal to a preset number of times, if so, outputting the reconstruction data during the last iteration, and otherwise, returning to the step S2.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a geotechnical data expansion technology, and in particular to a geotechnical sampling data enhancement method based on a variational autoencoder. Background Art

[0002] Existing soil mechanics techniques mainly rely on traditional experimental methods and statistical models to evaluate soil properties. These methods include direct shear tests and triaxial shear tests. Although they can measure the shear strength of soil, they are difficult to obtain data and have insufficient experimental data due to long experimental cycles, high costs, and sensitivity to environmental conditions. Traditional statistical models, such as linear regression, often perform poorly when dealing with complex soil characteristics because they cannot capture nonlinear relationships. In addition, current machine learning methods also face some challenges when dealing with soil data, such as data scarcity, model overfitting, and insufficient generalization capabilities.

[0003] In order to improve these problems in soil mechanics research, recent studies have attempted to use machine learning techniques such as artificial neural networks, support vector machines, and Gaussian process regression. However, these methods are prone to overfitting when dealing with small data sets and have limited performance when faced with diverse soil characteristics. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a rock and soil sampling data enhancement method based on variational autoencoder. The prior art obtains a large amount of soil data through experiments for machine learning, which has the problems of great difficulty and high cost in data acquisition.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] A method for enhancing rock and soil sampling data based on a variational autoencoder is provided, comprising the steps of:

[0007] S1. Obtain a data set including several samples, and preprocess the soil data in the data set; each sample includes multiple types of geotechnical data;

[0008] S2, input the preprocessed data set into the trained VAE generation model for data enhancement to obtain reconstructed data;

[0009] S3, performing interval limiting on the reconstructed data to update the physical property loss item of the data set;

[0010] S4, taking any soil data in the reconstructed data as a prediction item, and then inputting the non-prediction item in the reconstructed data into the trained regression model to obtain regression prediction data;

[0011] S5. Use the prediction item and regression prediction data to update the consistency loss item, and update the total loss function of the VAE generation model based on the consistency loss item and the physical property loss item;

[0012] S6. Add the number of iterations once and determine whether the number of iterations is greater than or equal to a preset number. If so, output the reconstructed data of the most recent iteration; otherwise, return to step S2.

[0013] Furthermore, the expression of the physical property loss term is:

[0014]

[0015] in, is the physical property loss term; α is the importance of the control constraint; m is the total number of samples in the reconstructed data; x i2 is the predicted item in the i-th sample; x max and x min are the maximum and minimum values ​​of the prediction items of all samples of the reconstructed data respectively; max(.) is the maximum value function;

[0016] The expression of the consistency loss term is:

[0017]

[0018] in, is the consistency loss term; is the regression prediction data of the regression model relative to the prediction item in the i-th sample.

[0019] The expression of the total loss function of the VAE generation model is:

[0020]

[0021] in, is the total loss; is the VAE damage function.

[0022] Furthermore, the expression of the VAE damage function is:

[0023]

[0024] Among them, β is a hyperparameter used to balance the reconstruction loss and KL divergence; is the similarity between the dataset and the reconstructed data generated by the decoder; p θ(x|z) The decoder reconstructs the probability distribution of the original data from the samples in the latent space; q φ (z|x) is the probability distribution of the encoder mapping the input data to the latent space; p(z) is the prior distribution of the embedding space; D KL (qφ (z|x)||p(z)) is q φ The difference between (z|x) and p(z); x is the dataset; z is the latent variable; is the encoder network parameter; θ is the decoder network parameter; and are the mean and variance of the latent variables respectively; μ θ (z) and are the mean and variance of the reconstructed data respectively; is a standard normal distribution.

[0025] Furthermore, the various types of geotechnical data include the depth of the measuring point, effective stress, normalized undrained shear strength, overconsolidation ratio, normalized cone tip resistance, normalized effective cone tip resistance, normalized excess pore water pressure and pore pressure ratio; and the prediction item is normalized undrained shear strength.

[0026] Furthermore, the expressions of the standardized cone tip resistance f1, the standardized effective cone tip resistance f2, the standardized excess pore water pressure q1 and the pore pressure ratio q2 are:

[0027]

[0028] Among them, q t is the cone tip resistance; v is the vertical stress; v ′ is the effective stress; u2 is the pore water pressure; u0 is the initial pore water pressure.

[0029] Furthermore, the soil data in the data set are preprocessed, including missing value processing, outlier processing and data format unification of the samples in turn.

[0030] Furthermore, the data set is the Clay / 6 / 535 data set in the ISSMGE TC304 soil database; and the regression model is the GPR regression model.

[0031] Furthermore, the encoder and decoder of the VAE generation model both include five layers of fully connected neural networks; the outputs of the first four layers of the encoder's fully connected neural network pass through batch normalization layers and Dropout layers in sequence and then enter the next layer of the fully connected neural network; the outputs of the first two layers of the decoder's fully connected neural network pass through batch normalization layers and then enter the next layer of the fully connected neural network.

[0032] The beneficial effects of the present invention are as follows: the present solution solves data scarcity by generating models using VAE, increases the size and diversity of data sets, and improves the generalization ability of machine learning models. By using VAE to generate models, more new data that conforms to the distribution of original data can be obtained. By training the model with the generated data, the prediction accuracy of the model can be improved and the risk of overfitting can be mitigated.

[0033] The diverse data generated by the VAE model helps to more accurately capture the nonlinear relationships in soil properties, thereby improving the performance and stability of the model. The data generated by the VAE model is similar to the distribution of the original data, which can better protect the original data during data transmission and processing. This method can expand the data set without leaking the original data, thereby improving data security.

[0034] Furthermore, generating additional data through VAE can reduce the need for field testing and laboratory experiments; this means that when training machine learning models, there is no need to invest a lot of resources in experiments, which is particularly important in resource-constrained environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 Flowchart of the geotechnical sampling data enhancement method based on variational autoencoder.

[0036] Figure 2 This is a two-dimensional distribution comparison diagram of the data obtained using the enhancement method of this scheme and the original data.

[0037] Figure 3 The following is a comparison chart of the regression performance of five regression models before and after data enhancement. DETAILED DESCRIPTION

[0038] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0039] refer to Figure 1 , Figure 1 A flow chart of a method for enhancing rock and soil sampling data based on a variational autoencoder is shown; Figure 1 As shown, the method S includes steps S1 to S6.

[0040] In step S1, a data set including several samples is obtained, and the soil data in the data set is preprocessed; each sample includes multiple types of geotechnical data; wherein the multiple types of geotechnical data include the depth of the measuring point, effective stress, standardized undrained shear resistance, overconsolidation ratio, standardized cone tip resistance, standardized effective cone tip resistance, standardized excess pore water pressure and pore pressure ratio.

[0041] During implementation, the preferred dataset for this scheme is the Clay / 6 / 535 dataset in the ISSMGE TC304 soil database, which contains 535 sets of slightly overconsolidated clay data from 40 sites in Brazil, Canada, Italy, Malaysia, Singapore, Norway, the United States, the United Kingdom, Sweden, the North Sea and Venezuela.

[0042] In one embodiment of the present invention, preprocessing the soil data in the data set includes sequentially processing missing values, outliers and unifying the data format:

[0043] Missing value processing: Geotechnical data may contain missing values ​​due to measurement difficulties or equipment failures. For continuous data, consider using K-nearest neighbor interpolation, interpolation methods based on geological logic, or model-based filling (such as using regression model prediction). For discrete data, mode or pattern-based filling can be used.

[0044] Outlier processing: Since geotechnical properties are affected by a variety of natural factors, outliers may reflect real geological phenomena. They should be handled with caution, using geological expert knowledge to assist in identification, removing only obviously erroneous records, or using box plots, IQR and professional knowledge to make judgments.

[0045] Unified data formats: Ensure that geological data from different sources (such as data collected by different laboratories or different instruments) are consistent in units, coordinate systems, and measurement standards, and convert them when necessary.

[0046] When the samples in the data set can be divided into time data or spatial sequence data, after the above preprocessing, they also need to be preprocessed in the following way:

[0047] Spatial data processing: For geotechnical data containing spatial information, coordinate system calibration and projection conversion are performed, and GIS tools are used for spatial interpolation and data smoothing to eliminate errors in geographic information.

[0048] Time series data processing: For monitoring data that changes over time, time series analysis is performed to identify trends and seasonality, and detrending and de-periodicization is performed to better reveal data characteristics.

[0049] In step S2, the preprocessed data set is input into the trained VAE generation model for data enhancement to obtain reconstructed data;

[0050] During implementation, this scheme preferably adopts a VAE generation model in which both the encoder and decoder include five layers of fully connected neural networks; the outputs of the first four layers of the encoder's fully connected neural network pass through batch normalization layers and Dropout layers in sequence before entering the next layer of the fully connected neural network; the outputs of the first two layers of the decoder's fully connected neural network pass through batch normalization layers before entering the next layer of the fully connected neural network.

[0051] The data input dimension used by the VAE generation model is 8. The encoder's five-layer fully connected neural network maps the data dimensions from 8->10->12->14->16->20, while the decoder maps in the reverse order of the encoder. Given that geotechnical data usually contains information on multiple dimensions such as soil type, physical properties (such as permeability, density), and chemical composition, it is crucial to adopt a multi-channel input design. This allows the model to process input data of different modalities in parallel, improving its ability to recognize and express multi-dimensional features.

[0052] In step S3, the reconstructed data is interval-limited to update the physical property loss term of the data set:

[0053]

[0054] in, is the physical property loss term; a is the importance of the control constraint; m is the total number of samples in the reconstructed data; x i2 is the predicted item in the i-th sample; x max and x min They are the maximum and minimum values ​​of the prediction items of all samples of the reconstructed data respectively; max(.) is the maximum value function.

[0055] This scheme introduces evaluation indicators based on physical principles, such as difference measures of key physical parameters such as permeability and compressibility, as additional loss terms, forcing the model to respect the physical properties of geomaterials during the learning process and ensuring that the generated samples are physically feasible.

[0056] In step S4, any soil data in the reconstructed data is used as a prediction item, and then the non-prediction items in the reconstructed data are input into the trained regression model to obtain regression prediction data; the preferred prediction item in this scheme is the standardized undrained shear resistance.

[0057] Among them, both the regression model and the VAE generation model are trained using small sample training data (existing soil data set), and the regression model is preferably a GPR regression model.

[0058] In step S5, the prediction item and the regression prediction data are used to update the consistency loss item:

[0059]

[0060] in, is the consistency loss term; is the regression prediction data of the regression model relative to the prediction item in the i-th sample.

[0061] According to the consistency loss term and the physical property loss term, the total loss function of the VAE generation model is updated:

[0062]

[0063] in, is the total loss; is the VAE damage function; the expression of the VAE damage function is:

[0064]

[0065] Among them, β is a hyperparameter used to balance the reconstruction loss and KL divergence; is the similarity between the dataset and the reconstructed data generated by the decoder; p θ(x|z) The decoder reconstructs the probability distribution of the original data from the samples in the latent space; q φ (z|x) is the probability distribution of the encoder mapping the input data to the latent space; p(z) is the prior distribution of the embedding space; D KL (q φ (z|x)||p(z)) is q φ The difference between (z|x) and p(z); x is the dataset; z is the latent variable; is the encoder network parameter; θ is the decoder network parameter; and are the mean and variance of the latent variables respectively; μ θ (z) and are the mean and variance of the reconstructed data respectively; is a standard normal distribution.

[0066] In step S6, the number of iterations is accumulated once, and it is determined whether the number of iterations is greater than or equal to a preset number. If so, the reconstructed data of the most recent iteration is output, otherwise, the process returns to step S2.

[0067] In one embodiment of the present invention, the expressions of the standardized cone tip resistance f1, the standardized effective cone tip resistance f2, the standardized excess pore water pressure q1 and the pore pressure ratio q2 are respectively:

[0068]

[0069] Among them, q t is the cone tip resistance; v is the vertical stress; v ′ is the effective stress; u2 is the pore water pressure; u0 is the initial pore water pressure.

[0070] In order to evaluate the effect of the VAE generation model on the non-image data Clay / 6 / 535 enhancement task, 535 samples were enhanced using the data enhancement method of this scheme, and the enhanced data retained all the features of the initial data.

[0071] In order to explore the impact of different amounts of data augmentation on the performance of the regression model, when the encoder maps the data to the latent space, the number of sampling in the latent space starts from 1% of the original data amount and increases by 1% successively until it reaches 20%.

[0072] In order to visualize the changes in data before and after enhancement, t-sne was used in the experiment to reduce the dimensionality of the data. Figure 2 This is the two-dimensional distribution of the original data with a data enhancement amount of 8%. The circular points in the figure represent the two-dimensional distribution of the original data, and the triangular points represent the two-dimensional distribution of the enhanced data.

[0073] from Figure 2 It is not difficult to find that the distribution of the enhanced data is similar to the original data, only the direction of the data distribution has changed, which is due to the data sampling in the latent space. The sampled data only conforms to the distribution of the original data, and is not a complete reconstruction of the original data, that is, the two distributions are similar but in different directions.

[0074] The distribution of the enhanced data is more compact than the original data, indicating that the data generated by the data enhancement method of this scheme is more clustered and continuous in the latent space. This situation can usually be explained as the generative model learning the latent structure of the data and being able to represent the characteristics of the data in a more continuous and compact way.

[0075] Through experiments, it is found that the data enhancement method of this scheme can not only expand the data set, but also improve the quality of the data and smooth the original data.

[0076] The following uses the prediction accuracy of different regression models to judge the improvement in data quality after data enhancement:

[0077] Five regression models were used in the experimental verification, namely ANN regression prediction model, SVM regression model, GPR regression model, RFR random forest regression and XGBoost regression model; the regression performance of the five ML algorithms before and after data enhancement was compared in various indicators. In the experiment, the data after enhancement with different expansion ratios were input into the five regression models to calculate MAE, and the average of the multiple MAEs was taken as the performance MAE evaluation indicator on the data after data enhancement, such as Figure 3 shown.

[0078] like Figure 3 It shows that the regression performance of the GPR model on the Clay / 6 / 535 data is the worst when no data enhancement is performed. After the data is enhanced by VAE, the performance of the RF model is the best. Although the performance of the GPR model is the worst before data enhancement, data enhancement has the greatest impact on the performance of the GPR model, greatly improving the model performance.

[0079] The experiment verifies all indicators of the five regression models on the Clay / 6 / 535 data. In addition to MAE, the performance evaluation indicators of the regression models also include: mean square error (MSE), coefficient of determination (R2) and explained variance score (EVS).

[0080] The value range of MAE and MSE is [0, +∞], and the smaller the value, the better the performance of the regression model; the value range of R2 and EVS is [-∞, 1], and the larger the value, the better the performance of the regression model; the comparison of various performance evaluation indicators of the five regression models before and after data enhancement is shown in Table 1.

[0081] Table 1 Performance evaluation indicators of the model before and after data enhancement

[0082]

[0083] From the comparison of data before and after enhancement in Table 1, it can be seen that data enhancement has improved the performance of the regression model under all evaluation indicators. Considering the four evaluation indicators comprehensively, the performance improvement of the GPR regression model is most obvious after data enhancement; that is, when data is enhanced, the quality of reconstructed data obtained by the regression model using the GPR regression model is the best.

Claims

1. A rock and soil sampling data enhancement method based on variational autoencoder, characterized in that: Includes steps: S1. Obtain a data set including several samples, and preprocess the soil data in the data set; each sample includes multiple types of geotechnical data; S2, input the preprocessed data set into the trained VAE generation model for data enhancement to obtain reconstructed data; S3, performing interval limiting on the reconstructed data to update the physical property loss item of the data set; S4, taking any soil data in the reconstructed data as a prediction item, and then inputting the non-prediction item in the reconstructed data into the trained regression model to obtain regression prediction data; S5. Use the prediction item and regression prediction data to update the consistency loss item, and update the total loss function of the VAE generation model based on the consistency loss item and the physical property loss item; S6. Add the number of iterations once and determine whether the number of iterations is greater than or equal to a preset number. If so, output the reconstructed data of the most recent iteration; otherwise, return to step S2.

2. The method for enhancing rock and soil sampling data based on variational autoencoder according to claim 1 is characterized in that: The expression of the physical property loss term is: in, is the physical property loss term; α is the importance of the control constraint; m is the total number of samples in the reconstructed data; x i2 is the predicted item in the i-th sample; x max and x min are the maximum and minimum values ​​of the prediction items of all samples of the reconstructed data respectively; max(.) is the maximum value function; The expression of the consistency loss term is: in, is the consistency loss term; is the regression prediction data of the regression model relative to the prediction item in the i-th sample; The expression of the total loss function of the VAE generation model is: in, is the total loss; is the VAE damage function.

3. The rock and soil sampling data enhancement method based on variational autoencoder according to claim 2 is characterized in that: The expression of the VAE damage function is: Among them, β is a hyperparameter used to balance the reconstruction loss and KL divergence; is the similarity between the dataset and the reconstructed data generated by the decoder; p θ(x|z) The decoder reconstructs the probability distribution of the original data from the samples in the latent space; q φ (z|x) is the probability distribution of the encoder mapping the input data to the latent space; p(z) is the prior distribution of the embedding space; D KL (q φ (z|x)||p(z)) is q φ The difference between (z|x) and p(z); x is the dataset; z is the latent variable; is the encoder network parameter; θ is the decoder network parameter; and are the mean and variance of the latent variables respectively; μ θ (z) and are the mean and variance of the reconstructed data respectively; is a standard normal distribution.

4. The method for enhancing rock and soil sampling data based on variational autoencoder according to claim 1 is characterized in that: The various types of geotechnical data include depth of measurement points, effective stress, normalized undrained shear strength, overconsolidation ratio, normalized cone tip resistance, normalized effective cone tip resistance, normalized excess pore water pressure and pore pressure ratio; the prediction item is normalized undrained shear strength.

5. The method for enhancing rock and soil sampling data based on variational autoencoder according to claim 4 is characterized in that: The expressions of the standardized cone tip resistance f1, the standardized effective cone tip resistance f2, the standardized excess pore water pressure q1 and the pore pressure ratio q2 are: Among them, q t is the cone tip resistance; v is the vertical stress; v ′ is the effective stress; u2 is the pore water pressure; u0 is the initial pore water pressure.

6. The method for enhancing rock and soil sampling data based on variational autoencoder according to claim 4 is characterized in that: The preprocessing of soil data in the dataset includes processing missing values, outliers and unifying data formats.

7. The method for enhancing rock and soil sampling data based on variational autoencoder according to any one of claims 1 to 6, characterized in that: The data set is the Clay / 6 / 535 data set in the ISSMGE TC304 soil database; and the regression model is the GPR regression model.

8. The method for enhancing rock and soil sampling data based on variational autoencoder according to any one of claims 1 to 6, characterized in that: The encoder and decoder of the VAE generation model both include five layers of fully connected neural networks; the outputs of the first four layers of the encoder's fully connected neural network pass through batch normalization layers and Dropout layers in sequence before entering the next layer of the fully connected neural network; the outputs of the first two layers of the decoder's fully connected neural network pass through batch normalization layers before entering the next layer of the fully connected neural network.

Citation Information

Patent Citations

  • Zero-sample image classification method based on regression variation auto-encoder

    CN111563554A

  • Heart data anomaly detection method based on unsupervised adaptive weight

    CN114548281A

  • Loss function construction method and device of feature representation model, equipment and medium

    CN116776931A

  • Using semi-supervised variational autoencoder for wi-fi-based indoor localization

    EP3798918A1

  • Deep hierarchical variational autoencoder

    US20210397945A1