Frequency modulation instruction prediction method and device for super capacitor energy storage system
Through the frequency modulation command prediction method for the supercapacitor energy storage system, the variational mode decomposition and long short-term memory network are used, combined with the error database to optimize the prediction model, to solve the problems of insufficient performance and low prediction accuracy of frequency modulation energy storage equipment in the existing technology. , achieving efficient frequency modulation command prediction and system optimization.
Patent Information
- Application Number
- CN202410854151.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-15
AI Technical Summary
The performance of existing auxiliary frequency regulation energy storage equipment in thermal power plants cannot meet the efficiency and reliability requirements of thermal power units, resulting in increased coal consumption, reduced reliability and low economic benefits. Moreover, the existing frequency regulation command prediction method has large errors and relies on the current prediction error. Feedback cannot make full use of historical error data, resulting in insufficient prediction accuracy.
Using the frequency modulation command prediction method of the supercapacitor energy storage system, multiple modal components are obtained through data set division, decomposition layer analysis and variational mode decomposition of historical data, and prediction error data analysis and improvement are carried out, combining long and short term The memory network predicts instruction data and uses the error database to optimize the prediction model to improve prediction accuracy and reliability.
Significantly improve the accuracy and reliability of frequency regulation command prediction, optimize the power distribution of lithium batteries and supercapacitors, improve the frequency regulation response speed and efficiency of the system, meet the frequency regulation needs of thermal power units, reduce coal consumption and improve economic benefits .
Smart Images

