Fault detection method and system based on multi-scale time sequence mechanism
Through the slow feature analysis of the multi-scale timing mechanism and the generation of timing regression coefficient vectors, the problem of single differentiated features in fault detection in the existing technology is solved, a more comprehensive fault detection of industrial process sampling data is achieved, and the detection accuracy is improved. Comprehensiveness and reliability.
Patent Information
- Application Number
- CN202410889466.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The existing technology relies on a single projection change direction in fault detection, resulting in too single differentiated features, possibly missing differentiated features of potential faults, and making it difficult to distinguish between online sampling data and fault data under normal working conditions.
Using a multi-scale timing mechanism, multiple error vectors are generated through slow feature analysis and timing regression coefficient vectors to achieve fault detection from multiple timing change angles to ensure comprehensiveness and reliability.
Error characteristics are generated through a multi-scale timing mechanism to achieve a more comprehensive differentiated feature representation and fault detection of industrial process sampling data, improving the comprehensiveness and reliability of detection.
Smart Images

Figure CN118779796A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data-driven fault detection, and in particular to a fault detection method and system based on a multi-scale time series mechanism. Background Art
[0002] With the rapid development of sensor technology and Internet of Things technology, industrial process objects represented by process industrial processes can measure, store, and transmit data from each measurement node in real time, which provides a solid data foundation for the implementation of data-driven fault detection. Real-time fault detection tasks aim to timely discover anomalies or faults that occur during the operation of industrial processes, which plays an important role in ensuring product quality and maintaining production safety. However, since the production process runs normally most of the time, data-driven fault detection can usually only implement feature learning representation for sampled data of normal operation, and the reliability of fault detection cannot be verified by feedback from fault data.
[0003] A paper titled "Bidirectional Dynamic Latent Variable Analysis for Closed-Loop Process Monitoring" published in the journal "IEEE Transactions on Industrial Electronics" in 2024 proposed an algorithm using bidirectional dynamic latent variable analysis, and verified its effectiveness for fault detection from the perspective of the temporal variation characteristics of the sampling data; the Chinese invention patent with application number / patent number 202210651302X discloses a method for detecting abnormal operation of a synthetic ammonia furnace based on temporal difference feature extraction, which discovers potential fault features by extracting the temporal difference variation characteristics of online sampling data relative to normal sampling data in real time. Both methods learn the temporal variation characteristics of sampling data, and identifying sampling data under faulty operating conditions depends on the anomaly in the temporal variation of sampling data.
[0004] Considering the stability of the state during normal production operation, the corresponding sampling data must have stable change characteristics in time series. Slow feature analysis, dynamic latent variable model, dynamic internal principal component analysis algorithm have been successively used to analyze and extract the time series characteristics of normal data, and the method technology based on this to realize fault detection has appeared many times in scientific research papers and patent literature, which fully demonstrates that the abnormal changes in the time series mechanism of sampling data can effectively reflect faults. In addition to representing the time series change mechanism of learning normal data, a Chinese invention patent with application number / patent number 2022106506399 discloses a method for detecting abnormal operation of a pre-decarbonization device based on an instant ARRG model. The autoregressive model obtained by instant learning generates the error between online sampling data and normal sampling data, thereby identifying whether the online sampling data is faulty.
[0005] It should be pointed out that from the implementation process of the above three methods, their common point is that the fault detection for each online sampling data is obtained through a projection transformation learned in real time online to obtain potential fault feature representation. Since there is only one projection change direction, the extracted differential features are bound to be too simplistic, and other potential fault differential features may be missed. If the online sampling data is derived from normal working conditions, then no matter which projection change direction is used for time series difference feature extraction or error generation, it is impossible to distinguish the difference between the online sampling data and the normal training data. When the online sampling data is collected from fault conditions, the time series differential features obtained from multiple scale analyses can achieve more comprehensive online representation learning of differential features, thereby implementing more reliable fault detection. Summary of the invention
[0006] The main technical problem to be solved by the present invention is: how to establish a multi-scale time series mechanism for sampling data to generate errors in real time and realize real-time fault detection of industrial process sampling data from the perspective of multi-scale time series changes.
[0007] The technical solution adopted by the present invention to solve the above-mentioned problem is: a fault detection method based on a multi-scale timing mechanism, which includes steps 1 to 4 shown below.
[0008] Step 1: Select N groups of sampling data with continuous sampling time from the historical database when the industrial process object is running normally, perform standardization on them respectively, and then arrange them in chronological order according to the sampling time to form a training data matrix X; wherein N is an integer not less than 500.
[0009] Step 2: Perform slow feature analysis on the training data matrix X to obtain D slow feature vectors.
[0010] Step 3: Determine the corresponding time series regression coefficient vector for each slow feature vector, and retain the corresponding time series error matrix.
[0011] Step 4: Set the threshold for identifying faults Then, according to the sampling time interval of the industrial process object, steps 4-1 to 4-3 as shown below are repeatedly executed.
[0012] Step 4-1: Get a set of sampling data at the latest sampling time t, perform standardization on it and record it as a column vector x t .
[0013] Step 4-2: Use each time series regression coefficient vector to represent the column vector x t Generate corresponding error vectors, and then calculate the difference indicators between each error vector and the corresponding timing error matrix.
[0014] Step 4-3: Determine whether the maximum value of the difference index is greater than the threshold If so, the industrial process object is operating faultily; if not, the industrial process object is operating normally.
[0015] In the above step 3, determining the corresponding time series regression coefficient vector for each slow feature vector is the key to realizing the multi-scale time series mechanism of the present invention. Each slow feature vector corresponds to a time series regression coefficient vector for the column vector x t Generate the corresponding error vector, thereby realizing the generation of multi-scale error features, and then detect x from the multi-scale level t The potential fault change characteristics in the system can ensure the comprehensiveness and reliability of fault detection.
[0016] It can be seen that the multi-scale time series mechanism involved in the present invention is a mechanism for generating D error vectors corresponding to multiple time series regression coefficient vectors. The implementation process of the above step 3 includes the following steps 3-1 to 3-3
[0017] Step 3-1: After setting the time series order equal to k, the N elements in the dth slow feature vector are recorded as s1, s2, ..., s N ; Wherein, k represents an integer not less than 2 and not greater than 10, and numbered d = 1, 2,…, D.
[0018] Step 3-2: According to the formula Build time sequence vector Then, through the formula Calculate the dth time series regression coefficient vector Among them, the time series matrix The superscript T represents the transpose of a matrix or vector, numbered i=1,2,…,k.
[0019] Step 3-3, according to formula X i =[x i,x i+1 ,…,x N-k+i ] T Construct a time series data matrix X1,X2,…,X k Then, according to the formula Calculate the dth timing error matrix E d ;in, express The first, second, to k-1th elements in x i ,x i+1 ,…,x N-k+i They represent the i-th column vector, the i+1-th column vector, and the N-k+i-th column vector in X respectively.
[0020] The above step 4-2 involves calling the D timing coefficient vectors established in step 3 to generate corresponding D error vectors, thereby calculating the difference indicators between them and their respective corresponding timing error matrices; the implementation process of the step 4-2 includes the following steps A-1 to A-3.
[0021] Step A-1: record the column vector of the k-1 consecutive sampling times before the latest sampling time t as x t-1 ,x t-2 ,…,x t-(k-1) Then, through the formula Generate the dth timing error vector e d .
[0022] Step A-2: Solve the generalized eigenvalue problem G d α=λL d After the eigenvector α corresponding to the maximum eigenvalue λ in α, the formula Normalize it; the matrix matrix
[0023] Step A-3: Use the formula Calculate the dth timing error vector e d and the corresponding timing error matrix E d The difference between the indicators
[0024] The above steps A-1 to A-3 are for using the dth time series regression coefficient vector as the data vector x t Generate the corresponding error vector e d , and then calculate the dth error vector e d and the corresponding d-th timing error matrix E d The difference between the indicators For those skilled in the art, when d is respectively equal to 1, 2, ..., D, the above steps A-1 to A-3 can be respectively obtained. On this basis, step 4-3 will The maximum value in is compared with the threshold to identify the fault.
[0025] It should be further explained that the difference index The calculation aims to distinguish the dth timing error vector e by α d Relative to the dth timing error matrix E d The difference between them, the objective function to achieve the difference distinction is as follows:
[0026] The above formula ① can be equivalently transformed into the following maximization problem with constraints:
[0027] The above formula ② can be converted into a standard generalized eigenvalue problem by Lagrange multiplier method: G d α=λL d α; that is, it corresponds to the specific implementation process in the above step A-2.
[0028] As an improvement of the present invention, when implementing step 3, the present invention preferably uses an adaptively set time series order to determine the corresponding time series regression coefficient vector for each slow feature vector. The specific implementation process includes steps B-1 to B-3 shown below.
[0029] Step B-1, initialization k = 2 and
[0030] Step B-2: Execute step 3-2 to obtain the dth time series coefficient vector Then, through the formula Calculate the error sum of squares Q k .
[0031] Step B-3, determine Q k Is it less than Q k-1 ; If yes, set k = k + 1 and return to step B-2; if no, set k = k - 1 and execute steps 3-1 to 3-3 to obtain the dth time series coefficient vector and the dth timing error matrix E d .
[0032] If the time series order is not set according to the above steps B-1 to B-3, all D time series regression coefficient vectors have the same dimension, that is, the total number of elements is equal, which is not conducive to distinguishing the time series regression differences at different time series scales; in contrast, the process of the above steps B-1 to B-3 is used to dynamically set different time series orders, which can fully consider the differences of various time series scales, and can better give play to the comprehensiveness of the error characteristics generated by the multi-scale time series mechanism, thereby improving the reliability of subsequent fault detection.
[0033] As a further improvement of the present invention, it is preferred that in step 2, a second-order slow feature analysis algorithm is used to perform slow feature analysis on X to obtain D slow feature vectors. The specific implementation process includes steps C-1 to C-3 shown below.
[0034] Step C-1: By formula Compute the second-order difference matrix in, and According to the formula The time series data matrix constructed; where x j ,x j+1 ,…,x N-3+j They represent the j-th column vector, the j+1-th column vector, to the N-3+j-th column vector in X, with serial numbers j=1, 2, 3.
[0035] Step C-2: Solve the generalized eigenvalue problem The eigenvectors p1, p2, ..., p corresponding to the smallest D eigenvalues in D Then, according to the formula Each eigenvector is normalized respectively; wherein η and p represent the eigenvalue and its corresponding eigenvector respectively, and are numbered d=1, 2,…, D.
[0036] Step C-3, by formula Calculate D slow eigenvectors ξ1,ξ2,…,ξ D .
[0037] The implementation of slow feature analysis relies on the slow feature analysis algorithm to obtain slow features that change slowly in the sampling time sequence. The classic slow feature analysis algorithm uses the first-order difference matrix After the transformation of the eigenvector p, the following conditions are met: At the same time, p T XX T p=1; In contrast, the improved solution of the present invention uses a second-order slow feature analysis algorithm, even if the time sequence of the feature scores after the feature vector p conversion changes slowly, that is:
[0038] because So the second-order difference matrix is calculated in step C-1 The above optimization problem with constraints can be transformed into a generalized eigenvalue problem by the Lagrange multiplier method. The solution is the implementation process of step C-2. Compared with the classic slow feature analysis algorithm, the second-order difference slow feature analysis algorithm can better explore the essence of slow feature changes.
[0039] As another improvement of the present invention, preferably in step 2, a sequence slow feature analysis algorithm is used to perform slow feature analysis on the X to obtain D slow feature vectors. The specific implementation process includes steps D-1 to D-5 shown below.
[0040] Step D-1, after setting the sequence order equal to C, initialize the coefficient vector b to be equal to any (C-1)×1 dimensional non-zero vector; where C is an integer not less than 3 and not greater than 5.
[0041] Step D-2: According to formula Y c =[x c ,x c+1 ,…,x N-C+c ] T Build a time series data matrix Y1,Y2,…,Y C ; where x c ,x c+1 ,…,x N-C+c They represent the cth column vector, c+1th column vector, to the N-C+cth column vector in X, with sequence number c=1, 2,…, C.
[0042] Step D-3, by formula After calculating the matrix A, we solve the generalized eigenvalue problem Aw = εXX T The eigenvector w corresponding to the largest eigenvalue ε in w; where b (c) Represents the cth element in the coefficient vector b.
[0043] Step D-4, by formula v c =Y c w calculates C score vectors v1,v2,…,v C Then, through the formula b = V T v C and Update the coefficient vector b; where the score matrix V = [v1, v2, …, v C-1 ].
[0044] Step D-5: Determine whether the coefficient vector b converges; if not, return to step D-3; if so, calculate the slow feature vector s=w T X, then according to the formula X = X-XssT / (s T s) After updating the training data matrix X, return to step D-2 until D slow feature vectors are obtained.
[0045] The implementation of the sequence slow feature analysis algorithm in the above steps is to extract slowly changing features on a long time scale, and the corresponding objective function is defined as follows:
[0046] Through the above constrained minimization problem, it can be found that the calculated difference matrix A time series data matrix of C continuously sampled time series is used, so that features that change slowly over long time series can be analyzed and extracted.
[0047] For the eigenvector w, minimize This is equivalent to maximizing Y C w and The correlation between them is:
[0048] When b is known, the maximization problem can be transformed into the generalized eigenvalue problem in step D-3 by the Lagrange multiplier method; and when w is known, Y1,Y2,…,Y C Projecting onto w, we get C score vectors v1, v2, …, v C After that, the above formula ⑤ is equivalent to converting to By using the Lagrange multiplier method, we can get: b = V T v C / ε; Considering that the constraint condition requires the length of b to be 1, the two formulas in step D-4 are designed to update the coefficient vector b.
[0049] As another improvement of the present invention, the present invention can also use a moving window slow feature analysis algorithm to implement slow feature analysis, and the specific implementation process includes steps E-1 to E-5 shown below.
[0050] Step E-1, set the moving window length to M, and then follow the formula Building a time series data matrix Where M is an integer not less than 3 and not greater than 5, x m ,x m+1 ,…,x N-M+m They represent the mth column vector, the m+1th column vector, to the N-M+mth column vector in X, with sequence m=1, 2, …, M.
[0051] Step E-2: According to the formula calculate The similarity between the other M-1 time series data matrices δ1,δ2,…,δ M-1 ;in, Representation calculation The sum of the squares of all elements in .
[0052] Step E-3: According to the formula The moving window difference matrix Z is calculated; among them, the weight coefficient θ m =δ m / (δ1+δ2+…+δ M-1 ).
[0053] Step E-4: Solve the generalized eigenvalue problem Z T Zq=ζXX T The eigenvectors q1,q2,…,q corresponding to the smallest D eigenvalues in q D , and then according to the formula Each eigenvector is normalized respectively; wherein ζ and q represent the eigenvalue and its corresponding eigenvector respectively, and are numbered d=1, 2,…, D.
[0054] Step E-5: Use the formula Calculate D slow eigenvectors ξ1,ξ2,…,ξ D .
[0055] Through step E-1, it can be found that this improvement scheme of the present invention uses multiple continuous time series data matrices, which is similar to another previous improvement scheme using sequence slow feature analysis. Therefore, both can analyze and extract slow feature components that change slowly over a long time scale. This is the first technical advantage of this improvement scheme.
[0056] In addition, through the implementation of subsequent steps E-2 and E-4, this technical solution avoids the implementation process of the sequence slow feature analysis algorithm in which it loops back and forth until convergence, and only solves the generalized eigenvalue problem once; therefore, the implementation process of the slow feature analysis using the moving window slow feature analysis algorithm has the technical advantage of being simple and quick to implement compared to the previous improvement solution.
[0057] As another improvement of the present invention, in step 1 and step 4-1 of the present invention, a time augmentation strategy is preferably used to preprocess each group of sampling data, and the implementation method of the time augmentation strategy is: each group of sampling data is merged with the sampling data of the previous a sampling moments; wherein a is an integer not less than 1 and not greater than 5.
[0058] Using the time series augmentation strategy, continuous a+1 groups of sampling data can be merged into one group of sampling data. The merged group of sampling data contains the time series information of each group of sampling data, which is more conducive to the subsequent implementation of slow feature analysis to extract slowly changing features in time series.
[0059] Similarly, in addition to using the time series augmentation strategy to improve the present invention, a neighbor augmentation strategy can also be used to preprocess each group of sampled data. The neighbor augmentation strategy includes the following three steps:
[0060] First, the N groups of sampled data selected in step 1 are recorded as N column vectors y1, y2, ..., y N , and record any set of sampled data to be preprocessed as column vector y.
[0061] Secondly, from y1,y2,…,y N Find the J column vectors with the smallest distance to y and mark them as y (1) ,y (2) ,…,y (J) ; Wherein, J represents an integer not less than 5 and not greater than 10.
[0062] Finally, y and y (1) ,y (2) ,…,y (J) Merge into a column vector, which represents a set of sampled data preprocessed using the nearest neighbor augmentation strategy.
[0063] Using the nearest neighbor augmentation strategy, each group of sampling data with adjacent spatial distribution can be formed into a column vector, thereby taking into account the spatial distribution characteristics of the sampling data. On this basis, slow feature analysis is implemented to further analyze and extract time series features, thus realizing dual multi-scale extraction of spatial and temporal features.
[0064] As another improvement of the present invention, it is preferred that the matrix G in the above step A-2 is d The calculation formula of G is replaced by d =(e d -μ d )(e d -μ d ) T ; Among them, the mean vector μ d The determination process is: first, from the timing error matrix E d Determine the column vectors in which the error vector e d The J column vectors with the smallest distance between them, and then set the mean vector μ d is equal to the average value of these J column vectors, where J represents an integer not less than 5 and not greater than 10.
[0065] This improvement scheme changes the matrix Gd The calculation formula of , which changes the solution of the generalized eigenvalue problem in step A-2, and also changes the difference index in step A-3 Calculation method; through the mean vector μ d The determination process can be found that the mean vector is the error vector e d The corresponding difference index can also reflect the difference in changes in the neighboring domain. Fault detection from the perspective of local distribution of errors can better cope with the non-Gaussian distribution characteristics of errors.
[0066] As another improvement of the present invention, step 4 is to set a threshold value for identifying faults through steps F-1 to F-2 as shown below:
[0067] Step F-1: Set the column vector x in sequence t is equal to the column vector of the 1st to Nth columns in the training data matrix X, and step 4-2 is performed simultaneously to retain the maximum value of the obtained difference index.
[0068] Step F-2: After calculating the average value μ and standard deviation σ of all the maximum values retained in step F-1, the threshold for identifying faults is given.
[0069] Setting the threshold through the above two steps can avoid the problem of the threshold being too large or too small due to human experience bias or probability density distribution assumption bias; although a threshold that is too large can reduce the false alarm rate of faults, it will increase the missed alarm rate of faults and be insensitive to fault detection; a threshold that is too small is sensitive to fault detection, but at the same time it will also cause a significant increase in the false alarm rate of faults; and this improvement scheme objectively and impartially provides a threshold setting method, which can largely avoid the problem of unreasonable threshold setting.
[0070] Based on the inventive concept of the above-disclosed fault detection method, the present invention also provides a fault detection system based on a multi-scale time series mechanism, which includes a hardware system consisting of a data acquisition unit, a data processing unit and a monitoring and display unit, and a software system consisting of a model training subsoftware system and an online execution subsoftware system; wherein the data acquisition unit acquires a set of sampling data of the latest sampling time t in real time according to the sampling time interval of the industrial process object, and sends it to the data processing unit immediately; the data processing unit first performs standardization processing on the received sampling data, and then calls the program stored in the online execution subsoftware system to further process the sampling data, and after obtaining the maximum value of the corresponding difference index, the maximum value is sent to the monitoring and display unit together with the threshold value immediately; after receiving the maximum value and the threshold value, the monitoring and display unit uses the latest sampling time t as the horizontal axis data and the received maximum value as the vertical axis data for real-time display, and at the same time displays the received threshold value in the form of a horizontal line.
[0071] The fault detection system realizes the implementation process of the aforementioned new fault detection method, and the key lies in: the model training subsoftware system will execute the program of steps 1 to 3 of a fault detection method described in claim 1 or 2 according to the initialization instruction, and pass the obtained timing error matrix to the online execution subsoftware system; the online execution subsoftware system stores the execution program of steps A-1 to A-3 of a fault detection method described in claim 1 or 2. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 It is an implementation flow chart of the present invention.
[0073] Figure 2 This is a process schematic diagram of the combustion process of the boiler to which the present invention is applied.
[0074] Figure 3 It is a schematic diagram of using the present invention to perform real-time fault detection.
[0075] Figure 4 The present invention is a flowchart of the implementation of the second-order slow feature analysis algorithm.
[0076] Figure 5 The present invention is a flowchart of the implementation of the sequence slow feature analysis algorithm.
[0077] Figure 6 The present invention is a flowchart for implementing the moving window slow feature analysis algorithm.
[0078] Figure 7 The diagram is a schematic diagram of real-time fault detection using an improved solution of the timing augmentation strategy according to the present invention.
[0079] Figure 8 The figure is a schematic diagram of the structure of the fault detection system according to the present invention. DETAILED DESCRIPTION
[0080] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0081] The present invention discloses a fault detection method based on a multi-scale timing mechanism, and its implementation process is as follows: Figure 1 In order to better explain the fault detection method disclosed in the present invention in detail, the following is selected: Figure 2 The boiler combustion process shown is used as the application object.
[0082] Figure 2 The boiler combustion process shown is an indispensable power equipment in industry. The steam it produces can not only provide heat source for the production process, but also serve as a power source for the steam turbine. The boiler equipment controls the boiler drum water level by manipulating the feed water flow, controls the steam pressure and furnace negative pressure by manipulating the fuel flow, the supply air flow, and the induced draft flow, and controls the temperature of the superheated steam by the spray water flow to meet the steam requirements for production. Therefore, a set of sampling data that can be obtained at each sampling moment includes sampling data corresponding to the nine measurement variables of feed water flow, drum water level, fuel flow, supply air flow, induced draft flow, steam pressure, furnace negative pressure, spray water flow, and superheated steam temperature.
[0083] according to Figure 1 The process shown, using the fault detection method disclosed in the present invention to implement fault detection includes steps 1 to 4 shown below.
[0084] Step 1: Select N=500 groups of sampling data with continuous sampling time from the historical database when the industrial process object is running normally, perform standardization on them respectively, and then arrange them in the order of sampling time to form a training data matrix X.
[0085] If the 500 sets of sampling data during normal operation are recorded as column vectors z1, z2, …, z 500 The purpose of standardization is to eliminate the dimensional influence of each measured variable. Therefore, the mean vector and standard deviation vector of these 500 column vectors are needed to make the mean value of each row vector in the training data matrix X 0 and the standard deviation 1.
[0086] Step 2: Perform slow feature analysis on the training data matrix X to obtain D=6 slow feature vectors.
[0087] Step 3: determine the corresponding time series regression coefficient vector for each slow feature vector, and retain the corresponding time series error matrix; the corresponding implementation process includes steps 3-1 to 3-3 shown below.
[0088] Step 3: Determine the corresponding time series regression coefficient vector for each slow feature vector, and retain the corresponding time series error matrix.
[0089] Step 3-1: After setting the time series order equal to k, the N elements in the dth slow feature vector are recorded as s1, s2, ..., s N ; Among them, k=3, number d=1,2,…,D.
[0090] Step 3-2: According to the formula Construct k time series vectors Then, through the formula Calculate the dth time series regression coefficient vector The superscript T represents the transpose of a matrix or vector, and the time series matrix Number i=1,2,…,k.
[0091] Step 3-3, according to formula X i =[x i ,x i+1 ,…,x N-k+i ] T Construct a time series data matrix X1,X2,…,X k Then, according to the formula Calculate the dth timing error matrix E d ;in, express The first, second, to k-1th elements in x i ,x i+1 ,…,x N-k+i They represent the i-th column vector, the i+1-th column vector, and the N-k+i-th column vector in X respectively.
[0092] Since the number d = 1, 2, ..., D, according to the above steps 3-1 to 3-3, D timing error matrices E1, E2, ..., E D .
[0093] Step 4: Set the threshold for identifying faults Afterwards, according to the sampling time interval of the boiler combustion process, steps 4-1 to 4-3 as shown below are repeated.
[0094] Step 4-1: Get a set of sampling data at the latest sampling time t, perform standardization on it and record it as a column vector x t .
[0095] Step 4-2: Use each time series regression coefficient vector to represent the column vector x tGenerate corresponding error vectors, and then calculate the difference indicators between each error vector and the corresponding timing error matrix respectively; the corresponding implementation process includes steps A-1 to A-3 shown below.
[0096] Step A-1: record the column vector of the k-1 consecutive sampling times before the latest sampling time t as x t-1 ,x t-2 ,…,x t-(k-1) Then, through the formula Generate the dth timing error vector e d .
[0097] Step A-2: Solve the generalized eigenvalue problem G d α=λL d After the eigenvector α corresponding to the maximum eigenvalue λ in α, the formula Normalize it; the matrix matrix
[0098] Step A-3: Use the formula Calculate the dth timing error vector e d and the corresponding timing error matrix E d The difference between the indicators
[0099] Step 4-3: Determine whether the maximum value of the difference index is greater than the threshold If so, the industrial process object is operating faultily; if not, the industrial process object is operating normally.
[0100] According to the above implementation process, the sampling data of the 400 latest sampling moments of the boiler combustion process are used for fault detection, and the maximum value and threshold value of the abnormal indicators at each sampling moment are plotted on Figure 3 In the figure, the horizontal line represents the threshold value, because the threshold value does not change after it is given.
[0101] from Figure 3 It can be seen that, starting from about 180 sampling time nodes, some kind of fault occurred in the boiler combustion process. The method disclosed in the present invention successfully detected the fault, and before the fault was eliminated, the maximum value of the abnormal index was above the horizontal line.
[0102] Another embodiment of the present invention is to use an adaptively set time series order to determine a corresponding time series regression coefficient vector for each slow feature vector. The specific implementation process includes the aforementioned steps B-1 to B-3.
[0103] The following three implementation cases use three different slow feature analysis algorithms to implement the slow feature analysis in step 2: First, using Figure 4 The implementation process of the second-order slow feature analysis algorithm shown in FIG. 1 performs slow feature analysis on the X to obtain D slow feature vectors, including steps C-1 to C-3; secondly, using the method Figure 5 The implementation process of the sequence slow feature analysis algorithm shown in FIG. 1 is to perform slow feature analysis on the X to obtain D slow feature vectors, including steps D-1 to D-5; thirdly, using the Figure 6 The implementation process of the moving window slow feature analysis algorithm shown in the figure performs slow feature analysis on the X to obtain D slow feature vectors, including steps E-1 to E-5.
[0104] The sixth embodiment of the present invention adopts a time series augmentation strategy to preprocess each group of sampling data, that is, each group of sampling data is merged with the sampling data of a consecutive sampling moments before it, so as to obtain each group of preprocessed sampling data.
[0105] When any set of sampled data is represented by a column vector x and preprocessed using the time series augmentation strategy, the sampled data of a consecutive sampling moments before the sampling moment corresponding to x are first recorded as column vectors x. -1 ,x -2 ,…,x -a , and then replace x with x -1 ,x -2 ,…,x -a Merge to get a set of preprocessed sampling data, namely:
[0106] Since each set of preprocessed sampling data contains data change information at multiple consecutive sampling moments, the fault detection effect of the time series augmentation strategy should be no less than that of the fault detection method without the time series augmentation strategy.
[0107] The fault detection method using the timing augmentation strategy performs fault detection on the same 400 latest sampling time sampling data as mentioned above. The corresponding fault detection details are shown in the figure below. Figure 7 As shown. Figure 7 and Figure 3 It can be found from the comparison that the fault detection rate of this embodiment involving the timing augmentation strategy is no less than that of Figure 3 The detection effect in .
[0108] In the augmentation preprocessing of the sampled data, the present invention is different from the sixth embodiment in that the nearest neighbor augmentation strategy is used to preprocess each group of sampled data. The nearest neighbor augmentation strategy is as follows: first, the N groups of sampled data selected in step 1 are recorded as N column vectors y1, y2, ..., y N , and record any set of sampled data to be preprocessed as column vector y; secondly, from y1,y2,…,yN Find J = 5 column vectors with the smallest distance to y and label them as y (1) ,y (2) ,…,y (N) ; Finally, y and y (1) ,y (2) ,…,y (J) Merge into a column vector, which represents a set of sampled data preprocessed using the nearest neighbor augmentation strategy.
[0109] The eighth embodiment of the present invention is to perform step A-2 according to formula G d =(e d -μ d )(e d -μ d ) T To calculate the matrix G d , where the mean vector μ d The determination process is: first, from the timing error matrix E d Determine the column vectors in which the error vector e d The J=5 column vectors with the smallest distance between them, and then set the mean vector μ d It is equal to the average value of these J=5 column vectors.
[0110] In order to more objectively identify the threshold value of fault The present invention can also set the threshold value according to the following steps F-1 to F-2:
[0111] Step F-1: Set the column vector x in sequence t is equal to the column vector of the 1st to Nth columns in the training data matrix X, and step 4-2 is performed simultaneously to retain the maximum value of the obtained difference index.
[0112] Step F-2: Calculate the average value μ and standard deviation σ of all the maximum values retained in step F-1, and then give the threshold for identifying faults
[0113] Finally, based on the same inventive concept, the present invention also discloses a fault detection system based on a multi-scale time series mechanism for fault detection in a boiler combustion process, and the system composition is as follows: Figure 8As shown, it includes a hardware system consisting of a data acquisition unit, a data processing unit and a monitoring and display unit, and a software system consisting of a model training subsoftware system and an online execution subsoftware system; wherein the data acquisition unit acquires a set of sampling data at the latest sampling moment in real time according to the sampling time interval of the industrial process object, and sends it to the data processing unit immediately; the data processing unit first performs standardization processing on the received sampling data, and then calls the program stored in the online execution subsoftware system to further process the sampling data, and after obtaining the maximum value in the corresponding difference index, the maximum value is sent to the monitoring and display unit together with the threshold value immediately; after receiving the maximum value and the threshold value, the monitoring and display unit uses the latest sampling moment as the horizontal axis data and the received maximum value as the vertical axis data for real-time display, and at the same time displays the received threshold value in the form of a horizontal line.
[0114] The model training sub-software system executes the program for implementing steps 1 to 3 in the aforementioned fault detection method and its improved solutions according to the initialization instructions, and passes the obtained timing error matrix to the online execution sub-software system; the online execution sub-software system stores the execution program for implementing steps A-1 to A-3 in the aforementioned fault detection method and its various improved solutions.
[0115] The above embodiments are only used to illustrate the present invention and its various improved technical solutions, rather than to limit the technical solutions. Modification or replacement of the technical solution of the present invention, without departing from the spirit and scope of the technical solution of the present invention, falls within the scope of protection required by the present invention.
Claims
1. A fault detection method based on a multi-scale timing mechanism, comprising steps 1 to 4 shown below: Step 1: Select N groups of sampling data with continuous sampling time from the historical database when the industrial process object is running normally, perform standardization on them respectively, and then arrange them in the order of sampling time to form a training data matrix X; in, N is an integer not less than 500. Step 2: Perform slow feature analysis on the training data matrix X to obtain D slow feature vectors; Step 3: Determine the corresponding time series regression coefficient vector for each slow feature vector, and retain the corresponding time series error matrix; Step 4: Set the threshold for identifying faults Then, according to the sampling time interval of the industrial process object, steps 4-1 to 4-3 as shown below are repeatedly performed; Step 4-1: Get a set of sampling data at the latest sampling time t, perform standardization on it and record it as a column vector x t ; Step 4-2: Use each time series regression coefficient vector to represent the column vector x t Generate corresponding error vectors, and then calculate the difference index between each error vector and the corresponding timing error matrix; Step 4-3: Determine whether the maximum value of the difference index is greater than the threshold If yes, the industrial process object is operating faulty; if no, the industrial process object is operating normally; It is characterized in that: the implementation process of step 3 includes the following steps 3-1 to 3-3; Step 3-1: After setting the time series order equal to k, the N elements in the dth slow feature vector are recorded as s 1 ,s 2 ,…,s N ; Wherein, k represents an integer not less than 2 and not greater than 10, and number d=1,2,...,D; Step 3-2: According to the formula Construct k time series vectors Then, through the formula Calculate the dth time series regression coefficient vector The superscript T represents the transpose of a matrix or vector, and the time series matrix Number i = 1, 2, ..., k; Step 3-3, according to formula X i =[x i ,x i+1 ,…,x N-k+i ] T Build the time series data matrix X 1 ,X 2 ,…,X k Then, according to the formula Calculate the dth timing error matrix E d ;in, express The first, second, to k-1th elements in x i ,x i+1 ,…,x N-k+i represents the i-th column vector, the i+1-th column vector, to the N-k+i-th column vector in X in sequence; The implementation process of step 4-2 includes the following steps A-1 to A-3: Step A-1: record the column vector of the k-1 consecutive sampling times before the latest sampling time t as x t-1 ,x t-2 ,…,x t-(k-1) Then, through the formula Generate the dth timing error vector e d ; Step A-2: Solve the generalized eigenvalue problem G d α=λL d After the eigenvector α corresponding to the maximum eigenvalue λ in α, the formula Normalize it; the matrix matrix Step A-3: Use the formula Calculate the dth timing error vector e d and the corresponding timing error matrix E d The difference between the indicators 2. A fault detection method according to claim 1, It is characterized in that When executing step 3, the adaptively set time series order is used to determine the corresponding time series regression coefficient vector for each slow feature vector. The specific implementation process includes steps B-1 to B-3 shown below: Step B-1, initialization k = 2 and Step B-2: Execute step 3-2 to obtain the dth time series coefficient vector Then, through the formula Calculate the error sum of squares Q k ; Step B-3, determine Q k Is it less than Q k-1 ; If yes, set k = k + 1 and return to step B-2; if no, set k = k - 1 and execute steps 3-1 to 3-3 to obtain the dth time series coefficient vector and the dth timing error matrix E d .
3. A fault detection method according to claim 1 or 2, It is characterized in that In step 2, a second-order slow feature analysis algorithm is used to perform slow feature analysis on X to obtain D slow feature vectors. The specific implementation process includes steps C-1 to C-3 shown below: Step C-1: By formula Compute the second-order difference matrix in, and According to the formula The constructed time series data matrix; where the sequence number j = 1, 2, 3; Step C-2: Solve the generalized eigenvalue problem The eigenvector p corresponding to the smallest D eigenvalues in 1 ,p 2 ,…,p D Then, according to the formula Each eigenvector is normalized respectively; wherein η and p represent the eigenvalue and its corresponding eigenvector respectively, and the number is d=1, 2, ..., D; Step C-3, by formula Calculate D slow eigenvectors ξ 1 ,ξ 2 ,…,ξ D .
4. A fault detection method according to claim 1 or 2, It is characterized in that The step 2 uses a sequence slow feature analysis algorithm to perform slow feature analysis on the X to obtain D slow feature vectors. The specific implementation process includes the following steps D-1 to D-5: Step D-1, after setting the sequence order equal to C, initialize the coefficient vector b to be equal to any (C-1)×1-dimensional non-zero vector; where C is an integer not less than 3 and not greater than 5; Step D-2: According to formula Y c =[x c ,x c+1 ,...,x N-C+c ] T Build the time series data matrix Y 1 ,Y 2 ,...,Y C ; Among them, sequence number c=1,2,…,C; Step D-3, by formula After calculating the matrix A, we solve the generalized eigenvalue problem Aw = εXX T The eigenvector w corresponding to the largest eigenvalue ε in w; where b (c) represents the cth element in the coefficient vector b; Step D-4, by formula v c =Y c w calculates C score vectors v 1 ,v 2 ,...,v C Then, through the formula b = V T v C and Update coefficient vector b; where score matrix V = [v 1 ,v 2 ,…,v C-1 ]; Step D-5: Determine whether the coefficient vector b converges; if not, return to step D-3; if so, calculate the slow eigenvector ξ=w T X, then according to the formula X = X-Xss T / (s T s) After updating the training data matrix X, return to step D-2 until D slow feature vectors are obtained.
5. A fault detection method according to claim 1 or 2, It is characterized in that The step 2 uses a moving window slow feature analysis algorithm to perform slow feature analysis on the X to obtain D slow feature vectors. The specific implementation process includes the following steps E-1 to E-5: Step E-1, set the moving window length to M, and then follow the formula Building a time series data matrix Wherein, M represents an integer not less than 3 and not greater than 5, and the serial number m=1,2,…,M; Step E-2: According to the formula calculate The similarity δ between the remaining M-1 time series data matrices 1 ,δ 2 ,…,δ M-1 ;in, Representation calculation The sum of the squares of all elements in ; Step E-3: According to the formula The moving window difference matrix Z is calculated; among them, the weight coefficient θ m =δ m / (δ 1 +δ 2 +…+δ M-1 ); Step E-4: Solve the generalized eigenvalue problem Z T Zq=ζXX T The eigenvector q corresponding to the smallest D eigenvalues in q 1 ,q 2 ,…,q D , and then according to the formula Each eigenvector is normalized respectively; wherein ζ and q represent the eigenvalue and its corresponding eigenvector respectively, and the numbers are d=1, 2, …, D; Step E-5: Use the formula Calculate D slow eigenvectors ξ 1 ,ξ 2 ,…,ξ D .
6. A fault detection method according to claim 1 or 2, It is characterized in that In both step 1 and step 4-1, a time series augmentation strategy is used to preprocess each group of sampling data. The implementation method of the time series augmentation strategy is: each group of sampling data is merged with the sampling data of a consecutive sampling moments before it; wherein a is an integer not less than 1 and not greater than 5.
7. A fault detection method according to claim 1 or 2, It is characterized in that In both step 1 and step 4-1, a neighbor augmentation strategy is used to preprocess each group of sampled data. The neighbor augmentation strategy includes the following steps: First, the N groups of sampled data selected in step 1 are recorded as N column vectors y 1 ,y 2 ,...,y N , and record any set of sampled data to be preprocessed as column vector y; Secondly, from y 1 ,y 2 ,…,y N Find the J column vectors with the smallest distance to y and mark them as y (1) ,y (2) ,…,y (J) ; Wherein, J represents an integer not less than 5 and not greater than 10; Finally, y and y (1) ,y (2) ,…,y (J) Merge into a column vector, which represents a set of sampled data preprocessed using the nearest neighbor augmentation strategy.
8. A fault detection method according to claim 1 or 2, It is characterized in that In step A-2, the matrix G d The calculation formula of G is replaced by d =(e d -μ d )(e d -μ d ) T , the mean vector μ d The determination process is: first, from the timing error matrix E d Determine the column vectors in which the error vector e d The J column vectors with the smallest distance between them, and then set the mean vector μ d is equal to the average value of these J column vectors; where J represents an integer not less than 5 and not greater than 10.
9. A fault detection method according to claim 1 or 2, It is characterized in that The step 4 is to set a threshold for identifying faults through the following steps F-1 to F-2: Step F-1: Set the column vector x in sequence t is equal to the column vectors of the 1st to Nth columns in the training data matrix X, and step 4-2 is performed simultaneously to retain the maximum value of the obtained difference index; Step F-2: Calculate the average value μ and standard deviation σ of all the maximum values retained in step F-1, and then give the threshold for identifying faults 10. A fault detection system based on a multi-scale timing mechanism, comprising a hardware system consisting of a data acquisition unit, a data processing unit and a monitoring and display unit, and a software system consisting of a model training sub-software system and an online execution sub-software system; in, The data acquisition unit acquires a set of sampling data at the latest sampling time t in real time according to the sampling time interval of the industrial process object, and sends it to the data processing unit immediately; The data processing unit first performs standardization processing on the received sampled data, and then calls the program stored in the online execution sub-software system to further process the sampled data, and after obtaining the maximum value of the corresponding difference index, the maximum value together with the threshold value is immediately sent to the monitoring display unit; After receiving the maximum value and threshold value, the monitoring display unit uses the latest sampling time t as the horizontal axis data and the received maximum value as the vertical axis data for real-time display, and at the same time displays the received threshold value in the form of a horizontal line; It is characterized in that the model training subsoftware system executes the program of steps 1 to 3 of a fault detection method described in claim 1 or 2 according to the initialization instruction, and passes the obtained timing error matrix to the online execution subsoftware system; the online execution subsoftware system stores the program of steps A-1 to A-3 of a fault detection method described in claim 1 or 2.
Citation Information
Patent Citations
Synthesis ammonia first-section furnace operation anomaly detection method based on time sequence difference feature extraction
CN114841620A
Method for detecting abnormal operation of pre-decarburization device based on real-time ARRG model
CN114997661A
