Contract electric quantity determination method and device, storage medium and electronic equipment

By comprehensively analyzing the characteristics and real-time changes of long-term and short-term power loads, and combining multi-timescale fusion algorithms, the problem of inaccurate contract power forecasting has been solved, achieving higher forecast accuracy.

CN121906393APending Publication Date: 2026-04-21ZHONGTIAN PHOTOVOLTAIC TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511821397.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-04
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Existing technologies neglect the synergistic effect of forecast results at different time scales when determining contracted electricity volume, resulting in limited forecast accuracy and poor model adaptability, leading to inaccurate contracted electricity volume.

Method used

By analyzing the characteristics of electricity load at multiple time scales, including long-term, short-term, and instantaneous changes, and combining a multi-time scale fusion algorithm, the contracted electricity volume is comprehensively determined.

Benefits of technology

This improved the accuracy of contracted electricity volume, comprehensively captured the dynamic characteristics of electricity demand, and reduced forecasting errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121906393A_ABST
    Figure CN121906393A_ABST
Patent Text Reader

Abstract

The invention discloses a contract electric quantity determination method and device, a storage medium and electronic equipment, and relates to the field of power, and the method comprises the steps: determining a first electric quantity prediction value according to first power load description information matched with a first historical period; determining a second electric quantity predicted value according to second power load description information matched with a second historical period; according to third power load description information matched with a third historical period, a third electric quantity predicted value is determined, and a first time interval between the first historical moment and the current moment is larger than a second time interval between the second historical moment and the current moment; the second time interval is greater than a third time interval between the third historical moment and the current moment; and determining contract electric quantity according to the first electric quantity predicted value, the second electric quantity predicted value, the third electric quantity predicted value and the real-time electric quantity load value matched with the current moment. By adopting the technical scheme, the technical problem that the contract electric quantity is not accurately determined in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electricity, and more specifically, to a method and apparatus for determining contracted electricity volume, a storage medium, and electronic equipment. Background Technology

[0002] In the electricity market, electricity retailers need to participate in both medium- and long-term contract markets and spot market transactions to ensure a match between electricity supply and user demand. Medium- and long-term contract markets typically involve electricity transactions over annual, monthly, or longer timeframes, while the spot market focuses on daily and shorter-term electricity supply and demand. The profitability and reliability of electricity supply for retailers largely depend on the accurate determination of their contracted electricity volumes, which requires accurate forecasting of future electricity loads.

[0003] Currently, existing technologies typically focus only on load forecasting at a single time scale (such as annual forecasting or daily forecasting only), neglecting the synergistic effect of forecasting results at different time scales on the determination of contracted electricity volume. Therefore, existing technologies suffer from inaccurate determination of contracted electricity volume when used to determine the electricity volume for which power retailers participate in medium- and long-term contracts and spot market transactions. This is due to limitations in single-time-scale forecasting, insufficient consideration of external factors, limited forecasting accuracy, and poor model adaptability.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This application provides a method, apparatus, storage medium, and electronic device for determining contracted electricity volume, in order to at least solve the technical problem of inaccurate determination of contracted electricity volume in related technologies.

[0006] According to one embodiment of this application, a method for determining contracted electricity volume is provided, comprising: determining a first electricity volume prediction value based on first power load description information matched with a first historical period, wherein the first power load description information is used to indicate power load characteristics before a first historical time; determining a second electricity volume prediction value based on second power load description information matched with a second historical period, wherein the second power load description information is used to indicate power load characteristics before a second historical time; determining a third electricity volume prediction value based on third power load description information matched with a third historical period, wherein the third power load description information is used to indicate power load characteristics before a third historical time, a first time interval between the first historical time and the current time is greater than a second time interval between the second historical time and the current time, and the second time interval is greater than a third time interval between the third historical time and the current time; and determining the contracted electricity volume based on the first electricity volume prediction value, the second electricity volume prediction value, the third electricity volume prediction value, and a real-time power load value matched with the current time.

[0007] According to another aspect of the present invention, an apparatus for determining contracted electricity volume is also provided, comprising: a first determining unit for determining a first predicted electricity volume based on first power load description information matched with a first historical period, wherein the first power load description information is used to indicate power load characteristics before a first historical time; a second determining unit for determining a second predicted electricity volume based on second power load description information matched with a second historical period, wherein the second power load description information is used to indicate power load characteristics before a second historical time; a third determining unit for determining a third predicted electricity volume based on third power load description information matched with a third historical period, wherein the third power load description information is used to indicate power load characteristics before a third historical time, a first time interval between the first historical time and the current time is greater than a second time interval between the second historical time and the current time, and the second time interval is greater than a third time interval between the third historical time and the current time; and a fourth determining unit for determining the contracted electricity volume based on the first predicted electricity volume, the second predicted electricity volume, the third predicted electricity volume, and a real-time power load value matched with the current time.

[0008] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described method for determining the contracted electricity quantity when it is run.

[0009] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the contracted electricity quantity through the computer program.

[0010] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the above-described method for determining the contracted electricity quantity.

[0011] In this embodiment, a first power load forecast value is determined based on the first power load description information matched with the first historical period. By analyzing the power load characteristics of long-term historical data, seasonal and periodic power demand patterns can be captured, such as the impact of weekdays versus weekends and seasonal changes on power demand. A second power load forecast value is determined based on the second power load description information matched with the second historical period, which can more accurately reflect the impact of recent weather and events on power demand. A third power load forecast value is determined based on the third power load description information matched with the third historical period, which can capture changes in real-time user behavior, including the impact of market signals and sudden events on power demand. This achieves the determination of contract power volume based on the first, second, and third power load forecast values ​​and the real-time power load value matched with the current moment, comprehensively capturing the dynamic characteristics of power demand from long-term trends to real-time changes, improving the accuracy of determining contract power volume, and solving the technical problem of inaccurate determination of contract power volume in related technologies. Attached Figure Description

[0012] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1 This is a schematic diagram of the hardware environment for an optional method for determining the contracted electricity volume according to an embodiment of this application.

[0015] Figure 2 This is a flowchart of an optional method for determining the contracted electricity volume according to an optional embodiment of this application;

[0016] Figure 3 A flowchart illustrating another optional method for determining the contracted electricity volume according to an optional embodiment of this application;

[0017] Figure 4 This is a schematic diagram of an optional device for determining the contracted electricity volume according to an embodiment of the present invention;

[0018] Figure 5 This is a schematic diagram of the components of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0021] The collection, storage, use, processing, transmission, provision, and disclosure of data or user data and other information involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0022] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0023] According to one aspect of the embodiments of this application, a method for determining contracted electricity volume is provided. Optionally, as an optional implementation, the above-described method for determining contracted electricity volume may be applied, but is not limited to, to applications such as... Figure 1 The system shown is for determining the contracted electricity volume, consisting of terminal device 102, server 104, and network 110. For example... Figure 1As shown, terminal device 102 communicates with server 104 via network 110. This network can include, but is not limited to, wired networks and wireless networks. The wired network includes local area networks (LANs), metropolitan area networks (MANs), and wide area networks (WANs). The wireless network includes Bluetooth, Wi-Fi, and other networks enabling wireless communication. The terminal device can include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablets, handheld computers, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, in-vehicle devices, etc. Terminal device 102 can include, but is not limited to, a display, processor, and memory. Server 104 can be a single server, a server cluster consisting of multiple servers, or a cloud server. The server includes a database and a processing engine.

[0024] The specific process can be as follows: Step S102, determine the first power prediction value according to the first power load description information matched with the first historical period, wherein the first power load description information is used to indicate the power load characteristics before the first historical time.

[0025] Step S104: Determine the second power load prediction value based on the second power load description information matching the second historical period, wherein the second power load description information is used to indicate the power load characteristics before the second historical time.

[0026] Step S106: Determine the third power load prediction value based on the third power load description information matched with the third historical period. The third power load description information is used to indicate the power load characteristics before the third historical time. The first time interval between the first historical time and the current time is greater than the second time interval between the second historical time and the current time. The second time interval is greater than the third time interval between the third historical time and the current time.

[0027] Step S108: Determine the contracted electricity volume based on the first electricity volume prediction value, the second electricity volume prediction value, the third electricity volume prediction value, and the real-time electricity load value matching the current time.

[0028] remove Figure 1 In addition to the examples shown, the above steps can be completed independently by the client or the server, or jointly by the client and the server. The terminal device 102 includes, but is not limited to, handheld devices (such as mobile phones), laptops, desktop computers, in-vehicle devices, etc. This application does not limit the specific implementation of the terminal device 102.

[0029] This embodiment provides a method for determining the contracted electricity volume, which is applied to the aforementioned computer terminal. Figure 2This is a flowchart of a method for determining the contracted electricity volume according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0030] Step S202: Determine the first power load prediction value based on the first power load description information matching the first historical period, wherein the first power load description information is used to indicate the power load characteristics before the first historical time.

[0031] Step S204: Determine the second power load prediction value based on the second power load description information matching the second historical period, wherein the second power load description information is used to indicate the power load characteristics before the second historical time.

[0032] Step S206: Determine the third power load prediction value based on the third power load description information matched with the third historical period. The third power load description information is used to indicate the power load characteristics before the third historical time. The first time interval between the first historical time and the current time is greater than the second time interval between the second historical time and the current time. The second time interval is greater than the third time interval between the third historical time and the current time.

[0033] Step S208: Determine the contracted electricity volume based on the first electricity volume prediction value, the second electricity volume prediction value, the third electricity volume prediction value, and the real-time electricity load value matching the current time.

[0034] In step S202 above, a first power load forecast value is determined based on the first power load description information matching the first historical period. The first power load description information is used to indicate the power load characteristics before the first historical time. Optionally, the first historical period refers to a relatively distant historical period relative to the current time, such as the same date and time period a month ago. The first power load description information represents the characteristic description of the power load within the first historical period, which may include the average load, maximum load, minimum load, load change trend, etc. every 15 minutes within the period. The first power load forecast value is a preliminary forecast value of the power demand for a certain period in the future (such as the same period the next day) based on the first power load description information.

[0035] In step S204 above, a second power load forecast value is determined based on the second power load description information matched with the second historical period. The second power load description information is used to indicate the power load characteristics before the second historical time. Optionally, the second historical period refers to a more recent historical period relative to the current time, such as the same period one day ago. The second power load description information describes the power load characteristics within the second historical period, such as the average load and fluctuation range of the same period one day ago. The second power load forecast value is a prediction of the power demand for a certain period in the future based on the second power load description information.

