Medium and long term load data enhancement method, system and device based on generative adversarial network and storage medium

The mid- and long-term power load data set is expanded by generating an adversarial network model, which solves the problem of low prediction accuracy caused by lack of data and improves the effect of mid- and long-term load forecasting.

CN118801356APending Publication Date: 2024-10-18HUANENG CLEAN ENERGY RES INST +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410862784.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The lack of medium and long-term power load data makes it difficult to apply deep learning models. Traditional statistical methods have poor prediction accuracy and cannot effectively describe complex nonlinear load relationships.

Method used

Using a generative adversarial network model, the normally distributed random noise is input into the generator to generate fake data, and the discriminator is used to distinguish real and fake data. The generator and discriminator are optimized to expand the medium and long-term load data set, and generate weekly, ten-day, and monthly data. energy usage data.

Benefits of technology

It effectively expands the mid- and long-term power load data set, provides support for deep learning models, and improves the accuracy of mid- and long-term load forecasting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118801356A_ABST
    Figure CN118801356A_ABST
Patent Text Reader

Abstract

The invention discloses a medium and long term load data enhancement method, system and device based on a generative adversarial network, and a storage medium. The method comprises the following steps: equally dividing load data of a user in one day into n-point original energy consumption data; establishing a generative adversarial network model which comprises a generator and a discriminator; normally distributed random noise is input into a generator, an input vector is n points, and analog energy consumption data imitated by the n points is output; the original energy consumption data and the simulated energy consumption data are input into a discriminator, the discriminator distinguishes whether any input sample is real data or not, and the probability of judging that the input is the real data is output; optimizing the discriminator and the generator through a loss calculation function; when the data set is expanded, normal distribution random numbers are input into the generative adversarial network model, energy consumption data are output, energy consumption data of a user in one day is generated based on the data, energy consumption data of weeks, ten days and months are further generated, and a medium-and-long-term load data set is expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power load data, and relates to a medium- and long-term load data enhancement method, system, device and storage medium based on a generative adversarial network. Background Art

[0002] The medium- and long-term power load reflects the energy consumption of users in weekly or monthly units, and reflects the production and operation conditions of users. Power sales companies can analyze the historical load of users and make medium- and long-term load forecasts, thereby adjusting the resources on the power supply side, shaving peaks and filling valleys, providing more economical power supply contracts, and reducing user energy costs. In summary, medium- and long-term load forecasts have important economic and social value to power sales companies and users.

[0003] Although with the reform of the power market and the development of smart meters in recent years, power sales companies have gradually mastered user load data, but from the perspective of medium- and long-term load forecasting, the amount of statistical data is very scarce. For example, for a user who has signed a two-year power sales contract, there are only 104 pieces of medium- and long-term load data on a weekly basis and only 24 pieces of medium- and long-term load data on a monthly basis.

[0004] Because there is little historical data on medium- and long-term loads on the user side, power sales companies often use statistical methods such as regression analysis, trend extrapolation, and gray prediction when making forecasts. The advantages of these methods are strong interpretability and the ability to build models with small samples. The disadvantages are that they require industry experts to deeply tune the mathematical model, cannot describe complex nonlinear load relationships, and have poor stability and accuracy.

[0005] With the rise of artificial intelligence, forecasting methods represented by deep learning can automatically perceive the complex nonlinear mapping relationship behind historical data, overcome the problem that traditional statistical methods are not effective in modeling highly complex data, and greatly improve the forecasting effect. Deep learning methods are currently less used in medium- and long-term load forecasting because deep learning models require a large amount of historical data, while medium- and long-term load data on the user side is relatively scarce, which is not conducive to establishing medium- and long-term power load forecasting models.

[0006] Due to the lack of data in the load data set, various deep learning methods have not been effectively applied in the field of medium- and long-term load forecasting. Power sales companies can only use traditional statistical methods to make medium- and long-term load forecasts for users. Such statistical methods are highly dependent on the deep tuning of experts, and it is difficult to describe the complex nonlinear relationships in the deep layer of data, resulting in poor prediction accuracy. Summary of the invention

[0007] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a medium- and long-term load data enhancement method, system, device and storage medium based on a generative adversarial network, which can effectively enhance the medium- and long-term power load data, and thus provide effective support for machine learning models that require a large amount of data.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] A medium- and long-term load data enhancement method based on a generative adversarial network includes the following processes:

[0010] Divide the user's daily load data into n points of original energy consumption data;

