A distributed energy consumption method and system based on neural network

Analyze meteorological data and power generation data of distributed energy generation groups through neural networks, calculate time advantage indicators and meteorological weights, train neural networks to optimize distribution networks, solve the problem of uncontrollable power generation capacity of distributed energy sources under different weather conditions, and improve Improve energy consumption efficiency and grid stability.

CN118554549BActive Publication Date: 2024-09-27ECONOMIC & TECH RES INST OF STATE GRID HEILONGJIANG ELECTRIC POWER CO LTD +1
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202411005560.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-27
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The power generation capacity of distributed energy power generation equipment is uncontrollable under different weather conditions, resulting in low distributed energy consumption efficiency, resulting in power loss and grid instability.

Method used

Using a method based on neural networks, by obtaining historical meteorological data and power generation data, calculating the time advantage index and final meteorological weight of each power generation group, training long and short-term memory neural networks to optimize the regulation of active distribution networks and improve distributed energy consumption efficiency.

Benefits of technology

It improves the prediction accuracy of power generation capacity of power generation groups under different weather conditions and the accuracy of active distribution network regulation, and reduces power loss and power grid instability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118554549B
    Figure CN118554549B
Patent Text Reader

Abstract

The present invention relates to the field of energy consumption technology, and specifically to a distributed energy consumption method and system based on a neural network. The method obtains a time advantage index based on the correlation between the power generation data of each power generation group in a target time period and the meteorological data of each meteorological weather, and the power generation data of the group at the same position in the power generation cycle in the target time period; obtains the final meteorological weight based on the time advantage index of the power generation group in the test area at each moment in the power generation cycle, and the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, and uses it to train a neural network, and uses the trained neural network to consume the distributed energy in the test area in the current power generation cycle. The present invention considers the correlation between power generation equipment and different meteorological weather, and trains the neural network with parameters such as meteorological data and power generation data in different power generation cycles to improve the efficiency of distributed energy consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy consumption, and in particular to a distributed energy consumption method and system based on a neural network. Background Art

[0002] Distributed power generation is a new energy power generation method based on natural environmental conditions. It is mostly generated through wind and solar power. Compared with centralized power generation, distributed power generation can install power generation devices in places such as residential areas and office centers, making full use of natural space resources. Energy consumption is to use up the electricity generated by new energy. If a large amount of energy cannot be effectively converted or utilized, it is easy to reduce the life and reliability of power equipment, and in serious cases, fire and other safety accidents may occur.

[0003] Distributed energy power generation equipment is connected to the active distribution network, and the electricity generated by the power generation equipment is fed to local users through the active distribution network; by adjusting the output power of the active distribution network, the power generation of the distributed energy power generation device should be close to the power distribution of the active distribution network to users, so as to meet the electricity demand of the local power grid, so that the power generation can be fully consumed on site, avoiding power loss and grid instability.

[0004] The existing method constructs a load forecasting model and a photovoltaic output forecasting model, and brings the load power value and weather data of the station area collected every day into the load forecasting model for calculation; brings the historical data of distributed energy collected every day into the photovoltaic output forecasting model for calculation, so as to improve the local distributed photovoltaic power consumption capacity of the distribution station area. Because the power generation location of the distributed power generation method is flexible, and there are many kinds of distributed energy generation equipment, such as photovoltaic power generation equipment and wind power generation equipment, the power generation capacity of distributed energy generation equipment under different weather conditions is different and uncontrollable, which makes the active distribution network control inaccurate, resulting in low efficiency of distributed energy consumption, causing power loss and grid instability. Summary of the invention

[0005] In order to solve the technical problem that the power generation capacity of distributed energy generation equipment is uncontrollable under different weather conditions, resulting in low efficiency of distributed energy consumption, the purpose of the present invention is to provide a distributed energy consumption method and system based on a neural network. The technical solution adopted is as follows:

[0006] In a first aspect, an embodiment of the present invention provides a distributed energy consumption method based on a neural network, the method comprising:

[0007] Obtain meteorological data of each type of weather at each moment in the historical time period in the tested area, and power generation data of each power generation group at each moment in the historical time period; divide the historical time period into different power generation cycles; select any power generation cycle as the target cycle, and obtain the target time period of the target cycle;

[0008] According to the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, the meteorological data of each meteorological weather in each power generation cycle in the target time period, and the power generation data of each power generation group at the same position in different power generation cycles in the target time period, the time advantage index of each power generation group at each moment in the power generation cycle is obtained;

[0009] According to the time advantage index of all power generation groups in the tested area at each moment in the power generation cycle, the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, and the power generation data of the power generation group in the target time period, the final meteorological weight of each meteorological weather at each moment in the target cycle is obtained;

[0010] The neural network is trained according to the final meteorological weight of each meteorological condition in each power generation cycle within the historical time period; the trained neural network is used to absorb the distributed energy in the tested area in the current power generation cycle.

[0011] Furthermore, the method for obtaining the time advantage index of each power generation group at each moment in the power generation cycle includes:

[0012] According to the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological type, and the meteorological data of each meteorological type in each power generation cycle in the target time period, the time significance weight of each power generation group in each power generation cycle in the target time period is obtained;

[0013] According to the time significance weight of each power generation cycle of each power generation group in the target time period, the power generation data at the same position in all power generation cycles are weighted and summed to obtain the time advantage index of each power generation group at each moment in the power generation cycle.

