Multi-channel time sequence prediction method based on space-time diagram neural network

By using a method based on latent time maps and gated augmented nerve ordinary differential equations, the shortcomings of spatial and temporal modeling in multi-channel time series forecasting are addressed, the forecasting accuracy is improved, and more precise multi-channel time series forecasting is achieved.

CN118885758AActive Publication Date: 2024-11-01SHENYANG INST OF AUTOMATION - CHINESE ACAD OF SCI

Patent Information

Application Number
CN202411009834.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-01
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Existing multi-channel time series forecasting methods fail to effectively capture dynamic spatial correlations during spatial modeling, and the discrete nature of recursive networks and data resolution limit the capture of time information, resulting in insufficient prediction accuracy.

Method used

We employ a spatial modeling method based on latent temporal graphs and continuous-time modeling of gated augmented neural regular differential equations. We generate a dynamic spatial model through a temporal embedding generator and adaptive graph convolution, and enhance the model's ability to extract dynamic spatial and multi-scale temporal information by utilizing random graph attention and temporal attention.

Benefits of technology

It improves the prediction accuracy of multi-channel time series data, enhances the accuracy of spatial modeling and the continuity of temporal modeling, and strengthens the ability to capture dynamic spatial and multi-scale temporal information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885758A_ABST
    Figure CN118885758A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-channel time sequence prediction method based on a space-time diagram neural network. Firstly, a potential time graph is generated through a time embedding generator and adaptive graph convolution by using time information extracted from data, and meanwhile, a dynamic space model is generated by combining the data with the potential time graph through adaptive graph convolution and random graph attention. And embedding the generated dynamic space model into a time dimension by using a gating augmented Sheng differential equation, and then completing modeling of the whole time dimension through time attention. The method solves the problem that an existing method is difficult to capture dynamic spatial correlation. According to the continuous time modeling method of the Sheng differential equation based on gating augmentation, the problem that the model performance is reduced due to the limitation of the resolution ratio and the dimension of data in an existing method is solved. According to the invention, the ability of the model to extract dynamic space information and multi-scale time information is improved, and the prediction precision of multi-channel time sequence data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to time series data mining prediction, in particular to a multi-channel time series prediction method based on a spatiotemporal graph neural network. Background Art

[0002] Multi-channel time series prediction is an important topic in data science and machine learning, and is widely used in financial market prediction, weather forecast, energy load forecast, and health monitoring. With the development of the Internet of Things and sensor technology, it is becoming easier to obtain high-frequency and multi-dimensional data, but how to effectively use this data for accurate prediction is a major challenge. Therefore, researching and developing advanced multi-channel time series prediction methods has important theoretical significance and practical application value.

[0003] Currently, commonly used methods include traditional statistical models such as the autoregressive integrated moving average model (ARIMA), and deep learning models such as long short-term memory networks (LSTM) and convolutional neural networks (CNN). These methods have shown varying degrees of advantages and disadvantages when processing complex time series data. In order to further improve the prediction accuracy, researchers have begun to explore methods that combine multiple models, such as hybrid models and ensemble learning. In recent years, spatiotemporal graph neural networks have attracted much attention due to their outstanding performance. A common method is to integrate graph convolutional neural networks into recurrent neural networks, which have been widely used in multi-channel time series prediction.

[0004] However, the current models based on this method, such as the diffuse convolutional recurrent neural network (DCRNN), adaptive graph convolutional recurrent network (AGCRN), and dynamic graph convolutional recurrent network (DGCRN), have deficiencies in extracting dynamic spatial features because they do not consider the correlation between each time interval when modeling space. On the other hand, when existing methods are based on recursive networks for temporal modeling, they are unable to capture temporal information of more scales due to the discrete nature of the recursive network itself and the resolution of the data itself. Summary of the invention

[0005] The present invention discloses a multi-channel time series prediction method based on a spatiotemporal graph neural network. First, data preprocessing and time information extraction are performed on the multi-channel time series data, and then the spatial dimension and time dimension modeling are performed on the processed data, and finally the desired prediction results are obtained. For spatial modeling, the present invention proposes a spatial modeling method based on a latent time graph, which solves the shortcomings of the existing methods in capturing dynamic spatial correlation. We first construct a latent time graph through a time embedding generator and an adaptive graph convolution, which indirectly simulates the dynamic space by aggregating the spatial information of each time, and combines it with random graph attention to generate a dynamic space model. In addition, the present invention also proposes a continuous time modeling method based on a gated augmented neural ordinary differential equation, which solves the problem that the existing method has a decreased prediction accuracy due to the discrete nature of the recursive network itself and the limitation of the resolution of the data itself. Through the above method, we improve the ability of the model to extract dynamic spatial information and multi-scale time information, thereby improving the prediction accuracy of multi-channel time series data.

[0006] The technical solution adopted by the present invention to achieve the above-mentioned purpose is:

[0007] The multi-channel time series prediction method based on spatiotemporal graph neural network includes the following steps:

[0008] S1, collect multi-channel time series data;

[0009] S2, preprocess the data, extract time information, and divide the data set;

[0010] S3, spatial modeling: Use the time information extracted from the data to generate a potential time graph model through a time embedding generator and adaptive graph convolution; at the same time, use the data itself to obtain a static spatial model through adaptive graph convolution and random graph attention; combine to generate a dynamic spatial model, the output h of the dynamic spatial model is the output of the static spatial model The output of the latent temporal graph model To overlay;

[0011] S4, temporal modeling: The generated dynamic spatial model is embedded into the temporal dimension using the gated augmented neural ordinary differential equation, so that the spatial model at each time corresponds to the temporal model one by one; the modeling of the entire temporal dimension is completed through temporal attention, and the temporal dimension model output is obtained;

[0012] S5. Using the data in the dataset as input, repeat steps 3 and 4 to iteratively train the dynamic space model and the time dimension model, select the model parameters with the best accuracy as the final optimization model, and predict the future time series data of each channel based on the historical data.

[0013] The multi-channel time series data is different attribute data collected by multiple sensors distributed at different locations at preset sampling time intervals.

[0014] The preprocessing is data standardization, and the extracted time information is the real time information when the data is collected.

[0015] The divided data set is divided into a training set, a validation set and a test set in proportion; the training set data is used for training and cutoff according to a set number of iterations; the validation set data is used to verify the accuracy of the model; and the test set data is used for testing.

[0016] The establishment of the static space model includes:

[0017] Define the preprocessed data as X, and calculate the output Z of the data X after passing through adaptive graph convolution and random graph attention according to formula 1;

[0018] Z=(I+A)XW (1)

[0019] Among them, I is the identity matrix, W is the learnable weight coefficient, and A is the adjacency matrix of the spatial graph; for adaptive graph convolution, For random graph attention, Where Softmax and Relu are activation functions, E 1 and E 2 are two learnable matrices, and Mask is a random mask;

[0020] Then the outputs after adaptive graph convolution and random graph attention are superimposed to generate the output processed by the static spatial model

[0021] The establishment of the potential time map includes:

[0022] The temporal information of the data is encoded with days and weeks as a period, and the day embedding T is generated through the nonlinear layer Y = f(X) D and Zhou embedded T W , where f(·) is a nonlinear mapping;

[0023] Compute time embedding X T =T D ⊙T W , where ⊙ represents element-wise multiplication;

[0024] Output of latent temporal graph is obtained through adaptive graph convolution

[0025] The method based on gated augmented neural ordinary differential equations includes:

[0026] The continuous-time modeling of spatially modeled data is performed using Neural Ordinary Differential Equations to simulate the continuous evolution of the system and to more comprehensively capture the temporal information at different scales.

[0027]

[0028] Where F is the vector field generated by the dynamic space model, θ is a learnable parameter, and X t With h t They represent the input data and the output of the dynamic space model at time t, respectively, and Δt is the time interval;

