Count-type quality variable prediction method based on variational bayesian gaussian-poisson mixture regression model

Through the variational Bayesian Gaussian-Poisson mixture regression model, combined with Gaussian and Poisson distribution shared mixture coefficients, the fitting problem of multi-modal non-negative discrete data in industrial production is solved, and effective counting quality variable prediction and Probability estimation improves the model's fitting ability and training efficiency.

WO2024182977A1PCT designated stage expired Publication Date: 2024-09-12ZHEJIANG UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/079880
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-06
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

It is difficult for existing technology to effectively fit and predict non-negative discrete count-type quality variables in industrial production processes. Especially in multi-modal data environments, finite mixture models cannot meet the needs of non-negative discrete probability estimation.

Method used

A Gaussian-Poisson mixture regression model based on variational Bayes is proposed. The model is trained through the variational inference method. It combines Gaussian distribution and Poisson distribution for finite mixing, shares the mixing coefficient to improve the fitting ability, and uses Laplacian Approximately optimize parameter learning to reduce training time.

Benefits of technology

It achieves effective fitting and prediction of multi-modal count quality variables, provides non-negative discrete probability estimation capabilities, shorter training time, and better prediction results than traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023079880_12092024_PF_FP_ABST
    Figure CN2023079880_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed is a count-type quality variable prediction method based on a variational Bayesian Gaussian-Poisson mixture regression model. The method can be used for data analysis and prediction having count data as a dependent variable and continuous numerical values as an independent variable. A core part of the method is fitting continuous data and count data using a Gaussian mixture distribution and a Poisson mixture regression distribution, assuming that the two mixture distributions share the same mixture coefficient, and using a variational inference technique for learning a parameter of the model. In this way, the limitation that conventional soft measurement methods cannot provide discrete probability estimation for count data is overcome, and the problem that process variables and quality variables exhibit multiple modes due to multiple working conditions in an industrial process can be resolved.
Need to check novelty before this filing date? Find Prior Art

Description

Prediction method of count quality variables based on variational Bayesian Gaussian-Poisson mixture regression model Technical Field

[0001] The present invention belongs to the field of industrial process prediction and control, and specifically relates to a method for predicting count-type quality variables based on a variational Bayesian Gaussian-Poisson mixture regression model. Background Art

[0002] In industrial production, the measurement data generated covers all aspects of "people," "machines," "materials," "methods," and "environmental factors." These include information on the quality of raw materials used in each production step, process parameters, equipment operating status, and the experience and work status of operators and inspectors. Among these data is crucial counting data, which are non-negative integers such as 0, 1, 2, etc. These data include the number of equipment failures within a certain period, the number of defects in a product, and other quality variables expressed as non-negative integers. For key quality indicators like the number of product defects, soft sensing technology can be used to achieve online, real-time prediction, thereby reducing inspection time and improving production efficiency. Furthermore, real-time prediction of these quality indicators can help production managers monitor product quality in real time and respond more quickly to defective production lines.

[0003] Conventional soft sensor modeling methods primarily include those based on multivariate statistical analysis, statistical learning, deep learning, and probability estimation. Soft sensor modeling methods based on multivariate statistical analysis, such as ordinary least squares, partial least squares, and multivariate linear regression, assume that variables follow a Gaussian distribution and cannot provide support for non-negativity and discreteness for count data. Soft sensor modeling methods based on statistical learning and deep learning, such as SVR and ANN, lack data interpretability and similarly cannot meet the non-negativity and discreteness constraints of count data. Soft sensor modeling methods based on probability estimation, such as Gaussian process regression and Gaussian mixture regression, are often based on Gaussian or Gaussian mixture distributions, which are also unsuitable for fitting non-negative, discrete count data. Therefore, it is necessary to utilize count data models for regression prediction of count data in industrial production processes. Poisson regression, a typical discrete regression method, is widely used in basic research on count data modeling. Other commonly used count data modeling methods, such as negative binomial regression and Poisson mixture regression, are also based on Poisson regression.

