Sensor anomaly identification method, system and equipment and medium

By constructing the target spatio-temporal diagram in the oil and gas pipeline and combining it with the graph neural network model, the problem of sensor timing information and nonlinear correlation modeling is solved, the anomaly detection accuracy and system stability are improved, and the anomaly risk is reduced.

CN118709013APending Publication Date: 2024-09-27PIPECHINA SOUTH CHINA CO +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410837797.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively utilize sensor timing information for anomaly detection, and cannot model complex nonlinear relationships between sensors, resulting in loopholes and abnormal risks in the monitoring system.

Method used

Construct the target spatio-temporal graph in the oil and gas pipeline, and use the graph encoder and graph decoder models to combine the spatio-temporal graph data set and reconstructed error values ​​to identify sensor anomalies, consider the multi-dimensional correlation between sensor positions and data information, and generate alarm information.

Benefits of technology

It improves the accuracy of abnormality detection, enhances system stability and security, reduces abnormality risks, and realizes joint detection of sensor abnormality recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709013A
    Figure CN118709013A
Patent Text Reader

Abstract

The invention discloses a sensor anomaly identification method, system and device and a medium, and relates to the technical field of pipe network sensor anomaly detection, and the method comprises the steps: constructing a target time-space diagram corresponding to all sensors on any section of to-be-identified pipeline in an oil and gas pipeline; the target space-time diagram is input into a trained sensor anomaly recognition model, a recognition result is obtained, alarm information is generated according to the recognition result, and the trained sensor anomaly recognition model comprises a diagram encoder and a diagram decoder; and training the sensor anomaly recognition model through the space-time diagram data set and the reconstruction error value to obtain a trained sensor anomaly recognition model. According to the method, the target time-space diagram for the sensor is constructed, the purpose of joint anomaly detection is achieved, anomaly recognition is carried out in a multi-dimension, namely, multi-source data fusion mode, the anomaly detection precision is effectively improved, the system operation stability can be further effectively improved, and the anomaly risk is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the widespread application of sensors and IoT devices in various fields such as petrochemicals, smart factories, and equipment monitoring, the speed of data generation is growing exponentially. Since these data are time-series, highly complex, and high-dimensional, they pose a huge challenge to human monitoring. At the same time, the sensors themselves may also be affected by network attacks or failures, resulting in monitoring loopholes. Therefore, an automated method is needed to ensure the safe and stable operation of the system.

[0003] Early researchers designed unsupervised methods based on density or distance to replace manual anomaly monitoring. However, such methods can only detect anomalies based on the current readings of sensors, without considering time series information, and have great limitations. With the advent of the era of deep learning, people began to study anomaly detection methods based on RNN or LSTM. However, these methods cannot model the complex nonlinear relationships between sensors in the system. In recent years, people have begun to try to use graph neural network-based methods to model the relationships between sensors, but such methods generally only perform anomaly detection based on the reconstruction or prediction of nodes, ignoring the full graph information of the sensor network. Summary of the invention

[0004] The technical problem to be solved by the present invention is to address the deficiencies of the prior art and specifically provide a sensor abnormality identification method, system, device and medium, as follows:

[0005] 1) In the first aspect, the present invention provides a sensor anomaly recognition method based on spatiotemporal association of multi-source data, and the specific technical solution is as follows:

[0006] Construct a target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline, wherein the target spatiotemporal graph is constructed with the short sequences corresponding to each sensor in the same time period as nodes and the spatial physical connection relationship between any two sensors as edges, wherein the short sequences corresponding to each sensor in the same time period are: sequences obtained by segmenting the time series data corresponding to each sensor in the preset time period;

[0007] The target spatiotemporal graph is input into a trained sensor anomaly recognition model to obtain a recognition result, and an alarm message is generated according to the recognition result. The trained sensor anomaly recognition model includes a graph encoder and a graph decoder. The sensor anomaly recognition model is trained by using a spatiotemporal graph data set and a reconstructed error value to obtain a trained sensor anomaly recognition model.