[0014] Furthermore, the method for obtaining the time significance weight of each power generation cycle of each power generation group within the target time period includes:

[0015] Normalize the correlation coefficient between the power generation data of each power generation group at all times in the target time period and the meteorological data of each meteorological weather to obtain the first meteorological related index of each power generation group under each meteorological weather; Normalize the meteorological data of each meteorological weather at each time in the historical time period to obtain the meteorological standard data of the corresponding meteorological weather, and add up the meteorological standard data of each meteorological weather at all times included in each power generation cycle to obtain the standard meteorological intensity of each meteorological weather in the corresponding power generation cycle;

[0016] According to the first meteorological related index of each power generation group, the standard meteorological intensity of each meteorological type in each power generation cycle within the target time period is weighted and summed to obtain the time significance weight of each power generation cycle of each power generation group within the target time period.

[0017] Furthermore, the method for obtaining the final meteorological weight of each meteorological condition at each moment in the target period includes:

[0018] The absolute value of the correlation coefficient between the power generation data of each power generation group at all times within the target time period and the meteorological data of each meteorological condition is used as the second meteorological related indicator of each power generation group under each meteorological condition; the cumulative sum of the power generation data of each power generation group at all times within the target time period is recorded as the comprehensive power generation data of the corresponding power generation group;

[0019] According to the time advantage index of each power generation group at each moment in the power generation cycle, the second meteorological related index of each power generation group under each meteorological condition and the comprehensive power generation data, the initial meteorological weight of each power generation group under each meteorological condition at each moment in the target cycle is obtained; the cumulative sum of the initial meteorological weights of all power generation groups at each moment in the target cycle is used as the final meteorological weight of each meteorological condition at each moment in the target cycle.

[0020] Furthermore, the method for training a neural network comprises:

[0021] Obtain the power consumption data of the area to be tested at each moment in the historical time period, and the power data of the active distribution network of the area to be tested at each moment in the historical time period;

[0022] For each power generation cycle in the historical time period, the input data of each training sample is composed of the final meteorological weights of all meteorological conditions at all times in each power generation cycle, meteorological data, and electricity consumption data at the same position in the previous power generation cycle of the power generation cycle; the output data of each training sample is composed of power data at all times in each power generation cycle; the training samples corresponding to all power generation cycles in the historical time period constitute a training set of the neural network; and the neural network is trained using the training set and the loss function of the neural network.

[0023] Furthermore, the method for obtaining the loss function of the neural network includes:

[0024] The power data at each moment is taken as the true value at each moment, and the power data at the next adjacent moment of each moment is taken as the predicted value at each moment; the loss function of the neural network is constructed based on the absolute error loss of the power data at all moments in the historical time period.

[0025] Furthermore, the method for obtaining the target time period of the target cycle includes:

[0026] In the historical time period, a preset local time period before the start time of the target period is used as the target time period.

[0027] Furthermore, the correlation coefficient is a Pearson correlation coefficient.

[0028] Furthermore, the neural network is a long short-term memory neural network.

[0029] In a second aspect, another embodiment of the present invention provides a distributed energy consumption system based on a neural network, the system comprising:

[0030] The data acquisition module is used to obtain the meteorological data of each meteorological type at each moment in the historical time period in the tested area, and the power generation data of each power generation group at each moment in the historical time period; divide the historical time period into different power generation cycles; select any power generation cycle as the target cycle, and obtain the target time period of the target cycle;

[0031] The time advantage analysis module is used to obtain the time advantage index of each power generation group at each moment in the power generation cycle according to the correlation degree between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, the meteorological data of each meteorological weather in each power generation cycle in the target time period, and the power generation data of each power generation group at the same position in different power generation cycles in the target time period;

[0032] The meteorological impact analysis module is used to obtain the final meteorological weight of each meteorological condition at each moment in the target period according to the time advantage index of all power generation groups in the tested area at each moment in the power generation period, the correlation degree between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological condition, and the power generation data of the power generation group in the target time period;

[0033] The energy consumption module is used to train the neural network according to the final meteorological weight of each meteorological condition in each power generation cycle in the historical time period; and use the trained neural network to consume the distributed energy in the tested area in the current power generation cycle.

[0034] The present invention has the following beneficial effects:

[0035] In an embodiment of the present invention, the correlation between the power generation group and the weather is measured by the correlation between the power generation data of the power generation group and the weather data of each weather. When the correlation is greater, when the weather data of each weather is greater, it is more conducive to the power generation of the equipment of the power generation group. The main power generation time of different equipment is different. The power generation data of each power generation group at the same position in the power generation cycle within the target time period is combined for analysis to obtain the time advantage index, which can more accurately obtain the moment when the power generation group has a power generation advantage in the power generation cycle; the active distribution network is regulated by using the moment of power generation advantage to improve the accuracy of power distribution, and the power generation data of the power generation group in the target time period is combined with the correlation between the weather data of each weather. The greater the correlation, the better the power generation group. The more significant the phenomenon that the power generation of the group changes with the change of the meteorological data of the weather, the power generation data of the power generation group in the target time period presents the power generation capacity of the power generation group, and the final meteorological weight of each weather at each moment in the target period is obtained. The greater the final meteorological weight, the higher the accuracy of the meteorological data at the moment for active distribution network regulation; the final meteorological weight is used to train the neural network, and in the process of obtaining the final meteorological weight, the changes in the power generation capacity of the power generation group under different weather conditions are fully considered to improve the accuracy of controlling the active distribution network, and the trained neural network is used to absorb the distributed energy in the current power generation cycle in the test area, thereby improving the efficiency of distributed energy absorption and reducing the probability of problems such as power loss and grid instability. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 A flowchart of a distributed energy consumption method based on a neural network provided by an embodiment of the present invention;

