A multivariate time series forecasting method based on multi-scale adaptive graph learning
Through the multi-scale adaptive graph learning method, the problem that multi-scale time series patterns and implicit correlations are difficult to capture in the existing technology is solved, and accurate prediction of multi-variable time series is achieved, which is suitable for urban traffic flow and household electricity consumption. Prediction and optimization of other scenarios.
Patent Information
- Application Number
- CN202111298623.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN114169394B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of multivariate time series prediction, and in particular to a multivariate time series prediction method using multi-scale adaptive graph learning. Background Art
[0002] Multivariate time series are commonly found in various real-world scenarios, such as urban traffic flow and household electricity consumption in urban blocks. Multivariate time series forecasting is a method for predicting future trends based on a set of historical observational time series, and has been widely studied in recent years. It has a wide range of applications, for example, planning better driving routes in advance based on the predicted traffic flow at each intersection; and designing investment strategies by predicting the recent stock prices of multiple stocks in the stock market.
[0003] Compared with univariate time series prediction, multivariate time series prediction needs to consider both the temporal correlation within a single variable and the correlation between variables (i.e., the predicted value of a single variable will be affected by other variables). To solve this problem, traditional methods, such as vector autoregression, time-regularized matrix factorization, vector autoregression moving average, and Gaussian process, usually rely on strict stationarity assumptions and cannot capture nonlinear dependencies between variables. Deep neural networks show superiority in modeling non-stationary and nonlinear dependencies. In particular, two variants of recurrent neural networks (RNNs), namely long short-term memory networks (LSTM) and gated recurrent neural networks (GRU), and temporal convolutional networks (TCNs) have achieved good performance in time series prediction. In order to capture long-term and short-term temporal correlations, existing works have introduced several strategies, such as skip connections, attention mechanisms, and storage-based networks. These works focus on modeling temporal correlations, treat multivariate time series as vectors, and assume that the predicted value of a single variable will be affected by all other variables, which is unreasonable in practical applications. For example, the traffic flow of a street is largely affected by its neighboring streets, while the impact from distant streets is relatively small. Therefore, it is crucial to explicitly model the correlation between two variables.
[0004] Graphs are abstract data types that represent relationships between nodes. Graph neural networks (GNNs) can effectively capture high-order representations of nodes while explicitly exploiting pairwise correlations, and are considered a promising approach to processing graph data. Multivariate time series prediction can be considered from the perspective of graph modeling. The variables in a multivariate time series can be viewed as nodes in a graph, and pairwise correlations between variables can be viewed as edges. Recently, some studies have combined GNNs to model multivariate time series using the rich structural information of graphs (i.e., node features and weighted edges). These works combine GNNs with temporal convolutional modules to learn temporal patterns and have achieved good results. However, there are still two problems in the above works.
[0005] First, existing studies only consider temporal correlation at a single scale and cannot effectively capture multi-scale temporal patterns (such as daily, weekly, monthly and other specific periodic patterns). Second, existing studies use a fixed-weight adjacency matrix defined by some prior knowledge or artificial experience to represent the correlation between variables, which makes it difficult to effectively characterize those implicit correlations between variables. Summary of the invention
[0006] The present invention provides a multivariate time series prediction method based on multi-scale adaptive graph learning, which can accurately predict the prediction value of a given scene at the next moment.
[0007] A multivariate time series forecasting method based on multi-scale adaptive graph learning, comprising:
[0008] S1: Divide the obtained multivariate time series by sliding the time window to obtain a training sample set, and input the training sample set into the multi-scale pyramid network to obtain a multi-scale initial subsequence set for each training sample, as well as an initial node embedding vector and an initial scale embedding vector for each scale;
[0009] S2: Input the initial node embedding vector and the initial scale embedding vector of each scale into the adaptive graph learning module to obtain the adjacency matrix of each scale;
[0010] S3: The multi-scale initial subsequence set is composed of multiple scale initial subsequences. Each scale initial subsequence is divided into multiple time values in the time dimension. The value of each time and the adjacency matrix of the corresponding scale are simultaneously input into the graph neural network to obtain the representation of the value of each time. The representation of the values of multiple time points constructs the representation sequence of each scale. The representation sequence of each scale is input into the temporal convolutional network to obtain the final subsequence of each scale. The final subsequences of multiple scales construct the multi-scale final subsequence set.
[0011] S4: Input the multi-scale final subsequence set into the multi-scale fusion module for weighted combination to obtain the multi-scale fusion data of each training sample, and input the multi-scale fusion data of each training sample into the multi-layer convolutional neural network mapping to obtain the multivariate time series prediction value of each training sample;
[0012] S5: construct each training sample loss function based on the multivariate sequence prediction value and the true value of each training sample, and construct the training sample set loss function based on multiple training sample loss functions. Iterate steps S2-S4 until the iteration number threshold is met, and obtain the model parameters through the training sample set loss function after iteration, so as to determine the multivariate time series prediction model of multi-scale adaptive graph learning;
[0013] S6: When applied, the multivariate time series, i.e., the historical observation time series of household electricity consumption of urban traffic flow or urban blocks, is input into the multivariate time series prediction model to predict the household electricity consumption of urban traffic flow or urban blocks at the next moment.
[0014] The present invention first preprocesses the time series data and constructs a training data set through sliding window partitioning; secondly, a multi-scale pyramid network is used to decompose the time series layer by layer to construct sub-sequences of different scales in the time dimension; then an adaptive graph learning module is introduced to automatically infer the graph structure at each scale from the data, and fully explore the rich and implicit correlations between variables; then, a graph neural network and a temporal convolutional network are used to model the correlations between variables and time correlations at each scale; finally, a multi-scale fusion module is introduced to automatically consider the importance of each scale representation and capture cross-scale correlations.
[0015] The obtained multivariate time series is divided by sliding time window to obtain the training sample set, including:
[0016] The outliers in the multivariate time series are removed, the multivariate time series with the outliers removed is normalized, a time window is set, and then the multivariate time series under the time window is divided into multiple training samples based on the set time step to obtain a training sample set.
[0017] Input the training sample set into the multi-scale pyramid network to obtain a multi-scale initial subsequence set for each training sample, including:
[0018] The multi-scale pyramid network includes multiple pyramid layers. Each training sample in the training sample set is input into the multi-scale pyramid network. By gradually stacking the pyramid layers, each input training sample obtains an initial subsequence of different scales through each pyramid layer, and finally outputs a multi-scale initial subsequence set for each training sample.
[0019] Each pyramid layer includes two parallel first convolutional networks and second convolutional networks. The initial subsequence obtained from the previous layer is input into the first convolutional network and the second convolutional network respectively, and then the outputs of the first convolutional network and the second convolutional network are bitwise added to obtain the initial subsequence of the current layer.
[0020] The initial node embedding vector and the initial scale embedding vector of each scale are input into the adaptive graph learning module to obtain the adjacency matrix of each scale, including:
[0021] The adaptive graph learning module includes a multi-scale network layer, each scale network layer includes an initial scale embedding vector of the corresponding scale. The initial node embedding vector is simultaneously input into the multi-scale network layer and fused with the initial scale embedding vector of the corresponding scale to obtain the initial scale feature vector. After pairwise similarity calculation of the initial scale feature vector, the calculation result is sparsely processed to obtain the adjacency matrix of each scale.
[0022] The value at each moment and the adjacency matrix of the corresponding scale are simultaneously input into the graph neural network to obtain the representation sequence of the value at each moment, including:
[0023] Each graph neural network includes an in-degree information capture module and an out-degree information capture module. The value at each moment and the adjacency matrix of the corresponding scale are input into the in-degree information capture module and the out-degree information capture module respectively. The output results of the in-degree information capture module and the output results of the out-degree information capture module are fused to obtain the representation sequence of each moment sequence.
[0024] The representation sequence of the k-th scale t-time sequence for:
[0025]
[0026] in, and are the training parameters of the in-degree information capture module and the out-degree information capture module of the k-th scale, respectively. k is the adjacency matrix corresponding to the kth scale, is the in-degree information capture module of the kth scale, is the out-degree information capture module of the k-th scale.
[0027] The multi-scale final subsequence set is input into the multi-scale fusion module for weighted combination to obtain the multi-scale fusion data of each training sample, including:
[0028] The multi-scale final subsequence sets are stacked to obtain a multi-scale final subsequence matrix, the multi-scale final subsequence matrix is pooled to obtain a multi-scale final subsequence one-dimensional vector, the final subsequence one-dimensional vector is input into the refinement module to obtain a scale importance score vector, and the scale importance score vector is fused with the multi-scale final subsequence set to obtain multi-scale fusion data for each sample.
[0029] The scale importance score vector α is:
[0030] α1=ReLU(W1h pool +b1)
[0031] α=Sigmoid(W2α1+b2)
[0032] Among them, h pool is the one-dimensional vector of the multi-scale final subsequence, Sigmoid and ReLU are both activation functions, b1 and b2 are bias vectors, and W1 and W2 are weight matrices.
[0033] The model parameter θ is obtained through the iterative training sample set loss function a for:
[0034]
[0035] θ is the model parameter before iterative training, η is the learning rate, is the loss function of the training sample set, and the model parameter θ a Including the final node embedding vector, the final scale embedding vector, the graph neural network parameters, the adaptive graph learning network parameters and the temporal convolution network parameters.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] A multi-scale pyramid network is used to decompose the multivariate time series into multi-scale sub-sequences, and a multi-scale fusion module is introduced to automatically consider the importance of each scale representation and capture cross-scale correlations. An adaptive graph learning module is designed to automatically infer the graph structure at each scale under an end-to-end framework, fully explore the rich and implicit correlations between variables, and accurately predict the predicted value of a given scenario based on capturing cross-scale correlations and fully exploring the rich and implicit correlations between variables. That is, the historical observation time series of household electricity consumption in urban traffic flow and urban blocks are input into the multivariate time series prediction model to predict the household and industrial electricity consumption of urban traffic flow and urban blocks at the next moment. The driving route is guided based on the urban traffic flow at the next moment to save driving time. The distribution of transmission electricity is guided based on the household and industrial electricity consumption at the next moment to optimize the distribution of electricity. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flowchart of a multivariate time series prediction method for multi-scale adaptive graph learning provided for a specific implementation method;
[0039] Figure 2 A framework diagram of a multivariate time series prediction method for multi-scale adaptive graph learning provided for a specific implementation method;
[0040] Figure 3 An architecture diagram of an adaptive graph learning module provided for a specific implementation;
[0041] Figure 4 The architecture diagram of the multi-scale fusion module provided for a specific implementation scheme. DETAILED DESCRIPTION
[0042] The present invention discloses a multivariate time series prediction method based on multi-scale adaptive graph learning. Figure 1 , as shown in 2, the specific steps are as follows:
[0043] Step 1: Remove outliers from the multivariate time series and normalize the multivariate time series without outliers so that each value after processing is normalized to the range of [-1, 1]. The conversion formula is as follows:
[0044]
[0045] Where X i is the value of the original time series of the i-th variable, X i,min is the minimum value in the original time series of the i-th variable, X i,max is the maximum value in the original time series of the i-th variable, X′ i is the normalized value of the ith variable.
[0046] The time window size T is set artificially based on experience, and the normalized data is divided using a fixed-length sliding step to obtain a training sample set.
[0047] Step 2: Divide the training sample set into batches according to a fixed batch size, and the total number of batches is N. The set batch size M is used to batch the training sample set to obtain multiple training samples, and the total number of batches is N. The specific calculation method is as follows:
[0048]
[0049] Where N Samples is the total number of training samples in the training sample set.
[0050] Step 3: Randomly initialize the learnable initial node embedding vector E nodes and the initial scale embedding vector E at each scale scale .
[0051] Randomly initialize two types of parameters: the node embedding vector E shared among all scales nodes and the initial scale embedding vector E for each scale scale .
[0052] Step 4, sequentially select a batch of training samples with index i from the training sample set, where i ∈ {0, 1, …, N+}. For each training sample in this batch, repeat Steps 5 - 11.
[0053] Step 5, input the training sample set into the multi-scale pyramid network to obtain the multi-scale initial subsequence set of each training sample, that is, the set of initial subsequences X = {X 1 , …, X k , …, X K} of K scales, where X 1 represents the initial subsequence of the original scale, and X k represents the initial subsequence of the k-th (1 < k ≤ K) scale. The specific steps are as follows:
[0054] The multi-scale pyramid network includes multiple pyramid layers. Input each training sample in the training sample set into the multi-scale pyramid network. By gradually stacking the pyramid layers, each input training sample can obtain initial subsequences of different scales through each pyramid layer. The subsequence of the k-th scale is represented by X k . Each pyramid layer contains two parallel convolutional networks:
[0055] The first convolutional network is used to capture local patterns in the time dimension. Different pyramid layers use different convolutional kernel sizes. The initial convolutional kernel has a large receptive field and gradually decreases in each pyramid layer, which can effectively control the receptive field size in the high-level pyramid layers and maintain the sequence characteristics of the large-scale subsequences. The convolutional stride is set to 2 to increase the time scale, so that the length of each decomposed subsequence is half of the length of the input sequence. The calculation formula of the (k - 1)-th layer can be expressed as:
[0056]
[0057] where represents the convolutional operator, ReLU represents the activation function, and represent the convolutional kernel and bias vector of the first convolutional network in the (k - 1)-th pyramid layer respectively, represents the output of the first convolutional network.
[0058] The second convolutional network is to reduce the sensitivity of the model to the hyperparameter settings (i.e., the convolutional kernel size and the stride size) when only using a single convolutional neural network. A 1×1 convolutional kernel and a 1×2 pooling operation are introduced to construct a structure parallel to the first convolutional neural network, which is formally expressed as:
[0059]
[0060] where and represent the convolutional kernel and the bias vector of the second convolutional network in the (k - 1)-th pyramid layer respectively, and Pooling represents the pooling operation.
[0061] Then, the outputs of these two convolutional neural networks are added bitwise:
[0062]
[0063] where X k represents the subsequence at the k-th scale.
[0064] Finally, the multi-scale pyramid network generates a set of initial subsequences at K scales where X 1 represents the initial subsequence at the original scale, and X k represents the initial subsequence at the k-th (1 < k ≤ K) scale.
[0065] Step 6, Feed the initial node embedding vector E nodes and the initial scale embedding vector E scale at each scale into the adaptive graph learning module to obtain K scale-specific adjacency matrices {A 1 , …, A k , …, A K}, where A k represents the k-th (1 ≤ k ≤ K) scale-specific adjacency matrix, as shown in Figure 3 , and the specific steps are as follows:
[0066] The adaptive graph learning module includes a multi-scale network layer. Each scale network layer includes the initial scale embedding vector at the corresponding scale. The initial node embedding vector is input into the multi-scale network layer simultaneously and fused with the initial scale embedding vector at the corresponding scale to obtain the initial scale feature vector. After pairwise similarity calculation on the initial scale feature vector, the calculation result is sparsified to obtain the adjacency matrix at each scale.
[0067] For the k-th scale-specific network layer, the k-th initial scale embedding vector and the initial node embedding vector Enodes To perform a bitwise multiplication:
[0068]
[0069] in Denotes the initial scale embedding vector in the kth layer. Then, similar to the method of calculating node intimacy using similarity function, the similarity of paired nodes is calculated as follows:
[0070]
[0071]
[0072]
[0073] where θ k and are learnable parameters in the kth layer, and tanh and ReLU are activation functions. The values in are normalized to (0-1) as weighted edges. In order to reduce the computational cost of graph convolution, reduce the impact of noise, and make the model more robust, the following strategy is introduced to make Sparsification:
[0074]
[0075] Among them A k is the final adjacency matrix of the kth scale, normalized by the Softmax function, and the sparse function Sparse is defined as:
[0076]
[0077] Where τ is the threshold of the TopK function, indicating the maximum number of neighbors of a node. Finally, we can get the scale-specific adjacency matrix {A 1 , …, A k , …, A K}.
[0078] Step 7: Each time sequence and the adjacency matrix of the corresponding scale are simultaneously input into the graph neural network to obtain the representation sequence of each time sequence. The graph neural network at different times at the same scale shares parameters, and the representation sequence set of all scale subsequences can be obtained. in Represents the representation sequence of the kth (1≤k≤K) scale subsequence after being processed by the graph neural network. The specific steps are:
[0079] Initial subsequence set And the adjacency matrix {A 1 , …, A k , …, A K}, the value of each time in the subsequence of each scale and the corresponding adjacency matrix are sent to the graph neural network respectively, and the graph neural network at different times under one scale shares parameters. For the kth scale, firstly, X is calculated in the time dimension k Divide the time into Introduced A k and A k The transpose of (i.e. (A k ) T ), and use two GNNs modules (in-degree information capture module And out-degree information capture module ) captures both in-degree information and out-degree information. Then, the results of these two GNNs modules are added together:
[0080]
[0081] in, and are the training parameters of the in-degree information capture module and the out-degree information capture module of the k-th scale, respectively. k is the adjacency matrix corresponding to the kth scale, is the in-degree information capture module of the kth scale, is the out-degree information capture module of the kth scale. The output at all times is obtained Finally, we get the representation sequence set of all scale initial subsequences in Represents the representation sequence of the kth (1≤k≤K) scale subsequence after being processed by the graph neural network.
[0082] Step 8: Input the representation sequence set into the temporal convolutional network to obtain the final subsequence of each scale, and construct a multi-scale final subsequence set {h 1 ,…,h k ,…,h K}, where h k It represents the final subsequence of the kth scale (1≤k≤K) after being processed by the temporal convolutional network. The specific steps are:
[0083] The representation sequence of the initial subsequence of each scale is sent to the temporal convolutional network. For the kth scale, Send to the k-th scale temporal convolutional network TCN k To obtain the final representation h of the scale subsequence k :
[0084]
[0085] in represents the trainable parameters in the kth temporal convolutional layer. For each scale, the subsequences corresponding to each variable are fed into the temporal convolutional network with shared parameters. Finally, the final subsequence set {h 1 ,…,h k ,…,h K}, where h k represents the kth (1≤k≤K) final scaled subsequence after processing by the temporal convolutional network.
[0086] Step 9: Input the multi-scale final subsequence set into the multi-scale fusion module for weighted combination to obtain the multi-scale fusion data h for each training sample. m ,like Figure 4 As shown, the specific steps are:
[0087] The multi-scale fusion module combines the multi-scale final subsequence set {h 1 ,…,h k ,…,h K} to perform weighted combination, first {h 1 ,…,h k ,…,h K} stacked up to obtain the multi-scale final subsequence matrix H:
[0088] H = Stac (h 1 ,…,h k ,…,h K )
[0089] Stack represents the stacking operation. Then, the average pooling operation is performed on the scale dimension:
[0090]
[0091] where h pool represents the representation after the pooling operation. Then, h pool Flatten into a one-dimensional vector of the multi-scale final subsequence and input it into a refinement module consisting of two fully connected layers to learn cross-scale information:
[0092] α1=ReLU(W1h pool +b1)
[0093] α=Sigmoid(W2α1+b2)
[0094] Among them, W1 and W2 are weight matrices. b1 and b2 are bias vectors. The second layer uses the Sigmoid activation function. α is defined as the scale importance score vector that measures the importance of all scale representations. Finally, the aggregation layer is used to weightedly combine all scale subsequences to obtain the final representation h m :
[0095]
[0096] Step 10: fused the multi-scale data h of each training sample m Input to the multi-layer convolutional neural network mapping to obtain the multivariate time series prediction value of each training sample The specific steps are:
[0097] Use a convolutional neural network to transform h m Transform it into the desired output dimension and use another convolutional neural network with a 1×1 convolution kernel to get the predicted value
[0098] Step 11, calculate the prediction loss That is, the true value x corresponding to the training sample and the multivariate sequence prediction value of each training sample The specific steps are:
[0099] The present invention uses square error as the prediction loss That is, the true value x corresponding to the training sample and the multivariate time series forecast value of each training sample The error between:
[0100]
[0101] Step 12, loss function of all samples
[0102]
[0103] in is the loss of the mth sample in the batch, and M is the number of samples in each batch.
[0104] The model parameter θ is obtained through the iterative training sample set loss function a for:
[0105]
[0106] θ is the model parameter before iterative training, η is the learning rate, is the loss function of the training sample set, and the model parameter θ a Including the final node embedding vector, the final scale embedding vector, the graph neural network parameters, the adaptive graph learning network parameters and the temporal convolution network parameters.
[0107] Step 13, repeat steps 4-12 until all batches of the training dataset participate in model training.
[0108] Step 14, repeat steps 4-13 until the specified number of iterations is reached.
[0109] Step 15, when applied, inputs the multivariate time series, i.e., the historical observation time series of household electricity consumption of urban traffic flow or urban blocks, into the multivariate time series prediction model to predict the household electricity consumption of urban traffic flow or urban blocks at the next moment.
Claims
1. A multivariate time series prediction method with multi-scale adaptive graph learning, It is characterized in that include: S1: Divide the obtained multivariate time series by sliding the time window to obtain a training sample set, and input the training sample set into the multi-scale pyramid network to obtain a multi-scale initial subsequence set for each training sample, as well as an initial node embedding vector and an initial scale embedding vector for each scale; S2: Input the initial node embedding vector and the initial scale embedding vector of each scale into the adaptive graph learning module to obtain the adjacency matrix of each scale; S3: The multi-scale initial subsequence set is composed of multiple scale initial subsequences. Each scale initial subsequence is divided into multiple time values in the time dimension. The value of each time and the adjacency matrix of the corresponding scale are simultaneously input into the graph neural network to obtain the representation of the value of each time. The representation of the values of multiple time points constructs the representation sequence of each scale. The representation sequence of each scale is input into the temporal convolutional network to obtain the final subsequence of each scale. The final subsequences of multiple scales construct the multi-scale final subsequence set. S4: Input the multi-scale final subsequence set into the multi-scale fusion module for weighted combination to obtain the multi-scale fusion data of each training sample, and input the multi-scale fusion data of each training sample into the multi-layer convolutional neural network mapping to obtain the multivariate time series prediction value of each training sample; S5: construct each training sample loss function based on the multivariate sequence prediction value and the true value of each training sample, and construct the training sample set loss function based on multiple training sample loss functions. Iterate steps S2-S4 until the iteration number threshold is met, and obtain the model parameters through the training sample set loss function after iteration, so as to determine the multivariate time series prediction model of multi-scale adaptive graph learning; S6: When applied, a multivariate time series, i.e., a historical observation time series of household electricity consumption in urban traffic flow or urban blocks, is input into a multivariate time series prediction model to predict household and industrial electricity consumption in urban traffic flow or urban blocks at the next moment, and a driving route is guided based on the urban traffic flow at the next moment, and the distribution and transmission of electricity is guided based on household and industrial electricity consumption at the next moment; Input the training sample set into the multi-scale pyramid network to obtain a multi-scale initial subsequence set for each training sample, including: The multi-scale pyramid network includes multiple pyramid layers. Each training sample in the training sample set is input into the multi-scale pyramid network. By gradually stacking the pyramid layers, each input training sample obtains an initial subsequence of different scales through each pyramid layer, and finally outputs a multi-scale initial subsequence set of each training sample. Each pyramid layer includes two parallel first convolutional networks and second convolutional networks. The initial subsequence obtained from the previous layer is input into the first convolutional network and the second convolutional network respectively, and then the outputs of the first convolutional network and the second convolutional network are bitwise added to obtain the initial subsequence of the current layer. The initial node embedding vector and the initial scale embedding vector of each scale are input into the adaptive graph learning module to obtain the adjacency matrix of each scale, including: The adaptive graph learning module includes a multi-scale network layer, each scale network layer includes an initial scale embedding vector of the corresponding scale, the initial node embedding vector is simultaneously input into the multi-scale network layer, and fused with the initial scale embedding vector of the corresponding scale to obtain the initial scale feature vector, after pairwise similarity calculation is performed on the initial scale feature vector, the calculation result is sparsely processed to obtain the adjacency matrix of each scale; The value at each moment and the adjacency matrix of the corresponding scale are simultaneously input into the graph neural network to obtain the representation sequence of the value at each moment, including: Each graph neural network includes an out-degree information capture module and an in-degree information capture module. The value at each moment and the adjacency matrix of the corresponding scale are respectively input into the in-degree information capture module and the out-degree information capture module. The output results of the in-degree information capture module and the output results of the out-degree information capture module are fused to obtain the representation sequence of each moment sequence. The representation sequence of the k-th scale t-time sequence for: in, and are the training parameters of the in-degree information capture module and the out-degree information capture module of the k-th scale, respectively. k is the adjacency matrix corresponding to the kth scale, is the in-degree information capture module of the kth scale, is the out-degree information capture module of the k-th scale; The multi-scale final subsequence set is input into the multi-scale fusion module for weighted combination to obtain the multi-scale fusion data of each training sample, including: The multi-scale final subsequence set is stacked to obtain a multi-scale final subsequence matrix, the multi-scale final subsequence matrix is pooled to obtain a multi-scale final subsequence one-dimensional vector, the final subsequence one-dimensional vector is input into the refinement module to obtain a scale importance score vector, and the scale importance score vector is fused with the multi-scale final subsequence set to obtain multi-scale fused data for each sample; The scale importance score vector α is: α 1 =ReLU(W 1 h pool +b 1 ) α=Sigmoid(W 2 a 1 +b 2 ) Among them, h pool is the one-dimensional vector of the final subsequence of multiple scales, Sigmoid and ReLU are both activation functions, b 1 and b 2 is the bias vector, W 1 and W 2 is the weight matrix.
2. The multivariate time series prediction method based on multi-scale adaptive graph learning according to claim 1, It is characterized in that The obtained multivariate time series is divided by sliding time window to obtain the training sample set, including: The outliers in the multivariate time series are removed, the multivariate time series with the outliers removed is normalized, the time window and the time step are set, and the multivariate time series under the time window is divided into multiple training samples based on the set time step to obtain a training sample set.
3. The multivariate time series prediction method based on multi-scale adaptive graph learning according to claim 1, It is characterized in that The model parameter θ is obtained through the iterative training sample set loss function a for: θ is the initial model parameter before iterative training, η is the learning rate, is the loss function of the training sample set, and the model parameter θ a Including the final node embedding vector, the final scale embedding vector, the graph neural network parameters, the adaptive graph learning network parameters and the temporal convolution network parameters.
