Conditional generative adversarial network-based short-term load prediction method
By using a method based on conditional generation of adversarial networks to process complex nonlinear load data, combined with meteorological and date type data, it solves the problem of insufficient accuracy of existing short-term load forecasting algorithms, achieves efficient and accurate power load forecasting, and improves the model generalization ability and interpretability.
Patent Information
- Application Number
- CN202410868518.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
Existing short-term load forecasting algorithms cannot effectively handle the underlying relationships between complex nonlinear load data, resulting in insufficient forecast accuracy and problems such as high data demand, poor interpretability, overly complex networks, and low output efficiency.
Using a method based on conditional generative adversarial networks (CGAN), a generative model G and a discriminative model D are constructed through a convolutional neural network, and alternate training is performed. Min-Max normalization, autocorrelation coefficients and two-dimensional convolution models are used to optimize the network structure. , combine meteorological and date type data for data preprocessing and feature extraction to improve prediction accuracy and training efficiency.
It achieves efficient prediction between complex nonlinear sequence data, improves prediction accuracy, generalization ability and interpretability. The network structure is clear, the training efficiency is high, and short-term power load forecasting can be performed more accurately.
Smart Images

Figure CN118735069A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system load forecasting, and in particular to a short-term load forecasting method based on a conditional generative adversarial network. Background Art
[0002] Power load forecasting plays an important role in the application of power systems. Load forecasting is the basis for ensuring the dynamic balance of power supply and demand. With the development of the power market, higher requirements are placed on the accuracy of load forecasting. At present, the application of technologies such as distributed renewable energy grid connection and coordinated interaction of "source, grid, load and storage" have improved the economy and management efficiency of the power system to a certain extent, but new requirements have also been put forward for the accuracy of load forecasting at multiple time scales. Short-term load forecasting refers to the prediction of loads for the next few minutes to a week. In real life, nonlinear load data is becoming more and more complex, and there is an urgent need to study more accurate load forecasting methods to improve the effectiveness of economic dispatch.
[0003] The general regression model mainly focuses on building a linear relationship model, ignoring the influence of factors. Methods such as the Linear Regression (LR) model, the Support Vector Regression (SVR) model, and the Autoregressive Integrated Moving Average (ARIMA) model mainly build models on linear relationships, ignoring the impact of climate and date types on short-term load forecasting.
[0004] Deep learning is more suitable for application scenarios with high dimensions and large amounts of data. However, existing technical methods all have certain limitations. For example, the Support Vector Machine (SVM) algorithm has problems such as high data requirements and poor interpretability; the error-based Backpropagation (BP) algorithm is prone to losing local characteristics such as volatility, randomness, and nonlinearity; the Long Short-Term Memory (LSTM) network can only alleviate the problem of long-term time dependence, and there are also problems such as the network being too complex and low output efficiency. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a short-term load forecasting method based on a conditional generative adversarial network, comprising the following steps:
[0006] S1. Data preprocessing: using deviation standardization, i.e. Min-Max normalization operation, to map the experimental data to the interval [0, 1], to scale the original data, and to perform data preprocessing;
[0007] S2. Constructing conditional generative adversarial network (CGAN): Introducing convolutional neural network (CNN) to construct the internal structure of the generative model G and discriminative model D in the generative adversarial network (GAN);
[0008] S3. Network training of the model: The CGAN network model is trained by alternating training of the generative model G and the discriminative model D;
[0009] S4, evaluation index: mean absolute error y MAE , Root mean square error y RMSE And the prediction accuracy y FA as evaluation criteria.
[0010] The technical solution further defined in the present invention is:
[0011] Furthermore, in step S1, the Min-Max normalization formula is:
[0012]
[0013] Among them, x represents the current data, x min Indicates the minimum value, x max Indicates the maximum value.
[0014] In the above-mentioned short-term load forecasting method based on conditional generative adversarial network, in step S1, the length of the input variable time series is determined by calculating the autocorrelation coefficient of the sample data, and the autocorrelation coefficient reflects the correlation between different lag states and the periodicity of the sequence; the formula for calculating the autocorrelation coefficient A of the time series with a lag time of m is:
[0015]
[0016] Among them, x i represents the value of the input time series, Represents x i The average value of , l is the length of the time series.
[0017] In the above-mentioned short-term load forecasting method based on conditional generative adversarial network, in step S2, a two-dimensional convolutional model 2D-CNN structure is used to construct a short-term load forecasting model, a two-dimensional equivalent information degree transformation is performed on the one-dimensional sequence data, and it is arranged into a two-dimensional form of n*n for convolution; the network structure is optimized by using a method of calculating feature bias using part of the discriminator hidden layer.
[0018] In the above-mentioned short-term load forecasting method based on conditional generative adversarial network, in step S2, strided convolution is used instead of spatial pooling in the convolutional neural network CNN, so that the network can autonomously learn spatial downsampling; in the output layer, the tanh activation function is used, and in other layers, ReLU activation is used, and the network finally generates prediction data.
[0019] In the above-mentioned short-term load forecasting method based on conditional generative adversarial network, in step S2, the generation model G is composed of a three-layer convolutional neural network CNN, the input layer is convolved by 32 5*5 convolution kernels to obtain the convolution layer C1, the convolution layer is convolved by 64 5*5 convolution kernels to obtain C2, and the output with a sliding step size of 2 is obtained by convolution by 1 5*5 convolution kernel.
[0020] In the above-mentioned short-term load forecasting method based on conditional generative adversarial network, in step S2, the conditional data is input into the discriminant model D with the generated samples and the real samples as input data, and the discriminant model D also connects the input data into a matrix as the input of the convolutional layer; the discriminant model D is composed of a 3-layer convolutional neural network CNN, and the feature loss function is applied to the second and third hidden layers of the discriminant model D. Finally, full connection and sigmoid activation function are used to perform true and false judgment, and the result is mapped to (0, 1).
[0021] In the above-mentioned short-term load forecasting method based on conditional generative adversarial network, in the discriminant model D, the convolution layer C1 is obtained by convolution of 32 5*5 convolution kernels; the convolution layer C2 is obtained by convolution of 64 5*5 convolution kernels; the convolution layer C3 is obtained by convolution of 128 5*5 convolution kernels, and the sliding step size is 2; finally, the discriminant result is output through the fully connected layer.
[0022] In the above-mentioned short-term load forecasting method based on conditional generative adversarial network, in step S3, in the network training of the model, the power parameter is set to 0.99, the weight of L1 loss function λL1 is set to 100.0, and the weight of feature loss function λ per is set to 50.0, the second hidden layer weight λ2 is set to 1.0, and the third hidden layer weight λ3 is set to 2.0.
[0023] In the above-mentioned short-term load forecasting method based on conditional generative adversarial network, in step S4, the mean absolute error y MAE , Root mean square error y RMSE And the prediction accuracy y FA The formula definition is as follows:
[0024]
[0025] Among them, x real Indicates the true load value; xpred Predicted load value; N is the number of predictions.
[0026] The beneficial effects of the present invention are:
[0027] In the present invention, accurate and rapid power load forecasting is helpful for the reasonable dispatch of the power system and the maintenance of the stability of the whole system; the current short-term load forecasting algorithm cannot handle the underlying relationship between complex nonlinear load data, resulting in insufficient accuracy of the algorithm prediction; and the present invention proposes a short-term load forecasting method based on a conditional generative adversarial network, which can learn potential relationships and generate new data between complex nonlinear sequence data through game training of the adversarial network; experimental results show that the model trained by this method has higher prediction accuracy in different scenarios, and at the same time has higher training efficiency, stronger generalization ability, clearer network structure, and stronger interpretability. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a schematic diagram of the structure of a conditional generative adversarial network (CGAN) in an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of a conditional generative adversarial network combined with short-term load forecasting in an embodiment of the present invention;
[0030] Figure 3 It is a schematic diagram of the overall process of the present invention;
[0031] Figure 4 A schematic diagram of a network structure of a generation model G in an embodiment of the present invention;
[0032] Figure 5 Schematic diagram of the network structure of the discriminant model D in an embodiment of the present invention;
[0033] Figure 6 This is a schematic diagram comparing the prediction and measurement results within one day in an embodiment of the present invention;
[0034] Figure 7 Schematic diagram of comparison of prediction results of different algorithm models in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] This embodiment provides a short-term load forecasting method based on a conditional generative adversarial network. In view of the problem that the current short-term load forecasting algorithm is unable to handle the underlying relationship between complex nonlinear load data, resulting in insufficient accuracy of the algorithm prediction, the method provided by this embodiment can achieve efficient and accurate short-term load forecasting.
[0036] The Conditional Generative Adversarial Network (CGAN) is an improvement on the Generative Adversarial Network (GAN). The basic structure of the Generative Adversarial Network (GAN) consists of a generative model and a discriminative model. The generative model G is used to generate target data, and the discriminative model D is used to determine whether the input sample comes from the generative model G as much as possible.
[0037] During training, the generative model G and the discriminative model D are trained in game adversarial manner under the constraints of their respective loss functions. After training, the "fake data" generated by the generative model G cannot be distinguished from the "real data" generated by the discriminative model D after reverse training. After training, the discriminative model D can identify the "fake data" generated by the generator as much as possible; Figure 1 As shown in Figure 1, in addition to the generative model G and the discriminative model D, the conditional generative adversarial network CGAN also adds an additional condition y as input; the generative model G and the discriminative model D update their own parameters for optimization according to the feedback results, thereby improving their respective generation and discrimination capabilities. The network structure parameters and their meanings are shown in Table 1.
[0038] Table 1 Network structure parameters and their significance
[0039]
[0040] In this embodiment, the combination of network and short-term load forecasting is as follows Figure 2 shown.
[0041] exist Figure 2 In this paper, constructing a data set mainly refers to constructing training and test data sets and execution data; the initial distribution is noise data, which is a random variable generated by a function with a mean of 0, a variance of 1, and a Gaussian distribution.
[0042] During the training process of the short-term load forecasting network model, this embodiment combines the CGAN model with the characteristic loss function to perform short-term load forecasting; random noise data and conditional data are input into the generation model G, and the predicted load data is output from the generation model G; the predicted load data and the real load data are respectively input into the discriminant model D, and the output of the discriminant model D is the probability that the input data is the real data.
[0043] Finally, the trained prediction model is used to perform load forecasting and the results are compared with other prediction methods. In the comparative experiment, the same test data is input into the short-term load forecasting model of other algorithms and the mean absolute error y is used to compare the results. MAE, Root mean square error y RMSE And the prediction accuracy y FA As an evaluation indicator of prediction accuracy, the prediction results of different prediction methods are compared.
[0044] This embodiment provides a short-term load forecasting method based on conditional generative adversarial network. Figure 3 As shown, the following steps are included:
[0045] S1. Data preprocessing: Min-Max Normalization (Min-Max Normalization) operation is used to map the experimental data to the interval [0, 1], scale the original data, and perform data preprocessing; the Min-Max normalization formula is:
[0046]
[0047] Among them, x represents the current data, x min Indicates the minimum value, x max Indicates the maximum value.
[0048] This embodiment determines the length of the input variable time series by calculating the autocorrelation coefficient of the sample data; the autocorrelation coefficient can not only reflect the correlation between different lag states, but also reflect the periodicity of the sequence; the formula for calculating the autocorrelation coefficient A of the time series with a lag time of m is:
[0049]
[0050] Among them, xi represents the value of the input time series, Represents the average value of xi, l is the length of the time series; after calculation, the autocorrelation coefficient changes slowly after 168 hours and is infinitely close to 0, indicating that the correlation between the historical load data earlier than the predicted load data 168 hours ago and the load data in the next 24 hours is very small.
[0051] S2. Constructing conditional generative adversarial network (CGAN): Introduce convolutional neural network (CNN) to construct the internal structure of the generative model G and the discriminative model D in the generative adversarial network (GAN), making it more stable during the training process and improving the quality of generated data; CGAN has no pressure to process high-dimensional data, and introduces CNN to improve the stability, convergence speed and quality of CGAN-generated data.
[0052] The one-dimensional convolution model is prone to overfitting when the number of training samples is limited and the parameter input is too much, and its anti-noise performance is not as good as the two-dimensional convolution model 2D-CNN. In order to improve the overall generalization ability and robustness of the model, the two-dimensional convolution model 2D-CNN structure is used to construct a short-term load forecasting model; therefore, it is necessary to perform a two-dimensional equivalent information transformation on the one-dimensional sequence data and arrange it into a two-dimensional form of n*n for convolution; the network structure is optimized by using the method of calculating the feature bias using some of the discriminator hidden layers.
[0053] In order to enable the network to autonomously learn a more appropriate spatial sampling method, strided convolution is used instead of spatial pooling in the convolutional neural network (CNN), so that the network can autonomously learn spatial downsampling; in the output layer, the tanh activation function is used, while in other layers, ReLU activation is used, and the network finally generates prediction data.
[0054] The generation model G consists of a three-layer convolutional neural network CNN, such as Figure 4 As shown in the figure, the input layer is convolved with 32 5*5 convolution kernels to obtain the convolution layer C1, convolved with 64 5*5 convolution kernels to obtain C2, and convolved with 1 5*5 convolution kernel to obtain the output with a sliding step size of 2.
[0055] The conditional data are input into the discriminant model D with the generated samples and the real samples as input data. The discriminant model D also connects the input data into a matrix as the input of the convolutional layer. The discriminant model D is composed of a 3-layer convolutional neural network CNN. During the experiment, the feature loss function is applied to the 2nd and 3rd hidden layers of the discriminant model D. Finally, the full connection and sigmoid activation function are used for true and false judgment, and the result is mapped to (0, 1).
[0056] like Figure 5 As shown in the figure, the convolution layer C1 in the discriminant model D is obtained by convolution of 32 5*5 convolution kernels, the convolution layer C2 is obtained by convolution of 64 5*5 convolution kernels, and the convolution layer C3 is obtained by convolution of 128 5*5 convolution kernels. The sliding step size is 2, and finally the discrimination result is output through the fully connected layer.
[0057] S3. Network training of the model: The CGAN network model is trained by alternating training of the generative model G and the discriminative model D. The parameter settings during the training process are shown in Table 2 below.
[0058] Table 2 Short-term load forecasting network model parameters
[0059]
[0060] S4, evaluation index: mean absolute error y MAE , Root mean square error y RMSEAnd the prediction accuracy y FA As the evaluation criteria, the formulas of each evaluation criterion are defined as follows:
[0061]
[0062] Among them, x real Indicates the true load value; x pred Predicted load value; N is the number of predictions.
[0063] In this embodiment, the data used are power load data from a certain region in the eastern United States in 2016, 2017, and 2018, as well as meteorological and date type data as data sets. In recent years, with the increase of distributed energy and adjustable flexible loads in the local power system, the complexity of the power grid has increased, and local heavy industry has developed rapidly. There are many natural disasters such as typhoons and rainstorms, and the disturbance factors of the power grid are diverse. These have posed higher challenges to load forecasting. The load data collection frequency is 1 time / h, and the meteorological element data (temperature, humidity, wind speed, air pressure) collection frequency is 1 time / h.
[0064] In order to illustrate the impact of different conditional data on the short-term load forecasting model, the following comparative experiment was conducted. This embodiment uses numbers 1 to 7 to represent the days of the week. If it is a holiday, it is set to 1, otherwise it is set to 0. If the predicted day is Sunday, the week position is set to 7, and the holiday position is set to 1; if the predicted National Day is Tuesday, the week position is set to 2, and the holiday position is set to 1.
[0065] Step S1: Data preprocessing:
[0066] In order to illustrate the impact of different conditional data on the short-term load forecasting model, this embodiment conducts the following comparative experiments. Considering that the predicted load data for the next 24 hours is related to the load data for the previous 168 hours, LA24D represents the historical load data for the previous 168 hours, that is, the meteorological elements with an interval of 1 hour in the forecast time period (that is, all 24 sampling points are selected for each element), and the highest and lowest temperatures of the day before the forecast, the day of the week, and whether it is a holiday. The intervals of LA12D, LA6D, and LA4D are 2 hours, 4 hours, and 6 hours, respectively. LA0D does not consider the impact of climate at all, and LA0 only makes predictions based on load data.
[0067] The prediction error and accuracy of the test set are calculated, and the results are shown in Table 3. The average evaluation indicators of the test set are as well as When only historical load data is used as conditional data input, the model can learn less effective information and the prediction accuracy is the lowest. When meteorological and date data are added, the prediction accuracy is improved. When temperature, humidity, wind speed and air pressure data are collected every 4 hours during the prediction period, the prediction effect is the best, reaching 209.46MW, The value also decreased significantly to 234.03MW, and the prediction accuracy The value is 97.82%. Therefore, the meteorological elements with a forecast interval of 4h are selected as some of the influencing factors.
[0068] The conditional data input into the model include: historical load data of the previous 168 hours, that is, historical load data of the previous 7 days in the forecast period, temperature (6), humidity (6), wind speed (6), air pressure (6), the highest and lowest temperatures of the day before the forecast day, the day of the week, and whether it is a holiday, a total of 196 conditional data.
[0069] Step S2: Constructing the network structure:
[0070] The output of the generative model G is the predicted load, which expands the forecast data of the next 24 hours to 25 hours to form a 5*5 matrix. The expanded 1-hour forecast data is only used for edge expansion and does not participate in the index operation after the forecast. The input of the generative model G is conditional data and noise data. The conditional data consists of 196 historical load data, climate data, and date type data. A function is used to generate 25 random noise data as input. The generative model G splices the above input data in the order of noise data, historical load data, climate data, and date type data, expands the edge data of each sample, and finally fills 4 zeros to form a 15*15 input matrix.
[0071] In order to improve the accuracy of prediction, the number of generated samples is consistent with the actual sample size. Similar to the generative model G, the input data of the discriminative model D is concatenated and padded with 0 4 times, and each sample forms a 15*15 matrix. In fact, the expansion of marginal data does not affect the sample feature extraction. Sample data expansion can also include the last data value or the average value.
[0072] The random variables generated by the function are used as noise, the historical load data of the previous 7 days and other influencing factors, as well as the load data of the forecast day, to form a training sample (that is, each training sample contains a total of 8 days of load, of which the first 7 days are conditions and the last day is the real sample). The training set consists of 731 days of data from 2016 to 2017, with a sliding time window of 8 days and a step size of 1 day, forming a total of 724 training samples. The composition of the test sample is consistent with that of the training sample. The test set consists of data from 2018 (a total of 365 days), which can form 358 test samples.
[0073] Step S3: Network training of the model:
[0074] As the training progresses, the generative model G and the discriminative model D engage in a continuous game of competition, and the discriminative model D is constantly forced to enhance its ability to distinguish whether it is real load data. The generative model G is forced to generate prediction data that is closer and closer to the real load data to deceive the discriminative model D, and finally achieve Nash equilibrium.
[0075] The validation model uses the load data of 2018, and the test samples are taken from the untrained test set to verify the generalization ability of the model. The load forecast values and measured values from November 26, 2018 to November 28, 2018 are used as validation samples, and the noise and operating condition data are input into the generation model G to generate the predicted load data, such as Figure 6 As shown in the figure. The horizontal axis represents the time period and the vertical axis represents the load value. When predicting the load of the next day, the load data predicted by this model is not involved, and the actual load of the previous 7 days is still used for prediction. Figure 6 The red curve in the figure represents the predicted load generated by the generative model, and the black curve represents the actual load. Figure 6 It can be seen that the predicted values generated based on CGAN are basically consistent with the actual values.
[0076] Step S4: Evaluation index:
[0077] The experiment uses the trained CGAN model to test the 2020 load data set and compares it with the parameter-optimized LSTM neural network, CNN neural network, and LR model. Each model uses the same load data as well as meteorological, date type, and seasonal data for prediction. Figure 7 As shown in the figure, the predicted data of different algorithm models are compared with the measured data for three consecutive days from December 1 to December 3, 2020. The horizontal axis in the figure represents the time scale and the vertical axis represents the load value. Figure 7 It can be seen that the data predicted by the CGAN model is most consistent with the measured data.
[0078] The comparison of prediction error and accuracy in different seasons is shown in Table 4. As shown in Table 4, the prediction accuracy of the CGAN model in the four seasons is better than that of the other three models, and the prediction error is the smallest. The average prediction error y of the four CGAN models is MAE 218.82MW, RMSE is 236.69MW, and the average prediction accuracy is y FA The error and accuracy of this method have been significantly improved.
[0079] Table 4 Comparison of forecasts in different seasons
[0080]
[0081] In order to test the prediction performance of the model under special conditions such as holidays, the single-day prediction results of the CGAN model for Thanksgiving holiday (November 26) and Christmas holiday (December 24, December 25) are compared with the LSTM neural network, TCN neural network, and LR (see Table 4). As can be seen from Table 5 below, the TCN attention model has the highest prediction accuracy during holidays, indicating that the prediction performance of the CGAN model under special conditions such as holidays is also the most ideal.
[0082] Table 5 Comparison of predictions of different models on holidays
[0083]
[0084] This example demonstrates the accuracy and feasibility of the short-term load forecasting method based on conditional generative adversarial networks proposed in the present invention. This method can learn potential relationships and generate new data between complex nonlinear sequence data. Experimental results show that the model trained by this method has high prediction accuracy in different scenarios, high training efficiency, strong generalization ability, clear network structure, strong interpretability, and good effects in the field of load forecasting.
[0085] In addition to the above embodiments, the present invention may also have other implementation modes. Any technical solution formed by equivalent replacement or equivalent transformation falls within the protection scope required by the present invention.
Claims
1. A short-term load forecasting method based on conditional generative adversarial network, characterized by: The following steps are involved: S1. Data preprocessing: using deviation standardization, i.e. Min-Max normalization operation, to map the experimental data to the interval [0, 1], to scale the original data, and to perform data preprocessing; S2. Constructing conditional generative adversarial network (CGAN): Introducing convolutional neural network (CNN) to construct the internal structure of the generative model G and discriminative model D in the generative adversarial network (GAN); S3. Network training of the model: The CGAN network model is trained by alternating training of the generative model G and the discriminative model D; S4, evaluation index: mean absolute error y MAE , root mean square error y RMSE And the prediction accuracy y FA as evaluation criteria.
2. The short-term load forecasting method based on conditional generative adversarial network according to claim 1 is characterized by: In step S1, the Min-Max normalization formula is: Among them, x represents the current data, x min Indicates the minimum value, x max Indicates the maximum value.
3. The short-term load forecasting method based on conditional generative adversarial network according to claim 1 is characterized by: In step S1, the length of the input variable time series is determined by calculating the autocorrelation coefficient of the sample data, and the autocorrelation coefficient reflects the correlation between different lag states and the periodicity of the sequence; the formula for calculating the autocorrelation coefficient A of the time series with a lag time of m is: Among them, x i represents the value of the input time series, Represents x i The average value of , l is the length of the time series.
4. The short-term load forecasting method based on conditional generative adversarial network according to claim 1 is characterized by: In the step S2, a two-dimensional convolutional model 2D-CNN structure is used to build a short-term load forecasting model, a two-dimensional equivalent information degree transformation is performed on the one-dimensional sequence data, and it is arranged into a two-dimensional form of n*n for convolution; the network structure is optimized by using a method of calculating feature bias using a partial discriminator hidden layer.
5. The short-term load forecasting method based on conditional generative adversarial network according to claim 1 is characterized by: In step S2, strided convolution is used instead of spatial pooling in the convolutional neural network CNN, so that the network can autonomously learn spatial downsampling; in the output layer, the tanh activation function is used, and in other layers, ReLU activation is used, and the network finally generates prediction data.
6. The short-term load forecasting method based on conditional generative adversarial network according to claim 1 is characterized by: In the step S2, the generation model G is composed of a three-layer convolutional neural network CNN, the input layer is convolved with 32 5*5 convolution kernels to obtain the convolution layer C1, the convolution layer is convolved with 64 5*5 convolution kernels to obtain C2, and the output with a sliding step size of 2 is convolved with 1 5*5 convolution kernel.
7. The short-term load forecasting method based on conditional generative adversarial network according to claim 1 is characterized by: In the step S2, the conditional data is input into the discriminant model D with the generated samples and the real samples as input data. The discriminant model D also connects the input data into a matrix as the input of the convolutional layer; the discriminant model D is composed of a 3-layer convolutional neural network CNN, and the feature loss function is applied to the second and third hidden layers of the discriminant model D. Finally, full connection and sigmoid activation function are used to perform true and false judgment, and the result is mapped to (0, 1).
8. The short-term load forecasting method based on conditional generative adversarial network according to claim 7 is characterized by: In the discriminant model D, the convolution layer C1 is obtained by convolution of 32 5*5 convolution kernels; the convolution layer C2 is obtained by convolution of 64 5*5 convolution kernels; the convolution layer C3 is obtained by convolution of 128 5*5 convolution kernels, and the sliding step size is 2; finally, the discrimination result is output through the fully connected layer.
9. The short-term load forecasting method based on conditional generative adversarial network according to claim 1 is characterized by: In step S3, during the network training of the model, the dynamic parameter is set to 0.99, the L1 loss function weight λL1 is set to 100.0, and the feature loss function weight λ per is set to 50.0, the second hidden layer weight λ2 is set to 1.0, and the third hidden layer weight λ3 is set to 2.
0.
10. The short-term load forecasting method based on conditional generative adversarial network according to claim 1 is characterized by: In step S4, the mean absolute error y MAE , Root mean square error y RMSE And the prediction accuracy y FA The formula definition is as follows: Among them, x real Indicates the true load value; x pred Predicted load value; N is the number of predictions.
Citation Information
Cited By
Microgrid short-term load prediction method and device, electronic equipment and storage medium
CN121328859A
