A multi-scale analysis method for time series based on quantum walks

Through the multi-scale analysis method of time series based on quantum walks, multi-feature sequences are generated, optimal combinations are screened, and multi-angle models are established. This solves the problem of hypothesis dependence and spatial correlation that are difficult to consider in the existing technology, and realizes the analysis of time series. Effective modeling and prediction significantly improve the accuracy of analysis.

CN114429077BActive Publication Date: 2024-09-13NANJING NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111499360.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2024-09-13
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

Existing time series analysis methods need to assume the stationarity of data when inferring statistics, and it is difficult to consider the spatial correlation between time series. Traditional random data generation cannot generate truly random data, and cannot effectively model the spatiotemporal characteristics of multiple time series.

Method used

Using the multi-scale analysis method of time series based on quantum walks, by generating multi-feature sequences, screening out the optimal feature combination, establishing a linear or non-linear regression model, performing multi-angle modeling and prediction of time series, and evaluating the time-frequency of the results domain characteristics.

Benefits of technology

Without making assumptions, the multi-scale structural characteristics of the time series are extracted, a model with spatiotemporal characteristics is established, and effective modeling and prediction of the time series are achieved, breaking through the limitations of the back inference and spatial correlation of traditional methods, and significantly Improved accuracy of analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114429077B
    Figure CN114429077B
Patent Text Reader

Abstract

The present invention discloses a multi-scale analysis method of time series based on quantum walks, including: 1. generating multi-scale and multi-feature sequences based on quantum walks; 2. feature sequence screening; 3. time series modeling and prediction based on regression analysis; 4. result evaluation based on frequency domain and time domain; 5. experimental verification. The advantage of the present invention is that the multi-scale characteristics of quantum walks are applied to the analysis of time series, and the feature extraction methods under two rules are combined. The extracted features are combined to use linear, nonlinear, and time-based regression methods to establish a model of the original time series. This time series analysis method does not require prior assumptions such as stationarity assumptions, and is a general time series analysis method. The present invention uses feature sequences to represent the changing characteristics of quantum walks in time and space, and uses these characteristics in data analysis, which is a major breakthrough in the application of quantum walks in the field of data analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data analysis and quantum computing, and specifically relates to a time series multi-scale analysis method based on quantum walk. Background Art

[0002] Time series analysis is a series of analysis methods that use statistical methods to extract the changing characteristics of the original data series, and then conduct modeling and prediction. Time series are widely available, and any indicator changes over time can be expressed in the form of a time series. The changing characteristics over time included in the time series can be used to reveal development laws, changing trends, etc. Multiple time series associated with geographical locations also include spatial mutual influence characteristics. There are currently a large number of models for time series decomposition and modeling, which are mainly divided into parametric and non-parametric methods. Common time series analysis methods include autoregressive AR model, moving average MA model, nonlinear time series model, etc. There are analysis methods for time series from the perspective of time domain and from the perspective of frequency domain. At present, the analysis methods of time series are gradually improving. However, most current time series analysis methods usually need to make certain assumptions when performing inferential statistics, such as the assumption of data stationarity, which determines that the statistical laws of process characteristics do not change with time; secondly, some time series analysis methods find the factors that affect the changes in the series based on the decomposition of the time series, which is a reverse deduction; there are also methods that use the superposition and fitting of random data to model time series, but traditional random data generation is also data generated under specific rules and cannot be considered as true random data, and the spatial correlation between time series cannot be considered when modeling multiple time series.

[0003] The development of quantum walks has brought about random data simulation based on quantum rules. The characteristic sequences generated based on quantum rules have not only temporal correlation but also spatial coherence. Data analysis, calculation and simulation based on quantum laws are the frontiers of modern science. Quantum walks are one of the most typical and simplest quantum computing methods. They constitute a universal model of quantum computing and are a small number of quantum computing methods that can be efficiently simulated and solved using numerical computing methods. Summary of the invention

[0004] Purpose of the invention: In view of the above problems, the present invention proposes a multi-scale analysis method of time series based on quantum walks. Based on the multi-feature sequences generated by quantum walks, specific feature combinations are screened for different time series, and time series are modeled and analyzed from multiple perspectives such as linear, nonlinear, and time, so as to extract multi-scale time series structural features. In addition, the correlation between the result sequence of modeling and prediction and the original time series can also be evaluated from multiple perspectives including frequency domain and time domain.

[0005] Technical solution: To achieve the purpose of the present invention, the technical solution adopted by the present invention is: a multi-scale analysis method of time series based on quantum walk, which specifically includes the following steps:

[0006] Step 1: For the original observation time series, generate several characteristic sequences at different time scales based on quantum walks;

[0007] Step 2, performing feature screening on the feature sequences at different time scales generated in step 1 to obtain the optimal feature sequence combination;

[0008] Step 3: Establish a correlation model between the original observation time series and the optimal feature sequence combination based on the regression analysis method;

[0009] Step 4: Use the correlation model described in step 3 to predict the actual observed time series, and evaluate the prediction results in the time-frequency domain.

[0010] Furthermore, the method further comprises:

[0011] Step 5, experimentally verifying the multi-scale analysis method; the experimental configuration in the experimental verification is specifically as follows:

[0012] Experimental data configuration: Select several satellites in the Pacific Ocean, periodically collect the absolute sea level data obtained by the aforementioned satellite altimetry, and process them to obtain experimental data;

[0013] Evaluation index configuration: Select the determination coefficient R 2 , root mean square error RMSE and mean absolute error MAE are used as evaluation indicators of model prediction results, which are specifically expressed as follows:

[0014]

[0015]

[0016]

[0017] In the formula, y i is the ith element of the actual observed time series, is the i-th element of the predicted fitted sequence, is the average value of the elements of the actual observed time series, and N is the length of the time series.

[0018] Furthermore, the method of step 1 is as follows:

[0019] An arbitrary undirected graph G = (V, E) is used to represent the quantum walk process, where V is a set of vertices and E is a set of edges; vertices represent quantum states during the quantum walk process, and edges represent the transition of quantum states between vertices.

[0020] use represents the quantum state vector at the initial moment of the quantum walk process, through the time evolution operator e -iHt , the quantum state vector at time t in the quantum walk process It is expressed as:

[0021]

[0022] In the formula, | > is the symbol of the label state vector, e -iHt is the time evolution operator, i is the imaginary unit, H is the Hamiltonian, expressed as an adjacency matrix or Laplace matrix;

[0023] The spectrum of Hamiltonian H is decomposed by using the spectral decomposition algorithm to obtain the eigenvalue and eigenvector of Hamiltonian H. The decomposed Hamiltonian H is:

[0024] H=ΦΛΦ Τ

[0025] Where Φ is an N×N matrix, representing the set of eigenvectors, Τ represents the transpose, and Λ is an N×N diagonal matrix, specifically expressed as Λ=diag(λ1,λ2,…,λ n ,…,λ N ),λ1,λ2,…,λ N is the ordered eigenvalue of Hamiltonian H, N is the length of the time series;

[0026] The time evolution operator is expressed as: e -iHt =Φe -iΛt Φ Τ ;

[0027] Then the quantum state vector at time t in the quantum walk process is It is expressed as:

[0028] Constructing a set of scale factors J represents the total number of scale factors, k j represents the jth scale factor; using k j n replaces the time t, then the quantum state vector in the quantum walk process is expressed as:

[0029]

[0030] In the formula, represents a positive real number, n is a natural number, n = 0, 1, 2, ...;

[0031] Based on the scale factor k j The quantum walk process is sampled at equal time intervals to obtain a sequence of the modulus squares of the probability amplitudes corresponding to all vertices, thereby generating a characteristic sequence of quantum walks at different time scales.

[0032] Furthermore, the Hamiltonian H is represented by an adjacency matrix of a graph G, and the elements in the adjacency matrix of the graph G are represented as follows:

[0033]

[0034] In the formula, (u, v) represents the edge connecting vertex u and vertex v, A uv represents the edge between vertex u and vertex v, u∈V, v∈V, and A uv =A vu , A vv =A uu =0.

[0035] Furthermore, in step 2, the feature sequences generated at several different time scales are screened using a stepwise regression method, and the method is as follows:

[0036] Combine the characteristic sequences at different time scales, and constantly adjust the above combinations. Use the Akaike Information Criterion to evaluate the fitting accuracy of the above combinations for modeling the original observed time series, and select the combination with the best evaluation result as the optimal characteristic sequence combination.

[0037] or,

[0038] The RReliefF algorithm is used to perform feature screening on the generated feature sequences at several different time scales. The method is as follows:

[0039] Based on the original observation time series, the feature sequences at several different time scales described in step 1 are weighted and sorted from large to small according to the weights, and the first Q feature sequences at different time scales are combined as the optimal feature sequence combination.

[0040] Furthermore, the regression analysis method in step 3 includes linear regression, nonlinear regression or a time-related vector autoregression method; the linear regression includes but is not limited to stepwise regression, principal component regression and partial least squares regression; the nonlinear regression includes but is not limited to projection pursuit regression.

[0041] Furthermore, in step 3, a correlation model between the original observation time series and the optimal feature sequence combination is established based on linear regression, as follows:

[0042] Y=β1X1+β2X2+…+β q X q+ε

[0043] Where Y is the fitted time series, X1, X2,…, X q are the sequences in the optimal feature sequence combination, β1, β2, …, β q They represent the coefficients of the sequence respectively, and ε is a constant term.

[0044] Furthermore, in step 3, a correlation model between the original observation time series and the optimal feature sequence combination is established based on projection pursuit regression, as follows:

[0045]

[0046] In the formula, F(x) represents the time series after fitting, G m (Z m ) represents the mth ridge function, β m is the weight, which indicates the contribution of the mth ridge function to the output value, and M indicates the total number of ridge functions. is the independent variable of the mth ridge function, indicating the P-dimensional vector X in a m The projection in the direction, X represents the high-dimensional data of the model input, a mp for a m The pth component of the projection in the direction, the superscript T represents the transpose, P is the dimension of the input space, and the requirement is a p Represents the pth component in a projection direction.

[0047] Furthermore, in step 3, a correlation model between the original observed time series and the optimal feature sequence combination is established based on time-dependent vector autoregression, and the sequence in the optimal feature sequence combination is represented in matrix form: w∈[1,L], as follows:

[0048]

[0049]

[0050] In the formula, N represents the length of the time series, L represents the number of sequences in the optimal feature sequence combination, and X w represents the w-th column vector of matrix Y, X w-z represents the wzth column vector of matrix Y, X Nw represents the element value of the Nth row and the wth column of the matrix Y, is the coefficient matrix of the time-dependent vector autoregression, z is the lag order, d is the total lag order, ε w Indicates noise.

[0051] Furthermore, the prediction results are evaluated in the time-frequency domain as described in step 4, as follows:

[0052] Select the coefficient of determination R 2 , root mean square error RMSE and mean absolute error MAE are used as evaluation indicators of the prediction results, expressed as follows:

[0053]

[0054]

[0055]

[0056] In the formula, y i is the ith element of the actual observed time series, is the i-th element of the predicted fitted sequence, is the average value of the elements of the actual observed time series, and N is the length of the time series.

[0057] Beneficial effects: Compared with the prior art, the technical solution of the present invention has the following beneficial technical effects:

[0058] The present invention proposes a universal multi-scale analysis method for time series based on quantum walks, and constructs an analysis method including multi-feature sequence generation based on quantum walks, feature sequence extraction, data modeling and prediction, and model evaluation. A sequence combination with spatiotemporal characteristics is generated without any prior assumptions, and the feature sequence combination is extracted according to the analysis needs of different time series. The feature connection between the actual time series and the feature sequence combination at different perspectives is used to establish a time series model based on different perspectives, and then prediction is made based on the model. The method proposed in the present invention does not belong to reverse deduction. The feature sequence proposed in the present invention is generated based on the universal rules of quantum walks, and a specific time series is expressed according to some features generated by quantum walks. The method proposed in the present invention uses feature sequences to represent the changing characteristics of quantum walks in time and space, and uses these features in data analysis. It is a major breakthrough in the application of quantum walks in the field of data analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 This is a flow chart of a time series multi-scale analysis method based on quantum walk according to the present invention under an embodiment;

[0060] Figure 2 This is a data processing flow chart of a time series multi-scale analysis method based on quantum walk according to the present invention in an embodiment;

[0061] Figure 3 is a diagram showing changes in sea level height at a research point under an embodiment;

[0062] Figure 4This is a diagram showing the characteristic sequences of the first four groups of quantum walks under an embodiment;

[0063] Figure 5 is a linear regression and prediction result graph of the stepwise regression screening results under an embodiment;

[0064] Figure 6 is a linear regression and prediction result diagram of the screening results by the RreliefF algorithm under an embodiment;

[0065] Figure 7 is a PPR regression and prediction result diagram of stepwise regression and RReliefF screening results under an embodiment;

[0066] Figure 8 is a PPR regression and prediction result diagram of stepwise regression and RReliefF screening results under an embodiment;

[0067] Fig. 9 is a power spectrum density diagram of modeling and prediction results based on stepwise regression screening results under an embodiment;

[0068] Fig.10 is a power spectrum density diagram of modeling and prediction results based on RReliefF screening results under an embodiment;

[0069] Fig.11 is a statistical comparison result diagram of different regression methods under an embodiment;

[0070] Fig.12 It is a statistical comparison result diagram of different regression and prediction methods under an embodiment. DETAILED DESCRIPTION

[0071] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0072] The multi-scale analysis method of time series based on quantum walk described in the present invention is based on Figure 1 , specifically including the following steps:

[0073] Step 1: Generate multi-scale and multi-feature sequences based on quantum walks;

[0074] Actual time series often have spatial positions, and the evolution of time series will affect each other. The quantum walk method can generate feature sequences that match them based on different spatial relationships. Before using quantum walks to generate feature sequences, it is necessary to determine the spatial position relationship between time series and abstract them in the form of a graph.

[0075] Quantum walks are generally regarded as a universal computing tool, and all quantum computations can be performed in the form of quantum walks on graphs. The graph for quantum walks consists of vertices and edges, which can be expressed in the form of an adjacency matrix. The vertices of the graph represent the quantum states corresponding to the vertices of the quantum walker during the walk, and the edges connecting the vertices carry the conversion of quantum states between vertices. In order to digitize the characteristics of quantum walks, the probability of the walker changing over time at each vertex is collected to form a characteristic sequence. During the quantum walk, the probability of the quantum walker changing over time at each vertex reflects the changing characteristics of the wave function. Through the spectral decomposition algorithm, the adjacency matrix calculation based on the graph simulates the process of quantum walks.

[0076] Use any undirected graph to describe the quantum walk process. Let G = (V, E) be an undirected unweighted graph, where V is a set of N vertices and E is a set of edges. For any vertex v, (u, v) represents the edge connecting vertex u and vertex v. The adjacency matrix A of graph G can be defined as:

[0077]

[0078] Among them, A uv represents an edge between vertex u and vertex v, u∈V, v∈V, and A uv =A vu , A vv =A uu =0.

[0079] Unlike classical random walks, quantum walks are not Markov chains. Usually, the state vector The evolution over time t can be described as The form of the equation is:

[0080]

[0081] in, Represents the quantum state vector corresponding to all vertices at time t in the quantum walk process. | > is the symbol for marking the state vector. Hamiltonian H is an N×N Hermitian matrix, which can be replaced by an adjacency matrix or a Laplace matrix. For simplicity, the present invention uses the adjacency matrix A of the graph G instead of Hamiltonian H. is a state vector whose elements are complex numbers.

[0082] The evolution equation can be obtained by initial state Solving from formula (2), the state vector at time t is It can be expressed as:

[0083]

[0084] Among them, e-iHt is a time evolution operator used to construct a dynamically evolving quantum walk, i is an imaginary unit, and H is the Hamiltonian. The state vector of the quantum walk at time t is is a linear combination of the ground states. The probability of a quantum walker being found at each vertex is the modulus square of the corresponding probability amplitude at each vertex in the state vector.

[0085] To obtain the state vector Need to calculate the time evolution operator e with matrices and complex numbers -iHt . Decompose the spectrum of the Hamiltonian into:

[0086] H=ΦΛΦ Τ (4)

[0087] Among them, Φ is an N×N matrix, representing the set of eigenvectors, and Τ represents the matrix transpose. Λ can be expressed as:

[0088] Λ=diag(λ1,λ2,…,λ n ,…,λ N ) (5)

[0089] is an N×N diagonal matrix, where λ1,λ2,…,λ N is the ordered eigenvalue of H. Using the spectral decomposition of Hamiltonian H, the time evolution operator can be expressed as:

[0090] e -iHt =Φe -iΛt Φ Τ (6)

[0091] Formula (3) can be expressed as:

[0092]

[0093] The QR decomposition is used to calculate the eigenvalues ​​and eigenvectors of the Hamiltonian H. The eigenvalues, eigenvectors and time t are used to simulate the evolution of the state vector, which is implemented by formula (7).

[0094] By calculating the square of the probability amplitude corresponding to each vertex in the feature vector, we can express the probability of a quantum walker being discovered at each vertex. In order to obtain the changing characteristics of quantum walks at different time scales, a scale factor is set, and the quantum walks are sampled at equal time intervals based on the scale factor to obtain the probability sequence corresponding to all vertices, which represents the changing characteristics of quantum walks on a time scale. In order to obtain a set of feature sequences for data modeling and prediction, multiple different scale factors are used to sample quantum walks multiple times. For ease of understanding, the scale factor set is defined as Where J represents the number of scale factors. Time t can be expressed as k j n instead of k jThe n in n is represented by a set of natural numbers, n = 0, 1, 2, ..., represents a positive real number. Therefore, formula (7) can be expressed as:

[0095]

[0096] Step 2, feature screening:

[0097] Based on step 1, by adjusting the parameter k j , a suitable feature sequence can be generated, and the relationship between the original observed time series and the generated feature sequence can be established using regression methods to model the original time series. In order to obtain as many features as possible, the scale factor is increased to simulate as many sequences as possible. However, not all generated features are related to the original sequence, and using too many modes to model the original time series will lead to overfitting. Therefore, among all the generated modes, the mode that can be used to represent the characteristics of the original time series is selected.

