Semi-supervised integrated industrial process soft sensor modeling method and system based on heat diffusion label propagation
Through thermal diffusion label propagation and integrated learning methods, the problem of lack of labeled data and abundant unlabeled data in the process industry is solved, the prediction accuracy of the soft sensor model is improved, and real-time control of industrial processes is achieved.
Patent Information
- Application Number
- CN202210089144.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-01-25
AI Technical Summary
In the process industry, due to the lack of labeled data, the prediction accuracy of traditional supervised soft sensing models is not high, and unlabeled data is abundant but cannot be effectively utilized, making it difficult to achieve real-time optimization of industrial process control.
A semi-supervised integrated industrial process soft sensor modeling method based on thermal diffusion label propagation is adopted. By constructing a thermal diffusion label propagation algorithm and ensemble learning, the relationship between labeled samples and non-labeled samples is mined, and pseudo labels are provided for non-labeled samples. Select high-confidence pseudo-labeled data sets to expand the training data set and improve prediction accuracy through performance improvement rate.
It significantly improves the prediction accuracy of industrial process soft sensor modeling, effectively integrates the advantages of thermal diffusion label propagation and ensemble learning, and improves the performance of soft sensor models in process industries.
Smart Images

Figure CN115472233B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a semi-supervised integrated industrial process soft measurement modeling method and system based on heat diffusion label propagation, and belongs to the field of industrial process control. Background Art
[0002] With the rapid development of modern information technology and the significant improvement of computer computing power, the process industry has developed towards scale expansion, process refinement, process complexity and intelligent control, which has improved the efficiency of industrial production and met the needs of industrial control processes. The safe implementation of industrial control processes is inseparable from the real-time monitoring of key process variables. It is very necessary to implement timely monitoring of process variables in process industries and formulate reasonable control strategies.
[0003] However, in actual industrial production, such as chemical industry, biological fermentation, pharmaceutical industry, water treatment and other industrial processes, due to the technical limitations of online monitoring instruments, many main quality parameters cannot be obtained through real-time monitoring, and can only be obtained through offline analysis of analyzers. Approximate quality parameters, despite this, require a huge amount of time investment and are very strict with the accuracy of analytical instruments, which inevitably leads to a huge time delay between the analysis results and actual production. For industrial processes that require real-time control, it is difficult to achieve the requirements of optimized control. In addition, some industrial environments are relatively complex, such as high temperature and high pressure, strong acid and alkali, and strong corrosive environments, which cause serious wear and tear on measuring instruments, require huge capital investment in instruments, and the accuracy of the measured values is difficult to guarantee.
[0004] Soft measurement is a technology that estimates difficult-to-measure variables by building a mathematical relationship between easy-to-measure auxiliary variables and difficult-to-measure key variables. The construction of high-performance soft measurement models relies on historical labeled data with both input and output variables. However, the process industry generally has a situation of "lack of labeled data and abundant unlabeled data". When labeled data is very limited, data-driven soft measurement models often cannot provide good prediction performance. Furthermore, unlabeled data also contains rich process information. Combining labeled data and non-standard machine data to establish a model and reasonably using unlabeled data as a supplement to labeled data are of great significance to improving the prediction performance of soft measurement models.
[0005] The pseudo-labeled semi-supervised method is an efficient method for utilizing unlabeled data. By assigning pseudo-labels to pseudo-labeled samples, a certain method is used to select pseudo-labeled samples with good performance and add them to labeled samples to expand them. The prediction model is trained with the expanded sample set to improve the prediction performance. The existing semi-supervised soft measurement model has the problem that the pseudo-label estimation is heavily dependent on the performance of the initial model. Therefore, how to assign pseudo-labels to unlabeled samples without relying on model predictions, and how to select appropriate pseudo-labeled samples to improve the prediction performance is the main problem that needs to be solved. Summary of the invention
[0006] The present invention provides a semi-supervised integrated industrial process soft-sensor modeling method and system based on heat diffusion label propagation, which are used to realize industrial process soft-sensor modeling by integrating heat diffusion label propagation and integrated learning.
[0007] The technical solution of the present invention is: a semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation, comprising:
[0008] S1. Collect industrial process data, determine p auxiliary variables x related to the predicted variable y of the industrial process data, the auxiliary variable x is the input variable, and construct a database for soft sensor modeling; wherein the database for soft sensor modeling includes a labeled data set L and an unlabeled data set U, the labeled data set is a data set that contains both the predicted variable and the input variable, L = {(x 1 ,y 1 ),(x 2 ,y 2 ),…,(x l ,y l )}; the unlabeled dataset is a dataset that only contains input variables, U = {x 1 ,x 2 ,…,x u}, l represents the total number of samples in the labeled dataset, and u represents the total number of samples in the unlabeled dataset;
[0009] S2. Normalize the labeled dataset L and the unlabeled dataset U to obtain a normalized labeled dataset and a normalized unlabeled dataset; and divide the normalized labeled dataset into a training dataset L trn , test data set L test and validation dataset L val ;
[0010] S3, select the GPR model as the base model;
[0011] S4. Based on the training data set L trn The heat diffusion label propagation algorithm is used on the normalized unlabeled data set to obtain the predicted variable value of the normalized unlabeled data set as the pseudo label; the pseudo label and the normalized unlabeled data set are combined to form the pseudo label data set;
[0012] S5. Construct corresponding adjacency matrices based on different similarity indicators, and establish different heat diffusion label propagation algorithms on this basis to obtain diverse pseudo-label data sets through diffusion;
[0013] S6. Select pseudo datasets with high confidence as expansion samples based on the performance improvement rate of the obtained diverse pseudo-label datasets;
[0014] S7, adding the pseudo-label data sets used as augmented samples in S6 to the training data sets to expand the training data sets to obtain diverse augmented labeled training data sets, and training the GPR models according to the obtained augmented labeled training data sets to obtain Z semi-supervised soft measurement models;
[0015] S8. Collect new online measurement data of industrial processes and perform normalization processing;
[0016] S9. The normalized measurement data is directly input into the Z semi-supervised soft measurement models obtained in S7 to obtain Z prediction outputs. The Z prediction outputs are integrated using an ensemble learning method, and the integrated result is denormalized to obtain the final prediction result.
[0017] The thermal diffusion label propagation algorithm obtains pseudo labels, including:
[0018] ① Use the similarity metric between samples to calculate the training data set L trn The similarity between the labeled samples in the normalized unlabeled dataset and the unlabeled samples in the normalized unlabeled dataset; the training dataset L trn , normalize unlabeled dataset, construct similarity as graph data in, is the set of nodes in the graph, each node represents a sample point in the data set, E is the set of edges connecting two nodes, and the edges represent similarity; any two samples x i 、x j The similarity between them is first calculated by the distance similarity, and then the weight ω calculated by the radial basis function ij To measure; the constructed graph is the k nearest neighbor graph, that is, i The weights of the most recent k samples are retained, and the rest of the weights are reset to 0, so we can get a (N×N) weight matrix as the adjacency matrix W representing the edge E between nodes; i, j = 1, 2, ... N, where N represents the training data set L trn The sum of the number of labeled samples in the normalized unlabeled dataset and the number of unlabeled samples in the normalized unlabeled dataset;
[0019] ②The heat with initial conditions is defined by a second-order differential equation;
[0020] ③At time t, node x i In the unit time interval Δt, from the adjacent x j Receive a certain amount of heat M(x i ,x j ,t,Δt), get the node x iThe heat difference from time t to time (t+Δt) is equal to the sum of the heat received from all adjacent nodes. Divide both sides of the formula by the time interval Δt to obtain the first equation. Based on the division of labeled samples and unlabeled samples, the adjacency matrix W is divided into four calculation modules when the label diffusion calculation is performed. Based on the division of labeled samples and unlabeled samples, the adjacency matrix is divided into four calculation modules when the label diffusion calculation is performed. The Laplace matrix of the unlabeled nodes in the unlabeled data set is substituted into the first equation and solved to obtain the pseudo label.
[0021] The weight ω ij :
[0022]
[0023] Among them, d is the distance metric calculated by the similarity index, σ is the bandwidth parameter, which is 1 / p, and p is the number of auxiliary variables input. i =x j When ij =1, when x i -x j When it approaches ∞, ω ij =0.
[0024] The heat with initial conditions is defined by the following second order differential equation:
[0025]
[0026] Among them, y(x i ,t) represents the node x in the graph i The heat at time t, △y(x i ,t) represents the function y(x i ,t), the solution of the heat diffusion equation on the graph is defined as:
[0027] y(t)=e -αtH y(0) (3)
[0028] Among them, y(t) represents the node x at time t. i , y(0) represents the initial heat distribution given at time 0, H represents the Laplace matrix, α represents the diffusion coefficient, and e represents the exponent.
[0029] At time t, node x i In the unit time interval Δt, from the adjacent x j Receive a certain amount of heat M(x i ,x j ,t,Δt), heat M(x i ,x j ,t,Δt) and Δt, thermal difference are proportional to each other, so the node x i The heat difference from time t to time (t+Δt) is equal to the sum of the heat received from all adjacent nodes, expressed as:
[0030]
[0031] in, Represents node x i The heat at time (t+Δt), Represents node x i The heat at time t, Represents node x i With x j The weight matrix of
[0032] Divide both sides of formula (4) by Δt. When Δt→0, then:
[0033]
[0034] in, Represents node x i The heat at the present moment;
[0035] Based on the division of labeled samples and unlabeled samples, the adjacency matrix is divided into four calculation modules during label diffusion calculation:
[0036]
[0037] get in, represents the adjacency matrix between training data sets, represents the adjacency matrix between the training dataset and the normalized unlabeled dataset, represents the adjacency matrix between the normalized unlabeled dataset and the training dataset, Represents the adjacency matrix between normalized unlabeled datasets; Represents the label of the training dataset;
[0038] Combine formula (6) with the Laplacian matrix of the unlabeled nodes in the unlabeled dataset Substituting into formula (5), we get the following matrix form:
[0039]
[0040] Among them, D UU =diag(d i ) represents the degree matrix of the node; d i =∑ j ω ij Denotes the weight ω ijsum;
[0041] Solve linear differential equations, where the label values of labeled nodes are known from the training dataset Pseudo labels y for unlabeled nodes in unlabeled dataset U Given by:
[0042]
[0043] Set the initial condition y U | t=0 =y U (0), note that when time t→∞, is a harmonic function, so the constant C is defined according to this harmonic function as:
[0044]
[0045] Among them, C is a constant.
[0046] The difference in the similarity index is determined by the selected distance similarity metric, wherein the selected distance similarity metric includes Bray-Curtis dissimilarity, Campella distance, Chebyshev distance, Manhattan distance, correlation coefficient distance, cosine similarity distance, Euclidean distance, squared Euclidean distance, Hamming distance, and Dice coefficient.
[0047] The method selects a pseudo data set with high confidence as an expansion sample according to the performance improvement rate of the obtained diverse pseudo-label data set, including: using the training data set L trn The GPR model is trained to obtain a trained GPR model; the trained GPR model is used to test the test data set L test Make predictions to obtain the initial performance value; add the pseudo-label dataset in S5 to the training dataset L trn Then the GPR model is retrained and the test data set L is used test Make a prediction and get a new performance value; compare the new performance value with the initial performance value: if the performance improvement rate ≥ α, retain it as an expanded sample; otherwise, discard it; where α>0.
[0048] The ensemble learning method is to integrate the GPR model trained in S7 using a weighted method based on linear regression stacking ensemble. The specific steps are as follows:
[0049] 1) Use the GPR model retained in S7 to validate the dataset L val Make a prediction and get a set of predicted values
[0050] 2) Output the prediction As input, the validation dataset L val The real output y val ={y val,1 ,y val,2 ,…,y val,n} as output, and use it to train the linear regression model. The expression is:
[0051]
[0052] 3) For a new online measurement data sample x collected from S8 new , use the reserved Z GPR models to predict it and get Z prediction outputs Test sample x new The final predicted output y is:
[0053]
[0054] Among them, {ω 0 ,ω 1 ,ω 2 ,…,ω Z} are the linear regression model coefficients.
[0055] According to another aspect of an embodiment of the present invention, a semi-supervised integrated industrial process soft sensor modeling system based on heat diffusion label propagation is provided, comprising:
[0056] A construction module is used to collect industrial process data, determine p auxiliary variables x related to the prediction variable y of the industrial process data, the auxiliary variable x is the input variable, and construct a database for soft measurement modeling; wherein the database for soft measurement modeling includes a labeled data set L and an unlabeled data set U, the labeled data set is a data set containing both the prediction variable and the input variable, L = {(x 1 ,y 1 ),(x 2 ,y 2 ),…,(x l ,y l )}; the unlabeled dataset is a dataset that only contains input variables, U = {x 1 ,x 2 ,…,x u}, l represents the total number of samples in the labeled dataset, and u represents the total number of samples in the unlabeled dataset;
[0057] The partitioning module is used to normalize the labeled data set L and the unlabeled data set U to obtain a normalized labeled data set and a normalized unlabeled data set; and divide the normalized labeled data set into a training data set L trn , test data set L testand validation dataset L val ;
[0058] A first selection module is used to select the GPR model as a base model;
[0059] The first acquisition module is used to obtain the training data set L trn The heat diffusion label propagation algorithm is used on the normalized unlabeled data set to obtain the predicted variable value of the normalized unlabeled data set as the pseudo label; the pseudo label and the normalized unlabeled data set are combined to form the pseudo label data set;
[0060] The second acquisition module is used to construct corresponding adjacency matrices based on different similarity indicators, and on this basis, establish different heat diffusion label propagation algorithms to obtain diverse pseudo-label data sets through diffusion;
[0061] The second selection module is used to select a pseudo data set with high confidence as an expansion sample based on the performance improvement rate of the obtained diverse pseudo-label data set;
[0062] A third acquisition module is used to add the pseudo-label data sets used as the expansion samples in the second selection module to the training data sets to expand the training data sets to obtain diverse expanded labeled training data sets, and train the GPR models according to the obtained expanded labeled training data sets to obtain Z semi-supervised soft measurement models;
[0063] The collection module is used to collect new online measurement data of industrial processes and perform normalization processing;
[0064] The prediction module is used to directly input the normalized measurement data into the Z semi-supervised soft measurement models obtained in the third acquisition module to obtain Z prediction outputs, integrate the Z prediction outputs using an ensemble learning method, and denormalize the integrated results to obtain the final prediction results.
[0065] According to another aspect of an embodiment of the present invention, a method for predicting chlortetracycline substrate concentration is provided, which is performed using any of the above-mentioned semi-supervised integrated industrial process soft sensor modeling methods based on thermal diffusion label propagation.
[0066] The beneficial effects of the present invention are as follows: in view of the problem that the traditional supervised soft sensor model has low prediction accuracy due to the prevalent "lack of labeled data and abundant unlabeled data" in the process industry, the present invention adopts the method of heat diffusion label propagation to mine the relationship between labeled samples and unlabeled samples, and provides pseudo labels for unlabeled samples without relying on model prediction; combined with the idea of ensemble learning, first, by using different similarity indicators to construct an adjacency matrix, a variety of pseudo-labeled data sets are obtained, and then the high-confidence pseudo-labeled data sets are selected with the performance improvement rate as the confidence evaluation index, and they are added to the labeled training sample set to generate a variety of expanded labeled training data sets; then, a variety of Gaussian process regression base models are constructed based on the labeled training data set; finally, stacking integration is used to achieve model fusion. The present invention effectively combines the advantages of heat diffusion label propagation and ensemble learning, and can significantly improve the prediction accuracy of industrial process soft sensor modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is a flow chart of the semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation of the present invention;
[0068] Figure 2 The curve is a curve of the actual value and the predicted value of the substrate concentration predicted by the method proposed in the present invention during the chlortetracycline fermentation process. DETAILED DESCRIPTION
[0069] The invention is further described below in conjunction with the accompanying drawings and embodiments, but the content of the invention is not limited to the scope of the embodiments.
[0070] Example 1: Figure 1 As shown, a semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation includes:
[0071] S1. Collect industrial process data, determine p auxiliary variables x related to the predicted variable y of the industrial process data through the mechanism analysis of the industrial process, and construct a database for soft measurement modeling; wherein the database for soft measurement modeling includes a labeled data set L and an unlabeled data set U. The labeled data set is a data set that contains both the predicted variable and the input variable, L = {(x 1 ,y 1 ),(x 2 ,y 2 ),…,(x l ,y l )}; the unlabeled dataset is a dataset that only contains input variables, U = {x 1 ,x 2 ,…,x u}, l represents the total number of samples in the labeled dataset, and u represents the total number of samples in the unlabeled dataset;
[0072] S2. Based on the Z-Score method, the labeled data set L and the unlabeled data set U are normalized to obtain a normalized labeled data set and a normalized unlabeled data set; and the normalized labeled data set is divided into a training data set L trn , test data set L test and validation dataset L val ;
[0073] S3. Considering that industrial processes often present high-dimensional and nonlinear characteristics, the GPR model is selected as the base model;
[0074] The establishment process of the Gaussian process regression model GPR is:
[0075] Assume there is a data set For each sample x in D * Prediction output in Gaussian process regression model Obey Gaussian distribution:
[0076]
[0077] In formula (1), E(.) and Var(.) represent the mean and variance operators respectively.
[0078] The Gaussian process regression model can be described as:
[0079]
[0080] In formula (2), k * =[C(x * ,x 1 ),…,C(x * ,x n ))] T , C is a (n×n)-order symmetric positive definite matrix consisting of the covariances of each sample in X. and are the predicted mean and variance of the Gaussian process regression model, respectively.
[0081] S4. Based on the training data set L trn The heat diffusion label propagation algorithm is used on the normalized unlabeled data set to obtain the predicted variable value of the normalized unlabeled data set as a pseudo-label. The pseudo-label and the normalized unlabeled data set are combined to form a pseudo-label data set. The pseudo-label data set obtained at this time will be data that is close to the distribution of real industrial process data.
[0082] S5. Construct corresponding adjacency matrices based on different similarity indicators, and establish different heat diffusion label propagation algorithms on this basis to obtain diverse pseudo-label data sets through diffusion;
[0083] S6. Select pseudo datasets with high confidence as expansion samples based on the performance improvement rate of the obtained diverse pseudo-label datasets;
[0084] S7, adding the pseudo-label data sets used as augmented samples in S6 to the training data sets to expand the training data sets to obtain diverse augmented labeled training data sets, and training the GPR models according to the obtained augmented labeled training data sets to obtain Z semi-supervised soft measurement models;
[0085] S8. Collect new online measurement data of industrial processes and perform normalization processing;
[0086] S9. The normalized measurement data are directly input into the Z semi-supervised soft measurement models obtained in S7 to obtain Z prediction outputs. The Z prediction outputs are integrated using the ensemble learning method. The integrated result is denormalized to obtain the final prediction result. According to the prediction result, the corresponding control strategy can be adopted for the industrial process to realize the monitoring and control of the industrial process.
[0087] Optionally, the thermal diffusion label propagation algorithm obtains the pseudo label, including:
[0088] ① Use the similarity metric between samples to calculate the training data set L trn The similarity between the labeled samples in the normalized unlabeled dataset and the unlabeled samples in the normalized unlabeled dataset; the training dataset L trn , normalize unlabeled dataset, construct similarity as graph data in, is the set of nodes in the graph, each node represents a sample point in the data set, E is the set of edges connecting two nodes, and the edges represent similarity; any two samples x i 、x j The similarity between them is first calculated by the distance similarity, and then the weight ω calculated by the radial basis function ij To measure; the constructed graph is the k nearest neighbor graph, that is, i The weights of the most recent k samples are retained, and the rest of the weights are reset to 0, so we can get a (N×N) weight matrix as the adjacency matrix W representing the edge E between nodes; i, j = 1, 2, ... N, where N represents the training data set L trn The sum of the number of labeled samples in the normalized unlabeled dataset and the number of unlabeled samples in the normalized unlabeled dataset;
[0089] ②The heat with initial conditions is defined by a second-order differential equation;
[0090] ③At time t, node x i In the unit time interval Δt, from the adjacent x j Receive a certain amount of heat M(x i ,x j ,t,Δt), get the node x i The heat difference from time t to time (t+Δt) is equal to the sum of the heat received from all adjacent nodes. Divide both sides of the formula by the time interval Δt to obtain the first equation. Based on the division of labeled samples and unlabeled samples, the adjacency matrix W is divided into four calculation modules when the label diffusion calculation is performed. Based on the division of labeled samples and unlabeled samples, the adjacency matrix is divided into four calculation modules when the label diffusion calculation is performed. The Laplace matrix of the unlabeled nodes in the unlabeled data set is substituted into the first equation and solved to obtain the pseudo label.
[0091] Furthermore, the specific steps of obtaining pseudo labels by the heat diffusion label propagation algorithm are as follows:
[0092] ① Use the similarity metric between samples to calculate the training data set L trn The similarity between the labeled samples in the normalized unlabeled dataset and the unlabeled samples in the normalized unlabeled dataset; the training dataset L trn , normalize unlabeled dataset, construct similarity as graph data in, is the set of nodes in the graph, each node represents a sample point in the data set, E is the set of edges connecting two nodes, and the edges represent similarity; any two samples x i 、x j The similarity between them is first calculated by the distance similarity, and then the weight ω is calculated by the radial basis function (RBF) ij To measure:
[0093]
[0094] Among them, d is the distance metric calculated by the similarity index, σ is the bandwidth parameter, which is 1 / p, and p is the number of input auxiliary variables, that is, the number of features of the input variables. When x i =x j When ij =1, when x i -x j When it approaches ∞, ω ij = 0; the constructed graph is the k-nearest neighbor graph, that is, i The weights of the most recent k samples are retained, and the rest of the weights are reset to 0, so we can get a (N×N) weight matrix as the adjacency matrix W representing the edge E between nodes; i, j = 1, 2, ... N, where N represents the training data set Ltrn The sum of the number of labeled samples in the normalized unlabeled dataset and the number of unlabeled samples in the normalized unlabeled dataset;
[0095] ②The heat with initial conditions is defined by the following second-order differential equation:
[0096]
[0097] Among them, y(x i ,t) represents the node x in the graph i The heat at time t, △y(x i ,t) represents the function y(x i ,t), the solution of the heat diffusion equation on the graph is defined as:
[0098] y(t)=e -αtH y(0) (16)
[0099] Among them, y(t) represents the node x at time t. i The heat, y(0) represents the initial heat distribution given at time 0, H represents the Laplace matrix, α represents the diffusion coefficient, and e represents the exponent;
[0100] ③At time t, node x i In the unit time interval Δt, from the adjacent x j Receive a certain amount of heat M(x i ,x j ,t,Δt), heat M(x i ,x j ,t,Δt) and Δt, thermal difference are proportional to each other, so the node x i The heat difference from time t to time (t+Δt) is equal to the sum of the heat received from all adjacent nodes, expressed as:
[0101]
[0102] in, Represents node x i The heat at time (t+Δt), Represents node x i The heat at time t, Represents node x i With x j The weight matrix of
[0103] Divide both sides of formula (17) by Δt. When Δt→0, then:
[0104]
[0105] in, Represents node x i The heat at the present moment;
[0106] Based on the division of labeled samples and unlabeled samples, the adjacency matrix is divided into four calculation modules during label diffusion calculation:
[0107]
[0108] get in, represents the adjacency matrix between training data sets, represents the adjacency matrix between the training dataset and the normalized unlabeled dataset, represents the adjacency matrix between the normalized unlabeled dataset and the training dataset, Represents the adjacency matrix between normalized unlabeled datasets; Represents the label of the training dataset;
[0109] Combine Formula 19) with the Laplacian matrix of the unlabeled nodes in the unlabeled dataset Substituting into formula (18), we get the following matrix form:
[0110]
[0111] Among them, D UU =diag(d i ) represents the degree matrix of the node; d i =∑ j ω ij Denotes the weight ω ij sum;
[0112] Solve a linear differential equation of the form dy / dx+Py=Q, where the label values of the labeled nodes are known from the training data set Pseudo labels y for unlabeled nodes in unlabeled dataset U Given by:
[0113]
[0114] Where C is a constant;
[0115] ④Set the initial condition y U | t=0 =y U (0), note that when time t→∞, is a harmonic function, so the constant C is defined according to this harmonic function as:
[0116]
[0117] Optionally, the difference in the similarity index is determined by a selected distance similarity metric, wherein the selected distance similarity metric includes Bray-Curtis dissimilarity, Campella distance, Chebyshev distance, Manhattan distance, correlation coefficient distance, cosine similarity distance, Euclidean distance, squared Euclidean distance, Hamming distance, and Dice coefficient.
[0118] Specifically, any two samples x i ,x j The different distance similarity metrics between are measured by calculating the response d as follows:
[0119] ① Bray-Curtis distance: It is a measure used in ecology to measure the differences in species composition between different sites. It is used in machine learning to measure the differences in feature composition between different samples. The calculation formula is as follows:
[0120]
[0121] ②Canberra distance: used to compare the distance between two vector spaces. The calculation formula is as follows:
[0122]
[0123] ③Chebyshev distance: It is a metric in vector space. The distance between two vectors is defined as the maximum absolute value of their characteristic differences. The calculation formula is as follows:
[0124] d=max ij |x i -x j | (25)
[0125] ④ Manhattan distance (Manhattan / cityblock distance): It is a geometric term used in geometric metric space to indicate the sum of the absolute values of the characteristic differences of two vectors in the standard vector space. The calculation formula is as follows:
[0126]
[0127] ⑤ Correlation distance: The correlation distance is the difference between 1 and the correlation coefficient. The correlation coefficient used in the present invention is the Pearson correlation coefficient, and the calculation formula is:
[0128]
[0129] ⑥ Cosine similarity distance: Cosine similarity measures the similarity between two vectors by measuring the cosine value of the angle between them. The calculation formula is:
[0130]
[0131] ⑦ Euclidean distance: Euclidean distance or Euclidean metric is the "ordinary" (i.e. straight-line) distance between two vectors in Euclidean space, and its calculation formula is:
[0132]
[0133] ⑧Square Euclidean distance: also known as weighted Euclidean distance, its calculation formula is:
[0134]
[0135] ⑨Hamming Distance: A similarity index based on information theory. As a concept, it represents the similarity of features between two vectors.
[0136] ⑩Dice coefficient: It is mainly used to calculate the similarity of two vectors. The calculation formula is:
[0137]
[0138] The distance similarity metric used is as described above but is not limited to the above selected indicators.
[0139] Optionally, the method of selecting a pseudo data set with high confidence as an expansion sample according to the performance improvement rate of the obtained diverse pseudo-label data set includes: using the training data set L trn The GPR model is trained to obtain a trained GPR model; the trained GPR model is used to test the test data set L test Make predictions to obtain the initial performance value; add the pseudo-label dataset in S5 to the training dataset L trn Then the GPR model is retrained and the test data set L is used test Make a prediction and get a new performance value; compare the new performance value with the initial performance value: if the performance improvement rate is ≥α, keep it; otherwise, discard it; where α>0.
[0140] Specifically, high-confidence pseudo-labeled samples are selected based on the model performance improvement rate, as follows:
[0141] ①The performance improvement rate (PIR) is calculated using the following formula:
[0142]
[0143] Among them, RMSE 0 Represents the test model GPR 0 On the test set L test Initial RMSE on k Indicates the test model GPR after adding pseudo-labeled samples 0 RMSE on the test set;
[0144] ② Set a cutoff threshold α>0. If the test model GPR 0 Performance Improvement Rate PIR k ≥α, the pseudo-labeled sample is retained as an augmented sample, otherwise the pseudo-labeled sample is discarded.
[0145] Optionally, the ensemble learning method is to integrate the GPR model trained in S7 using a weighted method based on linear regression stacking ensemble, and the specific steps are as follows:
[0146] 1) Use the GPR model retained in S7 to validate the dataset L val Make a prediction and get a set of predicted values
[0147] 2) Output the prediction As input, the validation dataset L val The real output y val ={y val,1 ,y val,2 ,…,y val,n} as output, and use it to train the linear regression model. The expression is:
[0148]
[0149] Among them, {ω 0 ,ω 1 ,ω 2 ,…,ω Z} are the linear regression model coefficients;
[0150] 3) For a new online measurement data sample x collected from S8 new , use the reserved Z GPR models to predict it and get Z prediction outputs Test sample x new The final predicted output y is:
[0151]
[0152] The present invention does not rely on model prediction, but only gives pseudo-labels to unlabeled samples through the information between the data themselves, and selects appropriate pseudo-labeled samples to achieve improved prediction performance.
[0153] Embodiment 2: A semi-supervised integrated industrial process soft-sensing modeling system based on heat diffusion label propagation, comprising:
[0154] A construction module is used to collect industrial process data, determine p auxiliary variables x related to the prediction variable y of the industrial process data, the auxiliary variable x is the input variable, and construct a database for soft measurement modeling; wherein the database for soft measurement modeling includes a labeled data set L and an unlabeled data set U, the labeled data set is a data set containing both the prediction variable and the input variable, L = {(x 1 ,y 1 ),(x 2 ,y 2 ),…,(x l ,y l )}; the unlabeled dataset is a dataset that only contains input variables, U = {x 1 ,x 2 ,…,x u}, l represents the total number of samples in the labeled dataset, and u represents the total number of samples in the unlabeled dataset;
[0155] The partitioning module is used to normalize the labeled data set L and the unlabeled data set U to obtain a normalized labeled data set and a normalized unlabeled data set; and divide the normalized labeled data set into a training data set L trn , test data set L test and validation dataset L val ;
[0156] A first selection module is used to select the GPR model as a base model;
[0157] The first acquisition module is used to obtain the training data set L trn The heat diffusion label propagation algorithm is used on the normalized unlabeled data set to obtain the predicted variable value of the normalized unlabeled data set as the pseudo label; the pseudo label and the normalized unlabeled data set are combined to form the pseudo label data set;
[0158] The second acquisition module is used to construct corresponding adjacency matrices based on different similarity indicators, and on this basis, establish different heat diffusion label propagation algorithms to obtain diverse pseudo-label data sets through diffusion;
[0159] The second selection module is used to select a pseudo data set with high confidence as an expansion sample based on the performance improvement rate of the obtained diverse pseudo-label data set;
[0160] A third acquisition module is used to add the pseudo-label data sets used as the expansion samples in the second selection module to the training data sets to expand the training data sets to obtain diverse expanded labeled training data sets, and train the GPR models according to the obtained expanded labeled training data sets to obtain Z semi-supervised soft measurement models;
[0161] The collection module is used to collect new online measurement data of industrial processes and perform normalization processing;
[0162] The prediction module is used to directly input the normalized measurement data into the Z semi-supervised soft measurement models obtained in the third acquisition module to obtain Z prediction outputs, integrate the Z prediction outputs using an ensemble learning method, and denormalize the integrated results to obtain the final prediction results.
[0163] It should be noted that the above-mentioned modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above-mentioned modules can be located in the same processor; and / or the above-mentioned modules are located in different processors in any combination. The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0164] Example 3: Figure 1-2 As shown, a method for predicting chlortetracycline matrix concentration is performed using any of the above-mentioned semi-supervised integrated industrial process soft sensor modeling methods based on thermal diffusion label propagation.
[0165] The performance of the method proposed in the present invention is illustrated in conjunction with an industrial example of a specific chlortetracycline fermentation process. Chlortetracycline (CTC) is a broad-spectrum antibiotic widely used in pharmaceuticals, agriculture and animal husbandry. In particular, CTC has been used as a feed additive to promote animal growth and development in the past few decades. One of the research objects of this study is the industrial CTC fermentation process of Charoen Pokphand Group Co., Ltd. The golden yellow Streptomyces of the industrial CTC process is cultured in an airlift stirred fermenter with a volume of 120m^3. During the intermittent feeding CTC fermentation process, the substrate concentration needs to be measured in real time in order to effectively control the feeding. However, there is still a lack of an effective method to measure the substrate concentration. In order to improve the substrate concentration control of the chlortetracycline fermentation process, it is necessary to perform soft measurement modeling of the chlortetracycline substrate concentration.
[0166] The following are auxiliary variables selected for the key target variable chlortetracycline matrix concentration, as shown in Table 1.
[0167] Table 1 Auxiliary variables of chlortetracycline fermentation process
[0168] Input variables Variable Description (Unit) <![CDATA[x 1 ]]> Fermentation time (min) <![CDATA[x 2 ]]> Feed rate (L / h) <![CDATA[x 3 ]]> Ammonia consumption (L) <![CDATA[x 4 ]]> Substrate consumption (L) <![CDATA[x 5 ]]> <![CDATA[Air consumption (m 3 ) <!-- 11 -->]]> <![CDATA[x 6 ]]> Temperature(℃) <![CDATA[x 7 ]]> <![CDATA[Fermentation volume (m 3 )]]> <![CDATA[x 8 ]]> DO concentration (%) <![CDATA[x 9 ]]> <![CDATA[Air flow rate (m 3 / h)]]>
[0169] For this process, 4 batches of process data were collected for training, of which 121 labeled data were used as training data, and the rest were data with missing target variables. 803 of them were extracted at equal time intervals as unlabeled data, and 202 labeled samples were extracted from the remaining 7 batches as test data, and 203 labeled samples were extracted as verification data. i The value of k in the nearest k samples is 50, and the nearest neighbor graph is constructed for all labeled data and unlabeled data, and thermal diffusion label propagation is performed on the unlabeled data.
[0170] In this example, the root mean square error (RMSE) is used as the performance evaluation index of the method proposed in the present invention. The smaller the RMSE value, the smaller the prediction error of the proposed method, that is, the better the prediction performance of the soft sensor modeling method. The calculation formula is as follows:
[0171]
[0172] Among them, N represents the number of validation samples, y n represents the true label of the validation sample, and Represents the predicted output of the validation sample.
[0173]
[0174] Among them, N represents the number of validation samples, y n represents the true label of the validation sample, and represents the predicted output of the validation sample, Represents the mean of the true label values of the validation samples.
[0175] In order to verify the effectiveness of the method proposed in the present invention, a comparative experiment was conducted between the traditional Gaussian process regression model and the method proposed in the present invention (HLP_GPR). The experimental results are as follows:
[0176] Table 2 Performance of traditional GPR and HLP_GPR in predicting substrate concentration in chlortetracycline fermentation process
[0177] method RMSE <![CDATA[R 2 ]]> GPR 0.6682 0.7358 HLP_GPR 0.5448 0.8244
[0178] Depend on Figure 2It can be seen that after adding the pseudo-label data set samples obtained by the method of the present invention, the GPR has a better fitting effect on the test samples. Combined with Table 2, it can be seen that after introducing thermal diffusion label propagation to obtain pseudo-labels to expand the training sample set, combined with the idea of ensemble learning, the prediction performance of GPR has been improved, which shows that the unlabeled data information has been effectively utilized, and also shows the effectiveness of the HLP_GPR soft measurement modeling method proposed by the present invention in predicting the substrate concentration in the chlortetracycline fermentation process. From this case, it can be seen that the present invention has a good effect on utilizing unlabeled data information in process industry.
[0179] It should be understood that the core invention of the present invention is to propose a method for the problem of low prediction accuracy of traditional soft sensor models caused by the widespread existence of "lack of labeled data and abundant unlabeled data" in the process industry, rather than being limited to the protection of a certain case. The case is only an example used to verify the effectiveness of the method and does not constitute a limitation on the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the scope of protection of the present invention. In addition, the claims attached to the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the attached claims, or the equivalent forms of such scope and boundaries.
[0180] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation, Features: include: S1. Collect industrial process data, determine p auxiliary variables x related to the predicted variable y of the industrial process data, the auxiliary variable x is the input variable, and construct a database for soft sensor modeling; wherein the database for soft sensor modeling includes a labeled data set L and an unlabeled data set U, the labeled data set is a data set that contains both the predicted variable and the input variable, L = {(x 1 ,y 1 ), (x 2 ,y 2 ),...,(x l ,y l )}; the unlabeled dataset is a dataset that only contains input variables, U = {x 1 , x 2 , ..., x u }, l represents the total number of samples in the labeled data set, and u represents the total number of samples in the unlabeled data set; the auxiliary variable is selected based on the predicted variable chlortetracycline substrate concentration; S2. Normalize the labeled dataset L and the unlabeled dataset U to obtain a normalized labeled dataset and a normalized unlabeled dataset; and divide the normalized labeled dataset into a training dataset L trn , test data set L test and validation dataset L val ; S3, select the GPR model as the base model; S4. Based on the training data set L trn The heat diffusion label propagation algorithm is used on the normalized unlabeled data set to obtain the predicted variable value of the normalized unlabeled data set as the pseudo label; the pseudo label and the normalized unlabeled data set are combined to form the pseudo label data set; S5. Construct corresponding adjacency matrices based on different similarity indicators, and establish different heat diffusion label propagation algorithms on this basis to obtain diverse pseudo-label data sets through diffusion; S6. Select pseudo datasets with high confidence as expansion samples based on the performance improvement rate of the obtained diverse pseudo-label datasets; S7, adding the pseudo-label data sets used as augmented samples in S6 to the training data sets to expand the training data sets to obtain diverse augmented labeled training data sets, and training the GPR models according to the obtained augmented labeled training data sets to obtain Z semi-supervised soft measurement models; S8. Collect new online measurement data of industrial processes and perform normalization processing; S9, directly input the normalized measurement data into the Z semi-supervised soft measurement models obtained in S7 to obtain Z prediction outputs, integrate the Z prediction outputs using an ensemble learning method, and denormalize the integration result to obtain the final prediction result; The difference of the similarity index is determined by the selected distance similarity metric standard, wherein the selected distance similarity metric standard includes Bray-Curtis dissimilarity, Canberra distance, Chebyshev distance, Manhattan distance, correlation coefficient distance, cosine similarity distance, Euclidean distance, squared Euclidean distance, Hamming distance, and Dice coefficient. The method selects a pseudo data set with high confidence as an expansion sample according to the performance improvement rate of the obtained diverse pseudo-label data set, including: using the training data set L trn The GPR model is trained to obtain a trained GPR model; the trained GPR model is used to test the test data set L test Make predictions to obtain the initial performance value; add the pseudo-label dataset in S5 to the training dataset L trn Then the GPR model is retrained and the test data set L is used test Make a prediction and get a new performance value; compare the new performance value with the initial performance value: if the performance improvement rate ≥ α, retain it as an expanded sample; otherwise, discard it; where α>0.
2. The semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation according to claim 1, Features: The thermal diffusion label propagation algorithm obtains pseudo labels, including: ① Use the similarity index between samples to calculate the training data set L trn The similarity between the labeled samples in the normalized unlabeled dataset and the unlabeled samples in the normalized unlabeled dataset; the training dataset L trn , normalize unlabeled dataset, construct similarity as graph data in, is the set of nodes in the graph, each node represents a sample point in the data set, E is the set of edges connecting two nodes, and the edges represent similarity; any two samples x i 、x j The similarity between them is first calculated by the distance similarity, and then the weight ω calculated by the radial basis function ij To measure; the constructed graph is the k nearest neighbor graph, that is, i The weights of the most recent k samples are retained, and the rest of the weights are reset to 0, so we can get a (N×N) weight matrix as the adjacency matrix w representing the node-edge E; i, j = 1, 2, ... N, N represents the training data set L trn The sum of the number of labeled samples in the normalized unlabeled dataset and the number of unlabeled samples in the normalized unlabeled dataset; ②The heat with initial conditions is defined by a second-order differential equation; ③At time t, node x i In the unit time interval Δt, from the adjacent x j Receive a certain amount of heat M(xi,x j , t, Δt), get the node x i The heat difference from time t to time (t+Δt) is equal to the sum of the heat received from all adjacent nodes. Divide both sides of the formula by the time interval Δt to obtain the first equation. Based on the division of labeled samples and unlabeled samples, the adjacency matrix w is divided into four calculation modules when the label diffusion calculation is performed. Based on the division of labeled samples and unlabeled samples, the adjacency matrix is divided into four calculation modules when the label diffusion calculation is performed. The Laplace matrix of the unlabeled nodes in the unlabeled data set is substituted into the first equation and solved to obtain the pseudo label.
3. The semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation according to claim 2, Features: The weight ω ij : Among them, d is the distance similarity metric calculated by the similarity index, σ is the bandwidth parameter, which is 1 / p, and p is the number of auxiliary variables input. i =x j When ij =1, when x i -x j When it approaches ∞, ω ij =0.
4. The semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation according to claim 2, Features: The heat with initial conditions is defined by the following second order differential equation: Among them, y(x i , t) represents the node x in the graph i The heat at time t, Δy(x i , t) represents the function y(x i , t), the solution of the heat diffusion equation on the graph is defined as: y(t)=e -αtH and(0) (3) Among them, y(t) represents the node x at time t. i , y(0) represents the initial heat distribution given at time 0, H represents the Laplace matrix, α represents the diffusion coefficient, and e represents the natural base.
5. The semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation according to claim 2, Features: At time t, node x i In the unit time interval Δt, from the adjacent x j Receive a certain amount of heat M(x i , x j , t, Δt), heat M(x i , x j , t, Δt) and Δt, thermal difference are proportional to each other, so the node x i The heat difference from time t to time (t+Δt) is equal to the sum of the heat received from all adjacent nodes, expressed as: in, Represents node x i The heat at the time (t+Δt), Represents node x i The heat at time t, Represents node x i With x j The weight matrix of Divide both sides of formula (4) by Δt. When Δt→0, then: in, Represents node x i The heat at the present moment; Based on the division of labeled samples and unlabeled samples, the adjacency matrix is divided into four calculation modules during label diffusion calculation: get in, represents the adjacency matrix between training data sets, represents the adjacency matrix between the training dataset and the normalized unlabeled dataset, represents the adjacency matrix between the normalized unlabeled dataset and the training dataset, Represents the adjacency matrix between normalized unlabeled datasets; Represents the label of the training dataset; Combine formula (6) with the Laplacian matrix of the unlabeled nodes in the unlabeled dataset Substituting into formula (5), we get the following matrix form: Among them, D UU =diag(d i ) represents the degree matrix of the node; d i =∑ j ω ij Denotes the weight ω ij sum; Solve linear differential equations, where the label values of labeled nodes are known from the training dataset The pseudo label yU of the unlabeled node in the unlabeled dataset is given by: Set the initial condition y U|t=0 =y U (0), note that when time t→∞, is a harmonic function, so the constant C is defined according to this harmonic function as: Among them, C is a constant.
6. The semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation according to claim 1, Features: The ensemble learning method is to integrate the GPR model trained in S7 using a weighted method based on linear regression stacking ensemble. The specific steps are as follows: 1) Use the GPR model retained in S7 to validate the dataset L val Make a prediction and get a set of predicted values 2) Output the prediction As input, the validation dataset L val The real output y val ={y val,1 ,y val,2 , ..., y val,n } as output, and use it to train the linear regression model. The expression is: 3) For a new online measurement data sample x collected from S8 new , use the reserved Z GPR models to predict it and get Z prediction outputs Test sample x new The final predicted output y is: Among them, {ω 0 ,ω 1 ,ω 2 , ..., ω Z } are the linear regression model coefficients.
7. A semi-supervised integrated industrial process soft sensor modeling system based on heat diffusion label propagation according to the method of claim 1, Features: include: A construction module is used to collect industrial process data, determine p auxiliary variables x related to the prediction variable y of the industrial process data, the auxiliary variable x is the input variable, and construct a database for soft measurement modeling; wherein the database for soft measurement modeling includes a labeled data set L and an unlabeled data set U, the labeled data set is a data set containing both the prediction variable and the input variable, L = {(x 1 ,y 1 ), (x 2 ,y 2 ),...,(x l ,y l )}; the unlabeled dataset is a dataset that only contains input variables, U = {x 1 , x 2 , ..., x u }, l represents the total number of samples in the labeled dataset, and u represents the total number of samples in the unlabeled dataset; The partitioning module is used to normalize the labeled data set L and the unlabeled data set U to obtain a normalized labeled data set and a normalized unlabeled data set; and divide the normalized labeled data set into a training data set L trn , test data set L test and validation dataset L val ; A first selection module is used to select the GPR model as a base model; The first acquisition module is used to obtain the training data set L trn The heat diffusion label propagation algorithm is used on the normalized unlabeled data set to obtain the predicted variable value of the normalized unlabeled data set as the pseudo label; the pseudo label and the normalized unlabeled data set are combined to form the pseudo label data set; The second acquisition module is used to construct corresponding adjacency matrices based on different similarity indicators, and on this basis, establish different heat diffusion label propagation algorithms to obtain diverse pseudo-label data sets through diffusion; The second selection module is used to select a pseudo data set with high confidence as an expansion sample based on the performance improvement rate of the obtained diverse pseudo-label data set; A third acquisition module is used to add the pseudo-label data sets used as the expansion samples in the second selection module to the training data sets to expand the training data sets to obtain diverse expanded labeled training data sets, and train the GPR models according to the obtained expanded labeled training data sets to obtain Z semi-supervised soft measurement models; The collection module is used to collect new online measurement data of industrial processes and perform normalization processing; The prediction module is used to directly input the normalized measurement data into the Z semi-supervised soft measurement models obtained in the third acquisition module to obtain Z prediction outputs, integrate the Z prediction outputs using an ensemble learning method, and denormalize the integrated results to obtain the final prediction results.
8. A method for predicting the concentration of chlortetracycline matrix, Features: The method is carried out by using the semi-supervised integrated industrial process soft sensor modeling method based on heat diffusion label propagation as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Article recommendation method based on semi-supervised factorization machine
CN112256966A
