CN115964662A - Complex equipment parameter anomaly detection method based on improved density peak clustering - Google Patents

Complex equipment parameter anomaly detection method based on improved density peak clustering Download PDF

Info

Publication number
CN115964662A
CN115964662A CN202111173491.6A CN202111173491A CN115964662A CN 115964662 A CN115964662 A CN 115964662A CN 202111173491 A CN202111173491 A CN 202111173491A CN 115964662 A CN115964662 A CN 115964662A
Authority
CN
China
Prior art keywords
clustering
kdist
abnormal
samples
class
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.)
Pending
Application number
CN202111173491.6A
Other languages
Chinese (zh)
Inventor
付旭云
夏湘钊
孙昊
张永健
刘雪云
钟诗胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology Weihai
Original Assignee
Harbin Institute of Technology Weihai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology Weihai filed Critical Harbin Institute of Technology Weihai
Priority to CN202111173491.6A priority Critical patent/CN115964662A/en
Publication of CN115964662A publication Critical patent/CN115964662A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention relates to a complex equipment parameter abnormity detection method based on improved density peak value clustering, which can improve the detection accuracy without executing complex parameter adjustment and other processing, and compared with the prior art, in order to avoid the influence of extreme sample unbalance on the detection effect, a density peak value clustering algorithm is adopted; in order to overcome the subjectivity of a local density calculation mode, a local density measurement criterion based on sample K nearest neighbors is introduced; in order to overcome the potential problem of chain distribution errors in the sample distribution process, a sample distribution strategy based on K nearest neighbors of a sample is introduced; in order to improve the accuracy of outlier selection and reduce the influence of outliers on the clustering process, a new outlier threshold determining mode and an outlier processing mode are provided; aiming at the engine with enough abnormal samples, a weak supervision clustering parameter adjustment strategy is provided for reducing parameter adjustment difficulty, and aiming at the engine with insufficient abnormal samples, an abnormal detection mode under the condition of weak supervision is provided, so that the detection precision is obviously improved.

Description