[0098] The present invention proposes to use two feature screening methods: model-driven stepwise regression and data-driven RReliefF. Stepwise regression can also be used for modeling and prediction. Among them: stepwise regression is a regression method for linear modeling. By constantly changing the feature sequence combination, the accuracy of modeling the original time series using these feature sequence combinations is evaluated using standards such as Akaike Information Criterion (AIC), and it is decided whether to retain the latest changed feature combination. If the fitting accuracy is better, the latest change is retained, otherwise the original feature combination is retained; the RReliefF algorithm calculates the k nearest neighbors of each modal sample according to the original time series, calculates the relative weight values ​​of all modalities relative to the original time series sample, sorts all modalities according to the weight value, and can select the modal with high weight in turn. For each mode, all possible k nearest instances are tested and the highest value is returned. The RReliefF algorithm can perform weight calculations on all quantum walk feature sequences based on the observed time series, and select the required number of feature sequences according to the weight.

[0099] Step 3: Time series modeling and forecasting based on regression analysis:

[0100] The present invention proposes to seek the relationship between the actual time series and the selected characteristic sequence from multiple perspectives, including three types of modeling methods including linear regression, nonlinear regression, and regression based on time correlation, to establish a correlation model between the time series and the quantum walk characteristic sequence, and to predict the original time series through the combination of quantum walk characteristic sequences on the basis of the model. Among them, linear regression includes stepwise regression, principal component regression (PCR) and partial least squares regression (PLSR), etc., and nonlinear regression includes projection pursuit regression (PPR) and regression based on time relationship (VAR).

[0101] In the regression analysis of the characteristic sequence generated by quantum walk, the linear regression method represents the original time series using a linear combination of the characteristic sequences generated by quantum walk based on different linear regression rules. The focus of linear regression is to determine the parameters of each characteristic sequence so that these characteristic sequences can represent all the changing characteristics of the original time series as much as possible.

[0102] Y=β1X1+β2X2+…+β q X q +ε (9)

[0103] Among them, Y is the time series after fitting, X1, X2, …, X q are the multi-scale characteristic sequences generated by quantum walks, β1, β2,…, β q They represent the series coefficients respectively, and ε is a constant term. The three linear regression methods basically express the original time series through the linear combination of modes, but different linear regression methods have specific algorithms to determine the coefficients.

[0104] Projection pursuit regression is a nonlinear regression analysis method for high-dimensional data and is widely used in prediction. The basic idea of ​​PPR is to project high-dimensional data into a low-dimensional space (1 to 3 dimensions), find a projection that reflects the structure or characteristics of the high-dimensional data, and perform regression analysis. The key to PPR is to determine the projection direction.

[0105] The projection pursuit regression analysis model can be expressed as:

[0106]

[0107] Among them G m (Z m ) represents the mth ridge function, β m is the weight, which indicates the contribution of the mth ridge function to the output value. is the independent variable of the ridge function, indicating the P-dimensional vector X in a m The projection in the direction, a mp is the pth component of the mth projection direction, P is the dimension of the input space, Τ represents the transpose, and requires

[0108] Time-dependent vector autoregression (VAR) is often used to predict time series systems with intrinsic correlation factors and analyze the dynamic impact of random disturbances on variable systems. The VAR method constructs a model by taking each intrinsic variable in the system as a function of the lagged values ​​of all intrinsic variables in the system and is often used for serial correlation analysis. The multiple time series can be understood as a matrix, which means there are L groups of time series with a length of N. At any w time, the VAR(z) model can be expressed as formula (12):

[0109]

[0110]

[0111] in is the coefficient matrix of VAR, ε w is the noise, and z is the lag order.

[0112] Step 4: Result evaluation based on frequency domain and time domain

[0113] Time series include structural features in the frequency domain and data features in the time domain. The present invention uses power spectrum analysis to evaluate the characteristics of time series in the frequency domain. By calculating the power spectrum density, the time-related series can be converted into a signal intensity distribution that varies with frequency, which can reflect the degree of fit between the series in the frequency domain. To evaluate the correlation between the results of modeling and prediction and the time characteristics of the original time series, the present invention uses the determination coefficient (R 2 ), root mean square error (RMSE), and mean absolute error (MAE) are used to represent the data relationship between two time series.

[0114]

[0115]

[0116]

[0117] where y i is the i-th element of the original time series, is the i-th element of the fitted sequence, is the sample mean, and N is the length of the time series.

[0118] Step 5: Experimental verification

[0119] The experimental configuration of the present invention mainly includes the following parts: (1) Experimental data configuration: The present invention selects the absolute sea level data obtained by satellite altimetry at seven Pacific locations as experimental data (the data collection cycle is in weeks); (2) Evaluation index configuration: The present invention selects MAE, RMSE and R 2 as a model evaluation indicator.

