Advanced ensemble learning strategy based semi-supervised soft sensing method
Granted 1 Nov 2022 · 1 office action
Assignee: Jiangnan University
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Weili Xiong, Xiaochen Sheng, Bingbin Gu, Xiaoqing Che +1 · Examiner: Shawkat M Ali · AU 2633 · TC 2600
Life of the application
9 dated eventsAbstract
The present disclosure provides a novel advanced ensemble learning strategy for soft sensor development with semi-supervised model. The main target of the soft sensor is to improve the prediction performance with a limited number of labeled data samples, under the ensemble learning framework. Firstly, in order to improve the prediction accuracy of sub-models for ensemble modeling, a novel sample selection mechanism is established to select the most significantly estimated data samples. Secondly, the Bagging method is employed to both of the labeled and selected data-set, and the two different kinds of datasets are matched based on the Dissimilarity (DISSIM) algorithm. As a result, the proposed method guarantees the diversity and accuracy of the sub-models which are two significant issues of the ensemble learning. In this work, the soft sensor is constructed upon the Gaussian Process Regression (GPR) model.
Description
12 parts›TECHNICAL FIELD
The present disclosure relates to industrial modeling and soft sensing. More particularly, the present disclosure relates to the advanced ensemble learning strategy based semi-supervised soft sensing method.
›BACKGROUND
Nowadays, with the growing demand of the high-quality chemical/biological products, a soft sensor has become more and more important to obtain reliable and real-time predictions of the key quality variables in industrial processes. However, it is hard to install hardware sensors to measure those key quality variables, because of the badly circumstance in the industrial environment.
In order to solve the issue that it is hard to measure key quality variables via hardware sensors, soft sensing technology has been paid more and more attentions. With the wide installation of the distributed control system (DCS) which is capable to record a large amount of process data in industrial processes, a variety of data-based soft sensors have been developed. To date, the widely used soft sensing methods include: principal component regression (PCR), partial least square (PLS), artificial neural network (ANN), support vector machine (SVM), Gaussian process regression (GPR), etc.
Nevertheless, the data samples with the output variables are difficult to be acquired, since analyzing quality variables is time-consuming and involves human resource and expensive instruments in the laboratory. As a result, we may need to corporate the soft sensor modeling problem under a very limited number of data samples for both process and quality variables, and a large amount of data samples for only process variables.
›SUMMARY
In order to deal with the unbalanced numbers of the training data, this invention is motivated to build an ensemble learning based semi-supervised regression model which incorporates both labeled and unlabeled data samples.
Firstly, in order to improve the diversity performance, not only the Bagging algorithm is implemented upon both of the labeled and estimated dataset to generate sub-models, but also the way to match the labeled sub-datasets and estimated sub-datasets is designed to improve the diversity performance.
The Dissimilarity (DISSIM) algorithm is employed to measure the dissimilarity index of each labeled sub-dataset and estimated sub-dataset pair, and the most dissimilar one can be matched regularly.
Another important issue is how to guarantee the accuracy of the sub-models, which means that significant estimated data samples should be selected carefully into the next ensemble learning.
Therefore, we define an evaluation index to evaluate the important degree of each estimated data samples based on the influence that each estimated data sample worked on the labeled dataset. In this way, the estimated data samples can be selected according to the evaluation index, which means that the significant estimated data samples with additional information will be selected into the selected dataset repairing for the next ensemble step.
In summary, the missing quality variables are estimated through the K-nearest neighborhood method. Then, the important estimated samples are picked out, while the useless samples are discarded, according to the defined evaluation index. The selected samples and labeled samples are divided into several sub data sets by the Bagging algorithm. These two kinds of the sub data sets are combined based on the DISSIM algorithm. Finally, construct sub models for each combined sub data set to make a prediction for the query sample.
This invention is implemented through the following steps:
Step 1: Collect training data set which can be divided as two counterparts: 1) the labeled training data set D L ={X L ∈R n l ×m , y L ∈R n l ×1 }, 2) the unlabeled training data set D U ={X U ∈R n u ×m ,y U ∈R n u ×1 };
Then use the K-nearest neighborhood method to estimate the missing quality variable in the unlabeled training data set, and denote the estimated and selected data set as D E ={X U ∈R n l ×m , y E ∈R n l ×1 } and D S ={X S ∈R n s ×m ,y S ∈R n s ×1 }, respectively.
where the superscript L, U, E and S, present the labeled, unlabeled, estimated and selected data samples, respectively; and {X} and {y} are the input (process) and output (quality) variables, respectively; n l , n u , and n s are the number of the labeled, unlabeled, and selected data samples, respectively; while m is the number of the process variables;
Step 2: Form the selected dataset D S ={X S ∈R n s ×m , y S ∈R n s ×1 } according to the labeled training data set and the unlabeled training data set;
where the superscript S means the selected data samples, and n s is the number of the selected data samples;
Step 3: Employ Bagging algorithm to D L and D S respectively, then A labeled sub-datasets {D i L } i=1 A and A selected sub-datasets {D j S } j=1 A have been obtained; A is the number of the sub datasets;
›Step 4: Match all the sub-datasets, then A matched sub-datasets have been obtained;
Step 5: When a query sample comes, predict its quality variable with the matched sub-datasets via the Gaussian Process Regression (GPR) model;
Optionally, between the step 1 and step 2, said method comprises the step:
Step 1.1: Use Eqs. (1) to (3) to calculate the estimated values of the missing output variables to form the estimated data set; said Eqs. (1) to (3) are termed as self-training algorithm;
where ∥·∥ denotes the Euclidean distance, and γ is the parameter for the computing the similarity, and RS(i,·) k represents the k-th element in the rearranged similarity vector RS(i,·), S(i,·) is the similarity vector whose elements present the similarity between the x i and all the labeled samples, RS(i,·) is a vector that rearranged in descend for the similarity vector S(i,·) and y RS(i,·) k L is the quality variable which has the similarity RS(i,·) k with the unlabeled data sample x i ;
Optionally, said step 2 comprises the steps:
Step 2.1: Construct temporary datasets which can be denoted as D temp (i)={[x L ;x i U ],[y L ;ŷ i E ]}. Therefore, we have n u temporary datasets and they are needed for calculating the evaluation index Q; The definition of the evaluation index Q is given as follow:
Q ( i )= Q ( x i U ,ŷ i E )=Σ x j ∈X L ( {tilde over (y)} ji L −y j L ) 2 (4)
where y j L is the corresponding quality variable of the j-th data sample x j in the labeled dataset X L ∈R n l ×m , and {tilde over (y)} ji L the prediction of x j in the labeled dataset X L ∈R n l ×m specified by the GPR model with the i-th temporary dataset D temp (i)={[x L ;x i U ],[y L ;ŷ i E ]};
›Step 2.2: Re-arranged the index Q in a descend order;
RQ =descend( Q )= RQ 1 > . . . >RQ i > . . . >RQ n u (5)
where RQ i represents the i-th largest value of the element in Q;
Step 2.3: Select the first n s data samples with the largest Q values to form the selected dataset D S ={X S ∈R n s ×m ,y S ∈R n s ×1 }.
Optionally, said step 3 comprises the following step:
Step 3.1: Calculate the dissimilarity index matrix d whose ij-th element d(i,j) represents the dissimilarity between D i E and D j S ;
In Bagging algorithm, the m samples of the l-th sub-dataset are all randomly drawn from the original dataset D, which can be represented as D l ={(x j ,y j )} j=1 m .
Optionally, said step 4 comprises the following steps:
Step 4.1: Search the largest value d(i max ) of the matrix d and match the i-th max labeled sub-dataset and the j-th max selected sub-dataset;
Step 4.2: Update dissimilarity index matrix d by removing the row d(i max ( )) and the column d(·,j max ( )) from the original matrix;
Step 4.3: where matrix d is the dissimilarity index matrix whose ij-th represents the dissimilarity between the i-th labeled sub-dataset and the j-th selected sub-dataset, based on the dissimilarity (DISSIM) algorithm.
Optionally, the procedure of the DISSIM algorithm of said step 4.3 is given as follows:
Consider the following two datasets, X 1 ∈R n 1 ×m and X 2 ∈R n 2 ×m , where n i is the number of samples in dataset X i and m is the number of variables. The covariance matrices are given by
The covariance matrix of the mixture of two data sets is given by
Then R can be diagonalized by an orthogonal matrix P 0 using eigenvalue decomposition
P 0 T RP 0 =Λ (8)
where Λ is a diagonal matrix whose diagonal elements are eigenvalues of R.
Then the original data X i are transformed into Y i .
where P is transformation matrix defined as
The covariance matrices of the transformed data are given as
Accordingly, the index D is defined for evaluating the dissimilarity of data sets
where λ j denotes the eigenvalues of the covariance matrix S i ;
In this work, only on those eigenvalues whose values are far away from 0.5 are focused on, and the dissimilarity index {tilde over (D)} is re-defined as follow
where {tilde over (λ)} j is the j-th element of the set {tilde over (λ)} j ={descend(|λ j −0.5|)}, and {tilde over (m)} is the number of selected eigenvalues; Unlike the conventional index D measures the whole dissimilar information of the datasets, the new index {tilde over (D)} relies on the most dissimilar information between two datasets, thus {tilde over (D)} is more sensitive to different datasets.
Optionally, said step 5 comprises the steps:
Step 5.1: Make the final prediction of the quality variable by combining the sub prediction results, whose calculating method is given as follow:
Optionally, the Gaussian Process Regression model of said step 5 is described as follows:
Consider a training dataset X∈R n×m and y∈R n×1 , where {x i ∈R m } i=1 n is the input data with m dimensions, and {y i ∈R} i=1 n is the output data; The aim of a regression model is to find a functional relationship y=ƒ(x|θ)+ε between input and output; Particularly, the Gaussian process regression model assumes that the regression function with zero-mean Gaussian prior distribution; The description of the function is given as follow
y ={ƒ( x 1 ),ƒ( x 2 ), . . . ,ƒ( x )}˜ GP (0, K ) (14)
where K is the covariance matrix whose ij-th element is k i j =k(x i ,x j ), and in this paper, the kernel function k(·) is the commonly used squared-exponential covariance function, which is defined as follow
where δ ij =1 only when i=j, otherwise δ ij =0; l is length-scale; and σ f 2 and σ n 2 are terms as signal and noise variance, respectively; An appropriate hyper-parameter set Θ=[σ n 2 ,σ f 2 ,l] is vital for a GPR model to make an accurate prediction about the output variable; To determine the optimal value of the hyper-parameter set, the following likelihood function should be maximized in the training process
Conjugate gradient method is used to obtain the closed solution for the above maximizing problem; An alternative way to determine the optimal value is to employ the sampling methods such as Markov chain Monte Carlo (MCMC) method, which draws samples to approximate the poster distribution of the hyper-parameters;
Once we get the optimal hyper-parameter set, the GPR model is available to make a prediction about the distribution of y new corresponding for x new ; When a query data sample x new comes, according to the property of the multivariate Gaussian distribution, the posterior distribution of the output, namely (y new |X,y,x new )˜N(μ(y new ),σ 2 (y new )) can be identified, where μ(y new ) and σ 2 (y new ) is the mean and variance of the poster distribution, respectively;
They can be calculated as follows
μ( y new )= k T ( x new ,X ) K −1 y (17)
σ 2 ( y new )= k ( x new ,x new )− k T ( x new ,X ) K −1 k ( x new ,X ) (18)
where k(x new ,X)=[k(x new ,x 1 ),k(x new ,x 2 ), . . . , k(x new ,x n )] T ; Finally, take the expectation μ(y new ) of the posterior distribution as the prediction result about the output variable of the query data sample x new .
Optionally, the above advanced ensemble learning strategy based semi-supervised soft sensing method is characterized by improving the prediction performance with a limited number of labeled data samples, under the ensemble learning framework, and the improved prediction performance can be obtained.
›BRIEF DESCRIPTION OF FIGURES
FIG. 1 shows the modeling steps of the advanced ensemble learning strategy based semi-supervised soft sensing method in example 1;
FIG. 2 shows the block diagram of the debutanizer column process;
FIG. 3 shows the modeling steps of the advanced ensemble learning strategy based semi-supervised soft sensing method;
FIG. 4 shows the prediction errors under different modeling strategies;
FIG. 5 shows the soft sensor based control strategy of the debutanizer column process.
›Example 1
Based on FIG. 1 , the detailed illustration of the advanced ensemble learning strategy based semi-supervised soft sensing method is given.
Step 1: Collect training data set which can be divided as two counterparts: 1) the labeled training data set D L ={X L ∈R n l ×m ,y L ∈R n l ×1 }, 2) the unlabeled training data set D U ={X U ∈R n u ×m ,y U ∈R n u ×1 };
Then use self-training method to estimate the missing quality variable in the unlabeled training data set, and denote the estimated and selected data set as D E ={X U ∈R n l ×m ,y E ∈R n l ×1 } and D S ={X S ∈R n s ×m ,y S ∈R n s ×1 }, respectively.
where the superscript L, U, E and S, present the labeled, unlabeled, estimated and selected data samples, respectively; and {X} and {y} are the input (process) and output (quality) variables, respectively; n l ,n u and n s are the number of the labeled, unlabeled, and selected data samples, respectively; while m is the number of the process variables;
Step 2: Form the selected dataset D S ={X S ∈R n s ×m ,y s ∈R n s ×1 } according to the labeled training data set and the unlabeled training data set;
where the superscript S means the selected data samples, and n s is the number of the selected data samples;
Step 3: Employ Bagging algorithm to D L and D S respectively, then A labeled sub-datasets {D i L } i=1 A and A selected sub-datasets {D j S } j=1 A have been obtained; A is the number of the sub datasets;
›Step 4: Match all the sub-datasets, then A matched sub-datasets have been obtained;
Step 5: When a query sample comes, predict its quality variable with the matched sub-datasets via the Gaussian Process Regression (GPR) model.
›Example 2
Based on FIG. 1 , the detailed illustration of the advanced ensemble learning strategy based semi-supervised soft sensing method is given.
The debutanizer column process is utilized, and the soft sensors are designed for the butane content. The block diagram of the debutanizer column process is demonstrated in FIG. 2 . In this process, the content of butane in the bottom of the column is the primary variable which should be predicted in real-time. Seven hardware sensors which are marked with grey circles in FIG. 2 , are installed to obtain secondary variables, the explanations of which are presented in Table 1.
›Step 1: Collect training data set which can be divided as two counterparts · 1 of 2
1) the labeled training data set D L ={X L ∈R n l ×m ,y L ∈R n l ×1 };
2) the unlabeled training data set D U ={X U ∈R n u ×m ,y U ∈R n u ×1 }.
Then use self-training method to estimate the missing quality variable in the unlabeled training data set, and denote the estimated and selected data set as D E ={X U ∈R n l ×m ,y E ∈R n l ×1 } and D S ={X S ∈R n s ×m ,y S ∈R n s ×1 }, respectively.
where the superscript L, U, E and S present the labeled, unlabeled, estimated and selected data samples, respectively; and {X} and {y} are the input (process) and output (quality) variables, respectively; n l and n u are the number of the labeled and unlabeled data samples, respectively; while m is the number of the process variables.
Then use Eqs. (1) to (3) to calculate the estimated values of the missing output variables to form the estimated data set, Eqs. (1) to (3) are termed as self-training algorithm.
where ∥·∥ denotes the Euclidean distance, and γ is the parameter for the computing the similarity, and RS(i,·) k represents the k-th element in the rearranged similarity vector RS(i,·), and y RS(i,·) k L is the quality variable which has the similarity RS(i,·) k with the unlabeled data sample x i .
Step 2: Then construct temporary datasets which can be denoted as D temp (i)={[x L ;x i U ],[y L ;ŷ i E ]}. Therefore, we have n u temporary datasets and they are needed for calculating the evaluation index Q. The definition of the evaluation index Q is given as follow
Q ( i )= Q ( x i U ,ŷ i E )=Σ x j ∈X L ( {tilde over (y)} j L −y j L ) 2 (4)
where y j L is the corresponding quality variable of the j-th data sample x j in the labeled dataset X L ∈R n l ×m , and {tilde over (y)} j L is the prediction of x j specified by the GPR model with the i-th temporary dataset D temp (i) {[x L ;x i U ],[y L ;ŷ i E ]}.
Re-arranged the index Q in a descend order
RQ =descend( Q )= RQ 1 > . . . >RQ i > . . . >RQ n u (5)
where RQ i represents the i-th largest value of the element in Q.
Select the first n s data samples with the largest Q values to form the selected dataset D S ={X S ∈R n s ×m ,y s ∈R n s ×1 }.
Step 3: Employ Bagging algorithm to D L and D S respectively, then A labeled sub-datasets {D i L } i=1 A and A selected sub-datasets {D j S } j=1 A have been obtained. Calculate the dissimilarity index matrix d whose ij-th element d(i,j) represents the dissimilarity between D i E and D j S .
In Bagging algorithm, the m samples of the l-th sub-dataset are all randomly drawn from the original dataset D, which can be represented as D l ={(x j ,y j )} j=1 m .
Step 4: Repeat this step until all the sub-datasets are matched. Search the largest value d(i max ) of the matrix d and match the i-th max labeled sub-dataset and the j-th max selected sub-dataset. Then update dissimilarity index matrix d by removing the row d(i max ( )) and the column d(·,j max ( )) from the original matrix.
where matrix d is the dissimilarity index matrix whose ij-th represents the dissimilarity between the i-th labeled sub-dataset and the j-th selected sub-dataset, based on the dissimilarity (DISSIM) algorithm.
The procedure of the DISSIM algorithm is given as follows:
Consider the following two datasets, X 1 ∈R n 1 ×m and X 2 ∈R n 2 ×m , where n i is the number of samples in dataset X i and m is the number of variables. The covariance matrices are given by
The covariance matrix of the mixture of two data sets is given by
Then R can be diagonalized by an orthogonal matrix P 0 using eigenvalue decomposition
P 0 T RP 0 =Λ (8)
where Λ is a diagonal matrix whose diagonal elements are eigenvalues of R.
Then the original data X i are transformed into Y i
where P is transformation matrix defined as
The covariance matrices of the transformed data are given as
Accordingly, the index D is defined for evaluating the dissimilarity of data sets
where λ j denotes the eigenvalues of the covariance matrix S i .
In this work, only on those eigenvalues whose value is far away from 0.5 is focused on, and the dissimilarity index {tilde over (D)} is re-defined as follow
where {tilde over (λ)} j is the j-th element of the set {tilde over (λ)} j ={descend(|λ j −0.5|)}, and {tilde over (m)} is the number of selected eigenvalues. Unlike the conventional index D measures the whole dissimilar information of the datasets, the new index {tilde over (D)} relies on the most dissimilar information between two datasets, thus {tilde over (D)} is more sensitive to differentiate datasets.
Step 5: Based on the above steps, the A sub-datasets have been obtained. When a query sample comes, predict its quality variable with the sub-datasets via the Gaussian Process Regression (GPR) model. Make the final prediction of the quality variable by combining the sub prediction results, whose calculating method is given as follow
The Gaussian Process Regression model is described as follows:
Consider a training dataset X∈R n×m and y∈R n×1 , where {x i ∈R m } i=1 n is the input data with m dimensions, and {y i ∈R} i=1 n is the output data. The aim of a regression model is to find a functional relationship y=ƒ(x|θ)+ε between input and output. Particularly, the Gaussian process regression model assumes that the regression function with zero-mean Gaussian prior distribution. The description of the function is given as follows
y ={ƒ( x 1 ),ƒ( x 2 ), . . . ,ƒ( x n )}˜ GP (0, K ) (14)
where K is the covariance matrix whose ij-th element is k ij =k(x i ,x j ), and in this paper, the kernel function k(·) is the commonly used squared-exponential covariance function, which is defined as follow
where δ ij =1 only when i=j, otherwise δ ij =0; l is length-scale; and σ f 2 and σ n 2 are terms as signal and noise variance, respectively. An appropriate hyper-parameter set Θ=[σ n 2 ,σ f 2 ,l] is vital for a GPR model to make an accurate prediction about the output variable. To determine the optimal value of the hyper-parameter set, the following likelihood function should be maximized in the training process
Conjugate gradient method is used to obtain the closed solution for the above maximizing problem. An alternative way to determine the optimal value is to employ the sampling methods such as Markov chain Monte Carlo (MCMC) method, which draws samples to approximate the poster distribution of the hyper-parameters.
›Step 1: Collect training data set which can be divided as two counterparts · 2 of 2
Once we get the optimal hyper-parameter set, the GPR model is available to make a prediction about the distribution of y new corresponding for x new . When a query data sample x new comes, according to the property of the multivariate Gaussian distribution, the posterior distribution of the output, namely (y new |X,y,x new )˜N(μ(y new ),σ 2 (y new )) can be identified, where μ*y new ) and σ 2 (y new ) is the mean and variance of the poster distribution, respectively, which can be calculated as follows
μ( y new )= k T ( x new ,X ) K −1 y (17)
σ 2 ( y new )= k ( x new ,x new )− k T ( x new ,X ) K −1 k ( x new ,X ) (18)
where k(x new ,X)=[k(x new ,x 1 ),k(x new ,x 2 ), . . . , k(x new ,x n )] T . Finally, take the expectation μ(y new ) of the posterior distribution as the prediction result about the output variable of the query data sample x new .
FIG. 4 shows the prediction errors under different modeling strategies, it can be found that the advanced ensemble learning strategy based semi-supervised soft sensing method is superior to other strategies.
The main operating variable affecting the product quality is the reflux flow x 3 . Thus, a soft sensor based control strategy is designed to ensure the butane concentration of the product by manipulating the reflux rate. The close loop control scheme is shown in FIG. 5 .
The signals of secondary variables are smoothed before sending into the soft sensor model. Furthermore, in order to make the control system ensure both the product quality and the material balance, the “expert control module” is applied in the inference control strategy. If the butane concentration is qualified, the reflux rate shall be adjusted according to x 2 and x 4 ; otherwise, the reflux rate shall be adjusted according to the deviation between the butane estimated value and the set value in the soft instrument. Finally, set the upper and lower bounds of the valve opening according to the control requirements of the distillation column.
While various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for purposes of illustration and are not intended to be limiting, with the true scope and spirit being indicated by the following claims.
›Tables in the description — 3
| Y | i | |
| = | ||
| N | i | |
| N | 1 | |
| + | ||
| N | 2 | |
| | ||
| X | i | |
| | ||
| P | 0 | |
| | ||
| Λ | ||
| - | ||
| 1 | 2 | |
| = | ||
| N | i | |
| N | 1 | |
| + | ||
| N | 2 | |
| | ||
| X | i | |
| | P | |
| ( | 9 | ) |
| Secondary | Secondary | ||
| variable | Explanation | variable | Explanation |
| x 1 | Top | x 5 | 6th tray |
| temperature | temperature | ||
| x 2 | Top | x 6 | Bottom |
| pressure | temperature I | ||
| x 3 | Reflux | x 7 | Bottom |
| flow | temperature II | ||
| x 4 | Flow to | ||
| next process |
| Y | i | |
| = | ||
| N | i | |
| N | 1 | |
| + | ||
| N | 2 | |
| | ||
| X | i | |
| | ||
| P | 0 | |
| | ||
| Λ | ||
| - | ||
| 1 | 2 | |
| = | ||
| N | i | |
| N | 1 | |
| + | ||
| N | 2 | |
| | ||
| X | i | |
| | P | |
| ( | 9 | ) |
Claims as granted
5 claimsLog in to read the claims of this application.
Log in to unlockClassifications
2 codes- G06N20/20
- G06F17/16
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock