Multi-model fusion time series data prediction method
Through the multi-model fusion method, functional analysis and Gaussian process models are used to solve the problem of insufficient prediction efficiency and accuracy of time series data in the existing technology, achieving higher data adaptability and prediction accuracy, and is suitable for complex and dynamic applications. Changing data environment.
Patent Information
- Application Number
- CN202411223165.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing time series data prediction technology is difficult to adapt to new data structures when faced with complex and dynamically changing data environments, resulting in insufficient prediction efficiency and accuracy. Especially in scenarios such as financial market analysis, the model cannot accurately predict future trends, resulting in Bad decision-making.
Using a multi-model fusion method, time series data is converted into functional form through functional analysis, the parameters of the Gaussian kernel function are adjusted, a Gaussian process model is established, the covariance similarity of data points is evaluated, and modeling is done through the variational Bayes method Probability distribution, dynamically adjust model parameters to generate an integrated prediction model.
It improves the flexibility and adaptability of data processing, enhances the accuracy of the model's dependence on data and the accuracy and reliability of the prediction results, enables the model to better adapt to changing data environments, and improves the accuracy and reliability of predictions. Generalization ability.
Smart Images

Figure CN118734005A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a multi-model fusion time series data prediction method. Background Art
[0002] The field of data processing technology focuses on how to efficiently process and analyze data to extract useful information from it. The field includes data collection, storage, management, analysis and visualization, involving a wide range of technologies such as database technology, big data processing, data mining and machine learning. Data processing is the key technical foundation for ensuring data quality, security and effective access, supporting applications in many fields from business intelligence to scientific research.
[0003] Among them, time series data prediction methods are a branch of data processing that is used to analyze and predict data points arranged in chronological order. The method is often used in financial market analysis, weather forecasting, resource allocation, and any scenario that requires predicting future events based on past and current data trends. Time series forecasting analyzes time series data by applying statistics, machine learning, or deep learning models to predict future data points and help decision makers make more accurate predictions and plans.
[0004] Existing technologies are often insufficient in dealing with complex data characteristics and dynamic changes. When faced with rapidly changing market or environmental factors, models are difficult to adapt to new data structures, which limits the efficiency and accuracy of dealing with nonlinear and non-stationary data, and also affects the accuracy and reliability of predictions. For example, in financial market analysis, the rapid fluctuations of the market and the variability of external economic factors often make it impossible for models based on traditional time series forecasting technology to accurately predict future trends, leading to decision-making errors. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings existing in the prior art and propose a time series data prediction method of multi-model fusion.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: a multi-model fusion time series data prediction method, comprising the following steps: S1: Based on the collected time series data, the functional analysis method is used to convert the time series data into a function form, and the parameters of the Gaussian kernel function, including length and variance, are adjusted to match the data characteristics to obtain the adjusted time series function data; S2: using the information obtained from the adjusted time series function data, establishing the dependency relationship between the data through the Gaussian process model, including calculating the covariance between the data points, evaluating the covariance similarity of the data points, predicting new data points according to the covariance similarity, and obtaining the Gaussian process model output result; S3: Based on the output result of the Gaussian process model, the probability distribution of the model output is modeled by the variational Bayes method, the posterior probability of each data point output is calculated, the volatility of the model parameters and the dynamic changes of the probability distribution are analyzed, and the probability model output result is obtained; S4: Based on the output results of the probability model, the model is verified using the current time series data, the path coefficients in the model are adjusted, and an integrated prediction model is generated.
[0007] As a further solution of the present invention, the step of converting the time series data into a function form is specifically as follows: S111: Collected time series data Preprocessing, including denoising and smoothing, is performed using the formula: Get the normalized function form ; in, yes The minimum value of yes The maximum value of is the current time point; S112: According to the normalized function form , using the formula: Get the principal component function ; in, is the index variable used to iterate each basis function and the corresponding coefficient. is the total number of basis functions, indicating the number of principal components, It is The coefficients of the basis functions are expressed as The weights on the basis functions, is obtained after orthogonalization. basis functions.
[0008] As a further solution of the present invention, the step of acquiring the adjusted time series function data is specifically as follows: S121: According to the principal component function , using the formula: Calculate the average ; According to the average , using the formula: Calculate the length of the Gaussian kernel function ; in, is the total number of data points; S122: According to the length parameter of the Gaussian kernel function , using the formula: Calculate the variance of the Gaussian kernel function ; S123: According to the variance of the Gaussian kernel function , using the formula: Calculate the adjusted time series function data ; in, is the index variable for all time points, All time points The corresponding normalization coefficient is, is an exponential function.
[0009] As a further solution of the present invention, the step of obtaining the covariance similarity of the evaluation data points is specifically as follows: S211: Based on the adjusted time series function data The current time point index variable in , using the formula: Calculate the current time point and The covariance function between ; S212: According to the current time point and The covariance function between , using the formula: Compute the adjusted covariance matrix , used to evaluate the covariance similarity of data points; in, is the noise variance, representing the measurement error, To handle autocorrelation, 1 when , and 0 otherwise.
[0010] As a further solution of the present invention, the steps of obtaining the output result of the Gaussian process model are specifically as follows: S221: According to the adjusted covariance matrix , using the formula: Calculate new data points The predicted function value of ; in, Represents a new data point The covariance vector between and the existing data points, is the adjusted covariance matrix The inverse matrix of is the function value vector including all data points, is the transpose of a vector or matrix. Represents the offset of each data point, which is used to adjust the influence of the covariance vector. A global tuning parameter representing the function value vector; S222: Based on the new data point The predicted function value of , using the formula: Calculate new data points The predicted volatility , and get the Gaussian process model output result; in, Is a new data point The covariance value of itself.
[0011] As a further solution of the present invention, the step of obtaining the posterior probability outputted by each data point is specifically as follows: S311: Based on the new data point The predicted volatility , combined with all input data And all observation output , using the formula: Calculates the given input and output Under these conditions, the data points The posterior probability density ; in, is the observed data point The value of At a given point in time The predicted mean value of S312: According to the given input and output Under these conditions, the data points The posterior probability density , using the formula: Calculate data points The posterior probability ; in, is the integral symbol, which means integrating the posterior probability density function. is the integral variable, which represents the integral of the time points 's points.
[0012] As a further solution of the present invention, the steps of obtaining the output result of the probability model are specifically as follows: S321: Based on the data points The posterior probability , using the formula: and calculate and The volatility measure and ; in, and is the weighted average; S322: According to and The volatility measure and , using the formula: Calculating probability distributions in a period of time The amount of change within ; in, Indicates time The partial derivative of , used to calculate the rate of change over time; S323: According to the probability distribution in a period of time The amount of change within , using the formula: Calculate the new probability distribution based on the effect of time changes , and obtain the probability model output result.
[0013] As a further solution of the present invention, the steps of obtaining the integrated prediction model are specifically as follows: S411: Based on the new probability distribution , using the formula: Verify the model prediction accuracy and obtain verification results ; S412: Based on the verification result , using the formula: Calculate the adjusted path coefficient ; in, is the adjustment factor used to control the original path coefficient and the weight of the new validation results; S413: Based on the adjusted path coefficient , using the formula: Perform data integration to obtain the integrated prediction model ; in, is a weight factor used to balance the impact of the current model with the newly adjusted path coefficients.
[0014] Compared with the prior art, the advantages and positive effects of the present invention are: In the present invention, by converting time series data into a function form and adjusting parameters, the data characteristics are ensured to be accurately matched, thereby improving the flexibility and adaptability of data processing. The establishment of data dependencies is made more accurate, and the ability of the model to predict new data points is enhanced by calculating the covariance and similarity between data points. In addition, the probability distribution of the model output is modeled, and the accuracy and reliability of the prediction results are enhanced by analyzing the dynamic changes of the probability distribution. This not only improves the accuracy of the prediction, but also enables the model to better adapt to the changing data environment, thereby enhancing the generalization ability of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of the main steps of the present invention; Figure 2 A flowchart of the steps of converting time series data into a function form according to the present invention; Figure 3 A flow chart of the steps for obtaining the adjusted timing function data of the present invention; Figure 4 A flow chart of the steps for obtaining the covariance similarity of the evaluation data points of the present invention; Figure 5 A flowchart of the steps for obtaining the output results of the Gaussian process model of the present invention; Figure 6 A flow chart of the steps for obtaining the posterior probability outputted by each data point of the present invention; Figure 7 A flowchart of the steps for obtaining the output results of the probability model of the present invention; Figure 8 The figure is a flow chart of the steps for obtaining the integrated prediction model of the present invention. DETAILED DESCRIPTION
[0016] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0017] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0018] See also Figure 1 The present invention provides a technical solution: a multi-model fusion time series data prediction method, comprising the following steps: S1: Based on the collected time series data, the functional analysis method is used to convert the time series data into a function form, and the parameters of the Gaussian kernel function, including length and variance, are adjusted to match the data characteristics to obtain the adjusted time series function data; S2: Using the information obtained from the adjusted time series function data, the dependency relationship between the data is established through the Gaussian process model, including calculating the covariance between the data points, evaluating the covariance similarity of the data points, predicting new data points based on the covariance similarity, and obtaining the output result of the Gaussian process model; S3: Based on the output results of the Gaussian process model, the probability distribution of the model output is modeled through the variational Bayes method, the posterior probability of each data point output is calculated, the volatility of the model parameters and the dynamic changes of the probability distribution are analyzed, and the output results of the probability model are obtained; S4: Based on the output results of the probability model, use the current time series data to verify the model, adjust the path coefficients in the model, and generate an integrated prediction model; The adjusted time series function data include the amplitude adjustment of the function, the frequency variation range and the optimization parameters of the data smoothness. The output results of the Gaussian process model include the predicted error boundary, the predicted value of the new data point and the updated covariance. The output results of the probability model include the confidence interval estimate of each observation point, the posterior probability distribution characteristics and the key probability threshold. The integrated prediction model includes the optimization of the model response speed, the ability to cope with the dynamics of the data flow and the adjustment of the prediction accuracy.
[0019] See also Figure 2 , the specific steps to convert time series data into function form are: S111: Collected time series data Preprocessing, including denoising and smoothing, is performed using the formula: Get the normalized function form ; in, yes The minimum value of yes The maximum value of is the current time point; S112: According to the normalized function form , using the formula: Get the principal component function ; in, is the index variable used to iterate each basis function and the corresponding coefficient. is the total number of basis functions, indicating the number of principal components, It is The coefficients of the basis functions are expressed as The weights on the basis functions, is obtained after orthogonalization. basis functions; The calculation process is as follows: Set the current time series data The readings over a certain period of time are: 10, 20, 30, 40, 50.
[0020] For the formula: for : for : for : for : for : Normalized function The data sequence is: 0, 0.25, 0.5, 0.75, 1 After orthogonalization of the basis functions and coefficients of the functional principal component analysis, two basis functions are obtained: and , and set them to and .set up and .
[0021] For the formula: for ; calculate as follows: The value of increases from 0 to 0.8, indicating that within the time interval considered, as As increases, the combinations defined by the basis functions and coefficients also increase. This reveals the dynamic trends and main features of the data, that is, how it is affected by these basis functions at the time point of growth.
[0022] See also Figure 3 , the specific steps for obtaining the adjusted time series function data are: S121: According to the principal component function , using the formula: Calculate the average ; According to the average , using the formula: Calculate the length of the Gaussian kernel function ; in, is the total number of data points; S122: According to the length parameter of the Gaussian kernel function , using the formula: Calculate the variance of the Gaussian kernel function ; S123: According to the variance of Gaussian kernel function , using the formula: Calculate the adjusted time series function data ; in, is the index variable for all time points, All time points The corresponding normalization coefficient ensures the balance of the overall function. is an exponential function used to calculate the impact of the Gaussian kernel; The calculation process is as follows: Normalized function The data sequence is: ; ; ; ; ; According to the above data, The values are as follows: ; ; ; ; ; For the formula: For the formula: For the formula: First calculate ,Right now , according to the formula: Calculate each time point The weighted average .
[0023] for : Weight: Weighted Average: for : Weight: Weighted Average: for : Weight: Weighted Average: for : Weight: Weighted Average: for : Weight: Weighted Average: Then use each Calculation of the value : For the formula: There are 5 points, so ; by For example: The exponential part is calculated as: result Reflects the time point The effect of Gaussian kernel smoothing is due to the scale parameter of the Gaussian kernel function. and variance Properly adjusted, so The value at this point is low, indicating that The original function The effect of is appropriately smoothed.
[0024] See also Figure 4 , the steps for obtaining the covariance similarity of the evaluation data points are as follows: S211: According to the adjusted time series function data The current time point index variable in , using the formula: Calculate the current time point and The covariance function between ; in, is an exponential function used to calculate covariance decay; S212: Based on the current time point and The covariance function between , using the formula: Compute the adjusted covariance matrix , used to evaluate the covariance similarity of data points; in, is the noise variance, representing the measurement error, is the Kronecker function, which is used to handle autocorrelation and ensure that the noise on the diagonal is added correctly. 1 when , and 0 otherwise; The calculation process is as follows: For the formula: Setting parameters , , , ; For the formula: Represents the adjusted covariance between time points 0.25 and 0.5, showing the similarity and dependence between the data points at these two time points.
[0025] See also Figure 5 , the steps to obtain the output results of the Gaussian process model are as follows: S221: According to the adjusted covariance matrix , using the formula: Calculate new data points The predicted function value of ; in, Represents a new data point The covariance vector between and the existing data points, is the adjusted covariance matrix The inverse matrix of is the function value vector including all data points, is the transpose of a vector or matrix. represents a specific offset for each data point, used to adjust the impact of the covariance vector, A global adjustment parameter representing the function value vector to enhance the adaptability of the model; S222: Based on new data points The prediction function value of , using the formula: Calculate new data points The predicted volatility , and get the Gaussian process model output result; in, Is a new data point Its own covariance value; The calculation process is as follows: For the formula: Setting parameters , the current data point include and From data analysis, we know , , for The result is ; The covariance vector with other time points is set to ; Substitute and calculate : For the formula: set up , which is obtained from data analysis Own covariance estimate; In typical data distributions and interactions between variables, prediction uncertainty is usually expected to be around 0.2. A value lower than 0.2 indicates that the predictions for new data points are more accurate and reliable than the baseline setting.
[0026] See also Figure 6 , the steps to obtain the posterior probability of each data point output are as follows: S311: Based on new data points The predicted volatility , combined with all input data And all observation output , using the formula: Calculates the given input and output Under these conditions, the data points The posterior probability density ; in, is the observed data point The value of At a given point in time The predicted mean value of S312: According to the given input and output Under these conditions, the data points The posterior probability density , using the formula: Calculate data points The posterior probability ; in, is the integral symbol, which means integrating the posterior probability density function. is the integral variable, which represents the integral of the time points The integral of The calculation process is as follows: For the formula: Setting parameters , is 0.1506, , Indicates that under given model and data conditions, the data point The probability density of .
[0027] For the formula: For a single data point The integral of a small interval can be approximated as: Setting parameters ; This value indicates that under the selected model and data conditions, the data point The posterior probability of the model is obtained. It supports further statistical analysis and decision support, and provides a quantitative assessment of the credibility of the model prediction.
[0028] See also Figure 7 , the steps to obtain the output results of the probability model are as follows: S321: Based on data points The posterior probability , using the formula: and calculate and The volatility measure and ; in, and is the weighted average; S322: According to and The volatility measure and , using the formula: Calculating probability distributions in a period of time The amount of change within ; in, Indicates time The partial derivative of , used to calculate the rate of change over time; S323: According to probability distribution in a period of time The amount of change within , using the formula: Calculate the new probability distribution based on the effect of time changes , and obtain the probability model output result; The calculation process is as follows: For the formula: Setting parameters , , , ; Calculate the weighted average: Calculate volatility: For the formula: Setting parameters (need The estimated value of (a tiny increase); The computational results show the sensitivity of the model parameters to time and the changes in the dynamic probability distribution.
[0029] See also Figure 8 , the steps to obtain the integrated prediction model are as follows: S411: According to the new probability distribution , using the formula: Verify the model prediction accuracy and obtain verification results ; S412: Based on the verification results , using the formula: Calculate the adjusted path coefficient ; in, is the adjustment factor used to control the original path coefficient and the weight of the new validation results; S413: Based on the adjusted path coefficient , using the formula: Perform data integration to obtain the integrated prediction model ; in, is a weight factor used to balance the impact of the current model with the newly adjusted path coefficients; The calculation process is as follows: For the formula: set up , Represents the model at a given point in time The degree to which the predictions on the data match the actual data.
[0030] For the formula: Setting parameters , , ; It represents the adjusted path coefficient, which reflects the degree of match between the model prediction and the actual data.
[0031] For the formula: Setting parameters , ; Represents the integrated prediction model, which shows the ability of the model to improve prediction accuracy by adjusting parameters.
[0032] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A multi-model fusion time series data prediction method, characterized in that: The following steps are involved: Based on the collected time series data, the functional analysis method is used to convert the time series data into a function form, and the parameters of the Gaussian kernel function, including length and variance, are adjusted to match the data characteristics to obtain the adjusted time series function data; Using the information obtained from the adjusted time series function data, a dependency relationship between data is established through a Gaussian process model, including calculating the covariance between data points, evaluating the covariance similarity of the data points, predicting new data points based on the covariance similarity, and obtaining a Gaussian process model output result; Based on the output results of the Gaussian process model, the probability distribution of the model output is modeled by the variational Bayes method, the posterior probability of each data point output is calculated, the volatility of the model parameters and the dynamic changes of the probability distribution are analyzed, and the probability model output results are obtained; Based on the output results of the probability model, the model is verified using the current time series data, the path coefficients in the model are adjusted, and an integrated prediction model is generated.
2. The multi-model fusion time series data prediction method according to claim 1 is characterized in that: The specific steps of converting the time series data into a function form are: The collected time series data Preprocessing, including denoising and smoothing, is performed using the formula: Get the normalized function form ; in, yes The minimum value of yes The maximum value of is the current time point; According to the normalized functional form , using the formula: Get the principal component function ; in, is the index variable used to iterate each basis function and the corresponding coefficient. is the total number of basis functions, indicating the number of principal components, It is The coefficients of the basis functions are expressed as The weights on the basis functions, is obtained after orthogonalization. basis functions.
3. The multi-model fusion time series data prediction method according to claim 2 is characterized in that: The steps for obtaining the adjusted time series function data are specifically as follows: According to the principal component function , using the formula: Calculate the average ; According to the average , using the formula: Calculate the length of the Gaussian kernel function ; in, is the total number of data points; According to the length parameter of the Gaussian kernel function , using the formula: Calculate the variance of the Gaussian kernel function ; According to the variance of the Gaussian kernel function , using the formula: Calculate the adjusted time series function data ; in, is the index variable for all time points, All time points The corresponding normalization coefficient is, is an exponential function.
4. The multi-model fusion time series data prediction method according to claim 3 is characterized in that: The steps for obtaining the covariance similarity of the evaluation data points are specifically as follows: According to the adjusted time series function data The current time point index variable in , using the formula: Calculate the current time point and The covariance function between ; According to the current time point and The covariance function between , using the formula: Compute the adjusted covariance matrix , used to evaluate the covariance similarity of data points; in, is the noise variance, representing the measurement error, To handle autocorrelation, 1 when , and 0 otherwise.
5. The multi-model fusion time series data prediction method according to claim 4 is characterized in that: The steps for obtaining the output result of the Gaussian process model are specifically as follows: According to the adjusted covariance matrix , using the formula: Calculate new data points The predicted function value of ; in, Represents a new data point The covariance vector between and the existing data points, is the adjusted covariance matrix The inverse matrix of is the function value vector including all data points, is the transpose of a vector or matrix. Represents the offset of each data point, which is used to adjust the influence of the covariance vector. A global tuning parameter representing the function value vector; According to the new data point The prediction function value of , using the formula: Calculate new data points The predicted volatility , and get the Gaussian process model output result; in, Is a new data point The covariance value of itself.
6. The multi-model fusion time series data prediction method according to claim 5 is characterized in that: The steps for obtaining the posterior probability of each data point output are specifically as follows: According to the new data point The predicted volatility , combined with all input data And all observation output , using the formula: Calculates the given input and output Under these conditions, the data points The posterior probability density ; in, is the observed data point The value of At a given point in time The predicted mean value of According to the given input and output Under these conditions, the data points The posterior probability density , using the formula: Calculate data points The posterior probability ; in, represents the integration of the posterior probability density function, Indicates the time point 's points.
7. The multi-model fusion time series data prediction method according to claim 6 is characterized in that: The steps for obtaining the output result of the probability model are specifically as follows: According to the data points The posterior probability , using the formula: and calculate and The volatility measure and ; in, and is the weighted average; According to the and The volatility measure and , using the formula: Calculating probability distributions in a period of time The amount of change within ; in, Indicates time The partial derivative of , used to calculate the rate of change over time; According to the probability distribution in a period of time The amount of change within , using the formula: Calculate the new probability distribution based on the effect of time changes , and obtain the probability model output result.
8. The multi-model fusion time series data prediction method according to claim 7 is characterized in that: The steps for obtaining the integrated prediction model are specifically as follows: According to the new probability distribution , using the formula: Verify the model prediction accuracy and obtain verification results ; According to the verification results , using the formula: Calculate the adjusted path coefficients ; in, is the adjustment factor used to control the original path coefficient and the weight of the new validation results; According to the adjusted path coefficient , using the formula: Perform data integration to obtain the integrated prediction model ; in, is a weight factor used to balance the impact of the current model with the newly adjusted path coefficients.