[0036] In step S206 above, a third power load forecast value is determined based on the third power load description information matched with the third historical period. The third power load description information is used to indicate the power load characteristics before the third historical time. The first time interval between the first historical time and the current time is greater than the second time interval between the second historical time and the current time, and the second time interval is greater than the third time interval between the third historical time and the current time. Optionally, the third historical period is the most recent historical period relative to the current time, such as the previous 3-4 hours. The third power load description information reflects the power load characteristics of the previous 3-4 hours, such as the average load and peak-valley difference. The third power load forecast value is a forecast value of power demand for a certain period in the future based on the most recent load data.

[0037] In step S208 above, the contracted electricity volume is determined based on the first predicted electricity volume, the second predicted electricity volume, the third predicted electricity volume, and the real-time electricity load value that matches the current time. For example, by comprehensively analyzing the first, second, and third predicted electricity volumes and the real-time electricity load value, and based on their weights and correlations, a multi-time-scale fusion algorithm is used, including weighted average, time series decomposition, machine learning ensemble techniques, etc., to synthesize multiple predicted values ​​and obtain the final contracted electricity volume value.

[0038] In this embodiment, a first power load forecast value is determined based on the first power load description information matched with the first historical period. By analyzing the power load characteristics of long-term historical data, seasonal and periodic power demand patterns can be captured, such as the impact of weekdays versus weekends and seasonal changes on power demand. A second power load forecast value is determined based on the second power load description information matched with the second historical period, which can more accurately reflect the impact of recent weather and events on power demand. A third power load forecast value is determined based on the third power load description information matched with the third historical period, which can capture changes in real-time user behavior, including the impact of market signals and sudden events on power demand. This achieves the determination of contract power volume based on the first, second, and third power load forecast values ​​and the real-time power load value matched with the current moment, comprehensively capturing the dynamic characteristics of power demand from long-term trends to real-time changes, improving the accuracy of determining contract power volume, and solving the technical problem of inaccurate determination of contract power volume in related technologies.

[0039] As an optional approach, the contracted electricity volume is determined based on a first electricity volume forecast, a second electricity volume forecast, a third electricity volume forecast, and a real-time electricity load value matching the current moment, including:

[0040] S1, the first power increment is obtained based on the difference between the second power prediction value and the first power prediction value;

[0041] S2. Sum the first power increment and the first power prediction value to obtain the first summation result;

[0042] S3. Calculate the difference between the third power prediction value and the first summation result to obtain the second power increment;

[0043] S4. Sum the second power increment, the first power increment, and the first power prediction value to obtain the second summation result;

[0044] S5. Calculate the difference between the real-time power load value and the second summation result to obtain the contract power.

[0045] The above process will be described below in a complete implementation manner:

[0046] Predict the load curve for the next month one month in advance (the load prediction method can be based on artificial neural network method, exponential smoothing method, linear extrapolation method, autoregressive AR method, moving average MA method, etc.). Based on the curve separation technology (obtain the average load Pi within 15 minutes every 15 minutes, denoted as the medium- and long-term contract power), obtain the benchmark curve at each moment of the month, and determine the medium- and long-term contract power Pi accordingly;

[0047] In the above step S1, obtain the first power increment according to the difference between the second power prediction value and the first power prediction value; that is, predict the load curve Pi_1 at each 15-minute moment for the next day one day in advance, and subtract the benchmark curve Pi at each 15-minute moment i to obtain the contract power Pi_1 - Pi in the day-ahead market at this 15-minute moment, which is the contract power adjustment amount for each time period in the day-ahead market on the next day.

[0048] It can be understood that subtracting the medium- and long-term contract power Pi from the latest load prediction Pi_1, the difference Pi_1 - Pi is the power that needs to be additionally purchased or sold in the day-ahead market; if Pi_1 > Pi, it means that the predicted power demand exceeds the medium- and long-term contract power, and the power selling company needs to buy more power in the day-ahead market; conversely, if Pi_1 < Pi, it means that the power demand is lower than the medium- and long-term contract power, and the power selling company may need to sell the excess power in the day-ahead market.

[0049] In the above steps S2 - S3, sum the first power increment and the first power prediction value to obtain the first summation result; calculate the difference between the third power prediction value and the first summation result to obtain the second power increment; that is, predict the load curve for the next 3 - 4 hours 3 - 4 hours in advance (taking the load Pi_34 at a certain 15-minute moment as an example), and subtract {the contract power in the corresponding time period of the day-ahead market (Pi_1 - Pi) + the medium- and long-term contract power Pi} to obtain the contract power Pi_34 - Pi_1 in the intraday market.

[0050] Understandably, in determining the contracted electricity volume in the intraday market, the electricity sales company first needs to consider the latest load forecast value Pi_34; then, subtract the contracted electricity volume adjustment in the day-ahead market (Pi_1-Pi), because this adjustment has already been processed in the day-ahead market and does not need to be considered again in the intraday market; finally, add the medium- and long-term contracted electricity volume Pi_1, because Pi_1 is the basic electricity supply committed by the electricity sales company at this point in time and must always be taken into account.

[0051] In steps S4-S5 above, the second power increment, the first power increment, and the first power prediction value are summed to obtain the second summation result; the difference between the real-time power load value and the second summation result is calculated to obtain the contract power volume; that is, based on the real-time load curve P, the contract power volume of the real-time market is obtained by subtracting {the contract power volume of the corresponding period in the intraday market (Pi_34-Pi_1) + the contract power volume of the corresponding period in the day-ahead market (Pi_1-Pi) + the medium- and long-term contract power volume Pi of the corresponding period}.

