Fault detection method and device based on neighborhood distribution difference analysis
Through the method based on neighborhood distribution difference analysis, the problem of difficult analysis of complex multi-cluster cluster distribution change characteristics of sensor data is solved, comprehensive fault detection of process objects is achieved, and the reliability and sensitivity of fault detection are improved.
Patent Information
- Application Number
- CN202410821540.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-11
AI Technical Summary
Existing technology makes it difficult to analyze the changing characteristics of complex multi-cluster cluster distribution in real time from the sensor data of process objects, resulting in fault detection that is not comprehensive and sensitive enough.
A fault detection method based on neighborhood distribution difference analysis is adopted, sensor data is processed through standardization, and the neighborhood distribution difference index is calculated using the generalized eigenvalue problem and the Lagrange multiplier method to determine whether the data exceeds the threshold in real time to determine the fault.
It achieves comprehensive fault detection of process object sensor data, improves the reliability and sensitivity of detection, and can capture abnormal characteristics in data changes in a timely manner.
Smart Images

Figure CN118760115A_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 device based on neighborhood distribution difference analysis. Background Art
[0002] Process objects represented by chemical production processes and metallurgical manufacturing processes are important pillars of national economic development, and real-time detection of faults in the operation or operation of process objects is an important technical means to ensure production safety and maintain stable product quality. Its importance is no less than that of product manufacturing itself. In recent years, with the widespread application of sensor technology and digital intelligence systems, a variety of data-driven fault detection methods, systems or devices have emerged.
[0003] An article titled “Fault Detection Method Based on Dynamic Internal Parallel Latent Structure Projection” published in the Journal of Zhejiang University (Engineering Edition) in 2023 discloses a data feature analysis algorithm for dynamic internal latent structure projection, and uses it for fault detection of chemical process objects; Chinese invention patent application number 2022109743273 discloses a dynamic process fault detection method based on a variational Bayesian probabilistic latent variable model, which utilizes the dynamic processing capability of the variational Bayesian probabilistic latent variable model to realize dynamic fault detection of chemical process objects; in addition, an English paper titled “Orthogonal projection based statistical feature extraction for continuous process monitoring” published in Computers & Chemical Engineering in 2024 discloses a fault detection method using an orthogonal projection transformation algorithm and statistical feature extraction technology, which also realizes effective detection of faults in process object operation from the perspective of sampling data.
[0004] All of these existing methods define a normal range of variation for the sensor data when the process object is operating normally, and the detection of whether a fault has occurred depends on whether the sensor data acquired in real time is outside the normal range of variation after the same data transformation processing. This approach is mainly because the data that can be used for data model training usually only have normal operating sensor data, and only feature analysis can be performed on the changes in normal data. Chinese invention patent application number 2022106501709 discloses a method for detecting abnormal operation of a single-stage furnace based on instant nearest neighbor reconstruction error, and provides a real-time nearest neighbor feature analysis technology that is no longer limited to analyzing the changing characteristics of normal data, but instead uses instant analysis of abnormal change characteristics in sampled data for real-time fault detection.
[0005] Considering the persistence and continuity of process object operation, changes in external raw material batches and environmental factors will cause the sensor data running in a normal state to show complex multi-cluster distribution characteristics. This brings great challenges to the implementation of fault detection from the perspective of analyzing the change characteristics of normal data. Whether from the perspective of the temporal dynamics, correlation, spatial distribution, etc. of the sampled data, the existing technical solutions can only analyze and express the normal change characteristics of a certain aspect, and cannot guarantee the comprehensiveness of process object fault detection. Only from the perspective of data neighborhood distribution can we effectively deal with the change characteristics of the complex multi-cluster distribution of sampled data. Only by analyzing the difference changes in neighborhood distribution in real time can we immediately obtain useful information for the characteristics of process object fault detection. Summary of the invention
[0006] The main technical problem to be solved by the present invention is: how to analyze and extract the variation differences of process object sensor data in neighborhood distribution in real time for the fault detection task of the process object, so as to ensure the reliability and sensitivity of the corresponding fault detection.
[0007] The technical solution adopted by the present invention to solve the above-mentioned problem is: a fault detection method and device based on neighborhood distribution difference analysis, the method comprising steps 1 to 3 shown below.
[0008] Step 1: Select at least 500 sets of sensor data when the process object is running normally from the historical database, and form each set of sensor data into a corresponding column vector, and then perform standardization processing on each column vector.
[0009] Step 2: Perform neighborhood distribution difference analysis on each column vector after the standardization process to obtain the corresponding neighborhood distribution difference index, thereby determining the neighborhood distribution difference threshold.
[0010] Step 3: Repeat steps 3-1 and 3-2 to perform fault detection on the process object.
[0011] Step 3-1: Obtain a set of sensor data of the process object at the latest sampling time in real time, form a corresponding column vector, and then perform standardization on it.
[0012] Step 3-2: Perform neighborhood distribution difference analysis on the standardized column vector to obtain the corresponding neighborhood distribution difference index, and determine whether it is greater than the neighborhood distribution difference threshold; if so, the process object operation fails; if not, the process object runs normally.
[0013] In the above steps, the implementation process of neighborhood distribution difference analysis includes steps A-1 to A-3 shown below.
[0014] Step A-1: Let the column vector of the neighborhood distribution difference analysis be x, and determine the corresponding neighborhood N(x) and neighborhood center vector for x. The neighborhood N(x) is composed of k nearest neighbor vectors of x, where k is an integer not greater than 10 and not less than 5.
[0015] Step A-2: Solve the generalized eigenvalue problem The eigenvector p corresponding to the maximum eigenvalue λ in N(x); where xi represents the i-th nearest neighbor vector in N(x), represents the neighborhood center vector determined for xi in the same way, the superscript T represents the transpose of the matrix or vector, and the number i = 1, 2, ..., k.
[0016] Step A-3: After updating the feature vector p according to the formula p=p / ||p||, set the neighborhood distribution difference index equal to Among them, ||p|| represents the length of calculating p.
[0017] The generalized eigenvalue problem solved in step A-2 above aims to determine the eigenvector p such that x and its corresponding neighborhood center vector After the transformation of p, the difference between the two is maximized, that is: At the same time, the k nearest neighbor vectors x1, x2, ..., x k and their corresponding neighborhood center vectors After the transformation of p, the difference between the two is minimized, that is: In order to satisfy both maximization and minimization problems, the optimization problem can be defined as follows:
[0018] The characteristic vector p in the above formula ① can be converted to obtain the difference in neighborhood distribution of different sensor data; for sensor data in normal operation, the differences in neighborhood distribution are normal, and the size of the corresponding neighborhood distribution difference index will not be greater than the neighborhood distribution difference threshold.
[0019] The above formula ① can be equivalently transformed into the maximization problem with constraints as shown below, namely:
[0020] To solve the above equation ②, the Lagrange multiplier method is needed. By introducing the Lagrange multiplier λ, the corresponding Lagrange function L is constructed, that is:
[0021] Then calculate the partial derivatives of L with respect to p and λ respectively, and set the partial derivatives equal to 0, that is:
[0022] It can be seen that the first equation in the above formula ④ can be equivalent to the generalized eigenvalue problem in step A-2 above; therefore, the solution to the generalized eigenvalue problem in step A-2 is to make x and its corresponding neighborhood center vector Maximize the difference after transformation by p, and at the same time make the k nearest neighbor vectors x1, x2, …, x k and their corresponding neighborhood center vectors The difference after the conversion of p is minimized, thereby realizing the analysis of the neighborhood distribution difference of x, and measuring the change of the neighborhood distribution difference through the neighborhood distribution difference index in step A-3, thereby completing the subsequent fault detection.
[0023] As an improvement of the present invention, between step 1 and step 2, there is also a step of arranging the standardized column vectors in the order of the corresponding sampling time to form a matrix X, and the neighborhood N(x) and the neighborhood center vector x are determined according to steps B-1 to B-3 as shown below.
[0024] Step B-1: Determine the column vector with the shortest distance from x from each column vector of the matrix X, and record the position number of the column vector in the matrix X as j.
[0025] Step B-2: Select k column vectors adjacent to the j-th column vector from the matrix X, and use them as k nearest neighbor vectors of x.
[0026] Step B-3: The k nearest neighbor vectors of x are combined into a neighborhood N(x), and the average value of the k nearest neighbor vectors of x is determined as the corresponding neighborhood center vector
[0027] Since the column vectors in the matrix X are arranged in the order of sampling time, the k nearest neighbor vectors determined by the selection process of the above step B-2 are actually to determine the k column vectors adjacent to the sampling time of the column vector with the smallest distance to x as the corresponding neighborhood. It can be seen that this improved method involving neighborhood determination can further consider the temporal relationship characteristics of sensor data in the sampling time sequence into the subsequent neighborhood distribution difference feature analysis.
[0028] As a further improvement of the present invention, the rule for selecting k adjacent column vectors in the above step B-2 is: if j is less than k / 2, then the 1st to j-1th column vectors and the j+1th to k+1th column vectors in the matrix X are selected as the k nearest neighbor vectors of x; if j is not less than Nk / 2, then the Nkth to j-1th column vectors and the j+1th to Nth column vectors in the matrix X are selected as the k nearest neighbor vectors of x; in other cases, the jfth to j-1th column vectors and the j+1th to j+kfth column vectors in the matrix X are selected as the k nearest neighbor vectors of x; wherein f is the maximum integer not greater than k / 2, and N is equal to the total number of column vectors in the matrix X.
[0029] From the above selection rules, it can be found that the k adjacent column vectors are selected as close as possible to the position of the j-th column vector in X, rather than uniformly selecting the k column vectors before the j-th column vector or the k column vectors after the j-th column vector. This fully considers the position of the j-th column vector in the matrix X, selects both the column vectors before and after the j-th column vector, and fully considers the data timing information of both the past and the future.
[0030] As a further improvement of the present invention, the above step B-3 preferably determines the weighted average of the k nearest neighbor vectors of x as the corresponding neighborhood center vector, and the weighting coefficients used to calculate the weighted average are the reciprocals of the distances between the k nearest neighbor vectors of x and x.
[0031] In addition, the weighting coefficient used in calculating the weighted average can also be determined by the least squares regression model between the k nearest neighbor vectors of x and x, that is, after the k nearest neighbor vectors of x are combined into the input matrix Z, the least squares regression coefficient vector β between the input matrix Z and x is calculated. T Z) -1 Z T x, and then use each element in β as the weighting coefficient to calculate the weighted average.
[0032] The above two improved schemes involving the determination of the neighborhood center vector both use a weighted average to determine the domain center vector, which can further consider the difference in the size of the neighbor relationship between each neighbor vector and x, which is conducive to the subsequent neighborhood difference feature analysis. The difference between the two improved schemes for step B-3 lies in how to determine the weighting coefficient. From the perspective of different data point distributions, the former uses the inverse of the distance size, that is, the distance of the data point distribution to determine the difference in the size of the neighbor relationship; while the latter determines the difference in the size of the neighbor relationship through the least squares regression coefficient vector in the least squares regression model.
[0033] As another improvement of the present invention, when determining the corresponding neighborhood for x in step A-1, it is preferred to select k column vectors with the smallest angle with x from the column vectors after standardization in step 1, and determine them as the corresponding k nearest neighbor vectors, thereby forming the corresponding neighborhood.
[0034] Different from the distance size usually used to determine the nearest neighbor vector, this improved solution uses the angle between the vectors; in this technical field, the smaller the angle between two vectors, the greater the correlation between the two vectors. Therefore, the method of using the angle to determine the neighborhood can take the correlation of the data point distribution into account, and perform subsequent neighborhood distribution difference analysis from the perspective of distribution correlation.
[0035] On the basis of using the angle to determine the neighborhood, we can further use the correlation coefficient between the k nearest neighbor vectors and x as the weighting coefficient, and determine the weighted average of the k nearest neighbor vectors as the corresponding neighborhood center vector; where the i-th nearest neighbor vector x i The correlation coefficient θ between i =|x T x i | / (||x||·||x i ||), ||x|| means calculating the length of x.
[0036] The improved solution of using the correlation coefficient as the weighting coefficient can further take the difference in correlation into account in the neighborhood distribution difference analysis, thereby more comprehensively considering the correlation of data point distribution.
[0037] It should be noted that after implementing the key steps A-1 to A-3 of the present invention, only one characteristic vector p can be determined for each given column vector x for calculating the neighborhood distribution difference index, and the neighborhood distribution difference analysis implemented is therefore a characteristic analysis of a single variable. In order to further analyze and extract multiple features, the present invention provides further improvements to the above-mentioned various improved technical solutions, that is, the neighborhood distribution difference analysis also includes the following steps A-4 to A-5.
[0038] Step A-4: Solve the eigenvalue problem [IC -1 p(p T C -1 p) -1 p T ]C -1 Gq = the eigenvector q corresponding to the maximum eigenvalue η in ηq; where
[0039] Step A-5: Update the feature vector q according to the formula q=q / ||q||, and then update and set the neighborhood distribution difference index equal to
[0040] The purpose of solving the generalized eigenvalue problem in step A-4 above is to determine another eigenvector q such that x and its corresponding neighborhood center vector After the transformation by q, the difference between the two is maximized, and at the same time, the k nearest neighbor vectors x1, x2, …, x in the neighborhood N(x) are k and their corresponding neighborhood center vectors After the conversion of q, the difference between the two is minimized; in order to distinguish p and q, based on the optimization problem of formula ② above, a constraint condition q is added T p = 0, thus defining a new optimization problem:
[0041] The Lagrange multiplier method is also used to construct the corresponding Lagrange function by introducing two multipliers η and γ. Then set the partial derivative of J with respect to q equal to 0, that is: Gq-ηCq-γp=0⑥
[0042] Multiply both sides of the equal sign in the above formula ⑥ by p T C -1 And considering q T p=0, we can get p T C -1 Gq=γp T C -1 p, that is: γ=(p T C -1 p) -1 p T C -1 Gq; Multiply C on both sides of the equal sign in the above formula ⑥ -1 It can be obtained that C-1Gq-ηq=γC -1 p=C- 1 pγ; Therefore, combining these two equations, we can infer that: C- 1 Gq-C -1 p(p T C -1 p) -1 p T C -1 Gq = ηq, which is the generalized eigenvalue problem in step A-4 [IC -1 p(p T C -1 p) -1 p T ]C -1 Gq=ηq.
[0043] It can be seen that the implementation process of the newly added steps A-4 to A-5 can further solve another feature vector for conversion, thereby analyzing the corresponding neighborhood distribution difference for fault detection. Therefore, this improved solution can use more feature information on neighborhood distribution differences to implement fault detection, further improving the sensitivity of fault detection.
[0044] In order to further reflect the temporal correlation of sensor data at multiple consecutive sampling moments in the neighborhood distribution difference analysis, and also as a further improvement of the present invention, in step 1 and step 3-1, each group of sensor data is preferably combined with the sensor data at at least one sampling moment before it to form a corresponding column vector.
[0045] The implementation process of combining sensor data from multiple consecutive sampling moments into a column vector can fuse multiple sets of sensor data together. The subsequent determination of the neighborhood and the neighborhood center vector and the analysis of the neighborhood distribution difference will further reflect the analysis of the temporal correlation of the process object sensor data.
[0046] Finally, according to the implementation process of the above-mentioned fault detection method and its improvement scheme, a fault detection device based on neighborhood distribution difference analysis is proposed, including a data acquisition module, a data processing module and a result display module; wherein the data acquisition module is used to acquire a set of sensor data of the process object at the latest sampling time in real time, and transmit it to the data processing module; the data processing module is used to perform standardized processing and neighborhood distribution difference analysis on the received sensor data, so as to obtain the corresponding neighborhood distribution difference index, and transmit it to the detection display module; the result display module is used for real-time display of the domain distribution difference index, and at the same time judge whether the domain distribution difference index is greater than the domain distribution difference threshold; if so, a fault alarm is triggered; if not, the fault alarm is closed.
[0047] The data processing module in the fault detection device stores and executes the implementation process of the neighborhood distribution difference analysis according to any one of claims 1 to 9 to obtain a corresponding neighborhood distribution difference index. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 The present invention is an implementation flow chart of the fault detection method.
[0049] Figure 2 It is a schematic diagram of using the present invention to detect faults in real time.
[0050] Figure 3 The present invention is a schematic diagram of a process for determining a neighborhood and a neighborhood center vector.
[0051] Figure 4The present invention provides a flowchart for implementing the improved solution for neighborhood distribution difference analysis.
[0052] Figure 5 The figure is a schematic diagram of a fault detection device according to the present invention.
[0053] Figure 6 The figure is a schematic diagram of fault detection using the improved solution of step 1 and step 3-1 according to the present invention. DETAILED DESCRIPTION
[0054] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0055] according to Figure 1 The implementation process shown, applying the present invention to perform fault detection on a process object of a naphtha refining process, includes steps 1 to 3 shown below.
[0056] Step 1: Select 500 sets of sensor data when the process object is running normally from the historical database, and form each set of sensor data into a corresponding column vector, and then perform standardization on each column vector.
[0057] The process object used is equipped with five types of sensors: temperature, flow, pressure, liquid level, and valve opening, and samples are taken in real time at a fixed sampling time interval. If the column vectors composed of 500 sets of sensor data during the normal operation of the process object are z1, z2, …, z 500 The purpose of standardization is to eliminate the dimensional influence of each sensor data.
[0058] Step 2: Perform neighborhood distribution difference analysis on each column vector after the standardization process to obtain the corresponding neighborhood distribution difference index, thereby determining the neighborhood distribution difference threshold.
[0059] Since the column vectors for neighborhood distribution difference analysis in step 2 are all in normal operation, the neighborhood distribution difference indicators corresponding to each column vector are normal. Therefore, the neighborhood distribution difference threshold can be directly determined by the maximum value of the 500 neighborhood distribution difference indicators obtained, or the neighborhood distribution difference threshold can be determined by the kernel density estimation method, or the corresponding neighborhood distribution difference threshold can be determined by assuming that the 500 neighborhood distribution difference indicators obey the chi-square distribution.
[0060] Step 3: Repeat steps 3-1 and 3-2 to perform fault detection on the process object.
[0061] Step 3-1: Obtain a set of sensor data of the process object at the latest sampling time in real time, form a corresponding column vector, and then perform standardization processing on it.
[0062] Step 3-2: Perform neighborhood distribution difference analysis on the standardized column vector to obtain the corresponding neighborhood distribution difference index, and determine whether it is greater than the neighborhood distribution difference threshold; if so, the process object operation fails; if not, the process object runs normally.
[0063] The specific process of neighborhood distribution difference analysis includes steps A-1 to A-3 shown below.
[0064] Step A-1: Let the column vector of the neighborhood distribution difference analysis be x, and determine the corresponding neighborhood N(x) and neighborhood center vector for x.
[0065] Step A-2, solving the generalized eigenvalue problem Gp=λCp, and finding the eigenvector p corresponding to the maximum eigenvalue λ; wherein, The neighborhood N(x) consists of the 10 nearest neighbor vectors of x.
[0066] Step A-3: According to the formula After updating the feature vector p, the neighborhood distribution difference index is set equal to
[0067] In the technical field, the method for determining the neighborhood can be determined by the k-order nearest neighbor principle, that is, the column vector z1, z2, ..., z 500 The k column vectors with the smallest distance to x are determined as the k nearest neighbor vectors of x, thus forming the corresponding neighborhood; and the neighborhood center vector is the average value of these k nearest neighbor vectors; similarly, x i The corresponding neighborhood center vector x i is determined in the same way, that is, the standardized column vectors z1, z2, …, z 500 With x i The k column vectors with the smallest distance between them are determined as x i After finding the k nearest neighbor vectors, the average value of these k nearest neighbor vectors is taken as x i The corresponding neighborhood center vector
[0068] From the specific implementation of step A-2, it can be found that this embodiment uses a neighborhood consisting of 10 nearest neighbor vectors; if the specific value of the neighborhood distribution difference index obtained in step 3-2 is plotted as Figure 2 The neighborhood distribution difference threshold does not change after it is determined in step 2, so it can be drawn as a straight line. Figure 2 It can be seen from the changes in the scattered points that the scattered points located above the straight line indicate that a fault has occurred in the process object.
[0069] Although the use of the k-order nearest neighbor principle to determine the corresponding nearest neighbor vectors by the k column vectors with the smallest distance is an implementation method well known to those skilled in the art, in order to further take the temporal nearest neighbor relationship into consideration, the second implementation case of the present invention uses an improved technical solution of the neighborhood and the neighborhood center vector, and the specific implementation process is shown in steps B-1 to B-3; similarly, x i The corresponding neighborhood center vector is determined in the same manner, that is, by replacing x in steps B-1 to B-3 with x i , in step B-3 Replace with
[0070] Step B-1: Determine the column vector with the smallest distance to x from each column vector of the matrix X, and record the column number of the column vector in the matrix X as j.
[0071] Step B-2: Select k column vectors adjacent to the j-th column vector from the matrix X, and use them as k nearest neighbor vectors of x.
[0072] In order to take into account the column vectors before and after the sampling time of the jth column vector in X, the implementation of the present invention can be as follows: Figure 3 The k adjacent column vectors are selected according to the rule shown, specifically: if j is less than k / 2, the 1st to j-1th column vectors and the j+1th to k+1th column vectors in the matrix X are selected; if j is not less than Nk / 2, the Nkth to j-1th column vectors and the j+1th to Nth column vectors in the matrix X are selected; in other cases, the jfth to j-1th column vectors and the j+1th to j+kfth column vectors in the matrix X are selected; wherein f is the largest integer not greater than k / 2, and N is equal to the total number of column vectors in the matrix X.
[0073] Step B-3: The k nearest neighbor vectors of x are combined into a neighborhood N(x), and the average value of the k nearest neighbor vectors of x is determined as the corresponding neighborhood center vector
[0074] In view of the improvement of step B-3, the third and fourth embodiments of the present invention respectively adopt two different weighted average calculation methods to determine the corresponding neighborhood center vector: first, the weighted average of the k nearest neighbor vectors of x in step B-3 is determined as the corresponding neighborhood center vector, and the weighting coefficients used to calculate the weighted average are the reciprocals of the distances between the k nearest neighbor vectors of x and x; second, the weighted average of the k nearest neighbor vectors of x in step B-3 is determined as the corresponding neighborhood center vector, and the weighting coefficients used to calculate the weighted average are determined in the following manner: after merging the k nearest neighbor vectors of x into an input matrix Z, the least squares regression coefficient vector β between the input matrix Z and x is calculated = (Z T Z) -1 Z T x, and then use each element in β as the weighting coefficient to calculate the weighted average.
[0075] The fifth embodiment of the present invention uses the angle between vectors to determine the corresponding neighbor vectors, that is, from the column vectors z1, z2, ..., z 500 Select the k column vectors with the smallest angle with x and determine them as the corresponding k nearest neighbor vectors; similarly, for x i The corresponding k nearest neighbor vectors are determined in the same way, that is, from the standardized column vectors z1, z2, …, z 500 Select the value with x i The k column vectors with the smallest angle between them are taken as x i The corresponding k nearest neighbor vectors.
[0076] The sixth embodiment of the present invention not only uses the angle between vectors to determine the corresponding neighbor vector, but also further uses the correlation coefficient between each neighbor vector and x as a weighting coefficient, and determines the corresponding neighborhood center vector by means of a weighted average.
[0077] The seventh embodiment of the present invention can be respectively used on the basis of the above six embodiments as follows: Figure 4 The neighborhood distribution difference analysis shown in the figure is used to obtain the corresponding neighborhood distribution difference index. That is, based on the original steps A-1 to A-3, the following steps A-4 and A-5 are added.
[0078] Step A-4: Solve the generalized eigenvalue problem [IC -1 p(p T C -1 p) -1 p T ]C -1 Gq = the eigenvector q corresponding to the maximum eigenvalue η in ηq.
[0079] Step A-5: According to the formula After updating the feature vector q, the neighborhood distribution difference index is updated and set equal to That is, the calculation of the updated neighborhood distribution difference uses two eigenvectors p and q.
[0080] The eighth embodiment of the present invention can be based on the above seven embodiments, and when implementing step 1 and step 3-1, each set of sensor data is combined with the sensor data of at least one sampling time before it to form a corresponding column vector. In this embodiment, each set of sensor data is combined with the sensor data of one sampling time before it to form a corresponding column vector, which is expressed by the following formula:
[0081] In the above formula ⑦, z n represents the column vector consisting of the nth set of sensor data, Indicates z n A column vector consisting of a group of sensor data at one sampling time before the corresponding sampling time, numbered n=1,2,…,500.
[0082] Based on the unified inventive concept, the present invention also provides a fault detection device based on neighborhood distribution difference analysis, the composition of the device is as follows: Figure 5 As shown; wherein, the data acquisition module (201) is used to acquire a set of sensor data of the process object at the latest sampling time in real time, and transmit it to the data processing module (202); the data processing module (202) is used to perform standardization processing and neighborhood distribution difference analysis on the received sensor data, so as to obtain the corresponding neighborhood distribution difference index, and transmit it to the detection display module (203); and the final result display module (203) is used for real-time display of the domain distribution difference index, and at the same time determines whether the domain distribution difference index is greater than the domain distribution difference threshold; if so, a fault alarm is triggered; if not, the fault alarm is closed.
[0083] Due to the same inventive concept, Figure 5 The data processing module in the embodiment can store and execute the implementation process of the neighborhood distribution difference analysis described in any one of claims 1 to 9; in combination with formula ⑦, the fault detection device of the present invention implements fault detection on 400 sets of sensor data at the same 400 latest sampling moments of the process object, and the fault detection scatter plot displayed in the corresponding result display module is as follows: Figure 6 shown.
[0084] By comparison Figure 2 and Figure 6 From the scatter plot, we can see that Figure 6The scatter plot shown in can obviously detect more faults, and the fault detection sensitivity is higher. This is because through the processing of formula ⑦, the dimension of each column vector is doubled, which contains sensor data information at multiple consecutive sampling moments, which is more conducive to the subsequent implementation of fault detection.
Claims
1. A fault detection method based on neighborhood distribution difference analysis includes steps 1 to 3 shown below: Step 1: Select at least 500 sets of sensor data when the process object is running normally from the historical database, and form each set of sensor data into a corresponding column vector, and then perform standardization processing on each column vector respectively; Step 2: Perform neighborhood distribution difference analysis on each column vector after the standardization process to obtain the corresponding neighborhood distribution difference index, thereby determining the neighborhood distribution difference threshold; Step 3, repeating steps 3-1 to 3-2 to perform fault detection on the process object; Step 3-1, obtaining a set of sensor data of the process object at the latest sampling time in real time, forming a corresponding column vector, and then performing standardization processing on it; Step 3-2, performing neighborhood distribution difference analysis on the standardized column vector, obtaining the corresponding neighborhood distribution difference index, and judging whether it is greater than the neighborhood distribution difference threshold; if so, the process object operation fails; if not, the process object operation is normal; Features: The implementation process of the neighborhood distribution difference analysis includes steps A-1 to A-3 shown below; Step A-1: Let the column vector of the neighborhood distribution difference analysis be x, and determine the corresponding neighborhood N(x) and neighborhood center vector for x. Wherein, the neighborhood N(x) is composed of k nearest neighbor vectors of x, where k is an integer not greater than 10 and not less than 5; Step A-2: Solve the generalized eigenvalue problem The eigenvector p corresponding to the maximum eigenvalue λ in i represents the i-th nearest neighbor vector in N(x), Represents x i The corresponding neighborhood center vector, , the superscript T represents the transpose of the matrix or vector, numbered i = 1, 2, ..., k; Step A-3: After updating the feature vector p according to the formula p=p / ||p||, set the neighborhood distribution difference index equal to Among them, ||p|| represents the length of calculating p.
2. A fault detection method according to claim 1, characterized in that: Between step 1 and step 2, the step of arranging the standardized column vectors in the order of the corresponding sampling time to form a matrix X is also included, and determining the neighborhood N(x) and the neighborhood center vector The process includes steps B-1 to B-3 as shown below: Step B-1, determine the column vector with the smallest distance to x from each column vector of the matrix X, and record the column number of the column vector in the matrix X as j; Step B-2, selecting k column vectors adjacent to the j-th column vector from the matrix X, and using them as k nearest neighbor vectors of x; Step B-3: The k nearest neighbor vectors of x are combined into the neighborhood N(x), and the average value of the k nearest neighbor vectors of x is determined as the neighborhood center vector 3. A fault detection method according to claim 2, characterized in that: The selection rule of the k column vectors adjacent to the jth column vector in step B-2 is: if j is less than k / 2, then the 1st to j-1th column vectors and the j+1th to k+1th column vectors in the matrix X are selected; if j is not less than Nk / 2, then the Nkth to j-1th column vectors and the j+1th to Nth column vectors in the matrix X are selected; in other cases, the jfth to j-1th column vectors and the j+1th to j+kfth column vectors in the matrix X are selected; wherein f is the maximum integer not greater than k / 2, and N is equal to the total number of column vectors in the matrix X.
4. A fault detection method according to claim 3, characterized in that: In step B-3, the weighted average of the k nearest neighbor vectors of x is determined as the corresponding neighborhood center vector, and the weighting coefficients used to calculate the weighted average are respectively the reciprocals of the distances between x and its k nearest neighbor vectors.
5. A fault detection method according to claim 3, characterized in that: In step B-3, the weighted average of the k nearest neighbor vectors of x is determined as the corresponding neighborhood center vector, and the weight coefficient used to calculate the weighted average is determined by merging the k nearest neighbor vectors of x into an input matrix Z, and calculating the least squares regression coefficient vector β between the input matrix Z and x = (Z T Z) -1 Z T x, and then use each element in β as the weighting coefficient to calculate the weighted average.
6. A fault detection method according to claim 1, characterized in that: The method for determining the neighborhood N(x) in step A-1 is: select k column vectors with the smallest angle with x from the standardized column vectors described in step 1, and determine them as k nearest neighbor vectors of x, thereby forming the neighborhood N(x).
7. A fault detection method according to claim 6, characterized in that: The correlation coefficient between x and its k nearest neighbor vectors is used as a weighting coefficient, and then the weighted average of the k nearest neighbor vectors of x is determined as the neighborhood center vector corresponding to x; wherein, the correlation coefficient between x and the i-th nearest neighbor vector x i The correlation coefficient θ i =|x T x i | / (||x||·||x i ||).
8. A fault detection method according to any one of claims 1 to 7, characterized in that: The neighborhood distribution difference analysis also includes the following steps A-4 to A-5: Step A-4: Solve the generalized eigenvalue problem [IC -1 p(p T C -1 p) -1 p T ]C -1 Gq = the eigenvector q corresponding to the maximum eigenvalue η in ηq; where Step A-5: Update the feature vector q according to the formula q=q / ||q||, and then update and set the neighborhood distribution difference index equal to 9. A fault detection method according to any one of claims 1 to 7, characterized in that: Both step 1 and step 3-1 combine each set of sensor data with the sensor data of at least one previous sampling moment to form a corresponding column vector.
10. A fault detection device based on neighborhood distribution difference analysis, comprising the following modules: A data acquisition module is used to acquire a set of sensor data of the process object at the latest sampling moment in real time and transmit it to the data processing module; The data processing module is used to perform standardization processing and neighborhood distribution difference analysis on the received sensor data, thereby obtaining the corresponding neighborhood distribution difference index and transmitting it to the detection and display module; The result display module is used for real-time display of the domain distribution difference index and at the same time determines whether the domain distribution difference index is greater than the domain distribution difference threshold; if so, a fault alarm is triggered; if not, the fault alarm is closed; It is characterized in that The data processing module stores and executes the implementation process of the neighborhood distribution difference analysis according to any one of claims 1 to 9.
Citation Information
Patent Citations
First-stage furnace operation anomaly detection method based on instant neighbor reconstruction error
CN114897435A
Dynamic process fault detection method based on variational Bayesian probability latent variable model
CN115248558A