[0004] In industrial production processes, in addition to the counting nature of data, another important characteristic is that as machines switch between multiple operating conditions, the values ​​of the independent and dependent variables, as well as their mapping relationships, change. This makes the data multimodal and, in general, no longer obeys the single Gaussian distribution assumption. Finite mixture models (FMMs) can specifically address the multimodal nature of real industrial processes. This is because FMMs use the weighted sum of multiple probability density functions as the overall probability density of random variables. Compared to a single probability density, FMMs can learn to fit the multimodal nature of real-world conditions with multiple peaks and valleys. In theory, a mixture model with infinite components can approximate any unknown random distribution. However, the finite mixture models (FMMs) currently used in industrial production processes cannot provide non-negative discrete probability estimates for count-type quality variables.

[0005] Summary of the Invention

[0006] Aiming at the problems of non-negative discreteness of counting quality variables and multimodality of industrial processes, the present invention proposes a counting quality variable prediction method based on variational Bayesian Gaussian-Poisson mixture regression model.

[0007] The specific technical solutions of the present invention are as follows:

[0008] A method for predicting count-type quality variables based on a variational Bayesian Gaussian-Poisson mixture regression model includes the following steps:

[0009] (1) Collect data samples of count quality variables and related process variables as the training set of the model; preprocess the data for missing values, outliers and standardization to obtain a processed training set;

[0010] (2) Using the variational inference method, the variational Bayesian Gaussian-Poisson mixture regression model is trained offline on the processed training set; the expression of the variational Bayesian Gaussian-Poisson mixture regression model is:

[0011] in, is the set of process variables, quality variables and latent variables of all samples, z ik For z i The value of the kth dimension of ; β k is the regression coefficient of the kth Poisson regression component; represents the density function of Gaussian distribution; μ k , Λ k are the mean vector and precision matrix of the kth Gaussian distribution component respectively; π k is the mixing coefficient of the mixture model;

[0012] β k、μ k , Λ k , π k Subject to the following priors:

[0013] ①β k All obey the Gaussian distribution, that is, Among them, β0 and Σ0 are β k The mean vector and covariance matrix of the Gaussian distribution are obeyed, where β under all components k The priors are all the same;

[0014] ②μ k and Λ k All obey the Gaussian-Wishart distribution, that is, Among them, m0 and γ0 are μ k the mean vector and scale parameter of the distribution, represents the probability density function of the Wishart distribution, is the scale matrix of the distribution, v0>d-1 is the number of degrees of freedom of the distribution;

[0015] ③π k The joint follows the Dirichlet distribution, that is, Where a0 is the parameter of Dirichlet distribution, a0>0 to ensure that the distribution can be normalized.

[0016] (3) Collect the sample to be tested, and after the same preprocessing of missing values, outliers and standardization as in step (1), the processed sample to be tested x is obtained. q , and then use the variational Bayesian Gaussian-Poisson mixture regression model trained in step (2) for online prediction.

[0017] Furthermore, in step (2), the specific steps of offline training the variational Bayesian Gaussian-Poisson mixture regression model on the processed training set are as follows:

[0018] (2.1) Using Bayes’ theorem, we can get the hidden variables in the model. and parameter variable β k 、μ k , Λ k , π k The variational posterior distribution of : ① ② ③ ④

[0019] Among them, ξ ik , τ k ,Σ k 、m k , γ k 、Wk 、v k and a k are the distribution parameters of these variational posterior distributions, where i = 1, 2, …, N and k = 1, 2, …, K;

[0020] (2.2) Set the hyperparameters a0, m0, γ0, W0, v0, β0, Σ0 of the prior distribution of model parameters, the number of mixture components K, as well as the iterative convergence threshold δ, the maximum number of iterations M, and the current number of iterations t = 0;