[0029] After modeling Δt time, the long-term dependencies in the data are captured through the gating mechanism to alleviate the forgetting problem of continuous-time modeling, and ordinary differential equations are used to continue continuous-time modeling;

[0030]

[0031] Where W h and W x is a learnable weight parameter, and Sigmoid is the activation function;

[0032] Repeat the above steps until the model is built to the final time point that needs to be predicted, and obtain a set H of future prediction data for any set time interval Δt.

[0033] The modeling of the entire time dimension through time attention includes:

[0034] Define H as the output containing multiple continuous-time modeling, and obtain the query Q = f(H), key value K = f(H) and truth value V = f(H) through the nonlinear layer;

[0035] By assigning different attention weights to data at different time steps through time attention, the entire time dimension is modeled so that the final prediction data Y is obtained without relying on the most recent time step.

[0036]

[0037] Where D is the degree matrix of V and Gelu is the activation function.

[0038] The present invention has the following beneficial effects and advantages:

[0039] Compared with the existing optimal methods in multi-channel time series prediction based on spatiotemporal graph neural network, the present invention selects to aggregate the spatial information of each time to indirectly simulate the dynamic space in the modeling of spatial dimension, which improves the accuracy of spatial modeling, and selects a continuous time modeling method based on gated augmented neural ordinary differential equations in the modeling of time dimension, which improves the accuracy of time modeling. In general, the present invention improves the prediction accuracy in multi-channel time series prediction based on spatiotemporal graph neural network. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 The figure is a flow chart of the method of the present invention.

[0041] Figure 2 The figure is a flow chart of the spatiotemporal modeling method of the present invention.

[0042] Figure 3 The present invention is a flow chart of the continuous-time modeling method based on the gated augmented neural ordinary differential equation. DETAILED DESCRIPTION

[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation method of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the invention, so the present invention is not limited by the specific implementation disclosed below.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0045] like Figure 1 The flowchart of the method of the present invention is shown in FIG. By training the historical multi-channel time series data, capturing the correlation between multiple channels, learning the multi-scale time features and dynamic space features, and predicting the future multi-channel time series data.

[0046] The programming language used in the program execution step of the present invention is not limited to MATLAB, Python, etc.

[0047] The specific steps of the present invention are as follows:

[0048] Step 1: Collect multi-channel time series data (taking the traffic network as an example, the traffic flow, traffic speed and other data of each road can be used as multi-channel time series data).

[0049] Step 2: Subtract the sample mean from each data point, normalize the variance, and generate a sequence of the specific collection time of each data point.

[0050] Step 3: Model the spatial dimension of the data using a temporal embedding generator, adaptive graph convolution, and random graph attention.

[0051] Step 3-1: Figure 2 As shown in the figure, the preprocessed data is passed through adaptive graph convolution and random graph attention to obtain a static spatial model. Adaptive graph convolution can more effectively extract and utilize global features in the data by flexibly modeling the graph structure. Random graph attention calculates attention weights by randomly selecting neighbor nodes, thereby adapting to different graph structures and extracting local features in the data.

[0052] For example, if the preprocessed data is X, the output Z of the original data X after passing through adaptive graph convolution and random graph attention is calculated according to formula 1.

[0053] Z=(I+A)XW (1) Where X is the input data, I is the identity matrix, W is the learnable weight coefficient, and A is the adjacency matrix of the spatial graph. For adaptive graph convolution, For random graph attention, Where Softmax and Relu are activation functions, E 1 and E 2 are two learnable matrices, and Mask is a random mask. The outputs of the two are then superimposed to generate the output processed by the static space model.

[0054] Step 3-2: Figure 2 As shown in the figure, the temporal information of the data is used by the time embedding generator and combined with adaptive graph convolution to generate a latent time graph. The time embedding generator uses the temporal information of the data to form day embedding codes and week embedding codes in order to allow the model to distinguish the spatial information corresponding to different times. The latent time graph is to aggregate the spatial information of each time, add the spatial change information of different times to the previously obtained static spatial model, and form a dynamic spatial model.

[0055] Specifically, the time information of the data is encoded with days and weeks as a period, and the day embedding T is generated through the nonlinear layer Y = f(X). D and Zhou embedded T w , where f(·) is a nonlinear mapping. Then according to the formula T D ⊙T W Get time embedding X T , that is, X T =T D ⊙Tw , where ⊙ represents element-wise multiplication, and the output of the latent time graph is obtained through adaptive graph convolution. Finally, the output of the static space model It is superimposed with the output h of the dynamic space model. It should be noted that the adaptive graph convolution in this step does not interact with the adaptive graph convolution in step 3-1, and the two are performed independently.

[0056] Step 4: Model the time dimension of the data using gated augmented neural ordinary differential equations and temporal attention.

[0057] Step 4-1: Figure 2 As shown in the figure, the data of spatial modeling is embedded into the time dimension through the method based on gated augmented neural ordinary differential equations, so that the spatial model at each time corresponds to the time model one by one. The specific process of the method based on gated augmented neural ordinary differential equations is as follows: Figure 3 This method first uses the Neural Ordinary Differential Equation to model the spatially modeled data in continuous time, as shown in Formula 2. The Neural Ordinary Differential Equation is not limited by discrete time intervals and the resolution of the data itself, and can simulate the continuous evolution of the system, thereby more comprehensively capturing time information at different scales.

[0058]

[0059] Where F is the vector field generated by the dynamic space model, θ is a learnable parameter, and X t With h t They represent the input data at time t and the output of the dynamic space model respectively, and Δt is the time interval.

[0060] After modeling Δt time, the long-term dependency in the data is captured through the gating mechanism according to Formula 3 to alleviate the forgetting problem of continuous time modeling, and then the continuous time modeling is continued using ordinary differential equations. Repeat the above steps until the modeling reaches the final time point that needs to be predicted. A set H of future prediction data for any set time interval Δt can be obtained.

[0061]

[0062] Among them, M t+△t is the gating mechanism, W h and W x is a learnable weight parameter and Sigmoid is the activation function.

[0063] Step 4-2: Figure 2As shown in the figure, after completing the continuous time modeling based on the gated augmented neural ordinary differential equation, the modeling of the entire time dimension is completed through time attention. Time attention is to assign different attention weights to data at different time steps, so that the model can better understand and utilize historical information, rather than just relying on the most recent time step. For example, H is the output containing multiple continuous time modeling (that is, the set of future prediction data with any set time interval Δt obtained in the previous step), and the query Q = f(H), key value K = f(H) and true value V = f(H) are obtained through the nonlinear layer, and the final output Y is obtained according to formula 4.

[0064]

[0065] Where D is the degree matrix of V and Gelu is the activation function.

[0066] Step 5: Repeat steps 3 and 4, and select the model with the best accuracy to predict the future status of each channel based on the provided historical data.

[0067] The embodiments described in the above description will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

Claims

1. A multi-channel time series prediction method based on spatiotemporal graph neural network, characterized in that: The steps include: S1, collect multi-channel time series data; S2, preprocess the data, extract time information, and divide the data set; S3, spatial modeling: Use the time information extracted from the data to generate a potential time graph model through a time embedding generator and adaptive graph convolution; at the same time, use the data itself to obtain a static spatial model through adaptive graph convolution and random graph attention; combine to generate a dynamic spatial model, the output h of the dynamic spatial model is the output of the static spatial model The output of the latent temporal graph model To overlay; S4, temporal modeling: The generated dynamic spatial model is embedded into the temporal dimension using the gated augmented neural ordinary differential equation, so that the spatial model at each time corresponds to the temporal model one by one; the modeling of the entire temporal dimension is completed through temporal attention, and the temporal dimension model output is obtained; S5. Using the data in the dataset as input, repeat steps 3 and 4 to iteratively train the dynamic space model and the time dimension model, select the model parameters with the best accuracy as the final optimization model, and predict the future time series data of each channel based on the historical data.

