Power load prediction method

Through multi-source data fusion and variational mode decomposition model optimization, combined with gated cyclic units and attention mechanisms, the problem of comprehensive consideration of factors and insufficient data processing capabilities in power load forecasting is solved, and more accurate and efficient power loads are achieved. predict.

CN118780449AActive Publication Date: 2024-10-15YIBIN POWER SUPPLY COMPANY STATE GRID SICHUAN ELECTRIC POWER

Patent Information

Application Number
CN202411275211.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-10-15
Estimated Expiration
2044-09-12

AI Technical Summary

Technical Problem

Existing power load forecasting methods ignore the comprehensive consideration of influencing factors, have limited data processing capabilities, and ignore the fusion of multi-source data, resulting in inaccurate or error prediction results.

Method used

Using multi-source data fusion processing, combined with the variational modal decomposition model and the improved Sparrow search algorithm, a power load prediction model is constructed through gated cyclic units and attention mechanisms, processing and fusion of power system data, and optimization of model parameters to improve prediction accuracy .

Benefits of technology

It provides a comprehensive perspective through multi-source data fusion, effectively handles nonlinear and non-stationary data, improves the accuracy and efficiency of power load forecasting, and improves the accuracy and robustness of the forecast model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780449A_ABST
    Figure CN118780449A_ABST
Patent Text Reader

Abstract

The invention provides a power load prediction method, and relates to the technical field of power grid power, and the method comprises the steps: obtaining power system data; performing preprocessing and multi-source data fusion processing on the power system data; performing sub-sequence decomposition on the original time sequence by using a variational mode decomposition model; and constructing a power load prediction model according to the gating circulation unit and the attention mechanism, predicting the power load by using the power load prediction model according to the decomposed subsequences, and optimizing parameters of the power load prediction model by using an improved sparrow search algorithm. The problems that a traditional power load prediction model is insufficient in precision, model parameter optimization is difficult, and the multi-source data fusion processing effect is poor are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of power grid electric technology, and in particular relates to a power load forecasting method. Background Art

[0002] In the field of grid management, every effort should be made to ensure the stability and reliability of power supply. Through effective grid management, resource allocation can be optimized, power outages can be prevented and reduced, while responding to growing energy demand and integrating renewable energy. This not only improves energy efficiency, but also enhances the adaptability of the entire power system to environmental changes and potential failures. However, there are some problems and challenges in the practical application of grid management:

[0003] (1) One of the main challenges facing the power grid is the constant change in electricity demand. The power system must be able to flexibly respond to rapid changes in demand, which are usually driven by a variety of factors, including economic activities, social events, weather conditions, etc. During peak hours, electricity demand may suddenly increase, while demand may drop rapidly at night or under certain conditions. This uncertainty and volatility of demand requires that the power grid not only have sufficient power generation capacity to meet the peak load, but also be able to reduce power generation when demand suddenly drops to prevent energy waste and system overload.

[0004] (2) Optimizing resource allocation is key to ensuring the efficiency and economy of grid operation. Electricity resources include traditional fossil fuel power generation and an increasing number of renewable energy sources, such as wind and solar power. An effective resource allocation strategy not only needs to deliver electricity to areas with the greatest demand at the right time, but also needs to take into account generation costs, transmission losses, and environmental impacts. In addition, with the instability and intermittency of renewable energy, how to integrate these green energies into the grid without sacrificing power supply reliability is a complex issue that needs to be addressed in power resource allocation strategies.

[0005] Therefore, using deep learning to realize intelligent prediction of the power system can improve the response speed of the power system, optimize resource utilization, and realize intelligent management, thereby ensuring the stability and efficiency of power supply. However, the traditional static scheduling method has been difficult to meet the rapid changes in demand and lacks accurate grasp of real-time conditions, so it is necessary to accurately analyze the power load of the power system. Therefore, studying the corresponding deep learning algorithm for power load prediction is the main problem that the present invention intends to solve.

[0006] Traditional power load forecasting methods (such as time series analysis) rely on linear assumptions. When they were first proposed, they were considered a major milestone in the development of time series. With its complete theoretical basis and structured modeling approach, the model has been widely used in power engineering, finance and other fields. In view of the non-stationary and nonlinear characteristics of power load, some researchers have optimized time series models by optimizing order determination strategies, quantifying long-range correlations, and improving optimization algorithms. Without exception, these models focus on mining the development laws of historical power load data. However, existing time series analysis models are mainly suitable for stationary non-white noise sequences, and require the sequences to have strong autocorrelation.

[0007] Summary of current problems in predicting historical power load data:

[0008] (1) Ignoring the comprehensive consideration of influencing factors. The current grid load forecasting method mainly focuses on the analysis and calculation of the power load data itself, and often ignores other key factors that may affect the power data in real application scenarios, such as weather changes, air humidity, etc. This means that in the forecasting process, more comprehensive and detailed data support is needed to improve the accuracy and reliability of the forecast.

[0009] (2) Limited data processing capabilities. Most existing networks have limited capabilities in processing data with nonlinear and non-stationary characteristics, which are extremely common in actual power load data, especially in complex power grid systems that include multiple renewable energy sources. The complexity of these data requires more advanced processing techniques to ensure the effectiveness of data analysis and the accuracy of power load forecasting models.

[0010] (3) Ignoring the importance of data fusion. Although existing power load forecasting models focus on improving forecasting performance, these models are usually limited to discriminative analysis. However, these methods often ignore the comprehensive analysis and fusion of multi-source data in the power system, which may lead to inaccurate or erroneous forecasting results. Summary of the invention

[0011] In view of the above-mentioned deficiencies in the prior art, the present invention provides a power load forecasting method, which solves the problems of insufficient accuracy of traditional power load forecasting models, difficulty in optimizing model parameters, and poor effect of multi-source data fusion processing.

[0012] In order to achieve the above objectives, the technical solution adopted by the present invention is: a method for predicting power load, comprising the following steps:

[0013] S1. Obtain power system data;

[0014] S2, pre-processing the power system data and fusion processing of multi-source data;

[0015] S3. Decomposing the original time series into subsequences using a variational mode decomposition model based on the power system data after preprocessing and multi-source data fusion processing, wherein the parameters of the variational mode decomposition model are optimized using an improved sparrow search algorithm;

[0016] S4. Based on the gated recurrent unit and the attention mechanism, a power load prediction model is constructed, and the power load is predicted using the power load prediction model according to the decomposed subsequences.

[0017] Further, the S2 comprises the following steps:

[0018] S201, using a moving average filter and a median filter to remove short-term fluctuation data and abnormal values ​​in the power system data;

[0019] S202, standardizing the power system data after removing short-term fluctuation data and outliers, and scaling all numerical features to a uniform range;

[0020] S203, using forward filling and linear interpolation methods to fill missing values ​​in the time series data for the standardized power system data;

[0021] S204. Based on the power system data after missing value filling, the classification features are one-hot encoded, the non-numerical information is converted into a binary format, and the preprocessing and multi-source data fusion processing are completed.

[0022] Furthermore, the S3 is specifically:

[0023] De-noising the power system data after pre-processing and multi-source data fusion;

[0024] The denoised power system data is decomposed into several subsequences using the variational mode decomposition model VMD.

[0025] The decomposed subsequences are normalized to complete the subsequence decomposition of the original time series, wherein the parameters of the variational mode decomposition model are optimized using an improved sparrow search algorithm.

[0026] Furthermore, the constrained optimization expression of the variational mode decomposition model is as follows:

[0027]

[0028] in, represents the kth mode, K represents the number of modes, represents the partial derivative with respect to time, describing the time rate of change of the signal, represents convolution, represents the impulse function, represents the imaginary unit, Indicates frequency, represents the function of the kth mode, and t represents time.

[0029] Furthermore, the improved sparrow search algorithm is used to optimize the parameters of the variational mode decomposition model, which is specifically:

[0030] A1. Initialize the population and randomly generate the initial position of each sparrow;

[0031] A2, defining the fitness function as the prediction error of the power load forecasting model and the inverse of the mean square error;

[0032] A3. Update the position of each sparrow by combining random walk and the leader’s position;

[0033] A4. In each iteration, a leader is selected based on the individual with the highest fitness, and the position of the followers is updated based on the position of the leader, thus improving the sparrow search algorithm.

[0034] A5. The improved sparrow search algorithm is iterated and combined with random search and leader guidance to obtain the parameter combination of the optimal power load forecasting model and complete the parameter optimization of the variational mode decomposition model VMD. After each iteration, the solution of the population will be updated until the fitness function converges.

