Anomaly signal detection method and system

By dividing sensor signals into sliding windows and converting them into k-nearest neighbor graphs, combined with threshold judgment and co-occurrence rate analysis, the challenge of multivariable time series anomaly detection in industrial sensor networks is solved, and real-time and reliable abnormal signal identification is achieved. and predictive maintenance.

WO2024205504A1PCT designated stage expired Publication Date: 2024-10-03NATIONAL UNIVERSITY OF SINGAPORE +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/SG2024/050191
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2024-03-28
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In industrial sensor networks, detecting abnormal signals in multi-variable time series is challenging, especially in terms of timely detection and recovery of faults before serious damage occurs, which is difficult to effectively achieve with existing technologies.

Method used

By dividing the sensor signal of the multivariate time series into multiple sliding windows, converting it to a k-nearest neighbor graph, pruning edges with edge weights less than a threshold, splitting the graph, and comparing consecutive k-nearest neighbor graphs to obtain the number of outliers , and determine whether the signal is abnormal based on the threshold, and determine the abnormal time and sensor based on co-occurrence rate and historical signal analysis.

Benefits of technology

It realizes real-time anomaly detection of sensor signals, can quickly and reliably identify anomalies in noisy data, provides valuable predictive maintenance information, and reduces the impact of noisy data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SG2024050191_03102024_PF_FP_ABST
    Figure SG2024050191_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to an anomaly signal detection method, comprising: dividing a sensor signal into a plurality of sub-matrixes, wherein the plurality of sub-matrixes respectively correspond to sliding windows relative to the sensor signal on a time sequence; converting each sub-matrix into a corresponding k-nearest neighbor graph, wherein the k-nearest neighbor graph comprises a plurality of vertexes and a plurality of edges connected to the adjacent vertexes; trimming each k-nearest neighbor graph to remove edges having weights smaller than a weight threshold among the plurality of edges; splitting each k-nearest neighbor graph into a plurality of non-intersecting sub-graphs; obtaining the number of outlier variations corresponding to the number of outliers by comparing two continuous k-nearest neighbor graphs, wherein the outliers are respectively placed in different sub-graphs in the two continuous k-nearest neighbor graphs; and according to the number of outlier variations and a first threshold, determining whether there is an anomaly signal.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] TECHNICAL FIELD This application relates to signal detection, and more particularly to a method and system for abnormal signal detection. Background: Sensor networks have a wide range of applications in industry, including monitoring manufacturing processes on assembly lines and recording the operating status of critical infrastructure such as wind turbines. In these applications, a key function of sensor networks is to facilitate predictive maintenance by detecting anomalies in sensor-based multivariate time series as early as possible. This is crucial for timely detection and recovery before significant damage occurs. Achieving such detection goals can be extremely challenging. SUMMARY OF THE INVENTION In one aspect, this application provides a method for abnormal signal detection. The method includes: dividing a sensor signal comprising a multivariate time series into a plurality of sub-matrices, wherein the plurality of sub-matrices correspond to respective sliding windows H relative to the sensor signal in the time series; converting each sub-matrix into a corresponding k-nearest neighbor graph, wherein each k-nearest neighbor graph includes a plurality of vertices and a plurality of edges connecting adjacent vertices; pruning each k-nearest neighbor graph to remove edges whose weights are less than a weight threshold; splitting each k-nearest neighbor graph into a plurality of disjoint graphs; obtaining a number of outlier variations by comparing two consecutive k-nearest neighbor graphs, wherein the number of outlier variations corresponds to the number of outliers, wherein the outliers are located in different sub-graphs in the two consecutive k-nearest neighbor graphs; and determining whether the sensor signal has an abnormal signal based on the number of outlier variations and a first threshold. Preferably, the method further includes determining that the sensor signal is abnormal when the number of outlier variations is greater than or equal to the first threshold. Preferably, 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. 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 variations by comparing two consecutive outlier sets. Preferably, the method further comprises obtaining the average value and standard deviation of the number of outlier variations based on historical sensor signals. Preferably, the method further comprises obtaining the first threshold value based on the standard deviation of the number of outlier variations. Preferably, the method further comprises determining whether the sensor signal contains the abnormal signal based on the first threshold value, the number of outlier variations, and the average value of the number of outlier variations. Preferably, the method further comprises initializing the outlier set to an empty set.In another aspect, the present application provides a system for real-time abnormal signal detection. The system includes at least one sensor, wherein the at least one sensor provides a sensor signal comprising a multivariate time series; and a computing device signal-connected to the plurality of sensors, the computing device configured to execute the abnormal signal detection method described above. BRIEF DESCRIPTION OF THE DRAWINGS FIG1 is a schematic diagram of a system capable of performing real-time abnormal signal detection according to an embodiment of the present application; FIG2 is a schematic diagram of a multivariate time series according to an example of a sensor signal; FIG3 is a schematic diagram of a series of time series graphs of the multivariate time series according to FIG2; FIG4 is a flow chart of a method for abnormal signal detection according to an embodiment of the present application; FIG5 is a schematic diagram of a method for abnormal signal detection according to another embodiment; FIG6 illustrates the difference between ZK point adjustment and delay point adjustment; FIG7 is an evaluation of the abnormal signal detection method according to FIG5 on SMD [1]. FIG8 is a scalability test of the abnormal signal detection method according to FIG5 on data sets IS-1 to IS-5; and FIG9 is a time series of a portion of a sensor with abnormalities marked according to an example. DETAILED DESCRIPTION OF THE EMBODIMENTS Disclosed herein is a system for abnormal signal detection that can be used in real time to detect abnormal signals in sensor signals, such as in a multivariate time series. As shown in FIG1 , in one embodiment, a system 100 for detecting abnormal signals includes a plurality of sensors 110 and a computing device 120 connected to the plurality of sensors 110. The sensors 110 may include sensors with various uses, various locations, and various measurement properties. For example, the plurality of sensors 110 may include various sensors in a robotic arm, such as laser sensors, sonar sensors, temperature sensors, pressure sensors, etc. The plurality of sensors 110 may send or provide sensor signals 200 including multivariate time series to the computing device 120. The system 100 for detecting abnormal signals may implement an unsupervised abnormal signal detection method based on association analysis. The abnormal signal detection method is a deterministic method that can obtain stable output without model training. In addition, the method does not require pre-set assumptions about data distribution, and thus can be easily extended to the processing of streaming data. The abnormal signal detection method identifies abnormalities by observing the correlation between sensors or the correlation between sensor data, mining the changes in the correlation between the sensor / sensor data, and obtaining (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. According to one embodiment, a method for detecting abnormal signals or abnormal signal detection identifies anomalies by observing correlations between sensors and mining changes in correlations between sensor signals. To this end, a multivariate time series is first converted into a series of time-series graphs. 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 an edge between two vertices represents the correlation between the time series of the two sensors over a period of time. The time-series graph only connects sensors to highly correlated neighbors. To detect anomalies, a small number of affected vertices whose correlations with their neighbors have changed are first identified. Then, abnormal correlation changes in the time-series graphs of these affected vertices are tracked. Finally, based on theoretically guaranteed correlation change analysis, the abnormal signal detection method can identify abnormal time periods and affected sensors. Furthermore, this abnormal signal detection method is practical and reliable for early anomaly detection in noisy data. : Once an abnormal change occurs in a 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 a sensor-based multivariate time series can be reflected by the affected vertices on the time series graph. However, since multivariate time series often contain noise, reporting anomalies based on (a small number of) affected vertices may not be very accurate. Therefore, by tracking the related changes in a series of time series graphs, vertices with significant changes are considered anomalies only when their value exceeds a threshold. The described abnormal signal detection method can achieve rapid and reliable anomaly detection in noisy real-world data. According to one embodiment, FIG2 to FIG4 show a method 300 for detecting an abnormal signal, wherein the method 300 is for detecting an abnormal sensor signal 200, such as a multivariate time series T. The operating states in a multivariate time series T can be divided 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 and usually refers 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 / submatrices (from T) that are anomalies, where / 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. Multivariate time series are usually very long, but anomalies often occur within a very short time series, so it is difficult to directly detect anomalies from multivariate time series. Therefore, the method 300 for anomaly signal detection includes, in 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. In addition to the given sliding window w, a step size s is also included. Preferably, the step size s is smaller than the sliding window w. A larger sliding window w and a smaller step size s help to track the change of correlation in fine - granularity. 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]. Each of the submatrices Ti has the same length w. It should be noted that when the multivariate time series cannot be divided evenly by the sliding window w, i.e., (|T| - w) ≠ 0 mod s, starting from s < w << |T|, the last few sequences of T are deleted to make it divisible. For the sake of illustration, assume R = (|T| - w) / s + 1, and convert the multivariate time series T into R overlapping submatrices {Ti,..., TR}. The submatrix L

