Chemical equipment operation security situation analysis method based on space-time diagram neural network
Through the method based on the spatio-time graph neural network, the chemical equipment status is monitored and evaluated in real time, and the problems of lag and inaccurate analysis results in the existing technology are solved, and the equipment status is accurately monitored and early warning during chemical production is achieved, which improves safety and efficiency.
Patent Information
- Application Number
- CN202410859549.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-22
AI Technical Summary
The existing chemical equipment operating situation analysis methods rely on the monitoring system based on rules and manual experience, resulting in lagging and inaccurate analysis results, and it is difficult to capture subtle changes in equipment status and predict future working status, affecting safety and efficiency.
Using a method based on the spatiotemporal graph neural network, through sensor data acquisition, preprocessing, time and space correlation analysis, status prediction and early warning feedback, the operating status of chemical equipment is monitored and evaluated in real time, and the chemical production correlation diagram structure is constructed, and the space-time correlation is extracted. Information, predict future numerical changes in equipment, and realize advanced prediction and stability evaluation of equipment abnormalities.
Real-time and accurate monitoring and early warning of equipment status during chemical production process has been achieved, the safety and efficiency of chemical production has been improved, and the safety and economic benefits of equipment operation have been significantly improved.
Smart Images

Figure CN119005728A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a chemical equipment operation safety situation analysis, and in particular to a chemical equipment operation safety situation analysis method based on a spatiotemporal graph neural network. Background Art
[0002] With the rapid development of the chemical industry, the current serious and major accidents in the chemical industry are still generally frequent, and production safety work is still in a critical period of climbing over hurdles and overcoming difficulties. Ensuring the stable operation of various key equipment in the chemical production process and realizing advance warning of abnormal operation of chemical production is crucial to ensuring production safety, improving production efficiency and improving product quality. The current analysis method of chemical equipment operation status mainly relies on rule-based monitoring systems and manual experience judgment. On the one hand, this dependence will produce lag; on the other hand, it will also make the analysis results susceptible to the limitations of personal knowledge level and experience, thus affecting the accuracy and objectivity of the analysis. Secondly, the current method of abnormal alarm of chemical equipment mainly relies on a single real-time monitoring data source for over-threshold judgment, without accurate prediction of the trend of monitoring parameters under current working conditions, and without analyzing the spatial and temporal interaction between upstream and downstream related equipment in the process. In addition, there are obvious limitations in processing complex industrial data, real-time monitoring and predicting equipment failures. Especially when processing large-scale, high-dimensional and dynamically changing industrial data, traditional methods are difficult to capture subtle changes in equipment status and predict the future working status of equipment. This also leads to inaccuracy in equipment abnormality identification and safety risk prevention and control. Therefore, there is an urgent need to develop a new method for analyzing the safety situation of chemical equipment operation, to perceive the risk situation of chemical production equipment and chemical production devices in real time, to promptly and accurately discover and eliminate potential safety hazards, to prevent and control major safety risks, and thus improve the safety level and economic benefits of chemical production. Summary of the invention
[0003] The purpose of the present invention is to provide a chemical equipment operation safety situation analysis method based on spatiotemporal graph neural network, aiming to predict and evaluate the operating status, operating trend and safety status of multiple equipment, so as to dynamically identify and evaluate potential risks in the chemical production process in real time.
[0004] The technical solution to achieve the purpose of the present invention is: a method for analyzing the operation safety situation of chemical equipment based on spatiotemporal graph neural network, comprising the following steps:
[0005] Step 1, data collection: Use different types of sensors to collect the operating data of various equipment on different indicators in the chemical production process. The types of sensors configured on each device include temperature sensors, pressure sensors, and flow sensors. These sensors are used to collect the operating data of various indicators of each device over a period of time.
[0006] Step 2, data preprocessing: Arrange the operating data of all sensors along the time dimension at the same time interval into a time series input vector that is aligned and unified for different sensors, interpolate the missing values of the time series input vector, and use normalization based on the maximum and minimum values to obtain a standardized time series input vector that describes the value changes of each sensor;
[0007] Step 3, time and space correlation analysis: The standardized time series input vectors of each sensor are processed by a sensor time series feature miner based on a dilated convolutional layer to extract a time series feature vector sequence describing the time correlation of each sensor. At the same time, a learnable node embedding representation coding group is initialized for each sensor to construct feature coding describing different process links. Tensor multiplication is performed on the node embedding representation coding group describing the potential characteristics of the sensor and the feature coding describing the specific process link to obtain the node embedding representation coding of each sensor under the specific process link. The inner product of the embedding representation coding between different sensors under the specific process link is calculated to construct a chemical production association graph structure describing the relationship between each sensor under the specific process. The sensor time series feature vector sequence and the chemical production association graph structure are processed by a sensor spatial feature miner based on a graph neural network to obtain a representation vector sequence containing time and space correlation information.
[0008] Step 4, state prediction: the representation vector sequence containing the spatiotemporal correlation information of each sensor is directly used to predict the value change of each sensor in the future through feature transformation;
[0009] Step 5, early warning and feedback: Determine the early warning information of the equipment to which it belongs based on the prediction results of each sensor, realize the advance prediction of equipment operation abnormalities and stability assessment, and feed back the analysis results to operators and supervisors to guide the actual operation of chemical production.
[0010] Further, step 2, data preprocessing: arrange the operating data of all sensors along the time dimension at the same time interval into a time series input vector that is aligned and unified for different sensors, interpolate the missing values of the time series input vector, and use normalization based on the maximum and minimum values to obtain a standardized time series input vector that describes the value changes of each sensor, where:
[0011] The normalization calculation formula based on the maximum and minimum values is:
[0012]
[0013] Where min[X i,1 ,X i,2 ,…,X i,T ] and max[X i,1 ,Xi,2 ,…,X i,T ] represent X i,1 ,X i,2 ,…,X i,T The minimum and maximum values in norm(X i,: ) represents the standardized X i,: .
[0014] Further, step 3, time and space correlation analysis: the standardized time series input vectors of each sensor are processed by a sensor time series feature miner based on a dilated convolutional layer to extract a time series feature vector sequence describing the time correlation of each sensor, and at the same time, a learnable node embedding representation coding group is initialized for each sensor to construct feature coding describing different process links, and tensor multiplication is performed on the node embedding representation coding group describing the potential characteristics of the sensor and the feature coding describing the specific process link to obtain the node embedding representation coding of each sensor under the specific process link, and the inner product of the embedding representation coding between different sensors under the specific process link is calculated to construct a chemical production association graph structure describing the relationship between each sensor under the specific process; the sensor time series feature vector sequence and the chemical production association graph structure are processed by a sensor spatial feature miner based on a graph neural network to obtain a representation vector sequence containing time and space correlation information, wherein:
[0015] The standardized time series input vectors of each sensor are processed by the sensor time series feature miner based on the dilated convolution layer to extract the time series feature vector sequence describing the time correlation of each sensor. Specifically, the following operations are performed:
[0016] A dilated convolution operation is performed on the standardized time series input vector of each sensor to obtain the corresponding convolution feature representation; the obtained convolution feature representation is nonlinearly activated to obtain a new sequence of time series feature vectors describing each sensor;
[0017] Select the standardized time series input vector of length T recorded by the i-th sensor and express it as Before performing the dilated convolution operation, first i,: Perform feature transformation to convert it into a time series vector of the i-th sensor with feature dimension F The specific operation method is:
[0018]
[0019] in is the feature transformation matrix, which is transformed by the input X i,: Right multiply the feature transformation matrix W0 to obtain the i-th sensor time series vector with feature dimension F The values in the feature transformation matrix are all randomly initialized learnable parameters;
[0020] For the time series vector obtained after feature transformation of the i-th sensor The convolution kernel of size K is used to represent the t-th position. Perform hole convolution and perform nonlinear activation on it. The specific formula is as follows:
[0021]
[0022] Where d is the dilation rate, k is the index offset of the convolution kernel element, w is the convolution kernel, and tanh(·) is the nonlinear activation function used for the dilated convolution operation, which aims to compress the values of the time series feature vector sequence into the interval (-1,1). It represents the representation of the time series feature vector sequence at time t after a dilated convolution and nonlinear activation operation;
[0023] Initialize a learnable node embedding representation coding group for each sensor to fully learn the potential characteristics of each sensor; construct feature codes describing different process links in view of the fact that each device has different associations when executing different process links on the same production line; perform tensor multiplication on the node embedding representation coding group describing the potential characteristics of the sensor and the feature code describing the specific process link to obtain the node embedding representation coding describing each sensor under the specific process link; calculate the inner product of the embedding representation coding between different sensors under the specific process link, and construct a chemical production association graph structure describing the relationship between each sensor under the specific process. Specifically, perform the following operations:
[0024] Different nodes are used to correspond to the sensors equipped by the monitored equipment in the production line, and a set of learnable node embedding representation coding groups are initialized for each sensor to fully represent the potential characteristics of the sensor; for the chemical production link containing N sensors, different nodes are used to correspond to different sensors on the production line, and a set of learnable node embedding representation coding groups ε are initialized for each device as follows:
[0025] ε=[E (1) ,E (2) ,…,E (P) ]
[0026] The node code group contains P groups of codes, among which Indicates the node code of the pth group of N devices on the production line. is the embedding representation of the feature dimension F of the i-th node;
[0027] Set the feature code that describes the production line in different process links, and produce the interaction relationship of each node in a specific process link based on the code. By multiplying the learnable node embedding representation code group and the feature code that describes the specific process link, the node embedding representation code corresponding to each node in the specific process link is obtained; for a production line containing K groups of process links, set K groups of P-dimensional fixed codes And construct the feature codes describing different process links through feature transformation. The specific operations are as follows:
[0028]
[0029] in is the feature code obtained for the k-th process link, W u ∈R P×P It is a learnable feature transformation matrix, and then calculates the embedded representation code of each node of the production line under the k-th process link. The specific calculation method is as follows:
[0030]
[0031] in The node embedding representation code of N equipment in the production line under the k-th process link;
[0032] By performing pairwise inner product calculations on the node embedding representation codes of different nodes, the correlation coefficient between any two nodes under a specific process is obtained, forming a sensor correlation adjacency matrix composed of multiple node correlation coefficients, that is, the chemical production correlation graph structure under a specific process link; for a chemical production line containing N equipment, when executing the k-th production link, the calculation method of the equipment correlation adjacency matrix is:
[0033]
[0034] Among them A (k) The adjacency matrix of the equipment association corresponding to the chemical production association graph structure under the k-th process link composed of N node association coefficients is represented, the softmax function is used to normalize the elements of each row in the matrix, and the ReLU function is used to remove the edges with poor association in the matrix;
[0035] The sensor's temporal feature vector sequence and the chemical production association graph structure are processed by the sensor spatial feature miner based on graph neural network to obtain a representation vector sequence containing spatiotemporal association information. Specifically, the following operations are performed:
[0036] The time series feature vector sequence of each sensor containing time correlation information and the chemical production association graph structure under the specific process link are taken as input, and a graph neural network model is used to obtain a representation vector sequence describing the time and space correlation information contained in each sensor of the chemical production line under the specific process link.
[0037] A method for analyzing the operating safety situation of chemical equipment based on a spatiotemporal graph neural network is implemented to realize the operating safety situation analysis of chemical equipment based on a spatiotemporal graph neural network.
[0038] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for analyzing the operation safety situation of chemical equipment based on a spatiotemporal graph neural network is implemented to realize the analysis of the operation safety situation of chemical equipment based on a spatiotemporal graph neural network.
[0039] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method for analyzing the operation safety situation of chemical equipment based on a spatiotemporal graph neural network is implemented to realize the analysis of the operation safety situation of chemical equipment based on a spatiotemporal graph neural network.
[0040] Compared with the prior art, the present invention has the following significant advantages: by modeling the production data correlation of multiple devices with upstream and downstream relationships, a joint safety situation analysis of multiple chemical production links is carried out, which can monitor the equipment status in the chemical production process in real time and accurately warn, thereby significantly improving the safety and efficiency of chemical production.
[0041] The present invention is further described in detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is a framework diagram of the chemical equipment situation analysis method based on the spatiotemporal graph neural network of the present invention.
[0043] Figure 2 This is an explanation of the composition of the module for learning the spatiotemporal characteristics of chemical equipment situations.
[0044] Figure 3 This is a flow chart of the chemical equipment operation safety situation analysis method based on spatiotemporal graph neural network.
[0045] Figure 4 To describe the sensor configuration of each device in the chemical production process
[0046] Figure 5 Heat map visualization of the adjacency matrix describing the association of sensors in each chemical equipment.
[0047] Figure 6 Equip chemical equipment with sensors for predicting the working status of the equipment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] like Figure 1 As shown, the chemical equipment situation analysis method based on spatiotemporal graph neural network involves a chemical production sensor data acquisition module 110, a sensor data interpolation and normalization module 120, a chemical equipment operation situation spatiotemporal feature learning module 130, a chemical production equipment working condition prediction module 140, and a chemical equipment early warning module 150. The specific process is as follows:
[0050] Step 1, Data Collection
[0051] The chemical production sensor data acquisition module 110 collects the value sequence of the sensor over a period of time by installing sensors on the monitored equipment. In one embodiment of the present invention, the sensor configuration of each device in a chemical production link is as follows: Figure 4 As shown, in this embodiment, the values of a total of 14 sensors on 5 monitored devices, namely R401, R402, R403, R404 and R407, are used for data collection. These sensors include the kettle pressure sensor PER401, the jacket pressure sensor PE401, and the temperature sensor TER401 on the sodium alcohol refining kettle R401; the kettle pressure sensor PER402, the jacket pressure sensor PE402, and the temperature sensor TER402 on the sodium alcohol refining kettle R402; the kettle pressure sensor PER404, the temperature sensor TER404, and the current sensor IER404 on the synthesis kettle R403; the kettle pressure sensor PER405, the temperature sensor TER405, and the current sensor IER405 on the synthesis kettle 404, and the kettle pressure sensor PER408 and the temperature sensor TER408 on the crude oil decolorization kettle R407. In this embodiment, the above sensors are numbered respectively, and the specific numbers are shown in Table 1:
[0052] Table 1 Sensor numbering table
[0053] Node 1 Node 2 Node 3 Node 4 Node 5 Node 6 Node 7 PER401 PE401 TER401 PER402 PE402 TER402 PER404 Node 8 Node 9 Node 10 Node 11 Node 12 Node 13 Node 14 TER404 IER404 PER405 TER405 IER405 PER408 TER408
[0054] Step 2: Data preprocessing
[0055] The sensor data interpolation and normalization module 120 arranges the collected sensor operation data along the time dimension at the same time interval into an aligned and unified time series input vector, and interpolates the missing values of the time series input vector. At the same time, the sensor data of different dimensions are normalized based on the maximum and minimum values to obtain a standardized time series input vector that describes the changes in the values of each sensor;
[0056] According to the time dimension, the numerical sequences of all sensors are arranged at the same time interval into an aligned and unified time series input vector, and the missing values are interpolated. Since these time series input quantities show dynamic changes in the time dimension, it shows that the characteristic changes of the equipment on different indicators are time-related. Therefore, in order to more effectively utilize the time series information of sensor data to capture the dynamic change trend of the sensor, it is necessary to arrange the values recorded by different sensors at the same time interval along the time dimension into an aligned and unified time series input vector. Since there may be occasional missing records when the sensor records the values, the linear interpolation method is used to fill in the missing values and deal with the misalignment of the time series input vector caused by missing records. For a production link that includes N sensors and has recorded T values, it can be used represents the obtained time series input vector of a total of N sensors at T moments, where represents the value recorded by the i-th sensor at a total of T moments, represents the values of all N sensors recorded at time t, Represents the value recorded by the i-th sensor at time t.
[0057] The sensor data of different dimensions are normalized based on the maximum and minimum values to obtain a standardized time series input vector that describes the value changes of each sensor. By normalizing the time series input vectors of different sensors based on the maximum and minimum values, the dimensional differences between different sensor data are eliminated, making these data comparable and facilitating subsequent feature extraction and association analysis. The calculation formula for the normalization based on the maximum and minimum values is:
[0058]
[0059] Where min[X i,1 ,X i,2 ,…,X i,T ] and max[X i,1 ,X i,2 ,…,X i,T ] represent X i,1 ,X i,2 ,…,X i,T The minimum and maximum values in norm(X i,:) represents the standardized X i,: In this embodiment, the original data and the standardized data of some sensors are shown in Table 2:
[0060]
[0061] Table 2
[0062] The maximum value of the original data of node 1 is 20, and the minimum value is -5; the maximum value of the original data of node 2 is 1, and the minimum value is 0; the maximum value of the original data of node 3 is 150, and the minimum value is -50. For the sake of simplicity, the following will directly use X i,: Indicates the standardized value record, that is, directly use Represents the normalized time series input vector for all sensors.
[0063] Step 3: Temporal and spatial correlation analysis
[0064] The spatiotemporal feature learning module 130 of the operation status of chemical equipment analyzes the time series features of each sensor and the spatial correlation between different sensors in a specific process link, thereby obtaining a representation vector sequence containing spatiotemporal correlation information of each sensor in a specific process link;
[0065] like Figure 2 As shown, the sensor time series feature mining module 131 processes the standardized time series input vector through a sensor time series feature miner based on a hole convolution layer to obtain a time series feature vector sequence of the sensor;
[0066] The sensor time series feature mining module 131 performs feature mining on the sensor's standardized time series input vector through a sensor time series feature miner based on a dilated convolutional layer, aiming to extract the local time series dynamic feature information of each device parameter in different time periods, and then obtain the sensor's time series feature vector sequence. It includes:
[0067] Each layer of the sensor time series feature miner based on the dilated convolution layer performs the following operations on the input data in the forward propagation of the layer: the input data is processed by dilated convolution to obtain the convolution feature representation; the obtained convolution feature representation is passed through a nonlinear activation function to obtain the time series feature vector sequence of the device. In the process of obtaining the time series feature vector sequence of each sensor, each layer in the time series feature miner uses shared parameters for different sensors to improve work efficiency.
[0068] It is worth noting that the dilated convolution, also known as the dilated convolution, is a special type of convolution operation that aims to expand the receptive field of the convolution kernel without increasing the number of parameters or the amount of computation. By inserting "holes" between the elements of the standard convolution kernel, the dilated convolution can cover a wider input area, thereby capturing a wider range of temporal information. When performing a dilated convolution operation, the elements within the convolution kernel are not tightly arranged, but are expanded by inserting a fixed number of spaces (i.e., "holes") between adjacent elements. This method controls the degree of expansion of the receptive field by adjusting the dilated rate, i.e., the size of the holes, without adding additional computational burden or parameters. When the dilated rate is 1, the dilated convolution is equivalent to the standard convolution. In the present invention, the dilated convolution is used in the spatiotemporal feature learning module of the operating status of chemical equipment, especially in the sensor temporal feature mining module. By utilizing the dilated convolution, temporal features with long-term dependencies can be effectively extracted from the operating data of the chemical equipment, which are crucial for understanding and predicting the working status of the equipment. Dilated convolutions enable the model to capture dependencies over longer time spans without significantly increasing the number of model parameters or computational complexity.
[0069] Select the standardized time series input vector of length T recorded by the i-th sensor and express it as Before performing the dilated convolution operation, first i,: Perform feature transformation to convert it into a time series vector of the i-th sensor with feature dimension F The specific operation method is:
[0070]
[0071] in is the feature transformation matrix, which is transformed by the input X i,: Right multiply the feature transformation matrix W0 to obtain the i-th sensor time series vector with feature dimension F In the present invention, the values in the feature transformation matrix are all randomly initialized learnable parameters. The convolution kernel of size K is used to represent the t-th position. Perform hole convolution and perform nonlinear activation on it. The specific formula is as follows:
[0072]
[0073] Wherein, d is the dilation rate, k is the index offset of the convolution kernel element, w is the convolution kernel, and tanh(·) is the nonlinear activation function used in the present invention for the dilated convolution operation, the purpose of which is to compress the values of the time series feature vector sequence within the interval (-1, 1), thereby making the neural network more stable during the training process. It represents the representation of the time series feature vector sequence at time t after a dilated convolution and nonlinear activation operation.
[0074] A graph structure coding module 132 is used to construct a chemical production association graph structure describing the relationship between each sensor under a specific process by embedding a node representation coding group describing the potential characteristics of each sensor and describing the characteristic coding of different process links;
[0075] The graph structure building coding module 132 is used to construct a chemical production association graph structure that describes the relationship between each sensor under a specific process by embedding a node representation coding group that describes the potential characteristics of each sensor and describing the characteristic coding of different process links. Considering that when the production line executes a specific process link, the process parameter transformations of different equipment are associated, for example, the reaction pressure of the reactor may be affected by multiple different equipment parameters such as the heat medium temperature of the heat exchanger and the feed rate of the feeding equipment. In other words, there is a correlation between the numerical changes of the sensors equipped with each device, and the numerical change of a certain sensor of any device may cause the numerical change of other sensors or sensors equipped with other devices. Therefore, in order to reveal the association relationship between different sensors and further analyze the interaction between different sensors in the chemical production process, in the technical solution of the present invention, the association between any two sensors in the entire set of chemical equipment or production line is further calculated to obtain a chemical production association graph structure that describes the relationship between each sensor in the chemical production process. Among them, the adjacency matrix of sensor association is composed of the association relationship numbers between multiple sensors to describe the chemical production association graph structure. In addition, for the same production line containing the same equipment, the association of each sensor is different when executing different process links. Therefore, for production lines containing the same equipment, it is necessary to construct a chemical production association graph structure that executes different process links. For a chemical production link containing N sensors, different nodes are used to correspond to different sensors on the production line, and a set of learnable node embedding representation encoding groups ε are initialized for each device:
[0076] ε=[E (1) ,E (2) ,…,E (P) ]
[0077] The coding group of the above node contains P groups of coding, among which Indicates the node code of the pth group of N devices on the production line. is the embedding representation of the feature dimension of the ith node with F. In the present invention, it is assumed that the node encoding group can learn various potential features describing each node in the production line, and these potential features will have different interactions in different process links, thereby forming a node embedding representation code in a specific process link. Therefore, for a production line containing K groups of process links, set K groups of P-dimensional fixed encoding And construct the feature codes describing different process links through feature transformation. The specific operations are as follows:
[0078]
[0079] in is the feature code obtained for the k-th process link, W u ∈R P×P is a learnable feature transformation matrix. Then, the embedded representation code of each node of the production line under the k-th process link can be calculated. The specific calculation method is as follows:
[0080]
[0081] in Represents the node embedding representation code of N devices in the production line under the k-th process link. Based on this, the node embedding representation code can be used to calculate the correlation coefficient between any two node codes under the k-th process link of the production line to obtain the device association adjacency matrix composed of multiple node association coefficients. (By performing pairwise inner product calculations on the node embedding representation codes of different nodes, the correlation coefficient between any two nodes under a specific process can be obtained, forming a sensor association adjacency matrix composed of multiple node association coefficients, that is, the chemical production association graph structure under a specific process link); For a chemical production line containing N devices, when executing the k-th production link, the calculation method of the device association adjacency matrix is:
[0082]
[0083] Among them A (k)The adjacency matrix of equipment associations corresponding to the chemical production association graph structure under the kth process link, which is composed of N node association coefficients, is represented. The softmax function is used to normalize the elements of each row in the matrix, and the ReLU function is used to remove the edges with poor association in the matrix. When the model is trained in this way, it is only necessary to save the node coding group ε of the production line in the first training model. When a new process link is introduced, it is only necessary to retrain the feature coding U corresponding to this type of process link to obtain the equipment association matrix for the process link. In this way, the present invention can greatly improve the training efficiency of the model of the production line in the process of learning different process links, so that the model has better versatility. In one embodiment of the present invention, the constructed chemical equipment association adjacency matrix is as follows Figure 4 shown.
[0084] The sensor space feature mining module 133 processes the sensor's temporal feature vector sequence and the chemical production association graph structure through a sensor space feature miner based on a graph neural network to obtain a representation vector sequence containing spatiotemporal association information.
[0085] The sensor space feature mining module 133 processes the sensor time series feature vector sequence and the chemical production association graph structure through a sensor space feature miner based on a graph neural network to obtain a representation vector sequence containing time-space association information. That is, the time series feature vector sequence of each sensor is used as the feature representation of the node, combined with the adjacency matrix corresponding to the chemical production association graph structure, and a graph convolution operation is performed to obtain a representation vector sequence containing time-space association information of each sensor in the chemical production line under a specific process link.
[0086] It is worth noting that graph convolution is the core operation in graph convolutional neural networks, which is used to perform convolution operations similar to those in convolutional neural networks on graph structured data. The core idea of graph neural networks is to learn the representation of nodes by passing and aggregating information on the nodes of the graph. The following are the basic steps of graph neural networks:
[0087] First, we represent a graph as a set of nodes and edges Where V is the node set, E is the edge set, and each node v i There is a feature representation X i , in the present invention, corresponds to each sensor feature vector in the sequence of the time series feature vector of the corresponding sensor. In order to represent the relationship between nodes in the graph, an adjacency matrix A can be constructed. When A ij ≠0 indicates that there is an edge connection between node i and node j, that is, node i and node j are neighbors. Given an adjacency matrix A and an input feature matrix Each row of X iRepresents the feature vector of the i-th node. Each node aggregates the information of its neighboring nodes according to the structure of the adjacency matrix to update its own representation. The process of information transmission and aggregation can be implemented by defining a node update function. Common functions include graph convolution operations and gated recurrent units. In each iteration, the node representation is updated according to the node's neighbor node information and the current node's representation. In this way, the node representation will gradually integrate the information in the graph structure. After the node representation is updated, the output prediction or application can be used for tasks such as node classification, graph classification, and link prediction. The generalized graph convolution operation can be expressed as:
[0088] Y=AXW
[0089] Where Y is the output of the graph convolution operation, A is the adjacency matrix, X is the input of the graph convolution operation, and W is the feature transformation matrix.
[0090] In the present invention, dilated convolution and graph convolution are used to perform sensor temporal feature mining and spatial feature mining for chemical production, respectively. Specifically, a coding module is constructed through a graph structure to construct an adjacency matrix corresponding to a chemical production association graph structure that describes the relationship between equipment under a specific process. The adjacency matrix is used to perform a graph convolution operation, and it is combined with a dilated convolution operation to construct the sensor spatial feature miner based on the graph neural network, thereby obtaining a sequence of representation vectors containing spatiotemporal correlation information. For a chemical production line that is executing the kth set of process links, we first use a sliding time window of length T to intercept the standardized data, and obtain standardized numerical records of a total of T moments for N sensor devices in the production line, which are expressed as in represents the total value recorded by the i-th sensor at time T, represents the values of all sensors recorded at time t, represents the value recorded by the i-th sensor at time t. First, each value in the sequence is transformed to obtain a representation of its high-dimensional features. The specific operations are as follows:
[0091]
[0092] in For the obtained time series feature vector sequence of the i-th sensor after feature transformation The convolution kernel of size K is used to represent the t-th position. Perform hole convolution and nonlinear activation. The specific formula is as follows:
[0093]
[0094] After the activation operation of the dilated convolution and the nonlinear function tanh, a new time series vector group is obtained. Where T' represents the time series length after the dilated convolution. Then, the sensor spatial feature miner based on the graph neural network is used to obtain the representation vector sequence containing the spatiotemporal correlation information of the k-th production link. The specific operations are as follows:
[0095]
[0096] Y :,t =σ(A (k) )X :,t W
[0097] in is the output of the graph convolution operation at time t, The spatiotemporal feature learning module of the chemical equipment operation status in the invention will perform the above operation L times, and adjust the convolution kernel of each dilated convolution so that the final output is a feature vector sequence containing spatiotemporal correlation information about N sensors.
[0098] Step 4: State prediction
[0099] The chemical production equipment operating condition prediction module 140 uses a characterization vector sequence containing spatiotemporal correlation information to predict the future operating state of the equipment.
[0100] The chemical production equipment operating condition prediction module 140 directly predicts the changes of various parameters of the equipment in the future period of time by transforming the representation vector sequence containing the spatiotemporal correlation information. After removing the redundant dimensions, it can be simplified to And predict through feature transformation, the specific operations are as follows:
[0101]
[0102] in is the prediction result, T' is the prediction time, is the feature transformation matrix. In one embodiment of the present invention, the prediction results generated based on the spatiotemporal graph neural network are as follows: Figure 5 As shown, in Figure 5 The solid line in the middle represents the true value of the corresponding device, and the dotted line represents the predicted value of the corresponding device.
[0103] Step 5: Early warning and feedback
[0104] The chemical equipment early warning module 150 determines the early warning information of the equipment to which it belongs based on the prediction results of each sensor, realizes the advance prediction of equipment operation abnormalities and stability assessment, and feeds back the analysis results to operators and supervisors to guide the actual operation of chemical production and prevent potential risks.
[0105] The chemical equipment early warning module 150 determines the equipment early warning information based on the prediction results of the equipment working conditions, and promptly feeds back the analysis results to the operators and supervisors to guide the chemical production operations and prevent potential risks. The early warning levels of the equipment working conditions are classified according to the prediction results. Specifically, the early warning levels include normal, mild abnormality, moderate abnormality and severe abnormality. By prejudging and evaluating the stability of equipment operation abnormalities in advance, it is possible to effectively control the evolution of various risks into accidents and achieve the inherent safety of chemical production.
[0106] Figure 3 FIG. 1 is a flow chart of a method for analyzing the operation safety situation of chemical equipment based on a spatiotemporal graph neural network according to this embodiment. Figure 3 As shown,
[0107] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0108] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for analyzing the operation safety situation of chemical equipment based on spatiotemporal graph neural network, characterized in that: The following steps are involved: Step 1, data collection: Use different types of sensors to collect the operating data of various equipment on different indicators in the chemical production process. The types of sensors configured on each device include temperature sensors, pressure sensors, and flow sensors. These sensors are used to collect the operating data of various indicators of each device over a period of time. Step 2, data preprocessing: Arrange the operating data of all sensors along the time dimension at the same time interval into a time series input vector that is aligned and unified for different sensors, interpolate the missing values of the time series input vector, and use normalization based on the maximum and minimum values to obtain a standardized time series input vector that describes the value changes of each sensor; Step 3, time and space correlation analysis: The standardized time series input vectors of each sensor are processed by a sensor time series feature miner based on a dilated convolutional layer to extract a time series feature vector sequence describing the time correlation of each sensor. At the same time, a learnable node embedding representation coding group is initialized for each sensor to construct feature coding describing different process links. Tensor multiplication is performed on the node embedding representation coding group describing the potential characteristics of the sensor and the feature coding describing the specific process link to obtain the node embedding representation coding of each sensor under the specific process link. The inner product of the embedding representation coding between different sensors under the specific process link is calculated to construct a chemical production association graph structure describing the relationship between each sensor under the specific process. The sensor time series feature vector sequence and the chemical production association graph structure are processed by a sensor spatial feature miner based on a graph neural network to obtain a representation vector sequence containing time and space correlation information. Step 4, state prediction: the representation vector sequence containing the spatiotemporal correlation information of each sensor is directly used to predict the value change of each sensor in the future through feature transformation; Step 5, early warning and feedback: Determine the early warning information of the equipment to which it belongs based on the prediction results of each sensor, realize the advance prediction of equipment operation abnormalities and stability assessment, and feed back the analysis results to operators and supervisors to guide the actual operation of chemical production.
2. The method for analyzing the operation safety situation of chemical equipment based on spatiotemporal graph neural network according to claim 1 is characterized in that: Step 2, data preprocessing: Arrange the operating data of all sensors along the time dimension at the same time interval into a time series input vector that is aligned and unified for different sensors. Interpolate the missing values of the time series input vector, and use normalization based on the maximum and minimum values to obtain a standardized time series input vector that describes the value changes of each sensor, where: The normalization calculation formula based on the maximum and minimum values is: Where min[X i,1 ,X i,2 ,…,X i,T ] and max[X i,1 ,X i,2 ,…,X i,T ] represent X i,1 ,X i,2 ,…,X i,T The minimum and maximum values in norm(X i,: ) represents the standardized X i,: .
3. The method for analyzing the operation safety situation of chemical equipment based on spatiotemporal graph neural network according to claim 1 is characterized in that: Step 3, time and space correlation analysis: The standardized time series input vectors of each sensor are processed by a sensor time series feature miner based on a dilated convolutional layer to extract a time series feature vector sequence describing the time correlation of each sensor. At the same time, a learnable node embedding representation coding group is initialized for each sensor to construct feature coding describing different process links. Tensor multiplication is performed on the node embedding representation coding group describing the potential characteristics of the sensor and the feature coding describing the specific process link to obtain the node embedding representation coding of each sensor under the specific process link. The inner product of the embedding representation coding between different sensors under the specific process link is calculated to construct a chemical production association graph structure describing the relationship between each sensor under the specific process. The sensor time series feature vector sequence and the chemical production association graph structure are processed by a sensor spatial feature miner based on a graph neural network to obtain a representation vector sequence containing time and space correlation information, where: The standardized time series input vectors of each sensor are processed by the sensor time series feature miner based on the dilated convolution layer to extract the time series feature vector sequence describing the time correlation of each sensor. Specifically, the following operations are performed: A dilated convolution operation is performed on the standardized time series input vector of each sensor to obtain the corresponding convolution feature representation; the obtained convolution feature representation is nonlinearly activated to obtain a new sequence of time series feature vectors describing each sensor; Select the standardized time series input vector of length T recorded by the i-th sensor and express it as Before performing the dilated convolution operation, first i,: Perform feature transformation to convert it into a time series vector of the i-th sensor with feature dimension F The specific operation method is: in is the feature transformation matrix, which is transformed by the input X i,: Right multiply the feature transformation matrix W0 to obtain the i-th sensor time series vector with feature dimension F The values in the feature transformation matrix are all randomly initialized learnable parameters; For the time series vector obtained after feature transformation of the i-th sensor The convolution kernel of size K is used to represent the t-th position. Perform hole convolution and perform nonlinear activation on it. The specific formula is as follows: Where d is the dilation rate, k is the index offset of the convolution kernel element, w is the convolution kernel, and tanh (·) is the nonlinear activation function used for the dilated convolution operation, which aims to compress the values of the time series feature vector sequence into the interval (-1, 1). It represents the representation of the time series feature vector sequence at time t after a dilated convolution and nonlinear activation operation; Initialize a learnable node embedding representation coding group for each sensor to fully learn the potential characteristics of each sensor; construct feature codes describing different process links in view of the fact that each device has different associations when executing different process links on the same production line; perform tensor multiplication on the node embedding representation coding group describing the potential characteristics of the sensor and the feature code describing the specific process link to obtain the node embedding representation coding describing each sensor under the specific process link; calculate the inner product of the embedding representation coding between different sensors under the specific process link, and construct a chemical production association graph structure describing the relationship between each sensor under the specific process. Specifically, perform the following operations: Different nodes are used to correspond to the sensors equipped by the monitored equipment in the production line, and a set of learnable node embedding representation coding groups are initialized for each sensor to fully represent the potential characteristics of the sensor; for the chemical production link containing N sensors, different nodes are used to correspond to different sensors on the production line, and a set of learnable node embedding representation coding groups ε are initialized for each device as follows: ε=[E (1) ,AND (2) ,…,AND (P) ] The node code group contains P groups of codes, among which Indicates the node code of the pth group of N devices on the production line. is the embedding representation of the feature dimension F of the i-th node; Set the feature code that describes the production line in different process links, and produce the interaction relationship of each node in a specific process link based on the code. By multiplying the learnable node embedding representation code group and the feature code that describes the specific process link, the node embedding representation code corresponding to each node in the specific process link is obtained; for a production line containing K groups of process links, set K groups of P-dimensional fixed codes And construct the feature codes describing different process links through feature transformation. The specific operations are as follows: in is the feature code obtained for the k-th process link, W u ∈R P ×P It is a learnable feature transformation matrix, and then calculates the embedded representation code of each node of the production line under the k-th process link. The specific calculation method is as follows: in The node embedding representation code of N equipment in the production line under the k-th process link; By performing pairwise inner product calculations on the node embedding representation codes of different nodes, the correlation coefficient between any two nodes under a specific process is obtained, forming a sensor correlation adjacency matrix composed of multiple node correlation coefficients, that is, the chemical production correlation graph structure under a specific process link; for a chemical production line containing N equipment, when executing the k-th production link, the calculation method of the equipment correlation adjacency matrix is: A (k) =Softmax(ReLU(P (k) P (k)T )) Among them A (k) The adjacency matrix of the equipment association corresponding to the chemical production association graph structure under the k-th process link composed of N node association coefficients is represented, the softmax function is used to normalize the elements of each row in the matrix, and the ReLU function is used to remove the edges with poor association in the matrix; The sensor's temporal feature vector sequence and the chemical production association graph structure are processed by the sensor spatial feature miner based on graph neural network to obtain a representation vector sequence containing spatiotemporal association information. Specifically, the following operations are performed: The time series feature vector sequence of each sensor containing time correlation information and the chemical production association graph structure under the specific process link are taken as input, and a graph neural network model is used to obtain a representation vector sequence describing the time and space correlation information contained in each sensor of the chemical production line under the specific process link.
4. A method for analyzing the operation safety situation of chemical equipment based on spatiotemporal graph neural network, characterized in that: Implementing the method for analyzing the operation safety situation of chemical equipment based on spatiotemporal graph neural network as described in any one of claims 1 to 3 to realize the operation safety situation analysis of chemical equipment based on spatiotemporal graph neural network, comprising: Chemical production sensor data acquisition module, used to collect operating data of sensors installed on chemical equipment on different process parameters; The sensor data interpolation and normalization module arranges the operating data of all sensors along the time dimension at the same time interval into a time series input vector that is aligned and unified for different sensors, and interpolates the missing values of the time series input vector; at the same time, it performs normalization based on the maximum and minimum values on sensor data of different dimensions to obtain a standardized time series input vector that describes the changes in the values of each sensor; The spatiotemporal feature learning module of the chemical equipment operation status uses the spatiotemporal graph neural network algorithm based on the void convolutional neural network and the graph neural network to analyze the temporal correlation of the sensors installed on the monitored equipment when the chemical production line executes a specific process link and the spatial correlation between different sensors in the process link, thereby obtaining a representation vector sequence containing spatiotemporal correlation information of each sensor in a specific process link; The chemical production equipment working condition prediction module is used to process the representation vector sequence containing time-space correlation information and predict the future value changes of each sensor on the equipment; The chemical equipment early warning module is used to generate early warning information for the equipment to which the sensor belongs based on the predicted results of the sensor value changes for abnormal prediction results, and promptly notify operators and supervisors to guide actual chemical production operations to prevent potential failures and risks.
5. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for analyzing the operation safety situation of chemical equipment based on a spatiotemporal graph neural network as described in any one of claims 1 to 3 is implemented to realize the analysis of the operation safety situation of chemical equipment based on a spatiotemporal graph neural network.
6. A computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for analyzing the operation safety situation of chemical equipment based on a spatiotemporal graph neural network according to any one of claims 1 to 3 is implemented to realize the analysis of the operation safety situation of chemical equipment based on a spatiotemporal graph neural network.
Citation Information
Cited By
Chlorinated paraffin safety production remote supervision system based on Internet of Things
CN121115640A
A method and system for real-time assessment and grading early warning of fire risk of a hazardous chemical site
CN122966007A