[0120] Based on the above experimental configuration, the results of the present invention are divided into the following three parts: (1) multiple modeling methods and prediction results of satellite altimetry data based on quantum walk feature sequences; (2) accuracy assessment of modeling and prediction results based on two perspectives.

[0121] Taking satellite altimetry data as an example, we found the absolute sea level data of 7 locations starting from November 1, 2000, and recorded them in weekly cycles. The coordinates of these 7 locations are P1 (160.125°E, 0.125°N), P2 (170.125°E, 0.125°N), P3 (180.125°E, 0.125°N), P4 (190.125°E, 0.125°N), P5 (200.125°E, 0.125°N), P6 (210.125°E, 0.125°N), P7 (220.125°E, 0.125°N), and the data is displayed as follows Figure 3 As shown. A total of 1000 data were used, of which the first 800 data were training samples and the last 200 data were test samples. Quantum walks were used to generate multi-scale and multi-feature distribution data related to the seven locations. Two feature screening methods were used to obtain feature combinations similar to the satellite altimetry data features. Multiple regression methods were then used to obtain the relationship between satellite altimetry data and features. A model was established and 200 data were predicted after the training samples. The accuracy of model fitting and prediction was evaluated respectively.

[0122] refer to Figure 2 , the data processing process includes:

[0123] 1. Generate multi-scale and multi-feature sequences based on quantum walks:

[0124] Quantum walks can simulate characteristic sequences with structural characteristics that change over time. To perform quantum walk simulation, an adjacency matrix needs to be input. The seven positions selected in this embodiment are at the same latitude, and the adjacency matrix used to generate the quantum walk characteristic sequence is set as follows:

[0125]

[0126] Set P1 as the initial position of the quantum walker. Since there are 1000 pieces of raw data in total, the length of the data obtained at each time scale is set to 1000. In order to generate all possible situations of quantum dot distribution as much as possible, this embodiment will set 2000 scale factors for sampling, with the minimum scale factor being 0.01 and increasing by 0.01 in sequence. The quantum walk feature sequences generated by the first four scale factors are plotted, as shown in Figure 4 shown.

[0127] 2. Feature screening:

[0128] The characteristic sequence combinations generated by quantum walks are screened using quantum stepwise regression and RReliefF screening methods, respectively, to obtain a modal combination similar to the original time series characteristics. Since stepwise regression is a model-driven screening method, the algorithm can obtain an optimal modal combination; RReliefF is a weight calculation method based on data, which can calculate the weight of each mode relative to the original time series and select the mode based on the weight. In this step, the number of characteristic sequences screened using stepwise regression is uncertain, and 100 characteristic sequences are screened for each research point based on RReliefF.

[0129] 3. Time series modeling and prediction based on regression analysis:

[0130] Based on the results of feature screening, the present invention uses five regression algorithms, namely stepwise regression, principal component regression, partial least squares regression, projection pursuit regression, and vector autoregression, to model and predict the original time series, and divides 1000 sets of data into 800 training samples and 200 test samples. The three types of modeling and prediction are performed based on the results of stepwise regression and RReliefF screening, respectively. Figure 5 and Figure 6 The fitting results of modeling using stepwise regression and RReliefF modal screening results and the results of prediction based on the established model are shown respectively. Figure 7 This is a diagram showing the modeling and prediction results of projection pursuit regression. Figure 8 It is the modeling and prediction results of vector autoregression.

[0131] 4. Result evaluation based on frequency domain and time domain:

[0132] Based on step 3, the present invention analyzes the correlation between sequences from the aspects of frequency domain and time domain characteristics, analyzes the power spectrum structure of sea level data, fitting data and predicted data from the frequency domain, and obtains the correlation indicators reflecting the time domain characteristics such as the determination coefficient and error between the two sequences from the time domain. Fig. 9 and Fig.10The power spectrum structures of the modeling and prediction results based on stepwise regression and RReliefF screening are compared respectively. It can be seen intuitively from the figure that all the experimental results are very similar to the spectrum structure of the initial time series, especially the projection pursuit regression of nonlinear regression and the vector autoregression based on time relationship.

[0133] The result evaluation based on the time domain starts from the data of the experimental results and obtains various accuracy indicators of the experimental results and the original time series. The present invention calculates the determination coefficient R 2 , square root error RMSE and mean absolute error MAE, the results are as follows Fig.11 and Fig.12 shown. Fig.11 It shows the fitting results of the first 800 data. Fig.12 It shows the accuracy statistics of the fitting results of the first 800 data and the prediction results of the last 200 data. The first three sub-graphs of each figure are experiments conducted using the stepwise regression screening results, and the last three sub-graphs are experiments conducted using the RReliefF screening results.