Complex equipment parameter anomaly detection method based on improved density peak clustering
The technical field is as follows:
the invention relates to the technical field of complex equipment parameter anomaly detection, in particular to a complex equipment parameter anomaly detection method based on improved density peak value clustering, which can improve the detection accuracy on the premise of not executing complex parameter adjustment and other processing.
The background art comprises the following steps:
due to the fact that the original values of gas circuit parameters of complex equipment such as civil aviation engines have the characteristics of being unbalanced in extreme samples, insufficient in labels and the like, most of abnormity detection methods are difficult to obtain accurate abnormity detection results, and different equipment are different in running health state for abnormity detection tasks of complex equipment parameters with large number of parts, so that the accuracy is inevitably reduced when the extracted features participate in density clustering together. The data set of a single device has smaller scale, and the local density of the sample is subjected to the truncation distance d c The great influence of (c). In addition, the density peak value clustering divides the clustering centers through a decision diagram formed by rho and delta, samples j outside the clustering centers are classified to the clustering centers which are higher in density and closest to the clustering centers, and although the method is efficient, once clustering division of a certain point is wrong, linkage errors of the rest points are easily caused. For this reason, many scholars have studied local density definition methods using K-nearest neighbors of samples and new sample allocation strategies.
Existing modified density peak clustering DPC algorithms ultimately aim at clustering rather than anomaly detection, and outliers may be classified as cluster centers or assigned to the closest class. However, outliers faced by the anomaly detection task are usually independent of all categories, the correlation between outliers is small, and the outliers are roughly taken as a cluster center or distributed to other categories, which brings great errors to the anomaly detection task. Meanwhile, the number of K neighbor samples needs to be adjusted for many times, and great subjectivity exists.
The invention content is as follows:
aiming at the defects and shortcomings in the prior art, the invention provides the complex equipment parameter abnormity detection method based on the improved density peak value clustering, which can improve the detection accuracy on the premise of not executing complex parameter adjustment and other processing.
The invention is achieved by the following measures:
a complex equipment parameter anomaly detection method based on improved density peak clustering is characterized by comprising the following steps:
step 1: constructing a complex equipment parameter anomaly detection model, wherein a weak supervision anomaly detection model is established for equipment with enough anomalous samples, and an unsupervised anomaly detection model is established for equipment with insufficient anomalous samples;
step 2: performing anomaly detection, specifically comprising:
step 2-1: the local density is defined using an exponential kernel function of width δ =1, as shown in the following equation:
Figure BDA0003292310650000011
KNN (i) -a set of K neighbor points of the point i,
d ij point x i And x j The euclidean distance of (c) is,
the original outlier threshold is shown in formulas (5) to (7), the outliers are finally allocated to the clusters closest to the original outliers after the other clusters are completed, the outlier threshold is determined in an average mode, so that the selected outliers are very many, the outliers are possibly not judged to be abnormal because the outliers are finally allocated to the categories closest to the outliers, and k is dist (i)=max j∈KNN(i) {d ij }(5),
Figure BDA0003292310650000012
Outlier={o|k dist (o) > threshold } (7), wherein k is dist (i) The farthest K of the point i is adjacent to the point;
step 2-2: coordinate transformation as in equations (8) - (10) is performed,
Figure BDA0003292310650000021
Figure BDA0003292310650000022
(x Kdist ′,y Kdist ′)=(x Kdist -min(x Kdist ),y Kdist -min(y Kdist ))·M trans (10),
in the formula x Kdist -vector, y, representing all values of curve Kdist on the x-axis Kdist -vector, M, representing all values of curve Kdist on the y-axis trans -a transformation matrix, x, representing samples for rotation axes Kdist ' -vector, y, representing all values on the axis after rotation Kdist 'represents the vector formed by all values on the axis after rotation, and the Threshold point Threshold' can be found after coordinate transformation is finished (x) Kdist ′(i),min(y Kdist ′)),x Kdist ' (i) represents x Kdist ' sequentially arranging indexes of ith value, and determining x according to the indexes i Kdist (i) And the corresponding Threshold value Threshold of the outlier, after the Threshold value is determined, the outlier is directly classified into an abnormal class without participating in the subsequent clustering process;
step 2-3: the clustering process is as follows:
step 2-3-1: calculating local density, determining a density peak point, determining a clustering center through a decision diagram, and sequentially adding a class label M (M =0,1,2,3, \8230; M),
step 2-3-2: continuously searching the points which are not distributed with clusters in the K neighbors of the cluster center, dividing the points into clusters where the cluster center is located,
step 2-3-3: calculating the probability of the remaining points belonging to each category, and assigning the probability to the category with the highest probability, wherein the probability calculation method is shown as formulas (11) and (12), and respectively calculating the point x i Similarity to each class, then assign point xi to the most probable class,
Figure BDA0003292310650000023
where KNN (i) is a K nearest neighbor set of points i, y j =m,m=1,2,3, \8230;, M denotes a label of a category,
d ij is a point x i And x j Euclidean distance of(s) ij Is a point x i And x j The closer the distance, the higher the similarity, P i m Is the probability that point i belongs to the category m,
w ij is x i And x j Similar weight of (2) to x j Is related to the K-nearest neighbor distribution,
Figure BDA0003292310650000024
and step 3: adjusting a weakly supervised anomaly detection hyper-parameter according to a weakly supervised anomaly detection result, and adjusting an unsupervised anomaly detection hyper-parameter according to an unsupervised clustering evaluation index;
and 4, step 4: and outputting an abnormal detection result.
For complex equipment with the number of abnormal samples larger than 1, the following weak supervision clustering adjustment strategy is implemented:
step 3-1: an iteration strategy of the K nearest neighbor number is provided, the K nearest neighbor number starts from 0.9 total sample number, the value is reduced at intervals of 0.1 total sample number, when the K nearest neighbor number is smaller than 0.1 total sample number, half is continuously reduced, and the value is rounded until the value of the K nearest neighbor number is 1;
step 3-2: and continuously iteratively dividing outliers and minority classes, wherein the judgment standard of the minority classes is as follows: judging according to whether the number of the samples in the class is less than 0.01 total sample number;
step 3-3: only one of the abnormal labels is randomly reserved, after each iteration, whether the known abnormality is detected by the abnormal detection result is judged, namely whether the known abnormality is contained in the outlier and the few samples is detected, and if the known abnormality can be detected, the iteration is stopped;
step 3-4: if the K nearest neighbor number is reduced to 1 and no abnormality is detected, increasing 0.01 total sample number for the minority class judgment standard;
step 3-5: if the minority class judgment standard is increased to 0.1 total sample number and still no abnormity can be found, the abnormity detection algorithm is considered to be invalid;
step 3-6: after the anomaly detection is finished, storing the weak supervision clustering parameters, judging whether the anomaly with the removed labels is detected by the algorithm, if all the anomalies can be detected, considering that the effect of the abnormal algorithm is good, and if the anomalies can not be detected, considering that the effect of the algorithm is good, and if the anomalies can not be detected, considering that the algorithm is invalid;
therefore, a weak supervision anomaly detection algorithm based on improved density peak clustering without complex parameter adjustment process is completed, when new data needs to be abnormally detected, the new data is added into the old data, and the abnormal detection of the new data is realized through the weak supervision anomaly detection;
for complex equipment with only one abnormal number, a weak supervision clustering adjustment strategy is not applicable, so that only an unsupervised clustering method can be adopted, the K neighbor number is continuously adjusted according to four evaluation indexes of a CH coefficient, a contour coefficient, a Davison baume index and a Dunn index, the cluster with the highest score is used for abnormal detection, wherein the CH coefficient calculates the compactness and the separability through the sum of squares of distances, the contour coefficient SC calculates the compactness and the separability through observing the obvious degree of a clustering boundary, the Davison baume index DBI calculates the compactness and the separability through the maximum value of an intra-class sample clustering average value and the clustering center distance, and the Dengen index DVI calculates the ratio of the nearest distance of the inter-class sample to the farthest distance of the intra-class sample to judge the compactness and the separability.
Compared with the prior art, in order to avoid the influence of the unbalance of the extreme samples on the detection effect, a density peak value clustering algorithm is adopted; in order to overcome the subjectivity of a local density calculation mode, a local density measurement criterion based on K nearest neighbors of a sample is introduced; in order to overcome the potential problem of chain distribution errors in the sample distribution process, a sample distribution strategy based on K nearest neighbors of a sample is introduced; in order to improve the accuracy of outlier selection and reduce the influence of outliers on the clustering process, a new outlier threshold determining mode and an outlier processing mode are provided; aiming at the engine with enough abnormal samples, a weak supervision clustering parameter adjustment strategy is provided for reducing parameter adjustment difficulty, and aiming at the engine with insufficient abnormal samples, an abnormal detection mode under the condition of weak supervision is provided, so that the detection precision is obviously improved.
Description of the drawings:
FIG. 1 is a schematic block diagram of one embodiment of the present invention.
Fig. 2 is a graph of old outlier threshold values in an embodiment of the present invention.
Fig. 3 is a graph of new outlier threshold values in an embodiment of the present invention.
Fig. 4 is a graph showing the influence of the K nearest neighbor number on the clustering effect in the embodiment of the present invention.
The specific implementation mode is as follows:
the invention is further described below with reference to the accompanying drawings and examples.
Example 1:
the embodiment takes an aircraft engine parameter as an example, and provides an aircraft engine equipment parameter abnormity detection method based on improved density peak value clustering, which comprises the following steps:
due to the fact that the original values of the gas circuit parameters of the civil aviation engine have the characteristics of unbalance of extreme samples, insufficient labels and the like, most of abnormity detection methods are difficult to obtain accurate abnormity detection results, and therefore the method is of great importance for researching an abnormity detection method which is not influenced by the unbalance of the extreme samples and can be used for mining useful information from the insufficient labels. The density clustering judges the type of the sample according to the density of the distribution position of the sample, is not influenced by the type imbalance, and can accurately find the abnormal point, so that the method for researching the abnormal detection based on the density clustering has wide application prospect.
Aiming at the problems, the invention provides a weak supervision anomaly detection algorithm based on improved density peak value clustering. Firstly, considering the defects of a density peak value clustering local density calculation mode and a sample distribution strategy, introducing a K nearest neighbor-based sample local density definition strategy and a sample distribution strategy; in order to better use the density peak value clustering for abnormal detection and reduce the influence of outliers on clustering distribution, a self-adaptive outlier threshold value determining method is provided and the outliers are excluded from the clustering distribution process; finally, in order to utilize the label and reduce the complex parameter adjusting process, a weak supervision clustering parameter adjusting strategy is provided by analyzing the influence of the K neighbor number on the clustering effect, the purpose of detecting the known abnormality is achieved, and the weak supervision abnormality detecting method without the complex parameter adjusting process is realized by iteratively and automatically adjusting the parameters.
In order to accurately detect an abnormality of the extracted features, an abnormality detection algorithm as shown in fig. 1 is proposed. In order to avoid the influence of the unbalance of the extreme samples on the detection effect, a density peak value clustering algorithm is adopted; in order to overcome the subjectivity of a local density calculation mode, a local density measurement criterion based on K nearest neighbors of a sample is introduced; in order to overcome the potential problem of chain distribution errors in the sample distribution process, a sample distribution strategy based on K nearest neighbors of a sample is introduced; in order to improve the accuracy of outlier selection and reduce the influence of outliers on the clustering process, a new outlier threshold determining mode and an outlier processing mode are provided; aiming at the engine with enough abnormal samples, a weak supervision clustering parameter adjustment strategy is provided for reducing parameter adjustment difficulty, and an abnormal detection mode under the condition of weak supervision is provided for the engine with insufficient abnormal samples.
The Density Peak Clustering (DPC) algorithm assumes that the ideal cluster center has two basic features: 1) Its local density is greater than that of the surrounding points; 2) The different cluster centers are distributed far apart. The DPC algorithm proposes the local density ρ of the sample i i Distance d of truncation c Distance δ of nearest sample j other than local density j Three concepts. Rho i And delta j The calculation formula is shown in formulas 1-3, and the truncation distance d c And adjusting the super-parameter according to the clustering effect.
Figure BDA0003292310650000041
Figure BDA0003292310650000042
Figure BDA0003292310650000043
In the formula d ij -representing the euclidean distance between samples i, j.
For the anomaly detection task of the invention, different engines have different health states, so that the accuracy is necessarily reduced when the extracted features participate in density clustering together. The data set of a single engine has smaller scale, and the local density of the sample is subjected to the truncation distance d c The great influence of (2). In addition, the DPC divides the cluster centers by a decision graph formed by ρ and δ, and classifies the samples j outside the cluster centers to the cluster centers which have higher density and are closest to the cluster centers. For this reason, many scholars have studied local density definition methods using K-nearest neighbors of samples and new sample allocation strategies.
The ultimate goal of existing modified DPC algorithms is clustering rather than anomaly detection, and outliers may be classified as cluster centers or assigned to the closest class. However, outliers faced by the anomaly detection task are usually independent of all categories, and the correlation between outliers is small, so that the outliers are roughly taken as a clustering center or distributed to other categories, which brings great errors to the anomaly detection task. Meanwhile, the number of K adjacent samples needs to be adjusted for multiple times, and great subjectivity exists. For this reason, we propose an anomaly detection algorithm and a weakly supervised Clustering adjustment strategy based on Improved Density Peak Clustering (IDPC).
Firstly, optimizing an outlier division mode, directly defining outliers as exceptions, and reducing the interference of the outliers on clustering results; then optimizing a clustering distribution strategy to finish clustering on the residual points, and taking a few class samples with too few samples in the class and outliers as exception handling; the influence of the K near neighbor number on the clustering precision is evaluated through a plurality of evaluation indexes, and a weakly supervised clustering parameter adjustment strategy and a weakly supervised IDPC (inverse discrete cosine computer) which automatically select the K near neighbor sample number through iteration and find out the abnormality, namely terminate the iteration are provided. Finally, the application range of weak supervision is considered to be small, and the unsupervised IDPC is provided.
The local density is defined using an exponential kernel function with width δ =1, as shown in equation 4.
Figure BDA0003292310650000051
KNN (i) -a set of K neighbor points of point i.
d ij -point x i And x j The euclidean distance of (c).
The outlier threshold is shown in equations 5-7, and after the clustering of the remaining points is completed, the outlier is finally assigned to the cluster closest to the outlier. The outlier threshold is determined by averaging, resulting in a large number of outliers being selected, and the last assignment of an outlier to the closest class may result in the outlier not being judged as abnormal.
k dist (i)=max j∈KNN(i) {d ij }(5)
Figure BDA0003292310650000052
Outlier={o|k dist (o)>threshold}(7)
In the formula k dist (i) The farthest K of points i is the nearest neighbor.
As FIG. 2 green line segment represents the original old outlier threshold, kdist represents all k dist (i) According to the curve formed by the size arrangement, the inflection point of Kdist cannot be accurately found by the outlier threshold dividing method, and therefore a new outlier threshold dividing method shown by a red line segment in FIG. 2 is provided.
As shown in fig. 3, a new outlier threshold calculation method is performed by rotating the curve Kdist to the angle shown in the drawing with the minimum value of the curve Kdist as the origin, and a new coordinate axis and a new curve Kdist' are obtained. The minimum value of a new curve Kdist' on a new coordinate axis is an inflection point, the inflection point is set as an outlier threshold, and then the position on the original coordinate axis corresponding to the threshold is obtained, wherein the coordinate transformation process is shown as a formula 8-10.
Figure BDA0003292310650000053
Figure BDA0003292310650000061
(x Kdist ′,y Kdist ′)=(x Kdist -min(x Kdist ),y Kdist -min(y Kdist ))·M trans (10)
In the formula x Kdist The vector formed by all values of the curve Kdist on the x axis is represented.
y Kdist The vector formed by all values of the curve Kdist on the y axis is represented.
M trans -a transformation matrix representing samples for rotation of the coordinate axes.
x Kdist ' -vector composed of all values of KdIst ' on x ' axis after rotation.
y Kdist ' -vector consisting of all values of the rotated Kdist ' on the y ' axis.
After the coordinate transformation is completed, the Threshold point Threshold' (x) can be found Kdist ′(i),min(y Kdist ′)),x Kdist ' (i) i denotes x Kdist ' sequentially arranging indexes of ith value, and determining x according to the indexes i Kdist (i) And its corresponding outlier Threshold. After the threshold value is determined, the outliers are directly classified into the abnormal class without participating in the subsequent clustering process.
The complete clustering process is as follows:
1) Calculating local density, determining a density peak point, determining a clustering center through a decision diagram, and sequentially adding a category label M (M =0,1,2,3, \8230; M).
2) And continuously searching points which are not distributed with clusters in the K neighbors of the cluster center, and dividing the points into clusters where the cluster center is located.
3) The probability that the remaining points belong to each class is calculated and assigned to the class with the highest probability.
Probability calculation method, as shown in equations 11-12, calculates points x, respectively i Similarity to each class, then point x i Assigned to the class with the highest probability.
Figure BDA0003292310650000062
Figure BDA0003292310650000063
KNN (i) -K neighbor set of points i.
y j = M-M =1,2,3, \ 8230;, M denotes a label of a category.
d ij Point x i And x j The euclidean distance of (c).
s ij -point x i And x j The closer the distance, the higher the similarity.
P i m The probability that point i belongs to category m.
w ij ——x i And x j Similar weight of (2) to x j Is related to the K-nearest neighbor distribution,
Figure BDA0003292310650000064
and after the clustering is completed, taking the noise points and the minority classes as the anomalies.
And (3) adjusting a weak supervision clustering parameter strategy: the CH Coefficient (Calinski-Harabasz, CH), the contour Coefficient (SC), the Daviesenberg Index (DBI) and the Dunn Index (DVI) are four unsupervised indexes for evaluating the clustering effect, and the larger the intra-class compactness is, the larger the inter-class separation is, and the better the clustering effect is. CH calculates closeness and separability through the square sum of distances, SC calculates closeness and separability through observing the obvious degree of clustering boundaries, DBI calculates closeness and separability through the maximum value of the clustering average value of the intra-class samples and the distance of the clustering centers, and DVI calculates the ratio of the nearest distance of the inter-class samples to the farthest distance of the intra-class samples to judge closeness and separability.
Fig. 4 shows the scores of the four indicators when the K-neighborhood number of the data used in the present invention increases from 1 to 1602 (0.9 times the total sample). From the unsupervised view, for the abnormal detection task of the invention, when the K nearest neighbor number is larger, the clustering result is closer to the result under the ideal condition: normal-abnormal class, with a smaller number of classes. When the number of the K nearest neighbors is small, the number of the clusters in the clustering result is large, and outliers and few class samples are very large. The larger the K nearest neighbor number is, the larger the number of most classes of samples is, the fewer the classes in the clustering result is, which results in the increased compactness and the decreased separation degree obtained by the calculation of the sum of squared distances of the samples. Therefore, the larger the K neighbor number, the worse the CH. Other indicators use the mean or maximum value instead of the sum of squares to calculate closeness and separation, avoiding the effects of excessive samples in most categories, resulting in similar score trends. Therefore, the clustering effect is based on the following three indexes. That is, the larger the number of K neighbors, the higher the clustering score, and when the number of K neighbors is close to 1, the clustering score is one, so the value of K neighbors should be larger or smaller.
Most of the data used by the invention are normal data, the distribution of which is concentrated, and the most ideal clustering result is to cluster the data into two types, namely normal and noise (abnormal). When the K nearest neighbor number is larger (close to the total number of samples), the clustering result is influenced by the overall data, the clustering result is closer to the clustering under the ideal condition, the found noise is less, and a few samples in the class are also less. When the number of K neighbors is small (close to 1), the local density can reflect local conditions near the data points, clustering is finer, the number of clustered categories is larger, and noise points and few intra-category samples are also larger. Therefore, the value of the K neighbor number is larger or smaller.
For engines with more than 1 abnormal sample number, we propose the following weakly supervised clustering adjustment strategy:
1) An iteration strategy of the K nearest neighbor number is provided, the K nearest neighbor number starts from 0.9 total sample number, the value is reduced at intervals of 0.1 total sample number, when the K nearest neighbor number is smaller than 0.1 total sample number, half is continuously reduced, and the value is rounded until the value of the K nearest neighbor number is 1;
2) And continuously iteratively dividing outliers and minority classes, wherein the judgment standard of the minority classes is as follows: judging according to whether the number of the samples in the class is less than 0.01 total sample number;
3) Only one of the abnormal labels is randomly reserved, after each iteration, whether the known abnormality is detected by the abnormal detection result is judged, namely whether the known abnormality is contained in the outlier and the few samples is detected, and if the known abnormality can be detected, the iteration is stopped;
4) If the K nearest neighbor number is reduced to 1 and no abnormality is detected, increasing 0.01 total sample number for the minority class judgment standard;
5) And if the few types of judgment standards are increased to 0.1 total sample number and the abnormality still cannot be found, the abnormality detection algorithm is considered to be invalid.
6) And after the anomaly detection is finished, storing the weak supervision clustering parameters, judging whether the anomaly with the removed labels is detected by the algorithm, if all the anomalies can be detected, considering that the effect of the anomaly algorithm is good, and if the anomalies can not be detected, considering that the algorithm effect is good, and if the anomalies can not be detected, considering that the algorithm is invalid.
Therefore, the weak supervision anomaly detection algorithm based on the improved density peak value clustering without a complex parameter adjusting process is completed. When new data needs to be detected abnormally, the new data is added into the old data, and the abnormal detection of the new data is realized through weak supervision abnormal detection.
For an engine with only one abnormal number, the weak supervision clustering adjustment strategy is not applicable, so that only an unsupervised clustering method can be adopted, the K neighbor number is continuously adjusted according to the four evaluation indexes, and the cluster with the highest score is used for abnormal detection. However, due to the fact that evaluation standards of the four indexes are not consistent, K neighbor is not easy to adjust, and due to the fact that guidance of label information is lacked, abnormal detection and false alarm are difficult to control.
The effect of the anomaly detection algorithm is usually evaluated by using a false alarm rate and an ROC (Receiver Operating Characteristic Curve), wherein the false alarm rate is a ratio of the number of false alarms to the number of detected anomalies, and the ROC is calculated according to indexes such as false alarms and false negatives. The false alarm rate requires a sufficient number of outlier samples and the ROC curve requires a sufficient number of outlier samples and a complete supervised label.
For the data used by the method, the total amount of samples is large, abnormal samples are few, labels are fewer, and both the false alarm rate and the ROC curve cannot be used for judging the quality of the method. Considering that the tolerance degrees of different sample total amounts to the number of false alarms are different, the invention adopts the ratio of the total number of the false alarms to the total number of the samples under the condition that the abnormality can be detected as the evaluation index.
In order to verify whether the method provided by the invention is effective, the method provided by the invention is applied and verified. In the data used by the method, most engines only have one abnormal label, so the part of engines adopt unsupervised IDPC to carry out abnormal detection; for other engines with a plurality of abnormalities, one abnormal label is randomly reserved for carrying out weak supervision IDPC (idle mode performance) abnormality detection, and after the detection is finished, the judgment standard of the abnormality detection effect is as follows: whether an anomaly of all or a portion of the erased labels is detected.
The application verification process of the anomaly detection algorithm based on the improved density peak clustering is as follows:
1) Constructing an anomaly detection model;
2) Respectively setting a weak supervision abnormity detection model and an unsupervised abnormity detection model aiming at engines with different abnormity numbers, randomly reserving an abnormity label for guiding the weak supervision abnormity detection process for the engine using the weak supervision abnormity detection, and not participating in the abnormity detection process for the engine using the unsupervised abnormity detection;
3) Performing anomaly detection;
4) Adjusting a weak supervision abnormal detection super parameter according to a weak supervision abnormal detection result, and adjusting an unsupervised abnormal detection super parameter according to an unsupervised clustering evaluation index;
5) Outputting an abnormal detection result;
6) For weak supervision abnormal detection, the effectiveness of the abnormal detection result is verified by using the abnormal of the erased label, and for unsupervised abnormal detection, the effectiveness of the abnormal detection result is judged by using the label, as shown in a table;
7) In order to prove the superiority of the method, a multi-group density clustering method and a multi-group feature extraction method are combined in a cross mode to serve as a comparison test, and missing reports and false reports are used as indexes for evaluating an abnormal detection result.
TABLE 1 results of anomaly detection
Figure BDA0003292310650000081
Figure BDA0003292310650000091
Table 1 shows the anomaly detection results of the anomaly detection algorithm (MKSFA + IDPC) combining MKSFA with IDPC and the anomaly detection results of WSFE combining IDPC. The four old engines in the WSFE feature extraction model adopt features extracted by a new training model, and the other engines adopt features extracted by a mixed training model. The two methods provided by the invention can find most of the abnormalities of 12 engines, have less false reports and less false reports except for individual engines, and can effectively reduce the false reports by combining the two methods to meet the requirements of practical application.
In order to prove the effectiveness of the proposed method of the present invention and the correctness of the model setup in the present invention, a number of different anomaly detection models are used as comparative tests in the following. The model 1 is a Gaussian kernel slow characteristic analysis feature extraction method combined with IDPC to carry out anomaly detection; the model 2 is a polynomial kernel slow characteristic analysis feature extraction method combined with IDPC to carry out anomaly detection; the model 3 is a linear kernel slow characteristic analysis feature extraction method combined with IDPC to carry out anomaly detection; the model 4 is used for carrying out anomaly detection by combining an IDPC (inverse discrete cosine computer) by using a feature extraction method without adding a WSCE (Wireless sensor element) loss function and a classifier; the model 5 is a feature extraction method without adding a WSCE loss function and a classifier, and combines DPC to carry out anomaly detection; the model 6 is used for carrying out abnormity detection by combining WSCE with DPC; model 7 was performed for WSFE in combination with OPTICS for anomaly detection. Table 2 shows the anomaly detection effect of the above model, and the underlined results indicate that the anomaly detection result is weakly supervised.
Table 2 anomaly detection comparative test for model details
Figure BDA0003292310650000092
The results of the models 1 to 3 show that the mixed kernel function provided by chapter two of the invention can effectively improve the feature extraction and anomaly detection effects, the anomaly features are more obvious, and meanwhile, the false alarms of anomaly detection are less, thereby proving the effectiveness of the feature extraction method of chapter two of the invention. The results of the models 4-7 show that the model structure, the loss function and the like of the third chapter can effectively improve the feature extraction effect, and the extracted feature is more easily detected while the accurate gas circuit baseline of the engine is mined, so that the effectiveness of the third chapter feature extraction method is proved. The anomaly detection method can detect most of known anomalies, has less missing report and false report, and proves the superiority of the feature extraction and anomaly detection method.
In order to prove that the anomaly detection method is superior to the existing method, four feature extraction methods of PCA, AE, ICA and LLE are combined with IDPC, DPC and OPTICS respectively to construct 12 groups of models for anomaly detection comparison experiments. For the sake of brevity, the anomaly detection results of the seven invalid models are not specifically listed, and the comparison results are shown in table 3, and the underlined results indicate that the anomaly detection results are weakly supervised.
TABLE 3 anomaly detection comparative test of conventional methods
Figure BDA0003292310650000101
As can be seen from table 3, the features extracted by the conventional feature extraction method cannot accurately reflect the features of the abnormality, and the abnormality cannot be effectively detected by any abnormality detection method, which proves that the method provided by the present invention is an abnormality detection method with a wide application prospect.
The invention mainly provides an anomaly detection algorithm and a weak supervision adjustment strategy based on improved density peak value clustering. And secondly, by analyzing the characteristics of the characteristic result extracted in the previous step, the influence of different K adjacent sample numbers on the clustering result is researched. Finally, aiming at the engine with sufficient abnormal samples, a weak supervision clustering adjustment strategy is provided by adding weak supervision label information, and a weak supervision abnormal detection algorithm without complex parameter adjustment is realized. Through verification of multiple groups of comparison experiments, the method provided by the invention is more suitable for the feature extraction method provided by the foregoing, the number of missed reports and false reports is less, the performance is improved by at least one order of magnitude compared with the performance of the traditional algorithm, and the actual requirements of airlines can be met.