[0008] The beneficial effects of the sensor anomaly recognition method based on spatiotemporal association of multi-source data provided by the present invention are as follows:

[0009] By constructing a target spatiotemporal graph for the sensor, the purpose of joint anomaly detection is achieved. That is, the location information of the sensor is taken into account while the data information collected by the sensor. Anomaly identification is performed by fusing multi-dimensional or multi-source data, which effectively improves the accuracy of anomaly detection. Furthermore, it can effectively improve the stability of system operation and reduce the risk of anomalies.

[0010] Based on the above solution, the present invention can also be improved as follows.

[0011] Furthermore, the process of constructing the target space-time graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline is as follows:

[0012] Determine the window size and set step size of the sliding window, divide the time series data corresponding to each sensor in the preset time period according to the window size and the set step size to obtain the initial short sequence corresponding to each sensor, perform standardization preprocessing on the initial short sequence corresponding to each sensor to obtain the short sequence corresponding to each sensor, and construct the target space-time graph with the short sequence corresponding to each sensor in the same time period as a node and the spatial physical connection relationship between any two sensors as an edge.

[0013] Further, the process of determining the reconstruction error value is as follows:

[0014] The spatiotemporal graph embedding features corresponding to the spatiotemporal graph data set are determined by a graph encoder, and the spatiotemporal graph embedding features are input into a graph decoder for reconstruction to obtain a reconstruction error value corresponding to each sensor.

[0015] Furthermore, the process of determining the recognition result is as follows:

[0016] The target spatiotemporal graph embedding features corresponding to the target spatiotemporal graph are determined by the graph encoder, the global sensor network features corresponding to the target spatiotemporal graph embedding features are determined by the global graph pooling module of self-attention, the global anomaly score is calculated according to the global sensor network features, and the global anomaly score is used as the recognition result.

[0017] 2) In the second aspect, the present invention also provides a sensor anomaly recognition system based on spatiotemporal association of multi-source data, and the specific technical solution is as follows:

[0018] The construction module is used to: construct a target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline, wherein the target spatiotemporal graph is constructed with the short sequences corresponding to each sensor in the same time period as nodes and the spatial physical connection relationship between any two sensors as edges, wherein the short sequences corresponding to each sensor in the same time period are sequences obtained by segmenting the time series data corresponding to each sensor in the preset time period;

[0019] The recognition module is used to: input the target spatiotemporal graph into a trained sensor anomaly recognition model to obtain a recognition result, and generate alarm information according to the recognition result. The trained sensor anomaly recognition model includes a graph encoder and a graph decoder. The sensor anomaly recognition model is trained by a spatiotemporal graph data set and a reconstructed error value to obtain a trained sensor anomaly recognition model.

[0020] Based on the above solution, the present invention can also be improved as follows.

[0021] Furthermore, the process of constructing the target space-time graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline is as follows:

[0022] Determine the window size and set step size of the sliding window, divide the time series data corresponding to each sensor in the preset time period according to the window size and the set step size to obtain the initial short sequence corresponding to each sensor, perform standardization preprocessing on the initial short sequence corresponding to each sensor to obtain the short sequence corresponding to each sensor, and construct the target space-time graph with the short sequence corresponding to each sensor in the same time period as a node and the spatial physical connection relationship between any two sensors as an edge.

[0023] Further, the process of determining the reconstruction error value is as follows:

[0024] The spatiotemporal graph embedding features corresponding to the spatiotemporal graph data set are determined by a graph encoder, and the spatiotemporal graph embedding features are input into a graph decoder for reconstruction to obtain a reconstruction error value corresponding to each sensor.

[0025] Furthermore, the process of determining the recognition result is as follows:

[0026] The target spatiotemporal graph embedding features corresponding to the target spatiotemporal graph are determined by the graph encoder, the global sensor network features corresponding to the target spatiotemporal graph embedding features are determined by the global graph pooling module of self-attention, the global anomaly score is calculated according to the global sensor network features, and the global anomaly score is used as the recognition result.

[0027] 3) In a third aspect, the present invention further provides an electronic device, comprising a processor, wherein the processor is coupled to a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the electronic device implements any of the above methods.