[0035] Furthermore, the expression for updating the position of each sparrow is as follows:

[0036]

[0037] in, Represents the update of each sparrow's position, Indicates the current position of each sparrow, and are randomly generated coefficients, Indicates the position of the leader, Represents a randomly explored position.

[0038] Furthermore, the S4 is specifically:

[0039] Based on the gated recurrent unit and attention mechanism, a power load prediction model is constructed;

[0040] The decomposed subsequences are input into the power load forecasting model to train the power load forecasting model, wherein during the training process, the parameters of the power load forecasting model are adjusted by iteratively optimizing the loss function;

[0041] The trained power load forecasting model is used to forecast the new power load data to obtain the forecast results.

[0042] Beneficial effects of the present invention:

[0043] 1) The present invention uses a multi-source data fusion module to perform power system data preprocessing and multi-source data fusion processing, innovatively combines multi-source data such as environmental and sensor data, and provides a comprehensive perspective to comprehensively predict the load conditions of power in the power system;

[0044] 2) Introducing the variational mode decomposition model and using the improved sparrow search algorithm to optimize the variational mode decomposition model parameters, the original complex data sequence is decomposed into simple subsequences, which helps to effectively handle nonlinear and non-stationary data by isolating important variation modes;

[0045] 3) By building a power load forecasting model that combines a gated recurrent unit and an attention mechanism, the problem of low efficiency of existing methods in processing and fusing multi-source data is solved. The power load forecasting model and the existing network are experimented in a multi-source data set of the power system. The prediction accuracy of the power load forecasting model has achieved better results than the existing methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION

[0047] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0048] Example:

[0049] In this embodiment, the present invention performs power load forecasting. First, power system data is obtained, including historical and real-time power consumption records, meteorological information, socio-economic data, calendar information, etc.; the obtained power system data is fused and processed to integrate different source data to enhance the accuracy and robustness of power load forecasting; data preprocessing and standardization are performed to remove noise and outliers, and the data is unified to the same scale to make training more effective; the power forecast load is optimized: in the power load forecasting process, first, multi-source data is fused, and then variational mode decomposition (VMD) is used to extract key time series features. The key time series features are processed by gated recurrent units (GRUs) to retain key dependencies to optimize the dynamic prediction of future power loads. The attention mechanism further focuses on key time steps, such as peak demand periods. Output and optimization: The power load forecasting model outputs the predicted value of the power load, taking into account all important influencing factors and historical trends. In addition, an improved sparrow search algorithm (SSA) is used to fine-tune the variational mode decomposition model parameters to enhance the accuracy and efficiency of the prediction. As Figure 1 As shown, the present invention provides a method for predicting power load, and its implementation method is as follows:

[0050] S1. Obtain power system data;

[0051] S2. Preprocessing the power system data and multi-source data fusion processing, the implementation method is as follows:

[0052] S201, using a moving average filter and a median filter to remove short-term fluctuation data and abnormal values ​​in the power system data;

[0053] S202, standardizing the power system data after removing short-term fluctuation data and outliers, and scaling all numerical features to a uniform range;

[0054] S203, using forward filling and linear interpolation methods to fill missing values ​​in the time series data for the standardized power system data;

[0055] S204, performing one-hot encoding on the classification features according to the power system data after missing value filling, converting the non-numerical information into binary format, and completing preprocessing and multi-source data fusion processing;

[0056] S3. According to the power system data after preprocessing and multi-source data fusion processing, the original time series is decomposed into subsequences using the variational mode decomposition model, wherein the parameters of the variational mode decomposition model are optimized using the improved sparrow search algorithm, which is specifically as follows:

[0057] De-noising the power system data after pre-processing and multi-source data fusion;

[0058] The denoised power system data is decomposed into several subsequences using the variational mode decomposition model VMD.

[0059] The decomposed subsequences are normalized to complete the subsequence decomposition of the original time series, wherein the parameters of the variational mode decomposition model are optimized using an improved sparrow search algorithm;

[0060] The improved sparrow search algorithm is used to optimize the parameters of the variational mode decomposition model, which is as follows:

[0061] A1. Initialize the population and randomly generate the initial position of each sparrow;

[0062] A2, defining the fitness function as the prediction error of the power load forecasting model and the inverse of the mean square error;