[0052] It should be noted that the core of the above steps lies in decomposing the power load forecast into forecasts at multiple time scales, and gradually refining and adjusting them through iteration to ultimately determine the contracted electricity volume. Starting with long-term (e.g., one month) power load forecasts, the process gradually transitions to forecasts for the next day, the next few hours, and finally to real-time load forecasts. Each time scale forecast provides a basis and correction point for the next shorter time scale forecast, forming a forecast chain from macro to micro. The contracted electricity volume appears to be P-Pi_34, but the actual process involves first determining the medium- to long-term contracted electricity volume (Pi) based on the long-term forecast, then adjusting it at shorter time scales (e.g., the next day forecast Pi_1), and finally making a final fine-tuning at a time point very close to the actual demand (the real-time forecast Pi_34). This process is repeated multiple times to obtain the final result.

[0053] The above process is as follows: Figure 3 As shown:

[0054] S302, predicts the load curve for the next month one month in advance.

[0055] S304 calculates the average load every 15 minutes based on the predicted load curve, and determines the medium- and long-term contract electricity volume accordingly.

[0056] S306 forecasts the load curve for the next day one day in advance and subtracts the medium- and long-term contract curve for the next day to obtain the day-ahead market contract electricity volume.

[0057] S308 predicts the load curve for the next 3 to 4 hours 3 to 4 hours in advance - (daytime market contract volume + corresponding medium and long-term contract volume) to obtain the intraday market contract volume.

[0058] S310 obtains the real-time market contract volume based on the real-time load curve - (intraday market contract volume + day-ahead market contract volume + corresponding medium- and long-term contract volume).

[0059] By forecasting power load at different time scales and comparing it with real-time demand, a multi-level, high-precision system for determining contracted power volume was constructed, effectively solving the limitations of traditional single-time-scale forecasting and improving the accuracy of determining contracted power volume.

[0060] As an optional approach, a first electricity forecast value is determined based on first electricity load description information matching the first historical period, including:

[0061] S1, determine the first power load description information corresponding to multiple historical time nodes within the first historical period;

[0062] S2, associate the multiple power load features indicated by the first power load description information with their respective corresponding environmental features to obtain the first training set;

[0063] S3, Based on the first training set, the model is trained to obtain the long-term load prediction model;

[0064] S4. Input the predicted environmental feature set into the long-term load prediction model to obtain the first power prediction curve, wherein the first power prediction curve includes the first power prediction value corresponding to each of multiple time points.

[0065] As an optional implementation method, daily power load data from the past few months is obtained, with particular attention paid to the following factors in medium- to long-term forecasting:

[0066] Seasonal patterns: Annual and monthly loads are typically affected by seasonality, such as air conditioning load in summer and heating load in winter; Long-term trends: Consider the impact of long-term trends such as economic activity, population growth, and industrial development on electricity demand; Holidays and weekdays: Load patterns on holidays and weekends differ significantly from those on weekdays; Electricity prices: Long-term changes and adjustments in electricity prices can affect user behavior and load curves; Equipment maintenance plans: The impact of regular maintenance plans for power generation and transmission equipment on electricity supply.

[0067] By combining the load data at each historical time point with the specific environmental characteristics at that time, a multi-dimensional data point set containing both load and environmental characteristics is formed.

[0068] It should be noted that medium- to long-term forecasts may use complex time series analysis models, such as SARIMA (Seasonal Autoregressive Integral Moving Average), LSTM (Long Short-Term Memory Network), or machine learning models, such as random forests, to capture long-term trends and seasonal patterns.

[0069] Then, the environmental feature set of the forecast day is determined, including the date type of the forecast day, etc., and input into the trained long-term load forecast model. The model will output a power load forecast curve corresponding to each time point of the forecast day.

[0070] Long-term forecasting models, such as artificial neural network models based on data from the past month, are mainly used to identify macroeconomic trends in electricity demand, including seasonal variations and the difference between weekdays and rest days. They provide a basic estimate of electricity demand over a period of time, reduce uncertainty in the medium- and long-term market, provide a stable supply and demand ratio, and are beneficial to the overall planning and dispatching of the power system.

[0071] As an optional approach, a second electricity forecast value is determined based on second electricity load description information matching the second historical period, including:

[0072] S1, determine the second power load description information corresponding to multiple historical time nodes within the second historical period;

[0073] S2, associate the multiple power load features indicated by the second power load description information with their respective corresponding weather features to obtain the second training set;

[0074] S3, the model is trained based on the second training set to obtain the short-term load prediction model;

[0075] S4. Input the predicted weather feature set into the short-term load forecasting model to obtain the second power forecast curve, wherein the second power forecast curve includes the second power forecast value corresponding to each of multiple time points.

[0076] As an optional implementation, daily power load data from the past few days is obtained, with short-term forecasting paying particular attention to the following factors:

[0077] Weather conditions: Short-term load forecasting is sensitive to weather changes, such as temperature, humidity, and wind speed; Day of the week and specific dates: Load differences between weekdays and weekends, and specific event days (such as sporting events and concerts); Real-time electricity prices: Short-term electricity price fluctuations may have an immediate impact on users' electricity consumption patterns; Equipment failures: Short-term forecasting needs to consider temporary failures that may occur in power generation equipment or the power grid, but no specific restrictions are imposed here.