[0028] 4) In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor so that a computer implements any of the above methods.

[0029] It should be noted that the beneficial effects achieved by the technical solutions of the second to fourth aspects of the present invention and the corresponding possible implementation methods can be found in the above-mentioned technical effects of the first aspect and its corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0031] Figure 1 This is one of the flow charts of a sensor anomaly identification method based on spatiotemporal association of multi-source data according to an embodiment of the present invention;

[0032] Figure 2 This is a second flow chart of a sensor anomaly identification method based on spatiotemporal association of multi-source data according to an embodiment of the present invention;

[0033] Figure 3 A system framework diagram of a sensor anomaly recognition method based on spatiotemporal association of multi-source data according to an embodiment of the present invention;

[0034] Figure 4 The figure is a schematic structural diagram of an electronic device of the present invention. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0036] like Figure 1 as well as Figure 2 As shown, a sensor anomaly recognition method based on spatiotemporal association of multi-source data according to an embodiment of the present invention comprises the following steps:

[0037] S1, construct a target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline, wherein the target spatiotemporal graph is constructed with the short sequences corresponding to each sensor in the same time period as nodes and the spatial physical connection relationship between any two sensors as edges, wherein the short sequences corresponding to each sensor in the same time period are: sequences obtained by segmenting the time series data corresponding to each sensor in the preset time period;

[0038] S2, inputting the target spatiotemporal graph into a trained sensor anomaly recognition model to obtain a recognition result, and generating alarm information according to the recognition result, wherein the trained sensor anomaly recognition model includes a graph encoder and a graph decoder, and the sensor anomaly recognition model is trained by a spatiotemporal graph data set and a reconstructed error value to obtain a trained sensor anomaly recognition model.

[0039] The target space-time graph is constructed as follows:

[0040] Set the window size w and the step size, and use the sliding window to obtain short sequences of equal length in each sensor sequence, where the sensor sequence refers to the sequence composed of the data collected by each sensor in chronological order;

[0041] Each sensor time series is standardized and preprocessed. The standardization formula is z = (x i -μ) / σ, where μ represents the mean value of the data detected by the sensor in the time window, σ represents the variance of the data detected by the sensor in the time window, and x i It indicates that the sensor detects data within the time window, and z indicates the standardized result;

[0042] The short sequence of each sensor in the same period is used as the node feature, and the spatial physical connection relationship between sensors is used as the edge feature to construct a spatiotemporal graph.

[0043] The sensor anomaly recognition model includes a graph encoder and a graph decoder;

[0044] Among them: The graph encoder is composed of graph neural network layers, and the hidden layer dimension is

[0045] The graph decoder is composed of graph neural network layers, with the input dimension being the same as the output dimension of the graph encoder, and the output dimension being the same as the time window length;

[0046] The calculation formula of reconstruction error is: N is the total number of nodes (sensors), f' represents the average value of input data, and f i Represents input data.

[0047] The objective loss function for model training is:

[0048] Loss = l occ (f g )+l rec (f n )

[0049] where f g is the global fusion feature; f n Reconstruct features for nodes; occ (*) represents the single classification loss, the specific formula is: occ (f) = Err occ (f); l rec (*) represents the reconstruction loss of node features, and the specific formula is l rec (f′,f)=Err rec (f′,f).

[0050] The embedded features are input into the self-attention based global graph pooling module to obtain the global sensor network features and calculate the global anomaly score.

[0051] The calculation steps of self-attention global pooling are:

[0052] First, concatenate the one-dimensional global average pooling feature F N , used to characterize global graph features

[0053]

[0054] Then the fusion embedding features between the node and the global features are calculated through the self-attention mechanism:

[0055] Q i =W Q ·n i , K i =W k ·n i , V i =W v ·n i

[0056]

[0057] F G = linear(z)