Claims (3)

1. A complex equipment parameter anomaly detection method based on improved density peak clustering is characterized by comprising the following steps:
step 1: constructing a complex equipment parameter anomaly detection model, wherein a weak supervision anomaly detection model is established for equipment with enough anomalous samples, and an unsupervised anomaly detection model is established for equipment with insufficient anomalous samples;
step 2: performing anomaly detection, specifically comprising:
step 2-1: the local density is defined using an exponential kernel function with width δ =1, as shown in the following equation:
Figure FDA0003292310640000011
KNN (i) -a set of K neighbors of point i,
d ij point x i And x j The Euclidean distance of (a) is,
the original outlier threshold is shown in formulas (5) to (7), the outliers are finally allocated to the closest clusters after the other clusters are completed, the outlier threshold is determined in an average manner, so that the selected outliers are very many, and the outliers are finally allocated to the closest category, which may cause the outliers not to be judged as abnormal,
k dist (i)=max j∈KNN(i) {d ij } (5),
Figure FDA0003292310640000012
Outlier={o|k dist (o) > threshold } (7), wherein k is dist (i) The farthest K of the point i is adjacent to the point;
step 2-2: coordinate transformation as in equations (8) - (10) is performed,
Figure FDA0003292310640000013
Figure FDA0003292310640000014
(x Kdist ′,y Kdist ′)=(x Kdist -min(x Kdist ),y Kdist -min(y Kdist ))·M trans (10),
in the formula x Kdist -vector, y, representing all values of curve Kdist on the x-axis Kdist -a vector, M, of all values of the curve Kdist on the y-axis trans -a transformation matrix, x, representing samples for rotation axes Kdist ' -vector, y, representing all values on the axis after rotation Kdist ' -a vector consisting of all values on the axis after rotation is shown,
after the coordinate transformation is completed, the Threshold point Threshold' (x) can be found Kdist ′(i),min(y Kdist ′)),x Kdist ' (i) i denotes x Kdist ' sequentially arranging indexes of ith value, and determining x according to the indexes i Kdist (i) And the corresponding Threshold value Threshold of the outlier, after the Threshold value is determined, the outlier is directly classified into an abnormal class without participating in the subsequent clustering process;
step 2-3: the clustering process is as follows:
step 2-3-1: calculating local density, determining density peak point, determining clustering center through decision diagram, and sequentially adding class label M (M =0,1,2,3, \\ 8230;, M),
step 2-3-2: continuously searching the points which are not distributed with clusters in the K neighbors of the cluster center, dividing the points into clusters where the cluster center is located,
step 2-3-3: calculating the probability of the remaining points belonging to each category and assigning the probability to the category with the highest probability, wherein the probability calculation method is as shown in formulas (11) and (12), and the point x is calculated respectively i Similarity to each class, then assign point xi to the most probable class,
Figure FDA0003292310640000021
k neighbor set of points i, y j = M, M =1,2,3, \ 8230;, M denotes a label of a category,
d ij is a point x i And x j Euclidean distance of(s) ij Is a point x i And x j The closer the distance, the higher the similarity, P i m Is the probability that point i belongs to the category m,
w ij is x i And x j Similar weight of (2) to x j Is related to the K-nearest neighbor distribution,
Figure FDA0003292310640000022
and step 3: adjusting a weak supervision abnormal detection super parameter according to a weak supervision abnormal detection result, and adjusting an unsupervised abnormal detection super parameter according to an unsupervised clustering evaluation index;
and 4, step 4: and outputting an abnormal detection result.
2. The method for detecting the parameter abnormality of the complex equipment based on the improved density peak value clustering is characterized in that the following weak supervision clustering adjustment strategy is implemented for the complex equipment with the abnormal sample number larger than 1:
step 3-1: an iteration strategy of the K neighbor number is provided, the K neighbor number starts from 0.9 total sample number, the value is reduced at intervals of 0.1 total sample number, when the K neighbor number is less than 0.1 total sample number, the K neighbor number is continuously halved and rounded until the value of the K neighbor number is 1;
step 3-2: and continuously iteratively dividing outliers and minority classes, wherein the judgment standard of the minority classes is as follows: judging according to whether the number of the samples in the class is less than 0.01 total sample number;
step 3-3: only one of the abnormal labels is randomly reserved, after each iteration, whether the known abnormality is detected by the abnormal detection result is judged, namely whether the known abnormality is contained in the outlier and the minority samples, and if the known abnormality can be detected, the iteration is stopped;
step 3-4: if the K neighbor number is reduced to 1 and no abnormality is detected, increasing 0.01 total sample number for the minority class judgment standard;
step 3-5: if the minority class judgment standard is increased to 0.1 total sample number and still no abnormity can be found, the abnormity detection algorithm is considered to be invalid;
step 3-6: and after the anomaly detection is finished, storing the weak supervision clustering parameters, judging whether the anomaly with the removed labels is detected by the algorithm, if all the anomalies can be detected, considering that the effect of the anomaly algorithm is good, and if the anomalies can not be detected, considering that the algorithm effect is good, and if the anomalies can not be detected, considering that the algorithm is invalid.
3. The method for detecting the parameter abnormality of the complex equipment based on the improved density peak clustering as claimed in claim 1, wherein for the complex equipment with only one abnormal number, the weakly supervised clustering adjustment strategy is not applicable, so that only unsupervised clustering method can be adopted, the K nearest neighbor number is continuously adjusted according to four evaluation indexes of CH coefficient, contour coefficient, davisenburg index and dunen index, and the cluster with the highest score is used for detecting the abnormality, wherein the CH coefficient calculates closeness and separation by the sum of squares of distances, the contour coefficient SC calculates closeness and separation by observing the significance of clustering boundaries, the davisburg index DBI calculates closeness and separation by the maximum value of the cluster mean value of the intra-class samples and the cluster center distance, and the dunen index calculates the ratio of the nearest distance of the inter-class samples to the farthest distance of the intra-class samples to judge closeness and separation.
CN202111173491.6A 2021-10-08 2021-10-08 Complex equipment parameter anomaly detection method based on improved density peak clustering Pending CN115964662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111173491.6A CN115964662A (en) 2021-10-08 2021-10-08 Complex equipment parameter anomaly detection method based on improved density peak clustering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111173491.6A CN115964662A (en) 2021-10-08 2021-10-08 Complex equipment parameter anomaly detection method based on improved density peak clustering