[0063] A3. Update the position of each sparrow by combining random walk and the leader’s position;

[0064] A4. In each iteration, a leader is selected based on the individual with the highest fitness, and the position of the followers is updated based on the position of the leader, thus improving the sparrow search algorithm.

[0065] A5. Iterate the improved sparrow search algorithm, combine random search and leader guidance, obtain the parameter combination of the optimal power load forecasting model, and complete the parameter optimization of the variational mode decomposition model VMD. After each iteration, the solution of the population will be updated until the fitness function converges.

[0066] The expression for updating the position of each sparrow is as follows:

[0067]

[0068] in, Represents the update of each sparrow's position, Indicates the current position of each sparrow, and are randomly generated coefficients, Indicates the position of the leader, represents the position of random exploration;

[0069] S4. Based on the gated recurrent unit and the attention mechanism, a power load prediction model is constructed, and the power load is predicted using the power load prediction model according to the decomposed subsequences, which is specifically as follows:

[0070] Based on the gated recurrent unit and attention mechanism, a power load prediction model is constructed;

[0071] The decomposed subsequences are input into the power load forecasting model to train the power load forecasting model, wherein during the training process, the parameters of the power load forecasting model are adjusted by iteratively optimizing the loss function;

[0072] The trained power load forecasting model is used to forecast the new power load data to obtain the forecast results.

[0073] In this embodiment, the basic idea of ​​the present invention is to propose an advanced deep learning model that combines variational mode decomposition (VMD), gated recurrent unit (GRU) and attention mechanism, aiming to improve the accuracy and efficiency of power load forecasting. First, the variational mode decomposition technology is used to process the power system data, and the complex original time series is decomposed into simplified subsequences to better capture the nonlinear and non-stationary characteristics of the data. The decomposed subsequences are then input into the deep learning model (composed of gated recurrent unit (GRU) and attention mechanism), where the gated recurrent unit is responsible for processing the dependencies of the time series and effectively maintaining long-term and short-term data dependencies. The added attention mechanism further enhances the deep learning model's ability to focus on key time steps, optimizes the key areas of prediction, and ensures that the power load forecasting model combined with gated recurrent unit and attention mechanism can focus on the most influential data. The power load forecasting model is optimized by the loss function (mean square error MSE), and the network parameters are accurately adjusted by back propagation to minimize the prediction error, thereby improving the prediction accuracy, enhancing the adaptability of the power load forecasting model to the dynamic changes of power load, and providing a powerful decision support tool for power grid management.

[0074] In this embodiment, the present invention includes a power load prediction model composed of a multi-source data fusion module, a variational mode decomposition (VMD) module, an improved sparrow search algorithm module, a gated recurrent unit and an attention mechanism.

[0075] In this embodiment, the multi-source data fusion module: in the data preprocessing of the power system, firstly, the moving average filter and the median filter are used to remove the short-term fluctuation data and outliers in the power system data to smooth the data and reduce the impact of random noise; then, all the numerical features are scaled to a uniform range through the Min-Max standardization and Z-score standardization methods to help the power load forecasting model process the data more efficiently while reducing the impact of different dimensions; then, the forward filling and linear interpolation methods are used to process the missing values ​​in the time series data to maintain the integrity of the power system data and ensure the accuracy of the analysis and prediction; finally, the classification features are uniquely encoded to convert non-numerical information such as weather conditions and holidays into a binary format that can be processed by the power load forecasting model, so that the power load forecasting model can recognize and utilize this information.

[0076] In this embodiment, variational modal decomposition model (VMD): The core idea of ​​the variational modal decomposition model is to decompose the power system data into several subsequences (modes), each of which is a band-limited signal and is as orthogonal as possible to each other. Specifically, the variational modal decomposition model is implemented by solving a constrained optimization problem, the goal of which is to minimize the bandwidth of each mode. In the implementation, the variational modal decomposition model uses the alternating direction method of multipliers (ADMM) to solve this optimization problem. The key steps include: initializing the number of modes to 5, adjusting according to the seasonal and periodic changes of the data in actual applications, setting the penalty parameter to 1000, and setting the tolerance to e -7 Each mode and the corresponding Lagrange multiplier are updated alternately by the alternating direction multiplier method until the convergence criteria are met. Each mode finally obtained is a component with specific frequency characteristics extracted from the original signal. Through such detailed parameter settings, the variational modal decomposition model can efficiently extract key periodic and trend components, providing strong support for subsequent load forecasting, which is specifically:

