CN114528939B - Micro fault detection method based on Kolmogorov-Smirnov test - Google Patents
Micro fault detection method based on Kolmogorov-Smirnov test Download PDFInfo
- Publication number
- CN114528939B CN114528939B CN202210155043.1A CN202210155043A CN114528939B CN 114528939 B CN114528939 B CN 114528939B CN 202210155043 A CN202210155043 A CN 202210155043A CN 114528939 B CN114528939 B CN 114528939B
- Authority
- CN
- China
- Prior art keywords
- test
- training sample
- sample set
- micro
- principal element
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001276 Kolmogorov–Smirnov test Methods 0.000 title claims abstract description 31
- 238000001514 detection method Methods 0.000 title abstract description 46
- 238000000034 method Methods 0.000 claims abstract description 51
- 238000012549 training Methods 0.000 claims abstract description 42
- 239000011159 matrix material Substances 0.000 claims abstract description 31
- 230000008569 process Effects 0.000 claims abstract description 29
- 238000012544 monitoring process Methods 0.000 claims abstract description 9
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 17
- 238000012360 testing method Methods 0.000 claims description 16
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 238000005315 distribution function Methods 0.000 claims description 8
- 239000007788 liquid Substances 0.000 claims description 5
- 238000010606 normalization Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims description 4
- 230000001186 cumulative effect Effects 0.000 claims description 3
- 238000000513 principal component analysis Methods 0.000 claims description 3
- 238000004519 manufacturing process Methods 0.000 description 11
- 230000000694 effects Effects 0.000 description 8
- 238000009826 distribution Methods 0.000 description 6
- 238000003745 diagnosis Methods 0.000 description 5
- 238000005070 sampling Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000001311 chemical methods and process Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000010438 heat treatment Methods 0.000 description 2
- 238000013178 mathematical model Methods 0.000 description 2
- 238000003756 stirring Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 238000012847 principal component analysis method Methods 0.000 description 1
- 238000011112 process operation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/213—Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
- G06F18/2135—Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods based on approximation criteria, e.g. principal component analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/18—Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Pure & Applied Mathematics (AREA)
- Computational Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Algebra (AREA)
- Life Sciences & Earth Sciences (AREA)
- Probability & Statistics with Applications (AREA)
- Operations Research (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Computing Systems (AREA)
- Automatic Analysis And Handling Materials Therefor (AREA)
Abstract
The invention discloses a method for detecting micro faults based on Kolmogorov-Smirnov test, which comprises the following steps: after standardized pretreatment is carried out on the training samples, a PCA model is established, a load matrix P is obtained, then sample data are collected online in real time, a principal component space of online data is calculated by utilizing the PCA model established in an offline process, K-S test is carried out on the training data and the principal component space of the online data, and the value of the obtained K-S test statistic D n is compared with a control limit, so that online monitoring is realized. The invention solves the problem that the traditional PCA fault detection method has poor fault detection performance on the micro faults because of smaller amplitude of the micro faults, and has higher detection rate on the micro faults.
Description
Technical Field
The invention relates to the technical field of micro fault detection, in particular to a micro fault detection method based on Kolmogorov-Smirnov test.
Background
With rapid development of modern economy and continuous improvement of the technological level, industrial processes or equipment are increasingly complicated and large-sized. This presents a serious challenge to engineers responsible for ensuring reliable operation of the process. Once the production process or equipment has tiny faults, if the faults cannot be found and properly handled in time, the faults gradually develop into serious faults or even cause serious accidents over time, so that casualties and huge economic losses are caused.
A fault is an undesirable feature or any anomaly exhibited by the system. Thus, in modern industry, fault detection is critical to improve system reliability, prevent serious system performance degradation, and ensure optimal process operation.
Fault detection and diagnosis are of great importance in ensuring safe and reliable operation of modern industrial processes. Most existing fault detection methods are only effective for sudden or significant faults with large magnitudes. In recent years, the detection and diagnosis of micro-faults have become one of the hot spots of interest in the scientific and engineering fields, with the aim of identifying micro-faults at an early stage in time. Patent CN110244692a discloses a method for detecting micro faults in chemical process, which introduces Kullback-Leibler divergence (english: kullback-Leibler Divergence, abbreviated as KLD) into a traditional local-global principal component analysis method, based on a model of principal component analysis training offline data, calculates principal component spatial statistics T 2 and residual spatial statistics SPE by using KLD components of online data, monitors the principal component spatial statistics T 2 and residual spatial statistics SPE by a control limit calculated by a kernel density method, and improves the micro fault detection rate.
The traditional fault diagnosis method based on knowledge and analysis models is excessively dependent on establishing an accurate mathematical model, and knowledge experience is difficult to acquire. For complex industrial processes with different data characteristics, model and knowledge based fault detection methods are poorly effective. The highly automated and complex industrial process accumulates massive data containing effective information, and fault detection and diagnosis based on a data driving method are generated. The method does not need an accurate mathematical model of a known industrial process, directly applies sensor data acquired in the process, establishes a model by utilizing a multivariate statistical theory, and realizes fault detection and diagnosis of the process.
Disclosure of Invention
In view of the above, the present invention aims to provide a micro-fault detection method based on Kolmogorov-Smirnov test, which is used for solving the problems that the traditional fault detection method based on data driving is insensitive to micro-faults and has low fault detection rate, and the method has high fault detection rate and low fault false alarm rate when used for micro-fault detection. The K-S test is widely used in statistics to determine whether the probability distribution of one set of data is the same as the probability distribution of a known data, or whether the probability distributions of two sets of data are similar. The invention deeply digs the probability distribution situation of the data caused by the micro faults in the industrial process and effectively detects the faults.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
A micro-fault detection method based on Kolmogorov-Smirnov test, the micro-fault detection method comprising an offline modeling process and an online monitoring process, wherein the offline modeling process comprises:
Step S1, collecting CSTH historical normal data X in the process, dividing the data into a training sample set X tr and a test sample set X te according to a certain proportion, and carrying out normalization processing;
Step S2, a principal component analysis is used for the training sample set X tr obtained in the step S1 to obtain a PCA model of the training sample set X tr, and then a load matrix P of the training sample set X tr is obtained;
Step S3, according to the load matrix P obtained in the step S2, a principal element subspace T tr of a training sample set X tr and a principal element subspace T te of a test sample set X te are calculated;
Step S4, performing K-S test, which comprises the following steps: firstly, setting a sliding window, and calculating the empirical distribution function EDF of the ith principal element t tri of the training sample and the ith principal element t tei of the test sample in the window; then K-S test is carried out to obtain the value of K-S statistic D n; then, sliding the sliding window backwards, repeating the steps until the window slides to the last data in the pivot;
Step S5, given a significant level alpha, calculating a control limit D n (alpha);
The online monitoring process specifically comprises the following steps:
s6, acquiring real-time online data X on in CSTH process, and carrying out normalization processing on the data;
step S7, calculating a principal component space T on of the online data X on by using the load matrix P of the training sample set X tr obtained in the step S2;
Step S8, performing K-S test, which comprises the following steps: given the width of a sliding window, calculating the empirical distribution function EDF of the ith principal element t tri of the training sample in the window and the ith principal element t oni of the online sample, and further solving the value of the K-S test statistic D n;
s9, comparing the statistic D n with the value of the control limit D n (alpha), and judging whether a fault occurs at the current moment of the system;
step S10, repeating the steps S7-S9 when the online data at the next moment is collected, and sliding the window backwards.
Further, in the step S1, the training sample set is denoted as X tr=[Xtr(1) Xtr(2) … Xtr(n)]T∈Rn×m, the test sample set is denoted as X te=[Xte(1) Xte(2) … Xte(n)]T∈Rn×m, where n is denoted as the number of samples, and m is denoted as a variable involved in the CSTH process.
Further, the step S2 specifically includes:
Step S201, aiming at a training sample set X tr, solving a covariance matrix according to a formula (1), and decomposing the covariance matrix to obtain a characteristic value matrix of the training sample set and a corresponding characteristic vector thereof;
Step S202, determining the number l of principal components of a training sample set according to a criterion that the accumulated contribution rate of the eigenvalues reaches 90%, and calculating a load matrix P according to a formula (1) and a first l column of eigenvectors corresponding to the eigenvalue matrix, wherein the formula (1) specifically represents:
in the formula (1), S is a covariance matrix, Λ= [ λ 1,λ2,...,λm ] is a eigenvalue matrix and λ 1≥λ2≥...≥λm, V is an eigenvector corresponding to the eigenvalue, P is a load matrix, M-l columns of y;
The criterion that the cumulative contribution rate of the characteristic values reaches 90 percent is specifically expressed as follows:
Further, the step S4 specifically includes:
Step S401, a sliding window width W is given as 20, and a formula (3) is utilized to calculate EDFF 1 (x) of a first principal element t tr1 in a principal element subspace of a training sample in the window and EDFF 2 (x) of a first principal element t te1 in a principal element subspace of a test sample;
in equation (3), y k is the kth observation of a random variable;
Step S402, calculating the value of the statistic D n of K-S (t tr1,tte1) according to the formula (4), wherein the formula (4) specifically comprises:
In equation (4), n 1,n2 is the number of samples in the sliding window, A maximum value of a vertical distance between the empirical distribution function images of the two samples;
Step S403, setting the step pitch of the sliding window to be 1, and calculating the value of the statistic D n in the second window by the backward sliding window until the window slides to the last data in the first principal element, thereby obtaining the value of n-W+1 statistic of the first principal element;
and S404, repeating the steps, and calculating the values of n-W+1 statistic values of all the l principal elements.
Further, in the step S5, the significant level α=0.05, and the value of the control limit D n (α) is obtained by the formula (5), expressed as:
further, in the step S9, it is determined whether a fault occurs according to the formula (6), which specifically includes:
Further, the variable m is involved in CSTH, which specifically includes: the liquid level of the reaction kettle, the flow of cold water, the valve position of cold water, the temperature of the reaction kettle, the flow of hot water and the valve position of hot water.
The beneficial effects of the invention are as follows:
The invention provides a K-S-based micro fault detection method for the first time, which can effectively monitor the occurrence of micro faults in an industrial process, thereby reducing serious harm caused by the micro faults; secondly, the invention has lower false alarm rate and missing report rate for detecting the micro faults, and can effectively avoid economic loss caused by high false alarm rate and the like; finally, the invention solves the problem that the traditional PCA fault detection method has poor fault detection performance on the micro faults due to smaller amplitude of the micro faults, and has higher detection rate on the micro faults.
Drawings
FIG. 1 is a graph of the empirical distribution function of two samples provided in example 1;
FIG. 2 is a process schematic of CSTH processes provided in example 1;
FIG. 3 is a flow chart of fault detection based on the K-S test provided in example 1;
fig. 4 is a graph showing the detection effect of the zero drift fault provided in embodiment 1;
fig. 5 is a graph showing the detection effect of the deviation fault provided in example 1;
FIG. 6 is a graph comparing the failure detection rates of the T 2 statistic, SPE statistic, and D n statistic provided in example 1;
Fig. 7 is a graph comparing failure false alarm rates of T 2 statistic, SPE statistic, and D n statistic provided in example 1.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1-7, the present embodiment provides a method for detecting micro-faults based on Kolmogorov-Smirnov test, which faces CSTH process, CSTH is an experimental platform developed by university of alberta laboratory in canada. The stirring kettle has the functions of mixing cold water and hot water together, heating the mixture by steam, and finally flowing out the heated mixed water from the bottom of the heating kettle. The process flow diagram is shown in figure 2. The cross section of the stirring kettle is circular, the volume is 8 liters, the height is 0.5 meter, and although the model of CSTH process is small and no actual reaction process exists, all sensors, valves and heat exchangers of the process have complete characteristics, so that the process of releasing heat of chemical reaction is simulated.
In the embodiment, MATLAB is adopted as a simulation platform, a simulation model is built in a Simulink, three general interferences, namely deterministic oscillation interference of a cold water flow control transmission link, random interference of a liquid level control transmission link and noise interference of a temperature control transmission link, are added, the actual chemical process is simulated to the maximum extent, and the test result is ensured to have higher authenticity. Process data information is collected from the 6 variables of the CSTH system, see in particular table one. The fault type refers to two types of sensor micro faults commonly seen in chemical processes: zero drift and offset faults. The first 200 sampling points of each sample are data when the system normally operates, a tiny fault is introduced at the 201 st sampling point, the amplitude of the fault is set to be a tiny amplitude, the amplitude of the zero drift fault is set to be 0.001mA, the amplitude of the deviation fault is set to be 0.1mA, and 500 sampling points are set in total. The initial modal parameters of the simulation are set as follows: the liquid level is 12mA, the temperature is 10.5mA, and the hot water valve is 0mA.
List one
Variable(s) | Variable description |
Level | Liquid level of reaction kettle |
CW flow | Cold water flow rate |
CW valve | Cold water valve position |
Temperature | Reaction kettle temperature |
HW flow | Flow rate of hot water |
HW valve | Hot water valve position |
The method for detecting the micro fault based on the Kolmogorov-Smirnov test mainly comprises an offline modeling process and an online monitoring process, wherein the offline modeling process mainly comprises the following steps of:
Step S1: collecting CSTH historical normal data of the process, and dividing the historical normal data into a training sample set X tr=[Xtr(1) Xtr(2) … Xtr(n)]T∈Rn×m and a test sample set X te=[Xte(1) Xte(2) … Xte(n)]T∈Rn×m; wherein n is the number of samples 500, m is the number of variables 6 shown in Table one, the training sample mean mu and standard deviation sigma are calculated, and the training data and the test data are normalized by using formula (1).
Step S2: the PCA model is obtained by using a training sample set, and the specific steps are as follows:
The covariance matrix is obtained by the formula (2) And decomposing the covariance matrix to obtain training
A eigenvalue matrix of the sample and corresponding eigenvectors, wherein Λ= [ λ 1,λ2,...,λm ] is the eigenvalue matrix and λ 1≥λ2≥...≥λm, V is the eigenvector corresponding to the eigenvalue;
adopting a formula (3), determining the number l of principal elements of the training sample set by using a criterion that the cumulative contribution rate of the characteristic values reaches 90%, taking the front l column of V to calculate a load matrix P, For the remaining m-l columns. Calculating a principal component subspace T tr=XtrP=[ttr1 ttr2 … ttrl]∈Rn×l of the training sample;
step S3: calculating a principal component subspace T te=XteP=[tte1 tte2 … ttel]∈Rn×l of the test sample by using the load matrix P calculated in the step S2;
Step S4: the K-S test is carried out, and the specific steps are as follows:
Given a sliding window width W of 20, calculating EDFF 1 (x) of a first principal element t tr1 in a principal element subspace of the training sample and EDFF 2 (x) of a first principal element t te1 in a principal element subspace of the test sample in the window by using a formula (4);
Calculating the value of statistic D n of K-S (t tr1,tte1) by using formula (5), wherein n 1,n2 is the number of samples in the sliding window, Is the maximum of the vertical distance between the empirical distribution function images of the two samples. As shown in fig. 1;
Setting the step distance of the sliding window to be 1, and calculating the value of statistic D n in the second window by the backward sliding window until the window slides to the last data in the first principal element, thereby obtaining the value of n-W+1 statistic of the first principal element;
Repeating the steps to calculate the values of n-W+1 statistic of all the principal elements;
Step S5: given a significant level α=0.05, the value of the control limit D n (α) is obtained by formula (6); and judging whether a fault occurs or not through the logic of the formula (7).
Specifically, the on-line monitoring process specifically includes:
Step S1: collecting real-time data of CSTH processes, and carrying out normalization treatment to obtain an online sample set X on=[Xon(1) Xon(2) … Xon(q)]T∈Rq×m, wherein q is more than or equal to W;
Step S2: calculating a principal component subspace T on=XonP=[ton1 ton2 … tonl]∈Rq×l of an online process data sample by utilizing a load matrix P obtained by offline process training data;
Step S3: performing on-line K-S test, wherein the specific steps are as follows:
Given a sliding window width W of 20, calculating EDFF 1 (x) of a first principal element t tr1 in a training sample principal element subspace and EDFF on (x) of a first principal element t on1 in an online sample principal element subspace in the window by using a formula (4);
Calculating the value of statistic D n of K-S (t tr1,ton) by using formula (5);
step S4: judging whether a fault occurs at the current sampling moment by utilizing the logic of the formula (7);
step S5: the above steps S1-S4 are repeated when the online data at the next moment is collected, while the window slides backward.
After the method is adopted to detect the micro faults, the fault detection results of different methods are compared through the fault detection rate FDR and the fault false alarm rate FAR indexes in order to evaluate the fault detection performance of different fault detection methods. The failure detection rate FDR is defined as the ratio of the number of detected failure data to the actual total number of failure data. It is obvious that the larger the value of FDR, the better the fault detection effect of the industrial process fault detection method; conversely, the poorer the fault detection effect of the industrial process fault detection method. The false alarm rate FAR is defined as the ratio of the number of normal samples falsely reported as a fault to the total number of normal samples, and obviously, the lower the false alarm rate is, the better the detection effect is.
Fig. 6 and 7 show graphs of the effect comparison of the statistics of T 2 and SPE calculated by the conventional PCA method with the FDR and FAR for detecting the micro fault by the statistics of the K-Stest method D n adopted by the present invention, and as can be observed from the graphs, the method of the present invention is more stable, has a higher fault detection rate, and the fault false alarm rate is close to 0;
In summary, the fault detection method provided by the invention generally obtains a better fault detection effect and has higher stability.
In summary, after the training sample is subjected to standardized pretreatment, a PCA model is established to obtain a load matrix P, then sample data is collected online in real time, a principal component space of online data is calculated by using the PCA model established in an offline process, and the training data and the principal component space of the online data are subjected to K-S test to obtain a value of K-S test statistic D n and a control limit to realize online monitoring. In order to verify the feasibility of the invention, principal component space statistic T 2 and residual space statistic SPE statistic calculated by the traditional PCA fault detection model are compared with the monitoring effect of K-S test statistic D n. According to the fault detection method, the change condition of the micro fault characteristics of the industrial process can be more accurately found by comparing the micro differences of the probability distribution of the data of the training sample and the probability distribution of the data of the test sample, so that the fault detection rate can be improved, and the fault false alarm rate can be reduced.
The present invention is not described in detail in the present application, and is well known to those skilled in the art.
The foregoing describes in detail preferred embodiments of the present invention. It should be understood that numerous modifications and variations can be made in accordance with the concepts of the invention by one of ordinary skill in the art without undue burden. Therefore, all technical solutions which can be obtained by logic analysis, reasoning or limited experiments based on the prior art by the person skilled in the art according to the inventive concept shall be within the scope of protection defined by the claims.
Claims (7)
1. A method for detecting a micro-fault based on Kolmogorov-Smirnov test, wherein the method for detecting a micro-fault comprises an offline modeling process and an online monitoring process, wherein the offline modeling process comprises:
Step S1, collecting CSTH historical normal data X in the process, dividing the data into a training sample set X tr and a test sample set X te according to a certain proportion, and carrying out normalization processing;
Step S2, a principal component analysis is used for the training sample set X tr obtained in the step S1 to obtain a PCA model of the training sample set X tr, and then a load matrix P of the training sample set X tr is obtained;
Step S3, according to the load matrix P obtained in the step S2, a principal element subspace T tr of a training sample set X tr and a principal element subspace T te of a test sample set X te are calculated;
Step S4, performing K-S test, which comprises the following steps: firstly, setting a sliding window, and calculating the empirical distribution function EDF of the ith principal element t tri of the training sample and the ith principal element t tei of the test sample in the window; then K-S test is carried out to obtain the value of K-S statistic D n; then, sliding the sliding window backwards, repeating the steps until the window slides to the last data in the pivot;
Step S5, given a significant level alpha, calculating a control limit D n (alpha);
The online monitoring process specifically comprises the following steps:
s6, acquiring real-time online data X on in CSTH process, and carrying out normalization processing on the data;
step S7, calculating a principal component space T on of the online data X on by using the load matrix P of the training sample set X tr obtained in the step S2;
Step S8, performing K-S test, which comprises the following steps: given the width of a sliding window, calculating the empirical distribution function EDF of the ith principal element t tri of the training sample in the window and the ith principal element t oni of the online sample, and further solving the value of the K-S test statistic D n;
s9, comparing the statistic D n with the value of the control limit D n (alpha), and judging whether a fault occurs at the current moment of the system;
step S10, repeating the steps S7-S9 when the online data at the next moment is collected, and sliding the window backwards.
2. The method according to claim 1, wherein in the step S1, the training sample set is denoted as X tr=[Xtr(1) Xtr(2) … Xtr(n)]T∈Rn×m, the test sample set is denoted as X te=[Xte(1) Xte(2) … Xte(n)]T∈Rn×m, and n is denoted as the number of samples, and m is denoted as a variable involved in CSTH.
3. The method for detecting micro-faults based on the Kolmogorov-Smirnov test according to claim 2, wherein the step S2 specifically comprises:
Step S201, aiming at a training sample set X tr, solving a covariance matrix according to a formula (1), and decomposing the covariance matrix to obtain a characteristic value matrix of the training sample set and a corresponding characteristic vector thereof;
Step S202, determining the number l of principal components of a training sample set according to a criterion that the accumulated contribution rate of the eigenvalues reaches 90%, and calculating a load matrix P according to a formula (1) and a first l column of eigenvectors corresponding to the eigenvalue matrix, wherein the formula (1) specifically represents:
In the formula (1), S is a covariance matrix, Λ= [ λ 1,λ2,...,λm ] is a eigenvalue matrix and λ 1≥λ2≥…≥λm, V is an eigenvector corresponding to the eigenvalue, P is a load matrix, M-l columns of V;
The criterion that the cumulative contribution rate of the characteristic values reaches 90 percent is specifically expressed as follows:
4. The method for detecting micro-faults based on the Kolmogorov-Smirnov test as claimed in claim 3, wherein the step S4 specifically comprises:
Step S401, a sliding window width W is given as 20, and a formula (3) is utilized to calculate EDFF 1 (x) of a first principal element t tr1 in a principal element subspace of a training sample in the window and EDFF 2 (x) of a first principal element t te1 in a principal element subspace of a test sample;
in equation (3), y k is the kth observation of a random variable;
Step S402, calculating the value of the statistic D n of K-S (t tr1,tte1) according to the formula (4), wherein the formula (4) specifically comprises:
In equation (4), n 1,n2 is the number of samples in the sliding window, A maximum value of a vertical distance between the empirical distribution function images of the two samples;
Step S403, setting the step pitch of the sliding window to be 1, and calculating the value of the statistic D n in the second window by the backward sliding window until the window slides to the last data in the first principal element, thereby obtaining the value of n-W+1 statistic of the first principal element;
and S404, repeating the steps, and calculating the values of n-W+1 statistic values of all the l principal elements.
5. The method for detecting a micro-fault based on the Kolmogorov-Smirnov test according to claim 4, wherein in the step S5, the significant level α=0.05, the value of the control limit D n (α) is obtained by the formula (5), expressed as:
6. the method for detecting a micro-fault based on the Kolmogorov-Smirnov test according to claim 5, wherein in step S9, it is determined whether a fault occurs according to formula (6), specifically:
7. The method for detecting a micro fault based on Kolmogorov-Smirnov test according to claim 6, wherein the process CSTH involves variable m, which specifically includes: the liquid level of the reaction kettle, the flow of cold water, the valve position of cold water, the temperature of the reaction kettle, the flow of hot water and the valve position of hot water.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210155043.1A CN114528939B (en) | 2022-02-21 | 2022-02-21 | Micro fault detection method based on Kolmogorov-Smirnov test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210155043.1A CN114528939B (en) | 2022-02-21 | 2022-02-21 | Micro fault detection method based on Kolmogorov-Smirnov test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114528939A CN114528939A (en) | 2022-05-24 |
CN114528939B true CN114528939B (en) | 2024-05-17 |
Family
ID=81624005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210155043.1A Active CN114528939B (en) | 2022-02-21 | 2022-02-21 | Micro fault detection method based on Kolmogorov-Smirnov test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114528939B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105259895A (en) * | 2015-10-14 | 2016-01-20 | 山东科技大学 | Method and monitoring system for detecting and separating micro fault in industrial process |
CN110244692A (en) * | 2019-06-20 | 2019-09-17 | 中国石油大学(华东) | Chemical process small fault detection method |
CN111045415A (en) * | 2019-12-03 | 2020-04-21 | 沈阳化工大学 | Multi-modal process fault detection method based on local probability density double subspace |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3002651B1 (en) * | 2014-09-30 | 2021-01-13 | Endress+Hauser Group Services AG | Monitoring means and monitoring method for monitoring at least one step of a process run on an industrial site |
-
2022
- 2022-02-21 CN CN202210155043.1A patent/CN114528939B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105259895A (en) * | 2015-10-14 | 2016-01-20 | 山东科技大学 | Method and monitoring system for detecting and separating micro fault in industrial process |
CN110244692A (en) * | 2019-06-20 | 2019-09-17 | 中国石油大学(华东) | Chemical process small fault detection method |
CN111045415A (en) * | 2019-12-03 | 2020-04-21 | 沈阳化工大学 | Multi-modal process fault detection method based on local probability density double subspace |
Also Published As
Publication number | Publication date |
---|---|
CN114528939A (en) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106647718B (en) | Nonlinear industrial processes fault detection method based on the slow signature analysis of Bayes's core | |
CN108062565B (en) | Double-principal element-dynamic core principal element analysis fault diagnosis method based on chemical engineering TE process | |
CN109407652B (en) | Multivariable industrial process fault detection method based on main and auxiliary PCA models | |
CN105700518B (en) | A kind of industrial process method for diagnosing faults | |
CN109739214B (en) | Method for detecting intermittent faults in industrial process | |
CN110244692B (en) | Chemical process micro-fault detection method | |
CN106092625B (en) | The industrial process fault detection method merged based on amendment type independent component analysis and Bayesian probability | |
CN105404280A (en) | Industrial process fault detection method based on autoregression dynamic hidden variable model | |
Rotem et al. | Ethylene compressor monitoring using model‐based PCA | |
CN109740687B (en) | Fermentation process fault monitoring method based on DLAE | |
CN108897286A (en) | A kind of fault detection method based on distributing nonlinear dynamical relations model | |
Sanchez-Fernández et al. | Fault detection in wastewater treatment plants using distributed PCA methods | |
CN108508865A (en) | A kind of fault detection method based on distributing OSC-PLS regression models | |
CN103926919B (en) | Industrial process fault detection method based on wavelet transformation and Lasso function | |
WO2021114320A1 (en) | Wastewater treatment process fault monitoring method using oica-rnn fusion model | |
CN105334823A (en) | Supervision-based industrial process fault detection method of linear dynamic system model | |
CN108830006B (en) | Linear-nonlinear industrial process fault detection method based on linear evaluation factor | |
CN108345294B (en) | A kind of fault detection method based on distributing principal component regression model | |
CN110362063B (en) | Fault detection method and system based on global maintenance unsupervised kernel extreme learning machine | |
CN114611067A (en) | Chemical process slow-change fault detection method based on typical variable dissimilarity analysis | |
CN108181893A (en) | A kind of fault detection method based on PCA-KDR | |
CN103995985B (en) | Fault detection method based on Daubechies wavelet transform and elastic network | |
CN114528939B (en) | Micro fault detection method based on Kolmogorov-Smirnov test | |
CN112149054B (en) | Construction and application of orthogonal neighborhood preserving embedding model based on time sequence expansion | |
CN110244690B (en) | Multivariable industrial process fault identification method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |