Electricity load forecasting method, device and storage medium
Through data smoothing and time series analysis models, combined with environmental variables, the load curve is optimized to solve the problems of inaccurate load growth rate and failure to consider external factors in the existing power load forecasting methods, improving the accuracy of power load forecasting and the reliability of power supply. sex.
Patent Information
- Application Number
- CN202410715050.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-04
AI Technical Summary
The existing power load forecasting method adopts the proportional growth method, which cannot accurately predict the power load growth rate and fails to consider external factors, resulting in insufficient or oversupply problems in power supply.
By obtaining historical load data and environmental data, calculating data smoothing coefficients, performing data smoothing processing, building a power consumption timing analysis model, drawing load curves, and combining environmental variable optimization curves to formulate power supply plans to improve the accuracy of load forecasting.
It improves the accuracy of power load forecasting, helps power suppliers make more accurate load planning, avoids imbalances in supply and demand, and enhances the reliability and environmental adaptability of power supply.
Smart Images

Figure CN118300101B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent decision-making technology, and in particular to an electric load prediction method, device and storage medium. Background Art
[0002] Power load forecasting refers to the process of predicting and estimating the power demand in the future. Power load forecasting mainly provides a reference for the operation and planning of the power system. By accurately predicting the power load, power companies can reasonably arrange the operation and dispatch of power generation equipment to maintain the stable operation of the power system and meet the electricity needs of users. Reasonable power load forecasting can reduce the energy required for power supply and have a positive impact on the long-term development of the power system.
[0003] The existing power load forecasting method adopts the proportional growth method, which is based on the inference of past load data, and analyzes the similarity between future load changes and the proportional changes of historical loads, so as to predict the future power load. The specific steps of the proportional growth method are: collecting and organizing historical load data, including the load amount in the time period, and calculating the load ratio of each time period in chronological order, that is, the ratio of the load of the current time period to the load of the previous time period, averaging all load ratios to obtain the average proportional growth rate of historical loads, and inferring future load changes based on the latest value of the historical load and the average proportional growth rate. The future load forecast value can be obtained by multiplying the latest load by the average proportional growth rate, but the historical load growth rate in this method cannot accurately replace the current power load growth rate, and does not consider the interference of external factors, which leads to a decrease in the accuracy of power load forecasting, thereby causing insufficient or excessive power supply in the subsequent power supply. Summary of the invention
[0004] The present invention provides a power load forecasting method, a device and a storage medium, the main purpose of which is to improve the accuracy of power load forecasting.
[0005] To achieve the above object, the present invention provides a method for predicting power load, comprising:
[0006] Acquire a power consumption area to be analyzed, dispatch historical load data and historical power consumption environment data corresponding to the power consumption area, calculate a data smoothing coefficient corresponding to the historical load data, and perform data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data, wherein the performing data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data includes:
[0007] Performing data anomaly elimination processing on the historical load data to obtain eliminated load data;
[0008] Performing noise reduction processing on the eliminated load data to obtain noise-reduced load data;
[0009] According to the data smoothing coefficient, the noise reduction load data is smoothed by the following formula to obtain smoothed load data:
[0010]
[0011] in, represents the hth smoothed load data, h represents the sequence number of the smoothed load data, Indicates the data smoothing coefficient corresponding to the historical load data, represents the i+1th noise reduction load data, Indicates the i-th noise reduction load data, i represents the sequence number of the noise reduction load data, and the value range of i is 1 to , The total number of noise reduction load data, the hth smoothed load data is the smoothed load data corresponding to the i+1th noise reduction load data;
[0012] Performing cumulative quantitative processing on the smoothed load data to obtain cumulative load data, and constructing a power consumption time series analysis model for the power consumption area according to the cumulative load data;
[0013] Collecting current power load data and current power consumption environment corresponding to the power consumption area, inputting the current power load data as input data into the power consumption time series analysis model, and using the power consumption time series analysis model to draw a regional load curve corresponding to the power consumption area;
[0014] Identify environmental variables in the historical power usage environment data, combine the historical load data and the historical power usage environment data, analyze the power usage effect of the environmental variables on the power usage area, combine the power usage effect and the current power usage environment, perform curve optimization processing on the regional load curve, and obtain a target load curve;
[0015] According to the target load curve, a power supply plan corresponding to the power consumption area is formulated, and the power supply processing of the power consumption area is performed using the power supply plan to obtain a power supply result.
[0016] Optionally, the calculating a data smoothing coefficient corresponding to the historical load data includes:
[0017] The data smoothing coefficient corresponding to the historical load data is calculated by the following formula:
[0018]
[0019] Among them, A represents the data smoothing coefficient corresponding to the historical load data, Indicates the Nth load data of historical load data, represents the bth load data of the historical load data, b represents the sequence number of the historical load data, and N represents the total number of data of the historical load data.
[0020] Optionally, the performing cumulative quantization processing on the smoothed load data to obtain cumulative load data includes:
[0021] The smoothed load data can be cumulatively quantified using the following formula:
[0022]
[0023] Among them, F represents the accumulated load data, h represents the sequence number of the smoothed load data, and d represents the number of data of the smoothed load data. Indicates the hth smoothed load data among the smoothed load data.
[0024] Optionally, constructing a power consumption time series analysis model for the power consumption area according to the accumulated load data includes:
[0025] Performing standardization processing on the accumulated load data to obtain standard load data;
[0026] Analyzing trend characteristics corresponding to the standard load data;
[0027] Determining a time series analysis model template corresponding to the standard load data according to the trend characteristics;
[0028] In combination with the standard load data, parameter identification is performed on the time series analysis model template to obtain model parameters;
[0029] According to the model parameters, adjusting the parameters of the timing analysis model template to obtain a target timing analysis model;
[0030] The target time series analysis model is used as the power consumption time series analysis model of the power consumption area.
[0031] Optionally, combining the historical load data and the historical power consumption environment data to analyze the power consumption effect of the environmental variables on the power consumption area includes:
[0032] According to the environmental variables, the historical power usage environment data is classified and processed to obtain environmental variable data;
[0033] Calculate the average values corresponding to the historical load data and the environmental variable data respectively to obtain the load average value and the variable average value;
[0034] Calculate the mean square error corresponding to the historical load data and the environmental variable data according to the load mean value and the variable mean value to obtain the load mean square error and the variable mean square error;
[0035] Calculate the correlation coefficient between the environmental variable and the historical load data by combining the load average value, the variable average value, the load mean square error and the variable mean square error;
[0036] The effect of the environmental variables on the electricity consumption of the electricity consumption area is analyzed according to the correlation coefficient.
[0037] Optionally, the calculating the correlation coefficient between the environmental variable and the historical load data by combining the load average value, the variable average value, the load mean square error and the variable mean square error includes:
[0038] The correlation coefficient between the environmental variables and the historical load data is calculated by the following formula:
[0039]
[0040] Where H represents the correlation coefficient between environmental variables and historical load data, Indicates the data value corresponding to the jth variable in the environment variable, j indicates the variable sequence number corresponding to the environment variable, represents the average value of environmental variables, represents the load value in the kth power consumption cycle in the historical load data, k represents the sequence number of the power consumption cycle of the historical load data, represents the average load value, and represent the mean square error of environmental variables and the mean square error of loads respectively.
[0041] In order to solve the above problem, the present invention further provides a device, comprising:
[0042] at least one processor; and,
[0043] a memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power load prediction method described above.
[0045] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in a device to implement the above power load prediction method.
[0046] The present invention can eliminate the data influence corresponding to the monitoring fluctuation and anomaly in the historical load data by calculating the data smoothing coefficient corresponding to the historical load data, thereby improving the data quality and reliability of the historical load data. The present invention can reduce the difference between the smooth load data by cumulatively quantifying the smooth load data, provide accurate reference data for the construction of the subsequent power consumption time series analysis model, and improve the construction accuracy of the subsequent power consumption time series analysis model. The present invention can predict the future load changes in the power consumption area by using the power consumption time series analysis model to draw the regional forecast load curve corresponding to the power consumption area, which helps the power supplier to make more accurate load planning and avoid the imbalance of supply and demand caused by load fluctuations. The present invention analyzes the power consumption effect of the environmental variables on the power consumption area by combining the historical load data and the historical power consumption environment data, and can understand the influence relationship of the environmental variables on the power consumption of the power consumption area, so as to facilitate the subsequent curve optimization processing of the regional load curve and improve the accuracy of the power load analysis of the power consumption area. The present invention formulates the power supply plan corresponding to the power consumption area according to the target load curve, so as to improve the power supply reliability of the power consumption area and reduce the impact of the environment on the power supply. Therefore, the power load prediction method, device and storage medium provided by the embodiments of the present invention are aimed at improving the accuracy of power load prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 A schematic diagram of a flow chart of a method for predicting power load provided by an embodiment of the present invention;
[0048] Figure 2 A functional module diagram of a power load prediction device provided by an embodiment of the present invention;
[0049] Figure 3 A schematic diagram of the structure of a device for implementing the power load prediction method provided in one embodiment of the present invention.
[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0052] The embodiment of the present application provides a method for predicting power load. In the embodiment of the present application, the execution subject of the power load prediction method is a device, which is an electronic device in the present application, including but not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the power load prediction method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0053] Reference Figure 1 FIG. 1 is a flow chart of a method for predicting power load provided by an embodiment of the present invention. In this embodiment, the method for predicting power load includes steps S1 to S5:
[0054] S1. Obtain the power consumption area to be analyzed, dispatch the historical load data and historical power consumption environment data corresponding to the power consumption area, calculate the data smoothing coefficient corresponding to the historical load data, and perform data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data.
[0055] The present invention can eliminate the influence of monitoring fluctuations and data corresponding to anomalies in the historical load data by calculating the data smoothing coefficient corresponding to the historical load data, thereby improving the data quality and reliability of the historical load data, wherein the power consumption area needs to perform power load analysis, such as an industrial park or a hospital institution with concentrated industries, and the historical load data is the past power consumption data of the power consumption area, such as the power consumption data of production equipment in the industrial park, and the power consumption data of medical equipment in the hospital institution. The historical power consumption environment data is the past power consumption environment data of the power consumption area, such as the record data of temperature changes or humidity changes in the power consumption area, and the data smoothing coefficient is an adjustment parameter when smoothing the historical load data. The smoothed load data is the data obtained after the historical load data is adjusted according to the data smoothing coefficient. Optionally, the historical load data and historical power consumption environment data corresponding to the power consumption area can be obtained from the regional database through human-computer interaction.
[0056] As an embodiment of the present invention, the calculating of the data smoothing coefficient corresponding to the historical load data includes:
[0057] The data smoothing coefficient corresponding to the historical load data is calculated by the following formula:
[0058]
[0059] Among them, A represents the data smoothing coefficient corresponding to the historical load data, Indicates the Nth load data of historical load data, represents the bth load data of the historical load data, b represents the sequence number of the historical load data, and N represents the total number of data of the historical load data.
[0060] As an embodiment of the present invention, the historical load data is smoothed according to the data smoothing coefficient to obtain smoothed load data, including: performing data anomaly elimination processing on the historical load data to obtain eliminated load data, performing noise reduction processing on the eliminated load data to obtain noise-reduced load data, and performing data smoothing processing on the noise-reduced load data according to the data smoothing coefficient to obtain smoothed load data.
[0061] The eliminated load data is the data obtained after the abnormal data in the historical load data is removed, and the denoised load data is the data obtained after the noise interference in the eliminated load data is suppressed. Therefore, N may be greater than or equal to .
[0062] Furthermore, the smoothed load data and other data in the noise reduction load data are obtained by multiplying the data smoothing coefficient by the previous adjacent load data, and the obtained data is multiplied by the data smoothing coefficient to obtain the next data, and the calculation is performed in sequence to the last data in the historical load data, and the data obtained after multiplying by the data smoothing coefficient is used to replace the original data to obtain the target data.
[0063] Optionally, the data anomaly elimination processing for the historical load data may be implemented by a elimination tool, the elimination tool is compiled by a script language, and the noise reduction processing for the eliminated load data may be implemented by a low-pass filter.
[0064] Optionally, as an optional embodiment of the present invention, performing data smoothing processing on the noise reduction load data according to the data smoothing coefficient to obtain smoothed load data includes:
[0065] The noise reduction load data is smoothed using the following formula:
[0066]
[0067] in, represents the hth smoothed load data, h represents the sequence number of the smoothed load data, Indicates the data smoothing coefficient corresponding to the historical load data, represents the i+1th noise reduction load data, Indicates the i-th noise reduction load data, i represents the sequence number of the noise reduction load data, and the value range of i is 1 to , The total number of noise reduction load data is represented, and the hth smoothed load data is the smoothed load data corresponding to the i+1th noise reduction load data.
[0068] It should be further explained that, in the present invention, the data sequence number of the load data in the above formula ( ) and the data sequence number of the historical load data ( +1), they are adjacent in terms of serial number relationship, such as When the sequence number is 1, The sequence number of +1 is 2.
[0069] S2. Perform cumulative quantitative processing on the smoothed load data to obtain cumulative load data, and construct a power consumption time series analysis model for the power consumption area based on the cumulative load data.
[0070] The present invention can reduce the differences between the smoothed load data by performing cumulative quantitative processing on the smoothed load data, provide accurate reference data for the construction of subsequent power consumption timing analysis models, and improve the accuracy of the construction of subsequent power consumption timing analysis models, wherein the cumulative load data is the data obtained by sequentially accumulating various data of the smoothed load data.
[0071] As an embodiment of the present invention, the step of performing cumulative quantization processing on the smoothed load data to obtain cumulative load data includes:
[0072] The smoothed load data can be cumulatively quantified using the following formula:
[0073]
[0074] Among them, F represents the accumulated load data, h represents the sequence number of the smoothed load data, and d represents the number of data of the smoothed load data. Indicates the hth smoothed load data among the smoothed load data.
[0075] The present invention constructs a power consumption timing analysis model for the power consumption area based on the accumulated load data, so as to facilitate the subsequent use of the power consumption timing analysis model to predict the power load of the power consumption area, thereby improving the accuracy of the subsequent power load analysis of the power consumption area, wherein the power consumption timing analysis model is a model for performing power load analysis on the power consumption area.
[0076] As an embodiment of the present invention, constructing a power consumption timing analysis model for the power consumption area based on the accumulated load data includes: standardizing the accumulated load data to obtain standard load data, analyzing trend characteristics corresponding to the standard load data, determining a timing analysis model template corresponding to the standard load data based on the trend characteristics, performing parameter identification on the timing analysis model template in combination with the standard load data to obtain model parameters, adjusting parameters of the timing analysis model template based on the model parameters to obtain a target timing analysis model, and using the target timing analysis model as the power consumption timing analysis model for the power consumption area.
[0077] Among them, the standard load data is the data obtained after eliminating the differences between the data in the cumulative load data, the trend characteristics are the growth characteristics corresponding to the standard load data, such as gradual increase or exponential growth, the time series analysis model template is the model type for time series analysis of the standard load data, such as a moving average model or a gray model, etc., the model parameters are the parameters describing the model rules obtained after the time series analysis model template is trained with the standard load data, and the target time series analysis model is the model obtained after the initial parameters in the time series analysis model template are replaced by the model parameters.
[0078] Furthermore, as an optional embodiment of the present invention, the standardization of the accumulated load data can be achieved through a Z-score standardization method, and the analysis of the trend characteristics corresponding to the standard load data can be achieved through a piecewise linear regression method. The standard load data is divided into several segments, and each segment is subjected to linear regression analysis. The slope and intercept estimated for each sub-segment can represent the trends of different stages. If the trend characteristic is increasing, the GM (1, 1) model can be used as a time series analysis model template corresponding to the standard load data. If the trend characteristic is exponential growth, the GM (2, 1) model or other high-order gray models can be considered as time series analysis model templates corresponding to the standard load data. The standard load data can be input into the time series analysis model template, the model is trained to obtain training results, and the loss value between the training results and the preset standard value is calculated. According to the loss value, the parameters of the time series analysis model template are adjusted until the training results are consistent with the preset standard values.
[0079] S3. Collect current power load data and current power consumption environment corresponding to the power consumption area, input the current power load data as input data into the power consumption timing analysis model, and use the power consumption timing analysis model to draw a regional forecast load curve corresponding to the power consumption area.
[0080] The present invention uses the power consumption time series analysis model to draw a regional forecast load curve corresponding to the power consumption area, and can predict the future load changes in the power consumption area, which helps power suppliers to make more accurate load planning and avoid supply and demand imbalances caused by load fluctuations. The current power load data and the current power consumption environment are respectively the data of the current power consumption record of the power consumption area and the environment corresponding to the power consumption. The regional forecast load curve is a load change curve of the power consumption area in the future period predicted based on the current power load data. Optionally, the current power load data corresponding to the power consumption area can be collected by power monitoring equipment, and the current power consumption environment can be obtained through weather forecast data. Based on the current power load data, the power load change rate of the power consumption area can be calculated by using the power consumption time series analysis model. Based on the power load change rate, the power load values corresponding to the power consumption area at different subsequent times are calculated. Based on the time point and the power load value, the load curve of the power consumption area is drawn to obtain the regional forecast load curve.
[0081] S4. Identify the environmental variables in the historical power consumption environment data, combine the historical load data and the historical power consumption environment data, analyze the power consumption effect of the environmental variables on the power consumption area, combine the power consumption effect and the current power consumption environment, perform curve adjustment processing on the regional load curve, and obtain the target load curve.
[0082] The present invention combines the historical load data and the historical electricity consumption environment data to analyze the electricity consumption effect of the environmental variables on the electricity consumption area, so as to understand the influence of the environmental variables on the electricity consumption of the electricity consumption area, thereby facilitating the subsequent curve optimization processing of the regional load curve and improving the accuracy of the electricity load analysis of the electricity consumption area, wherein the environmental variables are environmental factors in the historical electricity consumption environment data, such as temperature and humidity, and the electricity consumption effect represents the influence of the environmental variables on the electricity demand of the electricity consumption area. Furthermore, identifying the environmental variables in the historical electricity consumption environment data can be achieved through an identification algorithm, and the identification algorithm is compiled by a programming language.
[0083] As an embodiment of the present invention, the combination of the historical load data and the historical power consumption environment data to analyze the power consumption effect of the environmental variables on the power consumption area includes: classifying the historical power consumption environment data according to the environmental variables to obtain environmental variable data, respectively calculating the average values corresponding to the historical load data and the environmental variable data to obtain the load average value and the variable average value, calculating the mean square error corresponding to the historical load data and the environmental variable data according to the load average value and the variable average value to obtain the load mean square error and the variable mean square error, combining the load average value, the variable average value, the load mean square error and the variable mean square error to calculate the correlation coefficient between the environmental variables and the historical load data, and analyzing the power consumption effect of the environmental variables on the power consumption area according to the correlation coefficient.
[0084] Among them, the environmental variable data is the data corresponding to the environmental variable in the historical power consumption environment data, the load average value and the variable average value are the means corresponding to the historical load data and the environmental variable data respectively, the load mean square error and the variable mean square error respectively represent the degree of difference between the historical load data and the environmental variable data, and the correlation coefficient represents the degree of correlation between the environmental variable and the historical load data.
[0085] Optionally, classification processing of the historical electricity consumption environment data can be achieved through a naive Bayes classifier, the average values corresponding to the historical load data and the environmental variable data can be calculated through an average function, and the mean square error corresponding to the historical load data and the environmental variable data can be calculated through a variance function. If the correlation coefficient is a positive number, the environmental variable has a positive correlation with the electricity consumption effect of the power consumption area. If the correlation coefficient is a negative number, the environmental variable has a negative correlation with the electricity consumption effect of the power consumption area. If the correlation coefficient is 0, the environmental variable has no correlation with the electricity consumption effect of the power consumption area.
[0086] Optionally, as an optional embodiment of the present invention, the combining the load average value, the variable average value, the load mean square error and the variable mean square error to calculate the correlation coefficient between the environmental variable and the historical load data includes:
[0087] The correlation coefficient between the environmental variables and the historical load data is calculated by the following formula:
[0088]
[0089] Where H represents the correlation coefficient between environmental variables and historical load data, Indicates the data value corresponding to the jth variable in the environment variable, j indicates the variable sequence number corresponding to the environment variable, represents the mean value of the variable, represents the load value in the kth power consumption cycle in the historical load data, k represents the sequence number of the power consumption cycle of the historical load data, represents the average load value, and They represent the mean square error of variables and the mean square error of loadings, respectively.
[0090] The present invention optimizes the regional load curve by combining the power consumption effect and the current power consumption environment, so as to obtain an accurate load prediction curve corresponding to the power consumption area, thereby facilitating the subsequent determination of the regional power consumption load corresponding to the power consumption area, wherein the target load curve is the curve of the regional load curve after optimization processing. Optionally, according to the current power consumption environment, the current environmental variables of the power consumption area are determined, and according to the current environmental variables, the effect type corresponding to the power consumption effect is analyzed. According to the correlation coefficient calculated above, the slope of the regional load curve is adjusted. If it is a positive correlation, the slope of the regional load curve is added to the correlation coefficient to obtain a new curve slope. According to the new curve slope, the slope of the regional load curve is adjusted to obtain the target load curve. If it is a negative correlation, the slope of the regional load curve is subtracted from the correlation coefficient, and the slope of the regional load curve is adjusted.
[0091] S5. According to the target load curve, formulate a power supply plan corresponding to the power consumption area, and use the power supply plan to perform power supply processing in the power consumption area to obtain a power supply result.
[0092] The present invention formulates a power supply plan corresponding to the power consumption area according to the target load curve, so as to improve the power supply reliability of the power consumption area and reduce the impact of the environment on the power supply, wherein the power supply plan is a specific power mode corresponding to the power consumption area. Optionally, according to the target load curve, the regional power load corresponding to the power consumption area is determined, and the power generation mode corresponding to the power consumption area is queried, such as wind power generation or thermal power generation, and the power generation characteristics corresponding to the power generation mode are analyzed, such as power generation energy, power conversion rate and the degree of pollution caused. The power generation characteristics can be obtained by analyzing the power generation data corresponding to the power generation mode. According to the power generation characteristics, the power generation mode is evaluated. According to the evaluation results, the power generation modes are combined to obtain the optimal power generation combination. According to the regional power load, the power generation corresponding to the optimal power generation combination is determined. Combined with the power generation and the optimal power generation combination, the power supply plan corresponding to the power consumption area is obtained.
[0093] The present invention can eliminate the data influence corresponding to the monitoring fluctuation and anomaly in the historical load data by calculating the data smoothing coefficient corresponding to the historical load data, thereby improving the data quality and reliability of the historical load data. The present invention can reduce the difference between the smooth load data by cumulatively quantifying the smooth load data, provide accurate reference data for the construction of the subsequent power consumption time series analysis model, and improve the construction accuracy of the subsequent power consumption time series analysis model. The present invention can predict the future load changes in the power consumption area by using the power consumption time series analysis model to draw the regional forecast load curve corresponding to the power consumption area, which helps the power supplier to make more accurate load planning and avoid the imbalance of supply and demand caused by load fluctuations. The present invention analyzes the power consumption effect of the environmental variables on the power consumption area by combining the historical load data and the historical power consumption environment data, and can understand the influence relationship of the environmental variables on the power consumption of the power consumption area, so as to facilitate the subsequent curve optimization processing of the regional load curve and improve the accuracy of the power load analysis of the power consumption area. The present invention formulates the power supply plan corresponding to the power consumption area according to the target load curve, so as to improve the power supply reliability of the power consumption area and reduce the impact of the environment on the power supply. Therefore, the power load forecasting method provided by the embodiment of the present invention aims to improve the accuracy of power load forecasting.
[0094] like Figure 2 , which is a functional module diagram of a power load prediction device provided by an embodiment of the present invention.
[0095] The power load prediction device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the power load prediction device 100 can include a data smoothing processing module 101, a model building module 102, a load curve drawing module 103, a load curve optimization module 104 and a power supply plan formulation module 105. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0096] In this embodiment, the functions of each module / unit are as follows:
[0097] A data smoothing processing module is used to obtain the power consumption area to be analyzed, dispatch the historical load data and historical power consumption environment data corresponding to the power consumption area, calculate the data smoothing coefficient corresponding to the historical load data, and perform data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data, wherein the data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data includes:
[0098] Performing data anomaly elimination processing on the historical load data to obtain eliminated load data;
[0099] Performing noise reduction processing on the eliminated load data to obtain noise-reduced load data;
[0100] According to the data smoothing coefficient, the noise reduction load data is smoothed by the following formula to obtain smoothed load data:
[0101]
[0102] in, represents the hth smoothed load data, h represents the sequence number of the smoothed load data, Indicates the data smoothing coefficient corresponding to the historical load data, represents the i+1th noise reduction load data, Indicates the i-th noise reduction load data, i represents the sequence number of the noise reduction load data, and the value range of i is 1 to , The total number of noise reduction load data, the hth smoothed load data is the smoothed load data corresponding to the i+1th noise reduction load data;
[0103] A model building module, used for performing cumulative quantitative processing on the smoothed load data to obtain cumulative load data, and building a power consumption time series analysis model for the power consumption area according to the cumulative load data;
[0104] A load curve drawing module, used to collect current power load data and current power consumption environment corresponding to the power consumption area, input the current power load data as input data into the power consumption time series analysis model, and use the power consumption time series analysis model to draw a regional load curve corresponding to the power consumption area;
[0105] A load curve optimization module, used to identify environmental variables in the historical power consumption environment data, combine the historical load data with the historical power consumption environment data, analyze the power consumption effect of the environmental variables on the power consumption area, combine the power consumption effect and the current power consumption environment, perform curve optimization processing on the regional load curve, and obtain a target load curve;
[0106] The power supply plan formulation module is used to formulate a power supply plan corresponding to the power consumption area according to the target load curve, and use the power supply plan to perform power supply processing in the power consumption area to obtain a power supply result.
[0107] In detail, each module described in the power load prediction device 100 described in the embodiment of the present application is used in the same manner as described above. Figure 1The technical means are the same as the power load forecasting method described in, and can produce the same technical effects, so they will not be repeated here.
[0108] like Figure 3 , which is a schematic diagram of the structure of an electronic device 1 for implementing a method for predicting power load provided by an embodiment of the present invention.
[0109] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a power load prediction method program.
[0110] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device 1, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing programs or modules stored in the memory 11 (for example, executing a power load prediction method program, etc.), and calling data stored in the memory 11.
[0111] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the power load prediction method program, but also be used to temporarily store data that has been output or is to be output.
[0112] The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0113] The communication interface 13 is used for communication between the above-mentioned electronic device 1 and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0114] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0115] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0116] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0117] The power load prediction method program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0118] Acquire a power consumption area to be analyzed, dispatch historical load data and historical power consumption environment data corresponding to the power consumption area, calculate a data smoothing coefficient corresponding to the historical load data, and perform data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data, wherein the performing data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data includes:
[0119] Performing data anomaly elimination processing on the historical load data to obtain eliminated load data;
[0120] Performing noise reduction processing on the eliminated load data to obtain noise-reduced load data;
[0121] According to the data smoothing coefficient, the noise reduction load data is smoothed by the following formula to obtain smoothed load data:
[0122]
[0123] in, represents the hth smoothed load data, h represents the sequence number of the smoothed load data, Indicates the data smoothing coefficient corresponding to the historical load data, represents the i+1th noise reduction load data, Indicates the i-th noise reduction load data, i represents the sequence number of the noise reduction load data, and the value range of i is 1 to , The total number of noise reduction load data is represented, and the hth smoothed load data is the smoothed load data corresponding to the i+1th noise reduction load data.
[0124] Performing cumulative quantitative processing on the smoothed load data to obtain cumulative load data, and constructing a power consumption time series analysis model for the power consumption area according to the cumulative load data;
[0125] Collecting current power load data and current power consumption environment corresponding to the power consumption area, inputting the current power load data as input data into the power consumption time series analysis model, and using the power consumption time series analysis model to draw a regional load curve corresponding to the power consumption area;
[0126] Identify environmental variables in the historical power usage environment data, combine the historical load data and the historical power usage environment data, analyze the power usage effect of the environmental variables on the power usage area, combine the power usage effect and the current power usage environment, perform curve optimization processing on the regional load curve, and obtain a target load curve;
[0127] According to the target load curve, a power supply plan corresponding to the power consumption area is formulated, and the power supply processing of the power consumption area is performed using the power supply plan to obtain a power supply result.
[0128] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0129] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0130] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0131] Acquire a power consumption area to be analyzed, dispatch historical load data and historical power consumption environment data corresponding to the power consumption area, calculate a data smoothing coefficient corresponding to the historical load data, and perform data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data, wherein the performing data smoothing processing on the historical load data according to the data smoothing coefficient to obtain smoothed load data includes:
[0132] Performing data anomaly elimination processing on the historical load data to obtain eliminated load data;
[0133] Performing noise reduction processing on the eliminated load data to obtain noise-reduced load data;
[0134] According to the data smoothing coefficient, the noise reduction load data is smoothed by the following formula to obtain smoothed load data:
[0135]
[0136] in, represents the hth smoothed load data, h represents the sequence number of the smoothed load data, Indicates the data smoothing coefficient corresponding to the historical load data, represents the i+1th noise reduction load data, Indicates the i-th noise reduction load data, i represents the sequence number of the noise reduction load data, and the value range of i is 1 to , The total number of noise reduction load data is represented, and the hth smoothed load data is the smoothed load data corresponding to the i+1th noise reduction load data.
[0137] Performing cumulative quantitative processing on the smoothed load data to obtain cumulative load data, and constructing a power consumption time series analysis model for the power consumption area according to the cumulative load data;
[0138] Collecting current power load data and current power consumption environment corresponding to the power consumption area, inputting the current power load data as input data into the power consumption time series analysis model, and using the power consumption time series analysis model to draw a regional load curve corresponding to the power consumption area;
[0139] Identify environmental variables in the historical power usage environment data, combine the historical load data and the historical power usage environment data, analyze the power usage effect of the environmental variables on the power usage area, combine the power usage effect and the current power usage environment, perform curve optimization processing on the regional load curve, and obtain a target load curve;
[0140] According to the target load curve, a power supply plan corresponding to the power consumption area is formulated, and the power supply processing of the power consumption area is performed using the power supply plan to obtain a power supply result.
[0141] In the several embodiments provided by the present invention, it should be understood that the provided methods, electronic devices and storage media can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0142] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0143] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0144] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0145] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0146] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for predicting power load, characterized in that: The method comprises: Acquire a power consumption area to be analyzed, schedule historical load data and historical power consumption environment data corresponding to the power consumption area, and calculate a data smoothing coefficient corresponding to the historical load data, wherein the calculation of the data smoothing coefficient corresponding to the historical load data includes: The data smoothing coefficient corresponding to the historical load data is calculated by the following formula: Among them, A represents the data smoothing coefficient corresponding to the historical load data, Indicates the Nth load data of historical load data, Indicates historical load data Load data, Indicates the serial number of the historical load data, and N indicates the total number of data of the historical load data; According to the data smoothing coefficient, the historical load data is subjected to data smoothing processing to obtain smoothed load data, wherein according to the data smoothing coefficient, the historical load data is subjected to data smoothing processing to obtain smoothed load data, including: Performing data anomaly elimination processing on the historical load data to obtain eliminated load data; Performing noise reduction processing on the eliminated load data to obtain noise-reduced load data; According to the data smoothing coefficient, the noise reduction load data is smoothed by the following formula to obtain smoothed load data: in, represents the hth smoothed load data, h represents the sequence number of the smoothed load data, Indicates the data smoothing coefficient corresponding to the historical load data, represents the i+1th noise reduction load data, Indicates the i-th noise reduction load data, i represents the sequence number of the noise reduction load data, and the value range of i is 1 to , The total number of noise reduction load data, the hth smoothed load data is the smoothed load data corresponding to the i+1th noise reduction load data; Performing cumulative quantitative processing on the smoothed load data to obtain cumulative load data, and constructing a power consumption time series analysis model for the power consumption area according to the cumulative load data; The step of constructing a power consumption time series analysis model for the power consumption area according to the accumulated load data includes: Performing standardization processing on the accumulated load data to obtain standard load data; Analyzing trend characteristics corresponding to the standard load data; Determining a time series analysis model template corresponding to the standard load data according to the trend characteristics; In combination with the standard load data, parameter identification is performed on the time series analysis model template to obtain model parameters; According to the model parameters, adjusting the parameters of the timing analysis model template to obtain a target timing analysis model; Using the target time series analysis model as the power consumption time series analysis model of the power consumption area; The step of performing cumulative quantization processing on the smoothed load data to obtain cumulative load data includes: The smoothed load data is cumulatively quantified using the following formula: Among them, F represents the cumulative load data, h represents the sequence number of the smoothed load data, and d represents the number of data of the smoothed load data. represents the hth smoothed load data in the smoothed load data; Collecting current power load data and current power consumption environment corresponding to the power consumption area, inputting the current power load data as input data into the power consumption time series analysis model, and using the power consumption time series analysis model to draw a regional load curve corresponding to the power consumption area; Identify the environmental variables in the historical power consumption environment data, combine the historical load data with the historical power consumption environment data, and analyze the power consumption effect of the environmental variables on the power consumption area. The combining the historical load data and the historical power consumption environment data to analyze the power consumption effect of the environmental variables on the power consumption area includes: According to the environmental variables, the historical power usage environment data is classified and processed to obtain environmental variable data; Calculate the average values corresponding to the historical load data and the environmental variable data respectively to obtain the load average value and the variable average value; Calculate the mean square error corresponding to the historical load data and the environmental variable data according to the load mean value and the variable mean value to obtain the load mean square error and the variable mean square error; Calculate the correlation coefficient between the environmental variable and the historical load data by combining the load average value, the variable average value, the load mean square error and the variable mean square error; The calculating the correlation coefficient between the environmental variable and the historical load data by combining the load average value, the variable average value, the load mean square error and the variable mean square error comprises: The correlation coefficient between the environmental variables and the historical load data is calculated by the following formula: Where H represents the correlation coefficient between environmental variables and historical load data, Indicates the data value corresponding to the jth variable in the environment variable, j indicates the variable sequence number corresponding to the environment variable, represents the average value of environmental variables, represents the load value in the kth power consumption cycle in the historical load data, k represents the sequence number of the power consumption cycle of the historical load data, represents the average load value, and represent the mean square error of environmental variables and the mean square error of load respectively; Analyzing the effect of the environmental variables on the electricity consumption of the electricity consumption area according to the correlation coefficient; Combining the power consumption effect and the current power consumption environment, performing curve optimization processing on the regional load curve to obtain a target load curve; According to the target load curve, a power supply plan corresponding to the power consumption area is formulated, and the power supply processing of the power consumption area is performed using the power supply plan to obtain a power supply result.
2. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the power load prediction method as claimed in claim 1.
3. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the power load forecasting method as claimed in claim 1 is implemented.