[0078] It should be noted that short-term forecasting tends to use models that react quickly to immediate factors, such as ARIMA, SARIMAX (a combination of SARIMA models and exogenous variables), and neural networks. These models are better able to handle real-time information such as weather and electricity prices.

[0079] Then, based on the weather forecast data for the next day, a set of predicted weather features is constructed and input into the pre-trained short-term load forecasting model. The model will output the power load forecast curves corresponding to each time point of the forecast day.

[0080] Short-term forecasting models, such as load forecasts at 15-minute intervals within the next day, take into account the impact of short-term weather forecasts, holidays, and other factors on electricity demand. They optimize day-ahead market trading strategies, ensure a close match between contracted electricity volume and actual demand the following day, and provide forecasts of load peak and valley values ​​for the next day. This helps to rationally arrange the charging and discharging plans of energy storage facilities and achieve efficient energy utilization.

[0081] As an optional approach, the third electricity forecast value is determined based on the third electricity load description information matched with the third historical period, including:

[0082] S1, determine the third power load description information corresponding to multiple historical time nodes within the third historical cycle;

[0083] S2, associate the multiple power load features indicated by the third power load description information with their respective corresponding user behavior features to obtain the second training set;

[0084] S3, based on the second training set, the model is trained to obtain the real-time load prediction model;

[0085] S4. Input the predicted user behavior feature set into the real-time load prediction model to obtain the third power prediction curve, wherein the third power prediction curve includes the third power prediction value corresponding to multiple time points.

[0086] As an optional implementation, acquiring power load data from the past few hours and making real-time forecasts pays particular attention to the following factors:

[0087] Real-time weather information: Real-time weather changes, such as sudden temperature drops or rises, have a direct impact on real-time load; Real-time market conditions: Supply and demand changes and electricity price fluctuations in the current market; User behavior: Real-time changes in user behavior, such as peak air conditioning usage and lighting usage, without specific restrictions.

[0088] It should be noted that real-time forecasting tends to utilize real-time data and fast-response models, such as machine learning-based real-time forecasting models (e.g., decision trees, support vector machines) or simple statistical models (e.g., moving averages), to quickly adapt to real-time changes in electricity demand.

[0089] Furthermore, based on real-time or future predictions of user behavior information, such as the expected operating status of user electrical equipment and possible changes in electricity consumption behavior, the instantaneous load forecasting model generates an electricity load forecasting curve according to the predicted user behavior characteristics.

[0090] Real-time forecasting models, such as predicting load 3-4 hours in advance for the next 3-4 hours, focus on real-time user behavior and market dynamics, capture the immediate impact of sudden events and large-scale activities on electricity demand, improve the trading flexibility of electricity sales companies in the intraday market, quickly respond to changes in market demand, promote the dynamic allocation of resources, and ensure timely matching of electricity supply with actual demand.

[0091] In addition, the load forecast curve is generated as follows: a dataset for predicting the load curve is generated, including different time series (day of the week, time, weekday / weekend / public holiday), weather, temperature, etc., and the training set and test set are distinguished.

[0092] For the training set, artificial neural network method, exponential smoothing method, linear extrapolation method, autoregressive method, and moving average method are respectively applied to train the preset prediction model and generate relevant parameters of the prediction model.

[0093] In actual testing, the model with the highest prediction accuracy was selected (one of the following methods was chosen: artificial neural network method, exponential smoothing method, linear extrapolation method, autoregressive AR method, and moving average MA method) for prediction.

[0094] The difference between predicting a load curve for a month, a day, or 3-4 hours lies in the different datasets used (training set and test set). Predicting a load curve for a month / day / 3-4 hours uses data from previous months / days / hours.

[0095] As an optional approach, before determining the contracted electricity volume, the following steps are also included:

[0096] S1, determine the first weight system value, the second weight system value, the third weight system value and the fourth weight system value that are respectively matched with the first power prediction value, the second power prediction value, the third power prediction value and the real-time power load value;

[0097] S2, determine the first reference power prediction value based on the first weight value and the first power prediction value;

[0098] S3, determine the second reference power prediction value based on the second weight value and the second power prediction value;

[0099] S4. Determine the third reference power prediction value based on the third weight value and the third power prediction value;

[0100] S5. Determine the real-time reference power load value based on the fourth weight value and the real-time power load value.

[0101] In step S1 above, a first weight system value, a second weight system value, a third weight system value, and a fourth weight system value are determined to match the first power prediction value, the second power prediction value, the third power prediction value, and the real-time power load value, respectively.

[0102] Optionally, the aforementioned weighting system refers to the numerical value used to adjust the relative importance of each predicted or actual load value in the process of determining the contracted electricity volume. The weighting system reflects the degree of contribution of the predicted value or real-time data to the final calculation of the contracted electricity volume.

[0103] In steps S1-S5 above, the first reference power forecast value is the power forecast value adjusted by the first weighting system, reflecting the reference value of long-term forecast in determining contract power volume; the second reference power forecast value is the power forecast value adjusted by the second weighting system, reflecting the reference value of short-term forecast in determining contract power volume; the third reference power forecast value is the power forecast value adjusted by the third weighting system, reflecting the reference value of real-time forecast in determining contract power volume; and the real-time reference power load value is the power value adjusted by the fourth weighting system, used to comprehensively determine the contract power volume.