Publications (1)

Publication Number Publication Date
CN115964662A true CN115964662A (en) 2023-04-14

Family

ID=87357362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111173491.6A Pending CN115964662A (en) 2021-10-08 2021-10-08 Complex equipment parameter anomaly detection method based on improved density peak clustering

Country Status (1)

Country Link
CN (1) CN115964662A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116385811A (en) * 2023-06-06 2023-07-04 深圳市诚王创硕科技有限公司 Multi-party collaborative image data analysis method and system
CN116610938A (en) * 2023-07-19 2023-08-18 合肥喆塔科技有限公司 Method and equipment for detecting unsupervised abnormality of semiconductor manufacture in curve mode segmentation
CN116756526A (en) * 2023-08-17 2023-09-15 北京英沣特能源技术有限公司 Full life cycle performance detection and analysis system of energy storage equipment
CN116953488A (en) * 2023-09-19 2023-10-27 深圳市东陆科技有限公司 Monitoring method for integrated photoelectric chip
CN117807550A (en) * 2024-02-29 2024-04-02 山东宙雨消防科技股份有限公司 Intelligent quantitative detection method and system for building fire-fighting facilities
CN117807550B (en) * 2024-02-29 2024-05-17 山东宙雨消防科技股份有限公司 Intelligent quantitative detection method and system for building fire-fighting facilities

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116385811A (en) * 2023-06-06 2023-07-04 深圳市诚王创硕科技有限公司 Multi-party collaborative image data analysis method and system
CN116610938A (en) * 2023-07-19 2023-08-18 合肥喆塔科技有限公司 Method and equipment for detecting unsupervised abnormality of semiconductor manufacture in curve mode segmentation
CN116610938B (en) * 2023-07-19 2023-10-10 合肥喆塔科技有限公司 Method and equipment for detecting unsupervised abnormality of semiconductor manufacture in curve mode segmentation
CN116756526A (en) * 2023-08-17 2023-09-15 北京英沣特能源技术有限公司 Full life cycle performance detection and analysis system of energy storage equipment
CN116756526B (en) * 2023-08-17 2023-10-13 北京英沣特能源技术有限公司 Full life cycle performance detection and analysis system of energy storage equipment
CN116953488A (en) * 2023-09-19 2023-10-27 深圳市东陆科技有限公司 Monitoring method for integrated photoelectric chip
CN116953488B (en) * 2023-09-19 2023-12-12 深圳市东陆科技有限公司 Monitoring method for integrated photoelectric chip
CN117807550A (en) * 2024-02-29 2024-04-02 山东宙雨消防科技股份有限公司 Intelligent quantitative detection method and system for building fire-fighting facilities
CN117807550B (en) * 2024-02-29 2024-05-17 山东宙雨消防科技股份有限公司 Intelligent quantitative detection method and system for building fire-fighting facilities