[0134] 5. Experimental verification:

[0135] Figure 5 , Figure 6 , Figure 7 , Figure 8 The results of regression and prediction based on the two feature screening results are shown in Figure 2. From the fitting results, the projection pursuit regression based on nonlinear relationship and the vector autoregression based on time relationship have better consistency with the original time series, but from the prediction results, the prediction results based on linear relationship are more stable. Fig. 9 and Fig.10 The power spectral density diagram of the modeling and prediction results and the original time series is shown, and projection pursuit regression and vector autoregression have a better degree of fit.

[0136] Fig.11 and Fig.12 The evaluation index based on the time domain is shown. In the evaluation of the simulation prediction results, the determination coefficient R 2 The larger the value, the smaller the square root error and mean absolute error, indicating that the correlation between the two series is greater. However, the root mean square error and mean absolute error are related to the average level of the data itself and cannot be used as evaluation indicators for the fitting accuracy between sites, but they can be used to compare the fitting accuracy differences of different modeling methods at the same site. Fig.11From the results, it can be seen that the projection pursuit regression based on nonlinear relationship and the vector autoregression based on time relationship can achieve good fitting results. The fitting accuracy of the three methods based on linear regression is relatively low. Among them, the accuracy of the fitting results of the features screened by stepwise regression is higher than that of the features screened by RReliefF. Since the number of features of the RReliefF screening results is more than that of the stepwise regression screening results, it can be explained that the screening results using stepwise regression are more suitable for linear regression. Based on the RReliefF screening results, the vector autoregression can achieve higher accuracy in data fitting, but it performs poorly in sequence prediction and has large errors. In terms of RMSE and MAE, the errors of the first 800 fitting data of projection pursuit regression and vector autoregression are significantly lower than those of linear regression, but the vector autoregression has some site prediction deviations in the prediction of the RReliefF screening results.

[0137] The multi-scale analysis method of time series based on quantum walk proposed in the present invention analyzes the time series from the aspects of data generation, data screening, data modeling and prediction, and result evaluation, and can also achieve higher modeling or prediction accuracy. The different methods used in the present invention each have their own advantages. Nonlinear regression based on quantum walk feature sequence and time-based self-vector regression can both have higher accuracy in fitting time series, but are not stable enough in predicting time series; linear regression based on quantum walk time series will lose some details of time series changes in fitting time series, but is stable in predicting time series.

Claims

1. A multi-scale analysis method of time series based on quantum walk, characterized in that: The specific steps include: Step 1: For the original observation time series, generate several characteristic sequences at different time scales based on quantum walks; Step 2, performing feature screening on the feature sequences at different time scales generated in step 1 to obtain the optimal feature sequence combination; Step 3: Establish a correlation model between the original observation time series and the optimal feature sequence combination based on the regression analysis method; Step 4, using the correlation model described in step 3 to predict the actual observed time series, and evaluating the prediction results in the time-frequency domain; The method of step 1 is as follows: An arbitrary undirected graph G = (V, E) is used to represent the quantum walk process, where V is a set of vertices and E is a set of edges; vertices represent quantum states during the quantum walk process, and edges represent the transition of quantum states between vertices. use represents the quantum state vector at the initial moment of the quantum walk process, through the time evolution operator e -iHt , the quantum state vector at time t in the quantum walk process It is expressed as: In the formula, is the symbol of the marker state vector, e -iHt is the time evolution operator, i is the imaginary unit, H is the Hamiltonian, expressed as an adjacency matrix or Laplace matrix; The spectrum of Hamiltonian H is decomposed by using the spectral decomposition algorithm to obtain the eigenvalue and eigenvector of Hamiltonian H. The decomposed Hamiltonian H is: H=FLF Τ Where Φ is an N×N matrix, representing the set of eigenvectors, Τ represents the transpose, and Λ is an N×N diagonal matrix, specifically expressed as Λ=diag(λ1,λ2,,λ n ,,λ N ),λ1,λ2,,λ N is the ordered eigenvalue of Hamiltonian H, N is the length of the time series; The time evolution operator is expressed as: e -iHt =Φe -iΛt Φ Τ ; Then the quantum state vector at time t in the quantum walk process is It is expressed as: Constructing a set of scale factors J represents the total number of scale factors, k j represents the jth scale factor; using k j n replaces the time t, then the quantum state vector in the quantum walk process is expressed as: In the formula, represents a positive real number, n is a natural number, n = 0, 1, 2,; Based on the scale factor k j The quantum walk process is sampled at equal time intervals to obtain a sequence of the modulus squares of the probability amplitudes corresponding to all vertices, thereby generating a characteristic sequence of quantum walks at different time scales.

