Power load prediction method and system of energy storage system

By combining the historical load sequence of the energy storage system and real-time meteorological data, similar matching and correction model methods are used to improve the accuracy and efficiency of the load prediction of the energy storage system, and the problem of low load prediction accuracy in the prior art is solved.

CN120127657AActive Publication Date: 2025-06-10ZHEJIANG JINKO ENERGY STORAGE CO LTD

Patent Information

Application Number
CN202510621798.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2025-06-10
Estimated Expiration
2045-05-14

AI Technical Summary

Technical Problem

The existing load prediction algorithm of energy storage system has the problem of low load prediction accuracy, which affects the energy utilization efficiency of energy storage systems.

Method used

By obtaining the current period load sequence and meteorological sequence of the energy storage system, it is determined whether there is a load sequence with similarity exceeding the preset threshold in the historical load sequence. If there is, a similar load sequence is used for prediction; if there is no, the preliminary load prediction sequence is obtained based on the load sequence and the meteorological sequence, and the correction is made through the correction model to finally obtain a more accurate load prediction sequence.

Benefits of technology

It improves the accuracy of load prediction in energy storage system, takes into account the efficiency and accuracy of load prediction, and can adapt to changes in load mode in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120127657A_ABST
    Figure CN120127657A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of energy storage, and discloses a power load prediction method and system for an energy storage system, and the method comprises the steps: obtaining a load sequence and a meteorological sequence of a current time period; judging whether a sequence of which the similarity with the load sequence exceeds a preset threshold exists in the historical load sequence of the energy storage system or not; if not, according to the load sequence and the meteorological sequence, obtaining an initial load prediction sequence of a future time period after the current time period; correcting the initial load prediction sequence to obtain a first load prediction sequence; if yes, obtaining a first load sequence with the highest similarity, and obtaining an actual load sequence and an actual weather sequence of a target time period after the first load sequence; obtaining a predicted meteorological sequence corresponding to a future time period; calculating a meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence; and obtaining a load difference sequence according to the meteorological difference sequence, and superposing the load difference sequence to the actual load sequence to obtain a second load prediction sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of energy storage technology, and in particular to a method and system for predicting power load of an energy storage system. Background Art

[0002] Virtual Power Plant (VPP) and Microgrid are two important components of modern power systems. They play an important role in improving energy efficiency and enhancing the flexibility and reliability of the power grid. Energy storage systems can provide fast response and regulation capabilities for virtual power plants and microgrids, and provide stable electricity for virtual power plants and microgrids. The load forecasting of virtual power plants and microgrids can optimize the energy dispatch of energy storage systems, and play an important role in improving the operational reliability and energy efficiency of energy storage systems and enhancing the flexibility and reliability of power grids.

[0003] With the development of technology and the growth of demand, users have put forward higher requirements for the energy scheduling of energy storage systems. Therefore, higher prediction accuracy requirements are put forward for load forecasting technology in virtual power plants or microgrids. However, the existing load forecasting algorithms still have the problem of low load forecasting accuracy, which affects the energy utilization efficiency of energy storage systems. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method for predicting power load of an energy storage system and an energy storage system, thereby improving the accuracy of load prediction of the energy storage system.

[0005] To solve the above technical problems, an embodiment of the present application provides a method for predicting the power load of an energy storage system, including: obtaining the load sequence of the energy storage system in the current period, and obtaining the meteorological sequence of the current period; the meteorological sequence of the current period is a sequence composed of meteorological data corresponding to multiple moments, and the meteorological data at least includes: temperature, humidity, air pressure, weather type; wherein, the weather type is represented in the form of numerical coding; determining whether there is a load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence exceeds a preset threshold; if not, obtaining a preliminary load prediction sequence for a future period after the current period according to the load sequence and the meteorological sequence; correcting the preliminary load prediction sequence to obtain a first corrected load prediction sequence; if so, obtaining a first load sequence with the highest similarity to the load sequence in the historical load sequence, obtaining the actual load sequence and the actual meteorological sequence of a target period after the period where the first load sequence is located; obtaining the predicted meteorological sequence corresponding to the future period after the current period; calculating the meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence; obtaining a load difference sequence according to the meteorological difference sequence; and superimposing the load difference sequence on the actual load sequence to obtain a second load prediction sequence corresponding to the future period.

[0006] An embodiment of the present application further provides an energy storage system, including: an energy storage device, an energy storage bidirectional converter, and an energy management module. The energy management module is used to implement the method for predicting the power load of the energy storage system as described above, and the energy management module is further used to adjust the charge and discharge strategy of the energy storage system according to the first load prediction sequence or the second load prediction sequence.

[0007] In some embodiments, the obtaining a preliminary load prediction sequence for a future period after the current period according to the load sequence and the meteorological sequence includes: using the load sequence and the meteorological sequence together as the input sequence of a prediction model, so that the prediction model outputs the preliminary load prediction sequence for the future period; wherein, the prediction model includes an encoder and a decoder. The encoder includes multiple stacked encoder layers, a residual connection module and a layer normalization module arranged after the stacked encoder layers. Each encoder layer includes a multi-head self-attention mechanism module and a first feed-forward neural network module; the decoder includes a masked self-attention mechanism module, a frequency domain enhancement module, an attention mechanism module, and a second feed-forward neural network module connected in sequence; the frequency domain enhancement module performs moving average decomposition on the load sequence to obtain a low-frequency trend part and a high-frequency trend part, and applies discrete Fourier transform or wavelet transform to randomly select a fixed number of frequency components as the base frequency for calculation by the attention mechanism module.

[0008] In some embodiments, the training process of the prediction model includes: obtaining an initial training sequence, where the initial training sequence includes feature data corresponding to the most recent N moments, and the feature data corresponding to each moment includes the load data at the corresponding moment and the meteorological data at the corresponding moment; N is an integer greater than 0; performing normalization processing on the initial training sequence to obtain a target training sequence, and the formula for the normalization processing is: ; where x is a feature data in the initial training sequence, min(X) is the minimum feature data in the initial training sequence, max(X) is the maximum feature data in the initial training sequence, and x' is a feature data in the normalized target training sequence; inputting the target training sequence into the prediction model for training to obtain the trained prediction model.

[0009] In some embodiments, using the load sequence and the meteorological sequence as the input sequence of the prediction model so that the prediction model outputs the preliminary load prediction sequence for the future time period includes: the encoder receives the input sequence, and the length of the input sequence is M, where M is an integer greater than 0; the encoder extracts the features of the input sequence layer by layer to obtain the feature representation of the input sequence ; the formula of the encoder is: ; X is a feature data in the input sequence, and one feature data is composed of the load data and the meteorological data at the same moment, represents the mapping result of the encoder for the input feature data X; the decoder generates the preliminary load prediction sequence for the future time period according to the feature representation Zenc and the feature data X at the prediction start point of the future time period feat ; the formula of the decoder is: ; Y is the preliminary load prediction sequence, represents the mapping result of the decoder for the feature representation Zenc and the feature data X at the prediction start point of the future time period feat .

[0010] In some embodiments, the multi-head self-attention mechanism is provided with h independent attention heads in parallel, and each attention head has its own first projection matrix W i Q 、W i K 、W i V , where h is an integer greater than 1, and the first projection matrix W i Q 、W i K 、W i VUsed to perform linear transformations on the query, key, and value respectively; each of the attention heads is based on its respective first projection matrix W i Q , W i K , W i V Map the input sequence to obtain the attention output Q i ; Concatenate the h attention outputs Q i on the feature dimension to obtain the concatenated output Concat(O 1 , O 2 , …, O h ); Map the concatenated output Concat(O O , O 1 , …, O 2 , …, O h ) back to the original dimension , and the calculation formula for the original dimension is: ; Q is the query vector, K is the key vector, and V is the value vector; the first feed-forward neural network module outputs the mapping F(x) corresponding to each feature data x in the initial training sequence according to the original dimension ; The residual connection module obtains the residual connection output according to the mapping F(x), and the calculation formula for the residual connection output is: ; The layer normalization module performs layer normalization on the residual connection output to obtain , and represents the result of performing layer normalization on ; The layer normalization module is also used to normalize the input of each encoder layer to zero mean and unit variance.

[0011] In some embodiments, the masked self-attention mechanism module includes a mask matrix M. Among them, for the query vector and key vector of the decoder, when j ≤ i, M ij = 0, indicating that the position i corresponding to the key vector pays attention to the information at the position j corresponding to the query vector. When j > i, M ij = -∞, indicating that the position i corresponding to the key vector cannot pay attention to the information at the position j corresponding to the query vector; the calculation formula of the masked self-attention mechanism module is: ; Among them, represents the output result of the masked self-attention mechanism module when the input query vector, key vector, and value vector are Q, K, and V in sequence, and QK T represents the dot product of vector Q and vector K, dk is the dimension of vector K, which is used to scale the result of QK T and represents the value applied to the Softmax function. denotes the value applied to the Softmax function.

[0012] In some embodiments, before correcting the preliminary load prediction sequence to obtain the corrected first load prediction sequence, the following steps are included: obtaining the predicted meteorological sequence corresponding to the future time period; estimating the influence deviation of the predicted meteorological sequence on the preliminary load prediction sequence to obtain a meteorological correction value sequence; obtaining an error correction value sequence corresponding to the preliminary load prediction sequence according to the load sequence and the meteorological sequence; and correcting the preliminary load prediction sequence to obtain the corrected first load prediction sequence, including: obtaining the corrected first load prediction sequence according to the preliminary load prediction sequence, the meteorological correction value sequence, and the error correction value sequence.