[0011] A generative adversarial network model is established, which includes a generator and a discriminator; a normally distributed random noise is input into the generator, the input vector is n points, and the output is the simulated energy consumption data of n points; the original energy consumption data and the simulated energy consumption data are input into the discriminator, and the discriminator distinguishes whether any input sample is real data, and outputs the probability of judging that the input is real data;

[0012] The discriminator is optimized through the loss calculation function, and the optimization direction is: when the imitation data of the generator is used as input, the output probability approaches 0; when the preprocessed data is used as input, the output probability approaches 1; the generator is optimized through the loss calculation function, and the optimization direction is: when the imitation data of the generator is input into the discriminator, the output probability approaches 1; repeat the optimization process, and when the discriminator outputs a probability value of 0.5 for any given input, the optimization is completed;

[0013] When expanding the data set, normally distributed random numbers are input into the generative adversarial network model to output energy consumption data. Based on this data, the user's daily energy consumption data is generated, and then weekly, ten-day, and monthly energy consumption data are generated to expand the medium- and long-term load data set.

[0014] Preferably, before the original energy consumption data is input into the discriminator, it is first expanded into a one-dimensional vector and normalized.

[0015] Preferably, the load data of the user for one day is divided into n points. Specifically, the load data of the user for one day is divided into 96 points of data according to 15 minutes / segment.

[0016] Preferably, the generator uses a neural network model, and the activation function uses relu() and tanh().

[0017] Preferably, the discriminator uses a neural network model, and uses Leakrelu(), relu(), and tanh() as activation functions.

[0018] Preferably, the loss calculation functions of the discriminator and the generator both use BCELoss(), and the optimizers both use Adam.

[0019] Preferably, when the data set is expanded, normally distributed random numbers are input into the generator, and the generator outputs energy consumption data.

[0020] A medium- and long-term load data enhancement system based on a generative adversarial network, comprising:

[0021] Data division module: used to divide the user's daily load data into n points of original energy consumption data;

[0022] Generative adversarial network model building module: used to build a generative adversarial network model, which includes a generator and a discriminator; use normal distributed random noise input to the generator, the input vector is n points, and the output is the simulated energy consumption data of n points; input the original energy consumption data and the simulated energy consumption data into the discriminator, the discriminator distinguishes whether any input sample is real data, and outputs the probability of judging that the input is real data;

[0023] Optimization module: used to optimize the discriminator through the loss calculation function. The optimization direction is: when the imitation data of the generator is used as input, the output probability approaches 0; when the preprocessed data is used as input, the output probability approaches 1; the generator is optimized through the loss calculation function. The optimization direction is: when the imitation data of the generator is input into the discriminator, the output probability approaches 1; repeat the optimization process. When the discriminator outputs a probability value of 0.5 for any given input, the optimization is completed;

[0024] Dataset expansion module: When expanding the data set, it inputs normally distributed random numbers into the generative adversarial network model and outputs energy consumption data. Based on this data, it generates the user's daily energy consumption data, and then generates weekly, ten-day, and monthly energy consumption data to expand the medium- and long-term load data set.

[0025] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the medium- and long-term load data enhancement method based on a generative adversarial network when executing the computer program.

[0026] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the medium- and long-term load data enhancement method based on a generative adversarial network.

[0027] Compared with the prior art, the present invention has the following beneficial effects:

[0028] The present invention continuously optimizes the generator and the discriminator by generating an adversarial network model. The optimization direction of the discriminator is: when the imitation data of the generator is used as input, the output probability should be close to 0; when the preprocessed data is used as input, the output probability should be close to 1. For the generator, the optimization direction is exactly opposite to that of the discriminator. For the given data imitated by the generator, because the discriminator hopes that its probability output value is close to 0, and the generator hopes that the probability value output by the discriminator is close to 1, the direction of the generator's loss calculation is opposite to that of the discriminator. After the optimization is completed, the existing data set can be effectively and substantially expanded through the model, thereby providing support for subsequent medium- and long-term load forecasting work. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of the basic principle of the generative adversarial network of the present invention;

[0030] Figure 2 This is a flow chart of training the generative adversarial network model of the present invention. DETAILED DESCRIPTION

[0031] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0032] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs. The terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" used in this article includes any and all combinations of one or more related listed items. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0034] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0035] The disclosure below provides many different embodiments or examples to realize different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplicity and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the present invention provides various specific examples of processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.

[0036] The present invention proposes a medium- and long-term load data enhancement method based on a generative adversarial network. Based on the existing data in the load data set, the method uses a generative adversarial network model to effectively and significantly expand the existing data set, thereby providing support for subsequent medium- and long-term load forecasting work.