[0002] (i WrWR) only displays the time series of each individual sensor. 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. o As shown in FIG3 , 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. For example, each matrix is ​​converted into a corresponding k-nearest neighbor graph G r =(V, Er), where # is a set where each vertex corresponds to a sensor, i.e., n=|F1; and & is a set of edges. Each vertex is connected to its k most correlated neighbors based on the Pearson Correlation coefficient. In addition, in each submatrix Tr, each is represented as a weighted graph, where the weight G(e), each edge e=(", v) EEr is the Pearson correlation coefficient of the time series of the two sensors «, v. When forming the k-nearest neighbor graph, setting a larger k value may include weaker correlation with its k neighbors, resulting in additional noise and affecting the anomaly detection result. Conversely, setting a smaller left value may not include sufficient relevant information between sensors. Therefore, the corresponding left value can be set according to the sensor signal. In some embodiments, some vertices in the k-nearest neighbor graph G, still have weak correlation among k neighbors. These edges with weaker correlation 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 the weight threshold T, that is, o ( e)| < T0 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 T affects the sparsity of the time series graph. A larger weight threshold T may result in some vertices in the time series graph not having enough neighbors, and thus lacking sufficient relevant information to detect anomalies. A smaller weight threshold T may cause the time series graph RJ to include many edges with weaker correlations, resulting in additional noise. Preferably, a moderate weight threshold T is selected between 0.4 and 0.6. The pruned k-nearest neighbor graph for each submatrix T" can be called a time series graph G ro |^| Therefore, a long multivariate time series T can be converted into a time series graph {G / , ..., GR} with R rounds. In the form of a time series graph, for example, the affected vertex 238 in FIG3 represents an abnormal sensor, and the consecutive rounds of the abnormal sensor are used to represent the abnormal time. First, define Anomaly Z is defined by a pair (Vz, Rz), i.e., Z = (Vz, Rz), where Vzb represents all vertices affected by the anomaly; Rz represents a set of consecutive rounds or a continuous time series graph when the anomaly occurs. The anomaly signal detection method 300 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 given round r, the time series graph G can be split into % disjoint subgraphs. If the connections are loose, then the 0.0 subgraph is called a community. Sensor networks typically exhibit a community structure. Therefore, time series graphs constructed from sensor networks often exhibit a community structure. With this community structure, changes in the corresponding communities of different vertices can be detected over two consecutive rounds or two consecutive time series graphs to determine whether the connectivity of different vertices is stable. Based on this idea, specific constraints are added to (Kz, Rz), resulting in Definitions 2 and 3. Definition 2 (Affected Vertices): For the time series graph G, r =(V, E r )- , given a round r£ (l, R] with 4 communities, the vertex set J is the set of affected vertices. The affected vertices are each vertex vG that moves into or out of the community Cr.c in two consecutive rounds, that is, 14 = {v GVI (v Cr-i : c and v £ C r : c) or (v £ C r -i c and vg G, c According to Definition 2, if each vertex ver changes in two consecutive rounds, that is, moves into or out of the corresponding community Cg, it is represented as a variation. Each vertex v that changes 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 is the total number or number of outliers in the sequence, in other words, the number of affected vertices in the vertex subset K. It can be understood that there may be no outliers between two consecutive k-nearest neighbor graphs, and thus the number of outlier variations is zero. When the number of outlier variations is not zero, it may include at least one outlier. The at least one outlier may be placed in different graphs in the two consecutive k-nearest neighbor graphs. Therefore, consecutive rounds including more variations than other rounds are obtained, and this period is regarded as abnormal time. Definition 3 (Abnormal time and abnormal sensor): Given a first threshold, for example, abnormal time threshold & (i W & Wn) and R rounds of affected vertices {Vi, ... , VR), the abnormal time Rz is 3, if there are a large number of affected vertices, the wheel corpse is considered an anomaly. In some cases, all vertices may be affected. Therefore, the range of the abnormal time threshold & can be 1W & Wn. Therefore, in block 360, the abnormal signal detection method 300 also includes determining whether the sensor signal contains only abnormal signals based on the number of outlier variations and a 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 abnormal signal detection method 300 further 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 & will be explained in subsequent disclosures. Figures 2 and 3 show an example of the abnormal signal detection method 300. The example shows a multivariate time series T with '=4 sensors, where |T|=8. The sensor readings in S4t7 and S4t8 drop significantly compared to the sensor readings in ti to t6. Therefore, the submatrix (20 20) is the anomaly Z, where the anomaly time is t7 to t8 and the anomaly sensor is s4. The sliding window w=4, the step size s=2, the round number R=3, and the weight threshold T=0.8 oFigure 2 shows an example of converting a multivariate time series T into a three-dimensional time series graph {Gj, G2, G}. Given a submatrix Tr, when one or more rows (i.e., the time series of sensor S4) undergo an abnormal change, the correlation between that sensor and other sensors will change accordingly. Therefore, the edges associated with those vertices in the time series graph Gr, namely, the edge e=(S2, S4), will immediately change. Therefore, using a time series graph can achieve the same detection goals as using a multivariate time series. A row of sequence T represents the time period where an anomaly occurs. Therefore, anomaly 238 in the time series graph corresponds to an anomaly submatrix in the multivariate time series 200. In the multivariate time series 200, the abnormal sensor is S4, and the abnormal time is t7 to t8. In the time series graph 232, KZ = {S4} and Z = {R3}. Referring to Figure 5, an embodiment of a method for abnormal signal detection is shown. The method for abnormal signal detection is divided into two stages: In the first stage 410, the sensor signal is divided and converted into multiple corresponding time series graphs, such as k-nearest neighbor graphs. Based on the correlation of vertices, different communities / subgraphs are detected from different time series graphs. In the second stage 420, the co-occurrence relationship between each vertex and other vertices in every two consecutive rounds or sequences is mined, for example, the co-occurrence count and corresponding co-occurrence rate of each vertex are obtained, and outlier values ​​are obtained. In the second stage 430, the number of outlier point variations is defined and their attributes are analyzed. The pseudo code 1 of the anomaly detection process is shown below, which can return the outlier set and the number of outlier point variations. Based on the analysis of the number of outlier changes, the abnormal signal detection method can detect abnormal time and abnormal sensors. Pseudo code 1