[0077] 1. Parameter initialization.

[0078] Number of modes : Predefine the number of modes that need to be decomposed, usually based on the characteristics and requirements of the signal.

[0079] Balance parameters : Used to control the smoothness of the bandwidth, larger values ​​will result in smoother modes.

[0080] Tolerance : The condition for the algorithm to stop. When the difference between two consecutive iterations is less than this value, the iteration stops.

[0081] 2. Solve constrained optimization problems.

[0082] The core of the variational mode decomposition model is to achieve signal decomposition by solving a constrained optimization problem. The goal of this problem is to minimize the bandwidth of each mode while maintaining the integrity of the original signal. The optimization problem can be expressed as:

[0083]

[0084] in, represents the kth mode, K represents the number of modes, represents the partial derivative with respect to time, describing the time rate of change of the signal, represents convolution, represents the impulse function, represents the imaginary unit, Indicates frequency, represents the function of the kth mode, and t represents time.

[0085] 3. Use the alternating direction multiplier method.

[0086] Alternating Direction Method of Multipliers (ADMM): An iterative optimization algorithm used to solve optimization problems involving multiple variables by alternately optimizing each variable to achieve the overall optimum.

[0087] Update Modal : In each iteration, each modality is updated by fixing the other modalities.

[0088] Update center frequency : Update the center frequency corresponding to each mode to ensure frequency orthogonality and signal reconstruction.

[0089] 4. Iterate until convergence.

[0090] Iteration check and convergence: After each iteration, the total signal reconstruction error and modal bandwidth are calculated to check whether the tolerance standard is met. If the preset tolerance is reached or the maximum number of iterations is reached, the algorithm stops.

[0091] 5. Output the results.

[0092] Modal signal: Output all the decomposed modes, each mode is a part of the original signal, with a specific frequency component. The center frequency of each mode will also be determined for further analysis.

[0093] In this process, the variational mode decomposition model first pre-processes the power system data after preprocessing and multi-source data fusion, decomposing the complex multi-source data into sub-sequences that are easy to analyze. The sub-sequences are then processed by the gated recurrent unit to make effective predictions using their time-dependent characteristics. The attention mechanism further optimizes the prediction focus, making the prediction results more accurate and reliable. The entire process is a complete link from data preprocessing to deep learning analysis to result optimization, and each part contributes to the overall performance of the power load forecasting system.

[0094] In this embodiment, signal denoising: First, the original time series data is denoised to reduce the impact of noise on the decomposition results, and smoothing filters and other methods are used to remove short-term fluctuations and outliers.

[0095] Variational Mode Decomposition (VMD): Then, the denoised time series is decomposed into multiple subsequences using the variational mode decomposition (VMD) technique. Variational mode decomposition decomposes the complex original data into multiple relatively simple mode functions by decomposing the different frequency components of the signal, and each mode corresponds to a subsequence.

[0096] Subsequence processing: Finally, the decomposed subsequences are processed so that they can be further input into the subsequent power load forecasting model. This step includes standardizing or normalizing the subsequences to improve the prediction accuracy.

[0097] In this embodiment, the improved sparrow search algorithm module: To ensure that the improved sparrow search algorithm (SSA) can effectively optimize the variational mode decomposition model parameters, such as network weights and learning rates, the following are the detailed parameter settings of each key link in the sparrow search algorithm: ① Initialize the population: The population size is usually set to 30 sparrows; Initial position: The initial position of each sparrow (solution) is randomly generated and is usually evenly distributed within the possible range of the parameters. ② Foraging and vigilance: Fitness is defined as the inverse of the measurement accuracy. In this way, the higher the fitness of the sparrow, the better the corresponding solution. ③ Position update: The position update combines the random walk and the leader's position. The position update can be expressed as:

[0098]

[0099] in, Represents the update of each sparrow's position, Indicates the current position of each sparrow, Indicates the position of the leader, represents the position of random exploration, and Both represent randomly generated coefficients, which are used to balance the weights of following the leader and random exploration. ④ Leaders and followers: The leader is naturally selected according to the individual with the highest fitness in each iteration; the followers update their positions according to the leader's position. This process may include actions to move closer to the leader's position or completely random exploration to avoid local optimality.