[0037] Figure 1The architecture of the generative adversarial network model is shown. The model trains two sub-models at the same time, namely the generator and the discriminator. The generator can read the existing load data, add random noise, and imitate the load data; while the discriminator is used to determine whether a sample comes from real data or data imitated by the generator. When the discriminator's authenticity judgment result for the given real or imitated data is about 0.5, it means that the model training is successful and the data set can be effectively expanded based on historical data.

[0038] Therefore, the main process of the medium- and long-term load data enhancement method of the present invention is:

[0039] Divide the user's daily load data into n points of original energy consumption data;

[0040] A generative adversarial network model is established, which includes a generator and a discriminator; a normally distributed random noise is input into the generator, the input vector is n points, and the output is the simulated energy consumption data of n points; the original energy consumption data and the simulated energy consumption data are input into the discriminator, and the discriminator distinguishes whether any input sample is real data, and outputs the probability of judging that the input is real data;

[0041] The discriminator is optimized through the loss calculation function, and the optimization direction is: when the imitation data of the generator is used as input, the output probability approaches 0; when the preprocessed data is used as input, the output probability approaches 1; the generator is optimized through the loss calculation function, and the optimization direction is: when the imitation data of the generator is input into the discriminator, the output probability approaches 1; repeat the optimization process, and when the discriminator outputs a probability value of 0.5 for any given input, the optimization is completed;

[0042] When expanding the data set, normally distributed random numbers are input into the generative adversarial network model to output energy consumption data. Based on this data, the user's daily energy consumption data is generated, and then weekly, ten-day, and monthly energy consumption data are generated to expand the medium- and long-term load data set.

[0043] like Figure 2 As shown in Figure 1, the specific process of the medium- and long-term load data enhancement method is as follows:

[0044] Step 1: Data preprocessing.

[0045] In order to expand the existing data set, it is necessary to train a generative adversarial network model based on the known data set. In the industry, the user's daily load data is generally divided into 96 data points according to 15 minutes / segment. The adversarial network model takes the 96 points of energy consumption data as input. The input data is expanded into a one-dimensional vector and normalized. The processed data can be output to the discriminator.

[0046] Step 2: Generator construction and output.

[0047] The generator uses normally distributed random noise as input, and the input vector is 96 points. The generator uses a neural network model, and the activation function uses relu() and tanh(). The output is 96 points of simulated energy consumption data, which is used as another input of the discriminator.

[0048] Generally speaking, the 96-point simulated energy consumption data output by the generator without optimization is very different from the real energy consumption data. The generator needs to be optimized according to the results of the subsequent discriminator.

[0049] Step 3: Discriminator construction and optimization.

[0050] The discriminator is used to distinguish whether any input sample is real or fake. The discriminator uses a neural network model to judge the energy usage data faked by the generator and the real energy usage data after preprocessing. The discriminator uses Leakrelu(), relu(), and tanh() as activation functions, and the output value is the probability of judging that the input is real data.

[0051] The optimization direction of the discriminator is: when the counterfeit data of the generator is used as input, the output probability should be close to 0; when the preprocessed data is used as input, the output probability should be close to 1. The loss calculation function uses BCELoss(), and the optimizer uses Adam. As the training progresses, the discriminator's "authenticity and counterfeit identification" effect will continue to increase.

[0052] Step 4: Generator optimization. Based on the 96-point vector data simulated by the generator, the discriminator will output a probability value to determine whether the data is real data or simulated data. For the generator, the optimization direction is exactly opposite to that of the discriminator. For the given data simulated by the generator, because the discriminator hopes that its probability output value is close to 0, and the generator hopes that the probability value output by the discriminator is close to 1, when doing gradient descent optimization, it should be noted that the direction in which the generator calculates the loss is opposite to that of the discriminator, which makes the optimization directions of the two opposite. The loss calculation function of the generator uses BCELoss(), and the optimizer uses Adam.

[0053] Step 5: After repeated training of the above steps, the discriminator finally outputs a probability value of 0.5 for any given input, indicating that it cannot determine whether the data is real or fake. At this time, the model has converged and can be put into production to expand the data set.

[0054] Step 6: When expanding the data set, we can use the converged model based on the normally distributed random numbers as input to output 96 points of energy consumption data. Based on this data, we can generate the user's energy consumption data for one day, and then generate weekly, ten-day, and monthly energy consumption data, expand the medium- and long-term load data set, and assist in further medium- and long-term load forecasting.

