Data recovery method, system, computer equipment and storage medium

By constructing the STAR model, using parallel spatial and temporal feature extraction modules and enhanced diffusion convolution layers, the problem of missing spatiotemporal data in collaborative intelligent transportation systems is solved, and efficient recovery and flexible application of data are achieved, which is superior to existing technologies. performance and applicability.

CN114372526BInactive Publication Date: 2024-10-15HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210018153.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively handle the problem of missing spatio-temporal traffic data in collaborative intelligent transportation systems. In particular, the model needs to be retrained when the network structure changes, and tensor decomposition is difficult to fully utilize the time correlation, resulting in the application of the model in other traffic scenarios. difficulty.

Method used

Construct a STAR model, including a parallel spatial feature extraction module and a temporal feature extraction module, using the enhanced diffusion convolution layer for data filling, learning spatial dependencies and semantic dependencies through the attention mechanism, achieving spatio-temporal perception induction filling of data, and through RG- TCN and diffusion map convolutional layers extract features.

Benefits of technology

The STAR model can be generalized to unseen nodes without retraining, improving the flexibility and accuracy of data recovery. It shows better performance than the baseline model and is suitable for various data recovery tasks and time-varying systems. Modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114372526B_ABST
    Figure CN114372526B_ABST
Patent Text Reader

Abstract

The invention discloses a data recovery method, system, computer device and storage medium, comprising constructing a known sensor network structure diagram and a sensor collection data set; constructing a STAR model, wherein the STAR model comprises a spatial feature extraction module and a temporal feature extraction module, a diffusion convolution module composed of a plurality of enhanced diffusion convolution layers and an output module; stacking a data set X and a mask M to obtain an input X; using the temporal feature extraction module to extract temporal features, and using the spatial feature extraction module to extract spatial features; splicing a temporal feature matrix and a spatial feature matrix, and using an attention-enhanced diffusion convolution module to simultaneously learn spatial dependency and semantic dependency to obtain new features of the sensor node; splicing the new features, and then subjecting the new features to linearization processing, and outputting the completed sensor observation results; the STAR model is a new framework for filling in spatiotemporal perception inductive data, and has high performance, robustness and flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data recovery technology, and in particular, relates to a data recovery method, system, computer equipment and storage medium based on a spatiotemporal-aware inductive graph neural network in C-ITS. Background Art

[0002] With the popularity of ITS (Intelligent Transportation System), a large number of sensors are deployed on roadsides, vehicles and infrastructure. In order to meet the high requirements of data science applications in C-ITS (Collaborative Intelligent Transportation System), various missing data problems in spatiotemporal traffic data are a major challenge. High-precision data recovery is crucial for many downstream tasks in ITS (Intelligent Transportation System), such as traffic flow monitoring and decision-making.

[0003] With the advancement of communication and information security technologies, smart cities are rapidly expanding the scope of sensor networks to collect and analyze data for urban management (such as traffic systems, urban safety, and weather forecasting). With the popularity of sensors, massive amounts of data are generated, making it possible to apply advanced data science techniques to smart city applications, one of the successful applications of which is ITS (Intelligent Transportation System). By using data analysis algorithms, ITS (Intelligent Transportation System) can help alleviate traffic congestion, improve road safety, increase road capacity, and save fuel consumption. In recent years, the emergence of C-ITS (Collaborative Intelligent Transportation System) enables multiple isolated ITS (Intelligent Transportation System) to collaborate with each other, thereby further improving safety, sustainability, efficiency, and comfort by leveraging advanced communication and collaboration between independent agents.

[0004] As the scale of C-ITS (Cooperative Intelligent Transportation System) systems and wireless communication networks expand, sensor failures, transmission interruptions, data loss, etc. become inevitable problems, with serious consequences. For example, such phenomena may lead to wrong conclusions because missing values ​​may distort statistical properties and cause the model to output unexpected results, leading to wrong decisions. In addition, deploying sensors in urban areas is expensive and laborious, not to mention the increasing system operation and maintenance costs. In fact, there are only a limited number of sensors available for C-ITS (Cooperative Intelligent Transportation System) to obtain an overview of the area. Therefore, the data recovery task is very critical because many applications may rely on it.

[0005] Essentially, the loss patterns or missing patterns can be summarized into three types, namely random loss, segment loss, and complete loss. Random loss may be caused by unexpected packet loss. Unexpected transmission errors may cause random loss. Interpolation methods can quickly fill in random missing values. Segment loss may indicate failure, which may be caused by power outages, sensor failures, and extreme weather conditions; decomposition-based methods and neural network-based models can fill in these segment missing values. Node-level loss (i.e., complete loss) is due to the deployment of new sensors. Filling the missing values ​​in such cases may be challenging because no historical data is available. In practical applications, the three data missing patterns coexist in the actual collected sensor data, bringing difficulties to data science. The fundamental challenge of the data completion task is how to effectively utilize the sampled data, including its inherent spatiotemporal correlation. Although great progress has been made in spatiotemporal-aware time series prediction in recent years, few literatures have focused on the spatiotemporal filling problem. For example, the spatiotemporal filling results can produce fine-grained and high-resolution spatiotemporal data, which can be used for autonomous driving, traffic flow prediction, and deployment of virtual sensors.

[0006] ITS (Intelligent Transportation System) integrates multiple advanced technologies, including sensor networks, communications, control theory, and artificial intelligence. It focuses on digital technologies that provide intelligence to the system. The popularity of these systems and emerging network technologies such as 5G and IoT (Internet of Things) makes C-ITS (Collaborative Intelligent Transportation System) possible. Infrastructure equipped with C-ITS (Collaborative Intelligent Transportation System) can collaboratively improve the efficiency, reliability, and sustainability of the entire system.

[0007] Despite great achievements, there are still some open issues that hinder the application of data science in C-ITS (Cooperative Intelligent Transportation System). Each component collects traffic data and uses wireless communication to propagate messages. With the continuous increase in the capacity of communication systems, data transmission errors and data loss become non-negligible. In addition, as the key components of the system, the deployment of sensors in large-scale networks still requires high costs. Therefore, a better model is urgently needed to achieve high-precision data recovery and estimation under C-ITS (Cooperative Intelligent Transportation System). Fortunately, this problem can be alleviated by a well-designed spatiotemporal-aware Kriging algorithm.

[0008] Traffic flow prediction is a fundamental yet challenging task. Early attempts to treat it as a time series prediction problem for isolated points. These methods rely heavily on local seasonal characteristics, so they often fail to model inter-station correlations. Recent literature has explored the ability of GNNs (graph neural networks) in modeling spatiotemporal data. Ling Zhao et al. proposed using RNNs (recurrent neural networks) to obtain spatial and temporal correlations in T-GCN: A Temporal Graph Convolutional Network for Traffic Prediction, but RNN-based methods cannot handle long sequences because memory may be lost; secondly, they are also plagued by gradient vanishing and gradient exploding problems. In addition, the recursive computing method causes low efficiency for parallel training and inference. Bing Yu et al. and Zonghan Wu et al. equipped a temporal encoder based on stacked CNNs (convolutional neural networks) and a spatial encoder based on GCNs (graph convolutional networks) in Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting and Graph WaveNet for Deep Spatial-Temporal Graph Modeling, but the improvement in representation effect and training speed is limited.

[0009] GPR (Gaussian Process Regression) mentioned by Carl Edward Rasmussen et al. in "Gaussian Processes for Machine Learning" is an effective tool for solving the Kriging problem. It uses flexible kernels to construct spatiotemporal correlations, but its main disadvantage is the large amount of computation, which limits its real-time application.

[0010] In recent years, Kriging methods based on GNN (graph neural network) have emerged. The method used by Gabriel Appleby et al. in "Kriging Convolutional Networks" can achieve this, overcoming the strong Gaussian assumption and directly using adjacent observations when generating predictions. Yuankai Wu et al. applied diffuse graph convolution and used training techniques to achieve inductive reasoning in "Inductive Graph Neural Networksfor Spatiotemporal Kriging". Unfortunately, most of the models mentioned above are conductive, that is, they require retraining the entire model when the network structure changes slightly.

[0011] Jonathan Strahl et al. used matrix decomposition to fill in data in "Scalable Probabilistic Matrix Factorization with Graph-Based Priors". Ahmed Ben Said et al. tried to reconstruct the traffic data tensor through tensor decomposition in "Spatiotemporal Tensor Completion for Improved Urban Traffic Imputation". However, these methods are difficult to fully utilize the temporal correlation, so the trained models are difficult to apply to other traffic scenarios. Summary of the invention

[0012] The purpose of the present invention is to provide a data recovery method, system, computer device and storage medium. To address the problem of missing data in spatiotemporal traffic data, a model-based method is used. When a slight change occurs in the network structure, the entire model needs to be retrained. In addition, it is difficult to fully utilize the temporal correlation when reconstructing the traffic data tensor through tensor decomposition, and the trained model is difficult to apply to other traffic scenarios.

[0013] The present invention solves the above technical problems through the following technical solutions: a data recovery method, comprising the following steps:

[0014] Step 1: Construct the structure graph G = (N, E, A) of the known sensor network in the intelligent transportation system, where N represents the set of known sensor nodes, E represents the set of links between known sensor nodes, and A represents the adjacency matrix of the structure graph G. Each element a in the adjacency matrix A is ij Defined as:

[0015]

[0016] Among them, d ij represents the distance between known sensor node i and known sensor node j, σ represents the distance d ij The corresponding variance, ε represents the set threshold, ε>0;

[0017] Construct a collection of sensor collected data in, represents the real number space, n represents the number of known sensor nodes, m represents the number of target sensor nodes, and T represents the sampling interval; in the set X, the value of the position corresponding to the m target sensor nodes is 0;

[0018] Step 2: Add m target sensors to the structure graph G to obtain a new structure graph G', and construct a data filling task function f, which is specifically expressed as:

[0019] X′=f(X,M,G′)

[0020] stX*M=X′*M

[0021] in, It represents the result after restoring or completing the set X. The mask M corresponds to the data set X′. The mask M is used to indicate whether the data collected by the sensor in the data set X is missing. 0 indicates missing, and 1 indicates no missing.

[0022] Step 3: construct a STAR model, wherein the STAR model includes a parallel spatial feature extraction module and a temporal feature extraction module, a diffusion convolution module composed of a plurality of enhanced diffusion convolution layers, and an output module;

[0023] Stack the data set X and mask M to get the input Among them, 1-M represents the reverse mask, that is, the 0 in the mask M is transformed into 1, and 1 is transformed into 0;

[0024] Step 4: Use the temporal feature extraction module to extract the input Perform time feature extraction to obtain the time feature matrix of n+m sensor nodes;

[0025] The spatial feature extraction module is used to extract the input Perform spatial feature extraction to obtain the spatial feature matrix of n+m sensor nodes;

[0026] Step 5: splicing the temporal feature matrix and the spatial feature matrix in step 4, and using the attention-enhanced diffusion convolution module to simultaneously learn the spatial dependency and semantic dependency of the spliced ​​matrix to obtain new features of the sensor node; each input layer of the attention-enhanced diffusion convolution layer obtains a new feature;

[0027] Step 6: The new features obtained by each attention-enhanced diffuse convolution layer in step 5 are concatenated, and then linearized to output the completed sensor observation results.

[0028] Furthermore, in step 1, the threshold ε is set to 0.5.

[0029] Furthermore, in step 4, the temporal feature extraction module is an RG-TCN model (residual gated temporal convolutional network model), and the RG-TCN model includes a linear layer and S residual gated temporal convolutional layers (i.e., RG-TCN layers); each residual gated temporal convolutional layer is composed of setting the activation function of the temporal convolutional layer to a gated linear unit.

[0030] Furthermore, the specific implementation process of using the RG-TCN model to extract time features is as follows:

[0031] For the input Perform linearization processing;

[0032] The first layer of residual gated temporal convolution layer calculates the linearized result. The specific calculation formula is:

[0033] H' out =tanh(W1*H+b1)⊙sigmoid(W2*H+b2) (a)

[0034] H out =H' out +φ(H) (b)

[0035] Among them, H represents the result after linearization processing or the input of the current residual gated temporal convolution layer, H out Represents the computational output of the residual gated temporal convolutional layer, H' out represents the calculation of intermediate quantities, tanh(·) and sigmoid(·) represent activation functions, φ() represents a one-dimensional convolution with a 1×1 kernel, W1 and W2 represent weight parameters, and b1 and b2 represent bias parameters;

[0036] The calculated output of the previous residual gated temporal convolution layer is used as the input of the current residual gated temporal convolution layer. Formulas (a) and (b) are used to calculate the input to obtain the calculated output, which is then used as the input of the next residual gated temporal convolution layer. This is repeated in turn to obtain the temporal feature matrix of n+m sensor nodes.

[0037] Furthermore, in step 4, the spatial feature extraction module is an attention-based spatial model, which includes a linear layer, S residual gated temporal convolution layers (i.e., RG-TCN layers), a diffusion graph convolution layer, and an attention layer; each residual gated temporal convolution layer is composed of setting the activation function of the temporal convolution layer to a gated linear unit.

[0038] Furthermore, the specific implementation process of using the attention-based spatial model to extract spatial features is as follows:

[0039] For the input Perform linearization processing;

[0040] The first layer of residual gated temporal convolution layer calculates the linearized result. The specific calculation formula is:

[0041] H' out=tanh(W1*H+b1)⊙sigmoid(W2*H+b2) (a)

[0042] H out =H' out +φ(H) (b)

[0043] Among them, H represents the result after linearization processing or the input of the current residual gated temporal convolution layer, H out Represents the computational output of the residual gated temporal convolutional layer, H' out represents the calculation of intermediate quantities, tanh(·) and sigmoid(·) represent activation functions, φ() represents a one-dimensional convolution with a 1×1 kernel, W1 and W2 represent weight parameters, and b1 and b2 represent bias parameters;

[0044] The calculated output of the previous residual gated temporal convolution layer is used as the input of the current residual gated temporal convolution layer. Formulas (a) and (b) are used to calculate the input to obtain the calculated output, which is then used as the input of the next residual gated temporal convolution layer. This is done by analogy, and finally the temporal features of n+m sensor nodes are obtained.

[0045] The diffusion graph convolution layer calculates the time characteristics of n+m sensor nodes. The specific calculation formula is:

[0046]

[0047] in, represents the output of the diffusion graph convolutional layer, represents the input of the diffusion graph convolution layer or the temporal features of n+m sensor nodes, represents the forward transfer matrix during the k-th diffusion, represents the backward transfer matrix at the kth diffusion, K represents the number of diffusions, W k1 , W k2 All represent learnable parameter matrices;

[0048] The attention layer calculates the output of the diffusion graph convolution layer to obtain the spatial feature matrix of n+m sensor nodes. The specific calculation formula is:

[0049]

[0050] in, represents the output of the attention layer or the spatial features of n+m sensor nodes, EA( ) represents the attention layer, M k 、M v Both represent trainable parameters.

[0051] Furthermore, in step 5, the specific calculation formula of the new feature of the sensor node is:

[0052]

[0053]

[0054]

[0055] in, represents the output of the enhanced diffusion convolution layer or the new features of the sensor node, α represents the learnable parameter, EA( ) represents the attention layer in the spatial feature extraction module, represents the output of the diffusion graph convolution layer in the spatial feature extraction module, represents the input of the diffusion graph convolution layer in the spatial feature extraction module or the temporal features of n+m sensor nodes, represents the forward transfer matrix during the k-th diffusion, represents the backward transfer matrix at the kth diffusion, K represents the number of diffusions, W k1 , W k2 Both represent learnable parameter matrices; M k 、M v Both represent trainable parameters.

[0056] The present invention also provides a data recovery system, comprising:

[0057] The first construction unit is used to construct a structure diagram G = (N, E, A) of a known sensor network in an intelligent transportation system and a set of sensor collection data Where N represents the set of known sensor nodes, E represents the set of links between known sensor nodes, A represents the adjacency matrix of the structure graph G, represents the real number space, n represents the number of known sensor nodes, m represents the number of target sensor nodes, and T represents the sampling interval; in the set X, the value of the position corresponding to the m target sensor nodes is 0; each element a in the adjacency matrix A ij Defined as:

[0058]

[0059] Among them, d ij represents the distance between known sensor node i and known sensor node j, σ represents the distance d ij The corresponding variance, ε represents the set threshold, ε>0;

[0060] The second construction unit is used to add m target sensors to the structure graph G to obtain a new structure graph G', and construct a data filling task function f, which is specifically expressed as:

[0061] X′=f(X,M,G′)

[0062] stX*M=X′*M

[0063] in, It represents the result after restoring or completing the set X. The mask M corresponds to the data set X′. The mask M is used to indicate whether the data collected by the sensor in the data set X is missing. 0 indicates missing, and 1 indicates no missing.

[0064] The stacking unit is used to stack the data set X and the mask M to obtain the input Among them, 1-M represents the reverse mask, that is, the 0 in the mask M is transformed into 1, and 1 is transformed into 0;

[0065] A model construction unit, used to construct a STAR model, wherein the STAR model includes a parallel spatial feature extraction module and a temporal feature extraction module, an attention-enhanced diffusion convolution module composed of a plurality of attention-enhanced diffusion convolution layers, and an output module;

[0066] The time feature extraction module is used to input Perform time feature extraction to obtain the time feature matrix of n+m sensor nodes; the spatial feature extraction module is used to extract the input Spatial feature extraction is performed to obtain the spatial feature matrix of n+m sensor nodes; each layer of the enhanced diffusion convolution layer is used to simultaneously learn the spatial dependency and semantic dependency of the matrix spliced ​​by the time feature matrix and the spatial feature matrix to obtain new features of the sensor nodes; the output module is used to splice the new features obtained by each layer of the enhanced diffusion convolution layer, and then perform linearization processing on the multi-layer perceptron to output the completed sensor observation results.

[0067] The present invention also provides a computer device, comprising: a memory for storing a computer program; and a processor for implementing the steps of the data recovery method described above when executing the computer program.

[0068] The present invention also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data recovery method described above are implemented.

[0069] Beneficial Effects

[0070] Compared with the prior art, the advantages of the present invention are:

[0071] The present invention provides a data recovery method, system, computer device and storage medium, comprising constructing a structural diagram of a known sensor network in an intelligent transportation system and a collection of sensor collected data; adding a target sensor to the structural diagram to form a new structural diagram; constructing a STAR model, the STAR model comprising a parallel spatial feature extraction module and a temporal feature extraction module, a diffusion convolution module composed of a plurality of enhanced diffusion convolution layers and an output module; stacking a data set X and a mask M to obtain an input ; Use the time feature extraction module to input Perform temporal feature extraction and use the spatial feature extraction module to extract the input The invention discloses a novel method for extracting spatial features by splicing the temporal feature matrix and the spatial feature matrix, and using the attention-enhanced diffusion convolution module to simultaneously learn the spatial dependency and semantic dependency of the spliced ​​matrix to obtain new features of the sensor node; splicing the new features obtained by each layer of enhanced diffusion convolution layer, and then outputting the completed sensor observation results after linearization processing; the STAR model of the present invention is a new framework for filling in spatiotemporal perception inductive data, which uses an attention-based spatial model to enhance GNN to obtain long-range spatial similarity and temporal feature extraction based on dilated convolution; in addition, the STAR model is inductive, which means that it can be generalized to unseen nodes by retraining; experiments show that the performance of the STAR model on three real traffic sensor data sets is always better than other baseline models; experimental results show that the STAR model is insensitive to the prediction length; the flexibility of the data recovery method of the present invention facilitates the application of the STAR model to any data recovery task and modeling of time-varying systems, such as predicting sensor data of mobile autonomous vehicles. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only one embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0073] Figure 1 is a flow chart of the data recovery method in Embodiment 1 of the present invention;

[0074] Figure 2 It is a STAR model architecture diagram in Example 1 of the present invention;

[0075] Figure 3 This is a diagram of the RG-TCN model architecture in Example 1 of the present invention;

[0076] Figure 4 is a diagram of the attention-based spatial model architecture in Embodiment 1 of the present invention;

[0077] Figure 5 is an architecture diagram of the attention-enhanced diffusion convolution module and the output module in Example 1 of the present invention;

[0078] FIG6 is a comparison diagram of spatiotemporal perception recovery capabilities in Example 2 of the present invention; FIG6(a) is a comparison of RMSE of (non-)temporal methods at different time steps, and FIG6(b) is a comparison of RMSE of (non-)spatial methods at different time steps; the suffixes -S and -T indicate that the corresponding feature extraction modules are enabled;

[0079] FIG7 is a comparison chart of long-term data recovery capabilities of Example 2 of the present invention; wherein FIG7(a) is the change in MAE and RMSE of the STAR model at different recovery periods, and FIG7(b) is the RMSE error of the STAR model and other baselines at different recovery periods. DETAILED DESCRIPTION

[0080] The following is a clear and complete description of the technical solutions in the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0081] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0082] Example 1

[0083] like Figure 1 As shown, a data recovery method provided in this embodiment includes the following steps:

[0084] Step 1: Construct the structure diagram G = (N, E, A) of the known sensor network in the intelligent transportation system and the set of sensor collected data

[0085] The data filling problem in the C-ITS scenario refers to interpolating the missing data of the target sensor based on the data collected by the known sensors. The entire sensor network with n+m sensor nodes and E edges is represented as a structure graph G = (N, E, A), where N represents the set of known sensor nodes, E represents the set of links between known sensor nodes, and A represents the adjacency matrix of the structure graph G. Each element a in the adjacency matrix A is ij Defined as:

[0086]

[0087] Among them, d ij represents the distance between known sensor node i and known sensor node j, σ represents the distance d ij The corresponding variance, ε represents the set threshold, ε>0. In this embodiment, the set threshold ε is 0.5. The larger the set threshold ε is, the greater the d ij The more 0s there are.

[0088] A collection of sensor data in, represents the real number space, n represents the number of known sensor nodes, m represents the number of target sensor nodes, and T represents the sampling interval; in the set X, the values ​​of the positions corresponding to the m target sensor nodes are 0, that is, missing.

[0089] Step 2: Add m target sensors to the structure graph G to obtain a new structure graph G' and construct a data filling task function f.

[0090] Create a mask M to indicate whether the data collected by the sensor in the data set X is missing (i.e., indicating non-zero entries in the data set X), 0 indicates missing, and 1 indicates no missing. It should be noted that there are only e edges as prior knowledge, and the missing historical data of m sensor nodes need to be estimated based on G' and the data set X to interpolate X'. Therefore, the data recovery or filling task is expressed as a function f:

[0091] X′=f(X,M,G′) (2)

[0092] stX*M=X′*M (3)

[0093] in, It represents the result after restoring or completing the set X, and the mask M corresponds to the data set X′.

[0094] Step 3: Construct the STAR model. The STAR model includes a parallel spatial feature extraction module and a temporal feature extraction module, a diffusion convolution module composed of multiple enhanced diffusion convolution layers, and an output module, such as Figure 2 shown.

[0095] Step 4: Stack the data set X and mask M to get the input 1-M represents inverse masking, that is, 0 in mask M is transformed into 1, and 1 is transformed into 0.

[0096] Step 5: Use the temporal feature extraction module to extract the input Perform time feature extraction to obtain the time feature matrix of n+m sensor nodes.

[0097] The location of missing values ​​is crucial for the filling task. If the corrupted time series is input into the neural network after the min-max scaler, the missing values ​​are set to zero, making it difficult to distinguish between small values ​​and missing values. The mask indicating the missing values ​​contains the location information that guides the model to extract temporal patterns from other time slices. The architecture of the temporal feature extraction module is shown in Figure 2. Figure 3 As shown, the temporal feature extraction module is an RG-TCN model (residual gated temporal convolutional network model), which includes a linear layer and S residual gated temporal convolutional layers (i.e., RG-TCN layers); each residual gated temporal convolutional layer is formed by setting the activation function of the temporal convolutional layer to a gated linear unit.

[0098] TCN does not change the input length of the time series data, but it changes the channel depth between hidden layers. After being processed by the RG-TCN model, the data length remains the same. Figure 3 As shown, the specific implementation process of using the RG-TCN model to extract time features is as follows:

[0099] Step 5.1: Input Perform linearization processing;

[0100] Step 5.2: The first residual gated temporal convolution layer calculates the linearized result. The specific calculation formula is:

[0101] H' out =tanh(W1*H+b1)⊙sigmoid(W2*H+b2) (4)

[0102] H out =H' out +φ(H) (5)

[0103] Among them, H represents the result after linearization processing or the input of the current residual gated temporal convolution layer, H out Represents the computational output of the residual gated temporal convolutional layer, H' out represents the calculation of intermediate quantities, tanh(·) and sigmoid(·) represent activation functions, φ() represents a one-dimensional convolution with a 1×1 kernel, W1 and W2 represent weight parameters, and b1 and b2 represent bias parameters;

[0104] Step 5.3: The calculated output of the previous residual gated temporal convolution layer is used as the input of the current residual gated temporal convolution layer. Formulas (4) and (5) are used to calculate the input to obtain the calculated output, which is then used as the input of the next residual gated temporal convolution layer. This process is repeated in turn to obtain the temporal feature matrix of n+m sensor nodes.

[0105] Step 6: Use the spatial feature extraction module to extract the input Perform spatial feature extraction to obtain the spatial feature matrix of n+m sensor nodes.

[0106] In order to extract spatial features for further fusion, this embodiment proposes an attention-based spatial model as a spatial feature extraction module. The model combines TCN, graph convolution, and attention mechanism with linear time complexity and space complexity. Its architecture is shown in the following figure. Figure 4 As shown in Figure 1, the attention-based spatial model includes a linear layer, S residual gated temporal convolutional layers (i.e., RG-TCN layers), a diffusion graph convolutional layer, and an attention layer; each residual gated temporal convolutional layer is formed by setting the activation function of the temporal convolutional layer to a gated linear unit. The specific implementation process of spatial feature extraction using the attention-based spatial model is as follows:

[0107] Step 6.1: Input Perform linearization processing;

[0108] Step 6.2: The first residual gated temporal convolution layer calculates the linearized result. The specific calculation formulas are shown in equations (4) and (5).

[0109] Step 6.3: The calculated output of the previous residual gated temporal convolution layer is used as the input of the current residual gated temporal convolution layer. Formulas (a) and (b) are used to calculate the input to obtain the calculated output, which is then used as the input of the next residual gated temporal convolution layer. This is done by analogy to obtain the temporal features of n+m sensor nodes.

[0110] Step 6.4: The diffusion graph convolution layer calculates the time characteristics of n+m sensor nodes. The specific calculation formula is:

[0111]

[0112] in, represents the output of the diffusion graph convolutional layer, represents the input of the diffusion graph convolution layer or the temporal features of n+m sensor nodes, represents the forward transfer matrix during the k-th diffusion, represents the backward transfer matrix at the kth diffusion, K represents the number of diffusions, W k1 , W k2 All represent learnable parameter matrices;

[0113] Step 6.5: The attention layer calculates the output of the diffusion graph convolution layer to obtain the spatial feature matrix of n+m sensor nodes. The specific calculation formula is:

[0114]

[0115] in, represents the output of the attention layer or the spatial features of n+m sensor nodes, EA( ) represents the attention layer, M k 、M v Both represent trainable parameters, and Norm(·) is a two-stage normalization function that calculates the Softmax and L1 norms sequentially.

[0116] In the spatial feature extraction module, the time series of sensor nodes are first fed into RG-TCN to extract their temporal patterns, and then graph convolution is used to obtain node embeddings. The purpose of graph convolution is to obtain the embedding of new nodes while aggregating neighborhood information to distinguish each other. After computing the node-level representation, an attention layer is used to obtain the global similarity even if two nodes are in different connected components.

[0117] Due to the over-smoothing problem, graph convolution layers cannot be stacked multiple times to capture long-range dependencies. Nodes can only capture signals from local subgraphs. Moreover, there are not even paths available to connect sensors with similar patterns. Therefore, graph convolution is considered insufficient to capture spatial correlations thoroughly. Self-attention is used to solve this problem, but its computational complexity is O(n 2 ), and only captures the correlation within a given node. Considering the rapid expansion of the network scale and the complex spatiotemporal dependencies, this embodiment adopts external attention, linear complexity and global sampling storage to greatly facilitate real-time data filling. The calculation formula of the external attention layer is shown in formula (7).

[0118] Step 7: Concatenate the temporal feature matrix in step 5 and the spatial feature matrix in step 6, and use the attention-enhanced diffusion convolution module to simultaneously learn the spatial dependency and semantic dependency of the concatenated matrix to obtain new features of the sensor node; each input layer of the attention-enhanced diffusion convolution layer obtains a new feature.

[0119] The temporal feature extraction module and the spatial feature extraction module are two branches of spatiotemporal feature extraction, and these two representations are concatenated as node-level embeddings for further propagation in the graph.

[0120] Sensor networks in the real world have a potential directed topology. For example, sensors are deployed on roads, naturally forming a bidirectional graph. A diffuse graph convolutional network (DGCN) is used as the propagation layer to process this directed graph. DGCN processes the forward edges and backward edges separately to form a forward transfer matrix A. f and the backward transfer matrix A b Two matrices. The diffusion step is represented as K, and the calculation formula of the diffusion graph convolution layer is shown in formula (6).

[0121] Graph neural networks are highly dependent on predefined adjacency matrices, which limits the ability of neural networks to capture semantic similarity within large-scale sensor networks. In addition, the need for semantic similarity depends on the dataset itself, not the network structure; other works use attention mechanisms and trainable adaptive adjacency matrices to obtain semantic similarity. The former is computationally intensive, while the latter cannot be generalized to invisible nodes. To address the above problems, this embodiment designs an external attention-enhanced diffuse convolutional layer to adaptively learn semantic similarity:

[0122]

[0123] Here, α is initially set to zero as a weight to control semantic similarity learning, and EA(·) is introduced in Eq. (7) to enhance the diffusion convolution using the second branch of semantic similarity learning with linear time complexity.

[0124] Step 8: Concatenate the new features obtained by each attention-enhanced diffuse convolution layer in step 7, linearize them, and output the completed sensor observation results.

[0125] In order to better utilize features at multiple scales and speed up the training process, the new features generated by each attention-enhanced diffuse convolution layer are concatenated. Under this layout, the neural network can extract specific S-hop neighborhood information for data recovery. In addition, residual connections are added to enable information and gradients to flow throughout the network. Figure 5 The architecture of the dilated convolution module and the output module is shown.

[0126] This embodiment also provides a data recovery system, including a first construction unit, a second construction unit, a stacking unit, and a model building unit.

[0127] The first construction unit is used to construct a structure diagram G = (N, E, A) of a known sensor network in an intelligent transportation system and a set of sensor collection data Where N represents the set of known sensor nodes, E represents the set of links between known sensor nodes, A represents the adjacency matrix of the structure graph G, represents the real number space, n represents the number of known sensor nodes, m represents the number of target sensor nodes, and T represents the sampling interval; in the set X, the value of the position corresponding to the m target sensor nodes is 0; each element a in the adjacency matrix A ij The definition is shown in formula (1).

[0128] The second construction unit is used to add m target sensors to the structure graph G to obtain a new structure graph G', and construct a data filling task function f, which is specifically expressed as shown in formulas (2) and (3).

[0129] The stacking unit is used to stack the data set X and the mask M to obtain the input 1-M represents inverse masking, that is, 0 in mask M is transformed into 1, and 1 is transformed into 0.

[0130] The model construction unit is used to construct a STAR model, wherein the STAR model includes a parallel spatial feature extraction module and a temporal feature extraction module, an attention-enhanced diffusion convolution module composed of multiple attention-enhanced diffusion convolution layers, and an output module.

[0131] Among them, the time feature extraction module is used to input Perform time feature extraction to obtain the time feature matrix of n+m sensor nodes. The specific steps are shown in 5.1 to 5.3. The spatial feature extraction module is used to extract the input Perform spatial feature extraction to obtain the spatial feature matrix of n+m sensor nodes. The specific steps are shown in 6.1 to 6.5. Each layer of attention-enhanced diffusion convolution layer is used to simultaneously learn the spatial dependency and semantic dependency of the matrix spliced ​​by the temporal feature matrix and the spatial feature matrix to obtain new features of the sensor nodes, as shown in formula (8). The output module is used to splice the new features obtained by each layer of attention-enhanced diffusion convolution layer, and then perform linearization processing on the multi-layer perceptron to output the completed sensor observation results.

[0132] This embodiment also proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the data recovery method described above when executing the computer program.

[0133] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the computer device. For example, the computer program may be divided into a first construction unit, a second construction unit, a stacking unit, and a model building unit, and the specific functions of each unit are as described above.

[0134] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the data recovery system is merely an example of a computer device and does not constitute a limitation on the computer device. The system may include more or fewer components than the system, or may combine certain components, or different components. For example, the device may also include input and output devices, network access devices, buses, etc.

[0135] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0136] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the data recovery system by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0137] When the computer program is executed by a processor, the steps of the data recovery method are implemented.

[0138] If the module / unit integrated in the data recovery system is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0139] Example 2

[0140] The STAR model of Example 1 of the present invention is evaluated through experiments.

[0141] 1. Dataset

[0142] The STAR model is validated on two public spatiotemporal datasets. METR-LA records four months of traffic speed data on Los Angeles freeways through 207 sensors, and PEMS-Bay collects traffic speed data in California, USA. All datasets are normalized by a min-max scaler. This embodiment randomly selects 75% of the sensors for training and the remaining 25% of the sensors as test data. In addition, the datasets are split in chronological order, with a ratio of 7:3 between the training set and the test set. Table 1 lists the detailed statistical properties of the two datasets.

[0143] Table 1 Statistical properties of the traffic dataset

[0144]

[0145] 2. Baseline

[0146] The STAR model was compared to the following baselines:

[0147] (1) Average: directly take the average value of its neighboring areas as the prediction.

[0148] (2) 2D-Krige, provided by the Python framework for geostatistical simulation downloaded from https: / / github.com / GeoStat-Framework / PyKrige. This method is available only when the sensor locations are given.

[0149] (3) GCN, compared with the average model, introduces nonlinearity. It aggregates neighborhood information under the message passing framework.

[0150] (4) IGNNK, uses stacked diffuse graph convolutional layers and applies a training strategy to generalize the spatial kriging task.

[0151] (5) STAR, regardless of whether the submodules are enabled, has three variants: STAR-T only enables the temporal feature extraction module; STAR-S only enables the spatial feature extraction module; STAR enables both modules for spatiotemporal feature extraction.

[0152] The baselines are also categorized according to model category, spatial dependency modeling, temporal dependency modeling, and multi-step filling, as shown in Table 2.

[0153] Table 2 Summary of models used in the experiments

[0154]

[0155] 3. Settings

[0156] The STAR model was implemented in PyTorch 1.7.1 using Python 3.7 and deployed on a server equipped with an Inteli9-9900KS process, 32GB memory, and an NVIDIA GTX 2080Ti GPU. For the hyperparameters, 100 was chosen as the hidden size of the linear mapping. To learn long-range temporal patterns, a 6-layer RG-TCN was used with dilation factors of 1, 2, 1, 2, 1, 2, a kernel size of 2, and a stride of 1. The activation and normalization layers were Leaky ReLU and layer normalization, respectively. For the gradient descent algorithm, the Adam optimizer was chosen. The batch size was set to 8 and the learning rate was fixed to 0.008.

[0157] 4. Indicators

[0158] In order to quantify the performance of the STAR model and compare it with other baseline methods, the following three indicators are selected:

[0159] (1) MAE (mean absolute error), which is usually used to evaluate the performance of regression tasks.

[0160] (2) RMSE (root mean square error), which is used to indicate the dispersion of samples. For nonlinear fitting, the smaller the RMSE, the higher the regression accuracy.

[0161] (3)MAPE (median absolute percentage error), used to estimate the relative absolute error.

[0162] 5. Filling performance

[0163] The STAR model of Example 1 is compared with other baselines under different data missing conditions, because the STAR model is trained with three data missing masks and the random missing rate is set to 20%. For the training set and the test set, 200 30-minute segments are deleted from each sensor, leaving 25% of the sensors unsampled. The experimental results are shown in Table 3:

[0164] Table 3 Model performance under different filling tasks

[0165]

[0166] The following conclusions can be drawn from Table 3:

[0167] High performance. Comparing the STAR model with two mathematical models and two GNNs, the STAR model consistently outperforms the baseline methods by a large margin across a variety of infill tasks.

[0168] Robustness. The performance of filling in highly corrupted data was evaluated under the three data missing conditions. The STAR model achieved MAEs of 2.63 and 4.74 in PEMS-Bay and METR-LA, respectively, which are 44% and 29% higher than the best baseline model. The high filling performance under such highly corrupted data inputs shows that the STAR model is very robust.

[0169] Flexibility. The STAR model is trained with random missing data and fills the missing data according to a given mask, so that three types of missing data filling can be supported in one model. According to Table 3, the STAR model achieves highly competitive performance in all types of filling tasks. This feature can help ITS significantly reduce the cost of the entire model life cycle.

[0170] 6. Impact of window size

