Short-term load prediction method and system

By combining improved neural networks and decision tree algorithms to dynamically adjust model weights, the problem that a single model is difficult to fully consider influencing factors is solved, and the accuracy and stability of power load forecasting are improved.

CN118607692APending Publication Date: 2024-09-06ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410631613.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In current power load forecasting, it is difficult for a single model to fully consider various influencing factors, resulting in insufficient forecasting accuracy and stability.

Method used

Using a combined method based on an improved neural network algorithm and an improved decision tree algorithm, a third load prediction model is established by acquiring and preprocessing historical load data, and the model weights are dynamically adjusted to adapt to the actual operating conditions of the power system.

Benefits of technology

It improves the accuracy and stability of load forecasting, enables the model to better adapt to complex load change patterns, and enhances the robustness and reliability of forecasting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607692A
    Figure CN118607692A
Patent Text Reader

Abstract

The invention discloses a short-term load prediction method and system. The method comprises the following steps: acquiring historical load related data of a target power system, and preprocessing the historical load related data; taking the preprocessed historical load related data as input; establishing a third load prediction model based on the first load prediction model and the second load prediction model; and according to the real-time target power system load related data, determining whether an output prediction value of the third load prediction model satisfies a demand or not, and if yes, completing establishment of the third load prediction model. According to the method, firstly, according to the accuracy of a historical load prediction result and the volatility of real-time data, the weights of a first load prediction model and a second load prediction model in a third load prediction model are dynamically adjusted; through continuous optimization and adjustment, the third load prediction model is enabled to more accurately adapt to the actual operation condition of the power system, and the prediction precision and stability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of short-term load forecasting for power systems, and in particular to a short-term load forecasting method and system. Background Art

[0002] The continuous development and improvement of power load forecasting technology has made the forecast results more accurate and reliable, which is of great significance to the sustainable development of the power industry. With the continuous application of technologies such as big data and artificial intelligence, power load forecasting technology is also constantly innovating and upgrading. The load forecasting model based on machine learning can automatically learn the rules in historical data and predict the trend of future load changes. At the same time, technologies such as deep learning have also been introduced into power load forecasting. By building a complex neural network model, the complex characteristics of load data can be captured more accurately and the prediction accuracy can be improved.

[0003] In addition to technological innovation, power load forecasting also needs to be customized according to actual needs. The power load characteristics of different regions, seasons, and industries are different, so it is necessary to develop appropriate forecasting models for specific application scenarios. For example, for areas with concentrated electricity consumption such as industrial parks, it is necessary to consider the concentration and volatility of the load and adopt a more flexible forecasting method; for scenarios with strong dispersion such as residential electricity consumption, it is necessary to consider the diversity and uncertainty of the load and adopt a more robust forecasting strategy.

[0004] In general, power load forecasting, as an important research direction in the power field, will continue to play an important role in the future. With the continuous advancement of technology and the continuous expansion of application scenarios, power load forecasting will become more accurate and reliable, providing strong support for the sustainable development of the power industry. Summary of the invention

[0005] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0006] In view of the above existing problems, the present invention is proposed.

[0007] Therefore, the present invention provides a short-term load forecasting method and system, which can solve the problems mentioned in the background technology.

[0008] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0009] In a first aspect, the present invention provides a short-term load forecasting method, comprising:

[0010] Acquire historical load-related data of the target power system, and preprocess the historical load-related data;

[0011] The preprocessed historical load related data is used as input to a first load forecasting model based on an improved neural network algorithm and a second load forecasting model based on an improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model;

[0012] Establishing a third load forecasting model based on the first load forecasting model and the second load forecasting model;

[0013] The real-time target power system load related data is used to describe the third load prediction model to determine whether the output prediction value of the third load prediction model meets the demand. If so, the establishment of the third load prediction model is completed.

[0014] As a preferred solution of the short-term load forecasting method described in the present invention, it also includes: if it is not satisfied, updating the third load forecasting model according to the first preset update strategy until the third load forecasting model meets the demand.

[0015] As a preferred solution of the short-term load forecasting method of the present invention, the step of obtaining historical load-related data of the target power system and preprocessing the historical load-related data includes:

[0016] The target power system historical load related data includes time series data, power load values, weather conditions and specific event markers;

[0017] The preprocessing includes removing abnormal values ​​from the historical load-related data of the target power system, filling in missing values ​​and then normalizing;

[0018] The missing value filling logic is expressed as:

[0019]

[0020] Among them, Fh t represents the load to be filled at time t, Fh t-1 represents the load value at time t-1, Fh t+2 Indicates the load value at time t+2, Fh t+1 Indicates the load value at time t+1, Fh t-2 Represents the load value at time t-2.

[0021] As a preferred solution of the short-term load forecasting method of the present invention, the pre-processed historical load related data is used as input to the first load forecasting model based on the improved neural network algorithm and the second load forecasting model based on the improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model, including:

[0022] The objective function of the first load forecasting model is expressed as:

[0023] L TCL =λ MSE L MSE +λ CCL L CCL +λ TFP L TFP

[0024] Among them, L MSE represents the standard mean square error, L CCL represents the penalty for periodic deviation, L TFP Indicates the difference between the trend slope predicted by the comparison model and the actual trend slope, λ MSE , CCL , TFP Represent the corresponding weights respectively.

[0025] As a preferred solution of the short-term load forecasting method of the present invention, wherein: the pre-processed historical load related data is used as input to the first load forecasting model based on the improved neural network algorithm and the second load forecasting model based on the improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model, and further includes:

[0026] The objective function of the second load forecasting model is expressed as:

[0027] L DWAL =L weighted_mse +λ adapt L adaptivity

[0028] Among them, L weighted_mse represents the weighted mean square error, L adaptivity represents the adaptive error, λ adapt Represents the weight of the adaptive error.

[0029] As a preferred solution of the short-term load forecasting method of the present invention, wherein: the establishment of a third load forecasting model based on the first load forecasting model and the second load forecasting model includes:

[0030] Remember L i represents the predicted value of the first load forecasting model at the i-th time step, Xi represents the predicted value of the second load forecasting model at the i-th time step, P i represents the predicted value of the third load forecasting model at the i-th time step, then:

[0031] P i =w1L i +w2X i

[0032] Among them, w1 and w2 are the weights of the first load forecasting model and the second load forecasting model, respectively, satisfying:

[0033]

[0034] Among them, ε1 and ε2 are the prediction errors of the first load prediction model and the second load prediction model respectively.

[0035] As a preferred solution of the short-term load forecasting method of the present invention, the first preset update strategy includes:

[0036] If the difference between the predicted value and the actual value of the third load forecasting model is not greater than the first threshold, then the weight of the first load forecasting model and the weight of the second load forecasting model are determined, and the weight corresponding to the load forecasting model with a lower weight value is reduced according to the first preset step size;

[0037] If the weight values ​​are equal, then arbitrarily select a load forecasting model and reduce its weight according to the first preset step size, and then determine the difference between the predicted value and the actual value of the third load forecasting model;

[0038] If the difference between the predicted value and the actual value of the third load forecasting model is greater than the first threshold value and not greater than the second threshold value, then the weight of the first load forecasting model and the weight of the second load forecasting model are determined, and the weight corresponding to the load forecasting model with a higher weight value is increased according to the second preset step size;

[0039] If the weight values ​​are equal, then arbitrarily select a load forecasting model and increase its weight according to the second preset step size, and then determine the difference between the predicted value and the actual value of the third load forecasting model;

[0040] If the difference between the predicted value and the actual value of the third load forecasting model is greater than the second threshold, determining whether the historical load-related data generating the difference greater than the second threshold has a specific weather condition or a specific event marker;

[0041] If it does not exist, then re-update the weight values ​​in the objective functions of the first load forecasting model and the second load forecasting model according to the preset weight adjustment logic, and re-acquire the third load forecasting model;

[0042] If it exists, determine the prediction results of the first load forecasting model and the second load forecasting model under the specific weather conditions or specific event marks, reduce the weight corresponding to the load forecasting model restricted by the specific weather conditions or specific event marks according to the first preset step size, and re-acquire the third load forecasting model.

[0043] In a second aspect, the present invention provides a short-term load forecasting system, comprising:

[0044] A data processing module, used to obtain historical load-related data of the target power system and pre-process the historical load-related data;

[0045] A model building module, used to input the preprocessed historical load related data as input to a first load forecasting model based on an improved neural network algorithm and a second load forecasting model based on an improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model;

[0046] A model synthesis module, used to establish a third load forecasting model based on the first load forecasting model and the second load forecasting model;

[0047] The judgment module is used to apply the real-time target power system load-related data to the third load prediction model to determine whether the output prediction value of the third load prediction model meets the demand. If so, the establishment of the third load prediction model is completed.

[0048] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned method when executing the computer program.

[0049] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method described above when executed by a processor.

[0050] Compared with the prior art, the invention has the following beneficial effects: the invention proposes a short-term load forecasting method and system, obtains historical load-related data of the target power system, and pre-processes the historical load-related data; uses the pre-processed historical load-related data as input, inputs it into the first load forecasting model based on the improved neural network algorithm and the second load forecasting model based on the improved decision tree algorithm, and uses the historical load value as the output of the first load forecasting model and the second load forecasting model; establishes a third load forecasting model based on the first load forecasting model and the second load forecasting model; uses the real-time target power system load-related data to describe the third load forecasting model, and determines whether the output forecast value of the third load forecasting model meets the demand. If it does, the establishment of the third load forecasting model is completed. The method first dynamically adjusts the weights of the first load forecasting model and the second load forecasting model in the third load forecasting model according to the accuracy of the historical load forecasting results and the volatility of the real-time data. Through continuous optimization and adjustment, the third load forecasting model can be more accurately adapted to the actual operating conditions of the power system, and the prediction accuracy and stability can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0052] Figure 1 A method flow chart of a short-term load forecasting method and system provided by an embodiment of the present invention;

[0053] Figure 2 An internal structural diagram of a computer device of a short-term load forecasting method and system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0055] Example 1

[0056] Reference Figure 1-Figure 2, is the first embodiment of the present invention, which provides a short-term load forecasting method and system, including a short-term load forecasting method and a short-term load forecasting system, wherein a short-term load forecasting method includes:

[0057] Before describing the embodiments of the present application in detail, some related concepts are first explained for the sake of clarity.

[0058] Neural network algorithm: A neural network algorithm is a computational model that simulates the neural structure of the human brain and is used to solve complex pattern recognition and prediction problems. It consists of a large number of nodes (called neurons) that are organized in layers, including input layers, hidden layers, and output layers. Each neuron receives the input signal from the previous layer, performs a weighted sum on it, transforms it through a nonlinear activation function, and then passes the result to the next layer. The learning process involves adjusting the weights connecting each neuron to minimize the difference between the predicted output and the actual result. Neural networks are particularly good at capturing complex, nonlinear relationships in data and are widely used in image recognition, natural language processing, financial forecasting and other fields.

[0059] Decision tree algorithm: The decision tree algorithm is a commonly used machine learning method for classification and regression tasks. It creates a tree structure through a series of questions (decision nodes) and answers (branches), and finally reaches a prediction or classification conclusion (leaf node). Each internal node represents a test on a feature, each branch represents a test result, and each leaf node represents a category or output value. In the process of building a decision tree, the algorithm selects the optimal features and split points to maximize information gain (or reduce entropy, Gini impurity, etc.), thereby recursively generating a tree structure. Decision trees are easy to understand and implement, and can intuitively display decision rules, but may not be as good as other advanced models such as neural networks when dealing with highly nonlinear problems.

[0060] Power system load: Power system load refers to the total amount of electricity consumed by all users in the power system at a certain moment or over a period of time. It reflects the size of power demand and is a key parameter in power system planning, operation and control. Power load can be divided into peak load, valley load and average load according to time scale, and can also be divided into industrial load, commercial load, residential load, etc. according to user type. Accurate prediction of power load is crucial for grid dispatching, power generation planning, power market transactions, and ensuring the balance of power supply and demand. Load forecasting usually takes into account multiple factors such as historical load data, weather conditions, holidays, special events, etc.

[0061] In related technologies, short-term load forecasting mainly relies on a single forecasting model, such as a neural network or a decision tree, etc. However, this single model often fails to fully consider various influencing factors, resulting in insufficient forecasting accuracy and stability.

[0062] The present application provides a method that can effectively solve the above-mentioned problems. Next, multiple embodiments will be combined to explain in detail how to implement the short-term load forecasting method;

[0063] Figure 1 A method flow chart of a short-term load forecasting method and system is shown, including:

[0064] S101, obtaining historical load-related data of a target power system and preprocessing the historical load-related data;

[0065] Wherein, obtaining the historical load-related data of the target power system and preprocessing the historical load-related data include: the historical load-related data of the target power system includes time series data, power load values, weather conditions and specific event markers;

[0066] In this embodiment, time series data can be represented by date, hour (or finer time resolution), weather conditions include temperature, humidity, wind speed, etc., which affect power consumption, and specific event markers include holidays and large events, which may affect power consumption patterns.

[0067] Furthermore, the preprocessing includes removing outliers from the historical load-related data of the target power system and filling missing values ​​before normalizing them;

[0068] The missing value filling logic is expressed as:

[0069]

[0070] Among them, Fh t represents the load to be filled at time t, Fh t-1 represents the load value at time t-1, Fh t+2 Indicates the load value at time t+2, Fh t+1 Indicates the load value at time t+1, Fh t-2 Represents the load value at time t-2.

[0071] It should be noted that the above preprocessing steps can ensure the integrity and consistency of the data and improve the robustness of the prediction model. Normalization helps to eliminate the dimensional differences between different features, making the model easier to learn and optimize.

[0072] S102, taking the preprocessed historical load-related data as input, inputting it into a first load forecasting model based on an improved neural network algorithm and a second load forecasting model based on an improved decision tree algorithm, and using the historical load value as the output of the first load forecasting model and the second load forecasting model;

[0073] The preprocessed historical load related data is used as input to the first load forecasting model based on the improved neural network algorithm and the second load forecasting model based on the improved decision tree algorithm. The historical load values ​​as the output of the first load forecasting model and the second load forecasting model include:

[0074] The objective function of the first load forecasting model is expressed as:

[0075] L TCL =λ MSE L MSE +λ CCL L CCL +λ TFP L TFP

[0076] Among them, L MSE represents the standard mean square error, L CCL represents the penalty for periodic deviation, L TFP Indicates the difference between the trend slope predicted by the comparison model and the actual trend slope, λ MSE , CCL , TFP Respectively represent the corresponding weights. Among them, is the standard mean square error.

[0077] represents the penalty for periodic deviations, and f(t) is the mapping from time to periodic frequency.

[0078] L TFP =|Slope model -Slope true |, used to compare the difference between the trend slope predicted by the model and the actual trend slope.

[0079] In an optional embodiment, the corresponding weight λ MSE , CCL , TFP This can be achieved through the following steps: Cross-validation: Use the cross-validation method to evaluate the model performance under different weight configurations. The specific approach is to split the data set into a training set and a validation set. For each possible weight combination, use the training set to train the model, and then evaluate the prediction error on the validation set. Select the weight combination that minimizes the validation set error.

[0080] Grid search: Define a range of weight values, then traverse all possible weight combinations and select the combination that minimizes the objective function (such as mean square error, absolute error, or other loss functions).

[0081] Gradient descent / optimization algorithm: If the objective function is continuously differentiable, gradient descent or more advanced optimization algorithms (such as L-BFGS, Adam, etc.) can be used to iteratively update the weights until a local optimal solution is found. This requires the ability to calculate the gradient of the objective function with respect to the weights.

[0082] Bayesian optimization: This is a global optimization method that is suitable for finding the global minimum of complex objective functions. It constructs a surrogate model of the objective function (usually a Gaussian process) and uses the Bayesian rule to guide the search process to efficiently explore the parameter space.

[0083] Adaptive weight adjustment strategy: In online learning scenarios, weights can be adjusted dynamically based on the performance of each prediction. For example, online gradient descent can be used to continuously update weights based on the arrival of new data, so that the model can adapt to changes in data distribution.

[0084] Heuristic method: In some cases, if there is some prior knowledge about the model, the initial weights can be set directly or based on experience, and then fine-tuned based on the actual prediction results.

[0085] The preprocessed historical load related data is used as input to the first load forecasting model based on the improved neural network algorithm and the second load forecasting model based on the improved decision tree algorithm. The historical load value as the output of the first load forecasting model and the second load forecasting model also includes:

[0086] The objective function of the second load forecasting model is expressed as:

[0087] L DWAL =L weighted_mse +λ adapt L adaptivity

[0088] Among them, L weighted_mse represents the weighted mean square error, L adaptivity represents the adaptive error, λ adapt Represents the weight of the adaptive error.

[0089] ω i It is the sample weight that is dynamically adjusted according to the prediction difficulty.

[0090] S is a set of different time periods or load levels, and the model is encouraged to perform consistently on all subsets.

[0091] It should be noted that the accuracy and reliability of load forecasting are improved by combining the improved neural network algorithm and the improved decision tree algorithm. The neural network algorithm is good at capturing complex nonlinear relationships, while the decision tree algorithm is able to handle discrete and categorical data and is easy to understand and explain. By combining these two algorithms, their advantages can be comprehensively utilized to better cope with the complexity and uncertainty in load forecasting.

[0092] By constructing the objective functions of the first load forecasting model and the second load forecasting model and introducing different error terms and weights, the performance of the forecasting model is further improved. The introduction of weighted mean square error and adaptive error enables the model to better adapt to changes in different time periods and load levels, and improves the stability and generalization ability of the forecast.

[0093] S103, establishing a third load forecasting model based on the first load forecasting model and the second load forecasting model;

[0094] Wherein, establishing the third load forecasting model based on the first load forecasting model and the second load forecasting model includes: i represents the predicted value of the first load forecasting model at the i-th time step, X i represents the predicted value of the second load forecasting model at the i-th time step, P i represents the predicted value of the third load forecasting model at the i-th time step, then:

[0095] P i =w1L i +w2X i

[0096] Among them, w1 and w2 are the weights of the first load forecasting model and the second load forecasting model, respectively, satisfying:

[0097]

[0098] Among them, ε1 and ε2 are the prediction errors of the first load prediction model and the second load prediction model respectively.

[0099] It should be noted that by establishing the third load forecasting model, the advantages of the first load forecasting model and the second load forecasting model can be fully utilized to achieve further optimization of the forecast results. The first load forecasting model is based on an improved neural network algorithm, which can capture complex nonlinear relationships and has a high sensitivity to subtle changes in load data; while the second load forecasting model is based on an improved decision tree algorithm, which is good at processing discrete and classified data and can provide intuitive and easy-to-understand forecast results. By combining these two models, the third load forecasting model can combine their advantages and improve forecast accuracy and reliability.

[0100] The third load forecasting model adopts a weighted combination method to dynamically adjust the weights of the first load forecasting model and the second load forecasting model according to the forecast errors. This adaptive adjustment strategy enables the model to flexibly adjust the contribution of each model according to changes in different time periods and load levels, thereby achieving more stable forecasting performance. This flexibility enables the model to cope with various complex load change patterns and improve the robustness of the forecast.

[0101] S104, the real-time target power system load related data is used for the third load prediction model to determine whether the output prediction value of the third load prediction model meets the demand. If so, the establishment of the third load prediction model is completed.

[0102] If not, the third load forecasting model is updated according to the first preset update strategy until the third load forecasting model meets the demand.

[0103] Specifically, the first preset update strategy includes:

[0104] If the difference between the predicted value and the actual value of the third load forecasting model is not greater than the first threshold, then the weight of the first load forecasting model and the weight of the second load forecasting model are determined, and the weight corresponding to the load forecasting model with a lower weight value is reduced according to the first preset step size;

[0105] If the weight values ​​are equal, then arbitrarily select a load forecasting model and reduce its weight according to the first preset step size, and then determine the difference between the predicted value and the actual value of the third load forecasting model;

[0106] If the difference between the predicted value and the actual value of the third load forecasting model is greater than the first threshold value and not greater than the second threshold value, then the weight of the first load forecasting model and the weight of the second load forecasting model are determined, and the weight corresponding to the load forecasting model with a higher weight value is increased according to the second preset step size;

[0107] If the weight values ​​are equal, then arbitrarily select a load forecasting model and increase its weight according to the second preset step size, and then determine the difference between the predicted value and the actual value of the third load forecasting model;

[0108] If the difference between the predicted value and the actual value of the third load forecasting model is greater than the second threshold, determining whether the historical load-related data generating the difference greater than the second threshold has a specific weather condition or a specific event marker;

[0109] If it does not exist, then re-update the weight values ​​in the objective functions of the first load forecasting model and the second load forecasting model according to the preset weight adjustment logic, and re-acquire the third load forecasting model;

