The content of the invention
Technical problem underlying to be solved by this invention is:From normal data statistical property angle, excavate measurement and become
Dimension difference between amount, and set up based on the ICA Fault Models of dimension changeable type to implement online fault detect.It is specific next
Say, the thinking that the inventive method is first according to traditional IC A modelings in the off-line modeling stage obtains the separation matrix of model, Ran Houyi
According to the difference of element numerical value in each column vector of separation matrix, different weights accordingly are assigned with the amount of embodiment for process measurement variable
The difference of guiding principle, and ICA Fault Models are set up again.Because separation matrix has multiple column vectors, each column vector embodies
Difference of the measurand on the projecting direction, to that should have a variety of different dimension changeable-shapeds, can set up multiple ICA failures
Detection model.Therefore, during on-line implement fault detect, then this multiple ICA model is called to calculate corresponding monitoring and statisticses amount, and profit
Final probabilistic type monitoring index is obtained with Bayesian inference, so as to simplify the last decision-making for whether triggering fault alarm.
The present invention solve the technical scheme that is used of above-mentioned technical problem for:One kind is based on dimension changeable type independent component analysis
The fault detection method of model, comprises the following steps:
(1) data sample under collection production process normal operating condition, composition training dataset X ∈ Rn×m, and to each
Variable is standardized, and it is 0 to obtain average, and standard deviation is 1 new data matrixWherein, n is number of training, and m is
Process measurement variable number, R is set of real numbers, Rn×mRepresent the real number matrix of n × m dimensions.
(2) using PCA methods to data matrixCarry out whitening processing and obtain data matrix Z ∈ Rn×M.Wherein, M≤m is
Variable number in matrix Z.
(3) it is training data using ICA algorithmSolution obtains separation matrix W ∈ Rm×p, wherein p is in separation matrix
The number of column vector.
(4) according to separation matrix W=[w1, w2..., wp] in each column vector wj∈Rm×1The difference of element, corresponds to square
Battle arrayIn each row assign different weights, data matrix X is obtained accordinglyj, wherein, lower label j=1,2 ..., p.
(5) it is respectively the training data matrix X after dimension changes to reuse ICA algorithm1, X2..., XpSolve separation square
Battle array (W1, W2..., Wp) and hybrid matrix (A1, A2..., Ap), set up corresponding p ICA models.
(6) the control limit corresponding to each ICA models malfunction monitoring statistic, reserving model parameter set Θ are determined1,
Θ2..., ΘpIn case on-line monitoring is called.
(7) the data x of the new sampling instant of gatherer process objectnew∈Rm×1, to granting training dataset X identical marks in fact
Quasi-ization processing is obtained
(8) according to each column vector w in separation matrix Wj, it is rightIn each measurand implement identical weighting processing, it is right
The data vector y after dimension changes should be obtained1, y2..., yp。
(9) calling model parameter set Θ1, Θ2..., ΘpImplement online fault detect, and will be multiple using Bayesian inference
A permeate probabilistic type index of monitoring and statisticses amount facilitates decision-making failure whether to occur.
Compared with conventional method, the advantage of the inventive method is essentially consisted in:
First, the inventive method makes the dimension of each measurand inconsistent by the way that different variables are assigned with different weights,
It is achieved thereby that the not equal importance of measurand is taken into account in modeling.In addition, the inventive method implements dimension changeable type
During modeling, employ multigroup different dimension variable manner to set up multiple ICA Fault Models.It is single compared to tradition
For the fault detection method of ICA models, the inventive method is to implement fault detect with multi-model, to normal data feature
Description is just more comprehensive.Therefore, the inventive method can lift the process monitoring of traditional fault detection method based on ICA
Energy.It is worthy of note that, present invention side sets up the non-gaussian that Fault Model mainly considers process data using ICA algorithm
Characteristic, the inventive method can certainly use for reference other nonlinear modeling algorithms, to realize the event to non-linear process object
Barrier detection.
Embodiment
The inventive method is described in detail below in conjunction with the accompanying drawings.
As shown in figure 1, the present invention discloses a kind of fault detection method based on dimension changeable type independent component analysis model.Tool
The implementation steps of body are as follows:
Step 1:Gather the data sample under production process normal operating condition, composition training dataset X ∈ Rn×m, and it is right
Each variable is standardized, and it is 0 to obtain average, and standard deviation is 1 new data matrixWherein, n is training sample
Number, m is process measurement variable number, and R is set of real numbers, Rn×mRepresent the real number matrix of n × m dimensions.
Step 2:Using PCA methods to data matrixCarry out whitening processing and obtain data matrix Z ∈ Rn×M.Wherein, M≤m
For variable number in matrix, specific implementation process is as follows:
1. calculateCovariance matrixWherein S ∈ Rm×m;
2. calculating matrix S all characteristic values and characteristic vector, and reject characteristic value less than 0.0001 and its corresponding
Characteristic vector, obtains matrix B=[b of characteristic vector composition1, b2..., bM]∈Rm×MAnd eigenvalue cluster into diagonal matrix D
∈RM×M;
3. according to formulaIt is rightWhitening processing is carried out to obtain matrix Z;
Step 3:It is training data using ICA algorithmSolution obtains separation matrix W ∈ Rm×p, wherein p is in separation matrix
Column vector number, corresponding implementation process is as shown in Fig. 2 specifically include below scheme:
1. setting needs the independent element number p extracted, and initializes k=1;
2. unit matrix I ∈ R are chosenM×MIn kth arrange as vectorial ckInitial value;
3. according to formula ck←E{Zg(ck TZ)}-E{h(ck TZ)}ckRenewal vector ck, wherein, g (ck TZ) with h (ck TZ)
Calculation is as follows:
g(ck TZ)=4 (ck TZ)3 (1)
h(ck TZ)=12 (ck TZ)2 (2)
E { } represents to ask for the average value of vector;
4. to the vectorial c after renewalkCarry out orthonomalization processing according to the following formula successively:
ck←ck/||ck|| (4)
5. repeat 3.~4. until vector ckMiddle each element no longer changes, and then preserves vector ck
6. k < p are judgedReturned 2. after k=k+1 if so, being put;If it is not, by d vector c of preservation1, c2..., cpComposition one
Individual Matrix C=[c1, c2..., cd]∈RM×d。
7. the hybrid matrix A and separation matrix W of ICA models are calculated respectively according to formula as follows:
A=CTD1/2BT (5)
W=BD-1/2C (6)
Step 4:According to separation matrix W=[w1, w2..., wp] in each column vector wj∈Rm×1The difference of element, is corresponded to
MatrixIn each row assign different weights, obtain data matrix X according to formula as followsj:
Wherein, the element w on lower label j=1,2 ..., p, diagonalJ, 1, wJ, 2..., wJ, mIt is vectorial w respectivelyjIn the 1st,
2 ..., m elements.
Step 5:It is respectively the training data matrix X after dimension changes to reuse ICA algorithm1, X2..., XpSolve separation
Matrix (W1, W2..., Wp) and hybrid matrix (A1, A2..., Ap), specific implementation process is similar with step 3, no longer goes to live in the household of one's in-laws on getting married here
State.
Step 6:It is determined that the control limit corresponding to each ICA model malfunction monitoring statistics, reserving model parameter set Θ1,
Θ2..., ΘpIn case on-line monitoring is called, specific implementation process is as follows:
1. according to formula Yj=XjWjCalculating obtains independent element matrix Yj∈Rn×p;
2. according to formula Ej=Xj-YjAj TCalculating obtains residual matrix Ej∈Rn×m;
3. according to formula t=diag (YjYj T) calculate vector t ∈ Rn×1, wherein diag (YjYj T) represent matrix YjYj T's
Diagonal entry constitutes column vector;
4. the numerical value for coming the n-th/10 is defined as statistic I by the element in vectorial t from being arranged to small descending greatlyj 2
Control limit
5. according to formula q=diag (EjEj T) calculate vector q ∈ Rn×1;
6. the numerical value for coming the n-th/10 is defined as statistic Q by the element in vectorial q from being arranged to small descending greatlyj
Control limit QJ, hm;
7. reserving model parameter set
Step 7:The data x of the new sampling instant of gatherer process objectnew∈Rm×1, it is identical to granting training dataset X in fact
Standardization obtain
Step 8:According to each column vector w in separation matrix Wj, according to formula pair as followsIn each measurand it is real
Apply identical weighting processing:
Correspondence obtains the data vector y after dimension changesj∈R1×m, wherein, the transposition of upper label T representing matrixs or vector.
Step 9:Calling model parameter set Θ1, Θ2..., ΘpImplement online fault detect, and utilization Bayesian inference will
Multiple monitoring and statisticses amounts are fused to probability level to facilitate decision-making failure whether to occur, and specific implementation process is as follows:
1. parameter set Θ is utilizedjIn separation matrix WjAnd Aj, monitoring and statisticses amount I is calculated according to formula as followsj 2With
QJ, hm:
Ij 2=yjWjWj Tyj T (9)
Qj=| | yj-yjWjAj T||2 (10)
In above formula, symbol | | | | represent to ask for the length of vector;
2. according to formula design conditions probability as follows
In above formula, N and F represent normal and fault condition respectively;
3. probability is calculated according to formula as follows
In above formula, β is confidence limit, generally takes β=99%;
4. new data is calculated according to formula as followsBelong to the probability of failure
5. calculated according to formula as follows and obtain corresponding to Ij 2The probability fusion index BI of statistic:
6. calculate and correspond to QjThe probability fusion index BQ of statistic implementation process and above step 2.~it is 5. similar, this
In just repeat no more;
7. judge whether BI or BQ index values are more than 1- βIf so, then triggering fault warning;If it is not, it is next to continue monitoring
The data sample of individual sampling instant.
Above-mentioned case study on implementation is only used for illustrating the specific implementation process of the present invention, rather than the present invention is limited
System.In the protection domain of spirit and claims of the present invention, any modification made to the present invention both falls within the present invention's
Protection domain.