Long-time sequence prediction ensemble learning device based on multi-cycle divergence
Through the long-term series prediction integrated learning device with multi-period divergence, through sequence decomposition and sub-model training, the best-performing sub-model is selected for integration, which solves the problem of accuracy decline in long-term series prediction, improves prediction accuracy, and has strong applicability , suitable for prediction windows further into the future.
Patent Information
- Application Number
- CN202410708183.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-10
AI Technical Summary
The accuracy of existing long-term series prediction methods decreases when the prediction window increases, and existing methods mainly measure prediction performance from the perspective of the mean value of a single indicator, and cannot effectively observe changes in prediction performance, resulting in the inability to find the real cause of performance degradation.
An integrated learning device for long-term series prediction based on multi-period divergence is used to decompose the time series data in multiple rounds through the sequence decomposition module, train multiple sub-models, and select the sub-model that performs best in the partial dimensions of the long sequence through the integrated learning module Perform splicing to improve prediction accuracy.
It effectively solves the problem of insufficient accuracy and performance degradation in long sequence prediction, improves the prediction accuracy, especially in the further future prediction window, and has wide applicability and is not affected by the model structure.
Smart Images

Figure CN118627645A
Abstract
Description
Technical Field
[0001] The invention relates to a long time series prediction integrated learning device based on multi-period divergence, belonging to the technical field of time series prediction. Background Art
[0002] In the field of time series prediction, it is crucial to solve the problem of insufficient accuracy when the prediction sequence data becomes longer. Long time series often show different characteristics under different sampling scales. Existing research methods mainly have two research directions: model structure improvement and long time series data feature extraction. However, neither of them makes targeted improvements to the performance degradation problem when the prediction window increases. How to ensure that the prediction accuracy does not decrease when the prediction window is expanded is the problem to be solved by this invention.
[0003] At present, most of the long time series prediction methods only measure the prediction performance from the perspective of a single indicator mean. This perspective cannot observe the changes in prediction performance with the prediction dimension, and thus cannot find the real reason for the decline in prediction performance. Summary of the invention
[0004] Purpose of the invention: Common time series prediction methods show insufficient accuracy in long series prediction, which is specifically manifested in that the prediction performance drops rapidly when the prediction window increases. In view of the problems and shortcomings in the prior art, the present invention provides a long time series prediction ensemble learning device based on multi-period divergence. Specifically, firstly, the time series data is collected and processed, and multiple rounds of decomposition are performed on the sequence at specified periods. Then, multiple different sub-models are trained on the data after these different scale decompositions. Finally, the models with the best prediction performance on some dimensions of the long series are selected and spliced together to complete the integration based on multi-period divergence and improve the accuracy of long sequence prediction.
[0005] Technical solution: A long time series prediction integrated learning device based on multi-period divergence, including a sequence decomposition module, a sub-model training module and an integrated learning module; The sequence decomposition module first collects and processes time series data, divides the training data and the data to be predicted, and performs multiple rounds of decomposition on the time series data in multiple periods; then analyzes the key factors of the prediction task; The sub-model training module trains multiple different sub-models on the data after multiple cycles and multiple rounds of decomposition; The integrated learning module integrates these sub-models, identifies the divergences between the prediction performance trends after multi-period decomposition, selects those sub-models with the best prediction performance on some dimensions of the long sequence, and splices them together to complete the integration based on multi-period divergence, thereby improving the accuracy of long sequence prediction.
[0006] The present invention can solve the problems of long-distance dependency being difficult to extract and accumulated errors in long sequence prediction problems, and the use of the present invention is not affected by the specific prediction model structure. In the implementation process, the present invention has a wide range of applications, strong applicability, and good precision improvement effects.
[0007] The specific steps for implementing the sequence decomposition module are as follows: Step 100, collect time series data for training, which may contain missing values or outliers in real situations; Step 101, determine the daily data granularity of the time series as the basic period value P, and determine the prediction window length F; Step 102, divide the training, verification and prediction data, and use a sliding window to complete the segmentation operation of the training input and the training mark; Step 103, training a normalizer on the training set and normalizing all data; Step 104, use the STL decomposition method to decompose the time series multiple times, and set the decomposition period to different integer multiples of P, starting from 1 times to 2 times F, a total of N; Step 105, save the trend and seasonal components in the decomposition results to a file, so that when these components are used next time, only the file results need to be read without executing the time-consuming decomposition process again, thereby avoiding repeated decomposition and increasing overhead.
[0008] The implementation steps of the sub-model training module are as follows: Step 200, reading the decomposition result in step 105; Step 201, first construct a deep neural network model to select key factors such as local normalization techniques. After the key factors are selected, other neural networks can use the parameter settings of the deep neural network model constructed first without repeated selection; Step 202, constructing N heterogeneous deep neural network models based on the settings selected in step 201 for training the sub-models; Step 203, setting the hyperparameters required for model training, so that the sub-model training parameter settings are the same, but the data input is different; training a sub-model for the trend component and seasonal component after data decomposition respectively, each deep neural network will correspond to 2 sub-models, and 2N heterogeneous sub-models will be obtained after training; Step 204, save the prediction results of different sub-models trained in step 203 in the form of a list, called a prediction list, and calculate the MSE, MAE, and MAPE evaluation indicators of these sub-models.
[0009] The specific steps of model fusion in the integrated learning module are: Step 300, expanding the evaluation index MAPE of all sub-models in step 204 on all prediction dimensions and saving it as a mean absolute percentage error list; Step 301, using the best prediction ensemble algorithm based on MAPE trend differences, deeply evaluate the prediction performance of all sub-models on the validation set, and select the sub-model with local optimal properties according to the definition of local optimality in the algorithm; Step 302, saving the sub-model selection scheme obtained in step 301, that is, the integration scheme; Step 303: Apply the integrated solution to the test set to obtain the integrated prediction result.
[0010] For the long time series, the prediction window length F should be at least 4 times the basic period value P. For example, if the data set has one data point per hour, the basic period value P is 24, and the prediction task window length should be at least 96, otherwise it can hardly be called a long time series prediction task, and it is not within the scope of application of the integrated learning device.
[0011] The STL decomposition method is to adjust the seasonal smoothing parameters according to different data sets and discard the residual components. After decomposition, the trend, seasonality and residual components are obtained. After discarding the residual components, only the trend and seasonality components are saved according to the saving method described in step 105 for subsequent prediction.
[0012] The sub-model training module should be trained separately for the trend component and the seasonal component according to the training method described in step 203, and when training the trend component, the encoding vector dimension dmodel setting and the learning rate update scheme of the deep model should be reduced to make it more suitable for smoother and more predictable trend prediction tasks.
[0013] The optimal prediction integration algorithm based on MAPE trend difference receives three inputs: a prediction list containing multiple prediction models in step 204, the corresponding average absolute percentage error list in step 300, and the set unit interval length (default is P). The goal of the algorithm is to select the prediction model with the smallest average absolute percentage error from the provided prediction list according to each unit interval. The specific operation is as follows: the algorithm first defines two outputs, the best prediction list and the best average absolute percentage error list. Then, the algorithm traverses the entire prediction period, processing one unit interval at a time. In each unit interval, the algorithm initializes the best error of the interval to infinity and sets the best prediction to null. Next, the algorithm traverses the prediction results of each sub-model, calculates the average absolute percentage error of each model in the current interval, and compares it with the current best error. If the error of the current model is smaller, the best error and best prediction of the interval are updated. Finally, the best prediction of each interval is merged into the best prediction list. When all intervals are processed, the algorithm outputs the final best prediction list and the best average absolute percentage error list. This method ensures that the best performing prediction model is selected in each unit interval.
[0014] A long time series prediction ensemble learning method based on multi-period divergence, comprising a sequence decomposition step, a sub-model training step, and an ensemble learning step; The sequence decomposition steps are the same as the sequence decomposition module implementation steps.
[0015] The sub-model training steps are the same as the implementation steps of the sub-model training module.
[0016] The steps of ensemble learning and the steps of model fusion in ensemble learning module are the same as the steps of model fusion.
[0017] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the long time series prediction integrated learning method based on multi-period divergence as described above is implemented.
[0018] A computer-readable storage medium stores a computer program for executing the long time series prediction ensemble learning method based on multi-period divergence as described above.
[0019] Beneficial effect: Compared with the prior art, the long time series prediction ensemble learning device based on multi-period divergence provided by the present invention uses an ensemble learning method to improve the prediction accuracy without reducing the difficulty of the sequence prediction task, especially improving the prediction accuracy in the farther future in the prediction window. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1A flowchart of a sequence decomposition of an embodiment of the present invention; Figure 2 A flowchart of a training sub-model according to an embodiment of the present invention; Figure 3 The figure is a flowchart of integrating sub-models according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The present invention is further explained below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.
[0022] The following embodiments are explained using the power load forecasting on mobile devices as a specific example. In real applications, the differences between power data are large, especially for medium- and long-term power load forecasting tasks. The periodicity, peak-to-valley difference, stability, and fluctuation of different data sets are significantly different. At the same time, the model may be deployed on some mobile devices or websites for calculation, such as mobile devices with embedded algorithms.
[0023] The long time series prediction ensemble learning device based on multi-period divergence is applied to long time series prediction task scenarios, mainly to solve the problem of insufficient prediction accuracy, including sequence decomposition module, sub-model training module and ensemble learning module.
[0024] like Figure 1 As shown in FIG. 1 , the sequence decomposition process of the sequence decomposition module is as follows: first, collect the power load data for training (step 100); determine the daily data granularity of the load sequence, taking one data point per hour as an example, the basic period value P is, and assuming that the prediction window length F is 336, it is to predict the load trend in the next 14 days (step 101); divide the training, verification and prediction data, and use the sliding window to complete the segmentation operation of the training input and the training mark (step 102); train the normalizer on the training set and standardize all the data (step 103); use the STL decomposition method of the specified period to decompose the time series data multiple times, and set the decomposition period to different integer multiples of P, P starts from 24 and goes up to 672, for a total of 28 times (step 104); save the trend and seasonal components in the 28 decomposition results, a total of 56 components, into a file (step 105) to avoid repeated decomposition and increase the overhead.
[0025] like Figure 2As shown, the process of training sub-models in the sub-model training module is as follows: first, read the saved time series data components decomposed based on 28 different decomposition periods in step 204, a total of 28 pairs of 56 components (step 200); construct a deep neural network model for selecting the settings of key factors such as local normalization techniques (step 201); construct 56 heterogeneous deep neural network models as sub-models based on the selected settings (step 202); ensure that the sub-model training parameter settings are the same, but the data inputs are different, merge the results of each group of trend models and seasonal models, and obtain 28 heterogeneous sub-models after training (step 203); calculate the MSE, MAE, and MAPE evaluation indicators of different sub-models (step 204).
[0026] like Figure 3 As shown, the steps of integrating the sub-models by the integrated learning module are as follows: expand the main evaluation MAPE of the 28 sub-models on all prediction dimensions (step 300); use the best prediction integration algorithm based on MAPE trend difference to deeply evaluate the prediction performance of all sub-models on the validation set, and select the sub-model with local optimal properties (step 301); save the integration scheme (step 302); apply the integration scheme selected on the validation set to the test set to obtain the integrated prediction result (step 303).
[0027] A long time series prediction ensemble learning method based on multi-period divergence includes a sequence decomposition step, a sub-model training step, and an ensemble learning step. First, the time series data is collected and processed, and the training and prediction data are divided, and multiple rounds of decomposition are performed on the sequence for multiple periods. Then, the key factors of the prediction task are analyzed, and multiple different sub-models are trained on the data after decomposition at different scales. Finally, these models are integrated to identify the divergence between the prediction performance trends after multi-period decomposition, and the models with the best prediction performance on some dimensions of the long series are selected and spliced together to complete the integration based on multi-period divergence and improve the accuracy of long series prediction.
[0028] Obviously, those skilled in the art should understand that the various steps of the long time series prediction integrated learning method based on multi-period divergence or the various modules of the long time series prediction integrated learning device based on multi-period divergence of the above-mentioned embodiment of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented with executable program codes of computing devices, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
Claims
1. A long time series prediction ensemble learning device based on multi-period divergence, characterized in that: Applied to long time series prediction task scenarios, including sequence decomposition module, sub-model training module and integrated learning module; The sequence decomposition module first collects and processes time series data, divides the training data and the data to be predicted, and performs multiple rounds of decomposition on the time series data in multiple periods; then analyzes the key factors of the prediction task; The sub-model training module trains multiple different sub-models on the data after multiple cycles and multiple rounds of decomposition; The integrated learning module integrates these sub-models, identifies the divergence between the prediction performance trends after multi-period decomposition, selects those sub-models with the best prediction performance on some dimensions of the long sequence, and splices them together to complete the integration based on multi-period divergence.
2. The long time series prediction integrated learning device based on multi-cycle divergence according to claim 1 is characterized in that: The specific steps for implementing the sequence decomposition module are as follows: Step 100, collecting time series data for training; Step 101, determine the daily data granularity of the time series as the basic period value P, and determine the prediction window length F; Step 102, divide the training, verification and prediction data, and use a sliding window to complete the segmentation operation of the training input and the training mark; Step 103, training a normalizer on the training set and normalizing all data; Step 104, use the STL decomposition method to decompose the time series multiple times, and set the decomposition period to different integer multiples of P, starting from 1 times to 2 times F, a total of N; Step 105, saving the trend and seasonal components in the decomposition results to a file.
3. The long time series prediction integrated learning device based on multi-cycle divergence according to claim 2 is characterized in that: The implementation steps of the sub-model training module are as follows: Step 200, reading the decomposition result in step 105; Step 201, first construct a deep neural network model to select key factors such as local normalization techniques. After the key factors are selected, other neural networks can use the parameter settings of the deep neural network model constructed first; Step 202, constructing N heterogeneous deep neural network models based on the settings selected in step 201 for training the sub-models; Step 203, setting the hyperparameters required for model training, so that the sub-model training parameter settings are the same, but the data input is different; training a sub-model for the trend component and seasonal component after data decomposition respectively, each deep neural network will correspond to 2 sub-models, and 2N heterogeneous sub-models will be obtained after training; Step 204, save the prediction results of different sub-models trained in step 203 in the form of a list, called a prediction list, and calculate the MSE, MAE, and MAPE evaluation indicators of these sub-models.
4. The long time series prediction integrated learning device based on multi-cycle divergence according to claim 3 is characterized in that: The specific steps of model fusion in the integrated learning module are: Step 300, expanding the evaluation index MAPE of all sub-models in step 204 on all prediction dimensions and saving it as a mean absolute percentage error list; Step 301, using the best prediction ensemble algorithm based on MAPE trend differences, deeply evaluate the prediction performance of all sub-models on the validation set, and select the sub-model with local optimal properties according to the definition of local optimality in the algorithm; Step 302, saving the sub-model selection scheme obtained in step 301, that is, the integration scheme; Step 303: Apply the integrated solution to the test set to obtain the integrated prediction result.
5. The long time series prediction integrated learning device based on multi-period divergence according to claim 1 is characterized in that: For long time series forecasting tasks, the forecast window length F should be at least 4 times the base period value P.
6. The long time series prediction integrated learning device based on multi-period divergence according to claim 1 is characterized in that: The STL decomposition method adjusts seasonal smoothing parameters according to different data sets and discards residual components. After decomposition, the three components of trend, seasonality and residual are obtained. After discarding the residual components, the trend and seasonal components are saved for subsequent prediction.
7. The long time series prediction integrated learning device based on multi-period divergence according to claim 1 is characterized in that: The optimal prediction integration algorithm based on MAPE trend difference receives three inputs: a prediction list containing multiple prediction models, a mean absolute percentage error list, and a set unit interval length; The goal of the algorithm is to select the prediction model with the smallest mean absolute percentage error from the provided prediction list according to each unit interval; the specific operations are as follows: the algorithm first defines two outputs, the best prediction list and the best mean absolute percentage error list; then, the algorithm traverses the entire prediction period, processing one unit interval at a time; in each unit interval, the algorithm initializes the best error of the interval to infinity and sets the best prediction to empty; then, the algorithm traverses the prediction results of each sub-model, calculates the mean absolute percentage error of each model in the current interval, and compares it with the current best error. If the error of the current model is smaller, the best error and best prediction of the interval are updated; finally, the best prediction of each interval is merged into the best prediction list; when all intervals are processed, the algorithm outputs the final best prediction list and the best mean absolute percentage error list; this method ensures that the best performing prediction model is selected in each unit interval.
8. A long time series prediction ensemble learning method based on multi-period divergence, characterized in that: It includes sequence decomposition steps, sub-model training steps, and ensemble learning steps. First, collect and process time series data, divide the training data and the data to be predicted, and perform multiple rounds of decomposition on the time series data in multiple periods. Then, analyze the key factors of the prediction task. Train multiple sub-models on the data after multiple cycles and multiple rounds of decomposition; These sub-models are integrated to identify the divergences between the prediction performance trends after multi-period decomposition. The sub-models with the best prediction performance on some dimensions of the long sequence are selected and spliced together to complete the integration based on multi-period divergence.
9. A computer device, characterized in that: The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the long time series prediction integrated learning method based on multi-cycle divergence as described in claim 8 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the long time series prediction ensemble learning method based on multi-period divergence as described in claim 8.
Citation Information
Cited By
Residual period prediction method, system and device for enhancing time sequence prediction and medium
CN119294446A
Residual period prediction method, system, device and medium for enhancing time series prediction
CN119294446B