[0104] By adjusting the weights, the robustness of long-term forecasts, the relevance of short-term forecasts, and the sensitivity of real-time forecasts are properly reflected in the process of determining contracted electricity volume. This reduces the potential bias caused by individual forecasting models and improves the overall accuracy of contracted electricity volume determination.

[0105] As an optional approach, the contracted electricity volume is determined based on a first electricity volume forecast, a second electricity volume forecast, a third electricity volume forecast, and a real-time electricity load value matching the current moment, including:

[0106] The contracted electricity volume is determined based on the first reference electricity volume forecast value matched with the first electricity volume forecast value, the second reference electricity volume forecast value matched with the second electricity volume forecast value, the third reference electricity volume forecast value matched with the third electricity volume forecast value, and the real-time reference electricity volume load value matched with the real-time electricity load value.

[0107] As an optional implementation, the original load forecast (Pi) is multiplied by the weight w1 corresponding to the medium- to long-term forecast: P'i = w1 × Pi.

[0108] The original day-ahead market load forecast Pi_1 is multiplied by the corresponding weight w2: P'i_1=w2×Pi_1.

[0109] Then, subtract the medium- and long-term contract electricity volume P'i from the weighted day-ahead market forecast value P'i_1 to obtain the adjusted day-ahead market contract electricity volume: P'i_1-P'i.

[0110] The original intraday market load forecast value Pi_34 is multiplied by the corresponding weight w3: P'i_34 = w3 × Pi_34. P'i_34 is then subtracted from {the contracted electricity volume of the corresponding period in the day-ahead market (P'i_1 - P'i) + the medium- and long-term contracted electricity volume P'i} to obtain the intraday market contracted electricity volume P'i_34 - P'i_1.

[0111] The real-time load value P is multiplied by the weight w4 of the real-time load: P' = w4 × P.

[0112] Finally, based on the real-time load curve P', subtract {the contracted electricity volume of the corresponding period in the intraday market (P'i_34-P'i_1) + the contracted electricity volume of the corresponding period in the day-ahead market (P'i_1-P'i) + the medium- and long-term contracted electricity volume P'i of the corresponding period} to obtain the real-time market contracted electricity volume P'-P'i_34.

[0113] The above-described embodiments described in this application, by applying weight adjustments on different time scales and combining historical trends and real-time market signals, enable electricity sales companies to more accurately predict electricity demand, thereby reducing errors in the determination of contracted electricity volume and solving the technical problem of inaccurate determination of contracted electricity volume.

[0114] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0115] According to another aspect of the embodiments of this application, a device for determining the contract quantity of electricity for implementing the above-described method for determining the contract quantity of electricity is also provided. For example... Figure 4 As shown, the device includes:

[0116] The first determining unit 402 determines a first power load prediction value based on the first power load description information matched with the first historical period, wherein the first power load description information is used to indicate the power load characteristics before the first historical time.

[0117] The second determining unit 404 determines a second power load prediction value based on the second power load description information matched with the second historical period, wherein the second power load description information is used to indicate the power load characteristics before the second historical time.

[0118] The third determining unit 406 determines the third power load prediction value based on the third power load description information matched with the third historical period. The third power load description information is used to indicate the power load characteristics before the third historical time. The first time interval between the first historical time and the current time is greater than the second time interval between the second historical time and the current time. The second time interval is greater than the third time interval between the third historical time and the current time.

[0119] The fourth determining unit 408 determines the contracted electricity volume based on the first predicted electricity volume, the second predicted electricity volume, the third predicted electricity volume, and the real-time electricity load value that matches the current time.

[0120] For specific implementation examples, please refer to the example shown in the above method for determining the contracted electricity volume; these examples will not be repeated here.

[0121] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described method for determining the contracted electricity volume is also provided, such as... Figure 5 As shown, the electronic device includes a memory 502 and a processor 504. The memory 502 stores a computer program, and the processor 504 is configured to execute the steps of any of the above method embodiments through the computer program.

[0122] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0123] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0124] S1, determine the first power load prediction value based on the first power load description information matched with the first historical period, wherein the first power load description information is used to indicate the power load characteristics before the first historical time.

[0125] S2, determine the second power load prediction value based on the second power load description information matched with the second historical period, wherein the second power load description information is used to indicate the power load characteristics before the second historical time.

[0126] S3, determine the third power load prediction value based on the third power load description information matched with the third historical period, wherein the third power load description information is used to indicate the power load characteristics before the third historical time, the first time interval between the first historical time and the current time is greater than the second time interval between the second historical time and the current time, and the second time interval is greater than the third time interval between the third historical time and the current time.

[0127] S4. Determine the contracted electricity volume based on the first electricity volume forecast, the second electricity volume forecast, the third electricity volume forecast, and the real-time electricity load value matching the current moment.

[0128] Alternatively, as those skilled in the art will understand, Figure 5 The components shown are for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 5 This does not limit the components of the aforementioned electronic device. For example, the electronic device may also include components that are more... Figure 5 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 5 The different configurations shown.

