Abnormal signal detection method and system
By converting sensor signals into k-nearest neighbor graphs and comparing continuous images to identify outlier variables, combined with thresholds and standard deviations, the challenge of multivariable time series anomaly detection in sensor networks is solved, achieving real-time and accurate abnormal signal identification. , improving the reliability of predictive maintenance.
Patent Information
- Application Number
- CN202310327059.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
In industry, detecting abnormal signals in multivariable time series in sensor networks is challenging, and existing technologies have difficulty detecting and predicting faults early, resulting in maintenance delays.
By dividing the sensor signal into a sliding window, convert it into a k-nearest neighbor graph, prune edges with edge weights less than the threshold, split into subgraphs, compare continuous images to identify outlier variables, combine with thresholds to determine abnormal signals, and use co-occurrence rate and standard deviation to optimize detection results.
It achieves real-time and accurate anomaly detection of sensor signals, enables early identification of abnormal times and affected sensors, improves the reliability of predictive maintenance, and is suitable for noisy real-world data.
Smart Images

Figure CN118734208A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to signal detection, and in particular to a method for detecting abnormal signals and a system for detecting abnormal signals. Background Art
[0002] Sensor networks have a wide range of applications in industry, including monitoring the manufacturing process of assembly lines, recording the operating status of wind turbines, and other critical infrastructure. In these applications, an important function of sensor networks is to facilitate predictive maintenance by detecting anomalies in sensor-based multivariate time series as early as possible, which is crucial for timely detection and recovery before serious damage occurs. Achieving such detection goals can be very challenging. Summary of the invention
[0003] On the one hand, the present application provides a method for abnormal signal detection. The method includes: dividing a sensor signal including a multivariate time series into a plurality of sub-matrices, wherein the plurality of sub-matrices correspond to respective sliding windows relative to the sensor signal in the time series; converting each of the sub-matrices into a corresponding k-nearest neighbor graph, wherein each of the k-nearest neighbor graphs includes a plurality of vertices and a plurality of edges connecting adjacent vertices; pruning each of the k-nearest neighbor graphs to remove the edges whose weights are less than a weight threshold among the plurality of edges; splitting each of the k-nearest neighbor graphs into a plurality of non-intersecting sub-graphs; obtaining the number of outlier variation by comparing two consecutive k-nearest neighbor graphs, the number of outlier variation corresponding to the number of outliers, and the outliers are placed in different sub-graphs in the two consecutive k-nearest neighbor graphs; and determining whether the sensor signal has an abnormal signal according to the number of outlier variation and a first threshold.
[0004] Preferably, the method further comprises, in response to the outlier variation amount being greater than or equal to the first threshold, determining that the sensor signal is abnormal. Preferably, the method further comprises, based on at least one outlier, obtaining an abnormal time and an abnormal sensor corresponding to each of the at least one outlier.
[0005] In one embodiment, the method further comprises obtaining the number of co-occurrences and the corresponding co-occurrence rate of each vertex by comparing two consecutive k-nearest neighbor graphs; and adding each vertex whose co-occurrence rate is lower than a second threshold to an outlier set. Preferably, the method further comprises obtaining the number of outlier point variations by comparing two consecutive outlier sets.
[0006] Preferably, the method further comprises obtaining the average value and standard deviation of the outlier variation number based on historical sensor signals. Preferably, the method further comprises obtaining the first threshold value based on the standard deviation of the outlier variation number. Preferably, the method further comprises determining whether the sensor signal has the abnormal signal based on the first threshold value, the outlier variation number and the average value of the outlier variation number. Preferably, the method further comprises initializing the outlier value set to an empty set.
[0007] On the other hand, the present application provides a system capable of performing abnormal signal detection in real time. The system comprises at least one sensor, wherein the at least one sensor can provide a sensor signal comprising a multivariate time series; and a computing device that forms a signal connection with the plurality of sensors, wherein the computing device is configured to perform the above-described abnormal signal detection method. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 is a schematic diagram of a system capable of performing abnormal signal detection in real time according to an embodiment of the present application;
[0009] Figure 2 is a schematic diagram of a multivariate time series according to an example of a sensor signal;
[0010] Figure 3 is based on Figure 2 A series of time series diagrams of multivariate time series;
[0011] Figure 4 is a flow chart of a method for abnormal signal detection according to an embodiment of the present application;
[0012] Figure 5 is a schematic diagram of a method for abnormal signal detection according to another embodiment;
[0013] Figure 6 The difference between point adjustment and delay-point adjustment is shown;
[0014] Figure 7 is based on Figure 5 Evaluation of abnormal signal detection methods on SMD;
[0015] Figure 8 is based on Figure 5 Scalability test of the abnormal signal detection method on data sets IS-1 to IS-5; and
[0016] Fig. 9 is a time series of some sensors with abnormalities marked according to an example. DETAILED DESCRIPTION
[0017] This paper discloses a system for detecting abnormal signals, which can be used to detect abnormal signals in sensor signals, such as multivariate time series, in real time. Figure 1 As shown, in one embodiment, the system 100 for abnormal signal detection includes a plurality of sensors 110 and a computing device 120 connected to the plurality of sensors 110 by signal. The sensors 110 may include sensors with multiple uses, multiple setting positions, and multiple measurement properties. As an example, the plurality of sensors 110 may include multiple sensors in a robotic arm, such as a laser sensor, a sonar sensor, a temperature sensor, a pressure sensor, etc. The plurality of sensors 110 may send or provide a sensor signal 200 including a multivariate time series to the computing device 120. The system 100 for abnormal signal detection may implement an unsupervised abnormal signal detection method based on association analysis. The abnormal signal detection method is a deterministic method, and a stable output may be obtained without model training. In addition, the method does not require a preset assumption on the data distribution, and thus can be easily extended to the processing of streaming data. The abnormal signal detection method mines the changes in the correlation of the sensor / sensor data to identify anomalies by observing the correlation between sensors or the correlation between sensor data, and may obtain (1) the time period when the abnormality occurs (abnormal time) and (2) the affected component (abnormal sensor with abnormal reading) of the sensor signal. Combining these two aspects can provide valuable information for predictive maintenance.
[0018] According to one embodiment, a method for detecting abnormal signals or a method for abnormal signal detection identifies anomalies by observing the correlation between sensors and mining the changes in the correlation between sensor signals. To this end, the multivariate time series is first converted into a series of time series graphs (Time-Series Graph). In one embodiment, the time series graph is a k-Nearest Neighbor Graph. Each vertex in the k-Nearest Neighbor Graph corresponds to a sensor, and the edge between two vertices represents the correlation between the time series of two sensors over a period of time. The time series graph only connects sensors to highly correlated neighbors. In order to detect anomalies, a small number of affected vertices are first found, and the correlation between these vertices and their neighbors has changed; then, the abnormal correlation changes in a series of time series graphs of these affected vertices are tracked. Finally, based on a theoretically guaranteed correlation change analysis, the method for abnormal signal detection can detect abnormal time periods and affected sensors.
[0019] In addition, the method of abnormal signal detection is practical and reliable for early anomaly detection of noisy data. Once an abnormal change occurs in the time series at a specific time point, the correlation between the affected sensor and other sensors will change accordingly, and the edges related to these affected vertices on the time series graph will also change immediately. Therefore, once an anomaly occurs, minor anomalies in sensor-based multivariate time series can be reflected by the affected vertices on the time series graph. Nevertheless, since multivariate time series usually contain noise, reporting anomalies based on (a few) affected vertices may not be accurate. Therefore, by tracking the relevant changes in a series of time series graphs, vertices with significant changes are considered abnormal only when they are above a threshold. The method of abnormal signal detection can achieve rapid and reliable anomaly detection in noisy real-world data.
[0020] Table I: Summary of symbols
[0021]
[0022] According to one embodiment, Figures 2 to 4 A method 300 for detecting abnormal signals is shown, which can be used to detect abnormal sensor signals 200, such as a multivariate time series T. The multivariate time series T may include multiple, for example, n sensors, and is represented by a matrix, that is, T = (s1, ..., s n ) T |T| is the length of the time series T. Each sensor s i (1≤i≤n) can be expressed as a |T|-dimensional vector, that is, s i =(x i,1 ,…,x i,|T| ), where x i,j (1≤j≤|T|) is the number of pixels from a single sensor s i The sensor reading at time t j In one embodiment, any two consecutive time points t j With t j+1 The time intervals between are set to be the same.
[0023] The operating states in a multivariate time series T can be classified into two types: normal state and abnormal state (anomaly). Anomaly consists of two parts: Abnormal Sensors and Abnormal Time. Abnormal Sensors refer to the sensors that cause detection anomalies and are fundamentally related to the occurrence of anomalies, while Abnormal Time corresponds to the sensor readings, usually referring to the time period during which anomalies occur. Given a multivariate time series T with n sensors, the goal of anomaly detection is to find l submatrices (from T) that are anomalies, where l is the number of anomalies. Each submatrix represents an anomaly Z, where each column represents a single anomaly time point; each row corresponds to the time series of the abnormal sensors that cause the anomaly. The submatrix can be composed of non - adjacent rows of T or adjacent columns to keep the abnormal time continuous.
[0024] Multivariate time series are usually very long, but anomalies often occur within a very short time series. Therefore, it is difficult to directly detect anomalies from multivariate time series. Thus, the method 300 for anomaly signal detection includes, at block 310, first dividing the sensor signals including the multivariate time series into multiple submatrices 210 / 220 / 230. The submatrices 210 / 220 / 230 respectively correspond to the respective sliding windows w with respect to the sensor signal 200 in the time series. In some embodiments, the multiple submatrices 210 / 220 / 230 may overlap. Outside the given sliding window w, a step size s is also included. Preferably, the step size s is less than the sliding window w. A larger sliding window w and a smaller step size s help to finely track the change of correlation. However, a smaller s / w ratio has more windows and is thus more expensive. Preferably, set w ∈ [0.01|T|, 0.03|T|] and s ∈ [0.01w, 0.02w].
[0025] As Figure 2 shown in the example, the multivariate time series T is divided into a series of submatrices {T1, T2, T3, …}, where T1 = T[1:w], T2 = T[1 + s:w + s], T3 = T[1 + 2s:w + 2s], etc. Each submatrix T i has the same length w. It should be noted that when the multivariate time series cannot be divided evenly by the sliding window w, that is starting from s < w << |T|, the last few sequences of T are deleted to make it divisible. For ease of explanation, assume R = (|T| - w) / s + 1, and the multivariate time series T is converted into R overlapping submatrices {T1, …, T R}. Submatrix T r(1≤r≤R) only displays the time series of each individual sensor. In order to monitor the correlation between sensors and detect anomalies through abnormal correlation changes, each of the sub-matrices 210 / 220 / 230 is first converted into a corresponding time series graph. In block 320, each of the sub-matrices 210 / 220 / 230 time series graphs is converted into a corresponding k-nearest neighbor graph 212 / 222 / 232. Figure 3 As shown, each of the k-nearest neighbor graphs may include a plurality of vertices 214 / 224 / 234 and a plurality of edges 216 / 226 / 236 connecting adjacent vertices. r Transformed into the corresponding k-nearest neighbor graph G r =(V,E r ), where V is a set and each vertex corresponds to a sensor, that is, n = |V|; E r is a set of edges. Each vertex is connected to its k most correlated neighbors according to the Pearson Correlation coefficient. In addition, in each submatrix T r In the r Represented as a weighted graph, where weight ω(e), each edge e=(u,v)∈E r is the Pearson correlation coefficient of the time series of the two sensors u and v.
[0026] When forming a k-nearest neighbor graph, setting a larger k value may contain weaker correlation with its k neighbors, resulting in additional noise and affecting the abnormality detection results. Conversely, setting a smaller k value may not contain enough relevant information between sensors. Therefore, a corresponding k value can be set according to the sensor signal. In some embodiments, the k-nearest neighbor graph G r Some vertices in the k-neighborhood still have weak correlations. These weakly correlated edges may change frequently in consecutive rounds or sequences, resulting in additional noise in the actual correlation between sensors. In order to accurately detect anomalies, preferably, in box 330, each of the k-nearest neighbor graphs is pruned to remove edges with weights less than a weight threshold τ, that is, |ω(e)|<τ. When there are a large number of sensors, edge pruning is performed so that the method for abnormal signal detection only tracks strong correlations between sensors and performs real-time anomaly detection. In some embodiments, the weight threshold τ affects the sparsity of the time series graph. A larger weight threshold τ may cause some vertices in the time series graph to not have enough neighbors, and therefore lack sufficient relevant information to detect anomalies. A smaller weight threshold τ may cause the time series graph to include many edges with weaker correlations, resulting in additional noise. Preferably, a moderate weight threshold τ is selected between 0.4 and 0.6. With respect to each submatrix Tr , the pruned k-nearest neighbor graph can be called the time series graph G r Therefore, a long multivariate time series T can be converted into a time series graph of R rounds {G1,…,G R}.
[0027] In the form of a time series graph, for example Figure 3 The affected vertex 238 in represents the abnormal sensor, and the consecutive rounds of the abnormal sensor are used to represent the abnormal time. First, the anomaly in the time series graph is defined. Definition 1 (Anomaly): Given a set of time series graphs {G1,…,G R}, the anomaly Z consists of a pair of (V Z ,R Z ) definition, that is, Z=(V Z ,R Z ),in are all vertices affected by the anomaly; R Z It is a set of consecutive rounds or a continuous time series graph when anomalies occur.
[0028] The method 300 for detecting abnormal signals also includes, in block 340, splitting each of the k-nearest neighbor graphs into a plurality of disjoint subgraphs. Definition 1 describes the overall representation of anomalies in a time series graph. For a certain round r, the time series graph G r Can be split into c r Disjoint subgraphs If vertices in the same subgraph are tightly connected, while vertices from different subgraphs have only loose connections, then c r The sub-graph is c r Community. Sensor networks usually present community structures. Therefore, time series graphs constructed by sensor networks usually show community structures. With the community structure, the changes in the corresponding communities of different vertices can be detected through two consecutive rounds or two consecutive time series graphs to determine whether the connectivity of different vertices is stable. Based on this idea, the (V Z ,R Z ) adds specific constraints and obtains Definition 2 and Definition 3.
[0029] Definition 2 (affected vertices): For the time series graph G r =(V,E r ), given a round r∈(1,R] with c r Communities, subsets of vertices is a subset of the affected vertices. The affected vertices are those that move into or out of community C in two consecutive rounds. r,c For every vertex v∈V r ,Right now According to Definition 2, if each vertex v∈V changes in two consecutive rounds, that is, moves into or out of the corresponding community C r,c , which is represented as a variation. Each vertex v that undergoes a variation may correspond to a corresponding outlier. In block 350, the number of outlier variations is obtained by comparing two consecutive k-nearest neighbor graphs. In one embodiment, the number of outlier variations may be the total number or number of outliers in the sequence, in other words, the number of vertex subsets V r The number of affected vertices in the k-nearest neighbor graphs. It can be understood that there may be no outliers between two consecutive k-nearest neighbor graphs, so the number of outlier mutations is zero. When the number of outlier mutations is not zero, at least one outlier may be included. The at least one outlier may be placed in different subgraphs in the two consecutive k-nearest neighbor graphs. Therefore, consecutive rounds including more changes than other rounds can be obtained, and this period of time is regarded as abnormal time.
[0030] Definition 3 (abnormal time and abnormal sensor): Given a first threshold, for example, the abnormal time threshold ξ (1≤ξ≤n) and the number of vertices affected by the R-wheel {V1,…,V R}, abnormal time R Z is a set of consecutive rounds or sequences. So for The amount of change is at least ξ, that is, |V r |≥ξ; Abnormal sensor V Z is In the above example, all affected vertices V r The union of. In Definition 3, if there are more affected vertices, wheel r is considered to be abnormal. In some cases, all vertices may be affected. Therefore, the range of the abnormal time threshold ξ may be 1≤ξ≤n. Therefore, in box 360, the method 300 for abnormal signal detection also includes determining whether the sensor signal has an abnormal signal based on the number of outlier variations and the first threshold, such as the abnormal time threshold ξ, and determining that the sensor signal is abnormal when the number of outlier variations is greater than or equal to the abnormal time threshold ξ. The method 300 for abnormal signal detection also includes obtaining the abnormal time and abnormal sensor corresponding to each of the at least one outlier based on the at least one outlier. The relevant content of setting the abnormal time threshold ξ is described in subsequent disclosures.
[0031] like Figure 2 and 3An example of a method 300 for abnormal signal detection is shown. The example shows a multivariate time series T with n=4 sensors, where |T|=8. The sensor readings in s4t7 and s4t8 drop significantly compared to the sensor readings in t1 to t6. Therefore, the submatrix (2020) is the anomaly Z, where the abnormal time is t7 to t8 and the abnormal sensor is s4. Among them, the sliding window w=4, the step size s=2, the round R=3, and the weight threshold τ=0.8. Figure 2 An example of converting a multivariate time series T into R = 3 rounds of time series graphs {G1, G2, G3} is shown. Given a submatrix T r , when one or more rows (i.e., the time series of sensor s4) undergo abnormal changes, the correlation between the sensor and other sensors will change accordingly, so the time series graph G r The edges associated with these vertices, i.e., the edge e = (s2, s4), will change immediately. Therefore, in the form of a time series graph, the same detection goal as using a multivariate time series form can be achieved, but anomalies can be detected earlier. Figure 3 Each abnormal sensor v∈V Z Corresponding to a row of the multivariate time series T, R Z is the time period during which the anomaly occurs. Therefore, the anomaly 238 in the time series diagram corresponds to the anomaly submatrix in the multivariate time series 200. In the multivariate time series 200, the abnormal sensor is s4, the abnormal time is t7 to t8, and in the time series diagram 232 it is V Z ={s4} and R Z ={r3}.
[0032] refer to Figure 5 , showing an embodiment of a method for abnormal signal detection. The method for abnormal signal detection is divided into three stages: in the first stage 410, the sensor signal is divided and converted into a plurality of corresponding time series graphs, such as k-nearest neighbor graphs. And different communities / subgraphs are detected from different time series graphs according to the correlation of the vertices. In the second stage 420, the co-occurrence relationship between each vertex and other vertices is mined in every two consecutive rounds or sequences, for example, the co-occurrence number and the corresponding co-occurrence rate of each vertex are obtained, and outliers are obtained. In the third stage 430, the number of outlier mutations is defined and its properties are analyzed. The pseudo code 1 of the abnormal detection process is shown below, which can return the outlier set and the number of outlier mutations. Based on the analysis of the number of outlier changes, the method for abnormal signal detection can detect abnormal time and abnormal sensors.
[0033] Pseudocode 1
[0034]
[0035] The first stage 410 is community detection. The method of abnormal signal detection may include first dividing the sensor signal into a plurality of sub-matrices, and converting each of the sub-matrices into a corresponding time series graph, such as a k-nearest neighbor graph. Different communities / sub-graphs are detected from different time series graphs according to the correlation of the vertices. For each round r∈[1,R], the time series graph G is first transformed using, for example, Louvain's algorithm. r Divided into c r The community is used to group vertices that are more relevant than other vertices into the same community (pseudocode 1, line 2). Through the community, the abnormal correlation changes of vertices can be tracked. Among the many community detection algorithms, it is preferred to select the Louvain algorithm which is more effective and only takes O(n log n) time. Figure 5 The first 10 rounds of time series graphs with 12 sensors are shown. After phase 1, each time series graph is divided into three communities, but the communities in different rounds can be different. When an anomaly occurs, although the sensors may not show obvious abnormal behavior initially, the correlation of the sensors is likely to collapse, resulting in a change in the community. Next, the co-occurrence relationship of the vertices will be mined from the sensor's community.
[0036] Phase 2: Co-occurrence mining. First, define co-appearance. If two vertices are in the same community in two consecutive rounds / sequences, such as two rounds (r-1) and r, they are called co-occurrence or co-occurrence. Definition 4 (Co-occurrence): Given a round r∈(1,R] and a vertex v; its previous community C r-1,c and current community C r,c' , the co-occurrence Sr(v,u) is calculated based on v and each u∈V as follows:
[0037]
[0038] Definition 4 describes a co-occurrence of two vertices in two consecutive rounds / sequences. By calculating the co-occurrence of each vertex with other vertices, we can monitor whether the community to which all vertices belong changes or modifies in each round. Then, we define the co-appearance number Sr(v) (based on vertex v) as the total number of vertices that co-occur with its corresponding vertex v.
[0039] Definition 5 (Co-occurrence number): The co-occurrence number Sr(v) in each vertex v∈V (within a round r∈(1,R]) is calculated as follows:
[0040] Sr(v)=∑ u∈V∧u≠v Sr(v,u) (2)
[0041] The co-appearance number Sr(v) in different rounds may be different for each vertex v∈V, especially when there are anomalies. Therefore, the co-appearance ratio (Ratio of Co-appearance Number) is defined to obtain the co-appearance number through a vertex, based on the changes in all r rounds so far. Definition 6 (Co-appearance ratio): For each v∈V, the co-appearance ratio of v with other vertices in round r∈(1,R] is calculated as follows:
[0042]
[0043] If a vertex v always co-occurs with a certain set of vertices in the same community in round r, it has a higher / larger RC v,r and can be considered normal. However, for a specific round r, if vertex v suddenly becomes a member of another community, its vertex v should be considered an outlier or outlier. Because this community may contain only a few (or no) other vertices that co-occur with vertex v. Therefore, the co-occurrence number Sr(v) of the previous round will decrease or be smaller, and the co-occurrence rate RC v,r will decrease at a higher rate. Therefore, the co-occurrence rate RC v,r The value is compared with a pre-specified second threshold, such as an outlier threshold θ, to determine whether vertex v is an outlier in round r.
[0044] Definition 7 (Outlier Set): Given an outlier threshold θ, the outlier set O r In a round r∈(1,R], it is defined as follows:
[0045] O r = {v∈V | RC v,r <θ} (4)
[0046] The overall steps of the co-occurrence mining phase are described as follows. First, initialize the outlier set Or to an empty set (line 3). By comparing the continuous time series graph or the k-nearest neighbor graph, for each vertex v∈V, calculate the co-occurrence number Sr(v) and co-occurrence rate RC of each vertex v v,r (Pseudocode 1, line 5). And the co-occurrence rate RC v,r Each vertex v below the outlier threshold θ is added to the outlier set (pseudocode 1, line 6). A higher outlier threshold θ will exclude many vertices that should be considered outliers, resulting in low detection accuracy. Preferably, the outlier threshold θ is set to about 0.3 for most datasets. It is worth noting that since multivariate time series often contain noise, the presence of (a few) outliers cannot reliably determine a turn as an anomaly in some cases. Therefore, the following stages illustrate that outlier changes will be analyzed and the impact of noise will be mitigated.
[0047] Phase 3: Variation analysis. A vertex in a time series graph can have three states in two consecutive rounds / sequences: (1) normal state in both rounds, (2) outliers / outliers in both rounds, and (3) transition between normal state and outliers. For example, Figure 5 , vertex b and vertex c are normal in rounds 9 and 10, while vertex a becomes an outlier in round 9 and becomes normal in round 10. In order to improve the accuracy and reliability of determining anomaly / abnormal time, we focus on the transition state and further define the number of outlier variations n r .
[0048] Definition 8 (Number of outlier mutations): For a round r∈(1,R], the number of outlier mutations n r can be defined as the number of vertices in transition state, i.e. According to Definition 8, by comparing the outlier sets of two consecutive rounds or sequences, for example, the outlier sets O corresponding to round r-1 and round r, respectively. r-1 and O r , get the number of outlier mutations n r (Line 7 of Pseudocode 1). In one embodiment, referring to Definition 3, whether the sensor signal has an abnormal signal is determined based on the number of outlier variation and a first threshold, such as an abnormal time threshold ξ. For example, if the number of outlier variation n r > abnormal time threshold ξ, then wheel r is considered abnormal. Assume N r is the number of outlier mutations n in round r r A random variable with outlier mutation number n r It can be regarded as N r When an exception occurs, due to N r It is usually affected by its previous rounds, so it is not an independent random variable, but can be related to N r -Δr correlation, (in the previous round (r-Δr)), where Δr∈[1,r). Use covariance to represent this correlation, that is
[0049] Cov(N r ,N r-Δr ).
[0050] Anomaly detection. Given a round r, the number of outlier mutations n is obtained r Afterwards, it is necessary to determine whether the current round r is abnormal. In one embodiment, according to Chebyshev's Inequality, it is obtained that:
[0051] P(|n r -μ|≥η·σ)≤1 / η2 (5)
[0052] Where η is a constant; μ and σ are the number of outlier mutations n r The average value and standard deviation of . As a preferred example, in order to accurately detect anomalies, the default setting η=3. Therefore, the abnormal time threshold ξ is ξ=3σ, which can be calculated based on the number of outlier mutations n r The standard deviation σ is used to obtain the abnormal time threshold ξ. Therefore, it meets the requirement of |n r Round r with -μ|≥3σ can be judged as an anomaly because the community of this round r is significantly different from that of the previous rounds. In addition, according to inequality 5, this round r is also an anomaly. Therefore, we can use the anomaly time threshold ξ, the number of outlier mutations n in this round r, and the number of outliers in the round r to determine the anomaly. r and the average value μ of the number of outlier mutations to determine whether round r has abnormal signals.
[0053] In one embodiment, the method for abnormal signal detection can be described by the following pseudo code 2. Use Z to store abnormalities, and use V Z and R Z Each abnormal or affected sensor and abnormal round are stored separately (line 2 of pseudo code 2). In one embodiment, for each round r∈[1,R], the method in pseudo code 1 is first called to perform outlier detection and obtain the outlier set O r and the number of outlier mutations n r (Line 6 of Pseudocode 2). Use N to store a series of outlier variation numbers n r It is worth noting that μ and σ are two parameters that determine the abnormal time. If |n r -μ|≥3σ, the round is considered abnormal, so r is added to R Z And V Z Update to O r (Pseudocode 2, line 8). If V Z If it is not empty, it means the current exception ends and (V Z ,R Z ) to Z and V Z与 R Z Reinitialize to an empty set (pseudocode 2 line 11). Then, r Add to N (pseudocode 2 line 12) and update μ and σ accordingly (pseudocode 2 line 13), and return all detected anomalies Z as output (pseudocode 2 line 14).
[0054] Using inequality |n r -μ|≥3σ, which is more reliable for processing noisy sensor signals / data. Based on the fact that the noise of a machine is usually at the same level, use |n r-μ| can reduce the impact of noise and use 3σ to distinguish actual anomalies from noise data. In some embodiments, in order to avoid the possibility of r The differences in μ and σ obtained, especially when r is small, introduce a warm-up process using historical multivariate time series (pseudocode 2 lines 16–23) to obtain sufficient n r The input of the warm-up process comes from the historical sensor signals of the same data source as T, such as the historical multivariate time series T his , through a process similar to anomaly detection, the number of outlier mutations n in each round r is obtained r . Thus, N can store enough n r , so as to obtain more accurate average value μ and quasi deviation σ of the number of outlier variation for subsequent anomaly detection.
[0055] Pseudocode 2
[0056]
[0057] The method for detecting abnormal signals disclosed in the text can detect abnormalities in multivariate time series based on sensors. It is worth noting that the method for detecting abnormal signals can be extended to process streaming data. For example, when a new round of data T R+1 When the abnormal signal detection method arrives, the abnormality can be detected in real time by the method. Since the abnormal signal detection is performed in each round, the detection process can be carried out simultaneously with the new data collection. As long as the running time of each round of the abnormal signal detection method is less than the time period of one step s, the abnormality can be detected in real time. In addition, in the abnormality detection process, by maintaining a series of n r , μ and σ can be obtained. Under the condition of real-time detection, n r As more and more data streams come in, the number of μ and σ increases, and the values of μ and σ can be estimated more accurately, thereby achieving more accurate detection of anomalies. Therefore, real-time detection can be applied to various industrial scenarios, such as server nodes, commercial servers, water supply networks, power sensors, industrial assembly lines, etc. In addition, the method of abnormal signal detection can detect anomalies at an earlier stage. The main reason is that when an anomaly occurs, although the sensor may not show obvious abnormal behavior, the correlation between the affected sensors is likely to change, so this change can be captured by this method.
[0058] The evaluation of time series anomaly detection is usually based on point adjustment (PA). Figure 6, given the anomaly label of a time series, once a single time point is detected within the range, the anomaly is considered to be detected. Afterwards, it is directly compared with the label value to calculate the value of F1. Since the point-adjusted PA does not consider the time point when the anomaly is first detected, the time order when the anomaly is detected is ignored, and the time order of detection is not evaluated. In order to solve the problems in the point-adjusted PA, this paper provides a new evaluation scheme called Delay-Point Adjustment (DPA) to reflect the time order when the anomaly is detected. Compared with the point-adjusted PA, based on each anomaly, the delayed-point adjustment DPA only adjusts the false negatives after the first true positive. Figure 6 In the example, based on the same anomaly detection method M1, by using the delay point to adjust the DPA, only the two false negatives in t3 and t4 are adjusted to true positives, while the three false negatives in t7 to t9 remain unchanged. Therefore, F1 DPA =72.7%. Compared with point adjustment PA, delay point adjustment DPA is a more stringent evaluation, i.e., F1 DPA ≤F1 PA .
[0059] In addition, two relative evaluation methods are proposed: Ahead and Miss, which are used for relative comparison between the detection results of the two methods. ahead is the number of anomalies detected by anomaly detection method M1 ahead of anomaly detection method M2, and I miss The number of anomalies that were not detected (Miss) by the anomaly detection method M1 but were detected by the anomaly detection method M2. ahead / I d ,Miss=I miss / (II d ), where I is the total number of anomalies; I d ∈[0,I] is the number of anomalies detected by anomaly detection method M1. If I d =I, then set Miss=0. Figure 6 In the example, M1 detects the first anomaly earlier than M2 and does not miss any anomaly. Therefore, Ahead = 50%, Miss = 0. In an ideal situation, Ahead = 100%, Miss = 0.
[0060] Through experiments, the performance of the proposed method for abnormal signal detection (CAD) is evaluated relative to other methods. These methods are executed for each time series, and the average of the anomaly scores is taken as the output. Other methods include three data mining-based methods: LOF, ECOD, and IForest; two deep learning methods: USAD and RCoders; and four univariate methods: S2G, SAND, its online version SAND*, and NormA. Sensor datasets with label information are used: PSM, SWaT, and SMD, as well as two private datasets from industry, IS-1 and IS-2. The SMD dataset consists of 28 different subsets, and the method evaluation is performed directly on each subset without a warm-up process. Table II summarizes the statistics of the eight datasets.
[0061] Table III shows the abnormal time detection results on the sensor datasets of PSM, SWaT, IS-1 and IS-2, where the standard deviation (std) is calculated based on the F 1PA and F1 DPA Since the results of CAD, LOF, ECOD and S2G of the method of the present application do not change with different repetitions, the corresponding standard deviations are 0. As shown in Table III, the CAD method of the present application outperforms all the baselines of IS-1 and achieves F1 PA and F1 DPA Table IV shows the results on the SMD dataset. Our method CAD outperforms other methods such as USAD, RCoders, S2G, SAND, SAND*, and NormA in at least 17 of the 28 subsets, and is comparable to LOF, ECOD, and IForest.
[0062] Table II Statistics of eight sensor datasets
[0063]
[0064] Table III Abnormal time detection
[0065]
[0066] TABLE IV Abnormal time and abnormal sensor detection on SMD
[0067] (OP is the number of subsets that CAD can outperform in the 28 subsets)
[0068]
[0069] When the number of sensors increases, such as from IS-1 to IS-2, the results of some methods (such as LOF and USAD) drop significantly under delayed point-adjusted DPA. This is partly because multivariate time series with more sensors usually contain more complex relationships and contain more noise. The performance of the four univariate methods is significantly reduced under point-adjusted PA and delayed point-adjusted DPA. This shows that simply extending these methods for multivariate time series may not be effective. Since most of the baseline methods find outliers based on certain assumptions, they may become unstable and more sensitive to noise. In contrast, the proposed method CAD detects anomalies based on abnormal correlated changes between sensors through a series of time series plots, which can reduce noise and be more stable.
[0070] Table V shows the evaluation of Ahead and Miss. The method CAD described in this application is at least 50% Ahead (PSM and SWaT sensor datasets) compared to other methods, while its Miss is still less than 50% (except SAND). The results show that for the detected anomalies, the anomaly signal of this method is at least half ahead of other discoveries; for those anomalies missed by this method CAD, others can detect up to half. Reference Figure 7 ,Regarding all 28 subsets of the SMD dataset, the proposed CAD method outperforms other methods.,Compared with other methods, the proposed CAD method can achieve Ahead>50% in most subsets in SMD, and more than half of the subsets obtain Miss<50%, thus verifying that the proposed method can detect abnormal time as early as possible with almost no omissions.
[0071] Table V Evaluation of Ahead and Miss
[0072]
[0073] The proposed CAD method can not only detect abnormal events, but also reveal abnormal sensors. The last column of Table IV shows the abnormal sensor detection results on SMD. It is observed that the proposed CAD method outperforms the ECOD and RCoders methods by a ratio of 28 / 28, which are the only two baseline methods that can obtain abnormal sensors. Based on the sensor datasets IS-1 and IS-2, the proposed CAD method also outperforms the ECOD and RCoders methods with an F1 sensor More than 60%. Therefore, at least half of the normal sensors can be excluded, greatly reducing the pressure on operators to perform predictive maintenance.
[0074] Table VI shows the detection time of the CAD in each round of this method, that is, the time per round (TPR). In order to detect anomalies in real time, the time per round TPR should be less than the time corresponding to the step size s, that is, TPR
[0075] Table VI Test time of the method (in seconds)
[0076]
[0077] refer to Figure 8 , we run our proposed CAD method for anomaly detection on five large real-world labeled datasets (i.e., IS-1–IS-5) by increasing the number of sensors. Figure 8 The left side of the figure shows the results of abnormal time detection. Even though the IS-5 dataset contains more than a thousand sensors, our method can still ensure the accuracy of detecting anomalies F1. DPA >85%. Figure 8 The right side of the figure shows the TPR of each round of anomaly detection on IS-1 to IS-5, which shows that the CAD method can be extended to a large number of sensors and can achieve real-time anomaly detection as long as the TPR of each round is less than the time of one step (as in the case of IS-1–IS-5).
[0078] Fig. 9 The time series of some sensors of the subset SMD 1_6 in the SMD are shown, which covers the abnormal time period of this anomaly, indicating the sensors affected by the anomaly. When the anomaly occurs, the time series of the abnormal sensors (e.g., sensors 2-4, 9, 12, and 13) are (very) different from the previous sensors, while the normal sensors (e.g., sensors 19-21) still maintain the original trend and are not affected by this anomaly. Sensors 2 to 4 initially behaved similarly to sensors 9, 12, and 13, and therefore have a strong correlation. When an anomaly occurs, it causes some time series to change, and sensors 2 to 4 are no longer associated with sensors 9, 12, and 13. Since the present method CAD uses edges in the time series graph to represent the strong correlation between sensors, the abnormal changes of some sensors can be immediately reflected by the changes in the edges. Therefore, they can be reported as abnormal sensors earlier and accurately. However, in the initial stage of such anomaly, the changes in the time series may be negligible, so other methods based only on specific rules may not be able to detect it early. In addition, Fig. 9 The first row shows the time point when each method detects this anomaly. It can be seen that when an anomaly occurs, this method can detect the anomaly immediately, so it is suitable for real-world industrial environments and can avoid the propagation of faulty components to other adjacent components over time due to untimely maintenance.
[0079] As used herein, unless expressly stated otherwise, the singular "a" and "an" may be construed to include the plural "one or more".
[0080] The present disclosure is presented above for the purpose of illustration and description, but is not intended to be exhaustive or limiting. Many modifications and variations will be apparent to those of ordinary skill in the art. The exemplary embodiments are selected and described in order to explain the principles and practical applications, and to enable those of ordinary skill in the art to understand the various embodiments of the present disclosure, with various modifications suitable for the particular use contemplated.
[0081] Therefore, although illustrative example embodiments are described herein with reference to the accompanying drawings, it should be understood that the description is not restrictive and that those skilled in the art may implement various other changes and modifications therein without departing from the scope, innovative concepts, and technical solutions of the present disclosure.
Claims
1. A method for abnormal signal detection, characterized in that: The method comprises: Dividing a sensor signal including a multivariate time series into a plurality of sub-matrices, wherein the plurality of sub-matrices respectively correspond to respective sliding windows relative to the sensor signal in the time series; Convert each of the submatrices into a corresponding k-nearest neighbor graph, wherein each of the k-nearest neighbor graphs includes a plurality of vertices and a plurality of edges connecting adjacent vertices; Pruning each of the k-nearest neighbor graphs to remove edges among the plurality of edges whose weights are less than a weight threshold; Splitting each of the k-nearest neighbor graphs into a plurality of disjoint subgraphs; Obtaining the number of outlier mutations by comparing two consecutive k-nearest neighbor graphs, the number of outlier mutations corresponding to the number of outliers, the outliers being placed in different subgraphs in the two consecutive k-nearest neighbor graphs; and Whether the sensor signal has an abnormal signal is determined according to the outlier variation quantity and a first threshold.
2. The method according to claim 1, characterized in that The method further includes determining that the sensor signal is abnormal in response to the outlier variation amount being greater than or equal to the first threshold.
3. The method according to claim 2, characterized in that The method further includes obtaining, based on at least one outlier, an abnormal time and an abnormal sensor corresponding to each of the at least one outlier.
4. The method according to claim 1, characterized in that: Also includes: By comparing two consecutive k-nearest neighbor graphs, obtaining the co-occurrence number and corresponding co-occurrence rate of each vertex; and Each vertex whose co-occurrence rate is lower than a second threshold is added into an outlier set.
5. The method according to claim 4, characterized in that The method further comprises obtaining the outlier point variation quantity by comparing two consecutive outlier value sets.
6. The method according to claim 5, characterized in that The method further includes obtaining an average value and a standard deviation of the outlier variation quantity based on historical sensor signals.
7. The method according to claim 6, characterized in that The method further includes obtaining the first threshold value according to a standard deviation of the number of outlier variations.
8. The method according to claim 7, characterized in that The method further includes determining whether the sensor signal has the abnormal signal according to the first threshold, the number of outlier variations, and an average of the number of outlier variations.
9. The method according to claim 4, characterized in that The method also includes initializing the outlier set to an empty set.
10. A system capable of performing abnormal signal detection in real time, characterized in that: The system comprises: at least one sensor, wherein the at least one sensor can provide a sensor signal including a multivariate time series; and a computing device that forms a signal connection with a plurality of sensors, wherein the computing device is configured to execute the methods of claims 1 to 9.