2. According to the time series multi-scale analysis method based on quantum walk according to claim 1, it is characterized in that: The method further comprises: Step 5, experimentally verifying the multi-scale analysis method; the experimental configuration in the experimental verification is specifically as follows: Experimental data configuration: Select several satellites in the Pacific Ocean, periodically collect the absolute sea level data obtained by the satellite altimetry, and process them to obtain experimental data; Evaluation index configuration: Select the determination coefficient R 2 , root mean square error RMSE and mean absolute error MAE are used as evaluation indicators of model prediction results, which are specifically expressed as follows: In the formula, y i is the ith element of the actual observed time series, is the i-th element of the sequence obtained by prediction fitting, is the average value of the elements of the actual observed time series, and N is the length of the time series.

3. According to claim 2, a time series multi-scale analysis method based on quantum walk is characterized in that: The Hamiltonian H is represented by the adjacency matrix of the graph G, and the elements in the adjacency matrix of the graph G are represented as follows: In the formula, (u, v) represents the edge connecting vertex u and vertex v, A uv represents the edge between vertex u and vertex v, u∈V, v∈V, and A uv =A vu , A vv =A uu =0.

4. The multi-scale analysis method of time series based on quantum walk according to claim 1 is characterized in that: In step 2, the stepwise regression method is used to perform feature screening on the generated feature sequences at several different time scales, and the method is as follows: Combine the characteristic sequences at different time scales, and constantly adjust the above combinations. Use the Akaike Information Criterion to evaluate the fitting accuracy of the above combinations to the original observed time series modeling, and select the combination with the best evaluation result as the optimal characteristic sequence combination. or, The RReliefF algorithm is used to perform feature screening on the generated feature sequences at several different time scales. The method is as follows: Based on the original observation time series, the feature sequences at several different time scales described in step 1 are weighted and sorted from large to small according to the weights, and the first Q feature sequences at different time scales are combined as the optimal feature sequence combination.

5. The multi-scale analysis method of time series based on quantum walk according to claim 1 is characterized in that: The regression analysis method in step 3 includes linear regression, nonlinear regression or a time-related vector autoregression method; the linear regression includes stepwise regression, principal component regression and partial least squares regression; the nonlinear regression includes projection pursuit regression.

6. The multi-scale analysis method of time series based on quantum walk according to claim 5 is characterized in that: In step 3, a correlation model between the original observation time series and the optimal feature sequence combination is established based on linear regression, as follows: Y=β1X1+β2X2++β q X q +e Where Y is the fitted time series, X1, X2,, X q are the sequences in the optimal feature sequence combination, β1, β2,, β q They represent the coefficients of the sequence respectively, and ε is a constant term.

7. The multi-scale analysis method of time series based on quantum walk according to claim 6 is characterized in that: In step 3, a correlation model between the original observation time series and the optimal feature sequence combination is established based on projection pursuit regression, as follows: In the formula, F(x) represents the time series after fitting, G m (Z m ) represents the mth ridge function, β m is the weight, which indicates the contribution of the mth ridge function to the output value, and M indicates the total number of ridge functions. is the independent variable of the mth ridge function, indicating the P-dimensional vector X in a m The projection in the direction, X represents the high-dimensional data input to the model, a mp for a m The pth component of the projection in the direction, the superscript T represents the transpose, P is the dimension of the input space, and the requirement is a p Represents the pth component in a projection direction.

8. The multi-scale analysis method of time series based on quantum walk according to claim 6 is characterized in that: In step 3, a correlation model between the original observed time series and the optimal feature sequence combination is established based on time-dependent vector autoregression, and the sequence in the optimal feature sequence combination is represented in matrix form. The details are as follows: In the formula, N represents the length of the time series, L represents the number of sequences in the optimal feature sequence combination, and X w represents the w-th column vector of matrix Y, X w-z represents the wzth column vector of matrix Y, X Nw represents the element value of the Nth row and the wth column of the matrix Y, is the coefficient matrix of the time-dependent vector autoregression, z is the lag order, d is the total lag order, ε w Indicates noise.

9. The multi-scale analysis method of time series based on quantum walk according to claim 1, characterized in that: Step 4 evaluates the prediction results in the time-frequency domain as follows: Select the coefficient of determination R 2 , root mean square error RMSE and mean absolute error MAE are used as evaluation indicators of the prediction results, expressed as follows: In the formula, y i is the ith element of the actual observed time series, is the i-th element of the predicted fitted sequence, is the average value of the elements of the actual observed time series, and N is the length of the time series.