[0058] in represents the feature of the i-th node. When i=0, it represents the global average graph feature, i∈{0,1,2,…,N}; Q, K and V represent Query, Key and Value respectively, and W Q , W k and W v Denote the learnable parameters corresponding to Q, K and V respectively; d k Indicates the dimension of K; linear(*) fully connected linear layer, Q i , K i and V i They represent the eigenvalues ​​corresponding to Q, K and V respectively, and w ij , z i and F G They represent the fused embedded features corresponding to Q, K and V respectively.

[0059] The global anomaly score uses a method based on a single-class support vector machine, and the calculation formula is: Err occ (f) = ||fc||2, f is the data feature, c is the feature center.

[0060] After the model training is completed, you need to manually set the global anomaly threshold and the local sensor anomaly threshold according to the actual operation of the system.

[0061] The beneficial effects of the sensor anomaly recognition method based on spatiotemporal association of multi-source data provided by the present invention are as follows:

[0062] By constructing a target spatiotemporal graph for the sensor, the purpose of joint anomaly detection is achieved. That is, the location information of the sensor is taken into account while the data information collected by the sensor. Anomaly identification is performed by fusing multi-dimensional or multi-source data, which effectively improves the accuracy of anomaly detection. Furthermore, it can effectively improve the stability of system operation and reduce the risk of anomalies.

[0063] In one embodiment of this solution, Figure 3 As shown, it includes: a data acquisition module: obtaining the time series data of all sensors of the monitored object and storing it;

[0064] Data preprocessing module: establish a real-time spatiotemporal graph based on real-time time series data or establish a spatiotemporal graph dataset based on historical time series data;

[0065] Model training and updating module: uses the spatiotemporal graph dataset to train and update the sensor anomaly recognition model;

[0066] Data analysis module: Use the sensor anomaly recognition model to infer the real-time spatiotemporal graph and analyze the inference results;

[0067] Early warning module: issues an alarm based on the early warning results of the data analysis module;

[0068] Database storage module: stores the time series data collected by the data acquisition module, the sensor anomaly recognition model parameters trained by the model training and updating model, the anomaly recognition results of the data analysis module, and the alarm information of the early warning module.

[0069] Furthermore, the process of constructing the target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline is as follows:

[0070] Determine the window size and set step size of the sliding window, divide the time series data corresponding to each sensor in the preset time period according to the window size and the set step size to obtain the initial short sequence corresponding to each sensor, perform standardization preprocessing on the initial short sequence corresponding to each sensor to obtain the short sequence corresponding to each sensor, and construct the target space-time graph with the short sequence corresponding to each sensor in the same time period as a node and the spatial physical connection relationship between any two sensors as an edge.

[0071] Further, the process of determining the reconstruction error value is as follows:

[0072] The spatiotemporal graph embedding features corresponding to the spatiotemporal graph data set are determined by a graph encoder, and the spatiotemporal graph embedding features are input into a graph decoder for reconstruction to obtain a reconstruction error value corresponding to each sensor.

[0073] Furthermore, the process of determining the recognition result is as follows:

[0074] The target spatiotemporal graph embedding features corresponding to the target spatiotemporal graph are determined by the graph encoder, the global sensor network features corresponding to the target spatiotemporal graph embedding features are determined by the global graph pooling module of self-attention, the global anomaly score is calculated according to the global sensor network features, and the global anomaly score is used as the recognition result.

[0075] The present invention also provides a sensor anomaly recognition system based on spatiotemporal association of multi-source data, and the specific technical solution is as follows:

[0076] The construction module is used to: construct a target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline, wherein the target spatiotemporal graph is constructed with the short sequences corresponding to each sensor in the same time period as nodes and the spatial physical connection relationship between any two sensors as edges, wherein the short sequences corresponding to each sensor in the same time period are sequences obtained by segmenting the time series data corresponding to each sensor in the preset time period;

[0077] The recognition module is used to: input the target spatiotemporal graph into a trained sensor anomaly recognition model to obtain a recognition result, and generate alarm information according to the recognition result. The trained sensor anomaly recognition model includes a graph encoder and a graph decoder. The sensor anomaly recognition model is trained by a spatiotemporal graph data set and a reconstructed error value to obtain a trained sensor anomaly recognition model.

