A virtual sample generation method based on sampling method and quantile regression
Through virtual sample generation technology based on sample method and quantile regression, the importance and influence trend of independent variables on dependent variables are analyzed, and virtual samples that conform to the correlation are generated, which solves the problem of low modeling accuracy of small sample data sets in chemical engineering processes. , improving the applicability and accuracy of the model.
Patent Information
- Application Number
- CN202011312051.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When using existing technology to model small sample data sets in chemical engineering processes, it is difficult to effectively capture the correlation between independent variables and dependent variables, resulting in limited model accuracy and applicability, and the virtual sample generation method does not consider the influence of independent variables on dependent variables. Influence trends and correlations.
A virtual sample generation method based on sample method and quantile regression is used to analyze the importance of the independent variable relative to the dependent variable through advantages, divide the input space, generate virtual input, and use Gaussian process regression to predict the virtual output, combined with linear quantile Regression analyzes the influence trend of independent variables on dependent variables, and selects virtual samples that meet the relevant relationship.
The accuracy and generalization ability of small sample modeling are improved, the generated virtual samples are more in line with the chemical process mechanism, the model error is reduced, and the rationality and effectiveness of the virtual samples are improved.
Smart Images

Figure CN112420135B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of chemical industry prediction, and in particular to a virtual sample generation method based on a sampling method and quantile regression. Background Art
[0002] Chemical processes have the characteristics of large-scale production, complex process flow, and a wide variety of raw materials. They are also affected by enterprise management, so process modeling is very important for automatically handling process anomalies and irregular events. The development of modern science and technology and the upgrade of storage devices have enabled a large amount of data to be stored, and society has entered the cloud era. However, it is still difficult to obtain enough representative samples to build models to capture the inherent characteristics of routine operations and maintenance. On the one hand, small fluctuations between data, high costs of data acquisition, or low probability of abnormal events have greatly reduced the representativeness of the acquired samples. On the other hand, the nonlinearity, noise, missing values, and uncertainty of the data make the number of data samples available for modeling small. Therefore, the "big data, small sample" problem is still prominent. The small sample problem refers to the small number of samples that can be used, usually less than 30. The substantive problem further reflects that the information is insufficient. The limited samples cannot fully characterize the entire sample feature space and the overall characteristics are not expressed enough. Directly using small samples for modeling will challenge the accuracy and applicability of the model.
[0003] The problem of small sample size is not limited to process industries, but is prevalent in fields such as computer science, biomedical engineering, and materials science. There are currently a variety of mature machine learning methods that can be used to directly learn small sample data sets, including Grey Model (GM), Support Vector Machine (SVM), kernel regression, and Bayesian network. Grey prediction model is one of the most widely used tools for modeling and analyzing uncertain systems, in which some information is known and some is unknown. It is suitable for one-dimensional data with exponential changes, but it is difficult to apply to time series data with uneven intervals. SVM describes the data distribution according to the marginal structure, reducing the requirements for data size and distribution. In many engineering applications, when the training data set is limited, SVM has better performance than traditional neural networks. However, it is very sensitive to noisy data or outliers. Bayesian network is an acyclic directed graph that captures probabilistic dependencies and dependencies between variables. Compared with other methods, the main advantage of Bayesian network is that it is easy to combine existing data with expert judgment in its probabilistic framework for uncertainty reasoning. But it is usually not allowed to obtain the network structure and parameters of Bayesian network from small data sets.
[0004] In addition to directly learning the small sample data set, new samples can also be generated through virtual sample generation (VSG) technology to solve the small sample problem. The main idea is to generate virtual samples based on the original small sample data set using prior knowledge or potential information such as sample distribution function to fill the sample information gap, thereby improving the generalization ability of the original small sample data set and improving the model accuracy. Generally, virtual sample generation technology can be divided into three categories: (1) distribution-based virtual sample generation technology, represented by Bootstrap and SMOTE; (2) deep learning-based virtual sample generation technology, represented by generative adversarial networks (GAN) and variational autoencoders (VAE); (3) information diffusion-based virtual sample generation technology, including total trend diffusion (MTD); (4) SVM-based virtual sample generation technology. Distribution-based virtual sample generation technology fits the probability model of the original small sample by parameterizing the probability model, and then samples the approximate probability model to generate new samples. Bootstrap is a resampling method that uses replacement to obtain new samples and simulates the real distribution through sampling distribution. In essence, no new samples different from the original small samples are generated, and the generated samples do not carry new information. SMOTE synthesizes new samples by repeatedly sampling along the line between the minority class samples and their neighboring samples. Virtual sample generation methods based on deep learning (such as GANs and VAEs) have better capabilities in feature representation by using nonlinear multi-layer structures, which makes them have good results in generating structured virtual samples (such as pseudo images) in the field of image recognition. Virtual sample generation technology based on information diffusion generates virtual samples by filling the information gap of the original small samples. MTD uses triangular membership function to estimate the overall distribution and asymmetrically expands the boundary of the element small sample. SVM can generate virtual samples nearby when approaching the limit state function.
[0005] The existing methods do not focus on the correlation between the independent variables and the dependent variables, as well as the degree of influence of the independent variables on the dependent variables. There is no constraint relationship between the independent variables and the dependent variables of the generated virtual samples. Summary of the invention
[0006] In order to solve the limitations and defects of the prior art, the present invention provides a virtual sample generation method based on the sampling method and quantile regression, comprising:
[0007] Dominance analysis analyzes the importance of independent variables relative to dependent variables, divides the input space into samples, generates virtual inputs in the input space, generates virtual outputs through Gaussian process regression, analyzes the influence trend of independent variables on dependent variables based on quantile regression, and selects virtual samples based on quantile regression;
[0008] The step of analyzing the importance of the independent variable relative to the dependent variable by advantage analysis includes: performing advantage analysis on the independent variable and the dependent variable in the original small sample data set to obtain the relative importance of the independent variable relative to the dependent variable;
[0009] The step of dividing the input space into quadrats comprises: dividing the input space into quadrats according to the proportional relationship between the relative importance and the side length of the quadrats, and controlling the division result according to the total number of quadrats so that the number of divided quadrats is within a preset range;
[0010] The step of generating a virtual input in the input space includes: performing a Cartesian product on the projection values in each sample plot according to the divided samples to generate a virtual input, wherein the Euclidean distance of the original small samples of each projection of the generated Cartesian product is less than a preset value;
[0011] The step of generating a virtual output through Gaussian process regression includes: using Gaussian process regression to model the original small sample data set and predict the virtual output corresponding to the virtual input;
[0012] The step of analyzing the influence trend of the independent variable on the dependent variable according to quantile regression includes: modeling the original small sample by linear quantile regression to analyze the influence trend of the independent variable on the dependent variable;
[0013] The step of screening virtual samples according to quantile regression includes: screening the generated virtual samples, deleting the virtual samples that do not conform to the correlation relationship between the independent variable and the dependent variable, and the remaining virtual samples are the final generated virtual samples.
[0014] Optionally, the step of analyzing the importance of the independent variable relative to the dependent variable through advantage analysis further includes:
[0015] Dominance analysis is used to quantitatively analyze the importance of the independent variable relative to the dependent variable, and the relative importance of a single variable is divided into direct effect, overall effect and partial effect. The direct effect is the individual influence of the independent variable on the dependent variable; the overall effect is the influence of the independent variable on the dependent variable when the independent variable is put together with all other independent variables; the partial effect is the influence of the independent variable on the dependent variable when the independent variable is put together with other independent variables.
[0016] The relative importance of each independent variable is calculated based on the average of the direct effect, the total effect, and the partial effect;
[0017] Compare the relative importance of each independent variable.
[0018] Optionally, the step of dividing the input space into samples further includes: selecting the minimum Euclidean distance dist in the input space min and the minimum relative importance imp min , obtaining the division of the sample plots in each dimension according to the proportional relationship between the minimum Euclidean distance and the minimum relative importance;
[0019] According to the original sample length l in each dimension i and the total side length L of the original sample plot in each dimension i Get the number of sample divisions in each dimension sample i , the expression of the number of sample divisions is as follows:
[0020]
[0021] Among them, the original sample side length l i and the total side length L of the original sample plot i The expression is as follows:
[0022]
[0023] L i =x i,max -x i,min (i=0,1......n)
[0024] The number of sample plots in each dimension is multiplied to obtain the total number of sample plots, and the expression of the total number of sample plots is as follows:
[0025]
[0026] If the total number of sample plots is greater than the preset number of sample plots, the side length of each sample plot becomes 1.2 times of the original, and the sample plots are re-divided according to the new side length of the sample plot, and the above steps are repeated until the total number of sample plots is within the preset number of sample plots.
[0027] Optionally, the step of generating a virtual input in the input space further includes:
[0028] Project each original sample onto each dimension of the x space to obtain a projection set of each dimension. The expression of the projection set is as follows:
[0029] Ω={x i,j}(i=0,1KKn;j=0,1KKm)
[0030] Starting from the dimension with the largest number of samples, starting from the smallest x in this dimension, each sample is screened. If the sample has a projection of x in this dimension, the sample is not processed. If the sample does not have a projection of x in this dimension, a projection value is generated at the center of this edge of the sample, and a point in the input space is generated at the same time. The values of other dimensions are equal to the midpoint of the maximum and minimum values. The expression of the midpoint is as follows:
[0031]
[0032] Cartesian products are performed on the projections of each dimension within each sample plot to obtain samples of different value combinations;
[0033] For each generated point, if the x value of the point coincides with that of the original sample point, delete the point;
[0034] For the m original sample points that generate this point, the Euclidean distance between the two points in the input space is calculated. If the Euclidean distance is greater than 1 / 7, the retained point is the generated virtual input.
[0035] Optionally, the step of analyzing the influence trend of the independent variable on the dependent variable according to quantile regression includes:
[0036] The influence trend of the independent variable on the dependent variable is analyzed according to the linear quantile regression model to obtain a quantile regression model under 10 quantiles. The expression of the linear quantile regression model is as follows:
[0037]
[0038] The 10 quantiles are 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, and 0.95 respectively.
[0039] Optionally, the step of screening virtual samples according to quantile regression includes:
[0040] An unexamined cohort and a qualified cohort were established based on the generated virtual samples;
[0041] Finding a point in the unchecked queue that is closest to the qualified queue for checking;
[0042] For the predicted value y1' of the virtual sample and the predicted value y2' of the nearest point in the qualified queue, the predicted value y1' and the predicted value y2' are obtained according to the output value quantile point obtained from the original sample, and the regression coefficient b of the corresponding independent variable is obtained according to the predicted value y1' and the predicted value y2';
[0043] If the virtual sample meets the correlation between the independent variable and the dependent variable, the virtual sample is retained; if the virtual sample does not meet the correlation between the independent variable and the dependent variable, the virtual sample is deleted. The expression of the correlation between the independent variable and the dependent variable is as follows:
[0044]
[0045] Where b is the regression coefficient.
[0046] The present invention has the following beneficial effects:
[0047] The present invention studies the relative importance of the independent variable to the dependent variable, and divides the sample of the input space based on this. In the traditional sampling method, the lengths of the sides of each sample plot are the same. Even if they are different, the setting of the sample plot side length is also without basis, mostly relying on experience or enumeration experiment comparison. The present invention divides the sample plot according to the proportional relationship between the relative importance and the sample plot side length.
[0048] The present invention considers the correlation between the independent variable and the dependent variable in the process of generating virtual samples, performs screening, and removes virtual samples that do not meet the correlation. This point has not been considered in previous virtual sample generation methods, and the rationality of the generated virtual samples has not been analyzed. The screening of the generated virtual samples by the present invention is more in line with the chemical process mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 This is a workflow diagram of a virtual sample generation method based on the sampling method and quantile regression provided in Example 1 of the present invention.
[0050] Figure 2 A flow chart of dividing an input space into samples provided in the first embodiment of the present invention.
[0051] Figure 3 A schematic diagram of the relative importance of the independent variables to the dependent variables of the f(x1, x2) standard function data set provided in Example 1 of the present invention.
[0052] Figure 4 Schematic diagram of quadrat division of the f(x1, x2) standard function data set provided in Example 1 of the present invention.
[0053] Figure 5 This is a virtual input generation diagram of the f(x1, x2) standard function data set input space provided in the first embodiment of the present invention.
[0054] Figure 6 This is a virtual sample distribution diagram of the input space after screening the f(x1, x2) standard function data set provided in the first embodiment of the present invention.
[0055] Figure 7a This is an effect diagram of quantile regression screening of the f(x1, x2) standard function data set provided in Example 1 of the present invention.
[0056] Figure 7b Another effect diagram of quantile regression screening of the f(x1, x2) standard function data set provided in Example 1 of the present invention.
[0057] Figure 8a A result diagram of the uniform quadrat division of the f(x1, x2) standard function data set provided in the first embodiment of the present invention.
[0058] Figure 8b This is another result diagram of the uniform quadrat division of the f(x1, x2) standard function data set provided in the first embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to enable those skilled in the art to better understand the technical solution of the present invention, the virtual sample generation method based on the sampling method and quantile regression provided by the present invention is described in detail below with reference to the accompanying drawings.
[0060] Embodiment 1
[0061] The purpose of the technical solution provided in this embodiment is that since small samples do not fully represent the overall characteristics of the sample, directly using small samples for modeling and prediction has problems such as low model accuracy and poor generalization ability. This embodiment proposes a virtual sample generation technology to improve the accuracy of small sample modeling by increasing the number of samples.
[0062] This embodiment focuses on using the sample method to divide the input space of the sample, generate the input of the virtual sample in the data sparse area, then generate the corresponding virtual output through Gaussian process regression, and finally screen the virtual sample through quantile regression. The main contribution of this study is to analyze the relative importance of the independent variable to the response variable, generate virtual samples according to the degree of influence, and secondly, use the correlation between the independent variable and the response variable for analysis, and delete the virtual samples that do not meet the correlation. Compared with the previous method, the virtual sample obtained by the method proposed in this embodiment is used for modeling, and the model error is smaller.
[0063] Specifically, this embodiment provides a virtual sample generation method based on sampling method and quantile regression, the method including: a process of analyzing the importance of independent variables relative to dependent variables through dominance analysis, a process of dividing the input space into samples, a process of generating virtual inputs from the input space, a process of generating virtual outputs through Gaussian process regression, a process of analyzing the influence trend of independent variables on dependent variables according to quantile regression, and a process of screening virtual samples according to quantile regression.
[0064] In this embodiment, the process of analyzing the importance of the independent variable relative to the dependent variable by dominance analysis is: performing dominance analysis on the independent variable and the dependent variable in the original small sample data set to obtain the relative importance of the independent variable relative to the dependent variable.
[0065] In this embodiment, the process of dividing the input space into samples is as follows: dividing the input space into samples according to the relationship that relative importance is proportional to the side length of the sample, and controlling the division result by the total number of sample plots so that the number of divided sample plots is within a reasonable range.
[0066] In this embodiment, the process of generating virtual input from the input space is as follows: according to the divided samples, a Cartesian product is performed on the projection values in each sample plot to generate a virtual input, while ensuring that the Euclidean distance of the original small samples of each projection for generating the Cartesian product is less than a certain value to avoid generating too many samples.
[0067] In this embodiment, the process of generating virtual output by Gaussian process regression is: using Gaussian process regression to model the original small sample data set and predict the virtual output corresponding to the virtual input.
[0068] In this embodiment, the process of analyzing the influence trend of the independent variable on the dependent variable according to the quantile regression is: using linear quantile regression to model the original small sample and analyze the influence trend of the independent variable on the dependent variable.
[0069] In this embodiment, the process of screening virtual samples according to quantile regression is: screening the generated virtual samples, deleting the virtual samples that do not meet the correlation relationship between the independent variable and the dependent variable, and the virtual samples that remain are the generated virtual samples.
[0070] Figure 1 The flowchart of the virtual sample generation method based on the sampling method and quantile regression provided in the first embodiment of the present invention is shown in FIG. Figure 1 As shown, this embodiment divides the virtual sample generation process into three steps. The first step is to generate virtual input values in the input space. The second step is to generate the corresponding output values of the virtual samples through Gaussian process regression. The third step is to screen the virtual samples according to quantile regression, and the screening results are the virtual samples.
[0071] In the stage of generating virtual input values in the input space, we first perform advantage analysis on the small sample data to obtain the relative importance of the independent variables. The greater the relative importance of an independent variable, the greater the proportion of the explained variance contributed by this independent variable to the dependent variable. If the data in other dimensions are the same, the data in this dimension has a greater degree of dispersion. In this case, in the segmentation of the sample plot, the sample plot side length of this dimension is longer.
[0072] Therefore, in the division of the sample plot, the side length of the sample plot is proportional to the relative importance of the independent variable. Figure 2 This is a flow chart of dividing the input space into quadrats provided in the first embodiment of the present invention. Figure 2 As shown, this embodiment selects the minimum Euclidean distance dist in the input space min , corresponding to the minimum relative importance imp min , and obtain the division of sample plots in each dimension. The original sample plot side length of each dimension is
[0073]
[0074] Initial value, the total side length of each dimension is
[0075] L i =x i,max -x i,min (i=0,1......n) (2)
[0076] The number of sample divisions in this dimension is
[0077]
[0078] Multiply the number of sample plots in each dimension to get the total number of sample plots:
[0079]
[0080] If the side length of the sample plot is too small, the number of samples will be too large. Therefore, by controlling the number of samples, the side length of the sample plot is in turn controlled. If the total number of samples is greater than the set value, the side length of each sample plot becomes 1.2 times the original, that is,
[0081] l i,new = l i,old ×1.2 (5)
[0082] Re-divide the sample plots and repeat the steps until the total number of sample plots is within the specified range. Since in a data structure with multiple independent variables, the importance of some independent variables is relatively small, it will lead to the fact that the sample plots are particularly densely divided in a certain dimension. In order to avoid this phenomenon, the maximum number of sample plot divisions in each dimension is determined according to the number of independent variables.
[0083] After dividing the sample plot, a virtual input is generated in the input space. First, each original sample is projected onto each dimension of the input space, and the set of projections of each dimension is Ω = {x i,j}(i=0,1KKn;j=0,1KKm).
[0084] Then check each dimension. If a certain quadrat segment of this dimension has no projection value, generate a projection value, which is located at the center point of the quadrat segment. At the same time, generate a virtual small sample value, the value of this dimension is the projection value, and the values of other dimensions are the midpoints of the maximum and minimum values for subsequent calculations.
[0085]
[0086] When generating virtual samples, a Cartesian product is performed on the projection values in each sample plot. The projection values come from the original sample points. Sample points with a Euclidean distance that is too far away have a relatively weak correlation between the two and can be ignored when forming the Cartesian product. Therefore, they can be screened before generation. The principle of screening: The Euclidean distance of the original sample in the input space for generating virtual samples should be less than 1 / 7 of the maximum Euclidean distance. This is because the range of the original sample point is limited. If the distance is too far and data is generated in a very sparse place, the error of the output value obtained by Gaussian process regression will be very large. The deleted samples must also be processed: (1) It is necessary to ensure that virtual samples are generated in each sample plot. According to the sample plot density method, if virtual samples are generated in each sample plot, the virtual samples can be effectively filled in the input space to a certain extent. Therefore, for blank sample plots, a deleted point is randomly selected for restoration. (2) For the edge areas of the small sample space, the generated virtual samples are deleted. For the generation of virtual samples, different generation methods should be used in small sample space and extended space. The method that performs well in small sample space may not be applicable in extended space. Therefore, virtual samples in marginal areas should be deleted. In this embodiment, virtual samples within the two largest and smallest sample plots of each dimension are deleted.
[0087] The second step is to use Gaussian process regression to generate virtual output values corresponding to the virtual inputs.
[0088] The third step is to use quantile regression to analyze the trend of the influence of the independent variable on the dependent variable. For the changes in the dependent variable caused by the same independent variable change, the independent variable with greater relative importance has a greater impact on the dependent variable. Therefore, we choose to judge along the direction of greater relative importance. Select the sample plot with the original sample for screening.
[0089] Find the dimension with large relative importance. For each projection on this dimension, find the corresponding original sample point. Based on the original sample point, find a virtual sample point that is different from this sample point in the i-th dimension but has the same other dimensions. Establish two queues, the unchecked queue and the qualified queue.
[0090] Each time, find the point in the unchecked queue that is closest to the qualified queue for inspection.
[0091] During the inspection, for the predicted value y1' of this virtual sample, the predicted value y2' of the nearest point in the qualified queue is obtained according to the output value quantile point obtained from the original sample, and y1' and y2' are obtained, and the regression coefficient b of the independent variable in the corresponding case is obtained. This regression coefficient can express the relationship between the change of the independent variable and the change of the dependent variable in this dimension under this quantile. Therefore, if the following relationship is met, it will be retained, and if it is not met, it will be deleted.
[0092]
[0093] In order to verify the effectiveness of the virtual sample generation method based on the sampling method and quantile regression, this embodiment conducts experiments on both standard function data sets and actual industrial data sets.
[0094] In the standard function data set, the standard function used is shown in the following formula. x1 and x2 are independent of each other and constitute x, which obeys the U (0-1) distribution.
[0095]
[0096] 30 sample points are randomly generated in the sample space domain to form a small sample data set for training.
[0097] After performing advantage analysis on the original sample, the relative importance of x1 and x2 are 0.9422900361786678 and 0.05770996382133217 respectively. Figure 3 This is a schematic diagram of the relative importance of the independent variables to the dependent variables of the f(x1, x2) standard function data set provided in the first embodiment of the present invention. Figure 3 As shown: Calculate the Euclidean distance, the minimum Euclidean distance is 0.001, the minimum relative importance is 0.05770996382133217, based on this, the initial sample plot side length is 0.00949, 0.001, it can be seen that the sample plot side length is very small, so the number of sample plots obtained will be very large, the number of virtual samples generated will also increase, and the error will increase. Calculate the maximum and minimum values of each dimension, and get the rectangular side length of the data distribution is 0.9616, 0.9169. Figure 4 This is a schematic diagram of the sample division of the f(x1, x2) standard function data set provided in the first embodiment of the present invention. The sample division result is as follows Figure 4 As shown, after iterative calculation, the number of sample plots is 3 and 38, and the side lengths of the sample plots are 0.41018627 and 0.02461118.
[0098] Figure 5 The virtual input generation diagram of the input space of the f(x1, x2) standard function data set provided in the first embodiment of the present invention. The virtual sample of the generated input space is as follows: Figure 5As shown, the square points are generated virtual sample points, totaling 114 points; after screening the samples in the edge area, 95 sample points remain.
[0099] Afterwards, Gaussian process regression is used to predict the corresponding output value, and then quantile regression is used to filter the data to obtain virtual samples. Figure 6 This is a virtual sample distribution diagram of the input space after the f(x1, x2) standard function data set is screened according to the first embodiment of the present invention. Figure 6 As shown in Figure 1, there are 36 virtual input values, as shown in the square points. The actual values generated by the standard function are compared with the predicted values, and the results are shown in Table 1.
[0100] Table 1 Comparison of the true values and predicted values generated by the standard function
[0101]
[0102] Figure 7a This is an effect diagram of quantile regression screening of the f(x1, x2) standard function data set provided in Example 1 of the present invention. Figure 7b Another effect diagram of the quantile regression screening of the f(x1,x2) standard function data set provided in the first embodiment of the present invention. There are 59 data removed by the quantile regression screening, and the comparison with the actual output is as follows Figure 7a As shown, Figure 7b The figure shows the error of the retained virtual sample. By comparison, it can be seen that quantile regression screening is effective and can eliminate virtual samples with large errors.
[0103] Figure 8a A result diagram of the uniform quadrat division of the f(x1, x2) standard function data set provided in the first embodiment of the present invention. Figure 8b This is another result diagram of the uniform quadrat division of the f(x1,x2) standard function data set provided in Example 1 of the present invention. An experimental comparison was also conducted on the effectiveness of the quadrat division. The uniform quadrat division method was used to divide the input space into quadrat divisions, and then the virtual samples were generated using the same generation method. The error is as follows Figure 8b As shown, the quality of the virtual samples is obviously inferior to the virtual sample generation method proposed by the method of this embodiment. Therefore, it can be seen that the sample division proposed by the method of this embodiment is effective.
[0104] In order to verify the role of this embodiment in the chemical process, an industrial data set was used for experiments. The data set used is high-density polyethylene (HDPE), which has 15 inputs and 1 output. The HDPE data set has a total of 180 data samples, of which 150 samples are used as training sets and 30 are used as test sets. In the process of generating virtual samples, in order to avoid the large amount of Cartesian product calculations, the strategy is adjusted when generating virtual inputs in each sample plot. For each sample plot, find the original sample point closest to the center point of the sample plot as the basis for change. Starting from the dimension with the largest number of sample plots, replace this dimension of the original sample point with the projection value of the dimension in the sample plot, generate a virtual sample, and determine whether the generated sample already exists: if it exists, regenerate it, reselect the dimension with a decreasing number of sample plots, and generate samples; if it exists, the generated sample meets the conditions. As a result, 258 sample plots were divided, and 39 virtual samples were finally generated. The test set was used for testing. The results are shown in Table 2. Compared with before the virtual samples were generated, the accuracy of the model has been improved. We compared it with Bootstrap and TTD, and the results showed improvements.
[0105] Table 2 Comparison results of Bootstrap, TTD and virtual sample generation methods before generating virtual samples
[0106]
[0107] The results show that the virtual sample generation method proposed in this embodiment can improve the accuracy of small sample modeling by generating virtual samples.
[0108] This embodiment proposes a virtual sample generation method based on the sampling method and quantile regression. The virtual sample generation method is based on the relative importance of the independent variable, and the sampling method is used to divide the input space of the original sample, generate the input of the virtual sample at the scarce position, predict the output of the virtual sample by Gaussian process regression, and then use quantile regression to analyze the influence trend of the independent variable on the dependent variable, and screen the generated virtual samples. This embodiment experiments on standard function data sets and actual industrial data sets. The experimental results show that this embodiment can effectively expand the sample, thereby improving the modeling accuracy of the sample. This embodiment uses the relative importance of the independent variable relative to the dependent variable to generate virtual samples according to different degrees of influence. In addition, this embodiment uses the correlation between the independent variable and the dependent variable to delete virtual samples that do not meet the correlation.
[0109] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A virtual sample generation method based on sampling method and quantile regression, characterized in that: include: Dominance analysis analyzes the importance of independent variables relative to dependent variables, divides the input space into samples, generates virtual inputs in the input space, generates virtual outputs through Gaussian process regression, analyzes the influence trend of independent variables on dependent variables based on quantile regression, and selects virtual samples based on quantile regression; The step of analyzing the importance of the independent variable relative to the dependent variable by the advantage analysis includes: performing advantage analysis on the independent variable and the dependent variable in the original small sample data set to obtain the relative importance of the independent variable relative to the dependent variable, the original small sample data set includes an industrial data set, the industrial data set includes a high-density polyethylene data set, the high-density polyethylene data set has 15 inputs and 1 output, and includes 180 data samples; The step of dividing the input space into quadrats comprises: dividing the input space into quadrats according to the proportional relationship between the relative importance and the side length of the quadrats, and controlling the division result according to the total number of quadrats so that the number of divided quadrats is within a preset range; The step of generating a virtual input in the input space includes: performing a Cartesian product on the projection values in each sample plot according to the divided samples to generate a virtual input, wherein the Euclidean distance of the original small samples of each projection of the generated Cartesian product is less than a preset value; The step of generating a virtual output through Gaussian process regression includes: using Gaussian process regression to model the original small sample data set and predict the virtual output corresponding to the virtual input; The step of analyzing the influence trend of the independent variable on the dependent variable according to quantile regression includes: modeling the original small sample by linear quantile regression to analyze the influence trend of the independent variable on the dependent variable; The step of screening virtual samples according to quantile regression includes: screening the generated virtual samples, deleting the virtual samples that do not conform to the correlation relationship between the independent variable and the dependent variable, and the remaining virtual samples are the final generated virtual samples.
2. The virtual sample generation method based on the sampling method and quantile regression according to claim 1 is characterized in that: The step of analyzing the importance of the independent variable relative to the dependent variable by the dominance analysis also includes: Dominance analysis is used to quantitatively analyze the importance of the independent variable relative to the dependent variable, and the relative importance of a single variable is divided into direct effect, overall effect and partial effect. The direct effect is the individual influence of the independent variable on the dependent variable; the overall effect is the influence of the independent variable on the dependent variable when the independent variable is put together with all other independent variables; the partial effect is the influence of the independent variable on the dependent variable when the independent variable is put together with other independent variables. The relative importance of each independent variable is calculated based on the average of the direct effect, the total effect, and the partial effect; Compare the relative importance of each independent variable.
3. The virtual sample generation method based on the sampling method and quantile regression according to claim 1 is characterized in that: The step of dividing the input space into samples further includes: selecting the minimum Euclidean distance dist in the input space min and the minimum relative importance imp min , obtaining the division of the sample plots in each dimension according to the proportional relationship between the minimum Euclidean distance and the minimum relative importance; According to the original sample length l in each dimension i and the total side length L of the original sample plot in each dimension i Get the number of sample divisions in each dimension sample i , the expression of the number of sample divisions is as follows: Among them, the original sample side length l i and the total side length L of the original sample plot i The expression is as follows: L i =x i,max -x i,min (i=0,1......n) The number of sample plots in each dimension is multiplied to obtain the total number of sample plots, and the expression of the total number of sample plots is as follows: If the total number of sample plots is greater than the preset number of sample plots, the side length of each sample plot becomes 1.2 times of the original, and the sample plots are re-divided according to the new side length of the sample plot, and the above steps are repeated until the total number of sample plots is within the preset number of sample plots.
4. The virtual sample generation method based on the sampling method and quantile regression according to claim 1 is characterized in that: The step of generating a virtual input in the input space further comprises: Project each original sample onto each dimension of the x space to obtain a projection set of each dimension. The expression of the projection set is as follows: Ω={x i,j }(i=0,1......n;j=0,1......m) Starting from the dimension with the largest number of samples, starting from the smallest x in this dimension, each sample is screened. If the sample has a projection of x in this dimension, the sample is not processed. If the sample does not have a projection of x in this dimension, a projection value is generated at the center of this edge of the sample, and a point in the input space is generated at the same time. The values of other dimensions are equal to the midpoint of the maximum and minimum values. The expression of the midpoint is as follows: Cartesian products are performed on the projections of each dimension within each sample plot to obtain samples of different value combinations; For each generated point, if the x value of the point coincides with that of the original sample point, delete the point; For the m original sample points that generate this point, the Euclidean distance between the two points in the input space is calculated. If the Euclidean distance is greater than 1 / 7, the retained point is the generated virtual input.
5. The virtual sample generation method based on the sampling method and quantile regression according to claim 1 is characterized in that: The step of analyzing the influence trend of the independent variable on the dependent variable according to quantile regression includes: The influence trend of the independent variable on the dependent variable is analyzed according to the linear quantile regression model to obtain a quantile regression model under 10 quantiles. The expression of the linear quantile regression model is as follows: The 10 quantiles are 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, and 0.95 respectively.
6. The virtual sample generation method based on the sampling method and quantile regression according to claim 1 is characterized in that: The step of screening virtual samples according to quantile regression includes: An unexamined cohort and a qualified cohort were established based on the generated virtual samples; Finding a point in the unchecked queue that is closest to the qualified queue for checking; For the predicted value y1' of the virtual sample and the predicted value y2' of the nearest point in the qualified queue, the predicted value y1' and the predicted value y2' are obtained according to the output value quantile point obtained from the original sample, and the regression coefficient b of the corresponding independent variable is obtained according to the predicted value y1' and the predicted value y2'; If the virtual sample meets the correlation between the independent variable and the dependent variable, the virtual sample is retained; if the virtual sample does not meet the correlation between the independent variable and the dependent variable, the virtual sample is deleted. The expression of the correlation between the independent variable and the dependent variable is as follows: Where b is the regression coefficient.
