Electric power spot price difference prediction method and device, storage medium and program product

Through the electricity price spread prediction method based on the linear regression model, historical data sets and weather data are used to construct an electricity spot price difference prediction model, which solves the problem of low accuracy of electricity spot price difference prediction in the existing technology and achieves a more accurate electricity market forecast. and improved operating income.

CN118710315APending Publication Date: 2024-09-27BEIJING LANMUDA TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410880052.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The electricity spot price difference prediction method in the existing technology is not very accurate and cannot accurately predict the day-ahead real-time price difference in the electricity market, which affects the income and strategy formulation of market participants.

Method used

The electricity price difference prediction method based on the linear regression model is used to obtain historical data sets within the preset time period, including day-ahead clearing electricity prices, real-time clearing electricity prices, new energy output forecasts, day-ahead tie line plans, and unified power load forecasts. and weather data, construct a training set and use the elastic net algorithm for model training, and obtain the target electricity price spread prediction model to predict the spot price spread.

Benefits of technology

It improves the prediction accuracy of electricity spot price difference, provides a more accurate grasp of market rules and the possibility of increasing power plant operating income.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710315A
    Figure CN118710315A
Patent Text Reader

Abstract

The invention relates to an electric power spot price difference prediction method and device, a storage medium and a program product, and belongs to the technical field of electric power spot price difference prediction. The method comprises the following steps: obtaining a training set according to a day-ahead clearing electricity price, a real-time clearing electricity price, new energy output prediction, a day-ahead tie line plan, tracking electrical load prediction and weather data corresponding to a day before each day in a day-ahead preset time period, training an electricity price difference prediction model constructed based on a linear regression model by using the training set to obtain a target electricity price difference prediction model, and predicting the spot price difference through the target electricity price difference prediction model to obtain a prediction result; wherein various characteristic quantities with practical significance are used as a training set, the electricity price difference prediction model based on the linear regression model is trained to obtain the target electricity price difference prediction model, and accurate and effective spot price difference prediction can be made through the target electricity price difference prediction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electricity spot price difference prediction, and in particular to a method, device, storage medium and program product for predicting electricity spot price difference. Background Art

[0002] In the electricity trading market, the day-ahead declaration submitted by the power sales company or the new energy power plant determines the profit and loss of the spot transaction. In the day-ahead declaration scenario, the "price difference" directly affects the profit of the declaration strategy. The price difference is equal to the day-ahead electricity price minus the real-time electricity price. Due to the great volatility and uncertainty of renewable energy power generation and electricity load, the price difference fluctuates greatly, which brings great challenges to market participants. Accurately predicting the day-ahead real-time price difference is of great value and significance for grasping market rules, formulating power trading strategies, and improving power plant operating income.

[0003] In the prior art, the power industry has proposed a method for predicting power price differences, which is generally based on the power price difference prediction method of the K nearest neighbor model. The model of this method is relatively simple and the prediction accuracy is not high. Therefore, there is an urgent need for a prediction method that can accurately predict the power spot price difference by combining multiple factors. Summary of the invention

[0004] To this end, the present invention provides a method, device, storage medium and program product for predicting the spot price difference of electricity to solve the problem that the spot price difference cannot be accurately predicted in the prior art.

[0005] In a first aspect, a method for predicting a spot price difference of electricity is provided, the method comprising:

[0006] Obtain a historical data set within a preset time period a day before; the historical data set includes the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast, and weather data corresponding to the previous day of each day within the preset time period;

[0007] The historical data set is preprocessed to obtain a training set; the characteristic quantities of the training set are the daily new energy output forecast, the day-ahead interconnection line plan, the unified power load forecast, the day-ahead bidding space and the weather data corresponding to the previous day within the preset time period; the target quantity of the training set is the daily day-ahead real-time price difference;

[0008] The electricity price difference prediction model is trained according to the training set to obtain a target electricity price difference prediction model; the electricity price difference prediction model is a prediction model constructed based on a linear regression model;

[0009] The spot price difference is predicted by the target electricity price difference to obtain a prediction result.

[0010] Furthermore, the linear regression model is an elastic net algorithm model; before the electricity price difference prediction model is trained according to the training set to obtain the target electricity price difference prediction model, it also includes: constructing an electricity price difference prediction model based on the elastic net algorithm model.

[0011] Furthermore, the electricity price difference prediction model is a regularized linear regression model, and the expression formula is:

[0012]

[0013] in, is the model prediction value of the i-th sample, β0 and β j is the model parameter, p is the number of independent variables, x ij Take the value of the j-th independent variable for the ith sample.

