A mechanical streaming data cleaning method based on incremental local anomaly factor
By updating local abnormal factor values in real-time in mechanical flow data, the problem of time-consuming abnormal data detection in mechanical flow monitoring data is solved, efficient and accurate data cleaning is achieved, and data quality and real-time are ensured.
Patent Information
- Application Number
- CN202210024017.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-01-11
AI Technical Summary
In the era of big data, mechanical flow monitoring data has problems such as high volume, high variety, high speed, low value density and low quality, which makes it difficult to detect abnormal data. The traditional LOF algorithm is time-consuming and cannot be used in real-time on machinery. Anomaly data detection for streaming monitoring data.
A mechanical streaming data cleaning method based on incremental local anomaly factors is adopted. By updating the LOF value of the streaming online monitoring data in real time, only the local factor values of the affected objects are calculated and updated, saving calculation time and achieving efficient detection and cleaning of anomalies. data.
It greatly saves computing time, improves the efficiency of abnormal data detection, avoids detecting normal mechanical degradation trends as abnormal data, and ensures data quality and real-time performance.
Smart Images

Figure CN114490603B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of mechanical fault diagnosis and state monitoring, and in particular to a mechanical streaming data cleaning method based on incremental local abnormal factors. Background Art
[0002] Online analysis of condition monitoring and fault diagnosis helps to understand the health status of machinery at any time, so as to detect early faults in time and prevent unexpected failures. Therefore, online machinery condition monitoring systems have been widely used in industrial applications. With the expansion of online monitoring systems, massive data are continuously collected, and machinery condition monitoring has entered the era of big data, bringing many new opportunities. In particular, monitoring big data contains rich information on the health status of machinery, which is expected to be fully utilized to obtain more accurate monitoring or diagnosis results. However, monitoring big data has special characteristics such as high capacity, high variety, high speed, low value density and low quality, which brings new challenges to online monitoring.
[0003] The acquisition of historical monitoring data is the premise and basis for accurate identification of the health status of machinery under big data. The complex and changeable operating environment of mechanical equipment, external interference, data transmission failures and other factors lead to the inevitable presence of abnormal data such as drift and missing in the acquired monitoring data, which reduces the quality of monitoring data. How to take effective methods to ensure the quality of monitoring data is a key issue that needs to be solved in machinery health monitoring under big data.
[0004] In view of the growth, dynamics, and timeliness of mechanical flow monitoring data, although LOF is very effective in detecting outliers, the algorithm is very time-consuming and cannot be directly used for abnormal data detection in mechanical flow monitoring data. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a mechanical streaming data cleaning method based on incremental local anomaly factors. By updating the local anomaly factor (Local Outlier Factor, hereinafter referred to as LOF) value of streaming online monitoring data and abnormal data after removal in real time, objects whose local anomaly factor values are changed due to the influence of incoming or removed data are searched out, and only the local factor values of these objects are calculated and updated, which saves calculation time and enables efficient and accurate detection and cleaning of abnormal data.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] A mechanical streaming data cleaning method based on incremental local anomaly factors comprises the following steps:
[0008] S1. Build a local anomaly factor model, obtain historical monitoring data sets, and form a historical monitoring data LOF result set;
[0009] S2. Monitor the state of the machine, and update the historical monitoring data LOF result set to the streaming data LOF result set based on the incremental inflow LOF according to the streaming online monitoring data;
[0010] S3. According to the LOF result set of the streaming data, LOF is deleted based on the increment, and the streaming online monitoring data is cleaned.
[0011] A further improvement of the technical solution of the present invention is that in S1, the historical monitoring data is historically accumulated non-abnormal detection data.
[0012] A further improvement of the technical solution of the present invention is that: S1 specifically includes the following steps:
[0013] S11, extracting multi-dimensional feature attributes from historical monitoring data to form a feature set;
[0014] S12, calculating the distance KD between the monitored object and the k nearest neighbors in the feature set;
[0015] S13, calculating the reachable distance RD from object p in the feature set to any object o;
[0016] S14, calculating the local reachability density LRD representing the average reachable distance of each monitored object in the feature set;
[0017] S15. Construct local anomaly factor values, and combine the local anomaly factor values of all monitored objects into a historical monitoring data LOF result set.
[0018] A further improvement of the technical solution of the present invention is that the multidimensional feature attributes include 15 time domain features and 8 frequency domain statistical features.
[0019] A further improvement of the technical solution of the present invention is that the 15 time domain features include the mean, maximum, minimum, peak-to-peak value, variance, peak factor, root mean square value, average amplitude, root amplitude, waveform index, pulse index, margin index, peak value, skewness index and kurtosis index of the monitoring data; the 8 frequency domain statistical features, that is, using the "db4" wavelet to perform 3-layer orthogonal wavelet packet decomposition on each monitoring data, obtain 8 sub-band data, and calculate the percentage of each frequency band data energy in the total energy.
[0020] A further improvement of the technical solution of the present invention is that in S12, the value of k is 10.
[0021] A further improvement of the technical solution of the present invention is that: S2 specifically includes the following steps:
[0022] S21, add multi-dimensional feature attribute extraction of streaming online monitoring data and update feature set;
[0023] S22, calculating the distance KD and the reachable distance RD between the monitored object and the k nearest neighbors in the updated feature set;
[0024] S23. Query the updated object set S under k distance KD_update , calculate S KD_update The k-distance KD of the inner object;
[0025] Consider the real-time object p t When inflowing, any historical data p in the historical monitoring data set j The k distance influence, when the object p t Not p j When the k nearest neighbors of Then p t The inflow of point p j The k distance has no effect, that is, KD(p j ) remains unchanged when a new object is inserted and does not need to be updated. Otherwise, when the object p t Falling into object p j When the k nearest neighbors of j The k distance needs to be updated as:
[0026]
[0027] Among them, KD new (p t ) is the update distance, KD old (p j ) is the original distance, d(p j ,p n ) is p j to p n The Euclidean distance of k is updated to p. t The inverse k nearest neighbor is denoted as RN k (p t ), the set of k distance value update objects is expressed as:
[0028] S KD_update (p t )=RN k (p t );
[0029] S24, query and calculation of reachable distance RD update set;
[0030] When streaming online monitoring data flows in, only update p j Objects in the old neighborhood to p j The reachable distance RD; the reachable distance RD update set is S RD_update ;
[0031] S25, query and calculation of local reachable density LRD update set;
[0032] If p i ∈S KD_update Or reachable distance RD k (p i ,p j ) changes and p i ∈N k (p j ), then update the object p i The local reachable density of LRD is S LRD_update , where N k (p j ) is the set of k nearest neighbors;
[0033] S26, querying the update set of the local outlier factor LOF value based on the query of the k-distance KD, the reachable distance RD update set, and the local reachable density LRD update set;
[0034] The update set expression of the local outlier factor LOF value is:
[0035] S LOF_update =S LRD_update ∪{RN k (S LRD_update )};
[0036] S27. Update the RD, LRD and LOF values of each object in the update set of the local outlier factor LOF value to obtain a streaming data LOF result set.
[0037] A further improvement of the technical solution of the present invention is that: S3 specifically includes the following steps:
[0038] S31, setting an abnormal threshold λ and deleting abnormal data;
[0039] S32. After deleting the abnormal data, an updated object set, a reachable distance update set, a local reachable density update set, and a local abnormal factor update set are obtained.
[0040] A further improvement of the technical solution of the present invention is that in S31, the abnormal threshold λ is 2.
[0041] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:
[0042] 1. The present invention queries the objects that cause the abnormal factor changes when the new incoming data or the old data are deleted based on the abnormal factor calculated at the last moment, and only updates the LOF value of such data in real time and calculates the LOF value of the new data, without having to recalculate the LOF value of all data according to the calculation process of the traditional LOF method, which can greatly save calculation time and improve the efficiency of abnormal data detection.
[0043] 2. In the present invention, the real-time dynamic calculation of LOF takes into account the factors of mechanical monitoring trend changes, which can avoid detecting normal mechanical degradation trend changes as abnormal data. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is a flow chart of a mechanical streaming data cleaning method based on incremental local anomaly factors of the present invention;
[0045] Figure 2 It is a trend diagram of the maximum LOF, average LOF and minimum LOF corresponding to different values of parameter k in the present invention;
[0046] FIG. 3( a ) and FIG. 3( b ) are diagrams of the present invention when the object p t Falling into object p j The k nearest neighbors of p j When the k nearest neighbors of object p j Schematic diagram of the changes in the k-nearest neighbors;
[0047] Figure 4 When real-time data objects flow in, query the updated object set S under k distance KD_update (p t ) process diagram;
[0048] Figure 5 When real-time data flows in, the set of objects S that need to be updated when querying the reachable distance RD_update Schematic diagram of the process;
[0049] Figure 6 When real-time data flows in, the object set S that needs to be updated to query the local reachability density LRD_update Schematic diagram of the process;
[0050] Figure 7 When real-time data flows in, the object set S that needs to be updated to query the local anomaly factor LOF_update Schematic diagram of the process;
[0051] FIG8(a) and FIG8(b) are diagrams of the present invention when the object p a From the object p j When object p is deleted or not deleted in the k nearest neighbors j Illustration of k nearest neighbors;
[0052] Fig. 9 It is a vibration signal diagram of a horizontal measuring point during the whole life of a bearing obtained under the working conditions of a test bench speed of 1500 r / min and a load of 5000 N in Example 1 of the present invention;
[0053] Fig.10 This is a graph of the real-time calculation results at the 4950th second of Example 1 of the present invention;
[0054] Fig.11 This is a partial enlarged view of the real-time calculation result at the 4950th second of Example 1 of the present invention;
[0055] Fig.12 This is a graph of the real-time calculation results at the 5140th second of Example 1 of the present invention;
[0056] Fig.13 This is a partial enlarged view of the real-time calculation result at the 5140th second of Example 1 of the present invention;
[0057] Fig.14 is a local time domain waveform diagram of the vibration signal of the horizontal measuring point during the entire life of the bearing in Example 1 of the present invention;
[0058] Fig.15 is a time domain waveform diagram corresponding to abnormal data segment 2 obtained by using the data cleaning method in Example 1 of the present invention;
[0059] Fig.16 is a time domain waveform corresponding to the abnormal data segment 3 obtained by using the data cleaning method in Example 1 of the present invention;
[0060] Fig.17 is a time domain waveform diagram corresponding to abnormal data segment 4 obtained by using the data cleaning method in Example 1 of the present invention;
[0061] Fig.18 It is a time domain waveform diagram corresponding to abnormal data segments 5 and 6 obtained by using the data cleaning method in Example 1 of the present invention. DETAILED DESCRIPTION
[0062] The present invention is further described in detail below with reference to the accompanying drawings and embodiments:
[0063] like Figure 1 As shown, a mechanical streaming data cleaning method based on incremental local anomaly factors includes the following steps:
[0064] S1. Build a local anomaly factor model, obtain historical monitoring data sets, and form a historical monitoring data LOF result set;
[0065] The historical monitoring data is the historically accumulated data without abnormal detection. The historical monitoring data set is {p1, p2, ···, p N}. Based on historical monitoring data, calculate its reachability distance RD, local reachability density LRD, and local outlier factor value LOF using the local outlier factor method, and construct an LOF result set for historical monitoring data, which specifically includes the following steps:
[0066] S11. Extract multi-dimensional feature attributes from historical monitoring data to form a feature set;
[0067] The multi-dimensional feature attributes include 15 time-domain features and 8 frequency-domain statistical features. The 15 time-domain features include the mean, maximum value, minimum value, peak-to-peak value, variance, peak factor, root mean square value, average amplitude, root amplitude, waveform index, pulse index, margin index, peak value, skewness index, and kurtosis index of the monitoring data; for the 8 frequency-domain statistical features, each monitoring data is decomposed by 3-layer orthogonal wavelet packet using the "db4" wavelet to obtain 8 sub-band data, and the percentage of the energy of each band data in the total energy is calculated.
[0068] After feature extraction of historical monitoring data samples, each data sample is an object described by 23 feature attribute dimensions, and the feature set is the set of all monitoring sample feature attributes, denoted as set D.
[0069] S12. Calculate the distance KD between the monitoring object in the feature set and its k nearest neighbors;
[0070] The monitoring object p is a monitoring sample point. The distance between the monitoring object p and the point that is the k-th nearest to point p in the feature set is the k-distance KD(p) of object p, where k is any positive integer; in set D, if object o is the k nearest neighbor of object p, for o' ∈ D / {p}, if there are at least k o's that satisfy d(p, o') ≤ d(p, o) and at most k - 1 o's that satisfy d(p, o') < d(p, o), then the k-distance KD(p) of object p is:
[0071] KD(p) = d(p, o)
[0072] where d(p, o) is the Euclidean distance between object p and object o, expressed as:
[0073]
[0074] In the formula, dim represents the feature attribute dimension of the data object, that is, the number of feature attribute dimensions of each object in S11, which is 23; f i (p) is the i-th feature attribute of object p; thus, the k nearest neighbor set of object p can be obtained, expressed as:
[0075] N k (p) = {q|d(p, q) ≤ KD(p)}
[0076] Among them, N k (p) includes all monitored objects whose distance to the object point p is less than KD(p).
[0077] The selection of parameter k needs to satisfy the trade-off between the small differences of normal data belonging to the same distribution and the differences of abnormal data belonging to more distributions; in order to find the most suitable parameter k, generate 100 sample data with a length of 12800 and a mean of 0 and a uniform distribution in the range of [0,1], and extract the 23-dimensional attribute features described in S11 from these data; based on the extracted features, calculate the LOF of these data when k varies from 2 to 50, and calculate the maximum LOF, average LOF and minimum LOF of all data when k value varies;
[0078] The corresponding maximum LOF, average LOF, and minimum LOF change trends for different values of parameter k are as follows: Figure 2 As shown; it is found through statistics that when k is less than 10, these LOF indicators fluctuate greatly, and then remain stable under larger k values; considering that abnormal data may not be detected as outliers when the statistical LOF indicators change, and the algorithm is also very time-consuming when k is too large, therefore, k is selected as 10.
[0079] S13, calculating the reachable distance RD from object p in the feature set to any object o;
[0080] According to the k-distance KD of the monitored object obtained in S12, the reachable distance RD from object p to any object o is expressed as:
[0081] RD k (p,o)=max{KD(o),d(p,o)}
[0082] Obviously, if object o is the k-neighbor of object p, then RD k (p,o) is equal to KD(o), otherwise RD k (p,o) is equal to the Euclidean distance between object p and object o; since objects in the k nearest neighborhood are considered to have similar characteristics, using the reachable distance can eliminate statistical fluctuations of objects in the k nearest neighborhood.
[0083] S14, calculating the local reachability density LRD representing the average reachable distance of each monitored object in the feature set;
[0084] According to the reachable distance RD obtained by S13, the local reachable density LRD representing the average reachable distance of the monitored object is expressed as:
[0085]
[0086] S15, constructing a local anomaly factor value, and forming a historical monitoring data LOF result set with the local anomaly factor values of all monitored objects;
[0087] According to the local reachable density LRD obtained by S14, the local outlier factor value LOF of object p is expressed as:
[0088]
[0089] The local anomaly factor values of all monitored objects are combined into the historical monitoring data LOF result set {LOF(p1), LOF(p2), ···, LOF(p N )}.
[0090] S2. Monitor the state of the machine, and update the historical monitoring data LOF result set to the streaming data LOF result set based on the incremental inflow LOF according to the streaming online monitoring data;
[0091] Streaming online monitoring data uses an infinite set {···,D t-1 ,D t ,D t+1 ,···}, where t represents the timestamp, D t Indicates the data detected by the sensor at that moment;
[0092] The streaming online monitoring data is D t When the historical monitoring data set is {p1,p2,···,p N ,···,p T=1 ,···,p T=t-1}, the monitoring data covers the historical monitoring data of the model initialization in S1 and the real-time monitoring data before time t-1. The corresponding historical monitoring data LOF result set is {LOF(p1), LOF(p2), ···, LOF(p N ),···,LOF(p T=1 ),···,LOF(p T=t-1 )}, the reachable distance set is {RD(p1),RD(p2),···,RD(p N ),···,RD(p T=1 ),···,RD(p T=t-1 )} and the local reachable density set is represented as {LRD(p1),LRD(p2),···,LRD(p N ),···,LRD(p T=1 ),···,LRD(p T=t-1 )}; Based on the above historical feature data set and the corresponding variable value set, the incremental inflow LOF is updated, which specifically includes the following steps:
[0093] S21, add multi-dimensional feature attribute extraction of streaming online monitoring data and update feature set;
[0094] Calculate streaming online monitoring data D t characteristic indicators to obtain real-time inflow data D t The corresponding feature object p t , where the characteristic index is as described in S11, and includes 23 characteristic attribute values in total;
[0095] S22, calculating the distance KD and the reachable distance RD between the monitored object and the k nearest neighbors in the updated feature set;
[0096] According to the formula for calculating the k nearest neighbor set of the object point in S12, query and calculate p t The k nearest neighbor set N k (p t ), calculate RD(p t ,p i ) and p i ∈N k (p t );
[0097] S23. Query the updated object set S under k distance KD_update , calculate S KD_update The k-distance KD of the inner object;
[0098] Consider the real-time object p t When inflowing, any historical data p in the historical monitoring data set j The k distance influence, when the object p t Falling into object p j The k nearest neighbors of p j When the k nearest neighbors of object p j The changes of k nearest neighbors are shown in Figure 3.
[0099] like Then p t The inflow of point p j The k distance has no effect, that is, KD(p j ) remains unchanged when a new object is inserted and does not need to be updated. Otherwise, p j The k distance needs to be updated as:
[0100]
[0101] Among them, KD new (p t ) is the update distance, KD old (p j ) is the original distance, d(p j ,pn ) is p j to p n The distance between the two objects is p. t The inverse k nearest neighbor is denoted as RN k (p t ), the set of objects whose k distance values need to be updated is expressed as:
[0102] S KD_update (p t )=RN k (p t )
[0103] When streaming online monitoring data flows in, query the updated object set S under k distance KD_update (p t ) process such as Figure 4 As shown, assuming real-time inflow data p t The k nearest neighbors of the two data objects p1 and p2. For the sake of convenience, k is taken as 2. t The inflow only causes the k distance of p1 and p2 to change, while the k distance of other points remains unchanged, that is, S KD_update (p t )={p1,p2}.
[0104] S24, query and calculation of reachable distance RD update set;
[0105] If p t After inflow, p j The k distance of the feature object set may change, which may cause some objects in the feature object set to p j The change of the reachable distance RD; if There exists d(p i ,p j )>KD old (p j ), then from the reachable distance calculation formula described in S13, it can be known that the old reachable distance between the two points satisfies:
[0106] Due to KD old (p j )>KD new (p i ),but At this time p i to p j The reachable distance is p t After the inflow, there is no change. If p i Located in p j In the neighborhood, the distance will be reduced; that is, when the streaming online monitoring data flows in, it is only necessary to consider updating p jObjects in the old neighborhood to p j The reachable distance RD, the set of objects that need to be updated is recorded as S RD_update ;
[0107] When streaming online monitoring data flows in, query the object set S that needs to be updated for reachable distance RD_update The process is as Figure 5 As shown in the figure, assume that the k-nearest neighbor set of data object p2 is {p1,p4}, the k-nearest neighbor set of p1 is {p2,p5}, and the streaming online monitoring data p t After inflow, the set of objects S whose reachable distance RD needs to be updated RD_update ={p1,p2,p4,p5}.
[0108] S25, query and calculation of local reachable density LRD update set;
[0109] From the calculation formula of local reachability density LRD in S14, we can know that if p i ∈S KD_update or RD k (p i ,p j ) changes and p i ∈N k (p j ), then object p i The local reachable density needs to be updated, and the LRD update set can be obtained and recorded as S LRD_update ;
[0110] When streaming online monitoring data flows in, query the object set S that needs to be updated for local reachability density LRD_update The process is as Figure 6 As shown in Figure 2, assuming that data object p5 belongs to the old k nearest neighbor of p6 and the reachable distance of p5 has changed, it will be added to S LRD_update In, S LRD_update ={p1,p2,p4,p5,p6}.
[0111] S26, querying the update set of the local outlier factor LOF value based on the query of the k-distance KD, the reachable distance RD update set, and the local reachable density LRD update set;
[0112] From S15, we can know that the LOF value of an object is expressed as the ratio of the LRD mean of the points in the neighborhood of the object to the LRD of the object. Then, the expression of the update set that needs to update the local anomaly factor LOF value is:
[0113] S LOF_update =S LRD_update ∪{RN k (S LRD_update )}
[0114] When streaming online monitoring data flows in, query the object set S that needs to be updated for the local anomaly factor LOF_update The process is as Figure 7 As shown, based on the above query KD update set, RD update set, LRD update set diagram and assumptions, compared with Figure 6 S LRD_update , the update set corresponding to the LOF value adds objects p3, p8, and p7, and finally gets S LOF_update ={p1,p2,p3,p4,p5,p6,p7,p8}.
[0115] S27, updating the RD, LRD and LOF values of each object in the update set of the local outlier factor LOF value to obtain a streaming data LOF result set;
[0116] Each object in the update set of the local outlier factor LOF value is updated, and each object outside the update set of the local outlier factor LOF value remains unchanged;
[0117] According to the S1 calculation method, the updated centralized streaming online monitoring data object p of the local anomaly factor LOF value is calculated in turn. t RD, LRD and LOF values, and obtain the streaming data LOF result set.
[0118] S3. According to the LOF result set of the streaming data, LOF is deleted based on the increment, and the streaming online monitoring data is cleaned;
[0119] The incremental inflow LOF in S2 is the update calculation of the LOF value when new data flows in. In the anomaly detection process, not only the LOF value of the incoming data needs to be updated in real time, but also the LOF value after the abnormal data is removed needs to be calculated, so as to eliminate the adverse effects of abnormal data on the calculation of various variables in the subsequent real-time data LOF value calculation process. Specifically, the following steps are included:
[0120] S31, setting an abnormal threshold λ and deleting abnormal data;
[0121] Compare the calculated updated LOF value of the streaming online monitoring data with λ. If the comparison results for 2k consecutive times are all greater than the set threshold λ, it means that the abnormality of the data is not caused by the change of health trend and is abnormal data.
[0122] To determine the size of the abnormal threshold λ, the following analysis is performed:
[0123] The local reachable density of anomalies must be much smaller than the local reachable density of their neighboring objects, so that their local anomaly factor value LOF must be much larger than 1. With the help of incremental LOF, abnormal data regarded as abnormal objects can be deleted; the theoretical value of data LOF is 1, but because different data samples are not exactly the same, there are differences caused by certain random factors, which causes LOF to fluctuate relative to 1 and is often between 1 and 2. When k≥10, the mean of the maximum LOF is 1.97. Therefore, taking the anomaly threshold λ as 2, abnormal data with a reachable distance greater than 2 times the indirect reachable distance can be detected, and at the same time, a certain relaxation space is left for the difference between normal data to meet the needs of abnormal data anomaly detection, that is, when LOF(p)<2, the data quality is high. If LOF(p)≥2 is detected for 2k consecutive times, the data is abnormal data.
[0124] S32, after deleting the abnormal data, obtaining an updated object set, a reachable distance update set, a local reachable density update set and a local abnormal factor update set;
[0125] After deleting a recognized abnormal data, the variable value of the object affected by the deletion is updated, and the unaffected variables remain unchanged, thereby saving time; the incremental deletion of LOF here is equivalent to the reverse query calculation process of the incremental inflow LOF, and it is also necessary to delete the object in turn. KD_update , S RD_update , S LRD_update and S LOF_update According to the general process of LOF value calculation described in S1, when real-time data flows in, the update process first queries the k-distance update set S KD_update ;
[0126] When the object p a From the object p j When object p is deleted or not deleted in the k nearest neighbors j The k nearest neighbors of if Then p a After deletion, p j The k distance increases, so the k distance update set is: S KD_update (p a )=RN k (p a ); then calculate and query S RD_update , S LRD_update and S LOF_update , and calculate and update the corresponding variable values of each set.
[0127] Example 1
[0128] This embodiment uses a rolling bearing accelerated life test bench, which is specially used for rolling bearing accelerated life tests. A pneumatic loading device is installed on the test bench to provide a load for the bearing, and the load size can be adjusted through feedback control of a pressure sensor and a pressure regulating device. The shaft speed is controlled by the combined action of a motor controller and a speed sensor. Acceleration sensors are installed in the horizontal and vertical directions of the bearing ring, respectively. The sensor sampling frequency is 25.6kHz, and the sampling length is 2560 points each time, that is, the sampling time is 0.1s, and the interval between two adjacent samplings is 10s. When the amplitude of the vibration data exceeds 20g, it indicates that the bearing has failed, and the experiment is terminated when abnormal vibration occurs on the test bench.
[0129] The vibration signals of the horizontal measuring points during the entire life of the bearing obtained by the test bench at a speed of 1500r / min and a load of 5000N are as follows: Fig. 9 shown.
[0130] It can be seen that the amplitude of the monitoring data is small in the early stage of the experiment. As the bearing deteriorates, the amplitude of the monitoring data increases. The data is changing with the development of the bearing degradation trend, that is, it is dynamic. It is simulated as streaming data, and the mechanical streaming data cleaning method based on incremental local anomaly factors is used to ensure the data quality.
[0131] A mechanical streaming data cleaning method based on incremental local anomaly factors comprises the following steps:
[0132] S1. Build a local anomaly factor model, obtain historical monitoring data sets, and form a historical monitoring data LOF result set;
[0133] S2. Monitor the state of the machine, and update the historical monitoring data LOF result set to the streaming data LOF result set based on the incremental inflow LOF according to the streaming online monitoring data;
[0134] Online monitoring data real-time monitoring results such as Fig.10 , Fig.11 , Fig.12 , Fig.13 shown.
[0135] When the acceleration experiment is at the 4950th second, it can be seen that the LOF of sample t2 between 4930 and 4940 seconds reaches 97.31, and the LOF of sample t3 between 4940 and 4950 seconds is 4.735. Both are greater than the abnormal threshold λ and may be abnormal data, which needs to be further confirmed with the help of subsequent analysis results.
[0136] When the acceleration experiment was at the 5140th second, it can be seen that the LOF of the t2 sample was still greater than the threshold and was confirmed as abnormal data, while the t3 value decreased to below the threshold and was 1.259, indicating that the large LOF value in the early stage was caused by the dynamic changes of the data itself, rather than abnormal data.
[0137] The local time domain waveform of the vibration signal of the horizontal measuring point during the entire life of the bearing is as follows: Fig.14 shown.
[0138] It can be seen that the time domain waveform of the equipment data is well consistent with the above conclusions. There is interference impact data on the t2 sample waveform, and the vibration amplitude of t3 is significantly increased compared with the previous data, resulting in its local abnormal factor value being greater than the threshold. When t4 data flows in, the bearing health status corresponding to t4 and t3 does not change much, and the data waveforms are also relatively similar. Therefore, the addition of t4 and subsequent data reduces the LOF of t3, making the LOF of t3 below the threshold line, proving that the data is not abnormal data.
[0139] S3. According to the LOF result set of the streaming data, LOF is deleted based on the increment, and the streaming online monitoring data is cleaned;
[0140] The time domain waveforms of the other five abnormal data segments analyzed by the method proposed in the present invention for the accelerated full life cycle data of the bearing are as follows: Fig.15 , Fig.16 , Fig.17 , Fig.18 shown.
[0141] It can be seen that the bearing accelerated full life cycle data is analyzed by the general mechanical flow abnormal data detection method. Fig.15 The data waveform has drifted seriously. Fig.16 , Fig.17 , Fig.18 The four segments of abnormal data shown contain random interference shocks and have low quality, indicating that the proposed general streaming abnormal data detection method can distinguish between trend change data and abnormal interference data caused by mechanical state evolution, and can detect abnormal data from dynamically developing trend streaming data to ensure the quality of streaming data.
[0142] In summary, according to the growth, timeliness and dynamic characteristics of mechanical monitoring streaming data, the present invention has established a mechanical streaming data cleaning method based on incremental local anomaly factors. The core steps of the present invention include two query and calculation processes, namely, incremental inflow LOF and incremental deletion LOF. During the cleaning process of mechanical streaming data, only the data objects affected by the incoming data are queried and calculated for variable values and their domains are updated. The abnormal data is identified and deleted through the abnormal threshold, and then the variable values and domains of the objects affected by the deletion are updated. The calculation complexity is greatly reduced compared with the traditional LOF, so the calculation time is shorter, which can meet the real-time requirements of general streaming monitoring data quality assurance. The real-time dynamic calculation of LOF takes into account the trend change factors of mechanical monitoring, and can avoid detecting the normal degradation trend changes of the machinery as abnormal data.
Claims
1. A mechanical streaming data cleaning method based on incremental local anomaly factors, characterized by: The following steps are involved: S1. Build a local anomaly factor model, obtain historical monitoring data sets, and form a historical monitoring data LOF result set; S2. Monitor the state of the machine, and update the historical monitoring data LOF result set to the streaming data LOF result set based on the incremental inflow LOF according to the streaming online monitoring data; S2 specifically includes the following steps: S21, add multi-dimensional feature attribute extraction of streaming online monitoring data and update feature set; S22, calculating the distance KD and the reachable distance RD between the monitored object and the k nearest neighbors in the updated feature set; S23. Query the updated object set S under k distance KD_update , calculate S KD_update The k-distance KD of the inner object; Consider the real-time object p t When inflowing, any historical data p in the historical monitoring data set j The k distance influence, when the object p t Not p j When the k nearest neighbors of Then p t The inflow of point p j The k distance has no effect, that is, KD(p j ) remains unchanged when a new object is inserted and does not need to be updated. Otherwise, when the object p t Falling into object p j When the k nearest neighbors of j The k distance needs to be updated as: Among them, KD new (p t ) is the update distance, KD old (p j ) is the original distance, d(p j ,p n ) is p j to p n The Euclidean distance of k is updated to p. t The inverse k nearest neighbor is denoted as RN k (p t ), the set of k distance value update objects is expressed as: S KD_update (p t )=RN k (p t ); S24, query and calculation of reachable distance RD update set; When streaming online monitoring data flows in, only update p j Objects in the old neighborhood to p j The reachable distance RD; the reachable distance RD update set is S RD_update ; S25, query and calculation of local reachable density LRD update set; If p i ∈S KD_update Or reachable distance RD k (p i ,p j ) changes and p i ∈N k (p j ), then update the object p i The local reachable density of LRD is S LRD_update , where N k (p j ) is the set of k nearest neighbors; S26, querying the update set of the local outlier factor LOF value based on the query of the k-distance KD, the reachable distance RD update set, and the local reachable density LRD update set; The update set expression of the local outlier factor LOF value is: S LOF_update =S LRD_update ∪{RN k (S LRD_update )}; S27, updating the RD, LRD and LOF values of each object in the update set of the local outlier factor LOF value to obtain a streaming data LOF result set; S3. According to the LOF result set of the streaming data, LOF is deleted based on the increment, and the streaming online monitoring data is cleaned.
2. The mechanical streaming data cleaning method based on incremental local anomaly factors according to claim 1 is characterized in that: In S1, the historical monitoring data is historically accumulated non-abnormal detection data.
3. The mechanical streaming data cleaning method based on incremental local anomaly factors according to claim 1 is characterized in that: S1 specifically includes the following steps: S11, extracting multi-dimensional feature attributes from historical monitoring data to form a feature set; S12, calculating the distance KD between the monitored object and the k nearest neighbors in the feature set; S13, calculating the reachable distance RD from object p in the feature set to any object o; S14, calculating the local reachability density LRD representing the average reachable distance of each monitored object in the feature set; S15. Construct local anomaly factor values, and combine the local anomaly factor values of all monitored objects into a historical monitoring data LOF result set.
4. The mechanical streaming data cleaning method based on incremental local anomaly factors according to claim 3 is characterized in that: The multidimensional feature attributes include 15 time domain features and 8 frequency domain statistical features.
5. The mechanical streaming data cleaning method based on incremental local anomaly factors according to claim 4 is characterized in that: The 15 time domain features include the mean, maximum, minimum, peak-to-peak value, variance, peak factor, root mean square value, average amplitude, root amplitude, waveform index, pulse index, margin index, peak value, skewness index and kurtosis index of the monitoring data; the 8 frequency domain statistical features, that is, using the "db4" wavelet to perform 3-layer orthogonal wavelet packet decomposition on each monitoring data, obtain 8 sub-band data, and calculate the percentage of each frequency band data energy to the total energy.
6. The mechanical streaming data cleaning method based on incremental local anomaly factors according to claim 3 is characterized in that: In S12, the value of k is 10.
7. The mechanical streaming data cleaning method based on incremental local anomaly factors according to claim 1 is characterized in that: S3 specifically includes the following steps: S31, setting an abnormal threshold λ and deleting abnormal data; S32. After deleting the abnormal data, an updated object set, a reachable distance update set, a local reachable density update set, and a local abnormal factor update set are obtained.
8. The mechanical streaming data cleaning method based on incremental local anomaly factors according to claim 7 is characterized in that: In S31 , the abnormality threshold λ is 2.