Figure CN118780428A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method and device for predicting frequency modulation instructions for a supercapacitor energy storage system. Background Art
[0002] At present, coal-fired thermal power units are the main frequency regulation power source in the power system. However, long-term frequency regulation will lead to increased coal consumption, reduced reliability and shortened operating life of the units. Despite the increasing demand for frequency regulation, high-quality and efficient frequency regulation power sources are still scarce. The large-scale grid connection of new energy sources has further aggravated this problem and increased the demand for frequency regulation of thermal power units. However, due to environmental pressure and the influence of factors such as "heat-to-electricity" of heating units, the regulation capacity of thermal power units is restricted. In order to improve the frequency regulation capacity of thermal power units, various auxiliary frequency regulation energy storage equipment have been developed in the prior art, but the performance of these equipment cannot meet the efficiency and reliability requirements of the units themselves, resulting in damage to the grid subsidy income and low economic benefits. In addition, the existing frequency regulation instruction prediction method has large errors and mainly relies on the current prediction error feedback. It cannot make full use of historical error data, resulting in insufficient prediction accuracy.
[0003] The existing auxiliary frequency regulation energy storage equipment for thermal power plants has many performance problems, which are specifically manifested in the following aspects: increased coal consumption, reduced reliability, reduced lifespan, and low frequency regulation efficiency. In addition, the existing frequency regulation instruction prediction method ignores historical error data, resulting in low accuracy of the prediction results. The error feedback model is only based on the current prediction error, which is accidental and difficult to stably improve the prediction accuracy. These problems together lead to low economic benefits of thermal power units and make it difficult to give full play to their frequency regulation capabilities. Summary of the invention
[0004] The present application provides a method and device for predicting frequency modulation instructions for a supercapacitor energy storage system, which are used to improve the accuracy of frequency modulation instruction prediction.
[0005] In a first aspect, the present application provides a frequency modulation instruction prediction method for a supercapacitor energy storage system, the frequency modulation instruction prediction method for a supercapacitor energy storage system comprising:
[0006] S1. Divide the acquired historical frequency modulation instruction data into data sets to obtain a training data set and a verification data set;
[0007] S2, performing a decomposition layer number analysis on the training data set to obtain a current decomposition layer number;
[0008] S3, performing variational modal decomposition on the training data set through the current number of decomposition layers to obtain multiple modal components;
[0009] S4, performing prediction error data analysis on each modal component to obtain improved error data corresponding to each modal component;
[0010] S5, summing the improved error data corresponding to each predicted instruction data to obtain error sum data and storing it in the error database, and judging whether the current number of decomposition layers meets the preset layer number threshold, if not, repeating steps S2 to S5; if satisfied, extracting multiple error sum data from the error database;
[0011] S6. Predict the historical frequency modulation instruction data according to the plurality of error summation data to obtain target frequency modulation instruction data.
[0012] In combination with the first aspect, in a first implementation of the first aspect of the present application, step S4 includes:
[0013] S41, inputting the multiple modal components into a long short-term memory network to perform instruction data prediction, and obtaining predicted instruction data for each modal component;
[0014] S42, performing error value analysis on the prediction instruction data of each modal component respectively through the verification data set to obtain an error value corresponding to each prediction instruction data;
[0015] S43, calculating the historical error data corresponding to each modal component, and weighting the error value corresponding to each prediction instruction data by the historical error data corresponding to each modal component, to obtain the improved error data corresponding to each prediction instruction data.
[0016] In combination with the first aspect, in a second implementation of the first aspect of the present application, the long short-term memory network includes: an input layer, a first LSTM layer, a second LSTM layer, a fully connected layer, and an output layer, and step S41 includes:
[0017] Inputting the multiple modal components into the input layer for time step matching to obtain a target time step, and performing time series data conversion on the multiple modal components by using the target time step to obtain time series data corresponding to each modal component;
[0018] Input the time series data corresponding to each modal component into the first LSTM layer to extract dependency data, so as to obtain dependency data of each time series data;
[0019] Inputting the dependency relationship data of each time series data into the second LSTM layer to extract time series features, so as to obtain time series feature data of each time series data;
[0020] Input the time series feature data of each time series data into the fully connected layer for prediction value mapping, and obtain a prediction value set corresponding to the time series feature data of each time series data;
[0021] The predicted value set corresponding to the time series feature data of each time series data is input into the output layer for prediction value fusion to obtain the predicted instruction data of each modal component.
[0022] In combination with the first aspect, in a third implementation of the first aspect of the present application, step S42 includes:
[0023] Matching the predicted instruction data of each modal component with the actual value through the verification data set to obtain the actual value corresponding to the predicted instruction data of each modal component;
[0024] By using a preset prediction error calculation formula, the actual value corresponding to the prediction instruction data of each modal component and the prediction instruction data of each modal component are calculated for the error value to obtain the error value corresponding to each prediction instruction data, wherein the prediction error calculation formula is as follows:
[0025]
[0026] Among them, MAPE is the error value corresponding to each predicted instruction data, n is the number of data points, Y t is the actual value corresponding to the predicted instruction data of each modal component, Prediction command data for each modal component.
[0027] In combination with the first aspect, in a fourth implementation of the first aspect of the present application, step S43 includes:
[0028] Extract multiple historical error values corresponding to each modal component, and respectively calculate the error mean of the multiple historical error values corresponding to each modal component to obtain the historical error mean corresponding to each modal component;
[0029] Matching the error weight coefficient of each prediction instruction data respectively by the historical error mean corresponding to each modal component, to obtain the error weight coefficient corresponding to each prediction instruction data;
[0030] The error value corresponding to each prediction instruction data is weighted by the error weight coefficient corresponding to each prediction instruction data to obtain the improved error data corresponding to each prediction instruction data.
[0031] In combination with the first aspect, in a fifth implementation of the first aspect of the present application, step S6 includes:
[0032] S61, screening out the target error sum data with the smallest value among the plurality of error sum data, and extracting a prediction value sequence corresponding to the target error sum data;
[0033] S62. Optimize the predicted value sequence to obtain a target predicted value sequence, and use the target predicted value sequence to perform frequency modulation instruction data prediction on the historical frequency modulation instruction data to obtain target frequency modulation instruction data.
[0034] In combination with the first aspect, in a sixth implementation of the first aspect of the present application, step S62 includes:
[0035] S621, optimizing the subsequence with the largest error in the predicted value sequence to obtain a target subsequence;
[0036] S622, performing sequence optimization on the predicted value sequence according to the target subsequence to obtain a target predicted value sequence;
[0037] S623. Predict the historical frequency modulation instruction data using the target prediction value sequence to obtain target frequency modulation instruction data.
[0038] In a second aspect, the present application provides a frequency modulation instruction prediction device for a supercapacitor energy storage system, the frequency modulation instruction prediction device for a supercapacitor energy storage system comprising:
[0039] A data partitioning module is used to partition the acquired historical frequency modulation instruction data into data sets to obtain a training data set and a verification data set;
[0040] A layer number analysis module is used to perform a decomposition layer number analysis on the training data set to obtain a current decomposition layer number;
[0041] A modal decomposition module, configured to perform variational modal decomposition on the training data set through the current number of decomposition layers to obtain a plurality of modal components;
[0042] A data analysis module is used to analyze the prediction error data of each modal component to obtain improved error data corresponding to each modal component;
[0043] The error summing module is used to sum the improved error data corresponding to each predicted instruction data, obtain the error summing data and store it in the error database, and judge whether the current decomposition layer number meets the preset layer number threshold. If not, repeat steps S2 to S5; if satisfied, extract multiple error summing data from the error database;
[0044] The data prediction module is used to perform frequency modulation instruction data prediction on the historical frequency modulation instruction data according to the multiple error summation data to obtain target frequency modulation instruction data.
[0045] The third aspect of the present application provides a frequency modulation instruction prediction device for a supercapacitor energy storage system, comprising: a memory and at least one processor, wherein instructions are stored in the memory; the at least one processor calls the instructions in the memory so that the frequency modulation instruction prediction device for the supercapacitor energy storage system executes the above-mentioned frequency modulation instruction prediction method for the supercapacitor energy storage system.
[0046] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned frequency modulation instruction prediction method for a supercapacitor energy storage system.
[0047] In the technical solution provided by the present application, by dividing the data set, it is ensured that sufficient historical data support can be obtained during the model training process, and the introduction of the verification data set can effectively prevent the model from overfitting and ensure the generalization ability of the prediction model. By analyzing the number of decomposition layers, the decomposition depth that is most suitable for the current data set can be determined, thereby laying the foundation for subsequent data processing and ensuring that the variational modal decomposition can accurately capture the intrinsic characteristics of the data. The training data set is subjected to variational modal decomposition through the current number of decomposition layers to obtain multiple modal components. Variational modal decomposition can decompose complex frequency modulation instruction data into several modal components, each modal component representing different frequency components and trends of the data, which is helpful for subsequent accurate prediction. At the same time, variational modal decomposition can effectively filter out noise in the data, improve the data parseability and robustness of the model. Forecast error data analysis is performed on each modal component to obtain improved error data corresponding to each modal component. By performing error data analysis on each modal component, systematic errors in the prediction process can be identified and improved based on historical data, thereby improving the accuracy and reliability of the prediction. The introduction of improved error data can effectively reduce random errors in prediction and improve the stability of the prediction model. The improved error data corresponding to each predicted instruction data is summed to obtain the error sum data and store it in the error database, and it is judged whether the current decomposition layer number meets the preset layer number threshold. If not, steps S2 to S5 are repeated; if it is satisfied, multiple error sum data are extracted from the error database. Through iterative calculation and judgment, it is ensured that the error of each decomposition layer number is fully analyzed and improved, and finally the optimal error sum data is obtained. The introduction of the error database provides a storage and reference mechanism for historical errors, ensuring the continuous optimization of the prediction model. The frequency modulation instruction data of the historical frequency modulation instruction data is predicted according to multiple error sum data to obtain the target frequency modulation instruction data. The final prediction of the frequency modulation instruction based on the comprehensive error sum data can significantly improve the accuracy and reliability of the prediction. By considering historical errors and comprehensively analyzing error data, the prediction model can more accurately reflect future frequency modulation needs, optimize the power distribution of lithium batteries and supercapacitors, and improve the frequency modulation response speed and efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0049] Figure 1 A schematic diagram of an embodiment of a method for predicting frequency modulation instructions for a supercapacitor energy storage system in an embodiment of the present application;
[0050] Figure 2 Schematic diagram of an embodiment of a frequency modulation instruction prediction device for a supercapacitor energy storage system in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The embodiment of the present application provides a method and device for predicting frequency modulation instructions for a supercapacitor energy storage system. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0052] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the frequency modulation instruction prediction method for a supercapacitor energy storage system in the embodiment of the present application includes:
[0053] S1. Divide the acquired historical frequency modulation instruction data into data sets to obtain a training data set and a verification data set;
[0054] S2, analyze the number of decomposition layers of the training data set to obtain the current number of decomposition layers;
[0055] S3, performing variational modal decomposition on the training data set through the current decomposition layer number to obtain multiple modal components;
[0056] S4, performing prediction error data analysis on each modal component to obtain improved error data corresponding to each modal component;
[0057] S5, summing the improved error data corresponding to each predicted instruction data, obtaining the error sum data and storing it in the error database, and judging whether the current decomposition layer number meets the preset layer number threshold, if not, repeating steps S2 to S5; if satisfied, extracting multiple error sum data from the error database;
[0058] S6. Predict the historical frequency modulation instruction data according to the multiple error summation data to obtain the target frequency modulation instruction data.
[0059] It is understandable that the execution subject of the present application may be a frequency modulation instruction prediction device for a supercapacitor energy storage system, or a terminal or a server, which is not limited here. The present application embodiment is described by taking a server as the execution subject as an example.
[0060] Specifically, assuming there is one year of historical frequency modulation instruction data, 80% of the data is used as the training data set and the remaining 20% is used as the validation data set. This can effectively prevent the model from overfitting while ensuring the reliability of the prediction results.
[0061] The training data set is analyzed for the number of decomposition layers to obtain the current number of decomposition layers. The determination of the number of decomposition layers is crucial because it directly affects the effect of variational mode decomposition (VMD). The process of decomposition layer analysis includes performing spectrum analysis on the training data to determine the main frequency components in the data, thereby determining the appropriate number of decomposition layers. For example, through spectrum analysis, it is found that the spectrum of the training data is distributed in 5 main frequency bands, and the number of decomposition layers can be preliminarily set to 5. After determining the number of decomposition layers, the training data set is subjected to variational mode decomposition through the current number of decomposition layers to obtain multiple modal components (IMF, Intrinsic Mode Functions). VMD can decompose complex time series data into several modal components with physical significance, each modal component representing different frequency components and trends of the data. For example, suppose that after the training data set is decomposed by VMD, 5 IMFs are obtained, where IMF1 represents high-frequency components, IMF2 represents medium-high frequency components, IMF3 represents medium-frequency components, IMF4 represents medium-low frequency components, and IMF5 represents low-frequency components. In this way, each IMF can be analyzed and predicted independently. After that, the prediction error data analysis is performed on each modal component to obtain the improved error data corresponding to each modal component. The prediction error data analysis is based on the prediction error of historical data. By comparing with the actual value, the error of each modal component is calculated. Assume that when predicting IMF1, the calculated mean absolute percentage error (MAPE) is 5%, while the MAPE of IMF2 is 4%, and so on. In order to further improve the prediction accuracy, these errors are improved, and the current prediction error is adjusted by introducing historical error data to obtain improved error data. The improved error data corresponding to each prediction instruction data is summed to obtain the error sum data and store it in the error database, and it is judged whether the current decomposition layer meets the preset layer threshold. The calculation of the error sum data is to perform a weighted sum of the improved errors of each modal component to comprehensively evaluate the performance of the current prediction model. If the error sum data is less than the preset threshold, it means that the current decomposition layer is appropriate, otherwise the decomposition layer needs to be adjusted and the VMD decomposition and error analysis need to be performed again. For example, if the preset error threshold is 2%, and the current error sum data is 2.5%, it is necessary to increase or decrease the number of decomposition layers and re-execute the decomposition and analysis steps. If the current number of decomposition layers meets the preset layer threshold, multiple error sum data are extracted from the error database, and the historical frequency modulation instruction data are predicted based on these data to obtain the target frequency modulation instruction data. The final prediction process is based on the comprehensive error sum data, and the future frequency modulation instructions are accurately predicted by considering the historical errors and current errors.Assume that at a certain moment, historical data shows that the past frequency modulation demand has shown an upward trend, and the current error analysis shows that the predicted value is more accurate, then the final prediction result will be more reliable.
[0062] For example, in practical applications, assume that a supercapacitor energy storage system needs to respond to a frequency modulation instruction within the next hour. Through the above method, the frequency modulation data of the past year is first divided into training and verification data sets, and the appropriate number of decomposition layers is determined to be 5, and then VMD decomposition is performed to obtain 5 IMFs. By performing error analysis and improvement on each IMF, the error summation data is obtained by comprehensive calculation and stored in the error database. If the error summation data meets the preset threshold, these data are used to predict the frequency modulation instruction for the next hour, and finally obtain more accurate target frequency modulation instruction data. In this way, the supercapacitor energy storage system can reasonably allocate the power output of capacitors and batteries according to the predicted frequency modulation instruction data to ensure the efficient operation of the system.
[0063] In the embodiment of the present application, by dividing the data set, it is ensured that sufficient historical data support can be obtained during the model training process, and the introduction of the verification data set can effectively prevent the model from overfitting and ensure the generalization ability of the prediction model. By analyzing the number of decomposition layers, the decomposition depth that is most suitable for the current data set can be determined, thereby laying the foundation for subsequent data processing and ensuring that the variational modal decomposition can accurately capture the intrinsic characteristics of the data. The training data set is subjected to variational modal decomposition through the current number of decomposition layers to obtain multiple modal components. Variational modal decomposition can decompose complex frequency modulation instruction data into several modal components, each modal component representing different frequency components and trends of the data, which is helpful for subsequent accurate prediction. At the same time, variational modal decomposition can effectively filter out noise in the data, improve the data analyzability and the robustness of the model. Prediction error data analysis is performed on each modal component to obtain improved error data corresponding to each modal component. By performing error data analysis on each modal component, systematic errors in the prediction process can be identified and improved according to historical data, thereby improving the accuracy and reliability of the prediction. The introduction of improved error data can effectively reduce random errors in the prediction and improve the stability of the prediction model. The improved error data corresponding to each predicted instruction data is summed to obtain the error sum data and store it in the error database, and it is judged whether the current decomposition layer number meets the preset layer number threshold. If not, steps S2 to S5 are repeated; if it is satisfied, multiple error sum data are extracted from the error database. Through iterative calculation and judgment, it is ensured that the error of each decomposition layer number is fully analyzed and improved, and finally the optimal error sum data is obtained. The introduction of the error database provides a storage and reference mechanism for historical errors, ensuring the continuous optimization of the prediction model. The frequency modulation instruction data of the historical frequency modulation instruction data is predicted according to multiple error sum data to obtain the target frequency modulation instruction data. The final prediction of the frequency modulation instruction based on the comprehensive error sum data can significantly improve the accuracy and reliability of the prediction. By considering historical errors and comprehensively analyzing error data, the prediction model can more accurately reflect future frequency modulation needs, optimize the power distribution of lithium batteries and supercapacitors, and improve the frequency modulation response speed and efficiency of the system.
[0064] In a specific embodiment, the process of executing step S4 may specifically include the following steps:
[0065] S41, inputting multiple modal components into a long short-term memory network to predict instruction data, and obtaining predicted instruction data for each modal component;
[0066] S42, performing error value analysis on the prediction instruction data of each modal component respectively through the verification data set to obtain the error value corresponding to each prediction instruction data;
[0067] S43, calculating the historical error data corresponding to each modal component, and weighting the error value corresponding to each prediction instruction data by the historical error data corresponding to each modal component, to obtain the improved error data corresponding to each prediction instruction data.
[0068] Specifically, multiple modal components (IMFs) obtained by variational mode decomposition are input into the long short-term memory network (LSTM) for instruction data prediction to obtain the predicted instruction data of each modal component. The long short-term memory network is a recursive neural network specially used for processing and predicting time series data, which can capture long-term dependencies in the data. Assuming that there are five IMFs (IMF1 to IMF5), these IMFs are used as the input of the LSTM network respectively. LSTM effectively learns and memorizes the time series features in each modal component through the memory unit and gating mechanism in its structure, thereby predicting the instruction data of each modal component at the future moment. For example, IMF1 represents a high-frequency component, and its predicted instruction data may change frequently in a short time, while IMF5 represents a low-frequency component, and its predicted instruction data changes slowly. Next, the error value analysis of the predicted instruction data of each modal component is performed through the validation data set to obtain the error value corresponding to each predicted instruction data. The role of the validation data set is to evaluate the performance of the prediction model and ensure that the model can perform well on unseen data. For the predicted instruction data of each IMF, the prediction error is calculated by comparing it with the actual value in the validation data set. Here, the mean absolute percentage error (MAPE) is used as the error metric. Assume that the MAPE of IMF1 for predicting instruction data is 5%, the MAPE of IMF2 is 4%, and so on. These error values reflect the prediction accuracy of the model on different frequency components.
[0069] Then, it is necessary to calculate the historical error data corresponding to each modal component, and weight the error values corresponding to each forecast instruction data by the historical error data corresponding to each modal component, and obtain the improved error data corresponding to each forecast instruction data. Historical error data refers to the error information accumulated in the past forecasting process, which can be used to adjust the current forecast error. Specifically, assuming that there is error data for each IMF in the past 100 forecasts, the historical error mean of each IMF can be obtained by calculating the mean of these historical errors. Then, the current forecast error is weighted by these historical error means, so that the weighted error is more accurate. For example, if the historical error mean of IMF1 is 4% and the current forecast error is 5%, the current forecast error can be adjusted to improved error data that is closer to the actual value by weighting.
[0070] For example, suppose that at a certain moment, the supercapacitor energy storage system needs to predict the frequency modulation instructions for the next hour. First, the system decomposes the historical frequency modulation data into five IMFs through variational mode decomposition, and inputs these IMFs into the trained LSTM network for prediction to obtain the predicted instruction data for each IMF. Then, through the verification data set, the error value analysis of these predicted instruction data is performed, and it is assumed that the prediction errors of IMF1 to IMF5 are 5%, 4%, 3%, 2% and 1% respectively. Next, the system calculates the historical error mean of each IMF, assuming that the historical error mean of IMF1 is 4%, IMF2 is 3.5%, IMF3 is 3%, IMF4 is 2.5%, and IMF5 is 1.5%. By weighting these historical error means with the current prediction error, in an embodiment of the present application, the following formula is used to improve the error of each IMF to obtain the improved error data of each IMF, and the formula is:
[0071]
[0072] Among them, W i is the improved error of the i-th modal component;
[0073] f′(q) is the improved modal component corresponding to the ith modal component, q is the number of improvement cycles, indicating that the current ith modal component is undergoing the qth cycle improvement, f(q) is the ith modal component, exp() is the probability density function, MAPEW i is the mean absolute percentage error corresponding to the improved error of the i-th modal component, simpson(a,b) represents the numerical integration algorithm, a is the first constant, and b is the second constant.
[0074] Specifically, the current forecast error of IMF1 of 5% can be adjusted to improved error data that is closer to the actual value by weighting it with its historical error mean of 4%.
[0075] In this way, through the above steps, more accurate frequency modulation command prediction data can be obtained, improving the accuracy and reliability of the prediction model. In the supercapacitor energy storage system, accurate frequency modulation command prediction can better guide the power distribution of the system, improve the response speed and efficiency of the system, and ensure the stable operation of the power grid. For example, when predicting the frequency modulation demand in the next hour, by combining the improved error data of multiple IMFs, the system can more accurately adjust the power output of lithium batteries and supercapacitors to cope with the frequency modulation demand of different frequency components and optimize the overall performance of the system.
[0076] In this way, using LSTM to predict multiple IMFs, combined with error analysis of the validation data set and weighted adjustment of historical error data, can significantly improve the frequency modulation command prediction accuracy of the supercapacitor energy storage system and improve the system's operating efficiency and stability. This process not only makes full use of the information in the historical data, but also through multiple iterations and adjustments, the prediction model can be continuously optimized to better meet the frequency modulation needs in practical applications.
[0077] In a specific embodiment, the long short-term memory network includes: an input layer, a first LSTM layer, a second LSTM layer, a fully connected layer, and an output layer. The process of executing step S41 may specifically include the following steps:
[0078] (1) Input multiple modal components into the input layer for time step matching to obtain the target time step, and perform time series data conversion on multiple modal components through the target time step to obtain the time series data corresponding to each modal component;
[0079] (2) Input the time series data corresponding to each modal component into the first LSTM layer to extract dependency data, and obtain the dependency data of each time series data;
[0080] (3) Inputting the dependency data of each time series data into the second LSTM layer to extract time series features, thereby obtaining time series feature data of each time series data;
[0081] (4) Inputting the time series feature data of each time series data into the fully connected layer for prediction value mapping, and obtaining a set of prediction values corresponding to the time series feature data of each time series data;
[0082] (5) The predicted value set corresponding to the time series feature data of each time series data is input into the output layer for prediction value fusion to obtain the predicted instruction data of each modal component.
[0083] Specifically, multiple modal components obtained by variational mode decomposition are input into the input layer for time step matching to obtain the target time step, and multiple modal components are converted into time series data by the target time step, so as to obtain the time series data corresponding to each modal component. For example, for IMF1 to IMF5, each modal component contains time series data of different frequency components. The function of the input layer is to normalize these time series data into a unified time step, so as to facilitate the processing of the subsequent LSTM layer. The time series data corresponding to each modal component is input into the first LSTM layer for dependency data extraction to obtain the dependency data of each time series data. The main function of the first LSTM layer is to capture the long-term dependency in the data through its internal memory unit and gating mechanism. For example, IMF1 may contain high-frequency components. Through the processing of the first LSTM layer, the dependency data in the high-frequency components can be extracted, which reflects the frequent change pattern in a short time. Similarly, IMF5 may contain low-frequency components. Through the first LSTM layer, the dependency data in the low-frequency components can be extracted, which reflects the long-term trend and slow change pattern.
[0084] Then, the dependency data of each time series data is input into the second LSTM layer for time series feature extraction to obtain the time series feature data of each time series data. The second LSTM layer further performs deep time series feature extraction on the dependency data to capture the complex patterns and features in the data. For example, the high-frequency components of IMF1 are processed by the first LSTM layer to obtain preliminary dependency data. Through further processing by the second LSTM layer, more refined high-frequency features can be extracted, which may include sudden spikes and fluctuations. Similarly, the low-frequency components of IMF5 are processed by the second LSTM layer to extract small change features in long-term trends, which may include slow rising or falling trends.
[0085] Next, the time series feature data of each time series data is input into the fully connected layer for prediction value mapping, and a set of prediction values corresponding to the time series feature data of each time series data is obtained. The function of the fully connected layer is to map the time series features extracted from the LSTM layer to a specific prediction value space. For example, the high-frequency feature data of IMF1 can be mapped through the fully connected layer to obtain a set of specific prediction values, which represent the specific changes of the high-frequency components in the future. Similarly, the low-frequency feature data of IMF5 can be mapped through the fully connected layer to obtain another set of specific prediction values, which represent the specific changes of the low-frequency components in the future.
[0086] Finally, the predicted value set corresponding to the time series feature data of each time series data is input into the output layer for predicted value fusion to obtain the predicted instruction data of each modal component. The function of the output layer is to fuse the predicted values of different modal components to obtain the final predicted instruction data. For example, by fusing the predicted value sets from IMF1 to IMF5, a comprehensive predicted instruction data can be obtained, which reflects the comprehensive changes of all frequency components in the future.
[0087] For example, suppose that at a certain moment, the supercapacitor energy storage system needs to predict the frequency modulation instructions for the next hour. The system first decomposes the historical frequency modulation data into five IMFs through variational mode decomposition, and inputs these IMFs into the LSTM network respectively. The input layer matches the time step of the time series data of each IMF to obtain the target time step, assuming that the target time step is 5 minutes. Then, these time series data are input into the first LSTM layer, and the dependency data of each IMF is extracted through its memory unit and gating mechanism. For example, the high-frequency component of IMF1 may contain spike data for every 5 minutes in the next hour, while the low-frequency component of IMF5 may contain the overall trend data for the next hour.
[0088] Next, these dependency data are input into the second LSTM layer for deeper time series feature extraction. For example, the high-frequency spike data of IMF1 can be further processed by the second LSTM layer to extract the subtle fluctuation characteristics between the spikes, while the long-term trend data of IMF5 can be further processed by the second LSTM layer to extract the slight fluctuation characteristics in the trend. These time series feature data are then input into the fully connected layer for prediction value mapping to obtain a specific set of prediction values. Finally, the output layer fuses these prediction value sets to obtain the final prediction instruction data.
[0089] In this way, the system can accurately predict the frequency modulation instructions for the next hour, thereby reasonably allocating the power output of lithium batteries and supercapacitors to ensure the efficient operation of the system. For example, assuming that the final predicted instruction data indicates that there will be two high-frequency frequency modulation requirements and one low-frequency frequency modulation requirement in the next hour, the system can dynamically adjust the power output of lithium batteries and supercapacitors based on these predicted instructions to meet the frequency modulation requirements of different frequency components and optimize the overall performance of the system.
[0090] In a specific embodiment, the process of executing step S42 may specifically include the following steps:
[0091] (1) Match the predicted instruction data of each modal component with the actual value through the verification data set to obtain the actual value corresponding to the predicted instruction data of each modal component;
[0092] (2) By using a preset prediction error calculation formula, the error value of the actual value corresponding to the prediction instruction data of each modal component and the prediction instruction data of each modal component are calculated to obtain the error value corresponding to each prediction instruction data, wherein the prediction error calculation formula is as follows:
[0093]
[0094] Among them, MAPE is the error value corresponding to each predicted instruction data, n is the number of data points, Y t is the actual value corresponding to the predicted instruction data of each modal component, Prediction command data for each modal component.
[0095] Specifically, by matching the predicted instruction data with the actual values in the validation data set, the accuracy of the prediction model can be effectively evaluated. Assuming there are five modal components (IMF1 to IMF5), the predicted instruction data of each modal component respectively represents the frequency modulation requirements of different frequency components. By matching these predicted instruction data with the actual values in the validation data set, the actual value of each modal component can be obtained. For example, for the predicted instruction data of IMF1, by matching the validation data set, its actual values at various time points can be obtained, and these actual values are used for subsequent error calculations.
[0096] Next, the error value of the actual value corresponding to the predicted instruction data of each modal component and the predicted instruction data of each modal component are calculated by using the preset prediction error calculation formula, so as to obtain the error value corresponding to each predicted instruction data. The prediction error calculation formula is as follows:
[0097]
[0098] Among them, MAPE is the error value corresponding to each predicted instruction data, n is the number of data points, Y t is the actual value corresponding to the predicted instruction data of each modal component at time t, is the predicted instruction data for each modal component at time t.
[0099] Specifically, MAPE stands for mean absolute percentage error, which can be used to quantify the error between the predicted data and the actual value. For example, for IMF1, the actual value at a certain point in time is 100, while the predicted value is 90, then the error value at that point in time is:
[0100]
[0101] By calculating the error values at each time point and taking the average, we can get the overall forecast error value of IMF1. If IMF1 has 10 data points, and their actual values are 95, 100, 105, etc., and the forecast values are 90, 95, 100, etc., we can calculate the error point by point and take the average to get the MAPE value of IMF1.
[0102] To further explain this process, we can assume that the following data is available on the validation dataset: IMF1 at time points t1 to t 10 The actual values are 100, 95, 110, 105, 100, 98, 97, 96, 102, 101, while the predicted values are 90, 93, 108, 102, 99, 97, 95, 94, 100, 99. The error value at each time point can be calculated by the forecast error calculation formula, for example, the error at t1 is 10%, the error at t2 is 2.11%, and so on. The error values at all time points are summed and averaged to get the MAPE value of IMF1.
[0103] Similarly, for other modal components (IMF2 to IMF5), their error values can be calculated by the same method. For example, the matching results of the actual value and predicted value of IMF2 on the validation data set are 105, 100, 95, etc. and 103, 98, 94, etc., respectively. By calculating the error value at each time point and averaging it, the MAPE value of IMF2 can be obtained.
[0104] This method can comprehensively evaluate the performance of the prediction model on different modal components. In particular, for the frequency modulation instruction prediction method used for supercapacitor energy storage systems, by accurately calculating the error value of each modal component, it is possible to identify which modal components have higher prediction accuracy and which modal components need further optimization. For example, assuming that the error calculation finds that the MAPE value of IMF3 is higher, this means that the prediction accuracy of the intermediate frequency component is not high. The system can further optimize the model for this modal component, such as adjusting the parameters of the LSTM network or introducing more historical data to improve the prediction accuracy.
[0105] Detailed error value analysis can provide important references for subsequent model optimization, thereby continuously improving the overall performance of the prediction model. This process not only helps to accurately evaluate the prediction ability of the current model, but also guides future model improvement and optimization strategies. In practical applications, through continuous error analysis and model optimization, the frequency modulation instruction prediction accuracy of the supercapacitor energy storage system can be continuously improved, thereby better meeting the frequency modulation requirements of the power system and improving the system's operating efficiency and stability.
[0106] In a specific embodiment, the process of executing step S43 may specifically include the following steps:
[0107] (1) extracting multiple historical error values corresponding to each modal component, and respectively calculating the error mean of the multiple historical error values corresponding to each modal component to obtain the historical error mean corresponding to each modal component;
[0108] (2) Matching the error weight coefficient of each prediction instruction data with the historical error mean corresponding to each modal component to obtain the error weight coefficient corresponding to each prediction instruction data;
[0109] (3) The error value corresponding to each prediction instruction data is weighted by the error weight coefficient corresponding to each prediction instruction data to obtain the improved error data corresponding to each prediction instruction data.
[0110] Specifically, it is a key step to extract multiple historical error values corresponding to each modal component and calculate the error mean of the multiple historical error values corresponding to each modal component to obtain the historical error mean corresponding to each modal component. Specifically, the historical error value refers to the prediction error data of each modal component in the past prediction process, and these error data reflect the prediction accuracy of the model at different time points. Assuming that there are five modal components (IMF1 to IMF5), the error values of each modal component in the past 100 predictions are recorded. By extracting these historical error values and calculating their mean, the historical error mean of each modal component can be obtained. For example, the error values of IMF1 in the past 100 predictions were 5%, 4%, 6%, etc., respectively. By averaging, it can be obtained that the historical error mean of IMF1 is 5%.
[0111] Next, the error weight coefficients of each forecast instruction data are matched by the historical error mean corresponding to each modal component to obtain the error weight coefficients corresponding to each forecast instruction data. The error weight coefficient is used to adjust the current forecast error to make the error calculation more accurate. Specifically, assuming that the historical error mean of IMF1 is 5%, and in the current forecast, its forecast error is 4%, an error weight coefficient can be obtained by matching the historical error mean with the current forecast error. For example, the calculation formula of the weight coefficient can be set as:
[0112]
[0113] For IMF1, its historical error average is 5% and its current forecast error is 4%, so its weight coefficient is:
[0114]
[0115] Similarly, for other modal components (IMF2 to IMF5), their error weight coefficients can be calculated by the same method. Through these weight coefficients, the error value of each prediction instruction data can be weighted to obtain improved error data. Specifically, by weighting the error value of each prediction instruction data respectively through the error weight coefficient corresponding to each prediction instruction data, the prediction error can be effectively reduced. For example, for the current prediction error of IMF1 is 4%, its weight coefficient is 1.25, and the improved error data obtained by weighting is: 4%×1.25=5%.
[0116] This improved error data is closer to the actual situation because it takes into account the error pattern in the historical prediction. In the above way, the error values of all modal components can be weighted and adjusted to obtain more accurate improved error data. For example, in a supercapacitor energy storage system, if the system needs to predict the frequency modulation instruction for the next hour, the above steps can accurately adjust the error of each modal component. For example, assuming that the system predicts the frequency modulation instruction data at five time points in the next hour, the historical error mean of each modal component is obtained by extracting the historical error values of IMF1 to IMF5 at these time points and calculating their mean. Then, by matching these historical error means with the current prediction error, the error weight coefficient of each modal component is calculated. Finally, the current prediction error is weighted by these weight coefficients to obtain the improved error data.
[0117] This process ensures that the prediction model can fully utilize the error information in historical data to make more accurate adjustments to the current prediction. By continuously optimizing the error calculation, the accuracy and reliability of the prediction model are greatly improved, allowing the supercapacitor energy storage system to better respond to the grid frequency regulation needs and improve the system's operating efficiency and stability.
[0118] For example, in practical applications, assuming that a supercapacitor energy storage system needs to respond to multiple frequency modulation instructions within the next hour, the above method can accurately predict the frequency modulation demand at each time point, and ensure the accuracy of the prediction results through error adjustment. Specifically, the prediction error of the system at each time point is weighted and adjusted by the historical error mean, so that the predicted value is closer to the actual situation. For example, the prediction error of the system at the first time point is 4%. After the weight adjustment of the historical error mean, the improved error data is 5%, which more accurately reflects the actual frequency modulation demand.
[0119] In a specific embodiment, the process of executing step S6 may specifically include the following steps:
[0120] S61, screening out target error sum data with the smallest value among multiple error sum data, and extracting a prediction value sequence corresponding to the target error sum data;
[0121] S62. Optimize the prediction value sequence to obtain a target prediction value sequence, and use the target prediction value sequence to predict the historical frequency modulation instruction data to obtain the target frequency modulation instruction data.
[0122] Specifically, multiple error summation data are obtained by performing error analysis and weighted summation on the predicted instruction data of each modal component. These data reflect the overall error level of the model under different parameter settings and prediction conditions. Assuming that there are five modal components (IMF1 to IMF5), their errors are calculated respectively under different prediction conditions, and weighted summation is performed to obtain a series of error summation data. By screening these data, the target error summation data with the smallest value can be selected, which represents the error level of the prediction model under the optimal conditions. After screening the target error summation data, the prediction value sequence corresponding to the data is extracted. The prediction value sequence refers to the prediction results of the model at each time point under the optimal conditions. For example, assuming that in the historical data of the past year, a total of 100 prediction value sequences are generated through different parameter settings and conditions. Each prediction value sequence contains the frequency modulation instruction prediction value within the next hour. By calculating the error summation data of each prediction value sequence and screening the sequence with the smallest error, it is the target prediction value sequence.
[0123] The target prediction value sequence is optimized to obtain the final target prediction value sequence. The optimization process includes smoothing the prediction value, correcting outliers, and adjusting trends. For example, in the target prediction value sequence, if the prediction value at a certain time point is abnormally high or low, it can be adjusted through smoothing to make the prediction value smoother and more reasonable. At the same time, by adjusting the trend of the prediction value, it can be ensured that the prediction result is more in line with the actual frequency modulation needs. For example, assuming that the prediction value at a certain time point in the target prediction value sequence is 50, and the prediction values at the previous and next time points are 30 and 32 respectively, through smoothing, the prediction value at this time point can be adjusted to a value closer to the previous and next time points, such as 35.
[0124] Through the above optimization process, the target prediction value sequence obtained is more accurate and stable. Next, the frequency modulation instruction data of the historical frequency modulation instruction data is predicted through the target prediction value sequence to obtain the final target frequency modulation instruction data. This process is based on the optimization results of the target prediction value sequence, and the historical data is regressed and predicted. For example, assuming that the target prediction value sequence indicates that the frequency modulation demand will gradually increase in the next hour, the historical data can be analyzed based on this sequence, and the model parameters can be adjusted to make the prediction results more in line with actual needs.
[0125] For example, in practical applications, assuming that a supercapacitor energy storage system needs to predict the frequency modulation instructions for the next hour, the above method can accurately screen and optimize the prediction value sequence. First, the system generates multiple prediction value sequences from historical data, and through error analysis and weighted summation, screens out the target error summation data with the smallest error, and extracts the corresponding prediction value sequence. Then, this prediction value sequence is smoothed and trend adjusted to obtain the optimized target prediction value sequence. For example, if the value of a certain time point in the target prediction value sequence is 60, and the values of the previous and next time points are 55 and 57 respectively, the value of the time point can be adjusted to 56 through smoothing, making the prediction sequence smoother and more reasonable.
[0126] Finally, through this optimized target prediction value sequence, the system predicts the historical frequency modulation instruction data and obtains the target frequency modulation instruction data in the next hour. These prediction data can guide the power allocation of lithium batteries and supercapacitors to ensure that the system can efficiently respond to future frequency modulation needs. For example, if the prediction results show that there will be three high-frequency frequency modulation needs and two low-frequency frequency modulation needs in the next hour, the system can dynamically adjust the power output of lithium batteries and supercapacitors based on these prediction results to ensure rapid response to high-frequency needs and stable output in low-frequency needs.
[0127] In a specific embodiment, the process of executing step S62 may specifically include the following steps:
[0128] S621, optimizing the subsequence with the largest error in the prediction value sequence to obtain a target subsequence;
[0129] S622, performing sequence optimization on the prediction value sequence according to the target subsequence to obtain a target prediction value sequence;
[0130] S623. Predict the historical frequency modulation instruction data using the target prediction value sequence to obtain target frequency modulation instruction data.
[0131] Specifically, an error analysis is performed on the predicted value sequence to identify the subsequence with the largest error. Assume that the predicted value sequence contains prediction data for 12 5-minute time intervals within the next hour. By comparing these predicted values with the actual values, the prediction error at each time point can be calculated. Assume that among these 12 time points, the prediction errors at the 3rd to 6th time points are the largest, and the subsequence composed of these four points is the subsequence with the largest error. For example, the predicted value at the 3rd time point is 50, the actual value is 60, and the error is 10; the predicted value at the 4th time point is 55, the actual value is 70, and the error is 15; the predicted value at the 5th time point is 53, the actual value is 68, and the error is 15; the predicted value at the 6th time point is 54, the actual value is 66, and the error is 12. Through calculation, the total error of these four time points is 52, which is significantly higher than other time points, so it is necessary to optimize this part of the subsequence.
[0132] Next, the subsequence with the largest error is optimized. The optimization process includes adjusting the parameters of the prediction model, performing smoothing and outlier correction, etc. For example, for the subsequence with the largest error mentioned above, the model can be retrained to focus on the data at these time points to improve the prediction accuracy. Smoothing can be used to reduce sudden fluctuations and make the prediction values more reasonable. For example, through smoothing, the prediction values at the 3rd to 6th time points can be adjusted to 55, 60, 58, and 59 respectively to reduce errors and fluctuations. At the same time, outlier correction can be used to deal with abnormal highs or lows in the prediction values to make the prediction results more in line with the actual situation.
[0133] The target subsequence is obtained by optimizing the subsequence with the largest error. This target subsequence should be closer to the actual value and have a smaller error than the original subsequence. For example, the predicted values at the 3rd to 6th time points after optimization are adjusted to 55, 60, 58, and 59, respectively, with errors of 5, 10, 8, and 7, respectively, and a total error of 30, which is significantly less than the total error of 52 in the original subsequence.
[0134] Then, the entire prediction value sequence is optimized according to the target subsequence to obtain the target prediction value sequence. The purpose of this step is to optimize the accuracy of the entire prediction sequence by adjusting the part with the largest error. Specifically, the optimization results of the target subsequence can be integrated into the entire prediction value sequence through smoothing and trend adjustment. For example, assuming that the original prediction value sequence is 48, 50, 50, 55, 60, 58, 59, 52, 50, 49, 48, 47, through the optimized target subsequence adjustment, the prediction values at the 3rd to 6th time points are adjusted to (55, 60, 58, 59, respectively, and the optimized target prediction value sequence is (48, 50, 55, 55, 60, 58, 59, 52, 50, 49, 48, 47).
[0135] Finally, the frequency modulation instruction data of the historical frequency modulation instruction data is predicted through the target prediction value sequence to obtain the final target frequency modulation instruction data. This step uses the optimized prediction model to perform regression analysis and future prediction on the historical data to ensure that the prediction results are more accurate and reliable. For example, through the optimization results of the target prediction value sequence, the historical data can be adjusted to make the model parameters more accurate, and finally the frequency modulation demand within the next hour can be predicted.
[0136] For example, in practical applications, assuming that a supercapacitor energy storage system needs to predict the frequency modulation command for the next hour, the system first identifies the subsequence with the largest error through error analysis. For example, the predicted value sequence in the next hour is (48, 50, 50, 53, 57, 55, 54, 52, 50, 49, 48, 47), and the error is the largest at the 4th to 7th time points. The actual values are 60, 65, 63, and 61, respectively, and the errors are 7, 8, 10, and 7, respectively, with a total error of 32. Through optimization and adjustment, the predicted values at the 4th to 7th time points are adjusted to 55, 60, 58, and 59, respectively, with errors of 5, 5, 5, and 2, respectively, and a total error of 17. Then, based on the optimization results of the target subsequence, the entire predicted value sequence is adjusted so that the optimized target predicted value sequence is (48, 50, 55, 55, 60, 58, 59, 52, 50, 49, 48, 47). Finally, the historical frequency modulation instruction data is predicted through this optimized target prediction value sequence to obtain more accurate frequency modulation instruction data within the next hour.
[0137] The frequency modulation instruction prediction method for the supercapacitor energy storage system in the embodiment of the present application is described above. The frequency modulation instruction prediction device for the supercapacitor energy storage system in the embodiment of the present application is described below. Figure 2 , an embodiment of a frequency modulation instruction prediction device for a supercapacitor energy storage system in an embodiment of the present application includes:
[0138] The data partitioning module 201 is used to partition the acquired historical frequency modulation instruction data into data sets to obtain a training data set and a verification data set;
[0139] A layer number analysis module 202 is used to perform a decomposition layer number analysis on the training data set to obtain a current decomposition layer number;
[0140] A modal decomposition module 203 is used to perform variational modal decomposition on the training data set through the current decomposition layer number to obtain multiple modal components;
[0141] The data analysis module 204 is used to perform prediction error data analysis on each modal component to obtain improved error data corresponding to each modal component;
[0142] The error summing module 205 is used to sum the improved error data corresponding to each predicted instruction data, obtain the error summing data and store it in the error database, and determine whether the current decomposition layer number meets the preset layer number threshold. If not, repeat steps S2 to S5; if satisfied, extract multiple error summing data from the error database;
[0143] The data prediction module 206 is used to perform frequency modulation instruction data prediction on the historical frequency modulation instruction data according to the multiple error summation data to obtain target frequency modulation instruction data.
[0144] Through the cooperation of the above components and the division of the data set, sufficient historical data support can be obtained during the model training process. At the same time, the introduction of the verification data set can effectively prevent the model from overfitting and ensure the generalization ability of the prediction model. By analyzing the number of decomposition layers, the decomposition depth that is most suitable for the current data set can be determined, thereby laying the foundation for subsequent data processing and ensuring that the variational modal decomposition can accurately capture the intrinsic characteristics of the data. The training data set is subjected to variational modal decomposition through the current number of decomposition layers to obtain multiple modal components. Variational modal decomposition can decompose complex frequency modulation instruction data into several modal components, each of which represents different frequency components and trends of the data, which is helpful for subsequent accurate prediction. At the same time, variational modal decomposition can effectively filter out noise in the data, improve the data parseability and robustness of the model. The prediction error data of each modal component is analyzed to obtain the improved error data corresponding to each modal component. By analyzing the error data of each modal component, the systematic errors in the prediction process can be identified and improved according to historical data, thereby improving the accuracy and reliability of the prediction. The introduction of improved error data can effectively reduce the random errors in the prediction and improve the stability of the prediction model. The improved error data corresponding to each predicted instruction data is summed to obtain the error sum data and store it in the error database, and it is judged whether the current decomposition layer number meets the preset layer number threshold. If not, steps S2 to S5 are repeated; if it is satisfied, multiple error sum data are extracted from the error database. Through iterative calculation and judgment, it is ensured that the error of each decomposition layer number is fully analyzed and improved, and finally the optimal error sum data is obtained. The introduction of the error database provides a storage and reference mechanism for historical errors, ensuring the continuous optimization of the prediction model. The frequency modulation instruction data of the historical frequency modulation instruction data is predicted according to multiple error sum data to obtain the target frequency modulation instruction data. The final prediction of the frequency modulation instruction based on the comprehensive error sum data can significantly improve the accuracy and reliability of the prediction. By considering historical errors and comprehensively analyzing error data, the prediction model can more accurately reflect future frequency modulation needs, optimize the power distribution of lithium batteries and supercapacitors, and improve the frequency modulation response speed and efficiency of the system.
[0145] The present application also provides a frequency modulation instruction prediction device for a supercapacitor energy storage system, the frequency modulation instruction prediction device for a supercapacitor energy storage system includes a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the frequency modulation instruction prediction method for a supercapacitor energy storage system in the above-mentioned embodiments.
[0146] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the frequency modulation instruction prediction method for a supercapacitor energy storage system.
[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0149] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A frequency modulation instruction prediction method for a supercapacitor energy storage system, It is characterized in that The frequency modulation instruction prediction method for the supercapacitor energy storage system comprises: S1. Divide the acquired historical frequency modulation instruction data into data sets to obtain a training data set and a verification data set; S2, performing a decomposition layer number analysis on the training data set to obtain a current decomposition layer number; S3, performing variational modal decomposition on the training data set through the current number of decomposition layers to obtain multiple modal components; S4, performing prediction error data analysis on each modal component to obtain improved error data corresponding to each modal component; S5, summing the improved error data corresponding to each predicted instruction data to obtain error sum data and storing it in the error database, and judging whether the current number of decomposition layers meets the preset layer number threshold, if not, repeating steps S2 to S5; if satisfied, extracting multiple error sum data from the error database; S6. Predict the historical frequency modulation instruction data according to the plurality of error summation data to obtain target frequency modulation instruction data.
2. The frequency modulation instruction prediction method for a supercapacitor energy storage system according to claim 1, It is characterized in that Step S4 comprises: S41, inputting the multiple modal components into a long short-term memory network to perform instruction data prediction, and obtaining predicted instruction data for each modal component; S42, performing error value analysis on the prediction instruction data of each modal component respectively through the verification data set to obtain an error value corresponding to each prediction instruction data; S43, calculating the historical error data corresponding to each modal component, and weighting the error value corresponding to each prediction instruction data by the historical error data corresponding to each modal component, to obtain the improved error data corresponding to each prediction instruction data.
3. The frequency modulation instruction prediction method for a supercapacitor energy storage system according to claim 2, It is characterized in that The long short-term memory network includes: an input layer, a first LSTM layer, a second LSTM layer, a fully connected layer and an output layer. Step S41 includes: Inputting the multiple modal components into the input layer for time step matching to obtain a target time step, and performing time series data conversion on the multiple modal components by using the target time step to obtain time series data corresponding to each modal component; Input the time series data corresponding to each modal component into the first LSTM layer to extract dependency data, so as to obtain dependency data of each time series data; Inputting the dependency relationship data of each time series data into the second LSTM layer to extract time series features, so as to obtain time series feature data of each time series data; Input the time series feature data of each time series data into the fully connected layer for prediction value mapping, and obtain a prediction value set corresponding to the time series feature data of each time series data; The predicted value set corresponding to the time series feature data of each time series data is input into the output layer for prediction value fusion to obtain the predicted instruction data of each modal component.
4. The frequency modulation instruction prediction method for a supercapacitor energy storage system according to claim 1, It is characterized in that Step S42 includes: Matching the predicted instruction data of each modal component with the actual value through the verification data set to obtain the actual value corresponding to the predicted instruction data of each modal component; By using a preset prediction error calculation formula, the actual value corresponding to the prediction instruction data of each modal component and the prediction instruction data of each modal component are calculated for the error value to obtain the error value corresponding to each prediction instruction data, wherein the prediction error calculation formula is as follows: Among them, MAPE is the error value corresponding to each predicted instruction data, n is the number of data points, Y t is the actual value corresponding to the predicted instruction data of each modal component, Prediction command data for each modal component.
5. The frequency modulation instruction prediction method for a supercapacitor energy storage system according to claim 1, It is characterized in that Step S43 includes: Extract multiple historical error values corresponding to each modal component, and respectively calculate the error mean of the multiple historical error values corresponding to each modal component to obtain the historical error mean corresponding to each modal component; Matching the error weight coefficient of each prediction instruction data respectively by the historical error mean corresponding to each modal component, to obtain the error weight coefficient corresponding to each prediction instruction data; The error value corresponding to each prediction instruction data is weighted by the error weight coefficient corresponding to each prediction instruction data to obtain the improved error data corresponding to each prediction instruction data.
6. The frequency modulation instruction prediction method for a supercapacitor energy storage system according to claim 1, It is characterized in that Step S6 comprises: S61, screening out the target error sum data with the smallest value among the plurality of error sum data, and extracting a prediction value sequence corresponding to the target error sum data; S62. Optimize the predicted value sequence to obtain a target predicted value sequence, and use the target predicted value sequence to perform frequency modulation instruction data prediction on the historical frequency modulation instruction data to obtain target frequency modulation instruction data.
7. The frequency modulation instruction prediction method for a supercapacitor energy storage system according to claim 6, It is characterized in that Step S62 includes: S621, optimizing the subsequence with the largest error in the predicted value sequence to obtain a target subsequence; S622, performing sequence optimization on the predicted value sequence according to the target subsequence to obtain a target predicted value sequence; S623. Predict the historical frequency modulation instruction data using the target prediction value sequence to obtain target frequency modulation instruction data.
8. A frequency modulation instruction prediction device for a supercapacitor energy storage system, It is characterized in that The frequency modulation instruction prediction device for the supercapacitor energy storage system comprises: A data partitioning module is used to partition the acquired historical frequency modulation instruction data into data sets to obtain a training data set and a verification data set; A layer number analysis module is used to perform a decomposition layer number analysis on the training data set to obtain a current decomposition layer number; A modal decomposition module, configured to perform variational modal decomposition on the training data set through the current number of decomposition layers to obtain a plurality of modal components; A data analysis module is used to analyze the prediction error data of each modal component to obtain improved error data corresponding to each modal component; The error summing module is used to sum the improved error data corresponding to each predicted instruction data, obtain the error summing data and store it in the error database, and judge whether the current decomposition layer number meets the preset layer number threshold. If not, repeat steps S2 to S5; if satisfied, extract multiple error summing data from the error database; The data prediction module is used to perform frequency modulation instruction data prediction on the historical frequency modulation instruction data according to the multiple error summation data to obtain target frequency modulation instruction data.
9. A frequency modulation instruction prediction device for a supercapacitor energy storage system, It is characterized in that The frequency modulation instruction prediction device for the supercapacitor energy storage system comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instruction in the memory so that the frequency modulation instruction prediction device for the supercapacitor energy storage system executes the frequency modulation instruction prediction method for the supercapacitor energy storage system according to any one of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, It is characterized in that When the instruction is executed by the processor, the frequency modulation instruction prediction method for a supercapacitor energy storage system according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Energy storage frequency modulation instruction prediction method and system based on two-stage method
CN119670991A
A prediction method and system for energy storage frequency modulation commands based on a two-stage method
CN119670991B
Hybrid energy storage frequency modulation instruction prediction method and system based on error feedback
CN119813268A
Super-capacity energy storage frequency modulation instruction prediction method, system, medium and equipment
CN119862398A
A Method, System, Medium and Device for Predicting Frequency Modulation Commands of Supercapacitor Energy Storage
CN119862398B