[0110] If it exists, determine the prediction results of the first load prediction model and the second load prediction model under the specific weather conditions or specific event markers, reduce the weights corresponding to the load prediction models restricted by the specific weather conditions or specific event markers according to the first preset step length, and re-obtain the third load prediction model.

[0111] In this embodiment, w1 and w2 respectively represent the initial weights of the first load prediction model and the second load prediction model, and w1 + w2 = 1. Δ pred represents the difference between the predicted value and the actual value of the third load prediction model. T1 is the first threshold, and T2 is the second threshold. α1 is the first preset step length, and α2 is the second preset step length. E spec represents the prediction error index under specific weather conditions or event markers ''

[0112] If Δ pred ≤T1:

[0113] If w1 < w2, then w1 := w1 - α1, and w2 := 1 - w1.

[0114] If w1 = w2, randomly select one model to reduce the weight. For example, reduce w1, then w1 := w1 - α1, w2 := 1 - w1;

[0115] If T1 < Δ pred ≤T2:

[0116] If w1 > w2, then w1 := w1 + α2, and w2 := 1 - w1.

[0117] If w1 = w2, randomly select one model to increase the weight. For example, increase w1, then w1 := w1 + α2, w2 := 1 - w1;

[0118] If Δ pred >T2 and there are specific weather conditions or event markers E spec :

[0119] Calculate the prediction errors E 1,spec , E 2,spec ;

[0120] Assume E 1,spec >E 2,spec , reduce the weight of w1, w1 := w1 - α1, w2 := 1 - w1. Vice versa, := is the assignment symbol.

[0121] If the above steps fail to effectively reduce Δ pred , then consider re-initializing w1 and w2 or adjusting parameters such as the regularization term and learning rate in the objective function to trigger a new round of optimization of the model performance.

[0122] In an optional embodiment, the load of the power system can also be accurately predicted and regulated according to the output result of the third load prediction model. By real-time monitoring and analyzing the load data of the power system, the load change trend can be discovered in time, so that corresponding measures can be taken to deal with it.

[0123] For example, during peak load periods, the operation mode of the power system can be adjusted to increase power generation capacity or optimize energy distribution to meet load demand and ensure stable operation of the power system. At the same time, a reasonable power dispatching plan can be formulated based on the forecast results to avoid energy waste and loss and improve energy utilization efficiency.

[0124] In addition, the third load forecasting model can also be combined with other power system management tools to form a complete power system management solution. For example, the prediction results of the model can be applied to the fault diagnosis and early warning system of the power system. By comparing the actual load data with the predicted data, potential fault risks can be discovered in time, and corresponding measures can be taken to prevent and deal with them.

[0125] In summary, the present invention proposes a short-term load forecasting method, which obtains historical load-related data of the target power system and preprocesses the historical load-related data; the preprocessed historical load-related data is used as input, and is input into a first load forecasting model based on an improved neural network algorithm and a second load forecasting model based on an improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model; a third load forecasting model based on the first load forecasting model and the second load forecasting model is established; the real-time target power system load-related data is used as the third load forecasting model to determine whether the output prediction value of the third load forecasting model meets the demand, and if so, the third load forecasting model is established. The method first dynamically adjusts the weights of the first load forecasting model and the second load forecasting model in the third load forecasting model according to the accuracy of the historical load forecasting results and the volatility of the real-time data. Through continuous optimization and adjustment, the third load forecasting model can be more accurately adapted to the actual operating conditions of the power system, and the prediction accuracy and stability can be improved.

[0126] In the embodiment of the present application, the first preset step length and the second preset step length can be designed according to user demand standards, and can also be adjusted according to a preset attenuation rate and sensitivity.

[0127] This embodiment also provides a short-term load forecasting system, including:

[0128] A data processing module is used to obtain historical load-related data of the target power system and pre-process the historical load-related data;

[0129] A model building module, used to input the preprocessed historical load related data as input to a first load forecasting model based on an improved neural network algorithm and a second load forecasting model based on an improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model;

[0130] A model synthesis module, used to establish a third load forecasting model based on the first load forecasting model and the second load forecasting model;

[0131] The judgment module is used to use the real-time target power system load related data to the third load prediction model to judge whether the output prediction value of the third load prediction model meets the demand. If so, the third load prediction model is established.