[0021] (2.3) Random initialization: First use the multinomial distribution to generate <zi>(i=1,2,…,N) initial value, where <z i > for z i The expectation of the multinomial distribution is a K-dimensional vector whose value is 1 / K. Then other expectations are randomly initialized, including: <β k >、<(x i -μ k ) T Λ k (x i -μ k )>、 <ln|Λ k |>、 <lnπ k >, where <β k > is the function in brackets in the variational posterior distribution q * (β k ) on the expectation, <(x i -μ k ) T Λ k (x i -μ k )>、 <ln|Λ k |> is the function in brackets in q * (μ k ,Λ k ) expectations, <lnπ k >For the function in brackets in q * expectations on (π);

[0022] (2.4) The current iteration number is incremented by 1, i.e., t = t + 1. For i = 1, 2, …, N and k = 1, 2, …, K, the parameters of the variational posterior distribution defined by the model are calculated according to the following formula:

[0023] ① in, ② ③ ④ ⑤ ⑥

[0024] ⑦ in, It can be optimized using the Newton-Raphson method. The specific steps are: first randomly initialize Set the optimization convergence threshold δ β , using the formula renew Until The maximum value of the absolute difference vector before and after the update is less than δ β ,in, ⑧

[0025] (2.5) Calculate the expectation involved in the model according to the following formula: ① <z ik >=ξ ik , ②<β k >=τ k , ③ ④ ⑤ ⑥ Where ψ(·) is the digamma function, ⑦

[0026] Where, i = 1, 2, ..., N; k = 1, 2, ..., K;

[0027] (2.6) Calculate the lower bound of evidence for the current iteration step according to the following formula

[0028] Among them, <·> represents the expectation of the function in the brackets on the variational posterior distribution of all parameters involved in the function. The specific calculation formula is as follows: ① ② ③ ④

[0029] ⑤ in, ⑥ ⑦ ⑧

[0030] ⑨ Among them, B(W k , v k ) has the same functional form as B(W0,v0) above; ⑩

[0031] (2.7) Repeat step (2.4) until the maximum number of iterations t = M or in, is the lower bound of the evidence calculated in the t-1th iteration, i.e. the previous iteration. When t=1

[0032] Furthermore, the calculation formula for online prediction using the model trained in step (2) in step (3) is:

[0033] in, is the predicted value of the sample to be tested, St(·) is the probability density function of Student's distribution, v k -d+1 is the parameter of the function.

[0034] The beneficial effects of the present invention are:

[0035] (1) The prediction method of the present invention uses a finite mixture method to mix Gaussian distribution and Poisson distribution, that is, multiple probability density functions are mixed in a weighted manner. The two mixed models share the mixing coefficient to represent that the process variables and quality variables come from the same mode, thereby improving the fitting ability of multimodal data.

[0036] (2) The present invention uses Poisson mixture distribution to characterize the quality variables of the counting type in the industrial process, thereby realizing the discrete probability estimation of the quality variables of the counting type.

[0037] (3) The present invention uses variational inference to train the variational Bayesian Gaussian-Poisson mixed regression model. In this process, the Laplace approximation is used, that is, the non-conjugate variational posterior of the Poisson regression parameters is approximated as a conjugate Gaussian distribution, and an iterative parameter learning process is derived. Compared with the existing Markov chain-Monte Carlo method, the training time is shorter.

[0038] In addition, count data, as an important discrete data type, exists not only in industrial production processes, but also widely in other professional fields such as actuarial science, biostatistics, economics, and sociology. The method proposed in this invention is also of certain value in the study of count data in these fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] FIG1 is a flow chart of the counting-type quality variable prediction method of the present invention.

[0040] Figure 2 is the data generated by the numerical simulation system (Example 1); wherein, Figure (a) is the data points of the real number type process variables, Figure (b) is the distribution histogram of the counting type quality variables, and Figure (c) is the numerical value of the counting type quality variables.

