Medium and long term load prediction method and device for electricity market, and electronic equipment
The deep learning model, gating, and residual networks are used to screen important features, and combined with the time-cyclic neural network, the medium and long-term load forecasting in the power market is carried out, which solves the problem of insufficient factors and improves the accuracy and automation of the forecast. It is suitable for the power market. load forecasting.
Patent Information
- Application Number
- CN202410740254.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology does not consider comprehensive factors when forecasting long-term load in the power market, resulting in low accuracy of forecast results.
Using a deep learning model combined with gating and residual networks, important feature vectors are screened out by obtaining characteristics such as climate, economic development, and policy updates, and then input into a time-cyclic neural network for mid- and long-term load forecasting, and hyperparameters are adjusted to improve forecast accuracy. .
It improves the accuracy of medium and long-term load forecasting, reduces manual participation, increases the degree of automation of the model, is suitable for more application scenarios, and better integrates features within time series, improving the overall learning effect.
Smart Images

Figure CN118735041A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of medium- and long-term transactions in the power market, and in particular to a medium- and long-term load forecasting method, device and electronic equipment for the power market. Background Art
[0002] With the normal operation of the power market, the types of power transactions are becoming more and more diverse. The transaction cycle spans the year, season, month, week (ten days), multiple days, day before, and intraday, and the transaction varieties include bilateral, centralized bidding, rolling matching, delisting and other forms. Such high frequency and multiple types of transactions test the ability of market players to participate in the market. As an important boundary condition for the planning and operation of the power system, power load forecasting plays an important role.
[0003] In power load forecasting, short-term load fluctuations are small. In medium- and long-term forecasts, power load fluctuations become larger and more influencing factors become more numerous. Therefore, a model suitable for medium- and long-term power load forecasting needs to consider multiple factors, combine existing data, and analyze future developments in order to make a more accurate forecast.
[0004] In the prior art, the "User Load Forecasting Method and Device under Wholesale and Retail Price Linkage" with patent number "202211278395.2" iteratively corrects the user load forecast value on the basis of traditional load forecasting to meet the iteration conditions, and can realize the retail user load forecast under the wholesale and retail price linkage in the electricity retail market. However, this load forecast is based on maximizing the user's production efficiency. The factors considered in the load forecast are not comprehensive enough, resulting in low accuracy of the forecast results in medium and long-term forecasts. Summary of the invention
[0005] To this end, the present invention provides a medium- and long-term load forecasting method, device and electronic equipment for the power market to solve the problem that the factors considered in the prior art during load forecasting are not comprehensive enough, resulting in low accuracy of the forecast results during medium- and long-term forecasting.
[0006] In a first aspect, a medium- and long-term load forecasting method for a power market is provided, the method comprising:
[0007] Obtaining basic data on load conditions in the power market, as well as short-term and long-term change characteristics corresponding to the basic data; the short-term change characteristics are climate characteristics that affect the load; the long-term change characteristics are economic development characteristics, installed capacity change characteristics, and related policy update characteristics that affect the load;
[0008] Performing prediction on the long-term variation characteristics through a deep learning model to obtain a predicted value;
[0009] Performing a screening operation on the short-term change feature, the long-term change feature and the predicted value through a gating and residual network to obtain a feature vector;
[0010] Inputting the basic data and the characteristic vector into a time recurrent neural network to obtain a medium- and long-term load forecasting model;
[0011] The target prediction result is obtained by predicting using the medium- and long-term load forecasting model.
[0012] Furthermore, it also includes:
[0013] The hyperparameters of the medium- and long-term prediction model are adjusted according to the target prediction results to further improve the prediction accuracy of the medium- and long-term prediction model.
[0014] Furthermore, the climate characteristics include temperature, cloud cover, light radiation, precipitation, snowfall, humidity, wind speed and dust.
[0015] Furthermore, the deep learning model is a time series model, and performing prediction on the long-term change characteristics by the deep learning model to obtain a predicted value includes:
[0016] Obtain the intermediate output results through the encoder of the time series model;
[0017] The decoding result at time point t is obtained through the decoder of the time series model.
[0018] Furthermore, the intermediate output result is obtained by the encoder of the time series model, including:
[0019] Based on the encoder, C is calculated using the formula:
[0020] C=q(h 1 ,h 2 ,…,h N );
[0021] Among them, C is the intermediate output result; q is the activation function; h N represents the hidden state of the Nth hidden neuron.
[0022] Furthermore, the decoder of the time series model obtains y t ,include:
[0023] Based on the decoder, y is calculated t , the calculation formula is:
[0024] y t =g({y 1 ,y 2 , …, y t}, C);
[0025] Among them, y t is the decoding result at time t; g(·) represents the nonlinear activation function; y 1 ,y 2 , …, y t represents the hidden state of the Nth hidden neuron; C is the intermediate output result calculated by the encoder.
[0026] Furthermore, the calculation formula of the gate is:
[0027]
[0028] Among them, GLU(x) controls the degree of nonlinear contribution; σ represents the nonlinear activation function; x is the input feature or intermediate value; W is the first weight; b is the first bias; V is the second weight; c is the second bias.
[0029] Furthermore, the residual network comprises:
[0030] The input is added to the output across some network layers to solve the gradient disappearance problem of the deep network through residual connection. The formula is as follows:
[0031] Y=LayerNorm(a+GLU((ELU(W′a+b′))));
[0032] Among them, LayerNorm is layer normalization; ELU represents the nonlinear activation function; a is the input; W′ is the third weight; b′ is the third bias.
[0033] In a second aspect, a medium- and long-term load forecasting device for a power market is provided, the device comprising:
[0034] An acquisition module is used to acquire basic data of load conditions in the power market, as well as short-term change characteristics and long-term change characteristics corresponding to the basic data; the short-term change characteristics are climate characteristics that affect the load; the long-term change characteristics are economic development characteristics, installed capacity change characteristics, and related policy update characteristics that affect the load;
[0035] A first prediction module, configured to predict the long-term change feature by using a deep learning model to obtain a predicted value;
[0036] A feature vector module, used for performing a screening operation on the short-term change feature, the long-term change feature and the predicted value through a gating and residual network to obtain a feature vector;
[0037] A model building module, used for inputting the basic data and the feature vector into a time recurrent neural network to obtain a medium- and long-term load forecasting model;
[0038] The second prediction module is used to predict and obtain a target prediction result through the medium- and long-term load prediction model.
[0039] In a third aspect, an electronic device is provided, including:
[0040] at least one processor; and
[0041] a memory communicatively connected to the at least one processor; wherein,
[0042] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned medium- and long-term load forecasting method for the power market.
[0043] The present invention adopts the above technical solution and has at least the following beneficial effects:
[0044] A medium- and long-term load forecasting method, device and electronic equipment for an electric power market are provided, which obtain basic data of load conditions in an electric power market, as well as short-term change characteristics and long-term change characteristics corresponding to the basic data, predict the long-term change characteristics through a deep learning model to obtain a predicted value, filter the short-term change characteristics, long-term change characteristics and predicted values through a gating and residual network to obtain a feature vector, input the basic data and the feature vector into a time recurrent neural network to obtain a medium- and long-term load forecasting model, and predict the target prediction result through the medium- and long-term load forecasting model; divide the features for processing, which is more in line with the characteristics of different features, and can also better utilize the features to improve the accuracy of the model; automatically filter important features through gating and residual networks, because the effects of features on predictions at different time points are also different, adding a filtering structure can reduce manual participation, increase the degree of automation of the model, and be suitable for more application scenarios; use a time series model to better integrate the features in the time series, and process the long-term features separately, so that the overall learning effect of the model is better.
[0045] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0047] Figure 1is a flow chart of a medium- and long-term load forecasting method for a power market shown in an exemplary embodiment of the present invention;
[0048] Figure 2 is a schematic block diagram of a medium- and long-term load forecasting device for a power market shown in an exemplary embodiment of the present invention;
[0049] Figure 3 It is a schematic block diagram of an electronic device shown in an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] In power load forecasting, short-term load fluctuations are small, and the main influencing factors include temperature changes, changes in light radiation, whether there is precipitation, etc. Extending to medium- and long-term forecasts, power load fluctuations become larger, and there are more influencing factors, such as economic development, distributed photovoltaic installations, climate change, etc. Therefore, models suitable for medium- and long-term power load forecasting need to consider multiple factors, combine existing data, and analyze future developments in order to make more accurate forecasts.
[0052] The existing technology, "User load forecasting method and device under wholesale and retail price linkage" with patent number "202211278395.2", iteratively corrects the user load forecast value on the basis of traditional load forecasting to meet the iteration conditions, and can realize retail user load forecasting under wholesale and retail price linkage in the electricity retail market. However, this load forecast is based on maximizing user production benefits. The factors considered in load forecasting are not comprehensive enough, resulting in low accuracy of forecast results in medium and long-term forecasts.
[0053] The embodiments of the present application provide a medium- and long-term load forecasting method, device and electronic device for the power market, which divides and processes features to better meet the characteristics of different features and can better utilize features to improve model accuracy; automatically screen important features through gating and residual networks. Since the impact of features on prediction is different at different time points, adding a screening structure can reduce manual participation, increase the degree of automation of the model, and be suitable for more application scenarios; a time series model is used to better integrate the features in the time series, and long-term features are processed separately, so that the overall learning effect of the model is better.
[0054] The method in this application is described below through specific examples.
[0055] See also Figure 1 , Figure 1 is a flowchart of a medium- and long-term load forecasting method for a power market according to an exemplary embodiment of the present invention. Figure 1 , the method comprising:
[0056] Step S11, obtaining basic data of load conditions in the power market, as well as short-term change characteristics and long-term change characteristics corresponding to the basic data; the short-term change characteristics are climate characteristics that affect the load; the long-term change characteristics are economic development characteristics, installed capacity change characteristics, and related policy update characteristics that affect the load;
[0057] Step S12: predicting the long-term change characteristics through a deep learning model to obtain a predicted value;
[0058] Step S13, performing a screening operation on the short-term change features, the long-term change features and the predicted values through a gating and residual network to obtain a feature vector;
[0059] Step S14, inputting the basic data and the characteristic vector into the time recurrent neural network to obtain a medium- and long-term load forecasting model;
[0060] Step S15: forecasting is performed using a medium- and long-term load forecasting model to obtain a target forecasting result.
[0061] It should be noted that the medium- and long-term load forecasting method for the power market provided in this embodiment is applicable in specific practice to scenarios including, but not limited to: load forecasting in the power market.
[0062] It can be understood that the medium- and long-term load forecasting method for the power market provided in this embodiment divides the features for processing, which is more in line with the characteristics of different features, and can also better utilize the features to improve the accuracy of the model; important features are automatically screened through gating and residual networks. Since the impact of features on predictions at different time points is also different, adding a screening structure can reduce manual participation, increase the degree of automation of the model, and be suitable for more application scenarios; a time series model is used to better integrate the features in the time series, and long-term features are processed separately, so that the overall learning effect of the model is better.
[0063] In specific practice, it also includes:
[0064] The hyperparameters of the medium- and long-term prediction model are adjusted according to the target prediction results to further improve the prediction accuracy of the medium- and long-term prediction model.
[0065] It should be noted that each target prediction result is verified, that is, the predicted load is compared with the actual load, and the hyperparameters of the model are adjusted according to the comparison results.
[0066] It can be understood that the medium- and long-term load forecasting method for the power market provided in this embodiment can effectively improve the prediction accuracy of the medium- and long-term prediction model by adjusting the hyperparameters of the model multiple times.
[0067] In specific practice, the “climate characteristics” in step S11 include temperature, cloud cover, light radiation, precipitation, snowfall, humidity, wind speed and dust.
[0068] It should be noted that, depending on the specific business scenario, climate characteristics used for load forecasting can be added or deleted.
[0069] It can be understood that the medium- and long-term load forecasting method for the power market provided in this embodiment divides the features for processing, which is more in line with the characteristics of different features and can also better utilize the features to improve the accuracy of the model.
[0070] In specific practice, the deep learning model in step S12 "predicting the long-term change features through a deep learning model to obtain a predicted value" is a seq2seq model, and predicting the long-term change features through the deep learning model to obtain a predicted value includes: obtaining C through the encoder of the seq2seq model; and obtaining yt through the decoder of the seq2seq model.
[0071] Specifically, C is calculated based on the encoder, and the calculation formula is:
[0072] C=q(h 1 ,h 2 ,…,h N );
[0073] Among them, C is the intermediate output result; q is the activation function; h N represents the hidden state of the Nth hidden neuron.
[0074] Based on the decoder, y is calculated t , the calculation formula is:
[0075] y t =g({y 1 ,y 2 , …, y t}, C);
[0076] Among them, y t is the decoding result at time t; g(·) represents the nonlinear activation function; y 1 ,y 2 , …, y t represents the hidden state of the Nth hidden neuron; C is the output in the previous step.
[0077] It can be understood that the medium- and long-term load forecasting method for the power market provided in this embodiment uses a time series model to better integrate the features within the time series and process the long-term features separately, so that the overall learning effect of the model is better.
[0078] In specific practice, in step S13 "screening the short-term change features, long-term change features and predicted values through gating and residual network to obtain feature vectors", the calculation formula of the gating is:
[0079]
[0080] Among them, is to control the degree of nonlinear contribution; σ represents the nonlinear activation function; x is the feature or intermediate value of the input; W is the first weight; b is the first bias; V is the second weight; c is the second bias.
[0081] Residual Network, including:
[0082] The input is added to the output across some network layers to solve the gradient disappearance problem of the deep network through residual connection. The formula is as follows:
[0083] Y=LayerNorm(a+GLU((ELU(W′a+b′))));
[0084] Among them, LayerNorm is layer normalization; ELU represents the nonlinear activation function; a is the input; W′ is the third weight; b′ is the third bias.
[0085] It can be understood that the medium- and long-term load forecasting method for the power market provided in this embodiment automatically screens important features through gating and residual networks. Since the impact of features on predictions at different time points is also different, adding a screening structure can reduce manual participation, increase the degree of automation of the model, and be suitable for more application scenarios.
[0086] See also Figure 2 , Figure 2 is a schematic block diagram of a medium- and long-term load forecasting device for a power market according to an exemplary embodiment of the present invention, see Figure 2 , a medium- and long-term load forecasting device 100 for a power market, comprising:
[0087] The acquisition module 101 is used to acquire the basic data of the load situation in the power market, as well as the short-term change characteristics and long-term change characteristics corresponding to the basic data; the short-term change characteristics are the climate characteristics that affect the load; the long-term change characteristics are the economic development characteristics, installed capacity change characteristics and related policy update characteristics that affect the load;
[0088] A first prediction module 102, configured to predict the long-term change feature by using a deep learning model to obtain a prediction value;
[0089] A feature vector module 103 is used to perform a screening operation on the short-term change feature, the long-term change feature and the prediction value through a gating and residual network to obtain a feature vector;
[0090] A model building module 104 is used to input basic data and feature vectors into a time recurrent neural network to obtain a medium- and long-term load forecasting model;
[0091] The second prediction module 105 is used to perform prediction using a medium- and long-term load prediction model to obtain a target prediction result.
[0092] It should be noted that the medium- and long-term load forecasting device for the power market provided in this embodiment is applicable to scenarios including, but not limited to, medium- and long-term load forecasting in the power market in specific practice.
[0093] It can be understood that the medium- and long-term load forecasting device for the power market provided in this embodiment divides the features for processing, which is more in line with the characteristics of different features, and can also better utilize the features to improve the accuracy of the model; important features are automatically screened through gating and residual networks. Since the impact of features on predictions at different time points is also different, adding a screening structure can reduce manual participation, increase the degree of automation of the model, and be suitable for more application scenarios; a time series model is used to better integrate the features in the time series, and long-term features are processed separately, so that the overall learning effect of the model is better.
[0094] In a specific embodiment, a gas water heater is provided, which applies any of the above-mentioned medium- and long-term load forecasting methods for the power market.
[0095] See also Figure 3 , Figure 3 is a schematic block diagram of an electronic device according to an exemplary embodiment of the present invention, see Figure 3 , an electronic device 200, comprising:
[0096] at least one processor 202; and
[0097] A memory 201 is communicatively connected to at least one processor 202; wherein,
[0098] The memory 201 stores instructions that can be executed by at least one processor 202 , and the instructions are executed by at least one processor 202 so that the at least one processor 202 can execute the above-mentioned medium- and long-term load forecasting method for the power market.
[0099] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
[0100] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0101] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0102] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A medium- and long-term load forecasting method for the power market, characterized in that: The method comprises: Obtaining basic data on load conditions in the power market, as well as short-term and long-term change characteristics corresponding to the basic data; the short-term change characteristics are climate characteristics that affect the load; the long-term change characteristics are economic development characteristics, installed capacity change characteristics, and related policy update characteristics that affect the load; Performing prediction on the long-term variation characteristics through a deep learning model to obtain a predicted value; Performing a screening operation on the short-term change feature, the long-term change feature and the predicted value through a gating and residual network to obtain a feature vector; Inputting the basic data and the characteristic vector into a time recurrent neural network to obtain a medium- and long-term load forecasting model; The target prediction result is obtained by predicting using the medium- and long-term load forecasting model.
2. The method according to claim 1, characterized in that: Also includes: The hyperparameters of the medium- and long-term prediction model are adjusted according to the target prediction results to further improve the prediction accuracy of the medium- and long-term prediction model.
3. The method according to claim 1, characterized in that The climate characteristics include temperature, cloud cover, solar radiation, precipitation, snowfall, humidity, wind speed and dust.
4. The method according to claim 1, characterized in that: The deep learning model is a time series model, and the step of performing prediction on the long-term change feature by the deep learning model to obtain a predicted value includes: Obtain the intermediate output results through the encoder of the time series model; The decoding result at time point t is obtained through the decoder of the time series model.
5. The method according to claim 4, characterized in that The intermediate output result obtained by the encoder of the time series model includes: Based on the encoder, C is calculated using the formula: C=q(h1,h2,…,h N ); Among them, C is the intermediate output result; q is the activation function; h N represents the hidden state of the Nth hidden neuron.
6. The method according to claim 5, characterized in that The decoding result at time point t obtained by the decoder of the time series model includes: Based on the decoder, y is calculated t , the calculation formula is: yes t =g({y1,y2,…,y t }, C); Among them, y t is the decoding result at time point t; g(·) represents the nonlinear activation function; y1, y2, …, y t Represents the hidden states of the 1st to Nth hidden neurons; C is the intermediate output result calculated by the encoder.
7. The method according to claim 1, characterized in that The calculation formula of the gate is: Among them, GLU(x) controls the degree of nonlinear contribution; σ represents the nonlinear activation function; x is the input feature or intermediate value; W is the first weight; b is the first bias; V is the second weight; c is the second bias.
8. The method according to claim 1, characterized in that The residual network comprises: The input is added to the output across some network layers to solve the gradient disappearance problem of the deep network through residual connection. The formula is as follows: Y=LayerNorm(a+GLU((ELU(W′a+b′)))); Among them, LayerNorm is layer normalization; ELU represents the nonlinear activation function; a is the input; W′ is the third weight; b′ is the third bias.
9. A medium- and long-term load forecasting device for the power market, characterized in that: The device comprises: An acquisition module is used to acquire basic data of load conditions in the power market, as well as short-term change characteristics and long-term change characteristics corresponding to the basic data; the short-term change characteristics are climate characteristics that affect the load; the long-term change characteristics are economic development characteristics, installed capacity change characteristics, and related policy update characteristics that affect the load; A first prediction module, configured to predict the long-term change feature by using a deep learning model to obtain a predicted value; A feature vector module, used for performing a screening operation on the short-term change feature, the long-term change feature and the predicted value through a gating and residual network to obtain a feature vector; A model building module, used for inputting the basic data and the characteristic vector into a time recurrent neural network to obtain a medium- and long-term load forecasting model; The second prediction module is used to predict and obtain a target prediction result through the medium- and long-term load prediction model.
10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
Citation Information
Cited By
Medium-and-long-term electricity price prediction method and device suitable for electricity market and computer equipment
CN120069922A
Method, device and computer equipment for medium and long term electricity price forecasting suitable for electricity market
CN120069922B