[0129] The memory 502 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and apparatus for determining the contracted electricity volume in this embodiment. The processor 504 executes various functional applications and data processing by running the software programs and modules stored in the memory 502, thereby realizing the aforementioned method for determining the contracted electricity volume. The memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 502 may further include memory remotely located relative to the processor 504, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 502 may be used, but is not limited to, for information such as target determination requests and target transmission requests. As an example, such as... Figure 5 As shown, the memory 502 may include, but is not limited to, the first determining unit 402, the second determining unit 404, the third determining unit 406, and the fourth determining unit 408 in the above-mentioned contract quantity determining device. Furthermore, it may include, but is not limited to, other module units in the above-mentioned contract quantity determining device, which will not be elaborated further in this example.

[0130] Optionally, the transmission device 506 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 506 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 506 is a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0131] In addition, the above-mentioned electronic device also includes: a display 508; and a connection bus 510 for connecting the various module components in the above-mentioned electronic device.

[0132] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in embodiments of this application.

[0133] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0134] It should be noted that the computer system of the electronic device is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0135] A computer system includes a Central Processing Unit (CPU), which performs various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) or loaded from RAM. ROM also stores various programs and data required for system operation. The CPU, ROM, and RAM are interconnected via a bus. Input / output interfaces (I / O interfaces) are also connected to the bus.

[0136] The following components are connected to the input / output interface: input sections including keyboards, mice, etc.; output sections including cathode ray tubes (CRTs), liquid crystal displays (LCDs), and speakers; storage sections including hard drives; and communication sections including network interface cards such as LAN cards and modems. The communication section performs communication processing via a network such as the Internet. Drives are also connected to the input / output interface as needed. Removable media, such as disks, optical discs, magneto-optical discs, semiconductor memories, etc., are installed on the drive as needed so that computer programs read from them can be installed into the storage section as required.

[0137] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions defined in the system of this application.

[0138] Optionally, the fourth determining unit 408 further includes a fifth determining module, configured to: obtain a first power increment based on the difference between the second power prediction value and the first power prediction value; sum the first power increment and the first power prediction value to obtain a first summation result; calculate the difference between the third power prediction value and the first summation result to obtain a second power increment; sum the second power increment, the first power increment, and the first power prediction value to obtain a second summation result; and calculate the difference between the real-time power load value and the second summation result to obtain the contracted power volume.

[0139] Optionally, the first determining unit 402 is used to determine the first power load description information corresponding to multiple historical time nodes within the first historical period; associate the multiple power load features indicated by the first power load description information with their respective corresponding environmental features to obtain a first training set; perform model training based on the first training set to obtain a long-term load prediction model; input the prediction environmental feature set into the long-term load prediction model to obtain a first power prediction curve, wherein the first power prediction curve includes the first power prediction value corresponding to multiple time points.

[0140] Optionally, the second determining unit 404 is used to determine the second power load description information corresponding to multiple historical time nodes within the second historical period; associate the multiple power load features indicated by the second power load description information with their respective corresponding weather features to obtain a second training set; train the model based on the second training set to obtain a short-term load prediction model; input the predicted weather feature set into the short-term load prediction model to obtain a second power prediction curve, wherein the second power prediction curve includes the second power prediction value corresponding to multiple time points.

[0141] Optionally, the third determining unit 406 is used to determine the third power load description information corresponding to multiple historical time nodes within the third historical period; associate the multiple power load features indicated by the third power load description information with their respective corresponding user behavior features to obtain a second training set; train the model based on the second training set to obtain an instantaneous load prediction model; input the predicted user behavior feature set into the instantaneous load prediction model to obtain a third power prediction curve, wherein the third power prediction curve includes the third power prediction value corresponding to multiple time points.

[0142] Optionally, the fourth determining unit 408 further includes a sixth determining module, used to determine a first weighting system value, a second weighting system value, a third weighting system value, and a fourth weighting system value that are respectively matched with the first power prediction value, the second power prediction value, the third power prediction value, and the real-time power load value; determine a first reference power prediction value based on the first weighting value and the first power prediction value; determine a second reference power prediction value based on the second weighting value and the second power prediction value; determine a third reference power prediction value based on the third weighting value and the third power prediction value; and determine a real-time reference power load value based on the fourth weighting value and the real-time power load value.

[0143] Optionally, the sixth determining module is further configured to determine the contracted electricity volume based on a first reference electricity volume prediction value that matches the first electricity volume prediction value, a second reference electricity volume prediction value that matches the second electricity volume prediction value, a third reference electricity volume prediction value that matches the third electricity volume prediction value, and a real-time reference electricity volume load value that matches the real-time electricity load value.

[0144] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations described above.

[0145] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:

[0146] S1, determine the first power load prediction value based on the first power load description information matched with the first historical period, wherein the first power load description information is used to indicate the power load characteristics before the first historical time.

[0147] S2, determine the second power load prediction value based on the second power load description information matched with the second historical period, wherein the second power load description information is used to indicate the power load characteristics before the second historical time.

[0148] S3, determine the third power load prediction value based on the third power load description information matched with the third historical period, wherein the third power load description information is used to indicate the power load characteristics before the third historical time, the first time interval between the first historical time and the current time is greater than the second time interval between the second historical time and the current time, and the second time interval is greater than the third time interval between the third historical time and the current time.

[0149] S4. Determine the contracted electricity volume based on the first electricity volume forecast, the second electricity volume forecast, the third electricity volume forecast, and the real-time electricity load value matching the current moment.