[0003] 2. On G, Louvam should get a community;

[0004] 3 O r 0:

[0005] 4 foreach e V do

[0006] 8 return {O r . n. rThe first stage 410 is community detection. The method for detecting abnormal signals may include first dividing the sensor signals into multiple submatrices and converting each submatrix into a corresponding time series graph, such as a k-nearest neighbor graph. Different communities / subgraphs are then detected from different time series graphs based on vertex correlations. For each round r[l,R], the time series graph G is first divided into communities using, for example, the Louvain algorithm, such that vertices that are more correlated than other vertices are grouped into the same community (pseudocode 1, line 2). Using communities, abnormal correlation changes in vertices can be tracked. Among various community detection algorithms, the Louvain algorithm, which is more efficient and requires only O(n log ') time, is preferably selected. Figure 5 shows the first 10 rounds of time series graphs for 12 sensors. After the first stage, 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 initially exhibit obvious abnormal behavior, the sensor correlations are likely to collapse, resulting in community changes. Next, we mine the co-occurrence relationships of vertices from the sensor's communities. Phase 2: Co-occurrence mining. First, we define co-appearance. If two vertices are in the same community in two consecutive rounds / sequences, for example, in rounds (r-1) and (r-2), we call them co-appearances. Definition 4 (Co-occurrence): Given a round r W(l,) and a vertex v; its previous community GTC and current community G., the co-occurrence Sr(v, M ) Definition 4 describes the 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 communities to which all vertices belong change or modify in each round. Then, we define the co-appearance number 5r(v)

[0007] (According to vertex v) is to calculate the total number of vertices that co-occur with its corresponding vertex v. Definition 5 (Co-occurrence number): Co-occurrence number (v) in each vertex v er (a round r W The percentage of co-occurrence numbers (v) in different rounds may be different for each vertex v ∈ K, especially when there are anomalies. Therefore, the Co-appearance Number Ratio is defined to obtain the co-occurrence number passing through a certain vertex, based on the changes in all r rounds so far. Definition 6 (Co-appearance Number Ratio): For each v ∈ K, the co-appearance ratio of v with other vertices in round r ∈ (1, R] is calculated as follows:

[0008] (3) If a vertex V always co-occurs with a certain group of vertices in the same community in a round, it has a higher / larger RC and can be considered normal. However, for a specific round r, if vertex v suddenly becomes a member of another community, then vertex v should be regarded as an outlier or anomaly. Because this community may only contain a few (or no) vertices that co-occur with vertex v For example, it is compared with the outlier threshold value to determine whether vertex v is an outlier in round r. It is defined as follows in (1, R]: o r = (v er | Rc v , r <e} (4) The overall steps of the co-occurrence mining stage are described as follows. First, the outlier set Or is initialized to an empty set (in the K, calculate the co-occurrence number Sr(v) and co-occurrence ratio RC of each vertex v v , r(Pseudocode 1 line 5). And each vertex v, whose co-occurrence rate RC" is lower than the outlier threshold 0, is added to the outlier set (pseudo code 1, line 6). A higher outlier threshold will exclude many vertices that should be considered outliers, resulting in low detection accuracy. Preferably, for most data sets, the outlier threshold 0 is set to about 0.3. It is worth noting that since multivariate time series usually contain noise, the presence of (a few) outliers cannot reliably determine that a round is abnormal in some cases. Therefore, the following stages illustrate how to analyze outlier changes and mitigate the impact of noise. Stage 3: Variation analysis. A vertex in a time series graph can have two states in two consecutive rounds / sequences: (1) normal in both rounds, (2) outliers / outliers in both rounds, and (3) a transition between normal and outlier states. For example, as shown in Figure 5, vertex l and vertex c are both 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 / anomaly time, we focus on the transition state and further define the number of outlier variations n ro Definition 8 (Number of off-sample point variations): For a round r £(l,R], the number of off-sample point variations n r It can be defined as the number of vertices in transition state, that is, % = & or (("fixed 0 r-1 and ve 0 r ) or (v E 0 r-1 and vt 0 r )) o According to Definition 8, by comparing the outlier sets of two consecutive rounds or sequences, for example, the outlier sets corresponding to round r1 and round pb respectively r -i Referring to Definition 3, the sensor signal is judged to have an abnormal signal according to the number of outlier variation and the first threshold, such as the abnormal time threshold θ. For example, if the number of outlier variation is Anomaly Detection. Given a round r, after obtaining the number of outlier mutations V, it is necessary to determine whether the current round is abnormal. In one embodiment, based on Chebyshev's inequality, we obtain: Wherein, ˆ is a constant; ˆ and ˆ are the mean value and standard deviation of the number of outlier variations, respectively. As a preferred example, in order to accurately detect anomalies, the default setting is ˆ / z = 3. Therefore, the abnormal time threshold S is ˆ = 3c. The standard deviation c of the maximum number of outlier variations can be obtained according to the maximum value m of the standard deviation c. Wheel corpses are all abnormal. Therefore, whether a wheel has an abnormal signal can be determined based on the abnormal time threshold 4, the number of outlier variations 0 for the wheel corpse, and the average number of outlier variations. In one embodiment, the abnormal signal detection method used for anomaly detection can be described by the following pseudo code 2. Z is used to store anomalies, and each abnormal or affected sensor and abnormal wheel are stored separately using chang and . (Pseudo code 2, line 2). In one embodiment, for each wheel r E[\,R\, the method in pseudo code 1 is first called to perform outlier detection and obtain the outlier set O' and the number of outlier variations n. r (Pseudocode 2 line 6). Use N to store a series of outlier variation numbers n ro It is worth noting that b and b are two parameters that determine the abnormal time. If\n r-M If 3a is true, the current round is considered an anomaly, so r is added to Rz and Tz is updated to Or (pseudocode 2, line 8). If _ is not empty, this indicates the end of the current anomaly, and (_) is added to Z, reinitializing _ and _ to an empty set (pseudocode 2, line 11). Next, n is added to N (pseudocode 2, line 12), and _ and G are updated accordingly (pseudocode 2, line 13). The output is Z, which contains all detected anomalies (pseudocode 2, line 14). Using inequality 3b is more robust for processing noisy sensor signals / data. Since the noise level of a given machine is typically uniform, using _ can reduce the impact of noise and use 3b to distinguish actual anomalies from noisy data. In some embodiments, in order to avoid the discrepancy between # and b that may be obtained by only a few m, especially when r is small, a warm-up process is introduced using historical multivariate time series (pseudocode 2, lines 16-23) to obtain sufficient "." The input of the warm-up process is historical sensor signals from the same data source as T, such as historical multivariate time series. Through a process similar to anomaly detection, each round of The mean value M of the number of outlier variation and the quasi-deviation c of the number of outlier variation are used for subsequent anomaly detection. Pseudo code 2

[0009] Input: MTS T. Historical MTS T hzs , the sliding window is called the step size and the outlier threshold is

[0010] % N、 Call and # WarrYiUp(T^ ST w, &);

[0011] 2 Z ^-^ Vz ^-^ Rz ^r- 0; OQ — 0;

[0012] 3 R = (|T| one place)chuan + L

[0013] 4 for r = 1 to 7?. do The anomaly signal detection method disclosed herein can detect anomalies in sensor-based multivariate time series. Notably, the anomaly signal detection method can be extended to process streaming data. For example, when a new round of data arrives, this anomaly signal detection method can achieve real-time anomaly detection. Because anomaly signal detection is performed for each round, the detection process can proceed simultaneously with new data collection. As long as the execution time of each round of the anomaly signal detection method is less than the time period of a step, real-time anomaly detection is possible. Furthermore, during the anomaly detection process, by maintaining a series of 5, 6, 7, 8, 9, and 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 91, 92, 93, 94, Therefore, real-time detection can be applied to various industrial scenarios, such as server nodes, commercial servers, water supply networks, power sensors, and industrial assembly lines. Furthermore, this anomaly signal detection method can detect anomalies at an earlier stage. The main reason is that when an anomaly occurs, although sensors may not exhibit obvious abnormal behavior, the correlation between affected sensors is likely to change, allowing this method to capture this change. The evaluation of time series anomaly detection is typically based on point adjustment (PA). Referring to Figure 6, given a time series anomaly label, once a single time point is detected within the range, the anomaly is considered detected. It is then directly compared with the label value to calculate the value of 1. Because point-adjusted PA does not consider the time point at which the anomaly is first detected, it ignores the temporal order of anomaly detection and does not evaluate the temporal order of detection. To address the issues with point-adjusted PA, this paper proposes a new evaluation scheme, delay-point adjustment (DPA), to reflect the temporal order of anomaly detection. Compared to point-adjusted PA, delay-point adjustment (DPA) only adjusts the first true positive ( False negatives after a True Positive. In Figure 6, based on the same anomaly detection method Mi, using delay point adjustment DPA, the two false negatives in instrument / s and 4 are adjusted to true positives, while the two false negatives in 77 to cold remain unchanged. Therefore, the ratio is 72.7%. Compared with point adjustment PA, delay point adjustment DPA is a more stringent evaluation method, namely F'DPA WF'PA. In addition, two relative evaluation methods are proposed: Ahead and Miss, for relative comparison of the detection results of the two methods. The abnormal detection method Mi is earlier than the abnormal detection method "(Ahead)", while lm, ss Abnormal detection method court 1 did not detect (Miss) but abnormal detection method court 2 detected No anomalies are missed. Therefore, Ahead ^ 50%, Miss = Q. Ideally, Ahead = 100% and Miss = 0. Experiments evaluate the performance of our anomaly detection method (CAD) compared to other methods. These methods are applied to each time series, and the average of the anomaly scores is output. Other methods include three data mining-based methods: LOF, ECOD, and TForest; two deep learning methods: USAD and RCoders; and four variable methods: S2G, SAND, its online version SAND*, and NormA. We used sensor datasets with labeled information: PSM, SWaT, and SMD, as well as two private industry datasets: IS-1 and IS-2o. The SMD dataset consists of 28 different subsets, and the methods were evaluated directly on each subset without pre-warming. Table II summarizes the statistics for the eight datasets. Table III shows the anomaly detection results on the sensor datasets of PSM, SWaT, IS-1 and IS-2, where the standard deviation (S0) is the R4 and F1 of the data repeated 10 times. DPA Since the results of the proposed method CAD, LOF, ECOD, and S2G do not change with different repetitions, the corresponding standard deviations are 0. As shown in Table III, the proposed method CAD outperforms all baselines of IS-1 and achieves the highest average ranking of FM and FIDPA. Table IV shows the results of the SMD dataset. The proposed 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 the LOF, ECOD, and IForest methods. Table II Statistics of the eight sensor datasets

[0014] CAD 95*0 89.7 83.8 78.2

[0015] LOF 76,2 7:L4 80.1 74.1

[0016] ECOD 87.1 80.5 84.0 77.6

[0017] IForest 91,4±0.9 85.7 ± 1.7 84.9 ± 0.5 76.9 ± 0.4

[0018] USAD ± (17 76J?> ± 1 80.3 i 0.3 7:L5 ± 2.4

[0019] RCocte 94.2 ± 1.1 90.6 ± 1.2 81.9 ± 1.0 76.3 ± 1.2

[0020] S2G 93.6 85.0 84.9 Flower, U

[0021] SAND 85.7±0.6 73.5 ± 2.4 80.5 ± 4.2 60. G ± 3.2

[0022] SAND" -®.O i L6 72.8 ± 1.3 8(). D ± 0.0 77.8 ± 0.8

[0023] NormA 85.7 i (12 76.7 ± 0.6 80.4 ± 0.6 75.2 ± 1.3 , average

[0024] CAD lOD.O 97.4 98.2 91.1 1>6

[0025] LOF 100.0 83.8 99.9 70.3 6.1

[0026] ECOD 99.9 <)7.3 71.1 64.0 4.3 iForest 99.1 ± 1.3 94.4 ± 2.4 71.3 i 22 67.3 ± 1.9 3.9

[0027] USAD 99.8±0.0 84.0±0.0 82.6 i (L0 60.2 ± 0.0 6.3

[0028] RCoders 99.4 i 0.8 89.8 ± 4.9 64.6 i 2.3 62.4 ± 1.9 4.6

[0029] S2G 95.3 85.9 72;7 67.9:18

[0030] SAND 78.6 ± 4.3 67.2 i 2.3 68.7 ± 2 / 7 50.5 ± 0.7 8.6

[0031] SAND* 93.2 i 2.() 87.5 ± 2.6 6L5 ± 1.2 5U ± 1,0 7.6

[0032] NormA 95.3 ± 1.5 82.2 ± 11 55,5 ± Ch3 52.3 ± 0,1 7:8 Table IV Abnormal time and abnormal sensor detection on SMD

[0033] (OP is the number of subsets where CAD outperforms this method among the 28 subsets)

[0034] CAD 80.7 ^ 14.4 71.7 ^ 15.9

[0035] LOF 16 75.0±24.4 13 65.5±26.0 /

[0036] ECOD 14 83.0 ± 14.5 12 73.2 ± 16.8 28

[0037] 1 Forest 7 86.5 ± 13.7 8 76.5 ± 18.4 /

[0038] USAD 20 75.3 ± 18.4 17 6 ​​(15 ± 20.7 /

[0039] R Coders 21 75.3±17.4 19 63.6±20.2 28

[0040] S2G 25 64.0 ± 21.4 23 52.5 ± 21.4 /

[0041] SAND 26 45,3 ± 30.3 26 33.5 ± 25.7 /

[0042] SAND" 26 51.1 ± 28.8 24 38.7 ± 25.8 /

[0043] NormA 25 55.3 ± 29.3 26 42.6 ± 26.5 / When the number of sensors increases, for example, from IS-1 to IS-2, the results of some methods (such as LOF and USAD) degrade significantly under delayed point-adjusted DPA. This is partly due to the fact that multivariate time series with more sensors typically contain more complex relationships and contain more noise. The performance of the four univariate methods all degrades significantly under both point-adjusted PA and delayed point-adjusted DPA. This suggests that simply extending these methods to multivariate time series may be ineffective. Because most baseline methods detect outliers based on certain assumptions, they may become unstable and more sensitive to noise. In contrast, our CAD method detects anomalies based on unusual correlated changes between sensors through a series of time series plots, reducing noise and achieving greater stability. Table V shows the evaluation of ahead and missed detections. Compared to other methods, the CAD method described in this application achieves an advance of at least 50% (for the PSM and SWaT sensor datasets), while its miss rate remains below 50% (except for SAND). These results demonstrate that for all detected anomalies, our CAD method detects them at least half before other methods do; and for those anomalies missed by our CAD method, other methods can detect up to half. Referring to Figure 7, our CAD method outperforms other methods across all 28 subsets of the SMD dataset. Compared to other methods, our CAD method achieves an advance of >50% for most subsets of the SMD dataset. o , and more than half of the subsets obtained Miss < 50%, thus verifying that this method can detect abnormal time as early as possible and almost no omissions. Table V Evaluation of Ahead and Miss

[0044] CAD w PSM SWaT IS-1 IS-2 Other methods Ah Ms Ah Ms Ah .Ms Ah Ms

[0045] LOF 60.0 40.4 100.0 0.D 106.0 OX) 77.8 CLO

[0046] ECOD 73.3 19.3 100.0^ 35.3 100 0 0.0 66.7 0.0

[0047] 1 Forest 50.0 40.4 100. Q 37.9 10G.0 DO 36 / 7 0.0

[0048] USAD 66.4 17,5 100.0 9.7 100.0 0.0 77.8 0.0

[0049] RCoders 64 / 7 31.8 100.0 13.5 100.0 0.0 43.3 0.0

[0050] S2G 73.3 12.3 100.0 31.2 10Q.0 0.0 100,0 0.Q

[0051] SAND 96.0 8.2 100.Q 59.1 1QG.0 100.0 0X)

[0052] SAND^ 86.7 12.8 100.0 4.7 1OD.0 0.0 100.0 0.0

[0053] NormA 82.0 19.5 100. Q 15.7 WO.O DO 100.0 0.0 This CAD method not only detects abnormal events but also reveals abnormal sensors. The last column of Table IV shows the abnormal sensor detection results on the SMD. It is observed that this CAD method outperforms the ECO D and RCoders methods by a ratio of 28 / 28, which are the only two baseline methods that can detect abnormal sensors. Based on the sensor datasets IS-1 and IS-2, this CAD method also outperforms the ECO D and RCoders methods, with a F\ sen The error rate exceeds 60%. Therefore, at least half of the normal sensors can be eliminated, significantly reducing the burden on operators performing predictive maintenance. Table VI shows the detection time per round (TPR) for this CAD method. To detect anomalies in real time, the TPR should be less than the time corresponding to the step size s, that is, TPR < s, where t is the sensor sampling frequency. Therefore, t = s / TPR Hz. Based on the results listed in Table VI, this CAD method can support real-time anomaly detection. Specifically, the maximum frequencies supported by this method on SWaT and IS-2 are approximately 43 kHz and 331 Hz, respectively, which are significantly greater than the corresponding actual sampling frequencies of 1 Hz and 1 / 900 Hz.

[0054] IFarest 1.5 11.3 0.5 4.3

[0055] USAD 0.6 3.1 0.2 OS 0.2

[0056] RCoders 1忑 11,0 111 47,0 (K6

[0057] S2G 6,4 34,3 D,9 2,8 1.9

[0058] SAND 12.7 20,3 3.8 5,0 4.6

[0059] SAND* 7.9 21.7 1.7 夜 2 3.2

[0060] It should be noted that there are some unclear or seemingly incorrect notations in the original text such as "1忑", "夜 2", etc. which might need further clarification in the source context for a more accurate translation.NorniA 8.6 105.5 1.3 4,6 3.2 Referring to Figure 8, we run our proposed CAD method on a large real-world labeled dataset (i.e., IS-1-IS-5) to perform anomaly detection by increasing the number of sensors. The left side of Figure 8 shows the results of anomaly time detection. Even though the IS-5 dataset contains over a thousand sensors, this method still ensures anomaly detection accuracy of Fl DPA > 85%. The right side of Figure 8 shows the TPR per round of anomaly detection on IS-1 to IS-5, demonstrating that this method CAD is scalable to a large number of sensors. As long as the TPR per round is less than one step (as in the case of IS-1-IS-5), real-time anomaly detection can be achieved. Figure 9 shows the time series of some sensors in the SMD subset SMD 1-6, covering the abnormal time period of the second anomaly, indicating the sensors affected by the anomaly. When the anomaly occurs, the time series of the abnormal sensors (for example, sensors 2-4, 9, 12, and 13) are (very) different from those of the previous sensors, while the normal sensors (for example, sensors 19-21) maintain their original trends and are not affected by the anomaly. Sensors 2-4 initially behave similarly to sensors 9, 12, and 13, resulting in strong correlation. When the anomaly occurs, some time series change, and sensors 2-4 change. is no longer associated with sensors 9, 12, and 13. Because this CAD method uses edges in the time series graph to represent strong correlations between sensors, abnormal changes in certain sensors are immediately reflected by edge changes. Therefore, abnormal sensors can be reported early and accurately. However, in the initial stages of such an anomaly, the time series changes may be negligible, so other methods based solely on specific rules may not detect it early enough. Furthermore, the first row of Figure 9 shows the time points at which each method detected this anomaly. This shows that this method can detect an anomaly immediately upon its occurrence, making it suitable for real-world industrial environments and preventing the spread of faulty components to other adjacent components over time due to untimely maintenance. As used herein, unless otherwise expressly stated, the singular "a" and "an" are intended to include the plural "one or more." The foregoing presents the present disclosure for purposes of illustration and description and is not intended to be exhaustive or limiting. Many modifications and variations will be apparent to those skilled in the art. The exemplary embodiments are chosen and described to explain the principles and practical applications and to enable those skilled in the art to understand the various embodiments of the disclosure with various modifications suitable for the specific intended use.Therefore, although illustrative example embodiments are described herein with reference to the accompanying drawings, it should be understood that this 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

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 on the time series; converting each of the sub-matrices into a corresponding k-nearest neighbor graph, wherein each of the k-nearest neighbor graphs comprises 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 non-intersecting graphs; obtaining the number of outlier variation by comparing two consecutive k-nearest neighbor graphs, wherein the number of outlier variation corresponds to the number of outliers, and the outliers are respectively 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.

2. The method according to claim 1, characterized in that: The method further includes determining that the sensor signal is abnormal in response to when the outlier variation amount is 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, the co-occurrence number and the corresponding co-occurrence rate of each vertex are obtained; and each vertex whose co-occurrence rate is lower than a second threshold is added as an outlier. set.

5. The method according to claim 4, characterized in that: The method further includes 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 a mean 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 the plurality of sensors, the computing device being configured to execute the methods of claims 1 to 9.

Citation Information

Patent Citations

  • Graph data processing method and device, computer equipment and storage medium

    CN112214499A

  • A video signal encoder, a video signal processor, a video signal distribution system and methods of operation therefor

    CN1926879A

  • Method and system for gesture recognition

    US20230014068A1