[0132] The above-mentioned unit modules may be embedded in or independent of the processor in the computer device in the form of hardware, or may be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.

[0133] This embodiment also provides a computer device, which may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 2 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a short-term load forecasting method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0134] This embodiment further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0135] Obtain historical load-related data of the target power system and preprocess the historical load-related data;

[0136] The preprocessed historical load related data is used as input to a first load forecasting model based on an improved neural network algorithm and a second load forecasting model based on an improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model;

[0137] Establishing a third load forecasting model based on the first load forecasting model and the second load forecasting model;

[0138] The real-time target power system load related data is used for the third load forecasting model to determine whether the output forecast value of the third load forecasting model meets the demand. If so, the establishment of the third load forecasting model is completed.

[0139] Example 2

[0140] Reference Figure 1-Figure 2 , which is an embodiment of the present invention, provides a short-term load forecasting method and system. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through experiments.

[0141] Experiment 1: Load Forecasting Method Verification

[0142] This experiment aims to verify the accuracy and effectiveness of the short-term load forecasting method proposed in this invention. The experiment selected a power system in a certain area as the target power system and collected historical load-related data in the area. These data include historical load values, weather conditions, holiday marks, etc.

[0143] First, the historical load-related data was preprocessed, including data cleaning, normalization and other operations. Then, the first load forecasting model and the second load forecasting model were established based on the improved neural network algorithm and the improved decision tree algorithm, respectively. In the process of model establishment, the historical load-related data were used to train the model, and the model parameters were adjusted to optimize the prediction effect.

[0144] Next, according to the preset weight adjustment logic, the first load forecasting model and the second load forecasting model are weighted and combined to obtain a third load forecasting model. Different weight combination schemes are set, and the prediction error under each scheme is calculated respectively.

[0145] Finally, the real-time target power system load-related data is input into the third load forecasting model to obtain the predicted value, which is compared with the actual load value to calculate the prediction error. The experimental results show that the short-term load forecasting method proposed in the present invention can significantly improve the accuracy of the prediction, and the model weight can be flexibly adjusted according to the actual situation to adapt to different prediction needs.

[0146] Table 1: Overview of validation data for load forecasting methods

[0147]

[0148] Experiment 2: Comparative experiment with other methods

[0149] In order to further verify the superiority of the method of the present invention, a comparative experiment was conducted with other commonly used load forecasting methods, including traditional neural network methods, decision tree methods, and some forecasting methods based on hybrid models.

[0150] In the comparative experiment, the same data set as in Experiment 1 was used, and various methods were applied to load forecasting. The forecast error of each method was calculated and a comparative analysis was performed.

[0151] Table 2: Overview of data comparison with other methods

[0152]

[0153]

[0154] The experimental results show that the short-term load forecasting method proposed by the present invention is significantly superior to other methods in terms of forecasting accuracy. In particular, when processing complex and changeable load data, the method of the present invention can better capture the laws and trends in the data, thereby improving the accuracy of the forecast.

[0155] In summary, through experimental verification, the short-term load forecasting method proposed in the present invention has significant advantages and practicability. The method can accurately predict the short-term load of the power system and provide strong support for the stable operation and optimized dispatch of the power system.

[0156] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

[0157] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0158] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0159] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0161] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0162] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A short-term load forecasting method, It is characterized in that include: Acquire historical load-related data of the target power system, and preprocess the historical load-related data; The preprocessed historical load related data is used as input to a first load forecasting model based on an improved neural network algorithm and a second load forecasting model based on an improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model; Establishing a third load forecasting model based on the first load forecasting model and the second load forecasting model; The real-time target power system load related data is used to describe the third load prediction model to determine whether the output prediction value of the third load prediction model meets the demand. If so, the establishment of the third load prediction model is completed.

2. The short-term load forecasting method according to claim 1, It is characterized in that Also includes: If not, the third load forecasting model is updated according to the first preset update strategy until the third load forecasting model meets the demand.