[0100] In this embodiment, the parameters of the variational mode decomposition model are optimized using an improved sparrow search algorithm, as follows:

[0101] Initialize the population: The improved sparrow search algorithm first randomly generates a population, which represents different combinations of possible solutions or variational mode decomposition model parameters. The position of each sparrow represents a candidate solution, and the initial position is generated by random allocation.

[0102] Fitness function definition: In the optimization process, the fitness function is a criterion used to evaluate the quality of each solution. In power load forecasting, the fitness function is defined as the error predicted by the power load forecasting model, the inverse of the mean square error (MSE). This definition ensures that the larger the fitness value, the smaller the prediction error of the power load forecasting model and the higher the quality of the solution.

[0103] Position update: The position update of the sparrow is completed by combining random walk and the position of the leader. In each generation, the sparrow will refer to the leader in the current population (that is, the individual with the highest fitness) to adjust its position to explore possible better solutions. At the same time, random walk is also introduced to increase the diversity of the population and avoid falling into the local optimum.

[0104] Leader selection: In each generation, the individual with the highest fitness is selected as the leader. Other sparrows will adjust according to the leader's position and continuously update the fitness function. Through multiple iterations, the sparrow search algorithm gradually approaches the global optimal solution.

[0105] Iterative optimization: The improved sparrow search algorithm combines random search and leader guidance through multiple iterations to finally find the best combination of power load forecasting model parameters. After each iteration, the population solution is updated until the stopping condition (convergence of fitness function) is reached.

[0106] In this embodiment, the power load prediction module composed of the gated recurrent unit and the attention mechanism: The power load prediction model formed by the gated recurrent unit and the attention mechanism provides an efficient and accurate modeling method for power load prediction. The following is a detailed explanation of this module: Gated recurrent unit structure: Input: Represents the first elements; hidden state: is the gated recurrent unit at time step The output of and the previous hidden state ; Reset gate : Calculated by the sigmoid activation function, it determines how much previous hidden state information should be retained; update gate :Also calculated by the sigmoid activation function, it determines how much previous information to keep in the current hidden state and how much new information to add; candidate hidden state : Generated by the tanh activation function, and working together with the reset gate to generate the final hidden state update. Attention mechanism: Hidden state sequence: Represents the sequence output from the gated recurrent unit, each element represents the hidden state of the corresponding time step; weight vector: Represents the weights learned through training, which are used to calculate the importance of each hidden state; Attention score: Use the softmax function to process the weighted hidden state to obtain the attention score of each state. These scores indicate the importance of each time step to the current prediction task; Output vector: It represents the weighted sum of all weighted hidden states, which is calculated by element-wise multiplication and weighted summation. The final output reflects the comprehensive characteristics of the entire input sequence, highlighting the most critical part for prediction.

[0107] In this embodiment, the process of power load forecasting is as follows:

[0108] Model construction: A power load forecasting model is constructed using gated recurrent units and attention mechanisms. The gated recurrent units can capture the temporal dependencies of data, while the attention mechanism can enhance the model's focus on important features.

[0109] Model training: The processed subsequences are input into the constructed power load forecasting model for training. During the training process, the power load forecasting model will adjust the parameters by iteratively optimizing the loss function to minimize the prediction error.

[0110] Prediction execution: Use the optimized power load forecasting model to predict new power load data and output the prediction results.

[0111] The loss function of the power load forecasting model is the mean squared error (MSE) loss function. The expression formula is as follows:

[0112]

[0113] in, represents the total number of samples, represents the true value of the i-th sample, is the predicted value of the ith sample, Represents the squared error between the predicted value and the true value.

[0114] In summary, the present invention aims at the fact that existing methods often ignore the importance of environment and other external factors in power load forecasting, and innovatively combines multi-source data such as environment and sensor data to provide a comprehensive perspective to comprehensively and comprehensively predict the power load situation in the power system; in view of the problem that most current networks have limited capabilities in processing data with nonlinear and non-stationary characteristics, a variational mode decomposition model is introduced, and the improved sparrow search algorithm is used to optimize the variational mode decomposition model parameters, and the original complex data sequence is decomposed into simple subsequences, which helps to effectively process nonlinear and non-stationary data by isolating important variation patterns; existing methods are inefficient in processing and fusing multi-source data. The present invention predicts comprehensive influencing factors by building a power load forecasting module that combines a gated loop with an attention mechanism.