[0041] FIG3 is an average value of the prediction index of the training set under different numbers of initial components of the method proposed in the present invention (Example 1).

[0042] FIG4 is a curve of prediction results of various methods for the test set (Example 1); wherein FIG (a) represents the PLS prediction result, FIG (b) represents the PR prediction result, FIG (c) represents the NBR prediction result, and FIG (d) represents the GPMR prediction result.

[0043] Figure 5 is a flow chart of the medium and thick steel plate rolling process.

[0044] FIG6 is a distribution histogram of the number of defects in steel plates.

[0045] FIG7 is the average MAE of the training set prediction under different numbers of initial components of the method proposed in the present invention (Example 2).

[0046] FIG8 is a curve showing the prediction results of the test set using the method proposed in the present invention (Example 2).

[0047] Figure 9 is a partial curve of the prediction results of various methods for the test set (samples 0 to 300) (Example 2), where Figure (a) represents the PLS partial prediction results, Figure (b) represents the PR partial prediction results, Figure (c) represents the NBR partial prediction results, and Figure (d) represents the GPMR partial prediction results. DETAILED DESCRIPTION

[0048] The present invention will be described in detail below with reference to the accompanying drawings and embodiments, and the purpose and effects of the present invention will become more apparent. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0049] The present invention provides a method for predicting count-type quality variables based on a variational Bayesian Gaussian-Poisson mixed regression model, which defines a variational Bayesian Gaussian-Poisson mixed regression model as follows: for the i-th data sample (x i ,y i ), where x i Expressed as process variable, y i Expressed as a counting quality variable, the design number type quality variable y i A Poisson regression mixed model with K components and a real process variable x i Obey the Gaussian mixture model with the same number of components and the same mixing coefficient, that is

[0050] Among them, β k is the regression coefficient of the kth Poisson regression component, Represents the density function of the Gaussian distribution, μ k , Λ k are the mean vector and precision matrix of the kth Gaussian distribution component, π k is the mixing coefficient of the mixture model, which can be understood as the probability that the i-th sample comes from the k-th component.

[0051] Introducing hidden variables z i Processing mixed model, the latent variable obeys the parameter π=(π1,π2,…,π K ), is a K-dimensional binary variable, that is, it has only values ​​{0,1} and only one dimension is 1. For the entire training set, the variational Bayesian Gaussian-Poisson mixture regression model is transformed into the following form:

[0052] in, is the set of process variables, quality variables and latent variables of all samples, z ik For z i The value of the kth dimension of .

[0053] Model parameter β k 、μ k , Λ k , π k Subject to the following prior, where k = 1, 2, …, K:

[0054] ①β k All obey the Gaussian distribution, that is, Among them, β0 and Σ0 are β k The mean vector and covariance matrix of the Gaussian distribution are obeyed, where β under all components k The priors are all the same;

[0055] ②μ k and Λ k All obey the Gaussian-Wishart distribution, that is, Among them, m0 and γ0 are μ k the mean vector and scale parameter of the distribution, represents the probability density function of the Wishart distribution, is the scale matrix of the distribution, v0>d-1 is the number of degrees of freedom of the distribution;

[0056] ③π k The joint follows the Dirichlet distribution, that is, Where a0 is the parameter of Dirichlet distribution, a0>0 to ensure that the distribution can be normalized.

[0057] As shown in FIG1 , the method for predicting count-type quality variables based on the variational Bayesian Gaussian-Poisson mixture regression model of the present invention comprises the following specific steps:

[0058] Step 1: Collect data samples of count quality variables and related process variables as the training set for the model. Preprocess the data for missing values, outliers, and standardization to obtain a processed training set.

[0059] Step 2: Using the variational inference method, offline train the variational Bayesian Gaussian-Poisson mixture regression model on the processed training set; the specific steps are:

[0060] (2.1) Using Bayes’ theorem, we can get the hidden variables in the model. and parameter variable β k 、μ k , Λ k , π k The variational posterior distribution of (k=1,2,…,K) is: ① ② ③ ④ Among them, ξ ik , τ k ,Σ k 、m k , γ k 、W k 、v k and a k are the distribution parameters of these variational posterior distributions, where k = 1, 2, …, K.

[0061] (2.2) Set the hyperparameters a0, m0, γ0, W0, v0, β0, Σ0 of the prior distribution of model parameters, the number of mixture components K, as well as the iterative convergence threshold δ, the maximum number of iterations M, and the current number of iterations t = 0;

[0062] (2.3) Random initialization: First use the multinomial distribution to generate <z i >(i=1,2,…,N) initial value, where <z i > for z i The expectation of the multinomial distribution is a K-dimensional vector whose value is 1 / K. Then other expectations are randomly initialized, including: <β k >、<(x i -μ k ) T Λ k (x i -μ k )>、 <ln|Λ k |>、 <lnπ k >, where <β k > is the function in brackets in the variational posterior distribution q * (β k ) on the expectation, <(x i -μ k ) T Λ k (x i -μ k )>、 <ln|Λ k |> is the function in brackets in q * (μ k ,Λ k ) expectations, <lnπ k >For the function in brackets in q * The expectation on (π).

[0063] (2.4) The current iteration number is incremented by 1, i.e., t = t + 1. For i = 1, 2, ..., N and k = 1, 2, ..., K, the parameters of the variational posterior distribution defined by the model are calculated according to the following formula:

[0064] ① in, ② ③ ④ ⑤ ⑥

[0065] ⑦ in, It can be optimized using the Newton-Raphson method. The specific steps are: first randomly initialize Set the optimization convergence threshold δ β , using the formula renew Until The maximum value of the absolute difference vector before and after the update is less than δ β ,in, ⑧

[0066] (2.5) Calculate the expectation involved in the model according to the following formula: ① <z ik >=ξ ik , ②<β k >=τ k , ③ ④ ⑤

[0067] ⑥ Where ψ(·) is the digamma function, ⑦

[0068] Where, i = 1, 2,…, N; k = 1, 2,…, K.

[0069] (2.6) Calculate the lower bound of evidence for the current iteration step according to the following formula

[0070] Among them, <·> represents the expectation of the function in the brackets on the variational posterior distribution of all parameters involved in the function. The specific calculation formula is as follows: ① ② ③ ④

[0071] ⑤ in, ⑥ ⑦ ⑧

[0072] ⑨ Among them, B(W k ,v k ) has the same functional form as B(W0,v0) above. ⑩

[0073] (2.7) Repeat step (2.4) until the maximum number of iterations t = M or in, is the lower bound of the evidence calculated in the t-1th iteration, i.e. the previous iteration. When t=1

[0074] Step 3: Collect the test samples on site, and after the same missing value and outlier preprocessing and standardization as the training data in (1), the processed test samples x are obtained. q , and then use the variational Bayesian Gaussian-Poisson mixture regression model trained in (2) for online prediction. The specific calculation formula of the prediction value is as follows:

[0075] in, is the predicted value of the sample to be tested, St(·) is the probability density function of Student's distribution, v k -d+1 is the parameter of the function.

[0076] The effectiveness of the present invention is verified by a numerical simulation example and a specific soft measurement example of the number of steel plate defects during the rolling process of medium and thick steel plates. The prediction effect of the model is demonstrated by the MAE and R of the prediction results of the test set. 2 For quantification, the calculation formula of MAE is:

[0077] Among them, N t is the total number of samples to be tested, and y i are the predicted value and true value of the quality variable of the i-th sample to be tested. 2 The calculation formula is:

[0078] in, It is the average value of all the quality variables of the samples to be tested. The smaller the MAE, the more accurate the prediction result. 2 The smaller the difference from 1, the better the model fit.

[0079] Example 1:

[0080] This embodiment is a numerical simulation. The input of the numerical simulation system, i.e., the process variable, is two-dimensional real data, and the output, i.e., the quality variable, is one-dimensional count data. The input is generated using a three-component Gaussian mixture distribution, and the output is generated using a three-component Poisson mixture regression distribution with the same mixing coefficient as the three-component Gaussian mixture distribution. The mixing coefficients of the two distributions, i.e., the distribution parameters of the three components, are shown in Table 1.

[0081] Table 1 Parameter configuration of numerical simulation system

[0082] 2500 samples were collected from this system, 2000 of which were used for training and 500 for testing. The generated samples are shown in Figure 2. Figure 2(a) shows the input data points for the 2500 samples, Figure 2(b) shows the main distribution histogram of the output of these samples, which is concentrated between 0 and 150, and Figure 2(c) shows the numerical values ​​of the output of these samples. Figure 2(c) shows that the numerical distributions of the quality variables of the three components are significantly different.

[0083] In this embodiment, the hyperparameters a0 of the prior distribution of the model parameters in step (2.2) of the present invention are 1e-3, γ0=1e-3、W0=I、v0=2、β0=0、Σ0=I,iteration convergence threshold δ=1e-6、maximum number of iterations M=2000;In step (2.3), except <z i >The expectations listed outside are initialized to zero; in step (2.4), the Newton-Raphson optimization update The convergence threshold δ is set β =1e-6, the initial value is

[0084] The proposed method is denoted as GPMR. GPMR models were trained for different numbers of mixture components, K = 1, 2, …, 10. The MAE of the training set predictions obtained from 10 independent experiments for each component is shown in Figure 3. As can be seen from Figure 3, when K ≥ 3, the MAE stabilizes at a certain value. Therefore, K = 3 was selected as the optimal initial number of components for GPMR in this embodiment.

[0085] Poisson regression PR, negative binomial regression NBR, and partial least squares PLS were used as comparison methods. The optimal discrete parameter of NBR and the optimal number of principal components of PLS ​​were determined by the grid search method. The discrete parameter α of NBR was 3e-2, and the number of principal components of PLS ​​was K = 2. The prediction quantitative indicators of each method are shown in Table 2. GPMR is the method proposed in this invention.

[0086] Table 2 Prediction quantitative indicators of each method (Example 1)

[0087] From the prediction quantitative indicators, it can be seen that the prediction MAE of the method proposed in this invention on the test set is significantly smaller than the prediction MAE of other methods, and the prediction R 2 The closest to 1 indicates that the proposed method has the best fitting effect on the data. Figure 4 shows the prediction curves of each method for the test set. Among the prediction curves of the four methods, the prediction curve of GPMR (3.d) fits the real data curve of the test set best.

[0088] Example 2:

[0089] This embodiment is based on the actual medium and thick steel plate rolling process. All data are collected from the steel plate rolling process of a certain steel plant. Figure 5 is a schematic diagram of the steel plate rolling process, which mainly includes the steps of steelmaking, casting, rolling, cooling and cutting. The collected intact data are divided into a training set and a test set, where the number of training set samples is 6000 and the number of test set samples is 2000. The selected relevant process variables have 153 dimensions, including the element content, casting speed, continuous casting temperature, heating time, etc. in the steelmaking process. The quality variable is the number of defects in the steel plate. The distribution histogram of the number of defects in the steel plate is shown in Figure 6. In this embodiment, the hyperparameters a0=1e-3 of the prior distribution of the model parameters in step (2.2) are γ0=1e-3、W0=I、v0=153、β0=0、Σ0=I,iteration convergence threshold δ=1e-6、maximum number of iterations M=2000;In step (2.3), except <z i >The expectations listed outside are initialized to zero; in step (2.4), the Newton-Raphson optimization update The convergence threshold δ is set β =1e-6, the initial value is