[0171] Table 4 shows the filling accuracy of the STAR model and other baseline methods for 24-step, 36-step, 48-step, and 60-step (2 hours to 5 hours, 1 hour per step) data recovery tasks on the METR-LA and Seattle highway datasets. The STAR model achieves the best recovery accuracy for all levels under almost all evaluation metrics except RMSE, thus providing effectiveness for the spatiotemporal-aware data recovery task.

[0172] Table 4 Performance comparison of different time steps

[0173]

[0174] Table 4 shows three important features of the STAR model:

[0175] (1) High recovery accuracy. The STAR model extracts temporal features and generally has better prediction performance than other methods such as IGNNK and Average. For example, for 24-step recovery, STAR outperforms IGNNK by 20.7% and 11.7% on METR-LA and PEMS-Bay, respectively. The MAPE error of STAR is significantly smaller than that of IGNNK. The main reason for this phenomenon is the neglect of internal temporal patterns.

[0176] (2) Spatiotemporal recovery capability. To demonstrate that the STAR model is able to capture both spatial and temporal dependencies, variants of the STAR model are compared with IGNNK. As shown in Figure 6(a), the method with temporal feature extraction achieves better recovery accuracy than the baseline method, indicating that the temporal feature extraction module can capture temporal patterns from traffic data. In addition, according to Figure 6(b), the RMSE error is reduced by enabling spatial attention, indicating that the attention-based spatial model captures long-range spatial correlations beyond the predefined graph structure. Finally, the best performance is achieved only by utilizing spatiotemporal features, indicating the presence of spatiotemporal dependencies.

[0177] 7. Remote recovery.

[0178] The results show that the STAR model always achieves the best recovery performance regardless of the change in prediction length. The performance stabilizes as the time step increases. Therefore, the STAR model is suitable for both short-term and long-term filling. Figure 7(a) shows the changes in MAE and RMSE for different recovery lengths. It can be seen that it changes slowly with the substantial increase in the time step. Figure 7(b) compares the STAR model with the baseline, demonstrating that it still performs better than all other methods.

[0179] 8. Ablation study

[0180] In order to examine the impact of key factors that affect STAR performance improvement, experiments were conducted on two traffic datasets. This example focuses on three factors: spatial blocking, temporal blocking, and external attention. For each factor, a new model is established by removing the corresponding block, and the variants of STAR are named as follows:

[0181] w / o EA: STAR without the adaptive weighted external attention module to capture semantic similarity, replacing the graph convolutional layers with diffuse convolutions.

[0182] w / o T: STAR without the temporal feature extraction branch before the graph convolutional layer.

[0183] w / o S: STAR without spatial feature extraction branch.

[0184] The performance is evaluated using an early stopping strategy to prevent overfitting, and the experimental results are given in Table 5. The introduction of the external attention module significantly improves the performance as it provides a global sample attention with a trainable fraction. Ablation studies on feature extraction, i.e., spatial features only (w / o T) and temporal features only (w / o S), degrade the performance. It can be seen that the accuracy of semantic feature extraction drops sharply, which indicates that the traffic sensor data sequences have strong correlations and rich semantic similarities.

[0185] Table 5 Ablation study of different modules

[0186]

[0187] 9. Time Series Forecasting

[0188] If the mask is changed to force the model to fill in missing values ​​at the end of the observation window, the time series prediction problem can be applied to the data filling framework of the present invention. The time series prediction results are shown in Table 6.

[0189] Table 6 Time series prediction accuracy of traffic dataset

[0190]

[0191] The results show that the STAR model has competitive performance in time series forecasting, even though it is designed for data filling. The STAR model has a clear advantage in long-term forecasting tasks compared to other baselines. In addition, the STAR model has lower RMSE and MAPE because the upcoming sensor data of all nodes are predicted in one forward calculation. The results show that direct multi-step forecasting has higher accuracy due to the lack of error accumulation.

[0192] What is disclosed above is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or modifications within the technical scope disclosed in the present invention, which should be covered within the protection scope of the present invention.

Claims

1. A data recovery method, characterized in that: The steps include: Step 1: Construct the structure graph G = (N, E, A) of the known sensor network in the intelligent transportation system, where N represents the set of known sensor nodes, E represents the set of links between known sensor nodes, and A represents the adjacency matrix of the structure graph G. Each element a in the adjacency matrix A is ij Defined as: Among them, d ij represents the distance between known sensor node i and known sensor node j, σ represents the distance d ij The corresponding variance, ε represents the set threshold, ε>0; Construct a collection of sensor collected data in, represents the real number space, n represents the number of known sensor nodes, m represents the number of target sensor nodes, and T represents the sampling interval; in the set X, the value of the position corresponding to the m target sensor nodes is 0; Step 2: Add m target sensors to the structure graph G to obtain a new structure graph G', and construct a data filling task function f, which is specifically expressed as: X′=f(X,M,G′) stX*M=X′*M Among them, X′ represents the result after restoring or completing the set X, the mask M corresponds to the data set X′, and the mask M is used to indicate whether the data collected by the sensor in the data set X is missing, 0 indicates missing, and 1 indicates no missing; Step 3: construct a STAR model, wherein the STAR model includes a parallel spatial feature extraction module and a temporal feature extraction module, a diffusion convolution module composed of a plurality of enhanced diffusion convolution layers, and an output module; Stack the data set X and mask M to get the input Among them, 1-M represents the reverse mask, that is, the 0 in the mask M is transformed into 1, and 1 is transformed into 0; Step 4: Use the temporal feature extraction module to extract the input Perform time feature extraction to obtain the time feature matrix of n+m sensor nodes; The spatial feature extraction module is used to extract the input Perform spatial feature extraction to obtain the spatial feature matrix of n+m sensor nodes; Step 5: Concatenate the temporal feature matrix and the spatial feature matrix in step 4, and use the attention-enhanced diffusion convolution module to simultaneously learn spatial dependency and semantic dependency to obtain new features of the sensor node; each input layer of the attention-enhanced diffusion convolution layer obtains a new feature; Step 6: The new features obtained by each attention-enhanced diffuse convolution layer in step 5 are concatenated, and then linearized to output the completed sensor observation results.

2. The data recovery method according to claim 1, characterized in that: In step 1, the threshold ε is set to 0.

5.