[0038] Figure 2 A flowchart of the steps of a method for obtaining a time advantage index of each power generation group at each moment in a power generation cycle provided by an embodiment of the present invention;

[0039] Figure 3 A schematic diagram of a curve showing a change in power generation data of a photovoltaic power generation group in one day provided by an embodiment of the present invention;

[0040] Figure 4A structural diagram of a distributed energy consumption system based on a neural network provided by an embodiment of the present invention;

[0041] Figure 5 A schematic diagram of a computer device for distributed energy consumption based on a neural network provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] 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 distributed energy consumption method and system based on a neural network 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.

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

[0044] The following is a detailed description of a specific scheme of a distributed energy consumption method and system based on a neural network provided by the present invention in conjunction with the accompanying drawings.

[0045] Embodiment 1:

[0046] This invention proposes a distributed energy consumption method based on neural network, please refer to Figure 1 , which shows a flowchart of a distributed energy consumption method based on a neural network provided by an embodiment of the present invention, the method comprising:

[0047] Step S1: Obtain meteorological data of each meteorological type at each moment in the historical time period in the tested area, and power generation data of each power generation group at each moment in the historical time period; divide the historical time period into different power generation cycles; select any power generation cycle as the target cycle, and obtain the target time period of the target cycle.

[0048] Distributed energy generation equipment is flexibly arranged, and the light, temperature, and wind speed at the location of each generation equipment have different effects on its power generation. The embodiment of the present invention regards the distributed generation equipment in the area to be tested as a whole, that is, it is considered that the meteorological conditions of the distributed generation equipment at different locations in the area to be tested are the same.

[0049] Determine the weather conditions in the area to be tested that are highly relevant to renewable energy power generation. This solution uses wind power generation and photovoltaic power generation as examples for analysis, and the weather conditions that need to be considered include: wind speed, temperature, and cloud cover. Obtain the meteorological data (wind speed, temperature, and cloud cover) of each type of weather condition at each moment in the historical time period in the area to be tested through the meteorological station, and obtain the total power generation of all power generation equipment in the area to be tested at each moment through the power grid platform.

[0050] It should be noted that in the embodiment of the present invention, the duration of the historical time period is an empirical value of 45 days, and the sampling interval is an empirical value of 1 second, that is, the interval between two adjacent moments is 1 second, which can be set by the implementer according to the specific situation. In other embodiments of the present invention, other data acquisition devices can also be used to obtain meteorological data and power generation, which is not limited here.

[0051] There are various distributed energy generation equipment in the area to be tested, and the power generation of each power generation equipment is different at different times of the day, but different power generation equipment may have the same power generation law. For example, if the distributed power generation equipment in one area is mostly photovoltaic power generation, then the power generation in this area will mostly follow the changes in cloud data; if the distributed power generation equipment in another area is mostly wind power generation, then the power generation in this area will mostly follow the changes in wind speed data. This scheme refers to the above-mentioned power generation equipment with similar power generation laws as a power generation group. The total power generation of all power generation equipment in the area to be tested at each moment is equivalent to the power generation obtained by multiple power generation groups in the area to be tested together. Compared with directly using the total power generation at each moment for data analysis, the power generation analysis of the power generation group can more accurately obtain the fluctuation characteristics of the power generation in the area.

[0052] Preferably, in an embodiment of the present invention, the method for acquiring power generation data of each power generation group at each moment is: the total power generation at each moment in the historical time period constitutes a power generation signal; the power generation signal is decomposed into component signals of different frequencies using an empirical mode decomposition algorithm; the data at each moment in the component signals of different frequencies is the power generation data of the power generation group of each component signal at each moment in the historical time period.

[0053] It should be noted that the horizontal axis of the power generation signal is time, and the vertical axis is total power generation. In other embodiments of the present invention, the power generation signal can also be decomposed using a collective empirical mode decomposition algorithm and a wavelet decomposition algorithm. Among them, the empirical mode decomposition algorithm is a well-known technology and will not be described in detail here.

[0054] Since the power generation change frequency of a power generation group is similar, each component signal can be regarded as the power generation data of a power generation group. The power generation frequency characteristics of the generator are relatively stable. The power generation data of generators with similar power generation frequency characteristics are divided into a component signal by signal decomposition, which is equivalent to dividing the power generation data with similar power generation characteristics together. Power generation groups usually have similar periodic power generation characteristics. The signal decomposition method can be used to decompose the power generation signal and regard each component signal as the power generation data of a power generation group.

[0055] This solution uses wind power generation and photovoltaic power generation as examples for analysis. The photovoltaic power generation group's main power generation time is during the day, and the closer to noon, the greater its power generation. The wind power generation group usually generates more power at times of the day when the temperature changes greatly, such as from dusk to dawn. The power generation of each power generation group changes in a cycle of one day. Therefore, in the embodiment of the present invention, one day is regarded as a power generation cycle.