[0150] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0151] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0152] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0153] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0154] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.

[0155] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0156] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0157] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for determining the contracted electricity volume, characterized in that, include: A first power load prediction value is determined based on the first power load description information matched with the first historical period, wherein the first power load description information is used to indicate the power load characteristics before the first historical time. A second power load prediction value is determined based on the second power load description information matched with the second historical period, wherein the second power load description information is used to indicate the power load characteristics before the second historical time. A third power load prediction value is determined based on the third power load description information matched with the third historical period, wherein the third power load description information is used to indicate the power load characteristics before the third historical time, the first time interval between the first historical time and the current time is greater than the second time interval between the second historical time and the current time, and the second time interval is greater than the third time interval between the third historical time and the current time. The contracted electricity volume is determined based on the first predicted electricity volume, the second predicted electricity volume, the third predicted electricity volume, and the real-time electricity load value matching the current time.

2. The method for determining the contracted electricity volume according to claim 1, characterized in that, The step of determining the contracted electricity volume based on the first predicted electricity volume, the second predicted electricity volume, the third predicted electricity volume, and the real-time electricity load value matching the current moment includes: The first power increment is obtained based on the difference between the second power prediction value and the first power prediction value; The first summation result is obtained by summing the first power increment with the first power prediction value; The difference between the third predicted power consumption value and the first summation result is calculated to obtain the second power consumption increment; The second summation result is obtained by summing the second power increment, the first power increment, and the first power prediction value. The contracted electricity volume is obtained by calculating the difference between the real-time electricity load value and the second summation result.

3. The method for determining the contracted electricity volume according to claim 2, characterized in that, The step of determining the first electricity prediction value based on the first electricity load description information matched with the first historical period includes: Determine the first power load description information corresponding to multiple historical time nodes within the first historical period; The first power load description information is used to associate the multiple power load features indicated by the first power load description information with their respective corresponding environmental features to obtain the first training set; The long-term load forecasting model is obtained by training the model based on the first training set. The predicted environmental feature set is input into the long-term load prediction model to obtain a first power prediction curve, wherein the first power prediction curve includes the first power prediction value corresponding to each of multiple time points.

4. The method for determining the contracted electricity volume according to claim 2, characterized in that, The step of determining the second electricity forecast value based on the second electricity load description information matched with the second historical period includes: Determine the second power load description information corresponding to multiple historical time nodes within the second historical period; The second power load description information is used to associate the multiple power load features indicated by the second power load description information with their respective corresponding weather features to obtain a second training set; The model is trained based on the second training set to obtain a short-term load forecasting model. The predicted weather feature set is input into the short-term load forecasting model to obtain the second power generation forecast curve, wherein the second power generation forecast curve includes the second power generation forecast value corresponding to each of multiple time points.

5. The method for determining the contracted electricity volume according to claim 2, characterized in that, The step of determining the third electricity forecast value based on the third electricity load description information matched with the third historical period includes: Determine the third power load description information corresponding to multiple historical time nodes within the third historical period; The third power load description information indicates multiple power load features, which are then associated with their respective corresponding user behavior features to obtain a second training set. The model is trained based on the second training set to obtain the real-time load prediction model; The predicted user behavior feature set is input into the real-time load prediction model to obtain the third power prediction curve, wherein the third power prediction curve includes the third power prediction value corresponding to multiple time points.

6. The method for determining the contracted electricity volume according to claim 1, characterized in that, Before determining the contracted electricity volume, the following steps are also included: Determine a first weight system value, a second weight system value, a third weight system value, and a fourth weight system value that are respectively matched with the first power prediction value, the second power prediction value, the third power prediction value, and the real-time power load value; Based on the first weight value and the first power prediction value, a first reference power prediction value is determined; Based on the second weight value and the second power prediction value, a second reference power prediction value is determined; Based on the third weight value and the third power prediction value, a third reference power prediction value is determined; The real-time reference power load value is determined based on the fourth weight value and the real-time power load value.

7. The method for determining the contracted electricity volume according to claim 6, characterized in that, The step of determining the contracted electricity volume based on the first predicted electricity volume, the second predicted electricity volume, the third predicted electricity volume, and the real-time electricity load value matching the current moment includes: The contracted electricity volume is determined based on the first reference electricity volume prediction value that matches the first electricity volume prediction value, the second reference electricity volume prediction value that matches the second electricity volume prediction value, the third reference electricity volume prediction value that matches the third electricity volume prediction value, and the real-time reference electricity load value that matches the real-time electricity load value.

8. A device for determining contracted electricity volume, characterized in that, include: The first determining unit determines a first power load prediction value based on first power load description information matching the first historical period, wherein the first power load description information is used to indicate the power load characteristics before the first historical time. The second determining unit determines a second power load prediction value based on second power load description information matching the second historical period, wherein the second power load description information is used to indicate the power load characteristics before the second historical time. The third determining unit determines a third power prediction value based on the third power load description information matched with the third historical period. The third power load description information is used to indicate the power load characteristics before the third historical time. The first time interval between the first historical time and the current time is greater than the second time interval between the second historical time and the current time. The second time interval is greater than the third time interval between the third historical time and the current time. The fourth determining unit determines the contracted electricity volume based on the first predicted electricity volume, the second predicted electricity volume, the third predicted electricity volume, and the real-time electricity load value matching the current time.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 7.

10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program.