[0055] The following are device embodiments of the present invention, which can be used to perform method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.

[0056] In another embodiment of the present invention, a medium- and long-term load data enhancement system based on a generative adversarial network is provided. The medium- and long-term load data enhancement system based on a generative adversarial network can be used to implement the above-mentioned medium- and long-term load data enhancement method based on a generative adversarial network. Specifically, the medium- and long-term load data enhancement system based on a generative adversarial network includes a data partitioning module, a generative adversarial network model building module, an optimization module and a data set expansion module.

[0057] The data division module is used to divide the user's daily load data into n points of original energy consumption data.

[0058] The generative adversarial network model building module is used to build a generative adversarial network model, which includes a generator and a discriminator; a normally distributed random noise is input into the generator, the input vector is n points, and the output is the simulated energy consumption data imitated by n points; the original energy consumption data and the simulated energy consumption data are input into the discriminator, and the discriminator distinguishes whether any input sample is real data, and outputs the probability of judging that the input is real data.

[0059] The optimization module is used to optimize the discriminator through the loss calculation function. The optimization direction is: when the generator's imitated data is used as input, the output probability approaches 0; when the preprocessed data is used as input, the output probability approaches 1; the generator is optimized through the loss calculation function. The optimization direction is: when the generator's imitated data is input into the discriminator, the output probability approaches 1; repeat the optimization process, and when the discriminator outputs a probability value of 0.5 for any given input, the optimization is completed.

[0060] The data set expansion module is used to input normally distributed random numbers into the generative adversarial network model when expanding the data set, and output energy consumption data. Based on this data, it generates the user's daily energy consumption data, and then generates weekly, ten-day, and monthly energy consumption data to expand the medium- and long-term load data set.

[0061] In another embodiment of the present invention, a terminal device is provided, the terminal device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGAs), or other processors. GateArray, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the medium- and long-term load data enhancement method based on the generative adversarial network, including: dividing the user's one-day load data into n-point original energy consumption data; establishing a generative adversarial network model, the generative adversarial network model includes a generator and a discriminator; using normally distributed random noise input to the generator, the input vector is n points, and the output is n-point simulated energy consumption data; the original energy consumption data and the simulated energy consumption data are input to the discriminator , the discriminator distinguishes whether any input sample is real data, and outputs the probability of judging that the input is real data; the discriminator is optimized through the loss calculation function, and the optimization direction is: when the generator's imitation data is used as input, the output probability approaches 0; when the preprocessed data is used as input, the output probability approaches 1; the generator is optimized through the loss calculation function, and the optimization direction is: when the generator's imitation data is input into the discriminator, the output probability approaches 1; repeat the optimization process, and when the discriminator outputs a probability value of 0.5 for any given input, the optimization is completed; when the data set is expanded, a normally distributed random number is input into the generative adversarial network model, and energy consumption data is output. Based on this data, the user's energy consumption data for one day is generated, and then weekly, ten-day, and monthly energy consumption data are generated to expand the medium- and long-term load data set.

[0062] In another embodiment, the present invention further provides a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It is understandable that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory.

[0063] The processor can load and execute one or more instructions stored in a computer-readable storage medium to implement the corresponding steps of the medium- and long-term load data enhancement method based on a generative adversarial network in the above-mentioned embodiment; one or more instructions in the computer-readable storage medium are loaded by the processor and the following steps are executed: the user's load data for one day is evenly divided into n points of original energy consumption data; a generative adversarial network model is established, and the generative adversarial network model includes a generator and a discriminator; a normally distributed random noise is input into the generator, the input vector is n points, and the output is the simulated energy consumption data simulated by n points; the original energy consumption data and the simulated energy consumption data are input into the discriminator, and the discriminator distinguishes whether any input sample is real data, and outputs a judgment input sample. The probability that the input is real data; the discriminator is optimized through the loss calculation function, and the optimization direction is: when the generator's imitation data is used as input, the output probability approaches 0; when the preprocessed data is used as input, the output probability approaches 1; the generator is optimized through the loss calculation function, and the optimization direction is: when the generator's imitation data is input into the discriminator, the output probability approaches 1; repeat the optimization process, and when the discriminator outputs a probability value of 0.5 for any given input, the optimization is completed; when the data set is expanded, a normally distributed random number is input into the generative adversarial network model, and energy consumption data is output. Based on this data, the user's energy consumption data for one day is generated, and then the weekly, ten-day, and monthly energy consumption data are generated to expand the medium- and long-term load data set.