[0056] This scheme trains a neural network by analyzing the changes in power generation data in the partial time period before each power generation cycle in the historical time period with different meteorological conditions, the power consumption of the area to be tested, and the power data of the active distribution network in the area to be tested, so as to realize the consumption of distributed energy. Therefore, any power generation cycle is recorded as the target cycle, and the target time period of the target cycle is obtained.

[0057] Preferably, in the embodiment of the present invention, the method for obtaining the target time period corresponding to the target cycle is: within the historical time period, the preset local time period before the start time of the target cycle is used as the target time period. It should be noted that the length of the preset local time period is less than the length of the historical time period, and the length of the preset local time period takes the empirical value of 30 days. There is no target time period in the power generation cycle within the first 30 days of the historical time period, and the implementer can set it according to the specific situation.

[0058] In another embodiment of the present invention, the time period between the historical time period and the start time of the target cycle can also be recorded as the target time period. It should be noted that the first power generation cycle in the historical time period has no target time period, and the length of the target time period of each power generation cycle is different.

[0059] Step S2: According to the correlation degree between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological type, the meteorological data of each meteorological type in each power generation cycle in the target time period, and the power generation data of each power generation group at the same position in different power generation cycles in the target time period, the time advantage index of each power generation group at each moment in the power generation cycle is obtained.

[0060] Different power generation groups have different equipment compositions, and different equipment has different correlations with different weather conditions. In this solution, the correlation between power generation groups and weather conditions is measured by the degree of correlation between the power generation data of each power generation group and the weather data of each weather condition. When the degree of correlation is greater, when the weather data of each weather condition is greater, it is more conducive to the power generation of the equipment of the power generation group. At the same time, the main power generation time of different equipment is different, and the power generation data of each power generation group at the same position in different power generation cycles within the target time period are combined for analysis to obtain the time advantage index of the power generation group at each moment in the power generation cycle; the greater the time advantage index, the greater the possibility that the power generation group has an advantageous power generation moment in the power generation cycle, and the relevant weather conditions are more important for regulating the active distribution network at the advantageous power generation moment of the power generation group.

[0061] See also Figure 2 , which shows a flowchart of the steps of a method for obtaining a time advantage index of each power generation group at each moment in a power generation cycle provided by an embodiment of the present invention, the method comprising:

[0062] Step S210: According to the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological type, and the meteorological data of each meteorological type in each power generation cycle in the target time period, the time significance weight of each power generation group in each power generation cycle in the target time period is obtained.

[0063] The power generation of a power generation group is different in different weather conditions. Figure 3 A schematic diagram of a curve showing a change in power generation data of a photovoltaic power generation group in one day according to an embodiment of the present invention; Figure 3 As shown, Figure 3 It is a three-dimensional coordinate system, the horizontal axis T of the three-dimensional coordinate system represents time, the vertical axis W represents the power generation data of the power generation group mainly engaged in photovoltaic power generation, and the vertical axis Y represents the weather type; curve q1 represents the power generation change curve of the power generation group in rainy and snowy weather within one day, curve q2 represents the power generation change curve of the power generation group in cloudy and snowy weather within one day, curve q3 represents the power generation change curve of the power generation group in cloudy weather within one day, and curve q4 represents the power generation change curve of the power generation group in sunny weather within one day.

[0064] The advantageous time for photovoltaic power generation is usually at noon of the day when the sunlight is high. However, when the weather is cloudy or even rainy and snowy, the advantageous time for photovoltaic power generation cannot be reflected in the data. Therefore, the weather during the power generation cycle will affect the advantageous time for the power generation group. The impact of the weather during the power generation cycle on the power generation capacity of the power generation group is presented through the correlation between the power generation data of each power generation group and the meteorological data of each weather type and the meteorological data. If the two are larger, it is more conducive to the power generation of the equipment of the power generation group, and the data in the power generation cycle is more important.

[0065] Step S211: Normalize the correlation coefficient between the power generation data of each power generation group at all times in the target time period and the meteorological data of each meteorological type to obtain the first meteorological related index of each power generation group under each meteorological type; normalize the meteorological data of each meteorological type at each time in the historical time period to obtain the meteorological standard data of the corresponding meteorological type, and add up the meteorological standard data of each meteorological type at all times included in each power generation cycle to obtain the standard meteorological intensity of each meteorological type in the corresponding power generation cycle.

[0066] It should be noted that the range of the correlation coefficient is , directly using the correlation coefficient and the standard meteorological intensity for calculation will destroy the correlation between the two, so the correlation coefficient needs to be normalized before calculating the time significant weight; because the dimensions of meteorological data of different types of meteorology are different, the meteorological data needs to be normalized before calculation. In the embodiment of the present invention, the Norm function is used to normalize the meteorological data and the correlation coefficient, and the correlation coefficient is the Pearson correlation coefficient; in the embodiment of the present invention, other normalization methods can also be selected, such as function conversion, maximum and minimum normalization, and the correlation coefficient can also be the Spearman correlation coefficient, the kendall rank correlation coefficient, and the typical correlation coefficient, etc., which are not limited here.

[0067] Step S212: Based on the first meteorological related index of each power generation group, weighted sum is performed on the standard meteorological intensity of each meteorological type in each power generation cycle within the target time period to obtain the time significance weight of each power generation cycle of each power generation group within the target time period.