[0014] Furthermore, the objective function of the electricity price difference prediction model is expressed as:

[0015]

[0016] Among them, L is the target value, N is the number of samples, and y i is the true value of the i-th sample, is the model prediction value of the i-th sample, λ1 and λ2 are the coefficients of L1 and L2 regularization respectively, β j is the model parameter, and p is the number of independent variables.

[0017] Furthermore, the method further comprises:

[0018] The electricity price difference prediction model is trained based on Python’s scikit-learn library, and the regularization coefficients λ1 and λ2 are controlled by the hyperparameters alpha and l1_ratio.

[0019] Furthermore, the calculation formula of the day-ahead bidding space is:

[0020] P 日前竞价空间 =P 统调用电负荷预测 -P 日前联络线计划 -P 新能源出力预测 ;

[0021] Among them, P 日前竞价空间 is the day-ahead bidding space, P 统调用电负荷预测 To coordinate the power load forecast, P 日前联络线计划 is the day-ahead contact line plan, P 新能源出力预测 Forecasting of new energy output.

[0022] Furthermore, the calculation formula of the day-ahead real-time price difference is:

[0023] P 日前实时价差 =P 日前出清价格 -P 实时出清价格 ;

[0024] Among them, P 日前实时价差 is the day-ahead real-time price difference, P 日前出清价格 is the day-ahead clearing price, P 实时出清价格 Real-time clearing price.

[0025] In a second aspect, a device for predicting spot price difference of electricity is provided, the device comprising:

[0026] An acquisition module is used to acquire a historical data set within a preset time period a day before; the historical data set includes the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast, and weather data corresponding to the previous day of each day within the preset time period;

[0027] A preprocessing module is used to perform data preprocessing on the historical data set to obtain a training set; the characteristic quantities of the training set are the daily new energy output forecast, the day-ahead interconnection line plan, the unified power load forecast, the day-ahead bidding space and the weather data corresponding to the previous day within the preset time period; the target quantity of the training set is the daily day-ahead real-time price difference;

[0028] A training module, used for training the electricity price difference prediction model according to the training set to obtain a target electricity price difference prediction model; the electricity price difference prediction model is a prediction model constructed based on a linear regression model;

[0029] The prediction module is used to predict the spot price difference by using the target electricity price difference to obtain a prediction result.

[0030] In a third aspect, a computer-readable storage medium is provided, on which a computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the steps of any of the above-mentioned methods for predicting the spot price difference of electricity are implemented.

[0031] In a fourth aspect, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-mentioned methods for predicting electricity spot price differences.

[0032] The present invention adopts the above technical solution and has at least the following beneficial effects:

[0033] Provided are a method, device, storage medium and program product for predicting spot price difference of electricity. A training set is obtained based on the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast and weather data of the previous day within a preset time period. The training set is used to train an electricity price difference prediction model based on a linear regression model to obtain a target electricity price difference prediction model. The spot price difference is predicted by the target electricity price difference prediction model to obtain a prediction result. Among them, a plurality of feature quantities with practical significance are used as training sets, and the electricity price difference prediction model based on the linear regression model is trained to obtain the target electricity price difference prediction model. The target electricity price difference prediction model can make accurate and effective spot price difference predictions.

[0034] 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

[0035] 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.

[0036] Figure 1 is a flow chart of a method for predicting spot price difference of electricity shown in an exemplary embodiment of the present invention;

[0037] Figure 2 It is a schematic block diagram of a device for predicting spot price difference of electricity shown in an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0038] 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.

[0039] In the electricity trading market, the day-ahead declaration submitted by the power sales company or the new energy power plant determines the profit and loss of the spot transaction. In the day-ahead declaration scenario, the "price difference" (price difference = day-ahead electricity price - real-time electricity price) directly affects the profit of the declaration strategy. Due to the great volatility and uncertainty of new energy power generation and electricity load, the price difference fluctuates greatly, which brings great challenges to market participants. Therefore, accurately predicting the day-ahead real-time price difference is of great value and significance for grasping market rules, formulating power trading strategies, and improving power plant operating income.

[0040] In the prior art, the power industry has proposed few methods for predicting power price differences, and there is only one method for predicting power price differences based on the K nearest neighbor model. The model of this method is relatively simple and the prediction accuracy is not high.

[0041] The embodiments of the present application provide a method, device, storage medium and program product for predicting electricity spot price differences. A plurality of feature quantities with practical significance are used as training sets, and an electricity price difference prediction model based on a linear regression model is trained to obtain a target electricity price difference prediction model. The target electricity price difference prediction model can be used to make accurate and effective spot price difference predictions.

[0042] The method in this application is described below through specific examples.

[0043] See also Figure 1 , Figure 1 is a flowchart of a method for predicting spot price difference of electricity shown in an exemplary embodiment of the present invention, see Figure 1 , the method comprising:

[0044] Step S11, obtaining a historical data set within a preset time period a day before; the historical data set includes the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast, and weather data corresponding to the previous day of each day within the preset time period;

[0045] Step S12, preprocessing the historical data set to obtain a training set; the feature quantities of the training set are the daily new energy output forecast, the day-ahead interconnection line plan, the unified power load forecast, the day-ahead bidding space and the weather data corresponding to the previous day within a preset time period; the target quantity of the training set is the daily day-ahead real-time price difference;

[0046] Step S13: training the electricity price difference prediction model according to the training set to obtain a target electricity price difference prediction model; the electricity price difference prediction model is a prediction model constructed based on a linear regression model;

[0047] Step S14: predicting the spot price difference by using the target electricity price difference to obtain a prediction result.

[0048] It should be noted that the method for predicting the electricity spot price difference provided in this embodiment is applicable in specific practice to scenarios including, but not limited to: prediction of spot price difference in the electricity market and other scenarios that require prediction of spot price difference.

[0049] Specifically, the preset time period is set according to specific prediction requirements. For example, if the prediction requirement is to use historical data from the past month, the preset time period is the past month. The historical data set within the preset time period is the day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast and weather data from the previous day for each day in the past month.

[0050] It can be understood that the method for predicting the spot price difference of electricity provided in the present embodiment obtains a training set based on the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast and weather data of the previous day within a preset time period the day before, and uses the training set to train an electricity price difference prediction model constructed based on a linear regression model to obtain a target electricity price difference prediction model, and predicts the spot price difference through the target electricity price difference prediction model to obtain a prediction result; wherein, a variety of feature quantities with practical significance are used as training sets, and the electricity price difference prediction model based on the linear regression model is trained to obtain the target electricity price difference prediction model, and the target electricity price difference prediction model can make accurate and effective spot price difference predictions.

[0051] In specific practice, the historical data set in step S11 "obtaining the historical data set within the preset time period the day before" includes the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast and weather data of the previous day within the preset time period.

[0052] It should be noted that weather data may include temperature, wind speed, light, and humidity; weather factors may also be increased or decreased according to specific forecast scenarios.

[0053] Specifically, the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan and unified electricity load forecast all have 96 time-point data; the daily weather data has 24 time-point data.

[0054] It can be understood that the method for predicting the spot price difference of electricity provided in this embodiment combines weather data characteristics with an algorithm model, and can better predict the price difference of electricity.

[0055] In specific practice, the step S12 of "preprocessing the historical data set to obtain a training set" includes: performing mean processing on the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan and unified electricity load forecast, so that the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan and unified electricity load forecast each have 24 time point data; the mean processing is to set 4 adjacent time point data among 96 time point data as a group to obtain 24 groups of time point data; taking the average value of each group of 4 time point data as the time point data of the group to obtain 24 time point data.

[0056] It should be noted that the characteristic quantities of the training set are the daily new energy output forecast, the day-ahead interconnection line plan, the unified power load forecast, the day-ahead bidding space and the weather data of the previous day within the preset time period; the target quantity of the training set is the daily day-ahead real-time price difference.

[0057] Specifically, the calculation formula for the day-ahead bidding space is:

[0058] P 日前竞价空间 =P 统调用电负荷预测 -P 日前联络线计划 -P 新能源出力预测 ;

[0059] Among them, P 日前竞价空间 is the day-ahead bidding space, P 统调用电负荷预测 To coordinate the power load forecast, P 日前联络线计划 is the day-ahead contact line plan, P 新能源出力预测 Forecasting of new energy output.

[0060] Specifically, the calculation formula for the day-ahead real-time price difference is:

[0061] P 日前实时价差 =P 日前出清价格 -P 实时出清价格 ;

[0062] Among them, P 日前实时价差 is the day-ahead real-time price difference, P 日前出清价格 is the day-ahead clearing price, P 实时出清价格 Real-time clearing price.

[0063] In specific practice, the electricity price difference prediction model in step S13 "training the electricity price difference prediction model according to the training set to obtain the target electricity price difference prediction model" is a prediction model constructed based on the linear regression model.

[0064] It should be noted that the linear regression model is an elastic net algorithm model. Before the electricity price difference prediction model is trained according to the training set to obtain the target electricity price difference prediction model, the electricity price difference prediction model is constructed based on the elastic net algorithm model.