[0064] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0065] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0066] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0068] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0069] It should be understood that the above description is for illustration and not for limitation. Many embodiments and many applications beyond the examples provided will be apparent to those skilled in the art upon reading the above description. Therefore, the scope of the present teachings should not be determined with reference to the above description, but rather with reference to the foregoing claims and the full scope of equivalents to which such claims are entitled. For the purpose of comprehensiveness, all articles and references, including disclosures of patent applications and publications, are incorporated herein by reference. The omission of any aspect of the subject matter disclosed herein in the foregoing claims is not intended to be a waiver of such subject matter, nor should it be considered that the applicant has not considered such subject matter to be part of the disclosed inventive subject matter.

Claims

1. A medium- and long-term load data enhancement method based on generative adversarial networks, It is characterized in that The process includes: Divide the user's daily load data into n points of original energy consumption data; A generative adversarial network model is established, which includes a generator and a discriminator; a normally distributed random noise is input into the generator, the input vector is n points, and the output is the simulated energy consumption data of n points; the original energy consumption data and the simulated energy consumption data are input into the discriminator, and the discriminator distinguishes whether any input sample is real data, and outputs the probability of judging that the input is real data; The discriminator is optimized through the loss calculation function, and the optimization direction is: when the imitation data of the generator is used as input, the output probability approaches 0; when the preprocessed data is used as input, the output probability approaches 1; the generator is optimized through the loss calculation function, and the optimization direction is: when the imitation data of the generator is input into the discriminator, the output probability approaches 1; repeat the optimization process, and when the discriminator outputs a probability value of 0.5 for any given input, the optimization is completed; When expanding the data set, normally distributed random numbers are input into the generative adversarial network model to output energy consumption data. Based on this data, the user's daily energy consumption data is generated, and then weekly, ten-day, and monthly energy consumption data are generated to expand the medium- and long-term load data set.

2. According to claim 1, the medium- and long-term load data enhancement method based on generative adversarial network, It is characterized in that Before the original energy consumption data is input into the discriminator, it is first expanded into a one-dimensional vector and normalized.

3. According to claim 1, the medium- and long-term load data enhancement method based on generative adversarial network, It is characterized in that The user's daily load data is divided into n points. Specifically, the user's daily load data is divided into 96 points of data according to 15 minutes / segment.

4. According to claim 1, the medium- and long-term load data enhancement method based on generative adversarial network, It is characterized in that The generator uses a neural network model, and the activation functions use relu() and tanh().

5. According to claim 1, the medium- and long-term load data enhancement method based on generative adversarial network, It is characterized in that The discriminator uses a neural network model and uses Leakrelu(), relu(), and tanh() as activation functions.

6. According to claim 1, the medium- and long-term load data enhancement method based on generative adversarial network, It is characterized in that The loss calculation functions of the discriminator and generator both use BCELoss(), and the optimizer uses Adam.

7. According to claim 1, the medium- and long-term load data enhancement method based on generative adversarial network, It is characterized in that When the data set is expanded, normally distributed random numbers are input to the generator, and the generator outputs energy consumption data.

8. A medium- and long-term load data enhancement system based on generative adversarial networks, It is characterized in that include: Data division module: used to divide the user's daily load data into n points of original energy consumption data; Generative adversarial network model building module: used to build a generative adversarial network model, which includes a generator and a discriminator; use normal distributed random noise input to the generator, the input vector is n points, and the output is the simulated energy consumption data of n points; input the original energy consumption data and the simulated energy consumption data into the discriminator, the discriminator distinguishes whether any input sample is real data, and outputs the probability of judging that the input is real data; Optimization module: used to optimize the discriminator through the loss calculation function. The optimization direction is: when the imitation data of the generator is used as input, the output probability approaches 0; when the preprocessed data is used as input, the output probability approaches 1; the generator is optimized through the loss calculation function. The optimization direction is: when the imitation data of the generator is input into the discriminator, the output probability approaches 1; repeat the optimization process. When the discriminator outputs a probability value of 0.5 for any given input, the optimization is completed; Dataset expansion module: When expanding the data set, it inputs normally distributed random numbers into the generative adversarial network model and outputs energy consumption data. Based on this data, it generates the user's daily energy consumption data, and then generates weekly, ten-day, and monthly energy consumption data to expand the medium- and long-term load data set.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the medium- and long-term load data enhancement method based on a generative adversarial network as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the medium- and long-term load data enhancement method based on a generative adversarial network as described in any one of claims 1 to 7 are implemented.