[0068] For each power generation group, the greater the correlation coefficient between the power generation data of the power generation group at all times in the target time period and the meteorological data of each weather, the more suitable each weather is for the power generation group to generate electricity in the target time period, and the stronger the standard weather intensity of each weather in the corresponding power generation cycle, the stronger the power generation capacity of the power generation cycle, and the more the power generation cycle can reflect the power generation advantage of the power generation group. Therefore, the first meteorological related index and the standard weather intensity are positively correlated with the time significant weight.

[0069] In a specific implementation of the embodiment of the present invention, the temporal saliency weight is expressed by the formula:

[0070]

[0071] In the formula, is the time significance weight of the ath generation cycle of the kth generation group within the target time period; I is the number of meteorological types, and the empirical value in this scheme is 3; is the first meteorological related index of the kth power generation group under the i-th meteorological condition; It is the standard meteorological intensity of the ath power generation cycle of the ith meteorological type in the target time period.

[0072] It should be noted that when When the value is larger, the i-th weather in the a-th power generation cycle within the target time period is more suitable for the k-th power generation group to generate electricity, the a-th power generation cycle within the target time period can better reflect the advantageous power generation time of the k-th power generation group, and the data of the a-th power generation cycle within the target time period is more suitable for calculating the time advantage index of the k-th power generation group.

[0073] Step S220: weighted summing of power generation data at the same position in all power generation cycles is performed according to the time significance weight of each power generation cycle of each power generation group in the target time period to obtain the time advantage index of each power generation group at each moment in the power generation cycle.

[0074] In a specific implementation of the embodiment of the present invention, the time advantage index is expressed by the formula:

[0075]

[0076] In the formula, is the time advantage index of the kth generation group at the bth moment in the generation cycle; A is the total number of generation cycles in the target time period; is the time significance weight of the ath generation cycle of the kth generation group within the target time period; It is the power generation data of the kth power generation group at the bth moment in the ath power generation cycle within the target time period.

[0077] It should be noted that when the time of the power generation cycle is significantly weighted The larger the value is, the greater the possibility that there is an advantageous power generation moment in the ath power generation cycle within the target time period. When the value is larger, the more power the kth generation group generates at the bth moment in the ath generation cycle within the target time period, and the greater the possibility that this moment is the dominant generation moment. Conduct comprehensive analysis to obtain time advantage indicators ;when The larger it is, the greater the possibility that the bth moment in the power generation cycle within the target time period is the dominant power generation moment, and the greater the possibility that the kth power generation group is the dominant power generation equipment in the target time period, and the more it is necessary to regulate the active distribution network based on the relevant meteorological conditions of the dominant power generation equipment.

[0078] Step S3: According to the time advantage index of all power generation groups in the tested area at each moment in the power generation cycle, the correlation degree between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological type, and the power generation data of the power generation group in the target time period, the final meteorological weight of each meteorological type at each moment in the target cycle is obtained.

[0079] The area to be tested is composed of multiple power generation equipment, and the configuration ratio of power generation equipment is flexible and changeable. Due to the different power generation conditions of power generation equipment, at different times in each power generation cycle, some equipment is the main power generation equipment, while other equipment hardly generates electricity. At this time, the weather with high correlation with the dominant power generation equipment is more important for regulating the distribution network. Therefore, the final meteorological weight is constructed to characterize the weather at each moment in the power generation cycle, which is an important parameter for regulating the active distribution network.

[0080] Step S310: The absolute value of the correlation coefficient between the power generation data of each power generation group at all times within the target time period and the meteorological data of each weather condition is used as the second meteorological related indicator of each power generation group under each weather condition; the cumulative sum of the power generation data of each power generation group at all times within the target time period is recorded as the comprehensive power generation data of the corresponding power generation group.

[0081] When the second meteorological related index is larger, it means that the power generation of each power generation group changes more with the change of the meteorological data of this kind of weather, and this kind of data should be used to regulate the active distribution network. Therefore, it is not necessary to consider the positive or negative correlation coefficient in the process of obtaining the second meteorological related index.

[0082] Step S320: According to the time advantage index of each power generation group at each moment in the power generation cycle, the second meteorological related index of each power generation group under each meteorological condition and the comprehensive power generation data, the initial meteorological weight of each power generation group at each moment in the target cycle for each meteorological condition is obtained; the cumulative sum of the initial meteorological weights of all power generation groups at each moment in the target cycle is used as the final meteorological weight of each meteorological condition at each moment in the target cycle.

[0083] When the time advantage index is larger, the possibility that each power generation group is the dominant power generation equipment in the target time period is greater, and the active distribution network needs to be regulated based on the relevant meteorological conditions of the power generation advantage equipment. The comprehensive power generation data presents the total power generation of each power generation group in the target time period. If the comprehensive power generation data is larger, it means that the power generated by the power generation group accounts for a larger proportion of the total power generated by all power generation groups during the power generation cycle, and the relevant data of the power generation group is more important for controlling the active distribution network. When the second meteorological related index is larger, it means that the impact of each meteorological condition on each power generation group is greater, and the distribution network should be regulated more by using this data. Therefore, the time advantage index, the second meteorological advantage index and the comprehensive power generation data are all positively correlated with the initial meteorological parameter weights.

[0084] In a specific implementation of the embodiment of the present invention, the final meteorological weight is expressed by the formula:

[0085]