[0013] In some embodiments, estimating the influence deviation of the predicted meteorological sequence on the preliminary load prediction sequence to obtain a meteorological correction value sequence includes: using the predicted meteorological sequence as the input of a meteorological correction model to enable the meteorological correction model to output the meteorological correction value sequence; wherein the meteorological correction model includes a plurality of parallel convolutional kernels, and the meteorological correction model further includes a non-linear activation layer and a pooling layer; the width and dilation rate of each convolutional kernel are different; the way for the meteorological correction model to obtain the meteorological correction value sequence includes: each convolutional kernel sequentially extracts features from each meteorological data in the predicted meteorological sequence to obtain an initial meteorological feature f j ; the initial meteorological feature f j is obtained through the following expression: ; represents the convolution operation on when the width of the convolutional kernel is k and the dilation rate is d, is the predicted meteorological sequence, W(t:t+H)=[w 1 ,w 2 ,...,w H , H is the prediction step, and w 1 ,w 2 ,...,w H are the meteorological data at different times respectively; the meteorological correction model also fuses the initial meteorological features f j output by each convolutional kernel to obtain a comprehensive meteorological feature corresponding to each meteorological data ; the comprehensive meteorological feature is refined through the non-linear activation layer and the pooling layer to obtain the meteorological correction value sequence of length H , each element in ΔYmet is the meteorological correction value corresponding to each of the said meteorological data.

[0014] In some embodiments, obtaining the error correction value sequence corresponding to the preliminary load prediction sequence according to the load sequence and the meteorological sequence includes: using the load sequence and the meteorological sequence as the input sequences of an error learning model, so that the error learning model outputs the error correction value sequence; the loss function of the error learning model is: , where e(t) is the historical error correction value sequence learned by the error learning model, and y(t) is the historical true load sequence, is the historically predicted load sequence.

[0015] In some embodiments, the error learning model is a deep residual network model; the deep residual network model includes L fully connected layers, where L is an integer greater than 1; each of the fully connected layers learns and corrects the error part not captured by the previous fully connected layer, and the output of the th fully connected layer of the deep residual network model satisfies the following formula: , is greater than 0 and less than L; where, represents the input feature of the th fully connected layer at time t + i, the input feature of the th fully connected layer includes the output of the previous fully connected layer, and the input feature of the first fully connected layer is the input sequence of the error learning model, is the parameter of the th fully connected layer, is the correction term mapped based on and ; after the L fully connected layers of the deep residual network model are stacked, the error correction value sequence output by the Lth fully connected layer is calculated by the formula: .

[0016] In some embodiments, obtaining the corrected first load prediction sequence according to the preliminary load prediction sequence, the meteorological correction value sequence, and the error correction value sequence includes: obtaining a meteorological correction prediction value sequence according to the preliminary load prediction sequence and the meteorological correction value sequence ; obtaining a reference prediction value sequence according to the preliminary load prediction sequence and the error correction value sequence , and the calculation formula of the reference prediction value sequence is: , ​is the preliminary load prediction sequence; using the meteorological correction prediction value sequence, the benchmark prediction value sequence, and the auxiliary feature sequence as the inputs of the XGBoost gradient boosting tree model, so that the XGBoost gradient boosting tree model outputs the first load prediction sequence; the auxiliary feature sequence includes the key meteorological elements of the current time period, the key meteorological elements of the future time period, the actual load error sequence of the previous prediction cycle, and the time index feature of the future time period; the XGBoost gradient boosting tree model includes multiple regression trees; the XGBoost gradient boosting tree model aims to minimize the prediction error and the objective function of the XGBoost gradient boosting tree model is: ; where is the input of the loss function as , is the result calculated when i is the true load value of the i-th sample, is the predicted load value of the i-th sample; is the regularization term, and f k represents the k-th regression tree, and T is the total number of the regression trees, The calculation formula of is: represents the predicted value of the k-th regression tree for the input feature vector x i of the i-th sample.

[0017] In some embodiments, the way for the XGBoost gradient boosting tree model to obtain the first load prediction sequence includes: the XGBoost gradient boosting tree model obtains the bias term, the first fusion weight of the benchmark prediction value sequence, and the second fusion weight of the meteorological correction prediction value sequence according to the auxiliary feature sequence; fusing the benchmark prediction value sequence and the meteorological correction prediction value sequence according to the first fusion weight , the second fusion weight , and the bias term to obtain the first load prediction sequence , and the calculation formula of the first load prediction sequence is: ; where represents the benchmark prediction value , represents the meteorological correction prediction value sequence.

[0018] In some embodiments, the similarity of the load sequences in the historical load sequence is calculated using the Gaussian similarity function, and the Gaussian similarity function is: ; where is a scale parameter set according to the historical fluctuation range, is from the time point -M + 1 to of the historical load sequence, is the load sequence from time point t - M + 1 to t, , is the load data corresponding to a moment in the load sequence.

[0019] In some embodiments, calculating the meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence The calculation formula is: ; where represents the actual meteorological sequence, represents the predicted meteorological sequence; obtaining the load difference sequence according to the meteorological difference sequence includes: inputting the meteorological difference sequence into a meteorological correction model or an error learning model to estimate the load difference sequence caused by the meteorological difference.

[0020] The technical solutions provided by the embodiments of the present application have at least the following advantages: In the case where there is no load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence of the current period exceeds a preset threshold, the preliminary load prediction sequence for the future period after the current period is obtained according to the load sequence and the meteorological sequence, and the preliminary load prediction sequence is corrected to obtain the corrected first load prediction sequence; in the case where there is a load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence of the current period exceeds a preset threshold, the first load sequence with the highest similarity to the load sequence of the current period is obtained in the historical load sequence, the actual load sequence and the actual meteorological sequence of a target period after the period where the first load sequence is located are obtained, and the predicted meteorological sequence corresponding to the future period after the current period is obtained, the meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence is calculated, the load difference sequence is obtained according to the meteorological difference sequence, and the load difference sequence is superimposed on the actual load sequence to obtain the second load prediction sequence corresponding to the future period; thus, in the case where the similarity between the load sequence of the current period and the historical load sequence is relatively high, the load prediction is quickly performed according to the historical load sequence of the energy storage system, and the meteorological data is incorporated into the load prediction, taking into account both the efficiency and accuracy of the load prediction; in the case where the similarity between the load sequence of the current period and the historical load sequence is relatively low, the load prediction is performed by correcting the initial load prediction sequence and incorporating the meteorological data, improving the accuracy of the load prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] One or more embodiments are exemplarily illustrated by the pictures in the corresponding drawings. These exemplary illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the drawings in the figures do not constitute a scale limitation.

[0022] Figure 1 It is a schematic flowchart of a method for predicting the power load of an energy storage system according to an embodiment of the present application; Figure 2 It is a schematic flowchart of a method for predicting the power load of an energy storage system according to another embodiment of the present application; Figure 3 It is a schematic flowchart of each sub-step of step 207 according to another embodiment of the present application; Figure 4 It is a schematic flowchart of obtaining the first load prediction sequence by the XGBoost gradient boosting tree model according to another embodiment of the present application. Detailed implementation manners

[0023] As can be seen from the background art, there is still a problem of relatively low load prediction accuracy in the existing load prediction algorithms for energy storage systems.

[0024] Through analysis and research, it is found that: most of the existing load prediction models rely on historical load data for prediction, but often ignore the dynamic changes of real-time meteorological data. Since meteorological factors (such as temperature, humidity, air pressure, etc.) have a significant impact on the load, traditional models cannot effectively capture the impact of these factors on load changes, resulting in relatively low prediction accuracy; secondly, most of the existing load prediction models do not have the ability to flexibly respond to real-time changes. They still use the same model in different time periods and scenarios, and it is difficult to adapt to the changes in load patterns, resulting in relatively low prediction accuracy. For example, in special situations such as holidays and extreme weather, the prediction errors of traditional models are relatively large; furthermore, the existing load prediction models are generally static. Once the prediction result is output each time, subsequent predictions cannot be updated. Therefore, in actual operation, if new meteorological changes or load fluctuations occur, the system cannot adjust the prediction result in time, resulting in a decrease in the later prediction accuracy.

[0025] When there is no load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence at the current time period exceeds a preset threshold, a preliminary load prediction sequence for a future time period after the current time period is obtained according to the load sequence and the meteorological sequence, and the preliminary load prediction sequence is corrected to obtain a first corrected load prediction sequence; when there is a load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence at the current time period exceeds the preset threshold, the first load sequence with the highest similarity to the load sequence at the current time period is obtained in the historical load sequence, the actual load sequence and the actual meteorological sequence for a target time period after the time period where the first load sequence is located are obtained, and the predicted meteorological sequence corresponding to the future time period after the current time period is obtained. The meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence is calculated, the load difference sequence is obtained according to the meteorological difference sequence, and the load difference sequence is superimposed on the actual load sequence to obtain a second load prediction sequence corresponding to the future time period; thus, when the similarity between the load sequence at the current time period and the historical load sequence is relatively high, the load prediction is quickly performed according to the historical load sequence of the energy storage system, and the meteorological data is incorporated into the load prediction, taking into account both the efficiency and accuracy of the load prediction; when the similarity between the load sequence at the current time period and the historical load sequence is relatively low, the load prediction is performed by correcting the initial load prediction sequence and incorporating the meteorological data, improving the accuracy of the load prediction.

