Energy demand prediction method and device, electronic equipment and storage medium
By constructing a multivariate linear regression model and temperature distribution curve decomposition technology, combined with typical load curves, accurately predicting power energy demand, the inaccurate problem of energy demand prediction in the existing technology is solved, and the accuracy of energy planning and scheduling is improved.
Patent Information
- Application Number
- CN202411012026.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-15
AI Technical Summary
The existing technology is difficult to accurately predict the distribution of power energy demand in a short time, resulting in deviations in energy planning and scheduling.
By obtaining economic variable data from multiple historical years, a multivariable linear regression prediction model is constructed, the annual load value is decomposed with the temperature distribution curve, the daily load value is determined, and the daily load curve is constructed based on the typical load curve to accurately predict energy demand.
It achieves more accurate prediction of energy demand, improves the accuracy of energy planning and scheduling, reduces resource waste and operation costs, and enhances the stability and reliability of the energy system.
Smart Images

Figure CN118966658A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy forecasting, and in particular to an energy demand forecasting method, device, electronic equipment and storage medium. Background Art
[0002] The complexity of the electric energy system is mainly reflected in the fact that it has multiple stakeholders. Energy is an important material support for the life and progress of our human society. Therefore, accurate prediction of the total demand for electric energy is an important guarantee for new energy planning and scheduling.
[0003] Currently, when conducting energy forecasts, we can only make a rough estimate of the total energy demand, and cannot accurately determine the distribution of energy demand in a short period of time. Summary of the invention
[0004] The embodiments of the present application provide an energy demand prediction method, device, electronic device and storage medium, which decompose the annual load value of the predicted target year through the temperature distribution curve, determine the daily load value, and then determine the energy demand distribution result corresponding to each hour based on the daily load value, thereby determining the energy demand corresponding to the target year and more accurately predicting the distribution of energy demand in a short period of time.
[0005] In a first aspect, an embodiment of the present application provides an energy demand forecasting method, the method comprising:
[0006] Obtain multiple economic variable data sets for a preset industry in multiple historical years; each economic variable data set includes population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area, and one economic variable data set corresponds to one historical year;
[0007] Construct a multivariate linear regression forecasting model based on multiple economic variable data sets;
[0008] The target year is input into the multivariate linear regression forecasting model for forecasting, and the target year load value corresponding to the target year is obtained;
[0009] Obtain the predicted temperature distribution curve of the target year to obtain the target temperature distribution curve;
[0010] The target year load value is decomposed based on the target temperature distribution curve to obtain the load value of the target day; the target day is any day in the target year;
[0011] Get typical load curves for preset industries;
[0012] A daily load curve is constructed based on the load value of the target day and the typical load curve of the preset industry to obtain the load curve of the target day.
[0013] In a second aspect, an embodiment of the present application provides an energy demand prediction device, the device comprising: an acquisition unit and a processing unit;
[0014] An acquisition unit is used to acquire multiple economic variable data groups of a preset industry in multiple historical years; each economic variable data group includes population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area, and one economic variable data group corresponds to one historical year;
[0015] A processing unit, for constructing a multivariate linear regression prediction model based on multiple economic variable data sets;
[0016] The target year is input into the multivariate linear regression forecasting model for forecasting, and the target year load value corresponding to the target year is obtained;
[0017] Obtain the predicted temperature distribution curve of the target year to obtain the target temperature distribution curve;
[0018] The target year load value is decomposed based on the target temperature distribution curve to obtain the load value of the target day; the target day is any day in the target year;
[0019] Get typical load curves for preset industries;
[0020] A daily load curve is constructed based on the load value of the target day and the typical load curve of the preset industry to obtain the load curve of the target day.
[0021] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, the processor being connected to the memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory, so that the electronic device executes the method of the first aspect.
[0022] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method of the first aspect.
[0023] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and is computer-operable to cause the computer to execute the method of the first aspect.
[0024] The implementation of the present invention has the following beneficial effects:
[0025] It can be seen that the energy demand forecasting method described in the implementation mode of the present application obtains multiple economic variable data groups of a preset industry in multiple historical years, each economic variable data group includes population size, gross domestic product, fixed asset investment, per capita disposable income, and built-up area. One economic variable data group corresponds to one historical year, and then a multivariate linear regression forecasting model is constructed based on the multiple economic variable data groups. The target year is input into the multivariate linear regression forecasting model for prediction to obtain the target year load value corresponding to the target year, and the predicted temperature distribution curve of the target year is obtained to obtain the target temperature distribution curve. The target year load value is decomposed based on the target temperature distribution curve to obtain the load value of the target day, and the target day is any day within the target year. Then, the typical load curve of the preset industry is obtained, and a daily load curve is constructed based on the load value of the target day and the typical load curve of the preset industry to obtain the load curve of the target day, thereby determining the energy demand corresponding to the target year and more accurately predicting the distribution of energy demand in a short period of time. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the implementation methods of the present application or the background technology, the drawings required for use in the implementation methods of the present application or the background technology will be described below.
[0027] Figure 1 is a flow chart of an energy demand forecasting method provided by an embodiment of the present application;
[0028] Figure 2 It is a flow chart for determining the load value of a target day provided by an embodiment of the present application;
[0029] Figure 3 is a schematic diagram of a typical load curve provided in an embodiment of the present application;
[0030] Figure 4 It is a structural schematic diagram of an energy demand prediction device provided by an embodiment of the present invention;
[0031] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the implementation mode of the present application. Obviously, the described implementation mode is only a part of the implementation mode of the present application, not all the implementation modes. Based on the implementation mode in the present application, all other implementation modes obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0033] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0034] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0035] See also Figure 1 , Figure 1 This is a flow chart of an energy demand forecasting method provided by an embodiment of the present application, including but not limited to the following steps:
[0036] S101: Obtain multiple economic variable data sets for a preset industry in multiple historical years.
[0037] In this embodiment, each economic variable data set includes population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area, and one economic variable data set corresponds to one historical year.
[0038] Energy is an important input factor and power source for economic activities. With the development of the economy, the scale of production continues to expand, the industrial structure continues to upgrade, and people's living standards continue to improve, and the demand for energy will also increase accordingly, so energy demand is closely related to economic variable data. The expansion of population size means more households and consumers, which increases the energy demand in the living areas of residents. For example, energy consumption for household heating, cooling, lighting, electrical appliances, transportation and other aspects will increase with the increase in population; GDP growth means the expansion of economic activities, including the expansion of industrial production scale, the increase in service industry activities, and the improvement of agricultural modernization level. The manufacturing process in industrial production, raw material processing, commercial operations in the service industry, transportation, communications and other activities all require energy consumption, so the growth of GDP is often accompanied by an increase in energy demand; fixed asset investment is used to build new factories, infrastructure, real estate projects, etc. During the construction phase, the construction process consumes a large amount of energy to drive mechanical equipment and produce and process materials. After the project is completed, continuous energy supply is also required to maintain normal operation, such as factory production operations and daily use of commercial buildings. Therefore, the increase in fixed asset investment will directly lead to an increase in energy demand. When per capita disposable income increases, people's consumption capacity and willingness will increase. On the one hand, people will buy more energy-intensive products, such as cars and large household appliances. On the other hand, people's pursuit of quality of life will also increase, such as the demand for larger housing space, more travel and tourism activities, etc., all of which will lead to an increase in energy demand. The expansion of built-up areas represents the expansion and development of cities. In the process of urban expansion, new building construction, road paving, and public facilities construction all consume a lot of energy. New urban built-up areas need to be equipped with corresponding energy supply and distribution systems, such as power supply, gas supply, heating and other facilities. The construction and operation of these facilities will also increase energy demand. The expansion of urban built-up areas will also attract more population and industrial agglomeration, further increasing energy consumption in production and life.
[0039] It can be seen that by obtaining multiple economic variable data sets for the preset industry in multiple historical years and analyzing the economic variable data over many years, we can clearly observe the development trajectory and trend of the industry over a period of time, and understand economic variable data such as gross domestic product and fixed asset investment. This will help evaluate the industry's contribution to regional or national economic growth, its role in driving employment, and its position and role in the economic structure. Combined with data such as population size and built-up area, we can deeply analyze the industry's energy demand patterns and consumption trends.
[0040] S102: Construct a multivariate linear regression prediction model based on multiple economic variable data sets.
[0041] After obtaining the population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area of the preset industry in multiple historical years, the data are organized into a structured table format. Each row represents an observation sample (data from a historical year), and the columns correspond to different variables (population, gross domestic product, fixed asset investment, per capita disposable income, built-up area, energy demand). Check whether there are missing values in the data. If so, consider using reasonable methods to fill them (such as mean filling, regression filling, etc.), or delete samples with missing values (if the proportion of missing values is small), standardize or normalize the data so that the numerical ranges of different variables are on a similar scale, which helps to improve the training efficiency and stability of the model. Divide the data set into a training set and a test set, use the linear regression algorithm to construct a multivariate linear regression model, then use the training set data to train the model, and finally use the test set data to evaluate the trained model.
[0042] It can be seen that the multivariate linear regression model can incorporate multiple economic variables at the same time, and can comprehensively consider the impact of various factors such as population, gross domestic product, fixed asset investment, per capita disposable income, built-up area, etc. on energy demand. By constructing the model, the quantitative relationship between each economic variable and the forecast target can be obtained, which helps to deeply understand the degree and direction of the impact of various factors on energy demand, and provide a basis for policy formulation, resource planning and decision-making. Models built based on historical data can be used to predict future situations. For example, it can predict changes in energy demand under different economic development scenarios, thereby helping relevant departments and enterprises to carry out energy planning, production arrangements and resource allocation in advance, improve resource utilization efficiency and the ability to cope with future demand changes. The linear regression model is relatively simple, has a low computational cost, is easy to understand and explain, and can provide relatively accurate forecast results when the data meets certain conditions and assumptions, which makes it highly cost-effective and practical in practical applications.
[0043] S103: Input the target year into a multivariate linear regression prediction model for prediction, and obtain a target year load value corresponding to the target year.
[0044] The target year is input into the multivariate linear regression prediction model for prediction to obtain the target year load value corresponding to the target year. The target year load value is calculated according to the following formula:
[0045] Y=α0+α1x1+α2x2+α3x3+α4x4+α5x5
[0046] Among them, α0, α1, α2, α3, α4, and α5 are the unknown coefficients corresponding to the target year, x1 is the population, x2 is the gross domestic product, x3 is the fixed asset investment, x4 is the per capita disposable income, and x5 is the built-up area.
[0047] It is also possible to obtain the natural disaster load value generated in a preset year to obtain a first load value, and then determine a second adjustment factor based on the first load value, and optimize the target year load value based on the first adjustment factor to obtain a more accurate target year load value.
[0048] It can be seen that considering the natural disaster load value and converting it into an adjustment factor to optimize the target annual load value can more comprehensively reflect various influencing factors, thereby improving the accuracy of load forecasting. Because natural disasters may have a sudden and significant impact on energy demand, infrastructure use, production activities, etc., if these factors are not taken into consideration, the load forecast may have a large deviation. By incorporating the impact of abnormal events such as natural disasters, the forecast results are more reliable and robust, and more accurate target annual load values help to allocate and plan resources more reasonably.
[0049] It can be seen that inputting the target year into the multivariate linear regression prediction model for prediction and obtaining the target year load value corresponding to the target year will help to reasonably allocate resources and avoid excessive or insufficient investment of resources. By accurately predicting the load value in advance, relevant enterprises and departments can more accurately budget and control costs, avoid idle or overloaded facilities due to inaccurate load forecasts, thereby reducing operating costs and improving economic benefits. Predicting the load value in advance can help identify potential risks of insufficient or excessive supply, so that measures can be taken in advance to prevent and respond to risks and ensure the normal operation of production and life.
[0050] S104: Obtain the predicted temperature distribution curve of the target year to obtain a target temperature distribution curve.
[0051] In this embodiment, polynomial fitting can be used for fitting, and a suitable polynomial function form is selected. The coefficients of the polynomial are determined using methods such as the least squares method, so that the polynomial curve is as close as possible to multiple historical temperature distribution curves; Fourier series fitting can also be used to fit multiple temperature distribution curves; or a neural network model can be used, with temperature data of historical years as input, to train the neural network to learn the patterns and laws of temperature distribution, thereby obtaining a fitted target temperature distribution curve.
[0052] It can be seen that obtaining multiple temperature distribution curves in multiple historical years, fitting the multiple temperature distribution curves, and obtaining the target temperature distribution curve can help understand the changing patterns and trends of past climates, and provide a basis for studying the laws and mechanisms of climate change. Based on the historical fitting curve, the temperature change trend in the future can be predicted, providing a basis for decision-making in response to climate change. Temperature changes will affect energy demand, such as energy consumption for heating in winter and cooling in summer. Through the target temperature distribution curve, energy suppliers can better predict energy demand in different time periods, optimize energy production and distribution plans, and improve the efficiency and reliability of the energy system.
[0053] S105: Decomposing the target annual load value based on the target temperature distribution curve to obtain the target daily load value.
[0054] In this implementation, see Figure 2 , Figure 2 A flow chart of determining the load value of a target day provided by an embodiment of the present application includes but is not limited to the following steps:
[0055] S201: Analyze the target temperature distribution curve to obtain the temperature forecast value of the target day.
[0056] In this embodiment, the target temperature distribution curve reflects the temperature changes corresponding to multiple historical years. By performing data analysis and processing on this curve, such as dividing and taking values according to date or time period, the temperature forecast value for each day can be extracted. These forecast values are estimates of future daily temperatures based on fitting and analysis of historical temperature data.
[0057] S202: Obtain the historical daily temperature and historical daily load values for each of a plurality of historical years.
[0058] In this embodiment, the actual temperature data (historical daily temperature) and the corresponding energy load data (historical daily load value) of each day in multiple historical years are collected and organized. These historical data will be used to establish a model in the future to discover the relationship and pattern between daily temperature and daily load value.
[0059] It should be noted that, in this embodiment, different temperature prediction values correspond to different load values.
[0060] S203: constructing a threshold regression model based on the historical daily temperature and the historical daily load value of each of the multiple historical years to obtain a target threshold regression model.
[0061] In this embodiment, the threshold variables, i.e., the daily temperature and the threshold number, are determined. The threshold number can be determined by some information criteria or based on prior knowledge, data characteristics and actual needs. Then, the collected historical daily temperature and historical daily load value data are used to estimate the regression parameters (such as regression coefficient, intercept, etc.) within different threshold intervals through a certain algorithm (such as least squares method, etc.). After parameter estimation and model testing (such as testing the goodness of fit of the model, the significance of the parameters, etc.), a threshold regression model that can better explain the relationship between daily temperature and daily load value is finally determined, i.e., the target threshold regression model.
[0062] S204: Input the temperature prediction value of the target day into the target threshold regression model to obtain the load value of the target day.
[0063] In this embodiment, the temperature prediction value of the target day is input into the target threshold regression model to obtain the original load value of the target day. Specifically, the obtained temperature prediction value of the target day is input into the constructed target threshold regression model. Since the model has determined the relationship between the daily temperature and the daily load value, when the temperature prediction value of the target day is input, the model will calculate and output the corresponding original load value according to its internal regression equation and parameters. Specifically, when the temperature prediction value of the target day is less than or equal to the first temperature, the temperature prediction value of the target day is input into the target threshold regression model to obtain the original load value of the target day. The original load value of the target day is calculated specifically according to the following formula:
[0064] ln(E t )=a+β0·ln(T t )+∈ t
[0065] Among them, E t is the original load value of the target day, β0 is the first undetermined coefficient, T t is the temperature forecast value of the target day, a is a constant, ∈ t is the residual;
[0066] When the temperature prediction value of the target day is greater than the first temperature and less than the second temperature, the temperature prediction value of the target day is input into the target threshold regression model to obtain the original load value of the target day. Specifically, the original load value of the target day is calculated according to the following formula:
[0067] ln(E t )=a+(β0+β1)·ln(T t )+∈ t
[0068] Among them, β1 is the second unknown coefficient;
[0069] When the temperature prediction value of the target day is greater than or equal to the second temperature, the temperature prediction value of the target day is input into the target threshold regression model to obtain the original load value of the target day. Specifically, the original load value of the target day is calculated according to the following formula:
[0070] ln(E t )=a+β0(β0+β1+β2)·ln(T t )+∈ t
[0071] Among them, β2 is the third unknown coefficient.
[0072] It can be seen that the relationship between temperature and load value in different temperature ranges may be nonlinear and complex. Through this piecewise function form, the unique patterns and laws of the impact of temperature on load value in different temperature ranges can be better captured, so that the model can fit the actual data more accurately. Since the different ways and degrees of impact of temperature on load value in different ranges are taken into account, the relationship between temperature and load can be described more carefully, thereby improving the prediction accuracy of load value. Different coefficients and forms can be flexibly set in different temperature ranges according to the characteristics and trends of actual data, so that the model can better adapt to different application scenarios and data conditions. Although the overall model may be relatively complex, the formula in each segment is relatively simple, which helps to explain and understand the temperature-load relationship in each temperature range.
[0073] After obtaining the original load value of the target day, when the original load value is less than the preset load value, the average temperature in multiple historical years is obtained, and a reference adjustment factor is determined according to the average temperature. Specifically, a reference adjustment factor is determined based on the average temperature because the reference adjustment factor may be determined based on preset rules, functional relationships, or lookup tables. For example, when the average value is in a specific temperature range, it corresponds to a specific reference adjustment factor value or calculation method.
[0074] Then, according to the preset mapping relationship between temperature and adjustment parameters, the first adjustment parameter corresponding to the temperature prediction value of the target day is determined, the reference adjustment factor is adjusted according to the first adjustment parameter to obtain the first adjustment factor, and the original load value is adjusted based on the first adjustment factor to obtain the load value of the target day. Specifically, there is a preset mapping relationship between temperature and adjustment parameters (which may be a table, function, database or other form of data structure), the temperature prediction value of the target day is input into this mapping relationship, and the corresponding adjustment parameter is searched or calculated. This adjustment parameter is the first adjustment parameter, and then the reference adjustment factor is adjusted according to the first adjustment parameter to obtain the first adjustment factor for adjusting the original load value, and then the original load value is adjusted based on the first adjustment factor to obtain the load value of the target day.
[0075] It can be seen that, according to the comparison between the original load value and the preset load value, as well as the corresponding daily temperature, targeted adjustments are made, taking into account the difference in load at different temperatures, so that the load value of the target day after adjustment is more accurate and in line with the actual situation. The reference adjustment factor is determined by the average temperature in multiple historical years, and further adjusted according to the mapping relationship between temperature and adjustment parameters, which can adapt to the impact of temperature changes on the load in different time periods, making the load value of the target day more adaptable. Based on the load value of the adjusted target day, resource planning and allocation can be better carried out. In terms of energy supply, energy production can be reasonably arranged according to accurate load forecasts, energy utilization efficiency can be improved, resource waste or insufficient supply can be avoided, and it is helpful to maintain the stable operation of the system. Accurate load forecasting and adjustment can enable the power system to better cope with load changes and reduce the risk of system instability or failure caused by excessive load fluctuations.
[0076] S106: Obtain a typical load curve of a preset industry.
[0077] In this implementation, see Figure 3 , Figure 3 is a schematic diagram of a typical load curve provided in the embodiment of the present application. Figure 3 As shown, the horizontal axis of the typical load curve is time, and the vertical axis is load. Different times of the day correspond to different loads, which can clearly show the load conditions at different times of the day and the load change pattern.
[0078] S107: Construct a daily load curve based on the load value of the target day and a typical load curve of a preset industry to obtain the load curve of the target day.
[0079] In this embodiment, illustratively, the load value of the target day is decomposed based on the typical load curve to obtain n load values, wherein each target load value corresponds to a time point, and n is an integer greater than 1. In this embodiment, since there are 24 hours in each day, n is 24, and may also be other integers, which are not limited here. Specifically, n typical load values are determined according to the time points corresponding to the n load values and the typical load curve, and then the difference between each load value in the n load values and each corresponding typical load value in the n typical load values is determined to obtain n first differences. Specifically, the difference between each load value in the n load values and each corresponding typical load value in the n typical load values is determined to reflect the degree of deviation of the actual load from the typical mode, and n first differences are obtained.
[0080] Exemplarily, the mean square error corresponding to the n first differences is determined. Specifically, the mean square error is a statistic used to measure the degree of dispersion of these differences. It represents the fluctuation of the actual load value relative to the typical load value. The larger the mean square error, the greater the fluctuation of the actual load value, and the more obvious the difference from the typical pattern.
[0081] Exemplarily, a target correction coefficient corresponding to the mean square error is determined. Specifically, a correction coefficient is determined based on the size of the mean square error. When the mean square error is large, a larger correction coefficient may be required. When the mean square error is small, the correction coefficient may be relatively small. The purpose of this correction coefficient is to adjust the subsequent correction amplitude according to the degree of difference between the actual load value and the typical pattern.
[0082] Exemplarily, n load values are corrected according to the target correction coefficient to obtain n target load values. Specifically, the n load values are corrected using the determined target correction coefficient, so that the corrected target load values can be closer to the typical mode while taking into account the fluctuation of the actual load.
[0083] Exemplarily, based on a combination of n target load values and the time points corresponding to the n target load values, a load curve for the target day is obtained. Specifically, the n target load values are associated with their corresponding time points, arranged and combined in chronological order to obtain the load curve for the target day. The load curve is a graphic or data form that represents the load changes over time, and can show the load changes on the target day in more detail.
[0084] It can be seen that by decomposing the load value of the target day based on the typical load curve, the load curve of the target day can be closer to the actual load change law and pattern, thereby improving the accuracy and reliability of the prediction. Comparing the difference and mean square error obtained by the predicted value and the typical curve can help identify outliers and deviations in the prediction, and then correct and optimize the predicted data to make the data more reliable and credible. Accurate load values are crucial for resource allocation such as energy supply and power grid operation. An accurate load curve of the target day can better guide the rational allocation of resources, such as the production and dispatch of electricity, to avoid waste of resources or insufficient supply. In the fields of power systems, energy systems, etc., system planning and operation based on accurate load values can improve the stability and reliability of the system. Appropriate load forecasting and correction can help the system better cope with load changes, reduce overload and underload problems, and ensure the normal operation of the system.
[0085] In summary, the implementation of the present invention has the following beneficial effects:
[0086] It can be seen that the energy demand forecasting method described in the implementation mode of the present application obtains multiple economic variable data groups of a preset industry in multiple historical years, each economic variable data group includes population size, gross domestic product, fixed asset investment, per capita disposable income, and built-up area. One economic variable data group corresponds to one historical year, and then a multivariate linear regression forecasting model is constructed based on the multiple economic variable data groups. The target year is input into the multivariate linear regression forecasting model for prediction to obtain the target year load value corresponding to the target year, and the predicted temperature distribution curve of the target year is obtained to obtain the target temperature distribution curve. The target year load value is decomposed based on the target temperature distribution curve to obtain the load value of the target day, and the target day is any day within the target year. Then, the typical load curve of the preset industry is obtained, and a daily load curve is constructed based on the load value of the target day and the typical load curve of the preset industry to obtain the load curve of the target day, thereby determining the energy demand corresponding to the target year and more accurately predicting the distribution of energy demand in a short period of time.
[0087] See also Figure 4 , Figure 4 Schematic diagram of the structure of an energy demand prediction device provided by an embodiment of the present invention. Figure 4 As shown, the energy demand prediction device 400 includes: an acquisition unit 401 and a processing unit 402 .
[0088] The acquisition unit 401 is used to acquire multiple economic variable data sets of a preset industry in multiple historical years; each economic variable data set includes population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area, and one economic variable data set corresponds to one historical year;
[0089] Processing unit 402, used to construct a multivariate linear regression prediction model based on multiple economic variable data groups;
[0090] The population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area corresponding to the target year are input into the multivariate linear regression prediction model for prediction to obtain the target year load value corresponding to the target year;
[0091] Acquire multiple temperature distribution curves in multiple historical years, and fit the multiple temperature distribution curves to obtain a target temperature distribution curve;
[0092] The target annual load value is decomposed based on the target temperature distribution curve to obtain the daily load value of the target day; each daily load value corresponds to a time point, and n is an integer greater than 1;
[0093] The energy demand distribution results corresponding to the target year are determined based on the daily load value of the target day.
[0094] In some possible implementations, in terms of decomposing the target annual load value based on the target temperature distribution curve to obtain the daily load value of the target day, the processing unit 402 is specifically configured to:
[0095] Analyze the target temperature distribution curve to obtain n daily temperature forecast values;
[0096] Get the historical daily temperature and historical daily load values for each of multiple historical years;
[0097] A threshold regression model is constructed based on the historical daily temperature and historical daily load values of each year in multiple historical years to obtain a target threshold regression model;
[0098] The n daily temperature prediction values are input into the target threshold regression model to obtain the daily load value of the target day.
[0099] In some possible implementations, in terms of inputting n daily temperature prediction values into the target threshold regression model to obtain the daily load value of the target day, the processing unit 402 is specifically configured to:
[0100] Input n daily temperature prediction values into the target threshold regression model to obtain n original daily load values;
[0101] When the original daily load value i is less than the preset load value, the daily temperature i corresponding to the original daily load value i is obtained; the original daily load value i is any daily load value among the n original daily load values;
[0102] Determine the average value of n daily temperature forecast values, and determine the reference adjustment factor based on the average value;
[0103] Determine the first adjustment parameter corresponding to the day temperature i according to the preset mapping relationship between the temperature and the adjustment parameter;
[0104] Adjust the reference adjustment factor according to the first adjustment parameter to obtain a first adjustment factor;
[0105] The original daily load value i is adjusted based on the first adjustment factor to obtain a daily load value corresponding to the original daily load value i.
[0106] In some possible implementations, in terms of inputting n daily temperature prediction values into the target threshold regression model to obtain n original daily load values, the processing unit 402 is specifically configured to:
[0107] When the daily temperature prediction value i is less than or equal to the first temperature, the temperature prediction value i is input into the target threshold regression model to obtain the original daily load value i. The daily temperature prediction value i is any daily temperature among the n daily temperatures. The original daily load value i is calculated specifically according to the following formula:
[0108] ln(E t)=a+β0·ln(T t )+∈ t
[0109] Among them, E t is the original daily load value i, β0 is the first undetermined coefficient, T t is the daily temperature forecast value i, a is a constant, ∈ t is the residual;
[0110] When the daily temperature prediction value i is greater than the first temperature and less than the second temperature, the temperature prediction value i is input into the target threshold regression model to obtain the original daily load value i. Specifically, the original daily load value i is calculated according to the following formula:
[0111] ln(E t )=a+(β0+β1)·ln(T t )+∈ t
[0112] Among them, β1 is the second unknown coefficient;
[0113] When the daily temperature prediction value i is greater than or equal to the second temperature, the temperature prediction value i is input into the target threshold regression model to obtain the original daily load value i. Specifically, the original daily load value i is calculated according to the following formula:
[0114] ln(E t )=a+β0(β0+β1+β2)·ln(T t )+∈ t
[0115] Among them, β2 is the third unknown coefficient.
[0116] In some possible implementations, in terms of inputting the population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area corresponding to the target year into a multivariate linear regression prediction model for prediction to obtain a target year load value corresponding to the target year, the processing unit 402 is specifically configured to:
[0117] The reference annual load value is determined based on the population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area corresponding to the target year. The target annual load value is calculated according to the following formula:
[0118] Y=α0+α1x1+α2x2+α4x4+α4x4+α5x5
[0119] Among them, Y is the target annual load value, α0, α1, α2, α4, α4, and α5 are all regression coefficients, x1 is the population, x2 is the gross domestic product, x4 is the fixed asset investment, x4 is the per capita disposable income, and x5 is the built-up area.
[0120] In some possible implementations, in determining the energy demand distribution result corresponding to the target year based on the daily load value of the target day, the processing unit 402 is specifically configured to:
[0121] Get typical load curves for preset industries;
[0122] The daily load value of the target day is corrected based on the typical load curve to obtain n target daily load values;
[0123] A target load curve is obtained by combining n target daily load values and time points corresponding to the target daily load values;
[0124] Determine the energy demand distribution results corresponding to the target year based on the target load curve.
[0125] In some possible implementations, in terms of correcting the daily load value of the target day based on the typical load curve to obtain n target daily load values, the processing unit 402 is specifically configured to:
[0126] Determine n typical daily load values according to the time point corresponding to the daily load value of the target day and the typical load curve;
[0127] Determine the difference between each daily load value of the target day and each corresponding typical daily load value of the n typical daily load values to obtain n first difference values;
[0128] Determine the mean square error corresponding to the n first differences;
[0129] Determine a target correction factor corresponding to the mean square error;
[0130] The daily load value of the target day is corrected according to the target correction coefficient to obtain n target daily load values.
[0131] See also Figure 5 , Figure 5 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 5 As shown, the electronic device 500 includes a transceiver 501, a processor 502 and a memory 503. They are connected via a bus 504. The memory 503 is used to store computer programs and data, and can transmit the data stored in the memory 503 to the processor 502.
[0132] The above program includes instructions for performing the following steps:
[0133] Obtain multiple economic variable data sets for a preset industry in multiple historical years; each economic variable data set includes population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area, and one economic variable data set corresponds to one historical year;
[0134] Construct a multivariate linear regression forecasting model based on multiple economic variable data sets;
[0135] The population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area corresponding to the target year are input into the multivariate linear regression prediction model for prediction to obtain the target year load value corresponding to the target year;
[0136] Acquire multiple temperature distribution curves in multiple historical years, and fit the multiple temperature distribution curves to obtain a target temperature distribution curve;
[0137] The target annual load value is decomposed based on the target temperature distribution curve to obtain the daily load value of the target day; each daily load value corresponds to a time point, and n is an integer greater than 1;
[0138] The energy demand distribution results corresponding to the target year are determined based on the daily load value of the target day.
[0139] In some possible implementations, in terms of decomposing the target annual load value based on the target temperature distribution curve to obtain the daily load value of the target day, the program further includes instructions for performing the following steps:
[0140] Analyze the target temperature distribution curve to obtain n daily temperature forecast values;
[0141] Get the historical daily temperature and historical daily load values for each of multiple historical years;
[0142] A threshold regression model is constructed based on the historical daily temperature and historical daily load values of each year in multiple historical years to obtain a target threshold regression model;
[0143] The n daily temperature prediction values are input into the target threshold regression model to obtain the daily load value of the target day.
[0144] In some possible implementations, in terms of inputting the n daily temperature prediction values into the target threshold regression model to obtain the daily load value of the target day, the program further includes instructions for performing the following steps:
[0145] Input n daily temperature prediction values into the target threshold regression model to obtain n original daily load values;
[0146] When the original daily load value i is less than the preset load value, the daily temperature i corresponding to the original daily load value i is obtained; the original daily load value i is any daily load value among the n original daily load values;
[0147] Determine the average value of n daily temperature forecast values, and determine the reference adjustment factor based on the average value;
[0148] Determine the first adjustment parameter corresponding to the day temperature i according to the preset mapping relationship between the temperature and the adjustment parameter;
[0149] Adjust the reference adjustment factor according to the first adjustment parameter to obtain a first adjustment factor;
[0150] The original daily load value i is adjusted based on the first adjustment factor to obtain a daily load value corresponding to the original daily load value i.
[0151] In some possible implementations, in terms of inputting n daily temperature prediction values into the target threshold regression model to obtain n original daily load values, the program further includes instructions for performing the following steps:
[0152] When the daily temperature prediction value i is less than or equal to the first temperature, the temperature prediction value i is input into the target threshold regression model to obtain the original daily load value i. The daily temperature prediction value i is any daily temperature among the n daily temperatures. The original daily load value i is calculated specifically according to the following formula:
[0153] ln(E t )=a+β0·ln(T t )+∈ t
[0154] Among them, E t is the original daily load value i, β0 is the first undetermined coefficient, T t is the daily temperature forecast value i, a is a constant, ∈ t is the residual;
[0155] When the daily temperature prediction value i is greater than the first temperature and less than the second temperature, the temperature prediction value i is input into the target threshold regression model to obtain the original daily load value i. Specifically, the original daily load value i is calculated according to the following formula:
[0156] ln(E t )=a+(β0+β1)·ln(T t )+∈ t
[0157] Among them, β1 is the second unknown coefficient;
[0158] When the daily temperature prediction value i is greater than or equal to the second temperature, the temperature prediction value i is input into the target threshold regression model to obtain the original daily load value i. Specifically, the original daily load value i is calculated according to the following formula:
[0159] ln(E t )=a+β0(β0+β1+β2)·ln(T t )+∈ t
[0160] Among them, β2 is the third unknown coefficient.
[0161] In some possible implementations, in terms of inputting the population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area corresponding to the target year into a multivariate linear regression prediction model for prediction to obtain a target year load value corresponding to the target year, the program further includes instructions for executing the following steps:
[0162] The reference annual load value is determined based on the population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area corresponding to the target year. The target annual load value is calculated according to the following formula:
[0163] Y=α0+α1x1+α2x2+α3x3+α5x5+α5x5
[0164] Among them, Y is the target annual load value, α0, α1, α2, α3, α5, and α6 are all regression coefficients, x1 is the population, x2 is the gross domestic product, x3 is the fixed asset investment, x5 is the per capita disposable income, and x6 is the built-up area.
[0165] In some possible implementations, in determining the energy demand distribution result corresponding to the target year based on the daily load value of the target day, the program further includes instructions for performing the following steps:
[0166] Get typical load curves for preset industries;
[0167] The daily load value of the target day is corrected based on the typical load curve to obtain n target daily load values;
[0168] A target load curve is obtained by combining n target daily load values and time points corresponding to the target daily load values;
[0169] Determine the energy demand distribution results corresponding to the target year based on the target load curve.
[0170] In some possible implementations, in terms of correcting the daily load value of the target day based on the typical load curve to obtain n target daily load values, the program further includes instructions for executing the following steps:
[0171] Determine n typical daily load values according to the time point corresponding to the daily load value of the target day and the typical load curve;
[0172] Determine the difference between each daily load value of the target day and each corresponding typical daily load value of the n typical daily load values to obtain n first difference values;
[0173] Determine the mean square error corresponding to the n first differences;
[0174] Determine a target correction factor corresponding to the mean square error;
[0175] The daily load value of the target day is corrected according to the target correction coefficient to obtain n target daily load values.
[0176] It should be understood that the electronic devices in this application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, mobile Internet devices MID (Mobile Internet Devices, MID for short) or wearable devices or servers, edge computing nodes, etc. The above electronic devices are only examples, not exhaustive, and include but are not limited to the above electronic devices. In practical applications, the above electronic devices may also include: smart vehicle terminals, computer equipment, etc.
[0177] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement part or all of the steps of any energy demand forecasting method recorded in the above method embodiment.
[0178] The embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any energy demand forecasting method recorded in the above method embodiment.
[0179] It should be noted that, for the above-mentioned various method implementations, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the implementations described in the specification are all optional implementations, and the actions and modules involved are not necessarily required by this application.
[0180] In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0181] In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device implementation described above is only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0182] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0183] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0184] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, 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, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of each implementation method of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0185] A person skilled in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0186] The above is a detailed introduction to the implementation methods of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above implementation methods is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for predicting energy demand, It is characterized in that include: Obtain multiple economic variable data sets for a preset industry in multiple historical years; each economic variable data set includes population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area, and one economic variable data set corresponds to one historical year; Constructing a multivariate linear regression prediction model based on the multiple economic variable data sets; Inputting the target year into the multivariate linear regression prediction model for prediction to obtain a target year load value corresponding to the target year; Obtaining a predicted temperature distribution curve for the target year to obtain a target temperature distribution curve; Decomposing the target annual load value based on the target temperature distribution curve to obtain a target daily load value; The target date is any date within the target year; Obtain a typical load curve of the preset industry; A daily load curve is constructed based on the load value of the target day and the typical load curve of the preset industry to obtain the load curve of the target day.
2. The method according to claim 1, It is characterized in that Decomposing the target annual load value based on the target temperature distribution curve to obtain the target daily load value includes: Analyzing the target temperature distribution curve to obtain a temperature forecast value for the target day; Obtain the historical daily temperature and historical daily load values for each of the multiple historical years; Building a threshold regression model based on the historical daily temperature and the historical daily load value of each of the multiple historical years to obtain a target threshold regression model; The temperature prediction value of the target day is input into the target threshold regression model to obtain the load value of the target day.
3. The method according to claim 2, It is characterized in that The step of inputting the temperature prediction value of the target day into the target threshold regression model to obtain the load value of the target day includes: Inputting the temperature prediction value of the target day into the target threshold regression model to obtain the original load value of the target day; When the original load value is less than a preset load value, obtaining the average temperature in the multiple historical years; determining a reference adjustment factor according to the average temperature; Determine a first adjustment parameter corresponding to the temperature prediction value of the target day according to a preset mapping relationship between temperature and adjustment parameters; Adjust the reference adjustment factor according to the first adjustment parameter to obtain the first adjustment factor; The original load value is adjusted based on the first adjustment factor to obtain the load value of the target day.
4. The method according to claim 3, It is characterized in that The step of inputting the temperature prediction value of the target day into the target threshold regression model to obtain the original load value of the target day includes: When the temperature prediction value of the target day is less than or equal to the first temperature, the temperature prediction value of the target day is input into the target threshold regression model to obtain the original load value of the target day. Specifically, the original load value of the target day is calculated according to the following formula: ln(E t )(a+β 0 ·ln(T t )+∈ t Among them, E t is the original load value of the target day, β 0 is the first undetermined coefficient, T t is the temperature forecast value of the target day, a is a constant, ∈ t is the residual; When the temperature prediction value of the target day is greater than the first temperature and less than the second temperature, the temperature prediction value of the target day is input into the target threshold regression model to obtain the original load value of the target day. Specifically, the original load value of the target day is calculated according to the following formula: ln(E t )s+(β 0 +β 1 )·ln(T t )+∈t Among them, β 1 is the second unknown coefficient; When the temperature prediction value of the target day is greater than or equal to the second temperature, the temperature prediction value of the target day is input into the target threshold regression model to obtain the original load value of the target day. Specifically, the original load value of the target day is calculated according to the following formula: ln(E t )=a+b 0 (b 0 +b 1 +b 2 )·ln(T t )+∈ t Among them, β 2 is the third undetermined coefficient.
5. The method according to claim 1, It is characterized in that The step of inputting the target year into the multivariate linear regression prediction model for prediction to obtain the target year load value corresponding to the target year includes: The target year is input into the multivariate linear regression prediction model for prediction to obtain the target year load value corresponding to the target year. Specifically, the target year load value is calculated according to the following formula: Y=a 0 +a 1 x 1 +a 2 x 2 +a 3 x 3 +a 4 x 4 +a 5 x 5 Among them, α 0 , α 1 , α 2 , α 3 , α 4 , α 5 is the undetermined coefficient corresponding to the target year, x 1 is the population, x 2 is the gross domestic product, x 3 is the fixed asset investment, x 4 is the per capita disposable income, x 5 is the built-up area.
6. The method according to claim 1, It is characterized in that The step of constructing a daily load curve based on the load value of the target day and the typical load curve of the preset industry to obtain the load curve of the target day includes: Decomposing the load value of the target day based on the typical load curve to obtain n target load values; each target load value corresponds to a time point, and n is an integer greater than 1; The load curve of the target day is obtained by combining the n target load values and the time points corresponding to the n target load values.
7. The method according to claim 6, It is characterized in that The load value of the target day is decomposed based on the typical load curve to obtain n target load values, including: Decomposing the load value of the target day based on the typical load curve to obtain n load values; Determining n typical load values according to the time points corresponding to the n load values and the typical load curve; Determine a difference between each of the n load values and each corresponding typical load value of the n typical load values to obtain n first difference values; Determine the mean square error corresponding to the n first difference values; determining a target correction coefficient corresponding to the mean square error; The n load values are corrected according to the target correction coefficient to obtain the n target load values.
8. An energy demand prediction device, It is characterized in that The device comprises: an acquisition unit and a processing unit; The acquisition unit is used to acquire multiple economic variable data sets of a preset industry in multiple historical years; each economic variable data set includes population, gross domestic product, fixed asset investment, per capita disposable income, and built-up area, and one economic variable data set corresponds to one historical year; The processing unit is used to construct a multivariate linear regression prediction model based on the multiple economic variable data groups; Inputting the target year into the multivariate linear regression prediction model for prediction to obtain a target year load value corresponding to the target year; Obtaining a predicted temperature distribution curve for the target year to obtain a target temperature distribution curve; Decomposing the target annual load value based on the target temperature distribution curve to obtain a load value of a target day; the target day is any day within the target year; Obtain a typical load curve of the preset industry; A daily load curve is constructed based on the load value of the target day and the typical load curve of the preset industry to obtain the load curve of the target day.
9. An electronic device, It is characterized in that The method comprises a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for executing the steps in the method described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 7.