[0086] In the formula, is the final meteorological weight of the ith meteorological condition at the bth moment in the target period; K is the total number of power generation groups; is the time advantage index of the kth generation group at the bth moment in the generation cycle; is the comprehensive power generation data of the kth power generation group within the target time period; is the second meteorological related index of the kth power generation group under the i-th meteorological condition; is the initial meteorological weight of the i-th meteorological condition of the k-th power generation group at the b-th moment in the target period. In other implementations of the embodiments of the present invention, the correlation between the time advantage index, the second meteorological advantage index, the comprehensive power generation data and the initial meteorological weight may also be constructed through other basic mathematical operations, which will not be limited or elaborated herein.

[0087] It should be noted that when the time advantage indicator When the value is larger, the power generation of the kth generation group at the bth moment in the overall power generation cycle within the target time period is larger, and the active distribution network needs to be regulated based on the meteorological conditions at the bth moment. The larger the value, the more important the relevant data of the kth generation group is for controlling the active distribution network. The larger it is, the greater the impact of the i-th weather on the k-th power generation group, and the more this data should be used to regulate the distribution network.

[0088] The method for obtaining the final meteorological weight of each meteorological condition at each moment in all power generation cycles in the historical time period is the same as the method for obtaining the final meteorological weight of each meteorological condition at each moment in the target period.

[0089] Step S4: training the neural network according to the final meteorological weight of each meteorological condition in each power generation cycle in the historical time period; and using the trained neural network to absorb the distributed energy in the tested area in the current power generation cycle.

[0090] This embodiment uses a neural network to control the power of the active distribution network to complete the consumption of distributed energy. The final meteorological weight of each meteorological weather presents the importance of each meteorological weather to the distributed energy generation in each power generation cycle, and the neural network is trained based on the final meteorological weight of each meteorological weather in the power generation cycle; the consumption of distributed energy is mainly through the electricity consumption of users in the area to be tested, and the power consumption data of the area to be tested at each moment in the historical time period is obtained through the power grid platform, as well as the power data of the active distribution network in the area to be tested at each moment in the historical time period, so as to obtain the training set of the neural network.

[0091] It should be noted that the power data of the active distribution network at each moment in the historical time period in this scheme is the dispatching power of the active distribution network, that is, the output power, which represents the power size of the electricity input by the active distribution network from the main power grid to the power grid in the test area in real time to maintain the balance of electricity consumption in the area.

[0092] In a specific implementation of an embodiment of the present invention, a method for acquiring a training set of a neural network is as follows: for each power generation cycle in a historical time period, the input data of each training sample is composed of the final meteorological weights of all meteorological conditions at all times in each power generation cycle, meteorological data, and electricity consumption data at the same position in the previous power generation cycle; the output data of each training sample is composed of power data at all times in each power generation cycle; the training set of the neural network is composed of training samples corresponding to all power generation cycles in the historical time period; and the neural network is trained using the training set and the loss function of the neural network.

[0093] It should be noted that the power data at all times in each power generation cycle is equivalent to the label value of the input data of the training sample corresponding to the power generation cycle. The final meteorological weight of each power generation cycle is obtained by changing the power generation with the meteorological changes in the target time period of the power generation cycle. Relative to the target time period, the power generation cycle is in the future, and the power consumption data of the area to be tested during the power generation cycle cannot be obtained. In the embodiment of the present invention, it is considered that the pattern of electricity users in the area to be tested is the same as the pattern of distributed energy generation, both of which are based on one day as a cycle. It can be considered that the power consumption data of this power generation cycle is closest to the power consumption data of the previous power generation cycle, and the power consumption data of the previous power generation cycle is used as the power consumption data of this power generation cycle.

[0094] As an example, in the embodiment of the present invention, one day is taken as a power generation cycle, the length of the preset local time period is 30 days, and the length of the historical time period is 45 days. Then, starting from the 31st day in the historical time period, the data between the 1st day and the 30th day in the historical time period are used, and the final meteorological weight of each meteorological data at each moment in the 31st day in the historical time period is obtained according to the method of steps S1 to S3. For the first 30 days of the historical time period, the 31st day belongs to the future time, and the electricity consumption data of the tested area in the 31st day cannot be obtained; in the embodiment of the present invention, it is considered that the electricity consumption data of the tested area on the 30th day and the 31st day in the historical time period are similar, and the electricity consumption data at the first moment in the 30th day in the historical time period is regarded as the electricity consumption data at the first moment in the 31st day, and so on. In the 15 days between the 31st day and the 45th day in the historical time period, each day corresponds to a training sample, and these 15 training samples constitute the training set of the neural network.

[0095] In a specific implementation of an embodiment of the present invention, the method for obtaining the loss function of the neural network is: taking the power data at each moment as the true value of each moment, and taking the power data of the next adjacent moment of each moment as the predicted value of each moment; constructing the loss function of the neural network based on the absolute error loss of the power data at all moments in the historical time period.

[0096] It should be noted that the neural network used in the embodiment of the present invention is a long short-term memory neural network (LSTM), with a linear rectification function (ReLU) as the activation function and an Adam (Adaptive Moment Estimation) optimizer. Among them, the long short-term memory neural network is a well-known technology for those skilled in the art and will not be described in detail here. Other activation functions and optimizers can be selected in other embodiments of the present invention.