[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that in the embodiments of the present application, many technical details are provided to help readers better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions required to be protected by the present application can still be implemented. The following division of each embodiment is for convenience of description and should not constitute any limitation on the specific implementation manner of the present application. The various embodiments can be combined and cross-referenced with each other without conflict.

[0027] An embodiment of the present application relates to a method for predicting the electric load of an energy storage system, as Figure 1 shown, which is a schematic flowchart of the method for predicting the electric load of the energy storage system in this embodiment. The method for predicting the electric load of the energy storage system in this embodiment includes the following steps: Step 101, obtain the load sequence of the energy storage system at the current time period, and obtain the meteorological sequence at the current time period.

[0028] Specifically, the load sequence of the current period is a sequence composed of load data corresponding to multiple moments, and the meteorological sequence of the current period is a sequence composed of meteorological data corresponding to multiple moments. The meteorological data at least includes: temperature, humidity, air pressure, weather type (including sunny, rainy, cloudy, overcast, etc.); among them, the weather type is represented in the form of numerical coding, and continuous meteorological elements such as temperature, humidity, and air pressure can be directly used as numerical features.

[0029] In this embodiment, a multi-modal feature fusion method is adopted to integrate meteorological data into the load prediction of energy storage devices to improve the accuracy of load prediction. Therefore, after obtaining the load sequence of the current period and the meteorological sequence of the current period, for each time step, the load data and meteorological data corresponding to the corresponding moment are spliced, so that the subsequent model can receive the information of these two modalities at the same time.

[0030] Step 102, determine whether there is a load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence exceeds a preset threshold.

[0031] In this embodiment, if there is no load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence exceeds the preset threshold, step 103 is entered. If there is a load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence exceeds the preset threshold, step 105 is entered.

[0032] In this embodiment, by determining whether there is a load sequence in the historical load sequence whose similarity to the load sequence of the current period exceeds the preset threshold, different processing is performed. When the similarity between the load sequence of the current period and the historical load sequence is relatively high, the load prediction is quickly performed according to the historical load sequence of the energy storage system, that is, the prediction is performed by the method of historical similarity matching. When the similarity between the load sequence of the current period and the historical load sequence is relatively low, the load prediction is performed by correcting the initial load prediction sequence, that is, the prediction is performed by the method of model inference correction, taking into account both the efficiency and accuracy of load prediction.

[0033] Specifically, this embodiment can adopt a rolling prediction mechanism. For example, the load prediction result is updated every 15 minutes to reflect the latest load and meteorological information in real time. Rolling prediction enables the prediction to be refreshed accordingly whenever new information becomes available. For example, if the actual load trend deviates from the previous period's prediction, a new similar search will select a more matching new segment, and the prediction will correct the trajectory. This continuous update mechanism greatly improves the sensitivity of the prediction to real-time changes, can timely reflect the sudden fluctuations of the load, and improves the accuracy of the prediction.

[0034] The rolling prediction mechanism of this embodiment is implemented by the method of "historical similarity matching + model inference correction", that is, at each update moment, first find the load segment similar to the current scenario in history as a reference, that is, use the method of historical similarity matching for prediction. If there is no load segment similar to the current scenario in history, then combine the latest model correction to form the final prediction, that is, use the method of model inference correction for prediction.

[0035] In some embodiments, the similarity of the load sequences in the historical load sequence is calculated using the Gaussian similarity function, and the Gaussian similarity function is: ; where is a scale parameter set according to the historical fluctuation amplitude, is the historical load sequence from time point -M + 1 to , is the load sequence from time point t - M + 1 to t, , as a matching feature, is the load data corresponding to a moment in the load sequence.

[0036] Specifically, in the rolling prediction mechanism, for each rolling moment , first search the historical database for segments similar to the current load state. The current load state can be represented by a feature matching vector, and generally, the load sequence for a period of time before the current moment can be taken. For example, the load sequence of the last M 15 - minute load values can be used to form the load sequence of the current moment, that is, the vector . Among them, when M is relatively large, downsampling or key points (such as the maximum and minimum loads in the recent few hours) can be added to compress the features; by calculating the Gaussian similarity function between the vector and multiple historical load sequences respectively, the similarity between the load sequence and each historical load sequence is obtained. The closer the similarity is to 1, the more similar the sequences are, and the closer it is to 0, the greater the difference. Then, it is judged whether there is a load sequence in the multiple historical load sequences whose similarity to the load sequence exceeds the preset threshold, so as to perform different load prediction processes respectively, taking into account both the efficiency and accuracy of load prediction.

[0037] Step 103, obtain the preliminary load prediction sequence for the future period after the current period according to the load sequence and the meteorological sequence.

[0038] Specifically, after obtaining the load sequence and the meteorological sequence in this embodiment, the load sequence and the meteorological sequence are fused as multi-modal features, and the preliminary load prediction sequence for the future period is obtained according to the multi-modal features obtained by fusing the load sequence and the meteorological sequence, so as to integrate meteorological data into the load prediction of the energy storage device and improve the accuracy of load prediction.

[0039] In some embodiments, step 103, that is, obtaining the preliminary load prediction sequence for the future period after the current period according to the load sequence and the meteorological sequence, can be implemented in the following manner: The load sequence and the meteorological sequence are jointly used as the input sequence of the prediction model, so that the prediction model outputs the preliminary load prediction sequence for the future period. Specifically, the multi-modal features obtained by fusing the load sequence and the meteorological sequence are input into the prediction model, and the prediction model can output the corresponding preliminary load prediction sequence for the future period according to the multi-modal features.

[0040] In some embodiments, the load sequence and the meteorological sequence are jointly used as the input sequence of the prediction model, so that the prediction model outputs the preliminary load prediction sequence for the future period, which can be implemented in the following manner: The encoder receives the input sequence, that is, the multi-modal features obtained by fusing the load sequence and the meteorological sequence. The length of the input sequence is M, and M is an integer greater than 0; the encoder extracts the features of the input sequence layer by layer to obtain the feature representation of the input sequence ; The formula of the encoder is: ; X is a feature data in the input sequence, and a feature data is composed of load data and meteorological data at one moment, represents the mapping result of the encoder for the input feature data X; the decoder generates the preliminary load prediction sequence for the future period according to the feature representation Zenc and the feature data of the prediction starting point of the future period; The formula of the decoder is: ; where, is the feature data of the prediction starting point, and this feature data includes the load data and meteorological data of the prediction starting point. Y is the preliminary load prediction sequence, , Y represents the preliminary load prediction sequence starting from time t with a step size of H, and this preliminary load prediction sequence is used as the reference prediction for the subsequent correction process, represents the mapping result of the decoder for the feature representation Zenc and the feature data X feat of the prediction starting point of the future period.

[0041] The prediction model of this embodiment is an improvement on the FEDformer (Frequency Enhanced Decomposed Transformer) model structure. Its structure is based on the Transformer architecture and combines improvements such as frequency domain enhancement and residual network.

[0042] The improved FEDformer model in this embodiment adopts an encoder-decoder structure similar to the standard Transformer, including an encoder and a decoder. The encoder includes multiple stacked encoder layers, a residual connection module and a layer normalization module arranged after the stacked encoder layers. Each encoder layer includes a multi-head self-attention mechanism module and a first feed-forward neural network module; the decoder includes a masked self-attention mechanism module, a frequency domain enhancement module, an attention mechanism module, and a second feed-forward neural network module connected in sequence. The encoder is used to receive an input sequence of length , where the input sequence includes load data and meteorological data, and is represented as an input matrix after linear embedding, is the feature dimension, and the representation of the sequence is extracted layer by layer ; the decoder takes the encoder output and the known information at the prediction starting point as inputs to generate a prediction sequence steps (for example, 16 15-minute steps, that is, 4 hours) in the future . That is, the improved FEDformer model architecture captures the historical patterns at the current moment through the encoder and extrapolates the patterns to the future through the decoder.

[0043] The core of the traditional Transformer model lies in self-attention, enabling the model to efficiently focus on the correlations between different time steps in the sequence. For example, given the input ( is the sequence length, in the encoder ), it is first linearly mapped to a query , a key and a value through a trainable matrix, where , is the attention space dimension, and then the dot-product attention is calculated, and the formula is as follows: ; where, obtains the correlation score matrix between each time step, performs Softmax normalization on it row by row to obtain the attention weights, and then sums the weighted value vectors to obtain the output. If taking the attention calculation of the th layer as an example, let , then the attention output , and its size is the same as the input . Through self-attention, the traditional Transformer model can automatically allocate attention weights according to the correlations. For example, the current load point may have a high attention to the load at the same moment one day ago, thus capturing the daily cycle pattern.

[0044] Since a single attention head may not be sufficient to represent complex patterns, this embodiment adopts multi-head attention, that is, each encoder layer includes a multi-head self-attention mechanism module and a first feed-forward neural network module, and the multi-head self-attention mechanism modules of the encoder layers are arranged in parallel h independent attention heads, and each attention head has its own first projection matrix , where h is an integer greater than 1, and W i Q , W i K , and W i V are used to perform linear transformations on the query, key, and value respectively

[0045] Specifically, each attention head has its own learnable first projection matrix W i Q , W i K , and W i V , which are used to perform linear transformations on the query, key, and value respectively. The first projection matrices W i Q , W i K , and W i V map the input query, key, and value vectors to different feature spaces respectively. In this way, the input sequence is projected into different subspaces, enabling each attention head to learn different feature representations. Among them, each attention head can focus on different patterns or time scales in the input sequence, which helps the prediction model to capture multiple features such as the seasonal trend, daily cycle, and random fluctuations of the load simultaneously

[0046] Specifically, each attention head maps the input sequence according to its respective first projection matrices W i Q , W i K , and W i V to obtain the attention output Q i . The h attention outputs Q i are concatenated in the feature dimension to obtain the concatenated output Concat(O 1 ,O 2 ,…,O h ). The concatenated output Concat(O O ,O 1 ,O 2 ,…,Oh ) Map back to the original dimension, the original dimension The calculation formula is: ; Q is the query vector, K is the key vector, and V is the value vector.

[0047] Specifically, each encoder layer also includes a first feed-forward neural network module connected to the outputs of multiple attention heads. The first feed-forward neural network module outputs the mapping F(x) corresponding to each feature data x in the initial training sequence according to the original dimension After that, to alleviate the vanishing gradient of the deep network and improve the feature transfer efficiency, the improved FEDformer model sets a residual connection module and a layer normalization module after each sub-layer, namely the multi-head attention mechanism and the first feed-forward neural network module. The residual connection module obtains the residual connection output according to the mapping The calculation formula of the residual connection output is: ; The layer normalization module performs layer normalization on the residual connection output to obtain , represents the result of performing layer normalization on ; The layer normalization module is used to normalize the input of each encoder layer to zero mean and unit variance. Through this recursive form of residual accumulation in this embodiment, each layer only needs to learn the incremental change, that is, the mapping , so as to realize the gradual refinement of the input features, and can also enable the model to better learn the layer-by-layer correction of the prediction error. The layer normalization module can ensure numerical stability after stacking residuals, thus accelerating convergence.

[0048] The decoder of this embodiment includes a masked self-attention mechanism module, a frequency domain enhancement module, an attention mechanism module, and a second feed-forward neural network module connected in sequence. In the design process of the decoder, to avoid seeing future information and prevent future data from affecting the decoder, a mask mechanism is adopted for self-attention. The addition of the mask ensures that the prediction is strictly based on past data.

[0049] Specifically, the masked self-attention mechanism module includes a mask matrix M. Among them, for the query vector and key vector of the decoder, when j ≤ i, M ij = 0, indicating that the position i corresponding to the key vector pays attention to the information at the position j corresponding to the query vector. When j > i, M ij = -∞, indicating that the position i corresponding to the key vector cannot pay attention to the information at the position j corresponding to the query vector; the calculation formula of the masked self-attention mechanism module is: ; Among them, Denotes the output result of the masked self-attention mechanism module when the input query vector, key vector, and value vector are Q, K, and V in sequence, QK T Denotes the dot product of the query vector Q and the key vector K, d k Is the dimension of the key vector, used to scale the result of QK T Of the result, Denotes taking As the input, the value of the Softmax function.

[0050] Specifically, for the query Query and key Key of the input sequence of the decoder, when the position corresponding to the key Key is after the query Query position, its attention score is forced to be Or set to a very small negative value, so that the weight after Softmax is approximately 0. This ensures that when the decoder generates the th future load prediction, it will only refer to the information before the moment (including the historically known part and the first few predictions that have been generated), and will not misuse the future values after the moment . Therefore, the masked attention mechanism module ensures the causality of the decoding process.

[0051] Specifically, the frequency domain enhancement module performs a moving average decomposition on the load sequence to obtain a low-frequency trend part and a high-frequency trend part, and applies the discrete Fourier transform or wavelet transform to randomly select a fixed number of frequency components as the base frequencies for the calculation of the attention mechanism module.

[0052] The frequency domain enhancement module is a specific improvement of the FEDformer in this embodiment. It integrates frequency domain information in the attention calculation. By performing a moving average decomposition on the sequence, it obtains the trend and seasonal components, decomposing the original load sequence into a low-frequency trend part (representing the slow change or long-term trend of the load) and a relatively high-frequency seasonal / cyclic part (representing cyclic fluctuations such as daily cycles). In the frequency domain, the trend corresponds to components close to zero frequency (extremely low frequency band, representing smooth changes), while seasonal components such as daily cycles appear as significant components at specific non-zero frequencies (for example, a 24-hour cycle will form a spectral peak at the frequency corresponding to the cycle), that is, the low-frequency band in the spectrum reflects the trend of the load, and the specific medium and high-frequency bands reflect the main cycle (seasonal) fluctuations. After obtaining the low-frequency trend part and the high-frequency trend part, the frequency domain enhancement module applies the discrete Fourier transform (DFT) or wavelet transform to extract the main frequency components. In the FEDformer model, by performing the above decomposition and spectral analysis on the load sequence, only several important frequency bases are selected for calculation, thereby reducing the impact of the time series length on the calculation.

[0053] The frequency-domain enhancement module of this embodiment can capture the periodic structure in the load sequence, improving the efficiency and stability of long-sequence prediction; by embedding periodic features in the attention mechanism, the model becomes more sensitive to periodic changes during long-term prediction, thereby improving the performance of the traditional Transformer in long-sequence prediction.

[0054] In some embodiments, the training process of the prediction model includes: obtaining an initial training sequence, where the initial training sequence includes the feature data corresponding to the most recent N time instants, and the feature data corresponding to each time instant includes the load data and the meteorological data at the corresponding time instant; N is an integer greater than 0; performing normalization processing on the initial training sequence to obtain a target training sequence, and the formula for the normalization processing is: ; where x is a feature data in the initial training sequence, min(X) is the minimum feature data in the initial training sequence, max(X) is the maximum feature data in the initial training sequence, and x' is a feature data in the normalized target training sequence; inputting the target training sequence into the prediction model for training to obtain the trained prediction model.

[0055] The normalization processing of this embodiment uniformly normalizes the original features from different sources and with different dimensions (such as Min-Max normalization or Z-score normalization), mapping each feature value to a similar numerical range.

[0056] Through normalization, this embodiment eliminates the dimension difference, accelerates the model convergence, and avoids some features from dominating the model training due to too large numerical ranges. Especially for data with different orders of magnitude such as load values and meteorological values, normalization can ensure the gradient balance of each input dimension of the FEDformer model.

[0057] Specifically, in the training process of the prediction model of this embodiment, the initial training sequence is a multi-modal feature that combines load data and meteorological data. By introducing multi-modal features in the model training process, the model can learn cross-modal associations such as "high temperature leads to an increase in air-conditioning load", improving the accuracy of model prediction. In some embodiments, the multi-modal features input to the prediction model may also include time index features, such as hour, day of the week, holiday, etc., which are provided to the prediction model through periodic embedding or encoding methods, enabling the prediction model to better depict the daily and weekly periodic patterns of the load. The prediction model of this embodiment can autonomously learn the association relationships between different features and the load from multi-modal inputs, improving the accuracy and robustness of the prediction.

[0058] Specifically, when training the above prediction model in this embodiment, it is necessary to determine a time window size, that is, to determine the length of the historical sequence that the model needs to learn. In this embodiment, an experiment can be conducted to select a sufficiently long window to cover the main periodic features and related influences. For example, the load data and meteorological data of the past 1 day or longer (such as the same quarter within a week) are used as inputs, so that the prediction model can capture the daily and nightly load change patterns and recent trends. At the same time, in order to roll predict the demand updated every 15 minutes, the time window cannot be too long to avoid increasing the calculation delay.

[0059] To achieve the accuracy and real-time performance of the prediction model, it is assumed that the data of the most recent time instants are selected as the input feature sequence of the model , where each time instant includes load data and various meteorological data. Through the methods of global search and cross-validation, the optimal value can be determined to make the window length cover the main patterns and avoid redundant noise. At the same time, before model training, that is, in the preprocessing, resampling and alignment are performed on the data within the time window to ensure that the historical load sequence and the historical meteorological sequence are precisely corresponding in time, and the sliding window is used to smooth the missing values and outliers to improve the data quality.

[0060] Step 104: Modify the preliminary load prediction sequence to obtain the first modified load prediction sequence.

[0061] After obtaining the preliminary load prediction sequence in this embodiment, the preliminary load prediction sequence is modified, thereby improving the accuracy of the obtained first load prediction sequence and the accuracy of load prediction.

[0062] Step 105: Obtain the first load sequence with the highest similarity to the load sequence in the historical load sequence, and obtain the actual load sequence and the actual meteorological sequence of a target period after the period where the first load sequence is located.

[0063] After determining in step 102 above that there is a load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence exceeds the preset threshold, this embodiment enters step 105, obtains the first load sequence with the highest similarity to the load sequence in the historical load sequence, and obtains the actual load sequence and the actual meteorological sequence of a target period after the period where the first load sequence is located.

[0064] In this embodiment, the Gaussian similarity function algorithm is used to calculate the similarity of multiple segments in the historical database, and several with the highest similarity are selected as candidates, and the historical load sequence with the highest similarity is called the similar day sequence, and the true load of the future H steps, such as 4 hours, after the moment of this similar day sequence Fetch it as the inference load sequence at the current moment For the preliminary estimation, that is, to obtain the actual load sequence of the target time period after the time period where the first load sequence is located. This embodiment draws on the idea of "similar days", that is, if the current load curve shape has appeared in history, then the subsequent trend is likely to be similar, providing a prediction benchmark based on historical prior for the inference load sequence.

[0065] Specifically, only considering the similarity between the historical meteorological sequence and the load sequence at the current moment can only obtain a rough load result, and the accuracy of load prediction still cannot be guaranteed. It is also necessary to consider the differences in external conditions between the current and historical situations, such as the impact of meteorological data on the load. Therefore, in this embodiment, while obtaining the actual load sequence of a target time period after the time period where the first load sequence is located, the actual meteorological sequence corresponding to the target time period is also obtained.

[0066] Step 106: Obtain the predicted meteorological sequence corresponding to the future time period after the current time period; calculate the meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence.

[0067] Specifically, this embodiment considers the impact of meteorological data on the load, and also obtains the predicted meteorological sequence corresponding to the future time period after the current time period. After obtaining the actual meteorological sequence corresponding to the above-mentioned target time period and the predicted meteorological sequence corresponding to the future time period, the meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence is calculated, so as to subsequently obtain the load difference sequence according to the meteorological difference sequence, thereby taking into account the impact of meteorological data on the load in the historical similarity matching method and improving the accuracy of load prediction in the historical similarity matching process.

[0068] In some embodiments, step 107 is to calculate the meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence The calculation formula is:[[]] ; where represents the actual meteorological sequence, represents the predicted meteorological sequence; that is, this embodiment calculates the difference between each meteorological data in the actual meteorological sequence and each meteorological data in the predicted meteorological sequence, and these differences constitute the meteorological difference sequence .

[0069] Step 107: Obtain the load difference sequence according to the meteorological difference sequence.

[0070] Specifically, after obtaining the above-mentioned meteorological difference sequence in this embodiment, the load difference sequence is obtained according to the meteorological difference sequence, so as to calculate the impact of meteorological data on the load, that is, the load difference sequence, thereby improving the accuracy of the obtained load prediction sequence.

[0071] In some embodiments, step 108, i.e., obtaining a load difference sequence based on a meteorological difference sequence, is implemented as follows: The meteorological difference sequence is input into a meteorological correction model or an error learning model to estimate the load difference sequence caused by the meteorological difference . Among them, the meteorological correction model and the prediction model are the models mentioned in the subsequent model inference correction method. The meteorological correction model and the prediction model will be described in detail later. In this embodiment, the meteorological correction model and the prediction model used in the subsequent model inference correction method are applied to the historical similarity matching method, so as to improve the utilization rate of the models mentioned in the subsequent model inference correction method, reduce the design cost, and also improve the accuracy of the load prediction result.

[0072] In step 108, the load difference sequence is superimposed on the actual load sequence to obtain a second load prediction sequence corresponding to a future time period.

[0073] Specifically, in this embodiment, after obtaining the load difference sequence, the load difference sequence is superimposed on the actual load sequence to obtain a second load prediction sequence corresponding to a future time period, so as to consider the influence of meteorology on the load during the load prediction process and improve the accuracy of the load prediction.

[0074] In this embodiment, by obtaining the meteorological record of the historical load sequence with the highest similarity, the actual meteorological sequence of a target time period after obtaining the historical similarity sequence is obtained and compared with the predicted meteorological sequence of the future time period after the current time period. For example, represents the actual meteorological sequence of a target time period after the historical load sequence with the highest similarity, represents the predicted meteorological sequence of the future time period after the current time period, and the difference between the two is calculated . For example, if the actual meteorological sequence is cloudy and the predicted meteorological sequence of the future time period after the current time period forecasts sunny, then the difference is positive in terms of solar radiation. After that, the meteorological difference sequence is input into a meteorological correction model or an error learning model to estimate the load difference sequence caused by the meteorological difference . In this embodiment, the aforementioned trained meteorological correction model and error learning model can be used to execute the process of obtaining the load difference sequence based on the meteorological difference sequence. Since the meteorological correction model and the prediction model have learned the relationship between meteorology and load error, they can be generalized to new scenarios, thereby reducing the design cost and also improving the accuracy of the load prediction result.

[0075] Specifically, the error learning model can be set as , which means that the load difference sequence is output according to the input meteorological difference sequence. Then, the formula for the error learning model to calculate the load difference sequence is: ; wherein, represents a load difference sequence starting from time t with a step size of H, represents a meteorological difference sequence starting from time t with a step size of H.

[0076] After that, the formula for obtaining the second load prediction sequence corresponding to the future period by superimposing the load difference sequence on the actual load sequence is: ; wherein, represents the actual load sequence starting from time t with a step size of H, represents the second load prediction sequence starting from time t with a step size of H.

[0077] After obtaining the similar highest historical load sequence in this embodiment, if the current predicted meteorological conditions are different from the meteorological conditions corresponding to the similar history, the model will adjust the original historical load pattern up or down. For example, if it is hotter currently than in history, will be positive as a whole, making the prediction curve higher than the pure historical curve; if it is colder currently than in history, will be negative as a whole, making the prediction curve lower than the pure historical curve.

[0078] The load prediction method of the energy storage system in this embodiment can quickly perform load prediction according to the historical load sequence of the energy storage system when the load sequence in the current period has a high similarity with the historical load sequence, and incorporates meteorological data for load prediction, taking into account both the efficiency and accuracy of load prediction; when the load sequence in the current period has a low similarity with the historical load sequence, load prediction is performed by modifying the initial load prediction sequence and incorporating meteorological data, improving the accuracy of load prediction. That is to say, this embodiment combines the meteorological data in the open-source meteorological large model with traditional load prediction, thereby improving the prediction accuracy, especially being able to more accurately predict load fluctuations in the face of meteorological changes.

[0079] Another embodiment of this application relates to a method for predicting the electrical load of an energy storage system, as Figure 2 shown, which is a schematic flow diagram of the method for predicting the electrical load of the energy storage system in this embodiment. The method for predicting the electrical load of the energy storage system in this embodiment includes the following steps: Step 201, obtain the load sequence of the energy storage system in the current period, and obtain the meteorological sequence in the current period.

[0080] Step 202, determine whether there is a load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence exceeds a preset threshold.

[0081] In this embodiment, if there is no load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence exceeds the preset threshold, step 203 is entered. If there is a load sequence in the historical load sequence of the energy storage system whose similarity to the load sequence exceeds the preset threshold, step 208 is entered.

[0082] Step 203: Obtain a preliminary load prediction sequence for a future period after the current period according to the load sequence and the meteorological sequence.

[0083] Step 204: Obtain a predicted meteorological sequence corresponding to the predicted future period.

[0084] Step 205: Estimate the influence deviation of the predicted meteorological sequence on the preliminary load prediction sequence to obtain a meteorological correction value sequence.

[0085] In this embodiment, by obtaining the predicted meteorological sequence corresponding to the future period after the current period, calculating the influence deviation of the predicted meteorological sequence on the preliminary load prediction sequence, and obtaining the meteorological correction value sequence, the influence of the meteorological sequence is introduced in the process of correcting the preliminary load prediction sequence, thereby improving the accuracy of the final load prediction result.

[0086] In some embodiments, estimating the influence deviation of the predicted meteorological sequence on the preliminary load prediction sequence to obtain a meteorological correction value sequence includes: using the predicted meteorological sequence as the input of the meteorological correction model so that the meteorological correction model outputs the meteorological correction value sequence; wherein, the meteorological correction model includes multiple parallel convolutional kernels, and the meteorological correction model further includes a non-linear activation layer and a pooling layer; the width and dilation rate of each convolutional kernel are different; the way for the meteorological correction model to obtain the meteorological correction value sequence includes: each convolutional kernel sequentially extracts features from each meteorological data in the predicted meteorological sequence to obtain an initial meteorological feature f j ; The initial meteorological feature f j is obtained through the following expression: ; represents the convolution operation of when the convolutional kernel width is k and the dilation rate is d, is the predicted meteorological sequence, W(t:t+H)=[w 1 ,w 2 ,...,w H , H is the prediction step, and w 1 ,w 2 ,...,w H are the meteorological data at different times respectively; the initial meteorological features f j output by each convolutional kernel are fused to obtain the comprehensive meteorological feature corresponding to each meteorological data ; The comprehensive meteorological feature Extract a meteorological correction value sequence of length H through a non-linear activation layer and a pooling layer , and each element in ΔYmet is the meteorological correction value corresponding to each meteorological data.

[0087] Since the influence of meteorological factors on the load is complex and diverse, for example, a sudden increase in temperature may cause a sharp increase in the load of electrical appliances such as air conditioners, and the change of weather from sunny to rainy may reduce the illumination and cause an increase in the load of electrical appliances such as lighting. Therefore, in this embodiment, a meteorological correction module is added. The meteorological correction model of this embodiment can be modeled based on MSCNN (Multi-Scale Convolutional Neural Network), and the multi-scale convolutional neural network is used to extract features and estimate the influence of meteorological data. For example, when obtaining the latest meteorological forecast every 4 hours, the load prediction is corrected.

[0088] Specifically, the MSCNN of this embodiment can extract the change patterns of meteorological elements at different time scales by introducing convolutional kernels of different sizes and dilation rates. For the input meteorological sequence in this embodiment (such as the 15-minute-by-15-minute meteorological forecast sequence for the next 4 hours, multi-dimensional including temperature, humidity, etc.), multiple parallel convolutional branches are constructed. Among them, some convolutional branches use small convolutional kernels (such as length 3-5) to capture short-term drastic changes, and some other convolutional branches use larger convolutional kernels or dilated convolutions (Dilated CNN) to obtain the trend influence of longer periods.

[0089] Specifically, each convolutional branch has its own convolutional receptive field and can focus on weather changes at different scales. For example, a small receptive field convolution can capture the instantaneous influence of sudden weather changes (such as thunderstorms) on the load, and a large receptive field convolution extracts the slow effect of the daily temperature change trend on the load.

[0090] Specifically, in this embodiment, after obtaining the initial meteorological feature f of each convolutional output j , the initial meteorological features extracted by each convolutional branch are concatenated or weighted and fused in the channel dimension to form a comprehensive meteorological feature representation . The fusion method can be direct concatenation followed by a fully connected layer or dimensionality reduction by convolution to allow the meteorological correction model to automatically learn the importance of features at each scale; or weights manually set for features at different scales can be used to achieve weighted averaging.

[0091] This embodiment can obtain the comprehensive meteorological feature by using a simple concatenation method , such as: , and then through a non-linear activation layer (such as ReLU) and a pooling layer, extract a sequence of length Meteorological impact sequence ; among which, each element in corresponds to a load correction value caused by meteorology at a future moment. The meteorological correction model of this implementation ensures that the model considers both rapid weather fluctuations and slow trends through multi-scale fusion. The output of the meteorological correction model can simultaneously reflect short-term anomalies and long-term deviations, thereby improving the accuracy of correcting the preliminary load sequence and the accuracy of load forecasting.

[0092] The meteorological correction value sequence output by the MSCNN model in this embodiment can be regarded as a factor or deviation amount for the preliminary load sequence to correct the preliminary load sequence. For example, if a load data in the preliminary load sequence is denoted as , which is output by the prediction model, and a meteorological data in the meteorological correction value sequence output by the meteorological correction module is denoted as , then a load forecasting data in the final load forecasting sequence that fuses meteorological impacts is: ; among which, can be regarded as the additive impact of the meteorological correction factor on the load data at this moment.

[0093] This embodiment can also consider multiplicative impacts, and the factor effect can be changed to the form of . Since the relationship between load data and meteorological data is often approximately linear, the above additive correction can more effectively correct and improve the accuracy of forecasting.

[0094] During the training process of MSCNN in this embodiment, the deviation between historical meteorological data and historical load data can be used as a sample to supervise learning so that it can approximate the real "load error caused by meteorology". For example, when the actual high temperature causes the load to be higher than the benchmark prediction, MSCNN will adjust the convolution kernel weights to output a positive ; conversely, a negative deviation is output at low temperature, so as to perform targeted correction on the benchmark prediction during inference.

[0095] In practical applications, whenever new meteorological forecasts (for example, updated every 4 hours) are obtained, the latest future meteorological sequence is input into MSCNN, and the meteorological correction value sequence for the next few hours is calculated. Then, the meteorological correction value sequence is added to the preliminary load forecasting sequence output by the prediction model within the current rolling period to obtain the first load forecast after real-time correction. It should be noted that if the previous meteorological forecast has been considered in the previous prediction, then the meteorological correction is actually calculating the impact of the difference between the new and old meteorological forecasts on the load. When the change in the meteorological forecast is very small, will approach zero, indicating that no major adjustment is required; when there are significant changes in the forecast (such as a large expected increase in temperature), a positive deviation is given to raise the load forecast. In this embodiment, the meteorological correction model ensures that the load forecast follows the update of meteorological information in real time, improving the accuracy of the load forecast.

[0096] Step 206: Obtain the error correction value sequence corresponding to the preliminary load forecast sequence according to the load sequence and the meteorological sequence.

[0097] In this embodiment, by obtaining the load sequence and the meteorological sequence of the current period and obtaining the error correction value sequence corresponding to the preliminary load forecast sequence according to the load sequence and the meteorological sequence, the influence of the meteorological sequence is introduced in the process of correcting the preliminary load forecast sequence, improving the accuracy of the final load forecast result.

[0098] In some embodiments, obtaining the error correction value sequence corresponding to the preliminary load forecast sequence according to the load sequence and the meteorological sequence includes: using the load sequence and the meteorological sequence as the input sequence of the error learning model, so that the error learning model outputs the error correction value sequence; the loss function of the error learning model is: , where e(t) is the historical error correction value sequence learned by the error learning model, y(t) is the historical true load sequence, is the historical predicted load sequence.

[0099] In some embodiments, the error learning model is a deep residual network model (ResNet); the ResNet deep residual network model includes L fully connected layers, where L is an integer greater than 1; each fully connected layer learns and corrects the error part not captured by the previous fully connected layer. The output of the th fully connected layer of the ResNet deep residual network model satisfies the following formula: , is greater than 0 and less than L; where, represents the input feature of the th fully connected layer. The input feature of the th fully connected layer includes the output of the previous fully connected layer. The input feature of the first fully connected layer is the input sequence of the error learning model. is the parameter of the th fully connected layer. is the correction term mapped based on and ; after the L fully connected layers of the ResNet deep residual network model are stacked, the error correction value sequence output by the Lth fully connected layer is calculated by the formula: .

[0100] In this embodiment, in order to further improve the accuracy of load forecasting, an error learning module is introduced. The deep residual network model is used to model the prediction error, and the prediction deviation of the prediction model FEDformer is recursively learned and corrected. The core idea of the error learning model in this embodiment is to let the model learn the difference between the predicted value and the true value, and use this difference as the compensation for the preliminary load forecasting sequence, so as to improve the accuracy of the final prediction.

[0101] The goal of the error learning module is to predict the future error based on historical information, i.e., the load sequence and the meteorological sequence. , Then use it to correct a load data in the preliminary load sequence. Finally, the obtained load forecasting result is a load data in the first load forecasting sequence. It is: .

[0102] The ResNet deep residual network model has the property of residual connection, and avoids the degradation of deep networks by learning residuals layer by layer. In the error learning model, each layer tries to learn and correct the error part that the previous layer fails to capture. For example, the first layer learns the deviation that the overall load is too high or too low, and the second layer learns more detailed periodic errors, and so on. Referring to the output of the th layer of the above-mentioned ResNet deep residual network model satisfies the formula, which reflects the idea of recursive residuals, that is, each layer adds a new correction term on the basis of the previously accumulated error estimate. . At the same time, the ResNet deep residual network model ensures that even if the number of fully connected layers is large, the gradient can be effectively transmitted through the identity mapping, and the network can continuously accumulate and learn errors without losing stability.

[0103] The basic unit of the error learning model ResNet in this embodiment includes multiple fully connected layers, plus non-linear activation, and then the input is directly added to the output. For example, if two fully connected layers are used as the residual unit, for the input feature , the residual unit calculates , and then outputs as the input of the next layer. During the training process, we use the error calculated from historical data as the true value, and use the mean square error (MSE) loss to train ResNet to approximate these errors. The loss function can be: , where is the number of training samples. This embodiment minimizes , enabling the error learning model ResNet to learn to output an estimated to compensate for the model bias. It is worth mentioning that since the error is usually smoother and has a smaller amplitude than the load data in the original load sequence, ResNet can more easily learn the pattern of the error. For example, if the model always underestimates the load in the early morning, ResNet can specifically learn this pattern and output a positive bias correction value in the early morning to offset the systematic error of the model.

[0104] In this embodiment, when making an actual prediction, information such as the load sequence and meteorological sequence before the current moment is input into the error learning model ResNet to obtain the future step error correction value sequence, that is . Then it is added to the preliminary load prediction sequence output by the prediction model FEDformer, that is , to obtain the corrected first load prediction sequence . In this way, the error learning model ResNet realizes the bias correction of the FEDformer prediction, improving the accuracy and robustness of the model.

[0105] In this embodiment, before obtaining the corrected first load prediction sequence by correcting the preliminary load prediction sequence, the predicted meteorological sequence corresponding to the predicted future period is obtained, and the influence bias of the predicted meteorological sequence on the preliminary load prediction sequence is estimated to obtain the meteorological correction value sequence. The error correction value sequence corresponding to the preliminary load prediction sequence is obtained according to the load sequence and meteorological sequence, providing a basis for subsequent correction of the preliminary load prediction sequence and improving the accuracy of the obtained corrected first load prediction sequence.

[0106] Step 207, obtain the corrected first load prediction sequence according to the preliminary load prediction sequence, meteorological correction value sequence, and error correction value sequence.

[0107] As Figure 3 shown, it is a schematic flowchart of each sub-step of step 207 of this embodiment. Step 207 is to obtain the corrected first load prediction sequence according to the preliminary load prediction sequence, meteorological correction value sequence, and error correction value sequence, including the following steps: Step 2071, obtain the meteorological correction prediction value sequence according to the preliminary load prediction sequence and meteorological correction value sequence.

[0108] Step 2072, obtain the reference prediction value sequence according to the preliminary load prediction sequence and error correction value sequence.

[0109] Specifically, the reference prediction value sequence is calculated as: , is the preliminary load prediction sequence.

[0110] Step 2073: Use the meteorological correction prediction value sequence, the benchmark prediction value sequence, and the auxiliary feature sequence as the input of the gradient boosting tree model, so that the gradient boosting tree model outputs the first load prediction sequence.

[0111] Specifically, the gradient boosting tree model is an XGBoost (eXtreme Gradient Boosting) model; the auxiliary feature sequence includes the key meteorological elements of the current time period, the key meteorological elements of the future time period, the actual load error sequence of the previous prediction cycle, and the time index feature of the future time period. The XGBoost gradient boosting tree model includes multiple regression trees.

[0112] Specifically, the XGBoost gradient boosting tree model aims to minimize the prediction error The objective function of the XGBoost gradient boosting tree model is: ; where the input of the loss function is , is the result calculated at time, y i is the true load value of the i-th sample, is the predicted load value of the i-th sample; is the regularization term, f k represents the k-th regression tree, T is the total number of regression trees. In this embodiment, by minimizing , XGBoost ensures fitting the training data and prevents the model from being too complex and causing overfitting. During the training process, XGBoost uses the second-order gradient boosting strategy to gradually construct decision trees to reduce the error. The generated model is essentially an additive combination of multiple regression trees, that is The calculation formula of is: , represents the predicted value of the k-th regression tree for the input feature vector x i of the i-th sample.

[0113] As Figure 4 shown, it is a schematic flow chart of the XGBoost gradient boosting tree model obtaining the first load prediction sequence. The way for the XGBoost gradient boosting tree model to obtain the first load prediction sequence includes the following steps: Step 207a: Obtain the bias term, the first fusion weight of the benchmark prediction value sequence, and the second fusion weight of the meteorological correction prediction value sequence according to the auxiliary feature sequence.

[0114] Step 207b: Fuse the benchmark prediction value sequence and the meteorological correction prediction value sequence according to the first fusion weight, the second fusion weight, and the bias term to obtain the first load prediction sequence.

[0115] The calculation formula for the first load prediction sequence is: ; where represents the benchmark prediction value , represents the meteorological correction prediction value sequence, is the bias term.

[0116] In order to further improve the robustness of the prediction results and make full use of the advantages of different models, in this embodiment, after obtaining the meteorological correction value sequence and the error correction value sequence, an XGBoost fusion mechanism is adopted, specifically the XGBoost gradient boosting tree model. The XGBoost gradient boosting tree model performs weighted fusion on the prediction results from multiple sources, namely the meteorological correction value sequence and the error correction value sequence. As an ensemble learning method, XGBoost can automatically adjust the weights and bias corrections of different predictions according to historical errors to achieve the optimal combination of prediction results.

[0117] Specifically, the input features of the XGBoost fusion model include the prediction results and relevant auxiliary information from the above-mentioned modules. The main features input to XGBoost include: the meteorological correction prediction value sequence, the benchmark prediction value sequence, and other auxiliary features. The auxiliary features can help the tree model determine how to weight different predictions in special weather, provide the actual error of the previous rolling period for correction, and distinguish the importance of different models during the day and at night.

[0118] The XGBoost fusion model of this embodiment includes the meteorological correction prediction value sequence and the benchmark prediction value sequence. Through XGBoost, two sets of prediction results can be obtained, namely the meteorological correction prediction value sequence (corrected based on the MSCNN network model) and the benchmark prediction value sequence (corrected based on the ResNet residual network model). One set emphasizes the time series pattern, and the other set focuses on meteorological factors. At the same time, the auxiliary features provide context, enabling XGBoost to dynamically adjust the confidence in the two sets of results according to the environment. For example, in stable weather, it may mainly trust the benchmark prediction value sequence, and in extreme weather, it may rely more on the meteorological correction prediction value sequence.

[0119] In extreme cases, if XGBoost determines that the modified structure of a model is particularly reliable in the current situation, it will assign a weight close to 1 to the prediction of the model and another weight close to 0; it may also take a weighted average of the two in general. Since XGBoost is a tree model, the above weights are actually fixed values ​​in each decision leaf node, corresponding to a certain regular area, but overall it is a piecewise constant function for the input space, which is reflected as a rule-based weighted fusion.

[0120] In practical applications, the baseline forecast value sequence obtained from each rolling forecast is and the series of meteorological correction forecast values Equal input XGBoost, output the final corrected fusion prediction After offline training, XGBoost has learned how to combine the strengths of the two forecast results, such as smoothing out the underestimation peaks that may appear in the baseline forecast value sequence, or correcting the over-correction tendency of the meteorological correction forecast value sequence in stable weather. The fused results show lower comprehensive errors and higher stability in a variety of scenarios, meeting the requirements of virtual power plants and microgrids for forecast reliability.

[0121] Step 208: Obtain a first load sequence having the highest similarity to a load sequence in the historical load sequence, and obtain an actual load sequence and an actual meteorological sequence in a target period after the period in which the first load sequence is located.

[0122] Step 209, calculating a meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence.

[0123] Step 210, obtaining a load difference sequence according to the meteorological difference sequence.

[0124] Specifically, the above step 204 has obtained the predicted meteorological sequence corresponding to the future period after the current period. Therefore, the above-obtained predicted meteorological sequence can be directly used to calculate the meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence, and obtain the load difference sequence based on the meteorological difference sequence.

[0125] Step 211 , superimposing the load difference sequence onto the actual load sequence to obtain a second load forecast sequence corresponding to the future period.

[0126] Step 201, step 202, step 203, step 208, step 209, step 210, and step 211 of this embodiment are respectively substantially the same as step 101, step 102, step 103, step 105, step 106, step 107, and step 108 of the above-mentioned embodiment, and will not be described again here to avoid repetition.

[0127] Rolling prediction enables the prediction to be refreshed accordingly whenever new information becomes available. For example, if the actual load trend deviates from the previous cycle's prediction, a new similarity search will select a more matching new segment, and the prediction will correct the trajectory. This continuous update mechanism greatly improves the sensitivity of the prediction to real-time changes and can promptly reflect sudden fluctuations or trend inflection points in the load. In implementation, this process can be automated as a background service, triggered to perform calculations every 15 minutes, thus forming a continuous rolling prediction stream.

[0128] On the other hand, the present application provides an energy storage system, comprising: an energy storage device, an energy storage bidirectional converter, and an energy management module. The energy management module is used to implement the power load prediction method for the energy storage system as described above, and the energy management module is further used to adjust the charge and discharge strategy of the energy storage system according to the first load prediction sequence or the second load prediction sequence.

[0129] Those of ordinary skill in the art can understand that the above embodiments are specific embodiments for implementing the present application, and in practical applications, various changes can be made to them in form and details without departing from the spirit and scope of the present application.

Claims

1. A method for predicting power load of an energy storage system, characterized in that: include: Obtaining a load sequence of the energy storage system in the current period, and obtaining a meteorological sequence in the current period; The meteorological sequence of the current period is a sequence composed of meteorological data corresponding to multiple moments, and the meteorological data at least includes: temperature, humidity, air pressure, and weather type; wherein the weather type is represented in the form of numerical coding; Determine whether there is a load sequence in the historical load sequence of the energy storage system whose similarity with the load sequence exceeds a preset threshold; If it does not exist, obtaining a preliminary load forecast sequence for a future period after the current period according to the load sequence and the meteorological sequence; Correcting the preliminary load forecasting sequence to obtain a corrected first load forecasting sequence; If it exists, obtain the first load sequence with the highest similarity to the load sequence in the historical load sequence, and obtain the actual load sequence and the actual meteorological sequence of a target time period after the time period of the first load sequence; Obtaining a predicted meteorological sequence corresponding to the future period after the current period; calculating a meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence; and obtaining a load difference sequence according to the meteorological difference sequence; The load difference sequence is superimposed on the actual load sequence to obtain a second load forecast sequence corresponding to the future time period.

2. The method for predicting power load of an energy storage system according to claim 1, characterized in that: The step of obtaining a preliminary load forecast sequence for a future period after the current period according to the load sequence and the meteorological sequence includes: Using the load sequence and the meteorological sequence together as input sequences of a prediction model, so that the prediction model outputs the preliminary load prediction sequence for the future period; The prediction model includes an encoder and a decoder, wherein the encoder includes a plurality of stacked encoder layers, a residual connection module and a layer normalization module arranged after the stacked encoder layers, and each encoder layer includes a multi-head self-attention mechanism module and a first feedforward neural network module; the decoder includes a mask self-attention mechanism module, a frequency domain enhancement module, an attention mechanism module, and a second feedforward neural network module connected in sequence; The frequency domain enhancement module performs sliding average decomposition on the load sequence to obtain a low-frequency trend part and a high-frequency trend part, and applies discrete Fourier transform or wavelet transform to randomly select a fixed number of frequency components as the basic frequency calculated by the attention mechanism module.

3. The method for predicting power load of an energy storage system according to claim 2, characterized in that: The training process of the prediction model includes: Acquire an initial training sequence, the initial training sequence including characteristic data corresponding to the latest N moments, the characteristic data corresponding to each moment including load data at the corresponding moment and meteorological data at the corresponding moment; N is an integer greater than 0; The initial training sequence is normalized to obtain a target training sequence, and the normalization formula is: ; Wherein, x is a feature data in the initial training sequence, min(X) is the minimum feature data of the initial training sequence, max(X) is the maximum feature data of the initial training sequence, and x' is a feature data of the target training sequence after normalization; The target training sequence is input into the prediction model for training to obtain the trained prediction model.

4. The method for predicting power load of an energy storage system according to claim 2, characterized in that: The step of using the load sequence and the meteorological sequence together as an input sequence of a prediction model so that the prediction model outputs the preliminary load prediction sequence for the future period includes: The encoder receives the input sequence, the length of the input sequence is M, and M is an integer greater than 0; The encoder extracts the input sequence layer by layer to obtain a feature representation of the input sequence ; The formula of the encoder is: ; X is a characteristic data in the input sequence, and the characteristic data is composed of load data and meteorological data at the same time. represents the mapping result of the encoder to the input feature data X; The decoder generates a decoder according to the feature representation Zenc, the feature data X of the predicted starting point of the future time period feat Generate the preliminary load forecast sequence for the future period; the formula of the decoder is: ; Y is the preliminary load forecast sequence, The feature data X representing the decoder's prediction of the feature representation Zenc and the predicted starting point of the future time period feat The mapping result.

5. The method for predicting power load of an energy storage system according to claim 3, characterized in that: The multi-head self-attention mechanism module is configured with h independent attention heads in parallel, each of which has its own first projection matrix W i Q , W i K , W i V , h is an integer greater than 1, the first projection matrix W i Q , W i K , W i V They are used to perform linear transformations on queries, keys, and values, respectively; Each of the attention heads is based on its own first projection matrix W i Q , W i K , W i V Map the input sequence to obtain the attention output Q i ; Output h of the attentions Q i Concatenate on the feature dimension to get the concatenated output Concat(O1,O2,…,O h ); through the second projection matrix W O The concatenated output Concat(O1, O2, ..., O h ) is mapped back to the original dimension , the original dimension The calculation formula is: ; Q is the query vector, K is the key vector, and V is the value vector; The first feedforward neural network module is based on the original dimension Output the mapping F(x) corresponding to each feature data x in the initial training sequence; The residual connection module obtains the residual connection output according to the mapping F(x) , the residual connection output The calculation formula is: ; The layer normalization module outputs the residual connection Perform layer normalization to obtain , Express The result of layer normalization; The layer normalization module is further used to normalize the input of each encoder layer to zero mean and unit variance.

6. The method for predicting power load of an energy storage system according to claim 2, characterized in that: The masked self-attention mechanism module includes a mask matrix M, where for the query vector and key vector of the decoder, when j≤i, M ij =0, indicating that the position i corresponding to the key vector pays attention to the information of the position j corresponding to the query vector. When j>i, M ij =-∞, indicating that the position i corresponding to the key vector cannot pay attention to the information of the position j corresponding to the query vector; the calculation formula of the mask self-attention mechanism module is: ; in, represents the output result of the masked self-attention mechanism module when the input query vector, key vector and value vector are Q, K and V respectively, QK T represents the dot product of vector Q and vector K, d k is the dimension of vector K, used for QK T The result is scaled. Indicates is the value of the Softmax function at input.

7. The method for predicting power load of an energy storage system according to claim 1, characterized in that: Before the preliminary load forecasting sequence is corrected to obtain a corrected first load forecasting sequence, the method includes: Obtaining a predicted meteorological sequence corresponding to the predicted future period; estimating the impact deviation of the predicted meteorological sequence on the preliminary load forecast sequence to obtain a meteorological correction value sequence; Acquire the error correction value sequence corresponding to the preliminary load forecast sequence according to the load sequence and the meteorological sequence; The step of correcting the preliminary load forecasting sequence to obtain a corrected first load forecasting sequence includes: The first load forecast sequence after correction is obtained according to the preliminary load forecast sequence, the meteorological correction value sequence and the error correction value sequence.

8. The method for predicting power load of an energy storage system according to claim 7, characterized in that: The estimating the influence deviation of the predicted meteorological sequence on the preliminary load forecast sequence to obtain a meteorological correction value sequence includes: Using the predicted meteorological sequence as an input of a meteorological correction model so that the meteorological correction model outputs the meteorological correction value sequence; The weather correction model includes a plurality of parallel convolution kernels, and the weather correction model also includes a nonlinear activation layer and a pooling layer; the width and expansion rate of each convolution kernel are different; The method for obtaining the meteorological correction value sequence by the meteorological correction model includes: each of the convolution kernels extracts features from each of the meteorological data in the predicted meteorological sequence in turn to obtain initial meteorological features f j ; The initial meteorological characteristics f j It is obtained by the following expression: ; It means that when the width of the convolution kernel is k and the expansion rate is d, The convolution operation, is the predicted meteorological sequence, W(t:t+H)=[w1,w2,...,w H ], H is the number of prediction steps, w1,w2,...,w H are the meteorological data at different times respectively; the meteorological correction model also converts the initial meteorological feature f output by each convolution kernel into j Fusion is performed to obtain the comprehensive meteorological characteristics corresponding to each of the meteorological data The comprehensive meteorological characteristics The meteorological correction value sequence with a length of H is extracted through the nonlinear activation layer and the pooling layer. , each element in ΔYmet is the meteorological correction value corresponding to each meteorological data.

9. The method for predicting power load of an energy storage system according to claim 8, characterized in that: The step of obtaining the error correction value sequence corresponding to the preliminary load forecast sequence according to the load sequence and the meteorological sequence includes: Using the load sequence and the meteorological sequence as input sequences of an error learning model, so that the error learning model outputs the error correction value sequence; The loss function of the error learning model is: , where e(t) is the historical error correction value sequence learned by the error learning model, and y(t) is the historical real load sequence. is the load series for historical forecasting.

10. The method for predicting power load of an energy storage system according to claim 9, characterized in that: The error learning model is a deep residual network model; the deep residual network model includes L fully connected layers, where L is an integer greater than 1; each of the fully connected layers learns and corrects the error part not captured by the previous fully connected layer, and the first The output of the fully connected layer satisfies the following formula: , Greater than 0 and less than L; in, represents the first The input features of the fully connected layer, The input features of the first fully connected layer include the output of the previous fully connected layer, and the input features of the first fully connected layer are the input sequence of the error learning model. For the The parameters of the fully connected layer, Based on as well as Correction item obtained by mapping; the error correction value sequence output by the Lth fully connected layer The calculation formula is: .

11. The method for predicting power load of an energy storage system according to claim 10, characterized in that: The step of obtaining a corrected first load forecast sequence according to the preliminary load forecast sequence, the meteorological correction value sequence, and the error correction value sequence includes: According to the preliminary load forecast sequence, the meteorological correction value sequence Obtain a meteorological correction forecast value sequence; according to the preliminary load forecast sequence, the error correction value sequence Get the baseline forecast value series , the baseline prediction value sequence The calculation formula is: , is the preliminary load forecast sequence; The meteorological correction prediction value sequence, the baseline prediction value sequence, and the auxiliary feature sequence are used as inputs of the XGBoost gradient boosting tree model, so that the XGBoost gradient boosting tree model outputs the first load forecast sequence; the auxiliary feature sequence includes the key meteorological elements of the current period, the key meteorological elements of the future period, the actual load error sequence of the previous forecast period, and the time index feature of the future period; the XGBoost gradient boosting tree model includes multiple regression trees; The XGBoost gradient boosted tree model is used to minimize the prediction error As the goal, the objective function of the XGBoost gradient boosting tree model is: ; in, The input of the loss function is , The result of the calculation is i is the true load value of the i-th sample, is the predicted load value of the i-th sample; is the regularization term, f k represents the kth regression tree, T is the total number of regression trees, The calculation formula is: , Represents the kth regression tree for the i-th sample input feature vector x i The predicted value of .

12. The method for predicting power load of an energy storage system according to claim 11, characterized in that: The method of obtaining the first load forecast sequence by the XGBoost gradient boosting tree model includes: The XGBoost gradient boosting tree model obtains a bias term according to the auxiliary feature sequence , the first fusion weight of the benchmark prediction value sequence , the second fusion weight of the meteorological correction forecast value sequence ; The reference prediction value sequence and the meteorological correction prediction value sequence are combined according to the first fusion weight , the second fusion weight , the bias term The first load forecasting sequence is obtained by fusion. The calculation formula is: ;in, Represents the baseline prediction value , Represents the weather correction forecast value sequence.

13. The method for predicting power load of an energy storage system according to claim 1, characterized in that: The similarity of the load sequence in the historical load sequence is calculated using a Gaussian similarity function, and the Gaussian similarity function is: ;in, is a scale parameter set according to the historical fluctuation range. From the time point -M+1 to The historical load sequence, is the load sequence from time point t-M+1 to t, , It is the load data corresponding to a moment in the load sequence.

14. The method for predicting power load of an energy storage system according to claim 1 or 13, characterized in that: The step of calculating the meteorological difference sequence between the actual meteorological sequence and the predicted meteorological sequence The calculation formula is: ;in, represents the actual meteorological sequence, represents the forecasted meteorological series; The step of obtaining a load difference sequence according to the meteorological difference sequence comprises: The meteorological difference sequence Input the meteorological correction model or error learning model to estimate the load difference sequence caused by meteorological differences .

15. An energy storage system, characterized in that: include: An energy storage device, an energy storage bidirectional converter, and an energy management module, wherein the energy management module is used to implement the power load forecasting method of the energy storage system as described in any one of claims 1-14, and the energy management module is also used to adjust the charging and discharging strategy of the energy storage system according to the first load forecasting sequence or the second load forecasting sequence.

Citation Information

Patent Citations

  • Unit load prediction method based on time sequence similarity

    CN110197296A

  • Multi-element regression prediction method and device for ultra-short-term power load

    CN117374917A

  • Power system short-term load prediction method, device, equipment, medium and product

    CN119324451A

  • Method and system for improving grid supply load prediction accuracy of power grid

    CN119362415A

  • Short-term power load prediction method

    CN119377889A

Cited By

  • Power load prediction method and system based on space and time collaborative correction

    CN121307877A

  • A power load forecasting method and system based on spatial and temporal collaborative correction

    CN121307877B