2. The multi-channel time series prediction method based on spatiotemporal graph neural network according to claim 1 is characterized in that: The multi-channel time series data is different attribute data collected by multiple sensors distributed at different locations at preset sampling time intervals.

3. The multi-channel time series prediction method based on spatiotemporal graph neural network according to claim 1 is characterized in that: The preprocessing is data standardization, and the extracted time information is the real time information when the data is collected.

4. The multi-channel time series prediction method based on spatiotemporal graph neural network according to claim 1 is characterized in that: The divided data set is divided into a training set, a validation set and a test set in proportion; the training set data is used for training and cutoff according to a set number of iterations; the validation set data is used to verify the accuracy of the model; and the test set data is used for testing.

5. The multi-channel time series prediction method based on spatiotemporal graph neural network according to claim 1 is characterized in that: The establishment of the static space model includes: Define the preprocessed data as X, and calculate the output Z of the data X after passing through adaptive graph convolution and random graph attention according to formula 1; Z=(I+A)XW (1) Among them, I is the identity matrix, W is the learnable weight coefficient, and A is the adjacency matrix of the spatial graph; for adaptive graph convolution, For random graph attention, Where Softmax and Relu are activation functions, E1 and E2 are two learnable matrices, and Mask is a random mask; Then the outputs after adaptive graph convolution and random graph attention are superimposed to generate the output processed by the static spatial model 6. The multi-channel time series prediction method based on spatiotemporal graph neural network according to claim 1 is characterized in that: The establishment of the potential time map includes: The temporal information of the data is encoded with days and weeks as a period, and the day embedding T is generated through the nonlinear layer Y = f(X) D and Zhou embedded T W , where f(·) is a nonlinear mapping; Compute time embedding X T =T D ⊙T W , where ⊙ represents element-wise multiplication; Output of latent temporal graph is obtained through adaptive graph convolution 7. The multi-channel time series prediction method based on spatiotemporal graph neural network according to claim 1 is characterized in that: The method based on gated augmented neural ordinary differential equations includes: The continuous-time modeling of spatially modeled data is performed using Neural Ordinary Differential Equations to simulate the continuous evolution of the system and to more comprehensively capture the temporal information at different scales. Where F is the vector field generated by the dynamic space model, θ is a learnable parameter, and X t With h t They represent the input data and the output of the dynamic space model at time t, respectively, and Δt is the time interval; After modeling Δt time, the long-term dependencies in the data are captured through the gating mechanism to alleviate the forgetting problem of continuous-time modeling, and ordinary differential equations are used to continue continuous-time modeling; Where W h and W x is a learnable weight parameter, and Sigmoid is the activation function; Repeat the above steps until the model is built to the final time point that needs to be predicted, and obtain a set H of future prediction data for any set time interval Δt.

8. The multi-channel time series prediction method based on spatiotemporal graph neural network according to claim 1 is characterized in that: The modeling of the entire time dimension through time attention includes: Define H as the output containing multiple continuous-time modeling, and obtain the query Q = f(H), key value K = f(H) and truth value V = f(H) through the nonlinear layer; By assigning different attention weights to data at different time steps through time attention, the entire time dimension is modeled so that the final prediction data Y is obtained without relying on the most recent time step. Where D is the degree matrix of V and Gelu is the activation function.

Citation Information

Patent Citations

  • Mixed reality simulation for autonomous systems

    CA3219878A1

  • Traffic speed prediction method and device, electronic equipment and computer readable medium

    CN112863180A

  • Urban rail passenger flow prediction method based on dynamic multi-graph and multi-dimensional attention space-time neural network

    CN117454119A

  • Systems and methods for a bayesian spatiotemporal graph transformer network for multi-aircraft trajectory prediction

    US20240054329A1

Cited By

  • Device and method for predicting service life of super capacitor under large current overload condition

    CN119556047A

  • Real-time ocean simulation method and system based on sensing data

    CN121389457A