3. The short-term load forecasting method according to claim 2, It is characterized in that The step of obtaining the target power system historical load related data and preprocessing the historical load related data includes: The target power system historical load related data includes time series data, power load values, weather conditions and specific event markers; The preprocessing includes removing abnormal values ​​from the historical load-related data of the target power system, filling in missing values ​​and then normalizing; The missing value filling logic is expressed as: Among them, Fh t represents the load to be filled at time t, Fh t-1 represents the load value at time t-1, Fh t+2 Indicates the load value at time t+2, Fh t+1 Indicates the load value at time t+1, Fh t-2 Represents the load value at time t-2.

4. The short-term load forecasting method according to claim 3, It is characterized in that The pre-processed historical load related data is used as input to the first load forecasting model based on the improved neural network algorithm and the second load forecasting model based on the improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model. The objective function of the first load forecasting model is expressed as: L TCL =λ MSE L MSE +λ CCL L CCL +λ TFP L TFP Among them, L MSE represents the standard mean square error, L CCL represents the penalty for periodic deviation, L TFP Indicates the difference between the trend slope predicted by the comparison model and the actual trend slope, λ MSE , CCL , TFP Represent the corresponding weights respectively.

5. The short-term load forecasting method according to claim 4, It is characterized in that The pre-processed historical load related data is used as input to the first load forecasting model based on the improved neural network algorithm and the second load forecasting model based on the improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model. It also includes: The objective function of the second load forecasting model is expressed as: L DWAL =L weighted_mse +λ adapt L adaptivity Among them, L weighted_mse represents the weighted mean square error, L adaptivity represents the adaptive error, λ adapt Represents the weight of the adaptive error.

6. The short-term load forecasting method according to claim 5, It is characterized in that The establishing of the third load forecasting model based on the first load forecasting model and the second load forecasting model includes: Remember L i represents the predicted value of the first load forecasting model at the i-th time step, X i represents the predicted value of the second load forecasting model at the i-th time step, P i represents the predicted value of the third load forecasting model at the i-th time step, then: P i =w 1 L i +w 2 X i Among them, w 1 and w 2 are the weights of the first load forecasting model and the second load forecasting model, satisfying: Among them, ε 1 and ε 2 are the prediction errors of the first load prediction model and the second load prediction model respectively.

7. The short-term load forecasting method according to claim 6, It is characterized in that The first preset update strategy includes: If the difference between the predicted value and the actual value of the third load forecasting model is not greater than the first threshold, then the weight of the first load forecasting model and the weight of the second load forecasting model are determined, and the weight corresponding to the load forecasting model with a lower weight value is reduced according to the first preset step size; If the weight values ​​are equal, then arbitrarily select a load forecasting model and reduce its weight according to the first preset step size, and then determine the difference between the predicted value and the actual value of the third load forecasting model; If the difference between the predicted value and the actual value of the third load forecasting model is greater than the first threshold value and not greater than the second threshold value, then the weight of the first load forecasting model and the weight of the second load forecasting model are determined, and the weight corresponding to the load forecasting model with a higher weight value is increased according to the second preset step size; If the weight values ​​are equal, then arbitrarily select a load forecasting model and increase its weight according to the second preset step size, and then determine the difference between the predicted value and the actual value of the third load forecasting model; If the difference between the predicted value and the actual value of the third load forecasting model is greater than the second threshold, determining whether the historical load-related data generating the difference greater than the second threshold has a specific weather condition or a specific event marker; If it does not exist, re-update the weight values ​​in the objective functions of the first load forecasting model and the second load forecasting model according to the preset weight adjustment logic, and re-acquire the third load forecasting model; If it exists, determine the prediction results of the first load forecasting model and the second load forecasting model under the specific weather conditions or specific event marks, reduce the weight corresponding to the load forecasting model restricted by the specific weather conditions or specific event marks according to the first preset step size, and re-acquire the third load forecasting model.

8. A short-term load forecasting system, It is characterized in that include: A data processing module, used to obtain historical load-related data of the target power system and pre-process the historical load-related data; A model building module, used to input the preprocessed historical load related data as input to a first load forecasting model based on an improved neural network algorithm and a second load forecasting model based on an improved decision tree algorithm, and the historical load value is used as the output of the first load forecasting model and the second load forecasting model; A model synthesis module, used to establish a third load forecasting model based on the first load forecasting model and the second load forecasting model; The judgment module is used to apply the real-time target power system load-related data to the third load prediction model to determine whether the output prediction value of the third load prediction model meets the demand. If so, the establishment of the third load prediction model is completed.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.