[0090] The GPMR model was trained for different numbers of mixture components, K = 1, 2, …, 30. The MAE of the training set predictions obtained from 10 independent experiments for each component are shown in Figure 7. As can be seen from the figure, the MAE of GPMR predictions decreases with increasing the number of initial mixture components, until it levels off when K ≥ 24. Considering that a large number of initial components also increases model complexity, K = 24 was selected as the optimal number of initial components for GPMR in this example.

[0091] Table 3 Prediction quantitative indicators of each method (Example 2)

[0092] Poisson regression PR, negative binomial regression NBR, and partial least squares PLS were used as comparison methods. The optimal discrete parameter of NBR and the optimal number of principal components of PLS ​​were determined by the grid search method. The discrete parameter of NBR was α = 1e-5, and the number of principal components of PLS ​​was K = 46. The prediction quantitative indicators of each method are shown in Table 3. GPMR is the method proposed in this paper. As can be seen from the table, the prediction MAE of the method proposed in this paper on the test set is significantly smaller than the MAE of other methods, and the prediction R of the method proposed in this paper is 2 The closest value to 1 indicates that the proposed method has the best prediction effect on the data. Figure 8 shows the prediction curve of GPMR for the test set. To more intuitively compare the prediction results of the above methods, the prediction results of each method for the first 300 samples of the test set are plotted, as shown in Figure 9. As can be seen from the figure, GPMR's prediction curve best fits the actual defect count curve of the test set, thus achieving the best prediction effect.

[0093] Through the above two embodiments, it is verified that the counting quality variable prediction method based on the variational Bayesian Gaussian-Poisson mixture regression model proposed in the present invention is feasible and effective.

[0094] Those skilled in the art will understand that the foregoing descriptions are merely preferred embodiments of the invention and are not intended to limit the invention. Although the invention has been described in detail with reference to the foregoing examples, those skilled in the art will still be able to modify the technical solutions described in the foregoing examples or substitute equivalents for some of the technical features therein. Any modifications, equivalent substitutions, etc. made within the spirit and principles of the invention shall be included within the scope of protection of the invention.< / zi>

Claims

1. A method for predicting count quality variables based on variational Bayesian Gaussian-Poisson mixture regression model. It is characterized in that The following steps are involved: (1) Collect data samples of count quality variables and related process variables as the training set of the model; pre-process the data for missing values, outliers and standardization to obtain a processed training set; (2) Using the variational inference method, the variational Bayesian Gaussian-Poisson mixed regression model is trained offline on the processed training set; the expression of the variational Bayesian Gaussian-Poisson mixed regression model is: in, is the set of process variables, quality variables and latent variables of all samples, z ik For z i The value of the kth dimension of ; β k is the regression coefficient of the kth Poisson regression component; represents the density function of Gaussian distribution; μ k ,Λ k are the mean vector and precision matrix of the kth Gaussian distribution component respectively; π k is the mixing coefficient of the mixture model; β k , μ k ,Λ k , π k Subject to the following priors: ①β k All obey Gaussian distribution, that is, Among them, β 0 ,Σ 0 β k The mean vector and covariance matrix of the Gaussian distribution are obtained, where the β values ​​of all components are k The priors are all the same; ②μ k and k All obey the Gaussian-Wishart distribution, that is, Among them, m 0 and γ 0 They are μ k The mean vector and scale parameter of the distribution, represents the probability density function of the Wishart distribution, is the scale matrix of the distribution, v 0 >d-1 is the number of degrees of freedom of the distribution; ③π k The joint follows the Dirichlet distribution, that is, Among them, a 0 is the parameter of the Dirichlet distribution, a 0 >0 to ensure that the distribution can be normalized, (3) Collect the sample to be tested, and after the same preprocessing of missing values, outliers and standardization as in step (1), the processed sample to be tested x is obtained. q , and then use the variational Bayesian Gaussian-Poisson mixture regression model trained in step (2) for online prediction.