[0097] Using the data of the target time period of the current power generation cycle, the final meteorological weight of each meteorological data at all times in the current power generation cycle is obtained according to the method of steps S1 to S3; the meteorological data of each meteorological weather at all times in the current power generation cycle is obtained through the meteorological station, and the power generation data of each moment in the current power generation cycle at the same position in the previous power generation cycle is obtained, and the above data is input into the trained neural network, and the output of the neural network is the predicted power data at all times in the current power generation cycle. It should be noted that the current power generation cycle and the historical time period are continuous time periods.

[0098] The power of the active distribution network in the area to be tested is controlled in real time through the power data predicted at each moment in the current power generation cycle. The control method is: in the current power generation cycle, the power of the active distribution network at each moment is adjusted to the same size as the power data predicted at the same moment obtained through neural network training. For example, the power of the active distribution network at the first moment is adjusted to the same size as the power data predicted at the first moment, and so on. Since the characteristics that affect the power generation of distributed energy are fully extracted in the process of obtaining the power data predicted in the current power generation cycle, controlling the active distribution network in the area to be tested through the predicted power data can enable the distributed energy generation in the area to be consumed locally, reduce power waste and improve power grid stability.

[0099] So far, the present invention is completed.

[0100] In summary, in the embodiment of the present invention, the time advantage index is obtained according to the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, and the power generation data of the group at the same position in the power generation cycle in the target time period; the final meteorological weight is obtained according to the time advantage index of the power generation group in the test area at each moment in the power generation cycle, and the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, and the final meteorological weight is used to train the neural network, and the trained neural network is used to absorb the distributed energy in the test area in the current power generation cycle. The present invention considers the correlation between power generation equipment and different meteorological weather, and trains the neural network with parameters such as meteorological data and power generation data in different power generation cycles to improve the efficiency of distributed energy absorption.

[0101] Embodiment 2:

[0102] This invention proposes a distributed energy consumption system based on neural network, please refer to Figure 4 , which shows a structure diagram of a distributed energy consumption system based on a neural network provided by an embodiment of the present invention, the system comprising:

[0103] The data acquisition module 510 is used to obtain the meteorological data of each type of weather at each moment in the historical time period in the tested area, and the power generation data of each power generation group at each moment in the historical time period; divide the historical time period into different power generation cycles; select any power generation cycle as the target cycle, and obtain the target time period of the target cycle.

[0104] The time advantage analysis module 520 is used to obtain the time advantage index of each power generation group at each moment in the power generation cycle according to the correlation degree between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological type, the meteorological data of each meteorological type in each power generation cycle in the target time period, and the power generation data of each power generation group at the same position in different power generation cycles in the target time period.

[0105] The meteorological impact analysis module 530 is used to obtain the final meteorological weight of each meteorological type at each moment in the target cycle based on the time advantage indicators of all power generation groups in the tested area at each moment in the power generation cycle, the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological type, and the power generation data of the power generation group in the target time period.

[0106] The energy consumption module 540 is used to train the neural network according to the final meteorological weight of each meteorological condition in each power generation cycle in the historical time period; and use the trained neural network to consume the distributed energy in the tested area in the current power generation cycle.

[0107] It should be noted that the device provided in the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the distributed energy consumption system based on neural network and the distributed energy consumption method based on neural network provided in the above embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0108] Embodiment 3:

[0109] Figure 5 A schematic diagram of a computer device for distributed energy consumption based on a neural network provided by an embodiment of the present invention. For example, Figure 5 As shown, the computer device includes: a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the computer device can execute any one of the distributed energy consumption methods based on neural networks introduced above.

[0110] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to execute a distributed energy consumption method based on a neural network provided in an embodiment of the present application.

[0111] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0112] It should be understood that the device provided in this embodiment is used to execute the above-mentioned distributed energy consumption method based on neural network, and therefore can achieve the same effect as the above-mentioned implementation method.

[0113] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a device, the processing module may be used to control and manage the actions of the device. The storage module may be used to support the device to execute mutual program codes, etc.

[0114] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

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

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