3. The data recovery method according to claim 1, characterized in that: In step 4, the temporal feature extraction module is an RG-TCN model, which includes a linear layer and S residual gated temporal convolutional layers; each residual gated temporal convolutional layer is formed by setting the activation function of the temporal convolutional layer to a gated linear unit.

4. The data recovery method according to claim 3, characterized in that: The specific implementation process of using the RG-TCN model to extract time features is as follows: For the input Perform linearization processing; The first layer of residual gated temporal convolution layer calculates the linearized result. The specific calculation formula is: H' out =tanh(W1*H+b1)⊙sigmoid(W2*H+b2) (a) H out =H' out +φ(H) (b) Among them, H represents the result after linearization processing or the input of the current residual gated temporal convolution layer, H out Represents the computational output of the residual gated temporal convolutional layer, H' out represents the calculation of intermediate quantities, tanh(·) and sigmoid(·) represent activation functions, φ() represents a one-dimensional convolution with a 1×1 kernel, W1 and W2 represent weight parameters, and b1 and b2 represent bias parameters; The calculated output of the previous residual gated temporal convolution layer is used as the input of the current residual gated temporal convolution layer. Formulas (a) and (b) are used to calculate the input to obtain the calculated output, which is then used as the input of the next residual gated temporal convolution layer. This is repeated in turn to obtain the temporal feature matrix of n+m sensor nodes.

5. The data recovery method according to claim 1, characterized in that: In step 4, the spatial feature extraction module is an attention-based spatial model, which includes a linear layer, S residual gated temporal convolution layers, a diffusion map convolution layer and an attention layer; each residual gated temporal convolution layer is formed by setting the activation function of the temporal convolution layer to a gated linear unit.

6. The data recovery method according to claim 5, characterized in that: The specific implementation process of using the attention-based spatial model to extract spatial features is as follows: For the input Perform linearization processing; The first layer of residual gated temporal convolution layer calculates the linearized result. The specific calculation formula is: H' out =tanh(W1*H+b1)⊙sigmoid(W2*H+b2) (a) H out =H' out +φ(H) (b) Among them, H represents the result after linearization processing or the input of the current residual gated temporal convolution layer, H out Represents the computational output of the residual gated temporal convolutional layer, H' out represents the calculation of intermediate quantities, tanh(·) and sigmoid(·) represent activation functions, φ() represents a one-dimensional convolution with a 1×1 kernel, W1 and W2 represent weight parameters, and b1 and b2 represent bias parameters; The calculated output of the previous residual gated temporal convolution layer is used as the input of the current residual gated temporal convolution layer. Formulas (a) and (b) are used to calculate the input to obtain the calculated output, which is then used as the input of the next residual gated temporal convolution layer. This is done by analogy, and finally the temporal features of n+m sensor nodes are obtained. The diffusion graph convolution layer calculates the time characteristics of n+m sensor nodes. The specific calculation formula is: in, represents the output of the diffusion graph convolutional layer, represents the input of the diffusion graph convolution layer or the temporal features of n+m sensor nodes, represents the forward transfer matrix during the k-th diffusion, represents the backward transfer matrix at the kth diffusion, K represents the number of diffusions, W k1 , W k2 All represent learnable parameter matrices; The attention layer calculates the output of the diffusion graph convolution layer to obtain the spatial feature matrix of n+m sensor nodes. The specific calculation formula is: in, represents the output of the attention layer or the spatial features of n+m sensor nodes, EA() represents the attention layer, M k 、M v Both represent trainable parameters.

7. The data recovery method according to any one of claims 1 to 6, characterized in that: In step 5, the specific calculation formula of the new feature of the sensor node is: in, represents the output of the enhanced diffusion convolution layer or the new features of the sensor node, α represents the learnable parameter, EA() represents the attention layer in the spatial feature extraction module, represents the output of the diffusion graph convolution layer in the spatial feature extraction module, represents the input of the diffusion graph convolution layer in the spatial feature extraction module or the temporal features of n+m sensor nodes, represents the forward transfer matrix during the k-th diffusion, represents the backward transfer matrix at the kth diffusion, K represents the number of diffusions, W k1 , W k2 Both represent learnable parameter matrices; M k 、M v Both represent trainable parameters.

8. A data recovery system, characterized in that: include: The first construction unit is used to construct a structure diagram G = (N, E, A) of a known sensor network in an intelligent transportation system and a set of sensor collection data Where N represents the set of known sensor nodes, E represents the set of links between known sensor nodes, A represents the adjacency matrix of the structure graph G, represents the real number space, n represents the number of known sensor nodes, m represents the number of target sensor nodes, and T represents the sampling interval; in the set X, the value of the position corresponding to the m target sensor nodes is 0; each element a in the adjacency matrix A ij Defined as: Among them, d ij represents the distance between known sensor node i and known sensor node j, σ represents the distance d ij The corresponding variance, ε represents the set threshold, ε>0; The second construction unit is used to add m target sensors to the structure graph G to obtain a new structure graph G', and construct a data filling task function f, which is specifically expressed as: X′=f(X,M,G′) stX*M=X′*M in, It represents the result after restoring or completing the set X. The mask M corresponds to the data set X′. The mask M is used to indicate whether the data collected by the sensor in the data set X is missing. 0 indicates missing, and 1 indicates no missing. The stacking unit is used to stack the data set X and the mask M to obtain the input Among them, 1-M represents the reverse mask, that is, the 0 in the mask M is transformed into 1, and 1 is transformed into 0; A model construction unit, used to construct a STAR model, wherein the STAR model includes a parallel spatial feature extraction module and a temporal feature extraction module, an attention-enhanced diffusion convolution module composed of a plurality of attention-enhanced diffusion convolution layers, and an output module; The time feature extraction module is used to input Perform time feature extraction to obtain the time feature matrix of n+m sensor nodes; the spatial feature extraction module is used to extract the input Spatial feature extraction is performed to obtain the spatial feature matrix of n+m sensor nodes; each layer of the attention-enhanced diffusion convolution layer is used to simultaneously learn the spatial dependency and semantic dependency of the matrix spliced ​​by the time feature matrix and the spatial feature matrix to obtain new features of the sensor nodes; the output module is used to splice the new features obtained by each layer of the attention-enhanced diffusion convolution layer, and then perform linearization processing on the multi-layer perceptron to output the completed sensor observation results.

9. A computer device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the data recovery method according to any one of claims 1 to 7 when executing the computer program.

10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the data recovery method according to any one of claims 1 to 7 are implemented.