High-dimensional multivariable time series data prediction method and device and storage medium
By introducing Koopman regularization terms and deep learning models into high-dimensional multivariable time series prediction, combined with autoencoders and Koopman operators, the problems of low prediction accuracy and overfitting in the existing technology are solved, achieving more accurate and Robust prediction performance.
Patent Information
- Application Number
- CN202411018045.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-08-27
AI Technical Summary
The existing technology has low prediction accuracy for high-dimensional multi-variable time series, and it is difficult to accurately capture complex relationships and time series context. Narrow time windows lead to poor prediction results, and wide time windows may lead to model overfitting.
By introducing the Koopman regularization term, the deep learning model is used to map the high-dimensional multi-variable time series to the low-rank subspace, and the autoencoder and the deep learning time model are combined to perform Gram-Schmidt orthogonalization processing and simulation of the Koopman operator, balancing Nonlinear and linear dynamics reduce the risk of overfitting.
It improves the prediction accuracy of high-dimensional multi-variable time series, effectively captures nonlinear time dependencies and retains linear evolution information, reduces information loss and over-fitting risks, and provides a more robust prediction method.
Smart Images

Figure CN118551808A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of deep learning technology, and in particular to a high-dimensional multivariate time series data prediction method, device and storage medium. Background Art
[0002] Traditional time series prediction methods mainly rely on statistical models, such as the Auto Regressive (AR) model and the Moving Average (MA) model, as well as their many variant models. These methods have laid a theoretical and technical foundation for time series prediction. With the rapid development of machine learning, especially deep learning, time series prediction methods have made significant progress. These advances have ushered in a new era, in which support vector regression (SVR), Gaussian processes (GP), convolutional neural networks (CNN), recurrent neural networks (RNN), graph neural networks (GNN) and transformers have become the main pillars of time series prediction work. In the field of control, Azencot et al. introduced a Consistent Koopman AE model that incorporates the physical structure of time series data and utilizes forward and backward dynamics. Yeung et al. used the automated dictionary method to improve the performance of the Koopman operator, especially for long-term prediction tasks. Among the latest recurrent neural network methods, encoder-decoder architecture and attention-based encoder-decoder networks have become the most effective methods for time series prediction tasks. The encoder-decoder network built on LSTM or GRU encodes the input sequence into a vector of fixed length and uses a decoder to generate prediction results. The encoder processes the input sequence, captures relevant information, and then the decoder uses the encoded information to generate the output sequence, so it is very suitable for time series prediction tasks. In the process of implementing the present invention, the inventor found that: the existing technology has low prediction accuracy for high-dimensional multivariate time series, and has certain limitations in capturing complex relationships covering multiple variables. Specifically: the model performance depends to a large extent on the historical context, and the existing technology may have limited understanding of the time series context when predicting, and it is difficult to accurately predict future data; narrower time windows may lead to worse prediction results due to limited context, while wider time windows can enhance prediction capabilities, but may complicate the model and cause overfitting; different patterns may appear in time series data, and the existing technology cannot guarantee that all observed variables follow their respective patterns.
[0003] Therefore, how to improve the prediction accuracy of high-dimensional multivariate time series has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art or related technology, and discloses a high-dimensional multivariate time series data prediction method, device and storage medium. By incorporating the Koopman regularization term, the information characteristics of the latent variables are enriched, the prediction performance is improved, the information loss is effectively reduced, and the risk of model overfitting is reduced.
[0005] The first aspect of the present invention discloses a method for predicting high-dimensional multivariate time series data, comprising: receiving a high-dimensional multivariate time series, mapping the high-dimensional multivariate time series into latent variables in a low-rank subspace through a first encoder to obtain a first latent variable matrix; dividing the first latent variable matrix into a first historical embedding sequence and a first predicted embedding sequence, wherein the first historical embedding sequence is the first several columns of the first latent variable matrix, and the first predicted embedding sequence is the remaining columns of the first latent variable matrix; using a deep learning time model to model the time evolution of the first latent variable matrix to achieve forward prediction and obtain a first predicted sequence; combining the first historical embedding sequence and the first predicted sequence and inputting them into a first decoder to restore the first predicted sequence from a low-dimensional embedding to an original state and obtain a first prediction result; modeling Koopman regularization through a second encoder and a second decoder: The sequence is subjected to Gram-Schmidt orthogonalization processing to obtain an orthogonal result; the orthogonal result is embedded into the latent variable by a second encoder to obtain a second latent variable matrix, and a linear layer for encoding dynamics is used to simulate the Koopman operator; the second latent variable matrix is divided into a second historical embedding sequence and a second predicted embedding sequence, wherein the second historical embedding sequence is the first several columns of the second latent variable matrix, and the second predicted embedding sequence is the remaining columns of the second latent variable matrix; the Koopman operator is used to propagate forward time according to the second historical embedding sequence to obtain a second predicted sequence; the second historical embedding sequence and the second predicted sequence are combined and input into a second decoder to obtain a second predicted result; the second predicted result is subjected to reverse Gram-Schmidt orthogonalization processing to obtain a linear dynamic prediction result; and the Koopman regularization loss of the linear dynamic prediction result and the first prediction result is calculated.
[0006] According to the high-dimensional multivariate time series data prediction method disclosed in the present invention, preferably, it also includes: calculating the reconstruction loss of the first prediction result and the high-dimensional multivariate time series to guide the learning process of the first encoder and the first decoder in the low-dimensional nonlinear subspace.
[0007] According to the high-dimensional multivariate time series data prediction method disclosed in the present invention, preferably, it also includes: calculating the potential time prediction loss of the first prediction sequence and the first prediction embedded sequence.
[0008] According to the high-dimensional multivariate time series data prediction method disclosed in the present invention, preferably, it also includes: performing convex relaxation regularization processing on the Koopman operator.
[0009] According to the high-dimensional multivariate time series data prediction method disclosed in the present invention, preferably, the deep learning time model is a gated recurrent unit.
[0010] The second aspect of the present invention discloses a high-dimensional multivariate time series data prediction device, comprising: a memory for storing program instructions; a processor for calling the program instructions stored in the memory to implement a high-dimensional multivariate time series data prediction method as any of the above technical solutions.
[0011] The third aspect of the present invention discloses a computer-readable storage medium, which stores program code, and the program code is used to implement a high-dimensional multivariate time series data prediction method as described in any of the above technical solutions.
[0012] The beneficial effects of the present invention include at least: the present invention enhances the prediction ability of nonlinear time models for high-dimensional multivariate time series data based on Koopman regularization, and solves the difficult problems in high-dimensional multivariate time series prediction by using a dynamic linearization regularization method to balance the nonlinear time structure in the low-dimensional subspace and the linear evolution of the multivariate time series. The effective combination of the autoencoder and the deep learning time model, as well as the introduction of the Koopman regularization term, effectively balances the nonlinear and linear dynamics. By utilizing the Koopman operator and its linear structure constraints, nonlinear time dependencies can be effectively captured while retaining the linear evolution information of the multivariate time series data. This regularization enriches the information characteristics of the latent variables and improves the prediction performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A schematic diagram of a network architecture of a high-dimensional multivariate time series data prediction method according to an embodiment of the present invention is shown.
[0014] Figure 2 The figure shows the comparison between the predicted value and the actual value in the power data set according to one embodiment of the present invention.
[0015] Figure 3 The figure shows the comparison between the predicted value and the true value in the traffic data set according to one embodiment of the present invention.
[0016] Figure 4A schematic block diagram of a high-dimensional multivariate time series data prediction device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0017] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0018] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0019] According to one embodiment of the present invention, a high-dimensional multivariate time series data prediction method is disclosed, and its corresponding network architecture is as follows: Figure 1 As shown, specifically: the framework contains two branches: a nonlinear branch (above) and a linear branch (below).
[0020] In the nonlinear branch, given a high-dimensional multivariate time series, denoted as , represents the number of variables, represents the time step. By using the encoder , time series is mapped to latent variables in a low-rank subspace :
[0021]
[0022] Then, design a time model To express potential This embodiment uses the Gate Recurrent Unit (GRU) model as an example. , describing the evolution and prediction of latent variables in low-dimensional space.
[0023] During training, the input of the temporal model GRU can be expressed as . is the matrix Each row in elements.
[0024] matrix The details are as follows:
[0025]
[0026] The matrix Divided into two parts: historical embedding sequence and predict the embedding sequence . and Before The columns correspond to The remaining columns are covered. Historical embedding sequence This framework serves a dual purpose. First, it helps reconstruct the corresponding output In addition, it can also use itself and The elements in implement forward prediction:
[0027]
[0028] Then, the predicted sequence can be obtained :
[0029]
[0030] The predictive ability is crucial for the decoder’s role in reconstruction. After the prediction step is completed, the history is embedded into the sequence and the predicted sequence Combined and used as the input of the decoder. The ultimate task is to recover the original input as closely as possible from the low-dimensional embedding :
[0031]
[0032] Predicting a sequence The size of depends on the number of prediction steps, which shows that the model has good adaptability in various prediction situations.
[0033] During the testing phase, using as input. The subsequent loop predicts from arrive The sequence coverage length is , expressed as . This cyclic prediction process is expressed by the following formula:
[0034]
[0035] In the linear branch, a discrete-time nonlinear dynamic system and its basic element, the Koopman operator, are introduced and expressed as , the essence of Koopman operator theory is to achieve global linearization of nonlinear systems through coordinate transformation. Given a general discrete nonlinear system dynamics equation:
[0036]
[0037] in, represents the time step, is in the state space The state transition function in .
[0038] is defined as acting on a real-valued observation function Linear operators on . It is usually considered to be infinite-dimensional, and the function Belongs to infinite-dimensional Hilbert space For any given function , the Koopman operator satisfies the following properties:
[0039]
[0040] From the definition, we know Describes the evolution of the orbit in phase space The function value of , we can get: . From this we can see that It is a nonlinear mapping Down The evolution of the function value of is evolution.
[0041] because is a linear operator, so it can be spectrally decomposed. This means that It can be represented by eigenvalues and corresponding eigenfunctions, assuming is a linear operator with a discrete spectrum, then:
[0042]
[0043] in represents the Koopman eigenvalue, each The value of represents the index associated with a particular eigenvalue. In addition, for each eigenvalue , the corresponding Koopman characteristic function is and are completely orthogonal. As a new basis, in the space coordinate system expanded by the basis, the observation function can be It is expressed as:
[0044]
[0045] in is a set of vector coefficients, called the Koopman mode of Dynamic Mode Decomposition (DMD). Then, through the Koopman operator and characteristic function, we can get:
[0046]
[0047] This equation shows and of The combination of iterations can be expressed as an infinite summation of all Koopman eigenvalues and eigenfunctions. Control the corresponding characteristic function time behavior, The phase is determined The oscillation frequency exists in The amplitude is determined The growth or decay rate of the dynamics in iterations.
[0048] From the above derivation, we can know that the system evolves in the linear space in the new coordinate system. In other words, by spectrally decomposing the Koopman operator, we can find a set of orthogonal basis functions, and in the space coordinates spanned by this set of orthogonal functions, the nonlinear system can be transformed into an infinitely approximate global linearized system. It is also an infinite-dimensional linear approximation system. The ultimate goal is to study the real "state variables" of the system, so it is necessary to find an invariant subspace in this infinite-dimensional function space, which contains all the system state variables, so that the dynamics of the system can be studied in this invariant subspace.
[0049] In the model of the present invention, Koopman spectral analysis with a reproducing kernel is used as the basis function. , in the feature map The Koopman operator on is defined as:
[0050]
[0051] in, Obtained by Gram-Schmidt orthogonalization.
[0052] Nevertheless, the identification and representation of these eigenfunctions have always faced significant challenges. To this end, this paper adopts a data-driven approach to discover the representation of the Koopman eigenfunction. By using an autoencoder, the input is embedded into a low-dimensional latent space. This identifies nonlinear coordinates that help the global linearization of the system:
[0053]
[0054] in, is an orthogonal matrix obtained by performing Gram-Schmidt QR decomposition on a random standard orthogonal matrix. and Represents encoder and decoder respectively.
[0055] Koopman regularization is modeled through the encoder and decoder. First, the input sequence is orthogonalized by Gram-Schmidt. Mapped to a high-dimensional space, we get ,in , and then the encoder Embedded into latent variables In this space, the Koopman operator is approximated using a linear layer that encodes the dynamics. The history embedding sequence Using Linear Layer Propagate time forward, and we get In general, this process can be expressed as follows:
[0056]
[0057] The decoder embeds the history into the sequence and the predicted sequence As input, and output prediction results Finally, by reverse Gram-Schmidt orthogonalization, Restore to the original dimensional space and get .
[0058] The model training process proposed in the present invention is end-to-end and self-supervised. With the help of Koopman regularized linear dynamic prediction, the model can achieve accurate prediction results using a relatively simple loss function.
[0059] Analysis of the model loss function:
[0060] Given a multivariate time series , by calculating and The reconstruction loss is used to guide the learning process of the encoder and decoder in a low-dimensional nonlinear subspace:
[0061]
[0062] In order to model the nonlinear dynamics and temporal dependencies within the latent variables, a latent temporal prediction loss is introduced as follows:
[0063]
[0064] In addition, the present invention also adds Koopman regularization loss to alleviate the overfitting problem in nonlinear space. Koopman regularization loss is intended to ensure that the prediction results of the two decoders (respectively represented as and ) become increasingly similar. This convergence helps balance the prediction results obtained from the nonlinear and linear latent subspaces.
[0065]
[0066] In order to further avoid the overfitting problem in linear space, the Koopman operator is also subjected to convex relaxation regularization.
[0067]
[0068] The entire training process consists of the loss as follows:
[0069]
[0070] in, , and is a hyperparameter.
[0071] like Figure 2 and Figure 3 As shown, through experimental simulation, it can be seen that: taking the TLAE model as the baseline model, through experiments on two data sets, it can be seen that the prediction results obtained by the method (COLLAR) proposed in the present invention are closer to the true value (Ground Truth), which shows that the regularization term based on the deep Koopman operator of the present invention ensures that both nonlinear and linear prediction aspects can be fully reflected in the latent space and improves the prediction performance, thereby providing a more comprehensive and robust modeling method for time series prediction tasks.
[0072] like Figure 4 As shown, according to another embodiment of the present invention, a high-dimensional multivariate time series data prediction device 400 is also disclosed, including: a memory 401, used to store program instructions; a processor 402, used to call the program instructions stored in the memory to implement the high-dimensional multivariate time series data prediction method as in the above embodiment.
[0073] According to another embodiment of the present invention, a computer-readable storage medium is disclosed. The computer-readable storage medium stores program codes, and the program codes are used to implement the high-dimensional multivariate time series data prediction method as described in the above embodiment.
[0074] In summary, the present invention introduces Koopman regularization into the latent representation learning process. By utilizing the Koopman operator and its linear structure constraints, nonlinear time dependencies can be effectively captured while retaining the linear evolution information of multivariate time series data. This regularization enriches the information characteristics of the latent variables and improves the prediction performance. The present invention can achieve a balance between the inherent nonlinear time structure existing in the low-dimensional subspace and the linear evolution of the multivariate time series, effectively reducing information loss and reducing the risk of model overfitting.
[0075] All or part of the steps in the various methods of the above embodiments can be completed by controlling the relevant hardware through a program, and the program can be stored in a readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other readable medium that can be used to carry or store data.
[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A high-dimensional multivariate time series data prediction method, characterized in that: include: Receiving a high-dimensional multivariate time series, and mapping the high-dimensional multivariate time series into latent variables in a low-rank subspace through a first encoder to obtain a first latent variable matrix; Dividing the first latent variable matrix into a first historical embedding sequence and a first predicted embedding sequence, wherein the first historical embedding sequence is the first several columns of the first latent variable matrix, and the first predicted embedding sequence is the remaining columns of the first latent variable matrix; Modeling the time evolution of the first latent variable matrix using a deep learning time model to achieve forward prediction and obtain a first prediction sequence; Combining the first historical embedding sequence and the first prediction sequence and inputting them into a first decoder, so as to restore the first prediction sequence to an original state from the low-dimensional embedding, and obtain a first prediction result; Model Koopman regularization through the second encoder and the second decoder: Performing Gram-Schmidt orthogonalization processing on the high-dimensional multivariate time series to obtain an orthogonal result; Embedding the orthogonal result into latent variables using a second encoder to obtain a second latent variable matrix, and simulating a Koopman operator using a linear layer that encodes the dynamics; Dividing the second latent variable matrix into a second historical embedding sequence and a second predicted embedding sequence, wherein the second historical embedding sequence is the first several columns of the second latent variable matrix, and the second predicted embedding sequence is the remaining columns of the second latent variable matrix; Propagate time forward using the Koopman operator according to the second historical embedding sequence to obtain a second prediction sequence; Combining the second historical embedding sequence and the second prediction sequence and inputting them into a second decoder to obtain a second prediction result; Performing a reverse Gram-Schmidt orthogonalization process on the second prediction result to obtain a linear dynamic prediction result; The Koopman regularization loss of the linear dynamic prediction result and the first prediction result is calculated.
2. The high-dimensional multivariate time series data prediction method according to claim 1, characterized in that: Also includes: A reconstruction loss of the first prediction result and the high-dimensional multivariate time series is calculated to guide a learning process of the first encoder and the first decoder in a low-dimensional nonlinear subspace.
3. The high-dimensional multivariate time series data prediction method according to claim 1, characterized in that: Also includes: A potential temporal prediction loss of the first prediction sequence and the first prediction embedding sequence is calculated.
4. The high-dimensional multivariate time series data prediction method according to claim 1, characterized in that: Also includes: Convex relaxation regularization is performed on the Koopman operator.
5. The high-dimensional multivariate time series data prediction method according to any one of claims 1 to 4, characterized in that: The deep learning temporal model is a gated recurrent unit.
6. A high-dimensional multivariate time series data prediction device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory to implement the high-dimensional multivariate time series data prediction method as described in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, and the program code is used to implement the high-dimensional multivariate time series data prediction method according to any one of claims 1 to 5.
Citation Information
Cited By
Fan health evaluation method based on Koopman spatial transformation and mahalanobis distance
CN120100656A
Fan Health Assessment Method Based on Koopman Space Transformation and Mahalanobis Distance
CN120100656B