Similar Documents

Publication Publication Date Title
CN115964662A (en) Complex equipment parameter anomaly detection method based on improved density peak clustering
CN113256066B (en) PCA-XGboost-IRF-based job shop real-time scheduling method
US7181365B2 (en) Diagnostic data detection and control
CN109508733A (en) A kind of method for detecting abnormality based on distribution probability measuring similarity
CN107316053A (en) A kind of cloth image Rapid matching search method
CN116166960B (en) Big data characteristic cleaning method and system for neural network training
CN109949287A (en) A kind of fabric defects detection method based on adaptivenon-uniform sampling and template correction
CN116363520B (en) Landscape ecological detection system for urban green land planning
CN112633337A (en) Unbalanced data processing method based on clustering and boundary points
CN116304779B (en) Intelligent measuring system for extracorporeal circulation temperature
CN114036610A (en) Penetration depth prediction method based on data enhancement
CN111291822A (en) Equipment running state judgment method based on fuzzy clustering optimal k value selection algorithm
CN108197254A (en) A kind of data recovery method based on neighbour
CN110826587B (en) Vortex shaft engine fault detection method based on improved weighted support vector machine
CN112949735A (en) Liquid hazardous chemical substance volatile concentration abnormity discovery method based on outlier data mining
CN110427019B (en) Industrial process fault classification method and control device based on multivariate discriminant analysis
CN106326927A (en) Shoeprint new class detection method
CN115935160A (en) Air quality data processing method based on neighborhood rough set attribute reduction
CN111985826B (en) Visual quality grading method and system for multi-index industrial products
CN115510959A (en) Density peak value clustering method based on natural nearest neighbor and multi-cluster combination
CN115129503A (en) Equipment fault data cleaning method and system
CN115130496A (en) Pipeline pressure signal anomaly detection method based on Bagging and RM-LOF integrated single classifier
CN114706780A (en) Software defect prediction method based on Stacking ensemble learning
CN113688895A (en) Method and system for detecting abnormal firing zone of ceramic roller kiln based on simplified KECA
CN111832224A (en) Method for identifying flow state of large-scale supersonic air inlet

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