[0078] Furthermore, the process of constructing the target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline is as follows:

[0079] Determine the window size and set step size of the sliding window, divide the time series data corresponding to each sensor in the preset time period according to the window size and the set step size to obtain the initial short sequence corresponding to each sensor, perform standardization preprocessing on the initial short sequence corresponding to each sensor to obtain the short sequence corresponding to each sensor, and construct the target space-time graph with the short sequence corresponding to each sensor in the same time period as a node and the spatial physical connection relationship between any two sensors as an edge.

[0080] Further, the process of determining the reconstruction error value is as follows:

[0081] The spatiotemporal graph embedding features corresponding to the spatiotemporal graph data set are determined by a graph encoder, and the spatiotemporal graph embedding features are input into a graph decoder for reconstruction to obtain a reconstruction error value corresponding to each sensor.

[0082] Furthermore, the process of determining the recognition result is as follows:

[0083] The target spatiotemporal graph embedding features corresponding to the target spatiotemporal graph are determined by the graph encoder, the global sensor network features corresponding to the target spatiotemporal graph embedding features are determined by the global graph pooling module of self-attention, the global anomaly score is calculated according to the global sensor network features, and the global anomaly score is used as the recognition result.

[0084] In the above embodiments, although the steps are numbered S1, S2, etc., these are only specific embodiments given by the present invention. Those skilled in the art may adjust the execution order of S1, S2, etc. according to actual conditions, which is also within the protection scope of the present invention. It can be understood that in some embodiments, some or all of the above embodiments may be included.

[0085] It should be noted that the beneficial effects of the sensor anomaly identification system based on spatiotemporal association of multi-source data provided by the above embodiment are the same as the beneficial effects of the sensor anomaly identification method based on spatiotemporal association of multi-source data, which will not be repeated here. In addition, when the system provided by the above embodiment realizes its functions, it only takes the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to actual conditions to complete all or part of the functions described above. In addition, the system and method embodiments provided by the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0086] like Figure 4 As shown, an electronic device 300 according to an embodiment of the present invention includes a processor 320, the processor 320 is coupled to a memory 310, and the memory 310 stores at least one computer program 330, and the at least one computer program 330 is loaded and executed by the processor 320, so that the electronic device 300 implements any of the above methods, specifically:

[0087] The electronic device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors 320 (Central Processing Units, CPU) and one or more memories 310, wherein the one or more memories 310 store at least one computer program 330, and the at least one computer program 330 is loaded and executed by the one or more processors 320, so that the electronic device 300 implements a sensor anomaly identification method based on spatiotemporal association of multi-source data provided in the above embodiment. Of course, the electronic device 300 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the electronic device 300 may also include other components for implementing device functions, which will not be repeated here.

[0088] A computer-readable storage medium according to an embodiment of the present invention stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements any one of the above methods.

[0089] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0090] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs any of the above methods.

[0091] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects and represent the definition of a specific order or sequence. The order of use of similar objects can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than the order shown or described.

[0092] Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present disclosure can be specifically implemented in the following forms, namely: it can be complete hardware, it can be complete software (including firmware, resident software, microcode, etc.), or it can be a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" herein. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium contains computer-readable program code.

[0093] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0094] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A sensor anomaly recognition method based on spatiotemporal correlation of multi-source data, characterized in that: include: Construct a target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline, wherein the target spatiotemporal graph is constructed with the short sequences corresponding to each sensor in the same time period as nodes and the spatial physical connection relationship between any two sensors as edges, wherein the short sequences corresponding to each sensor in the same time period are: sequences obtained by segmenting the time series data corresponding to each sensor in the preset time period; The target spatiotemporal graph is input into a trained sensor anomaly recognition model to obtain a recognition result, and an alarm message is generated according to the recognition result. The trained sensor anomaly recognition model includes a graph encoder and a graph decoder. The sensor anomaly recognition model is trained by using a spatiotemporal graph data set and a reconstructed error value to obtain a trained sensor anomaly recognition model.