2. The method for predicting count-type quality variables based on a variational Bayesian Gaussian-Poisson mixed regression model according to claim 1, It is characterized in that In step (2), the specific steps of offline training the variational Bayesian Gaussian-Poisson mixture regression model on the processed training set are: (2.1) Using Bayes’ theorem, we can get the hidden variables in the model. and parameter variable β k , μ k ,Λ k , π k The variational posterior distribution of : ① ② ③ ④ Among them, ξ ik , τ k ,Σ k 、m k , γ k , W k 、v k and a k are the distribution parameters of these variational posterior distributions, where i = 1, 2, …, N, k = 1, 2, …, K; (2.2) Set the hyperparameter a of the prior distribution of model parameters 0 、m 0 , γ 0 , W 0 、v 0 , β 0 ,Σ 0 , the number of mixed components K, as well as the iterative convergence threshold δ, the maximum number of iterations M, and the current number of iterations t = 0; (2.3) Random initialization: First, use the multinomial distribution to generate <z i >(i=1,2,…,N) initial value, where <z i > for z i The expectation of the multinomial distribution is a K-dimensional vector whose value is 1 / K. Then other expectations are randomly initialized, including: <b k >、<(x i -m k ) T L k (x i -m k )>、 <ln|Λ k |>、 <lnπ k >,among them, <β k > is the function in brackets in the variational posterior distribution q * (β k ) on the expectation, <(x i -μ k ) T Λ k (x i -μ k )>、 <ln|Λ k |> is the function in brackets in q * (μ k ,Λ k ) <lnπ k >For the function in brackets in q * Expectations on (π); (2.4) The current number of iterations is increased by 1, that is, t = t + 1; for i = 1, 2, ..., N and k = 1, 2, ..., K, the parameters of the variational posterior distribution defined by the model are calculated according to the following formula: ① in, ② ③ ④ ⑤ ⑥ ⑦ in, It can be optimized using the Newton-Raphson method. The specific steps are: first, randomly initialize Set the optimization convergence threshold δ β , using the formula renew Until The maximum value of the absolute difference vector before and after the update is less than δ β ,in, ⑧ (2.5) Calculate the expectation involved in the model according to the following formula: ① <z ik >=ξ ik , ②<β k >=t k , ③ ④ ⑤ ⑥ Among them, ψ(·) is the digamma function, ⑦ Where, i = 1, 2, ..., N; k = 1, 2, ..., K; (2.6) Calculate the lower bound of evidence for the current iteration step according to the following formula Among them, <·> represents the expectation of the function in brackets on the variational posterior distribution of all parameters involved in the function. The specific calculation formula is as follows: ① ② ③ ④ ⑤ in, ⑥ ⑦ ⑧ ⑨ Among them, B(W k ,v k )and The above B(W 0 ,v 0 ) have the same functional form; ⑩ (2.7) Repeat step (2.4) until the maximum number of iterations t = M or in, is the lower bound of evidence calculated in the t-1th iteration, i.e., the previous iteration. When t=1 3. The method for predicting count-type quality variables based on a variational Bayesian Gaussian-Poisson mixed regression model according to claim 1, It is characterized in that The calculation formula for online prediction using the model trained in step (2) in step (3) is: in, is the predicted value of the sample to be tested, St(·) is the probability density function of Student's distribution, v k -d+1 is the function's parameter.

Citation Information

Patent Citations

  • Condition monitoring data stream anomaly detection method based on improved gaussian process regression model

    CN103974311A

  • Robust soft measurement method based on semi-supervised Bayesian regularization mixed Student's t model

    CN114169459A

  • Multi-working-condition process adaptive soft measurement modeling method based on local double-weighted probability hidden variable regression model

    CN114239400A

  • Counting data soft measurement modeling method based on stacked Poisson auto-encoder network

    CN114692507A

  • Method and device for determining model parameters for a control strategy for a technical system with the aid of a bayesian optimization method

    US20220236698A1