[0065] Specifically, the electricity price difference prediction model is a regularized linear regression model, and the expression formula is:

[0066]

[0067] in, is the model prediction value of the i-th sample, β0 and β j is the model parameter, p is the number of independent variables, x ij Take the value of the j-th independent variable for the ith sample.

[0068] Specifically, the objective function of the electricity price difference prediction model is expressed as:

[0069]

[0070] Among them, L is the target value, N is the number of samples, and y i is the true value of the i-th sample, is the model prediction value of the i-th sample, λ1 and λ2 are the coefficients of L1 and L2 regularization respectively, β j is the model parameter, and p is the number of independent variables. The electricity price difference prediction model is trained based on Python’s scikit-learn library, and the regularization coefficients λ1 and λ2 are controlled by the hyperparameters alpha and l1_ratio.

[0071] In a specific embodiment, a data set from 2022-01-01 to 2023-12-31 of a provincial trading center is used, including daily day-ahead clearing electricity prices, real-time clearing electricity prices, new energy output forecasts, day-ahead interconnection line plans, unified electricity load forecasts, and weather data corresponding to the previous day such as temperature, wind speed, light, and humidity. The weather forecast data is sampled every hour, for a total of 24 hours of data per day, and other data is sampled every 15 minutes, for a total of 96 time points per day. Calculate the daily day-ahead bidding space and include it in the data set. Day-ahead bidding space = unified electricity load forecast - day-ahead tie line plan - new energy output forecast. Calculate the daily day-ahead real-time price difference and include it in the data set. Day-ahead real-time price difference = day-ahead clearing price - real-time clearing price. Use 2022-01-01 to 2022-12-31 as the training set, 2023-01-01 to 2023-06-30 as the validation set, and 2023-07-01 to 2023-12-31 as the test set, and make predictions. The regularization hyperparameters of elastic net are alpha = 0.1, l1_ratio = 0.5, and the mean absolute error (MSE) is used as the objective function. The coordinate descent algorithm is used to optimize the model, and the maximum number of iterations is max_iter = 1000. During the test, MAE (mean absolute error) and direction accuracy are used as measurement indicators.

[0072] The prediction results obtained by inputting the data set into this method and the K nearest neighbor model are compared, and the prediction results are shown in Table 1 below.

[0073] Table 1 Prediction results of this method and K nearest neighbor model

[0074] MAE Direction accuracy K nearest neighbors 57.54 56.4% The present invention 47.26 61.7%

[0075] It can be seen from the table that the prediction method for electricity spot price difference proposed in the present invention performs significantly better than the prediction method corresponding to the K nearest neighbor model in terms of MAE and directional accuracy indicators.

[0076] See also Figure 2 , Figure 2 is a schematic block diagram of a device for predicting spot price difference of electricity according to an exemplary embodiment of the present invention, see Figure 2 , a device 100 for predicting spot price difference of electricity, comprising:

[0077] The acquisition module 101 is used to acquire a historical data set within a preset time period a day before; the historical data set includes the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast, and weather data corresponding to the previous day of each day within the preset time period;

[0078] The preprocessing module 102 is used to perform data preprocessing on the historical data set to obtain a training set; the characteristic quantities of the training set are the daily new energy output forecast, the day-ahead interconnection line plan, the unified power load forecast, the day-ahead bidding space and the weather data corresponding to the previous day within a preset time period; the target quantity of the training set is the daily day-ahead real-time price difference;

[0079] The training module 103 is used to train the electricity price difference prediction model according to the training set to obtain a target electricity price difference prediction model; the electricity price difference prediction model is a prediction model constructed based on a linear regression model;

[0080] The prediction module 104 is used to predict the spot price difference by using the target electricity price difference to obtain a prediction result.

[0081] It should be noted that the device for predicting the spot price difference of electricity provided in this embodiment is applicable in specific practice to scenarios including, but not limited to: prediction of the spot price difference in the electricity market and other scenarios requiring prediction of the spot price difference.

[0082] Specifically, the preset time period is set according to specific prediction requirements. For example, if the prediction requirement is to use historical data from the past month, the preset time period is the past month. The historical data set within the preset time period is the day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast and weather data from the previous day for each day in the past month.

[0083] It should be noted that weather data may include temperature, wind speed, light, and humidity; weather factors may also be increased or decreased according to specific forecast scenarios.

[0084] It can be understood that the prediction device for the electricity spot price difference provided in the present embodiment obtains a training set based on the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast and weather data of the previous day within a preset time period the day before, and uses the training set to train an electricity price difference prediction model constructed based on a linear regression model to obtain a target electricity price difference prediction model, and predicts the spot price difference through the target electricity price difference prediction model to obtain a prediction result; wherein, a variety of feature quantities with practical significance are used as training sets, and the electricity price difference prediction model based on the linear regression model is trained to obtain the target electricity price difference prediction model, and the target electricity price difference prediction model can make accurate and effective spot price difference predictions.

