Non-stationary process fault detection method based on augmented stationary subspace analysis
Through augmented stationary subspace analysis and Wasserstein distance processing, the Mahalanobis distance index is calculated, which solves the problem of false positives and false negatives in fault detection in complex non-stationary industrial processes, and achieves highly sensitive fault detection, which is suitable for complex non-stationary processes. Online monitoring.
Patent Information
- Application Number
- CN202410606173.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technology is difficult to effectively detect faults in complex non-stationary industrial processes, often causing production safety hazards due to false positives or missed negatives. Moreover, traditional methods are complex and have poor detection results.
A method based on augmented stationary subspace analysis is adopted to collect and process data, calculate the Mahalanobis distance index for fault detection, and use Wasserstein distance and kernel density estimation to realize fault detection of non-stationary processes.
It achieves high-sensitivity fault detection for complex non-stationary processes without distinguishing between stationary variables and non-stationary variables. It can accurately judge faults in mixed situations and improves the detection effect.
Smart Images

Figure CN118690129A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of industrial process monitoring and fault diagnosis, and in particular relates to a fault detection method for a complex non-stationary industrial process. Background Art
[0002] In the actual industrial production process, due to the increasing complexity of the system, environmental changes, equipment aging, human operation, raw material changes and other reasons, the non-stationary characteristics of the process are widely present. On the one hand, traditional monitoring methods are almost all aimed at stationary processes, and the modeling of non-stationary processes is often unsatisfactory. Therefore, normal non-stationary trends are often mistakenly identified as faults, resulting in false alarms; on the other hand, if a fault occurs, its characteristics are easily masked by the changing trend of the non-stationary process, resulting in missed reports; in addition, the mixed existence of stationary variables and non-stationary variables in industrial processes will also bring some challenges to fault detection. Therefore, the harm of non-stationary process failures cannot be underestimated. Timely detection and effective protective measures are of great significance to improving the level of industrial production and protecting people's lives and property.
[0003] At present, fault detection methods for non-stationary industrial processes can be roughly divided into three categories: adaptive update method, time series method, and subspace decomposition method. Among them, the subspace decomposition method is widely used because it is easy to understand and has high adaptability. The typical representative method is stationary subspace analysis (SSA), which decomposes the space where the original data is located into stationary subspace and non-stationary subspace, and then constructs statistics in the stationary subspace for fault detection. Generally speaking, non-stationary processes often contain both stationary variables and non-stationary variables, as well as non-stationary variables that need to be differentially processed. Traditional methods use ADF tests to distinguish stationary variables from non-stationary variables, and use differential methods to process non-stationary variables. These make fault detection complicated, and the detection effect will not be effectively improved.
[0004] Therefore, a new fault detection method is urgently needed to realize online monitoring of complex non-stationary industrial processes. Summary of the invention
[0005] In view of the above technical problems existing in the prior art, the present invention proposes a fault detection method for complex non-stationary industrial processes, which has a reasonable design, overcomes the shortcomings of the prior art and has good effects.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] A non-stationary process fault detection method based on augmented stationary subspace analysis comprises the following steps:
[0008] Step 1: Collect a section of measurement data under normal working conditions of a non-stationary industrial process as a training data set;
[0009] Step 2: Augment the training data set to obtain augmented data;
[0010] Step 3: Use the stationary subspace analysis method to find the stationary projection matrix of the augmented data in step 2, and obtain the stationary data after projection;
[0011] Step 4: Use Wasserstein distance to probabilistically process the stationary data obtained in step 3 to obtain a new data matrix;
[0012] Step 5: Calculate the mean and covariance of the new data matrix constructed in step 4, and then calculate the Mahalanobis distance index, and use kernel density estimation to calculate the control limit of the Mahalanobis distance index;
[0013] Step 6: Collect measurement data under real-time conditions of non-stationary industrial processes as test data;
[0014] Step 7: Use the augmentation parameters of step 2 to augment the test data, and use the stationary projection matrix of step 3 to stabilize the augmented data, and then use the Wasserstein distance to probabilistically process the obtained stationary data;
[0015] Step 8: Use the mean and covariance parameters in step 5 to calculate the Mahalanobis distance index of the probabilized data in step 7, and compare it with the control limit in step 5 to determine whether a fault occurs, thereby achieving fault detection.
[0016] Preferably, step 2 is specifically:
[0017] For the original data:
[0018]
[0019] Where t is the sampling time, N is the number of samples, and m is the number of variables; let the augmentation parameter be l, then the augmented data is:
[0020]
[0021] x A (t) = [x T (t),x T (t-1),...,x T (tl)] T ,t=l+1,l+2,...,N
[0022] Among them, X A is the augmented data set, the number of samples is reduced to Nl, and the number of variables is increased to m(l+1);A (t) is the augmented sample at time t.
[0023] Preferably, step 3 is specifically:
[0024] The augmented data {x A (t), t=l+1,l+2,...,N} is divided into n continuous and non-overlapping data segments, where the mean vector and covariance matrix of the i-th data segment are represented by μ i and Σ i ; and calculate the average of the mean vector and covariance matrix of all data segments, recorded as:
[0025]
[0026]
[0027] Find the S matrix:
[0028]
[0029] Then solve the following generalized eigenvalue problem:
[0030]
[0031] Its solution is a set of generalized eigenvalues λ j and the eigenvector If the eigenvalues are set in ascending order, then the d eigenvectors corresponding to the d smallest eigenvalues constitute a stationary projection matrix:
[0032]
[0033] Then the stationary data after projection is:
[0034]
[0035] in,
[0036] Preferably, step 4 is specifically:
[0037] For S A Windowing is performed to construct new samples, where the window width is set to ω, then the window sample group at the tth moment is expressed as:
[0038]
[0039] Among them, {t=l+ω,l+ω+1,...,N}, the Wasserstein distance vector between the window sample group at the tth moment and the overall sample is expressed as:
[0040] w A(t) = [w A,1 (t),w A,2 (t),...,w A,d (t)] T ;
[0041] in:
[0042]
[0043] Among them, g(·) represents the probability density function, w A,i (t) represents the Wasserstein distance of the ith variable at time t, S A,i Represents the projection stationary data matrix S A The vector composed of the i-th variable is the matrix S A The i-th column of Represents the window sample group at the tth moment The vector composed of the i-th variable is the matrix The i-th column of ; Finally, a new data matrix is constructed:
[0044]
[0045] For two probability distributions g1 and g2, the Wasserstein distance is defined as:
[0046]
[0047] Among them, Γ(g1,g2) is the set of all joint distributions that satisfy the marginal distributions g1 and g2, and γ(x,y) represents the joint probability distribution.
[0048] Preferably, step 5 is specifically:
[0049] Step 4 constructed Its mean vector is recorded as The covariance matrix is recorded as The control limits of the Mahalanobis distance index are estimated by kernel density estimation, and α is the significance level;
[0050] The Mahalanobis distance index is calculated as follows:
[0051]
[0052] Control limit σ w Calculate according to the following formula:
[0053]
[0054] Where P(·) and p(·) are the probability distribution and probability density function respectively, and p(·) is estimated using the following kernel density estimation method:
[0055]
[0056] Where h is the bandwidth and the kernel function K(·) is a Gaussian kernel function.
[0057] Preferably, step 7 is specifically:
[0058] The current test sample in the test phase is x′(t). Similar to step 2, x′ is obtained by augmenting the test sample l moments ahead. A (t); Use the projection matrix B obtained in step 3 to add the augmented test data s Projecting, we get:
[0059]
[0060] Then use the window parameter ω in step 4 to calculate the window sample group at the current test time, i.e., time t And calculate its difference with the overall training sample S A The Wasserstein distance is as follows:
[0061] w′ A (t) = [w′ A,1 (t),w′ A,2 (t),...,w′ A,d (t)] T ;
[0062] in:
[0063]
[0064] Preferably, step 8 is specifically:
[0065] Calculate the test data w′ A The Mahalanobis distance index of (t) is as follows:
[0066]
[0067] in, and C w is the parameter in step 5, and the Mahalanobis distance index D′ w (t) and the control limit σ in step 5 w Contrast: When D′ w (t)>σ w , it is considered that the non-stationary industrial process has a fault; otherwise, it is considered that there is no abnormality in the industrial process.
[0068] Beneficial technical effects brought by the present invention:
[0069] The present invention can realize fault detection of complex non-stationary processes without distinguishing between stationary variables and non-stationary variables, and has high sensitivity. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 is a flow chart of a non-stationary process fault detection method based on augmented SSA according to an embodiment of the present invention;
[0071] Figure 2 is a flowchart of an offline modeling process according to an embodiment of the present invention;
[0072] Figure 3 is a flow chart of an online detection process according to an embodiment of the present invention;
[0073] Figure 4 It is a schematic diagram of the detection result of the ventilation rate failure in the penicillin fermentation process based on the method proposed by the present invention according to an example of the present invention;
[0074] Figure 5 It is a schematic diagram of the detection result of the agitator power failure in the penicillin fermentation process based on the method proposed by the present invention according to an example of the present invention. DETAILED DESCRIPTION
[0075] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0076] Figure 1 The present invention is a flowchart of a non-stationary industrial process fault detection method based on the stationary subspace analysis (SSA) method according to an embodiment of the present invention. The method first extracts variable differential information by means of augmentation technology, then uses Wasserstein distance to measure the change of variable distribution, and finally uses Mahalanobis distance indicator for fault detection. The method includes the following steps:
[0077] Step S110, collecting a section of measurement data under normal working conditions of a non-stationary industrial process as a training data set.
[0078] Step S120: Given appropriate augmentation parameters, augmented data is obtained.
[0079] Step S130, using the SSA method to calculate the stationary projection matrix of the augmented data in step S120, and obtain the projected stationary data.
[0080] Step S140, using Wasserstein distance to perform probabilistic processing on the stationary data obtained in step S130 to obtain a new data matrix.
[0081] Step S150, calculating the mean and covariance of the new data matrix constructed in step S140, and then calculating the Mahalanobis distance index, and using kernel density estimation (KDE) to calculate the control limit of the Mahalanobis distance index.
[0082] Step S160, collecting measurement data under real-time working conditions of a non-stationary industrial process as test data.
[0083] Step S170, augmenting the test data using the augmentation parameters of step S120, and smoothing the augmented data using the smooth projection matrix of step S130, and then probabilistically processing the obtained smooth data using the Wasserstein distance.
[0084] Step S180, using the mean and covariance parameters in step S150 to calculate the Mahalanobis distance index of the probabilized data in step S170, and comparing it with the control limit in step S150 to determine whether a fault occurs, thereby achieving fault detection.
[0085] Among them, steps S110, S120, S130, S140 and S150 are offline modeling processes, and steps S160, S170 and S180 are online detection processes.
[0086] Figure 2 Detailed steps of the offline modeling process of the embodiment of the present invention are shown in the flowchart. The specific implementation steps are as follows.
[0087] (1) Step S210, collect a section of measurement data under normal working conditions of a non-stationary industrial process as a training data set, and store it as a two-dimensional matrix. Specifically, the collected training data is stored as a data matrix Each row represents a sample, each column represents a variable, and the data matrix contains N samples and m variables.
[0088] (2) Step S220: Given an appropriate augmentation parameter, augment the training data of step S210. Specifically, let the augmentation parameter be l, then X A is the augmented data set, the sample size is reduced to Nl, the number of variables is increased to m(l+1), and x is A (t) is the augmented sample at time t.
[0089] (3) Step S230, using the SSA method to find the stationary projection matrix of the augmented data in step S220, and obtain the stationary data after projection. Specifically, the projection matrix is obtained by SSA And augment the dataset X A Projection to obtain stable data
[0090] (4) Step S240, using Wasserstein distance to perform probabilistic processing on the stationary data obtained in step S230 to obtain a new data matrix. Specifically, the window sample set is constructed using the window parameter ω And calculate the relationship between each variable and the overall sample S A The Wasserstein distance of the corresponding variable in , traversing all moments to obtain a new data matrix is recorded as Contains (Nl-ω+1) samples. Among them, Represents the vector consisting of the Wasserstein distance between the window sample group and the overall sample at the tth moment.
[0091] (5) Step S250, calculate the mean and covariance of the new data matrix constructed in step S240, and then calculate the Mahalanobis distance index, and use KDE to calculate the control limit of the Mahalanobis distance index. Specifically, the mean vector of the new data matrix W constructed in step S240 is recorded as The covariance matrix is recorded as The control limit σ of the Mahalanobis distance index w It is estimated by KDE, α is the significance level, usually taken as 0.01.
[0092] Figure 3 Detailed steps of the online detection process of the embodiment of the present invention are shown in the flowchart. The specific implementation steps are as follows.
[0093] (1) Step S310, collecting measurement data under real-time working conditions of a non-stationary industrial process as test data.
[0094] (2) Step S320: Augment the test data in step S310 using the same augmentation parameters as in the offline modeling process. Specifically, similar to step S220, the augmented sample at the current moment is denoted as x′ A (t).
[0095] (3) Step S330, using the stationary projection matrix in the offline modeling process to stabilize the augmented data obtained in step S320. Specifically, the stationary sample is recorded as
[0096] (4) Step S340, using the Wasserstein distance to perform probabilistic processing on the stationary data obtained in step S330. Specifically, the window sample group at time t is calculated using the same window parameter ω as in the offline step S240. And calculate its difference with the overall training sample S A The Wasserstein distance of A(t), and w in step S240 during the offline modeling process A (t) Similarity of method.
[0097] (5) Step S350, using the mean and covariance parameters in the offline modeling process to calculate the Mahalanobis distance of the probabilized data in step S340, and compare it with the control limit in the offline modeling process to determine whether a fault has occurred. Specifically, w′ in step S340 is A (t) minus the mean in step S250 of the offline modeling process And using the covariance C w Calculate the Mahalanobis distance metric And D′ w (t) and the control limit σ in step S250 w Compare, if D′ w (t)>σ w , it is considered that the non-stationary industrial process has a fault; otherwise, it is considered that there is no abnormality in the industrial process.
[0098] The non-stationary process fault detection method based on augmented SSA in the embodiment of the present invention utilizes a large amount of normal data that is easily obtained from industrial processes to build a model, and uses the model for online detection. It does not require a complex mechanism model of the industrial process, and does not require fault data that is difficult to obtain or mark. The method is easy to implement; it can mine more information when there is no long-term equilibrium relationship between variables; it is sensitive to minor faults and can sensitively sense changes in sample distribution.
[0099] The detection method of the embodiment of the present invention processes the data matrix with the help of augmentation technology, then applies SSA to process the data, applies Wasserstein distance to process the change of sample distribution, and finally constructs the Mahalanobis distance index for fault detection. Compared with the traditional multivariate statistical analysis method, it can detect faults in non-stationary industrial processes; in addition, it is also highly applicable to complex non-stationary processes where both stationary and non-stationary variables exist.
[0100] Example
[0101] In order to help understand the present invention and intuitively demonstrate its effect in complex non-stationary industrial processes, an example is described below. This example is based on Matlab tools and uses a penicillin fermentation process simulation example in the existing literature (Gülnur Birol et al., Computers & Chemical Engineering, 2002, 26 (11): 1553-1565) to illustrate the present invention, and the effects of the present invention are demonstrated in conjunction with the accompanying drawings.
[0102] (1) Generate training data.
[0103] There are 18 variables in the simulation. This example selects 13 variables in the simulation, as shown in Table 1. i , i=1,2,...,13} represents 13 measurement variables, that is, m=13, and a total of 4000 training samples are generated within 400 hours, that is, N=4000. All samples are stored as a two-dimensional data matrix in the way that each row represents a sample and each column represents a variable.
[0104] Table 1
[0105]
[0106] (2) Given an appropriate augmentation parameter l, calculate the augmented data.
[0107] In this example, the augmentation parameter l is selected as l=1, so the sample size of the augmented data set is reduced to 4000-1=3999, and the number of variables is increased to 13*(1+1)=26.
[0108] (3) Stabilize the data.
[0109] Divide the augmented data into n = 15 continuous and non-overlapping data segments, and calculate the mean and covariance of each data segment Then, on this basis, the S matrix is obtained to solve the generalized eigenvalue problem: Find the stable projection matrix The value of d is obtained from the ADF test. Finally, the augmented data is projected stably to obtain:
[0110] (4) Probabilize the data.
[0111] For S A Windowing is performed to construct new samples, where the window width is set to ω = 25, and Nl-ω+1 = 4000-1-25+1 = 3975 window sample groups are constructed.
[0112] That is, the Wasserstein distance vector w between the window sample group and the overall sample A (t) also has a total of 3975, and its vector dimension is 5.
[0113] (5) Calculate the Mahalanobis distance index and give the control limit.
[0114] Calculate all the above data samples w A The mean and covariance of (t) are given, and the control limits of the Mahalanobis distance index are given. Here we find the Mahalanobis distance index D w(t), and use KDE to calculate the control limits, specifying the significance level as α = 0.01, and the control limit of the Mahalanobis distance index as 19.8263.
[0115] (6) Construct test data.
[0116] In this example, two types of faults are considered: ventilation rate fault and stirrer power fault. A total of 4000 samples are collected over 400 hours, and the fault occurs from the 1001st sample.
[0117] (7) Process the test data set.
[0118] The same augmentation parameter l = 1 as in (2) is used for augmentation; the projection matrix in (3) is used Stabilize the data; construct a window sample group with a window width of ω = 25 and compare it with the sample group S of the training data in (3) A Find the Wasserstein distance of each variable to form the Wasserstein distance vector w′ of the test data A (t).
[0119] (8) Perform fault detection on the test data.
[0120] Find w′ A (t) The corresponding Mahalanobis distance index is used to complete the fault detection. The fault detection result is as follows: Figure 4 , Figure 5 As shown in the figure, the detection results of the two fault types correspond to each other. It can be seen that after the fault occurs, the Mahalanobis distance index D w The detection indexes of the two fault types have a false alarm rate (FAR) of 1.30%, fluctuating around the significance level of 1%, which is within a reasonable range. The detection indexes of the two fault types have a fault detection rate (FDR) of 98.47% and 88.30%, respectively, which are relatively ideal results.
[0121] In addition, a comparison is made with the traditional method. The test result diagram is not given here, only the FAR and FDR evaluation indicators of the method are listed. For the traditional principal component analysis method, the FAR of the Q index is 9.60%, the FDR is 0.00%, and the T 2The FAR of the indicators is 32.50%, and the FDR is 0.00%. It can be seen that the FAR is high, indicating that it is ineffective for non-stationary processes. The traditional SSA method has a FAR of 3.60%, which is slightly higher than the significance level. The FDRs are 0.93% and 0.53%, respectively, and it is unable to effectively detect these two types of faults. For the dynamic SSA method, the FAR is 0.70%, fluctuating around the significance level. The FDRs are 8.60% and 4.47%, respectively, and it is unable to effectively detect faults. By comparison, it can be found that the method proposed in the present invention can well detect two types of non-stationary process faults.
[0122] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A non-stationary process fault detection method based on augmented stationary subspace analysis, characterized by: The steps include: Step 1: Collect a section of measurement data under normal working conditions of a non-stationary industrial process as a training data set; Step 2: Augment the training data set to obtain augmented data; Step 3: Use the stationary subspace analysis method to find the stationary projection matrix of the augmented data in step 2, and obtain the stationary data after projection; Step 4: Use Wasserstein distance to probabilistically process the stationary data obtained in step 3 to obtain a new data matrix; Step 5: Calculate the mean and covariance of the new data matrix constructed in step 4, and then calculate the Mahalanobis distance index, and use kernel density estimation to calculate the control limit of the Mahalanobis distance index; Step 6: Collect measurement data under real-time conditions of non-stationary industrial processes as test data; Step 7: Use the augmentation parameters of step 2 to augment the test data, and use the stationary projection matrix of step 3 to stabilize the augmented data, and then use the Wasserstein distance to probabilistically process the obtained stationary data; Step 8: Use the mean and covariance parameters in step 5 to calculate the Mahalanobis distance index of the probabilized data in step 7, and compare it with the control limit in step 5 to determine whether a fault occurs, thereby achieving fault detection.
2. The non-stationary process fault detection method based on augmented stationary subspace analysis according to claim 1 is characterized by: Step 2 is as follows: For the original data: Where t is the sampling time, N is the number of samples, and m is the number of variables; let the augmentation parameter be l, then the augmented data is: x A (t)=[x T (t),x T (t-1),...,x T (t-l)] T ,t=l+1,l+2,...,N Among them, X A is the augmented data set, the number of samples is reduced to Nl, and the number of variables is increased to m(l+1); A (t) is the augmented sample at time t.
3. The non-stationary process fault detection method based on augmented stationary subspace analysis according to claim 1 is characterized by: Step 3 is as follows: The augmented data {x A (t), t=l+1,l+2,...,N} is divided into n continuous and non-overlapping data segments, where the mean vector and covariance matrix of the i-th data segment are represented by μ i and Σ i ; and calculate the average of the mean vector and covariance matrix of all data segments, recorded as: Find the S matrix: Then solve the following generalized eigenvalue problem: Its solution is a set of generalized eigenvalues λ j and the eigenvector If the eigenvalues are set in ascending order, the d eigenvectors corresponding to the d smallest eigenvalues constitute a stationary projection matrix: Then the stationary data after projection is: in, 4. The non-stationary process fault detection method based on augmented stationary subspace analysis according to claim 1 is characterized by: Step 4 is as follows: For S A Windowing is performed to construct new samples, where the window width is set to ω, then the window sample group at the tth moment is expressed as: Among them, {t=l+ω,l+ω+1,...,N}, the Wasserstein distance vector between the window sample group at the tth moment and the overall sample is expressed as: in: Among them, g(·) represents the probability density function, w A,i (t) represents the Wasserstein distance of the ith variable at time t, S A,i Represents the projection stationary data matrix S A The vector composed of the i-th variable is the matrix S A The i-th column of Represents the window sample group at the tth moment The vector composed of the i-th variable is the matrix The i-th column of ; Finally, a new data matrix is constructed: For two probability distributions g1 and g2, the Wasserstein distance is defined as: Among them, Γ(g1,g2) is the set of all joint distributions that satisfy the marginal distributions g1 and g2, and γ(x,y) represents the joint probability distribution.
5. The non-stationary process fault detection method based on augmented stationary subspace analysis according to claim 1 is characterized by: Step 5 is as follows: Step 4 constructed Its mean vector is recorded as The covariance matrix is recorded as The control limits of the Mahalanobis distance index are estimated by kernel density estimation, and α is the significance level; The Mahalanobis distance index is calculated as follows: Control limit σ w Calculate according to the following formula: Where P(·) and p(·) are the probability distribution and probability density function respectively, and p(·) is estimated using the following kernel density estimation method: Where h is the bandwidth and the kernel function K(·) is a Gaussian kernel function.
6. The non-stationary process fault detection method based on augmented stationary subspace analysis according to claim 1 is characterized by: Step 7 is as follows: The current test sample in the test phase is x′(t). Similar to step 2, x′ is obtained by augmenting the test sample l moments ahead. A (t); Use the projection matrix B obtained in step 3 to add the augmented test data s Projecting, we get: Then use the window parameter ω in step 4 to calculate the window sample group at the current test time, i.e., time t And calculate its difference with the overall training sample S A The Wasserstein distance is as follows: w′ A (t)=[w′ A,1 (t),w′ A,2 (t),...,w′ A,d (t)] T ; in:
7. The non-stationary process fault detection method based on augmented stationary subspace analysis according to claim 1 is characterized by: Step 8 is as follows: Calculate the test data w′ A The Mahalanobis distance index of (t) is as follows: in, and Cw are the parameters in step 5, and the Mahalanobis distance index D′ w (t) and the control limit σ in step 5 w Contrast: When D′ w (t)>σ w , it is considered that the non-stationary industrial process has a fault; otherwise, it is considered that there is no abnormality in the industrial process.
Citation Information
Cited By
Data knowledge combined driven dynamic industrial process early fault separation method
CN121561741A
Non-stationary industrial process monitoring method and system
CN121858929A
Closed-loop process monitoring method based on improved dynamic latent variable analysis
CN122411094A
