A method and system for intelligent dispatching of power grid based on user demand
By acquiring and analyzing power consumption data in power distribution boxes, calculating power consumption stability and trends, and adjusting the ARIMA model prediction weight, the problem of insufficient prediction accuracy of the ARIMA model is solved and the accuracy of power grid dispatching is improved.
Patent Information
- Application Number
- CN202410368208.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-03-28
AI Technical Summary
The existing technology has low accuracy when predicting users' electricity consumption through ARIMA models, resulting in insufficient accuracy of power grid dispatching, especially when users' electricity consumption habits are irregular.
By obtaining the electricity consumption of each household in each period of each day in the power distribution box, calculate the stability of electricity consumption, the degree of density stability and the reference degree of change trends, adjust the prediction weight in the prediction model, and improve the prediction of electricity consumption. accuracy.
It improves the accuracy of power consumption prediction and power grid dispatching, especially during periods when users' power consumption habits are relatively unstable, and enhances the stability of power grid management.
Smart Images

Figure CN118199049B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data prediction, and in particular to a method and system for intelligent dispatching of a power grid based on user demand. Background Art
[0002] Grid dispatching refers to the management and control of various links in the power system, such as power generation, transmission and distribution, to ensure the safe, stable and efficient operation of the power system. Among them, distribution dispatching refers to the management and control of the distribution network in the power system, so that the power consumption and power supply are relatively balanced, avoiding the instability of the distribution system caused by insufficient or excessive power supply, and preventing the collapse of the power grid; within the scope of daily, monthly and annual, the power consumption of users has relatively regular changes. For example, users prefer to use high-power electrical appliances such as electric water heaters and air conditioners in a certain period of time. Therefore, the distribution dispatching related institutions usually carry out distribution dispatching based on past experience and data; however, the use of electricity is carried out all the time, resulting in further subdivided time spans such as hours and minutes. It is impossible to carry out more accurate distribution dispatching by setting the power supply only based on experience and data.
[0003] Considering that the essence of the Autoregressive Integrated Moving Average (ARIMA) model is to predict the future based on the historical information of the data itself, the existing technology usually uses the ARIMA model to predict the user's electricity demand in the current period; and adjusts the power supply according to the electricity demand to perform grid scheduling.
[0004] However, the user's electricity consumption will be affected by many factors such as personal behavior and external environment. For example, the user's electricity consumption habits suddenly change, resulting in the disruption of the electricity consumption pattern, or the user's electricity consumption habits themselves are relatively chaotic, that is, there is no electricity consumption pattern, which will interfere with the prediction results, resulting in low accuracy of the predicted electricity consumption; that is, the predicted electricity consumption obtained by the existing technology through the ARIMA model is less accurate, resulting in insufficient accuracy in grid scheduling for each period of the day based on the predicted electricity consumption. Summary of the invention
[0005] In order to solve the technical problem that the power consumption forecast obtained by the ARIMA model in the prior art is low in accuracy, resulting in insufficient accuracy in power grid dispatching for each period of the day according to the forecast power consumption, the purpose of the present invention is to provide a power grid intelligent dispatching method and system based on user needs, and the technical solutions adopted are as follows:
[0006] The present invention proposes a method for intelligent dispatching of a power grid based on user demand, the method comprising:
[0007] From the historical electricity consumption data in the power distribution box, obtain the power grid electricity consumption of each household in each cycle time period of each day;
[0008] According to the fluctuation of power grid electricity consumption of each household in the same period before the current day, the stability of electricity consumption of each household in each period is obtained;
[0009] Perform cluster analysis on the stability of electricity consumption data of all households in each periodic time period to obtain at least two electricity consumption stability clusters; in each periodic time period, obtain the density and stability of each household in each periodic time period based on the density and stability of all electricity consumption in the electricity consumption stability clusters in which each household is located;
[0010] According to the change stability of the power consumption stability in the adjacent cycle time periods corresponding to each cycle time period of each household, the reference degree of the change trend of each household in each cycle time period is obtained; according to the dense stability degree and the reference degree of the change trend, the final stability of each household in each cycle time period is obtained;
[0011] The power consumption of each household in each cycle time period is predicted after the prediction weight of each household in the prediction model is modified according to the final stability, so as to obtain the predicted power consumption of each household in the cycle time period corresponding to the current moment; and the power grid is dispatched for the cycle time period corresponding to the current moment according to the predicted power consumption.
[0012] Preferably, the method for acquiring the power consumption stability includes:
[0013] In the same cycle time period, the power grid electricity consumption of each household for a preset number of days before the current day is arranged in chronological order to obtain the historical power consumption sequence of each household in each cycle time period;
[0014] In the historical power consumption sequence, among the first left adjacent power grid power consumption and the first right adjacent power grid power consumption corresponding to each power grid power consumption, the number of power grid power consumption differences less than a preset difference value is used as the local power consumption similarity of each power grid power consumption;
[0015] The accumulated value of the local power consumption similarity of all power grid power consumption in the historical power consumption sequence is used as the overall power consumption similarity; the negative correlation mapping value of the variance of all power grid power consumption in the historical power consumption sequence is used as the reference power stability;
[0016] According to the overall electricity consumption similarity and the reference electricity quantity stability, the electricity consumption stability of each household in each cycle time period is obtained; the overall electricity consumption similarity and the reference electricity quantity stability are both positively correlated with the electricity consumption stability.
[0017] Preferably, the method for obtaining the density stability comprises:
[0018] In each power consumption stability cluster, the difference between each power consumption stability and the power consumption stability with the smallest difference is taken as the local dispersion degree of each power consumption stability; the negative correlation mapping value of the mean of the local dispersion degree of all power consumption stabilities in each power consumption stability cluster is taken as the overall concentration of each power consumption stability cluster;
[0019] The negative correlation mapping value of the variance of all electricity stability in each electricity stability cluster is taken as the overall stability of each electricity stability cluster;
[0020] In each periodic time period, the normalized value of the product of the number of electricity stability clusters in which each household is located, the overall concentration and the overall stability is used as the dense stability level of each household in each periodic time period.
[0021] Preferably, the method for obtaining the reference degree of the change trend includes:
[0022] The electricity consumption stability of all periodic time periods corresponding to each household is arranged in time sequence and then curve fitting is performed to obtain the overall stability time series curve corresponding to each household;
[0023] On the overall stability time series curve, the difference between the power consumption stability in each cycle time period and the power consumption stability in the next cycle time period is taken as the power consumption stability change of each household in each cycle time period;
[0024] On the overall stability time series curve, the power consumption stability of all periodic time periods between two minimum points on both sides of each periodic time period is arranged in time order to obtain the local stability time series sequence corresponding to each household in each periodic time period;
[0025] According to the fluctuation of the electricity consumption stability change amount in each periodic time period in the local stability time series, a change trend reference degree calculation model is constructed; and the change trend reference degree of each household in each periodic time period is calculated according to the change trend reference degree calculation model.
[0026] Preferably, the method for obtaining the final stability includes:
[0027] The average of the density stability degree and the reference degree of the change trend is taken as the final stability of each household in each cycle time period.
[0028] Preferably, the method for obtaining the predicted power consumption includes:
[0029] The product of the final stability and the ARIMA parameter corresponding to each household in each periodic time period in the ARIMA model is used as the modified ARIMA parameter corresponding to each household in each periodic time period; the ARIMA parameter includes an autoregressive coefficient and a moving average coefficient;
[0030] The power grid electricity consumption of each household in a preset predicted number of periodic time periods before the periodic time period corresponding to the current moment is arranged in chronological order to obtain a prediction sequence of power grid electricity consumption corresponding to the current moment for each household; based on each power grid electricity consumption in the power grid electricity consumption prediction sequence and the modified ARIMA parameters of the periodic time period corresponding to each power grid electricity consumption, data prediction is performed in combination with the ARIMA model to obtain the predicted electricity consumption of each household in the periodic time period corresponding to the current moment.
[0031] Preferably, the change trend reference degree calculation model includes:
[0032]
[0033] Among them, Q r,t is the reference degree of change trend of the rth household in the tth period; n r,t is the local stability time series corresponding to the rth household in the tth period; Δw r,t,u is the stable change of electricity consumption of the rth household in the uth period in the local stability time series corresponding to the tth period; is the variance of all electricity stability changes in the local stability time series corresponding to the r-th household in the t-th cycle time period; exp() is an exponential function with a natural constant as the base.
[0034] Preferably, the method for obtaining the power consumption stability of each household in each periodic time period according to the overall power consumption similarity and the reference power consumption stability includes:
[0035] The product of the overall electricity consumption similarity and the reference electricity consumption stability is taken as the electricity consumption stability of each household in each cycle time period.
[0036] Preferably, the method for performing power grid dispatching for the same period of time on the day according to the predicted power consumption includes:
[0037] The accumulated value of the predicted electricity consumption of all households in the periodic time period corresponding to the current moment is used as the demand dispatched electricity in the periodic time period corresponding to the current moment; and the power grid is dispatched for the periodic time period corresponding to the current moment according to the demand dispatched electricity.
[0038] The present invention also proposes a user-demand-based intelligent power grid dispatching system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any one of the steps of a user-demand-based intelligent power grid dispatching method.
[0039] The present invention has the following beneficial effects:
[0040] Since the time series data prediction of the ARIMA model is based on the linear assumption, the regularity or stability of the input time series data has a great influence on the accuracy of the prediction results. When predicting electricity demand through the ARIMA model, when all users have relatively stable electricity consumption habits in all periodic time periods, that is, when the electricity consumption time periods are relatively regular, the predicted electricity consumption is usually more accurate, and the periodic time period is the same time period of each day; on the contrary, when all users have relatively chaotic electricity consumption habits in all periodic time periods, that is, when the electricity consumption habits lack regularity, the accuracy of the predicted electricity consumption is low; therefore, when predicting data based on the ARIMA model, the electricity consumption in the periodic time periods where the users' electricity consumption habits are relatively stable contributes more to the accuracy of the predicted electricity consumption, while the electricity consumption in the periodic time periods where the users' electricity consumption habits are relatively unstable will affect the accuracy of the predicted electricity consumption to a certain extent;
[0041] Therefore, if an analysis is performed based on the electricity usage habits of each user in each periodic time period, the prediction weight of the periodic time period with relatively stable electricity usage habits is increased and the prediction weight of the periodic time period with unstable electricity usage habits is reduced, a more accurate prediction of electricity usage results for each user can be obtained, thereby obtaining the electricity demand corresponding to the current moment; therefore, the purpose of the present invention is to calculate the stability of each user's electricity usage habits in each periodic time period, which corresponds to the final stability in the present invention.
[0042] Considering that the main users of electricity are each household, and each household has different electricity usage habits in different periodic time periods, for each household, its electricity usage habits in each periodic time period will be reflected in the change of electricity consumption in the same periodic time period every day. Therefore, the present invention first obtains the grid electricity consumption of each household in each periodic time period every day. For each periodic time period, if the grid electricity consumption of users in the periodic time period of each day is closer, it means that the corresponding resident has more regular electricity usage habits in the periodic time period; therefore, the present invention obtains the electricity consumption stability of each household in each periodic time period based on the fluctuation of grid electricity consumption of each household in the same periodic time period before the day, so that the more regular the corresponding electricity consumption habits are, the greater the corresponding electricity consumption stability is.
[0043] Considering that the acquisition of electricity consumption stability only relies on historical data and has certain limitations, further analysis is performed on the basis of electricity consumption stability. Residents generally have collective habits, that is, the habits of most people are in line with the mainstream habits of the public. Therefore, in the same cycle time period, if there are more similar user electricity consumption records, it means that the electricity consumption in this time period is in line with the collective habits, that is, the stability of this cycle time period is stronger. Therefore, in each cycle time period, the present invention first performs a cluster analysis on the electricity consumption stability of all households in each cycle time period, and obtains the electricity consumption stability clusters corresponding to the electricity consumption habits of each collective. According to the density and stability of all electricity consumption stability in the electricity consumption stability cluster of each household, the density and stability of each household in each cycle time period are obtained; so that the measurement of the user's electricity consumption stability in each cycle time period according to the density and stability is more accurate.
[0044] It is further necessary to consider that the electricity consumption behavior of residents is a dynamic and continuous process, that is, there will be a certain delay in the change when the electricity quantity changes. Therefore, for each periodic time period of each household, the more continuous the change trend of the electricity consumption stability in the periodic time period around it, the stronger the stability of the periodic time period. Therefore, the present invention obtains a reference degree of change trend for each household in each periodic time period based on the change and stability of the electricity consumption stability in the adjacent periodic time periods corresponding to each periodic time period of each household; so that the measurement of the user's electricity consumption stability in each periodic time period is more accurate in combination with the reference degree of change trend. The dense stability degree and the reference degree of change trend of each household in each periodic time period are further combined to obtain a more accurate final stability of each periodic time period corresponding to each household; that is, it corresponds to the purpose of the present invention.
[0045] When further predicting data based on the ARIMA model, the electricity consumption in the periodic time periods when the electricity consumption habits of users are relatively stable contributes more to the accuracy of the predicted electricity consumption, while the electricity consumption in the periodic time periods when the electricity consumption habits of users are relatively unstable will affect the accuracy of the predicted electricity consumption to a certain extent; the electricity consumption is predicted after the prediction weight of each household in each periodic time period in the prediction model is modified according to the final stability, so that the predicted electricity consumption of each household in the periodic time period corresponding to the current moment is more accurate, thereby making the accuracy of power grid scheduling for the periodic time period corresponding to the current moment based on the predicted electricity consumption higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A flow chart of a method for intelligent power grid dispatching based on user demand provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a power grid intelligent dispatching method and system based on user needs proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0049] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0050] The following is a detailed description of a specific scheme of a power grid intelligent dispatching method and system based on user needs provided by the present invention in conjunction with the accompanying drawings.
[0051] See also Figure 1 , which shows a flow chart of a method for intelligent dispatching of a power grid based on user demand provided by an embodiment of the present invention, the method comprising:
[0052] Step S1: Obtain the power grid power consumption of each household in each cycle time period of each day from the historical power consumption data in the power distribution box.
[0053] The embodiments of the present invention aim to provide a method and system for intelligent power grid dispatching based on user needs, which is used to perform data prediction based on the historical power consumption data of each household in the power distribution box, and obtain a more accurate predicted power consumption of each household in the periodic time period corresponding to the current moment, so that the accuracy of power grid dispatching based on the predicted power consumption is higher.
[0054] Since the time series data prediction of the ARIMA model is based on the linear assumption, the regularity or stability of the input time series data has a great influence on the accuracy of the prediction results. When predicting electricity demand through the ARIMA model, when all users have relatively stable electricity consumption habits in all periodic time periods, that is, when the electricity consumption time periods are relatively regular, the predicted electricity consumption is usually more accurate, and the periodic time period is the same time period of each day; on the contrary, when all users have relatively chaotic electricity consumption habits in all periodic time periods, that is, when the electricity consumption habits lack regularity, the accuracy of the predicted electricity consumption is low; therefore, when predicting data based on the ARIMA model, the electricity consumption in the periodic time periods where the users' electricity consumption habits are relatively stable contributes more to the accuracy of the predicted electricity consumption, while the electricity consumption in the periodic time periods where the users' electricity consumption habits are relatively unstable will affect the accuracy of the predicted electricity consumption to a certain extent;
[0055] Therefore, if the power consumption habits of each user in each periodic time period are analyzed, the prediction weight of the periodic time period with relatively stable power consumption habits is increased and the prediction weight of the periodic time period with unstable power consumption habits is reduced, a more accurate prediction result of power consumption of each user can be obtained, thereby obtaining the power demand corresponding to the current moment; therefore, the purpose of the present invention is to calculate the stability of the power consumption habits of each user in each periodic time period, which corresponds to the final stability in the present invention. Considering that the main users of electricity are each household, and each household has different power consumption habits in different periodic time periods, for each household, its power consumption habits in each periodic time period will be reflected in the power consumption changes in the same periodic time period every day. Therefore, in the embodiment of the present invention, the power grid power consumption of each household in each periodic time period of each day is obtained from the historical power consumption data in the power distribution box. It should be noted that the periodic time period in the embodiment of the present invention is the same period of each day. For example, if the length of a periodic time period is 1 hour, then there is a periodic time period between 10 am and 11 am. Since there are 10 am and 11 am every day, each household will collect the power grid power consumption in each periodic time period of each day. It should be noted that the unit of power consumption of the power grid in the embodiment of the present invention is kilowatt-hour, and 1 kilowatt-hour corresponds to the energy consumed by a kilowatt electrical appliance after one hour of use.
[0056] In the embodiment of the present invention, considering that too much data will affect the computing efficiency, the power grid power consumption of each household in the community in each cycle time period 10 days before the current time is synchronously collected through the power distribution box; and the length of each cycle time period is set to 10 minutes, that is, the embodiment of the present invention divides each day into 144 cycle time periods. It should be noted that the implementer can adjust the number of residential users collected, the length of the cycle time period, and the number of days for historical power consumption data collection according to the specific implementation environment, which will not be further elaborated here.
[0057] Step S2: According to the fluctuation of power consumption of each household in the same period before the current day, the power consumption stability of each household in each period is obtained.
[0058] For each cycle time period, if the grid power consumption of users in the cycle time period every day is closer, it means that the corresponding residents have more regular power consumption habits in the cycle time period; therefore, the embodiment of the present invention obtains the power consumption stability of each household in each cycle time period based on the fluctuation of grid power consumption of each household in the same cycle time period before the day, so that the more regular the corresponding power consumption habits are, the greater the corresponding power consumption stability is.
[0059] Preferably, the method for obtaining power consumption stability includes:
[0060] In the same cycle time period, the power grid electricity consumption of each household for a preset number of days before the current day is arranged in chronological order to obtain the historical electricity consumption sequence of each household in each cycle time period; since the number of days for collecting historical electricity consumption data is set to 10 in the embodiment of the present invention, the preset number is also set to 10 in the embodiment of the present invention, and the implementer can adjust it according to the specific implementation environment.
[0061] The historical electricity consumption sequence reflects the change in electricity consumption of each household in the historical data of the current cycle time period. Therefore, the more similar the grid electricity consumption in the corresponding historical electricity consumption sequence is, the more regular the electricity consumption of the household residents in the current cycle time period is. Therefore, in the historical electricity consumption sequence, in the first grid electricity consumption adjacent to the left and the first grid electricity consumption adjacent to the right corresponding to each grid electricity consumption, the number of grid electricity consumption differences less than the preset difference value is used as the local electricity consumption similarity of each grid electricity consumption; the cumulative value of the local electricity consumption similarity of all grid electricity consumption in the historical electricity consumption sequence is used as the overall electricity consumption similarity. The larger the corresponding overall electricity consumption similarity, the more adjacent grid electricity consumption of the household residents in the corresponding cycle time period is, the stronger the aggregation of similar data is, that is, the more stable the electricity consumption data in the cycle time period is, the greater the corresponding electricity consumption stability is. In the embodiment of the present invention, the preset difference value is set to 1 kilowatt-hour, and the implementer can adjust the size of the preset difference value according to the specific implementation environment, which will not be further described here.
[0062] Taking into account that when the residents' electricity consumption habits are more regular in the corresponding periodic time period, the distribution of power grid electricity consumption in the corresponding historical electricity consumption sequence is more uniform, that is, the overall fluctuation degree is smaller. According to this feature, the embodiment of the present invention uses the negative correlation mapping value of the variance of all power grid electricity consumption in the historical electricity consumption sequence as the reference electricity stability; the variance can reflect the chaotic characteristics of a set of data, and the smaller the variance, the more stable the data in the corresponding data sequence; therefore, the negative correlation mapping value of the variance of all power grid electricity consumption in the historical electricity consumption sequence is used as the reference electricity stability; so that the greater the reference electricity stability, the stronger the electricity consumption stability of the corresponding residents in the periodic time period.
[0063] Furthermore, based on the overall electricity consumption similarity and the reference electricity consumption stability, the electricity consumption stability of each household in each cycle time period is obtained; the overall electricity consumption similarity and the reference electricity consumption stability are both positively correlated with the electricity consumption stability.
[0064] Preferably, the method for obtaining the power consumption stability of each household in each periodic time period according to the overall power consumption similarity and the reference power consumption stability includes:
[0065] Since the greater the overall power similarity and the greater the reference power stability, the greater the corresponding power stability, the embodiment of the present invention uses the product of the overall power similarity and the reference power stability as the power stability of each household in each cycle time period. It should be noted that the implementer can also obtain power stability through other methods according to the specific implementation environment, such as using the sum of the normalized value of the overall power similarity and the normalized value of the reference power stability as the power stability, which will not be further elaborated here.
[0066] In the embodiment of the present invention, each periodic time of each household is taken as the periodic time of the rth household in the tth periodic time. Then, the method for obtaining the power consumption stability of the rth household in the tth periodic time is expressed in the formula as follows:
[0067]
[0068] Among them, W r,t b is the electricity consumption stability of the rth household in the tth cycle time period; r,t,i is the local electricity consumption similarity of the i-th grid electricity consumption in the historical electricity consumption sequence of the r-th household in the t-th period; m is the amount of grid electricity consumption in the historical electricity consumption sequence, that is, the preset amount; is the overall electricity consumption similarity of the rth household in the tth cycle time period; is the variance of all grid electricity consumption in the historical electricity consumption sequence of the r-th household in the t-th period; is the reference power stability of the rth household in the tth period; exp() is an exponential function with a natural constant as the base; in addition to the exp(-) function In addition to performing negative correlation mapping, implementers may also perform negative correlation mapping by other methods, such as inverse.
[0069] Step S3: Perform cluster analysis on the stability of electricity consumption data of all households in each periodic time period to obtain at least two electricity consumption stability clusters; in each periodic time period, obtain the density and stability of each household in each periodic time period based on the density and stability of all electricity consumption in the electricity consumption stability clusters in which each household is located.
[0070] Considering that the acquisition of power consumption stability depends only on historical data, it has certain limitations, so further analysis is conducted on the basis of power consumption stability. Residents generally have collective habits, that is, the habits of most people are in line with the mainstream habits of the public. Therefore, in the same period, if there are more similar user power consumption records, it means that the power consumption in this period is in line with the collective habits, that is, the stability of this period is stronger. Therefore, the embodiment of the present invention performs cluster analysis on the stability of power consumption data of all households in each period, and obtains at least two power consumption stability clusters, that is, the power consumption stability clusters corresponding to the power consumption habits of each collective, so as to combine the density and stability of all power consumption stability in the power consumption stability cluster of each household, and obtain the density stability of each household in each period; so that the measurement of the power consumption stability of each period of the user according to the density stability is more accurate. In the embodiment of the present invention, the cluster analysis method adopts the k-means clustering method, and the implementer can select the clustering method according to the specific implementation environment; in the embodiment of the present invention, the number of clusters of the k-means clustering method is set to 3, and the implementer can adjust it by himself. Cluster analysis is performed on all electricity consumption stabilities, and the electricity consumption stability in each cluster obtained should have similar and clustered characteristics, that is, each electricity consumption stability cluster corresponds to a similar collective electricity consumption habit.
[0071] Preferably, the method for obtaining the density stability comprises:
[0072] For each household, when the distribution of electricity stability in the electricity stability cluster is denser in the corresponding periodic time period, that is, when the density and quantity are larger, it means that the electricity usage habits of the household are similar to those of the general public, so the electricity usage stability of the household in the corresponding periodic time period is greater. The density can be characterized by the data concentration and stability in each electricity stability cluster.
[0073] In each power stability cluster, the difference between each power stability and the power stability with the smallest difference is taken as the local dispersion degree of each power stability; the negative correlation mapping value of the mean of the local dispersion degree of all power stability in each power stability cluster is taken as the overall concentration degree of each power stability cluster. Since for each power stability cluster, the more concentrated the numerical distribution of its corresponding power stability is, the more similar the power stability in the power stability cluster is as a whole, that is, the power stability of the corresponding residents in the power stability cluster is stronger in the periodic time period; therefore, the smaller the overall local dispersion degree is, the more similar the corresponding overall power stability is, that is, the greater the corresponding overall concentration is, the stronger the stability of the residents in the corresponding power stability cluster is in the periodic time period. Similarly, the negative correlation mapping value of the variance of all power stability in each power stability cluster is taken as the overall stability of each power stability cluster. The more uniform the values of power stability in the corresponding power stability clusters, that is, the more similar or dense the power stability is, the smaller the corresponding variance is, that is, the greater the overall stability is.
[0074] Since both overall stability and overall concentration characterize the density of the electricity stability clusters, and when the density and number of electricity stability clusters are large, the residents in the clusters have greater electricity stability in the corresponding periodic time period. Therefore, it is necessary to further analyze the number of data in the electricity stability clusters. In each periodic time period, the embodiment of the present invention uses the normalized value of the product of the number of electricity stability clusters, overall concentration and overall stability in the electricity stability clusters of each household as the dense stability level of each household in each periodic time period.
[0075] In the embodiment of the present invention, the method for obtaining the density stability of the r-th household in the t-th period is expressed in the formula:
[0076]
[0077] Among them, P r,t N is the density stability of the r-th household in the t-th period; r,t is the number of electricity stability clusters of the rth household in the tth period; W r,t,v is the vth power stability of the rth household in the power stability cluster in the tth period; The power stability of the rth household in the tth cycle time period has the smallest difference with the vth power stability cluster; is the local dispersion degree of the vth electricity consumption stability in the electricity consumption stability cluster of the rth household in the tth period; is the overall concentration of the electricity stability cluster of the r-th household in the t-th period; is the variance of all electricity stability in the electricity stability cluster of the r-th household in the t-th period; is the overall stability of the electricity stability cluster of the rth household in the tth period. Norm() is a normalization function. In the embodiment of the present invention, the normalization method adopts linear normalization, and the implementer can adjust it according to the specific implementation environment; exp() is an exponential function with a natural constant as the base.
[0078] Step S4: According to the change stability of electricity consumption stability in adjacent cycle time periods corresponding to each cycle time period of each household, obtain the reference degree of change trend of each household in each cycle time period; according to the dense stability degree and the reference degree of change trend, obtain the final stability of each household in each cycle time period.
[0079] It is further necessary to consider that the electricity consumption behavior of residents is a dynamic and continuous process, that is, there will be a certain delay in the change when the electricity consumption changes. Therefore, for each periodic time period of each household, the more continuous the change trend of the periodic time period around it is, the stronger the stability of the periodic time period. Therefore, the embodiment of the present invention obtains the reference degree of change trend of each household in each periodic time period based on the change stability of electricity consumption in the adjacent periodic time period corresponding to each periodic time period of each household.
[0080] Preferably, the method for obtaining the reference degree of the change trend includes:
[0081] The power consumption stability of all periodic time periods corresponding to each household is arranged in time order and then curve fitting is performed to obtain the overall stability time series curve corresponding to each household; the overall stability time series curve can reflect the overall power consumption stability changes of each household, so that the user's power consumption habits can be captured visually. On the overall stability time series curve, the difference between the power consumption stability of each periodic time period and the power consumption stability of the next periodic time period is taken as the power consumption stability change of each household in each periodic time period. The power consumption stability change can reflect the local power consumption stability change of each periodic time period, that is, the continuous change of power consumption habits in the periodic time period; the smaller the corresponding power consumption stability change, the more continuous the change trend of power consumption within the local time range of the periodic time period. In the embodiment of the present invention, the power consumption stability change of the last periodic time period of the overall stability time series curve is the average of the power consumption stability change of all previous periodic time periods, so that the embodiment of the present invention is complete.
[0082] On the overall stability time series curve, the power consumption stability of all periodic time periods between the two minimum points on both sides of each periodic time period is arranged in chronological order to obtain the local stability time series sequence corresponding to each household in each periodic time period. For each periodic time period, the embodiment of the present invention is to analyze the continuity change trend of the periodic time periods around it, and the extreme point corresponds to the position where the continuity trend is interrupted. The local stability time series sequence separated by selecting the minimum points on both sides can characterize the continuity trend periodic characteristics of each periodic time period to a certain extent. Considering that when the periodic time period is near the end or near the starting position of the overall stability time series curve, there may be no minimum point on one side, so the first two endpoints of the overall stability time series curve are also analyzed as minimum points, so that the embodiment of the present invention is more complete, or the curve can be supplemented by other methods such as interpolation to make there are minimum points on both sides of each periodic time period, which will not be further elaborated here.
[0083] Since the smaller the change in electricity consumption stability is, the more continuous the change trend of electricity consumption in the local time range of the corresponding periodic time period is; therefore, in each local stability time series, the smaller the overall change in electricity consumption stability is in each corresponding periodic time period, the lower the continuous change rate of stability in the neighborhood of the periodic time period is, and the more continuous the change trend of the corresponding stability is, that is, the more stable it is in the periodic time period. Considering that the closer the continuous change rate of stability in the periodic time period is, the more likely it is that there is a delay between the electricity consumption data in the periodic time period and the surrounding data, the higher the credibility of the corresponding stability is. Therefore, according to this feature, the present invention constructs a change trend reference degree calculation model according to the fluctuation of the electricity consumption stability change in each periodic time period in the local stability time series; and calculates the change trend reference degree of each household in each periodic time period according to the change trend reference degree calculation model.
[0084] Preferably, the change trend reference degree calculation model includes:
[0085]
[0086] Among them, Q r,t is the reference degree of change trend of the rth household in the tth period; n r,t is the local stability time series corresponding to the rth household in the tth period; Δw r,t,u is the stable change of electricity consumption of the rth household in the uth period in the local stability time series corresponding to the tth period; is the variance of all electricity stability changes in the local stability time series corresponding to the r-th household in the t-th cycle time period; exp() is an exponential function with a natural constant as the base.
[0087] In the calculation model of reference degree of change trend, Characterizes the stable change in electricity consumption in the periodic time period of the local stability time series corresponding to the t periodic time period of the r-th household; the smaller the corresponding stable change in electricity consumption as a whole, the lower the continuous change rate of the stability of electricity consumption in the time neighborhood of the r-th household in the t periodic time period, that is, the change of the node has a continuous change trend, and the corresponding stability is stronger; and the reference degree of the change trend obtained in the embodiment of the present invention is positively correlated with the final stability, so further the obtained here Negative correlation mapping is performed. It represents the variance of all stable changes in electricity consumption in the local stability time series corresponding to the t-cycle time period of the r-th household, that is, the overall similarity; the smaller the variance, the more likely it is that there is a delay between the r-th household in the t-cycle time period and the surrounding cycle time periods, and the higher the corresponding credibility; therefore, the embodiment of the present invention also performs negative correlation mapping on it. It should be noted that in addition to negative correlation mapping through exp(-), the implementer can also perform negative correlation mapping through other methods, but it is necessary to ensure that the value after negative correlation mapping is a normalized value, such as 1-Norm(), Norm() is a normalization function, which will not be further described here.
[0088] Since both the density stability degree and the reference degree of change trend can characterize the stability of electricity consumption of each household in each cycle time period to a certain extent, the embodiment of the present invention obtains the final stability of each household in each cycle time period based on the density stability degree and the reference degree of change trend.
[0089] Preferably, the method for obtaining the final stability includes:
[0090] Since the greater the density stability and the greater the reference degree of change trend, the higher the stability of electricity consumption of the corresponding residents in the corresponding periodic time period, the embodiment of the present invention takes the average of the density stability and the reference degree of change trend as the final stability of each household in each periodic time period.
[0091] In the embodiment of the present invention, the method for obtaining the final stability of the r-th household in the t-th period is expressed in the formula as follows:
[0092]
[0093] Among them, R r,t is the final stability of the rth household in the tth period, P r,t is the density stability of the r-th household in the t-th period; Q r,tIt is the reference degree of change trend of the r-th household in the t-th cycle time period.
[0094] Step S5: Modify the prediction weight of each household in each cycle time period in the prediction model according to the final stability, and then predict the electricity consumption to obtain the predicted electricity consumption of each household in the cycle time period corresponding to the current moment; and dispatch the power grid for the cycle time period corresponding to the current moment according to the predicted electricity consumption.
[0095] After obtaining the final stability of each household in each periodic time period required by the embodiment of the present invention, the ARIMA model is further adaptively adjusted in combination with the final stability according to the purpose of the embodiment of the present invention, so as to obtain a more accurate prediction of electricity demand. When further predicting data based on the ARIMA model, the electricity consumption in the periodic time period where the user's electricity consumption habits are relatively stable contributes more to the accuracy of the predicted electricity consumption, while the electricity consumption in the periodic time period where the user's electricity consumption habits are relatively unstable will affect the accuracy of the predicted electricity consumption to a certain extent. The embodiment of the present invention modifies the prediction weight of each household in each periodic time period in the prediction model according to the final stability, and then predicts the electricity consumption, and obtains the predicted electricity consumption of each household in the periodic time period corresponding to the current moment.
[0096] Preferably, the method for obtaining the predicted power consumption includes:
[0097] The final stability is multiplied by the ARIMA parameter corresponding to each household in each period in the ARIMA model, which is used as the modified ARIMA parameter corresponding to each household in each period; the ARIMA parameter includes the autoregressive coefficient and the moving average coefficient. For each household, the final stability makes the ARIMA parameter corresponding to the period with greater stability larger, so that the corresponding prediction weight is larger, thereby obtaining a more accurate prediction of electricity consumption.
[0098] Further, the power grid power consumption of each household in the preset predicted number of periodic time periods before the periodic time period corresponding to the current moment is arranged in chronological order to obtain the power grid power consumption prediction sequence corresponding to each household at the current moment; according to each power grid power consumption in the power grid power consumption prediction sequence and the modified ARIMA parameters of the periodic time period corresponding to each power grid power consumption, the data is predicted in combination with the ARIMA model to obtain the predicted power consumption of each household in the periodic time period corresponding to the current moment. In an embodiment of the present invention, the preset prediction number is set to 50, and the implementer can adjust it according to the specific implementation environment. For example, when only 40 periodic time periods have passed on the day at the current moment, the remaining 10 periodic time periods are the last 10 periodic time periods of the previous day, that is, the 50 periodic time periods closest to the current moment are selected for power consumption prediction. It should be noted that the method for prediction based on the ARIMA model and the time series data sequence is a prior art well known to those skilled in the art, and is not further limited or elaborated here.
[0099] The power consumption is further predicted to dispatch the power grid to the periodic time period corresponding to the current moment.
[0100] Preferably, the method for performing power grid dispatching for the same period of time on the day according to the predicted power consumption includes:
[0101] After obtaining the predicted electricity consumption of each household in the periodic time period corresponding to the current moment, since the power grid scheduling is to supply electricity to the entire community, the embodiment of the present invention uses the accumulated value of the predicted electricity consumption of all households in the periodic time period corresponding to the current moment as the demand scheduling electricity in the periodic time period corresponding to the current moment; the power grid is scheduled for the periodic time period corresponding to the current moment according to the demand scheduling electricity, thereby performing accurate intelligent power grid scheduling.
[0102] In summary, the present invention first obtains the power grid electricity consumption of each household in each period of each day; first obtains the power grid stability according to the power grid power consumption fluctuation of each household in the same period; further obtains a more accurate final stability according to the density stability degree of the distribution density that characterizes the power consumption stability and the reference degree of the change trend of the local change stability that characterizes the power consumption stability; makes the predicted power consumption of each household in each period of time obtained based on the ARIMA model modified according to the final stability more accurate, thereby making the accuracy of power grid scheduling higher.
[0103] The present invention also proposes a user-demand-based intelligent power grid dispatching system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any one of the steps of a user-demand-based intelligent power grid dispatching method.
[0104] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0105] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for intelligent dispatching of power grid based on user demand, characterized in that: The method comprises: From the historical electricity consumption data in the power distribution box, obtain the power grid electricity consumption of each household in each cycle time period of each day; According to the fluctuation of power grid electricity consumption of each household in the same period before the current day, the stability of electricity consumption of each household in each period is obtained; Perform cluster analysis on the stability of electricity consumption data of all households in each periodic time period to obtain at least two electricity consumption stability clusters; in each periodic time period, obtain the density and stability of each household in each periodic time period based on the density and stability of all electricity consumption in the electricity consumption stability clusters in which each household is located; According to the change stability of the power consumption stability in the adjacent cycle time periods corresponding to each cycle time period of each household, the reference degree of the change trend of each household in each cycle time period is obtained; according to the dense stability degree and the reference degree of the change trend, the final stability of each household in each cycle time period is obtained; According to the final stability, the prediction weight of each household in each periodic time period in the prediction model is modified to predict the power consumption, so as to obtain the predicted power consumption of each household in the periodic time period corresponding to the current moment; and the power grid is dispatched for the periodic time period corresponding to the current moment according to the predicted power consumption; The method for obtaining the power consumption stability includes: In the same cycle time period, the power grid electricity consumption of each household for a preset number of days before the current day is arranged in chronological order to obtain the historical power consumption sequence of each household in each cycle time period; In the historical power consumption sequence, among the first left adjacent power grid power consumption and the first right adjacent power grid power consumption corresponding to each power grid power consumption, the number of power grid power consumption differences less than a preset difference value is used as the local power consumption similarity of each power grid power consumption; The accumulated value of the local power consumption similarity of all power grid power consumption in the historical power consumption sequence is used as the overall power consumption similarity; the negative correlation mapping value of the variance of all power grid power consumption in the historical power consumption sequence is used as the reference power stability; According to the overall electricity consumption similarity and the reference electricity consumption stability, the electricity consumption stability of each household in each period is obtained; the overall electricity consumption similarity and the reference electricity consumption stability are both positively correlated with the electricity consumption stability; The method for obtaining the density stability comprises: In each power consumption stability cluster, the difference between each power consumption stability and the power consumption stability with the smallest difference is taken as the local dispersion degree of each power consumption stability; the negative correlation mapping value of the mean of the local dispersion degree of all power consumption stabilities in each power consumption stability cluster is taken as the overall concentration of each power consumption stability cluster; The negative correlation mapping value of the variance of all electricity stability in each electricity stability cluster is taken as the overall stability of each electricity stability cluster; In each periodic time period, the normalized value of the product of the number of electricity stability clusters in which each household is located, the overall concentration and the overall stability is used as the density stability degree of each household in each periodic time period; The method for obtaining the reference degree of the change trend includes: The electricity consumption stability of all periodic time periods corresponding to each household is arranged in time sequence and then curve fitting is performed to obtain the overall stability time series curve corresponding to each household; On the overall stability time series curve, the difference between the power consumption stability in each cycle time period and the power consumption stability in the next cycle time period is taken as the power consumption stability change of each household in each cycle time period; On the overall stability time series curve, the power consumption stability of all periodic time periods between two minimum points on both sides of each periodic time period is arranged in time order to obtain the local stability time series sequence corresponding to each household in each periodic time period; According to the fluctuation of the power consumption stability change amount in each periodic time period in the local stability time series, a change trend reference degree calculation model is constructed; and according to the change trend reference degree calculation model, the change trend reference degree of each household in each periodic time period is calculated; The reference degree calculation model of the change trend includes: in, For the Household residents in Reference degree of change trend in a period of time; For the Household residents in The local stability time series corresponding to the period time period; For the Household residents in The local stability time series corresponding to the period time period Stable change of electricity consumption in a period of time; For the Household residents in The variance of all power consumption stability changes in the local stability time series corresponding to the period time period; is an exponential function with a natural constant as its base.
2. A method for intelligent dispatching of power grids based on user demand according to claim 1, characterized in that: The method for obtaining the final stability includes: The average of the density stability degree and the reference degree of the change trend is taken as the final stability of each household in each cycle time period.
3. A method for intelligent dispatching of power grids based on user demand according to claim 1, characterized in that: The method for obtaining the predicted power consumption includes: The product of the final stability and the ARIMA parameter corresponding to each household in each periodic time period in the ARIMA model is used as the modified ARIMA parameter corresponding to each household in each periodic time period; the ARIMA parameter includes an autoregressive coefficient and a moving average coefficient; The power grid electricity consumption of each household in a preset predicted number of periodic time periods before the periodic time period corresponding to the current moment is arranged in chronological order to obtain a prediction sequence of power grid electricity consumption corresponding to the current moment for each household; based on each power grid electricity consumption in the power grid electricity consumption prediction sequence and the modified ARIMA parameters of the periodic time period corresponding to each power grid electricity consumption, data prediction is performed in combination with the ARIMA model to obtain the predicted electricity consumption of each household in the periodic time period corresponding to the current moment.
4. A method for intelligent dispatching of power grids based on user demand according to claim 1, characterized in that: The method for obtaining the power consumption stability of each household in each periodic time period according to the overall power consumption similarity and the reference power consumption stability includes: The product of the overall electricity consumption similarity and the reference electricity consumption stability is taken as the electricity consumption stability of each household in each cycle time period.
5. The method for intelligent dispatching of power grid based on user demand according to claim 1, characterized in that: The method for performing power grid dispatching for the same period time period of the day according to the predicted power consumption includes: The accumulated value of the predicted electricity consumption of all households in the periodic time period corresponding to the current moment is used as the demand dispatched electricity in the periodic time period corresponding to the current moment; and the power grid is dispatched for the periodic time period corresponding to the current moment according to the demand dispatched electricity.
6. A power grid intelligent dispatching system based on user needs, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