[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A distributed energy consumption method based on neural network, characterized in that: The method includes: Obtain meteorological data of each type of weather at each moment in the historical time period in the tested area, and power generation data of each power generation group at each moment in the historical time period; divide the historical time period into different power generation cycles; select any power generation cycle as the target cycle, and obtain the target time period of the target cycle; According to the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, the meteorological data of each meteorological weather in each power generation cycle in the target time period, and the power generation data of each power generation group at the same position in different power generation cycles in the target time period, the time advantage index of each power generation group at each moment in the power generation cycle is obtained; According to the time advantage index of all power generation groups in the tested area at each moment in the power generation cycle, the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, and the power generation data of the power generation group in the target time period, the final meteorological weight of each meteorological weather at each moment in the target cycle is obtained; The neural network is trained according to the final meteorological weight of each meteorological type in each power generation cycle in the historical time period; the trained neural network is used to absorb the distributed energy in the current power generation cycle in the tested area; The method for training a neural network comprises: Obtain the power consumption data of the area to be tested at each moment in the historical time period, and the power data of the active distribution network of the area to be tested at each moment in the historical time period; For each power generation cycle in the historical time period, the input data of each training sample is composed of the final meteorological weights of all meteorological conditions at all times in each power generation cycle, meteorological data, and electricity consumption data at the same position in the previous power generation cycle of the power generation cycle; the output data of each training sample is composed of power data at all times in each power generation cycle; the training samples corresponding to all power generation cycles in the historical time period constitute a training set of the neural network; and the neural network is trained using the training set and the loss function of the neural network.

2. A distributed energy consumption method based on neural network according to claim 1, characterized in that: The method for obtaining the time advantage index of each power generation group at each moment in the power generation cycle includes: According to the correlation between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological type, and the meteorological data of each meteorological type in each power generation cycle in the target time period, the time significance weight of each power generation group in each power generation cycle in the target time period is obtained; According to the time significance weight of each power generation cycle of each power generation group in the target time period, the power generation data at the same position in all power generation cycles are weighted and summed to obtain the time advantage index of each power generation group at each moment in the power generation cycle.

3. A distributed energy consumption method based on neural network according to claim 2, characterized in that: The method for obtaining the time significance weight of each power generation cycle of each power generation group within the target time period includes: Normalize the correlation coefficient between the power generation data of each power generation group at all times in the target time period and the meteorological data of each meteorological weather to obtain the first meteorological related index of each power generation group under each meteorological weather; Normalize the meteorological data of each meteorological weather at each time in the historical time period to obtain the meteorological standard data of the corresponding meteorological weather, and add up the meteorological standard data of each meteorological weather at all times included in each power generation cycle to obtain the standard meteorological intensity of each meteorological weather in the corresponding power generation cycle; According to the first meteorological related index of each power generation group, the standard meteorological intensity of each meteorological type in each power generation cycle within the target time period is weighted and summed to obtain the time significance weight of each power generation cycle of each power generation group within the target time period.

4. The distributed energy consumption method based on neural network according to claim 1 is characterized in that: The method for obtaining the final meteorological weight of each meteorological condition at each moment in the target period includes: The absolute value of the correlation coefficient between the power generation data of each power generation group at all times within the target time period and the meteorological data of each meteorological condition is used as the second meteorological related indicator of each power generation group under each meteorological condition; the cumulative sum of the power generation data of each power generation group at all times within the target time period is recorded as the comprehensive power generation data of the corresponding power generation group; According to the time advantage index of each power generation group at each moment in the power generation cycle, the second meteorological related index of each power generation group under each meteorological condition and the comprehensive power generation data, the initial meteorological weight of each power generation group under each meteorological condition at each moment in the target cycle is obtained; the cumulative sum of the initial meteorological weights of all power generation groups at each moment in the target cycle is used as the final meteorological weight of each meteorological condition at each moment in the target cycle.

5. The distributed energy consumption method based on neural network according to claim 1 is characterized in that: The method for obtaining the loss function of the neural network includes: The power data at each moment is taken as the true value at each moment, and the power data at the next adjacent moment of each moment is taken as the predicted value at each moment; the loss function of the neural network is constructed based on the absolute error loss of the power data at all moments in the historical time period.

6. The distributed energy consumption method based on neural network according to claim 1 is characterized in that: The method for obtaining a target time period of a target cycle includes: In the historical time period, a preset local time period before the start time of the target period is used as the target time period.

7. The distributed energy consumption method based on neural network according to claim 3 is characterized in that: The correlation coefficient is the Pearson correlation coefficient.

8. The distributed energy consumption method based on neural network according to claim 1 is characterized in that: The neural network is a long short-term memory neural network.

9. A distributed energy consumption system based on neural network, characterized in that: The system includes: The data acquisition module is used to obtain the meteorological data of each meteorological type at each moment in the historical time period in the tested area, and the power generation data of each power generation group at each moment in the historical time period; divide the historical time period into different power generation cycles; select any power generation cycle as the target cycle, and obtain the target time period of the target cycle; The time advantage analysis module is used to obtain the time advantage index of each power generation group at each moment in the power generation cycle according to the correlation degree between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological weather, the meteorological data of each meteorological weather in each power generation cycle in the target time period, and the power generation data of each power generation group at the same position in different power generation cycles in the target time period; The meteorological impact analysis module is used to obtain the final meteorological weight of each meteorological condition at each moment in the target period according to the time advantage index of all power generation groups in the tested area at each moment in the power generation period, the correlation degree between the power generation data of each power generation group in the target time period and the meteorological data of each meteorological condition, and the power generation data of the power generation group in the target time period; The energy consumption module is used to train the neural network according to the final meteorological weight of each meteorological condition in each power generation cycle in the historical time period; the trained neural network is used to consume the distributed energy in the current power generation cycle in the tested area; The method for training a neural network comprises: Obtain the power consumption data of the area to be tested at each moment in the historical time period, and the power data of the active distribution network of the area to be tested at each moment in the historical time period; For each power generation cycle in the historical time period, the input data of each training sample is composed of the final meteorological weights of all meteorological conditions at all times in each power generation cycle, meteorological data, and electricity consumption data at the same position in the previous power generation cycle of the power generation cycle; the output data of each training sample is composed of power data at all times in each power generation cycle; the training samples corresponding to all power generation cycles in the historical time period constitute a training set of the neural network; and the neural network is trained using the training set and the loss function of the neural network.

Citation Information

Patent Citations

  • Intelligent optimal scheduling method for wind and solar energy storage grid-connected power generation

    CN104283236A

  • Method and system for determining photovoltaic generation power

    CN108197744A

  • Short-term photovoltaic power prediction method based on meteorological factor weight similar day

    CN108564192A

  • Regional power grid short-term load prediction system based on refined meteorological data

    CN109978237A

  • Generated power prediction method and device, computer equipment and storage medium

    CN114676923A