[0085] In a specific embodiment, a computer-readable storage medium is provided, on which a computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the steps of any of the above-mentioned methods for predicting the spot price difference of electricity are implemented.

[0086] In a specific embodiment, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of any of the above-mentioned methods for predicting electricity spot price differences.

[0087] 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.

[0088] 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).

[0089] The technical features of the above embodiments may be arbitrarily combined. 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.

[0090] 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 method for predicting spot price difference of electricity, characterized in that: The method comprises: Obtain a historical data set within a preset time period a day before; the historical data set includes the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast, and weather data corresponding to the previous day of each day within the preset time period; The historical data set is preprocessed to obtain a training set; the characteristic quantities of the training set are the daily new energy output forecast, the day-ahead interconnection line plan, the unified power load forecast, the day-ahead bidding space and the weather data corresponding to the previous day within the preset time period; the target quantity of the training set is the daily day-ahead real-time price difference; The electricity price difference prediction model is trained according to the training set to obtain a target electricity price difference prediction model; the electricity price difference prediction model is a prediction model constructed based on a linear regression model; The spot price difference is predicted by the target electricity price difference to obtain a prediction result.

2. The method according to claim 1, characterized in that The linear regression model is an elastic net algorithm model; before the electricity price difference prediction model is trained according to the training set to obtain the target electricity price difference prediction model, it also includes: An electricity price difference prediction model is constructed based on the elastic net algorithm model.

3. The method according to claim 2, characterized in that The electricity price difference prediction model is a regularized linear regression model, and the expression formula is: in, is the model prediction value of the i-th sample, β0 and β j is the model parameter, p is the number of independent variables, x ij Take the value of the j-th independent variable for the ith sample.

4. The method according to claim 2, characterized in that: The objective function of the electricity price difference prediction model is expressed as follows: Among them, L is the target value, N is the number of samples, and y i is the true value of the i-th sample, is the model prediction value of the i-th sample, λ1 and λ2 are the coefficients of L1 and L2 regularization respectively, β j is the model parameter, and p is the number of independent variables.

5. The method according to claim 4, characterized in that The method further comprises: The electricity price difference prediction model is trained based on Python’s scikit-learn library, and the regularization coefficients λ1 and λ2 are controlled by the hyperparameters alpha and l1_ratio.

6. The method according to claim 1, characterized in that The calculation formula of the day-ahead bidding space is: P 日前竞价空间 =P 统调用电负荷预测 -P 日前联络线计划 -P 新能源出力预测 ; Among them, P 日前竞价空间 is the day-ahead bidding space, P 统调用电负荷预测 To coordinate the power load forecast, P 日前联络线计划 is the day-ahead contact line plan, P 新能源出力预测 Forecasting of new energy output.

7. The method according to claim 1, characterized in that The calculation formula for the day-ahead real-time price difference is: P 日前实时价差 =P 日前出清价格 -P 实时出清价格 ; Among them, P 日前实时价差 is the day-ahead real-time price difference, P 日前出清价格 is the day-ahead clearing price, P 实时出清价格 Real-time clearing price.

8. A device for predicting spot price difference of electricity, characterized in that: The device comprises: An acquisition module is used to acquire a historical data set within a preset time period a day before; the historical data set includes the daily day-ahead clearing electricity price, real-time clearing electricity price, new energy output forecast, day-ahead interconnection line plan, unified electricity load forecast, and weather data corresponding to the previous day of each day within the preset time period; A preprocessing module is used to perform data preprocessing on the historical data set to obtain a training set; the characteristic quantities of the training set are the daily new energy output forecast, the day-ahead interconnection line plan, the unified power load forecast, the day-ahead bidding space and the weather data corresponding to the previous day within the preset time period; the target quantity of the training set is the daily day-ahead real-time price difference; A training module, used for training the electricity price difference prediction model according to the training set to obtain a target electricity price difference prediction model; the electricity price difference prediction model is a prediction model constructed based on a linear regression model; The prediction module is used to predict the spot price difference by using the target electricity price difference to obtain a prediction result.

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

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Method for constructing, training and applying price difference direction prediction model

    CN119417499A

  • A method for constructing, training, and applying a price spread direction prediction model

    CN119417499B

  • Power transaction risk monitoring method and system based on multi-source signal mechanism and sparse hybrid expert model

    CN122089090A