Claims

1. A method for predicting power load, characterized in that: The following steps are involved: S1. Obtain power system data; S2, pre-processing the power system data and fusion processing of multi-source data; S3. Decomposing the original time series into subsequences using a variational mode decomposition model based on the power system data after preprocessing and multi-source data fusion processing, wherein the parameters of the variational mode decomposition model are optimized using an improved sparrow search algorithm; S4. Based on the gated recurrent unit and the attention mechanism, a power load prediction model is constructed, and the power load is predicted using the power load prediction model according to the decomposed subsequences.

2. The power load forecasting method according to claim 1, characterized in that: The S2 comprises the following steps: S201, using a moving average filter and a median filter to remove short-term fluctuation data and abnormal values ​​in the power system data; S202, standardizing the power system data after removing short-term fluctuation data and outliers, and scaling all numerical features to a uniform range; S203, using forward filling and linear interpolation methods to fill missing values ​​in the time series data for the standardized power system data; S204. Based on the power system data after missing value filling, the classification features are one-hot encoded, the non-numerical information is converted into a binary format, and the preprocessing and multi-source data fusion processing are completed.

3. The power load forecasting method according to claim 1, characterized in that: The S3 is specifically: De-noising the power system data after pre-processing and multi-source data fusion; The denoised power system data is decomposed into several subsequences using the variational mode decomposition model VMD. The decomposed subsequences are normalized to complete the subsequence decomposition of the original time series, wherein the parameters of the variational mode decomposition model are optimized using an improved sparrow search algorithm.

4. The power load forecasting method according to claim 3, characterized in that: The constrained optimization expression of the variational mode decomposition model is as follows: in, represents the kth mode, K represents the number of modes, represents the partial derivative with respect to time, describing the time rate of change of the signal, represents convolution, represents the impulse function, represents the imaginary unit, Indicates frequency, represents the function of the kth mode, and t represents time.

5. The power load forecasting method according to claim 3, characterized in that: The improved sparrow search algorithm is used to optimize the parameters of the variational mode decomposition model, which is specifically: A1. Initialize the population and randomly generate the initial position of each sparrow; A2, defining the fitness function as the prediction error of the power load forecasting model and the inverse of the mean square error; A3. Update the position of each sparrow by combining random walk and the leader’s position; A4. In each iteration, a leader is selected based on the individual with the highest fitness, and the position of the followers is updated based on the position of the leader, thus improving the sparrow search algorithm. A5. The improved sparrow search algorithm is iterated and combined with random search and leader guidance to obtain the parameter combination of the optimal power load forecasting model and complete the parameter optimization of the variational mode decomposition model VMD. After each iteration, the solution of the population will be updated until the fitness function converges.

6. The power load forecasting method according to claim 5, characterized in that: The expression for updating the position of each sparrow is as follows: in, Represents the update of each sparrow's position, Indicates the current position of each sparrow, and are randomly generated coefficients, Indicates the position of the leader, Represents a randomly explored position.

7. The power load forecasting method according to claim 1, characterized in that: The S4 is specifically: Based on the gated recurrent unit and attention mechanism, a power load prediction model is constructed; The decomposed subsequences are input into the power load forecasting model to train the power load forecasting model, wherein during the training process, the parameters of the power load forecasting model are adjusted by iteratively optimizing the loss function; The trained power load forecasting model is used to forecast the new power load data to obtain the forecast results.

Citation Information

Patent Citations

  • Rolling bearing fault diagnosis method based on improved SSA optimized VMD and CNN parameters

    CN114881084A

  • Hybrid deep learning model-based electric power prediction method, system and equipment

    CN115630286A

  • Micro-grid optimization scheduling method and system based on sparrow search algorithm

    CN118508518A

Cited By

  • Power system load prediction method based on multivariate data fusion

    CN119377809A

  • Power System Load Forecasting Method Based on Multivariate Data Fusion

    CN119377809B

  • Power load prediction method and device based on multi-factor influence

    CN120046066A

  • Load prediction model dynamic adjustment method based on Hurst index guidance

    CN120163294A

  • Short-term power load prediction method and system based on collaborative optimization

    CN120744465A