2. According to claim 1, a sensor anomaly identification method based on spatiotemporal association of multi-source data is characterized in that: The process of constructing the target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline is as follows: Determine the window size and set step size of the sliding window, divide the time series data corresponding to each sensor in the preset time period according to the window size and the set step size to obtain the initial short sequence corresponding to each sensor, perform standardization preprocessing on the initial short sequence corresponding to each sensor to obtain the short sequence corresponding to each sensor, and construct the target space-time graph with the short sequence corresponding to each sensor in the same time period as a node and the spatial physical connection relationship between any two sensors as an edge.

3. The sensor anomaly identification method based on spatiotemporal association of multi-source data according to claim 1 is characterized in that: The process of determining the reconstruction error value is as follows: The spatiotemporal graph embedding features corresponding to the spatiotemporal graph data set are determined by a graph encoder, and the spatiotemporal graph embedding features are input into a graph decoder for reconstruction to obtain a reconstruction error value corresponding to each sensor.

4. The sensor anomaly identification method based on spatiotemporal association of multi-source data according to claim 1 is characterized in that: The process of determining the recognition result is as follows: The target spatiotemporal graph embedding features corresponding to the target spatiotemporal graph are determined by the graph encoder, the global sensor network features corresponding to the target spatiotemporal graph embedding features are determined by the global graph pooling module of self-attention, the global anomaly score is calculated according to the global sensor network features, and the global anomaly score is used as the recognition result.

5. A sensor anomaly recognition system based on spatiotemporal correlation of multi-source data, characterized in that: include: The construction module is used to: construct a target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline, wherein the target spatiotemporal graph is constructed with the short sequences corresponding to each sensor in the same time period as nodes and the spatial physical connection relationship between any two sensors as edges, wherein the short sequences corresponding to each sensor in the same time period are sequences obtained by segmenting the time series data corresponding to each sensor in the preset time period; The recognition module is used to: input the target spatiotemporal graph into a trained sensor anomaly recognition model to obtain a recognition result, and generate alarm information according to the recognition result. The trained sensor anomaly recognition model includes a graph encoder and a graph decoder. The sensor anomaly recognition model is trained by a spatiotemporal graph data set and a reconstructed error value to obtain a trained sensor anomaly recognition model.

6. The sensor anomaly recognition system based on spatiotemporal association of multi-source data according to claim 5 is characterized in that: The process of constructing the target spatiotemporal graph corresponding to all sensors on any section of the pipeline to be identified in the oil and gas pipeline is as follows: Determine the window size and set step size of the sliding window, divide the time series data corresponding to each sensor in the preset time period according to the window size and the set step size to obtain the initial short sequence corresponding to each sensor, perform standardization preprocessing on the initial short sequence corresponding to each sensor to obtain the short sequence corresponding to each sensor, and construct the target space-time graph with the short sequence corresponding to each sensor in the same time period as a node and the spatial physical connection relationship between any two sensors as an edge.

7. The sensor anomaly recognition system based on spatiotemporal association of multi-source data according to claim 5 is characterized in that: The process of determining the reconstruction error value is as follows: The spatiotemporal graph embedding features corresponding to the spatiotemporal graph data set are determined by a graph encoder, and the spatiotemporal graph embedding features are input into a graph decoder for reconstruction to obtain a reconstruction error value corresponding to each sensor.

8. The sensor anomaly recognition system based on spatiotemporal association of multi-source data according to claim 5 is characterized in that: The process of determining the recognition result is as follows: The target spatiotemporal graph embedding features corresponding to the target spatiotemporal graph are determined by the graph encoder, the global sensor network features corresponding to the target spatiotemporal graph embedding features are determined by the global graph pooling module of self-attention, the global anomaly score is calculated according to the global sensor network features, and the global anomaly score is used as the recognition result.

9. An electronic device, characterized in that: The electronic device comprises a processor, the processor is coupled to a memory, at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the electronic device implements the method according to any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Power equipment system anomaly detection method based on spatial-temporal feature segmentation and reconstruction

    CN115293280A

  • Multi-sensor data anomaly detection method and device based on spatio-temporal information fusion

    CN117540333A