Photovoltaic power generation system output prediction method and system, storage medium and equipment
By integrating grey relational analysis and an improved Bayesian-Long Short-Term Memory neural network model, the instability and accuracy issues of output prediction for distributed photovoltaic power generation systems were resolved, enabling accurate prediction under complex weather conditions and improving the model's prediction accuracy and stability.
Patent Information
- Application Number
- CN202411068944.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In existing technologies, the output prediction methods for distributed photovoltaic power generation systems suffer from unstable prediction results and poor accuracy, especially under complex and highly volatile weather conditions.
A comprehensive ensemble empirical mode decomposition method combining grey relational analysis and adaptive white noise is adopted, along with an improved Bayesian-Long Short-Term Memory neural network model. By normalizing historical output data and environmental data, prediction is made using spatiotemporal correlation features.
It improves the prediction accuracy and stability of photovoltaic power generation system output, especially in complex and highly volatile weather conditions, and simplifies the amount of historical data required for prediction and improves the convergence speed of the model.
Smart Images

Figure CN118971144A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of energy power prediction, and in particular relates to a photovoltaic power generation system output prediction method, system, storage medium and equipment. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] With the development of smart grids, the construction of large-scale distributed photovoltaic power generation systems has become an important solution to fully absorb solar energy resources and alleviate the peak load pressure of the power grid. Distributed photovoltaic power generation systems refer to power generation systems that use photovoltaic modules to directly convert solar energy into electrical energy. Distributed photovoltaic power generation systems are generally arranged near power users, often directly connected to the distribution network, and together with the distribution network, supply power to surrounding users. Compared with centralized photovoltaic power stations, distributed photovoltaic power generation systems have smaller installed capacity and output power, and are more geographically dispersed, such as photovoltaic power generation projects built on the roofs of urban buildings.
[0004] At the same time, due to the volatility and intermittency of photovoltaic power generation, the grid-connected operation of distributed photovoltaic power generation systems increases the difficulty of power system scheduling. Therefore, accurate prediction of the output of distributed photovoltaic power generation systems will help the scheduling department to rationally plan the coordination between conventional energy power plants and distributed photovoltaic power generation systems, and improve the safety and stability of power grid operation.
[0005] In the prior art, there are methods such as artificial neural networks and support vector machines for predicting short-term photovoltaic output. However, the shortcomings of the prior art are that the use of a single prediction method often leads to unstable prediction results and poor prediction accuracy. In addition, when weather conditions change significantly, these methods may lack prediction accuracy. Summary of the invention
[0006] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a photovoltaic power generation system output prediction method, system, storage medium and device, which can improve the output prediction accuracy of the photovoltaic power generation system and realize accurate output prediction even in complex and strongly fluctuating weather conditions.
[0007] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions: A first aspect of the present invention provides a method for predicting output of a photovoltaic power generation system, comprising the following steps: Obtain historical output data and related environmental data of different photovoltaic power stations, the related environmental data including daily average radiation, component temperature, ambient temperature, relative humidity, and weather type, and normalize the related environmental data; then use a comprehensive grey correlation analysis method to calculate the correlation between related environmental parameters; The Pearson correlation coefficient is used to calculate the correlation of the photovoltaic system output of different photovoltaic power stations. Then, the photovoltaic output of each station with strong correlation is decomposed into multiple modal components using the complete integrated empirical mode decomposition method of adaptive white noise. Each component is used to characterize the spatiotemporal correlation characteristics between each station. The processed historical output data and related environmental data are used as sample sets to train and test the improved Bayesian-long short-term memory neural network model, and an improved Bayesian-long short-term memory neural network model based on spatiotemporal correlation features is obtained; The relevant environmental data to be tested are input into the Bayesian neural network prediction model based on spatiotemporal correlation characteristics to obtain the output prediction results.
[0008] Furthermore, the relevant environmental data is normalized using the following formula:
[0009] In the formula, and represents the data at time j before and after normalization, j=1,2,3,···M; P min and P max are the maximum and minimum values of the data.
[0010] Furthermore, the grey correlation analysis method is used to calculate the correlation between the relevant environmental parameters, specifically including: The daily average radiation, component temperature, ambient temperature, relative humidity, and weather type are used to form a characteristic vector matrix, and the vector characteristic matrix is standardized to obtain a standard vector matrix; Calculate the difference matrix of the standard vector matrix and the maximum and minimum values of the difference matrix; Calculate the grey correlation coefficient and weighted vector, and calculate the weighted correlation degree and cosine similarity according to the grey correlation coefficient and weighted vector; The weighted correlation and cosine similarity are combined to form a comprehensive similarity index.
[0011] Furthermore, the similarity comprehensive index is calculated by the following formula:
[0012] In the formula, represents the weighted association, represents the cosine similarity, Represents the empirical weight coefficient, and the empirical value is 0.5.
[0013] Furthermore, the original photovoltaic output sequence s(n) is decomposed into:
[0014] In the formula, represents the kth modal component, Represents the final residue sequence.
[0015] Furthermore, the improved method of the improved Bayesian-long short-term memory neural network model is: adding a Dropout layer to the Bayesian-long short-term memory neural network model to construct the model, each neuron in the Bayesian-long short-term memory neural network model obeys a Bernoulli binomial distribution with a probability of p, and after adding the Dropout layer, the probability of each neuron being discarded is 1-p, so that it does not play a role in the forward propagation process of the corresponding round of neural network training.
[0016] Furthermore, the network calculation formula of the Bayesian-long short-term memory neural network model after adding the Dropout layer includes:
[0017]
[0018]
[0019]
[0020] In the formula, r represents the Dropout layer, Bernoulli(p) represents the Bernoulli distribution with probability p, l is the hidden layer index value, w is the weight parameter, b is the bias parameter, y and Represent input and output respectively, z represents vector input, f represents activation function, and i represents the i-th data of input.
[0021] A second aspect of the present invention provides a photovoltaic power generation system output prediction system, comprising: The data acquisition module is configured to: acquire historical output data and related environmental data of different photovoltaic power stations, wherein the related environmental data include daily average radiation, component temperature, ambient temperature, relative humidity, and weather type, and normalize the related environmental data; and then use a comprehensive grey correlation analysis method to calculate the correlation between the related environmental parameters; The spatiotemporal correlation feature acquisition module is configured to: calculate the correlation of the photovoltaic system outputs of different photovoltaic power stations using the Pearson correlation coefficient, and then use the complete integrated empirical mode decomposition method of adaptive white noise to decompose the photovoltaic outputs of each station with strong correlation into multiple modal components, and use each component to characterize the spatiotemporal correlation characteristics between each station; The model building module is configured to: train and test the improved Bayesian-long short-term memory neural network model using the processed historical output data and related environmental data as sample sets, and obtain the improved Bayesian-long short-term memory neural network model based on spatiotemporal correlation features; The prediction module is configured to: input the relevant environmental data to be tested into a Bayesian neural network prediction model based on spatiotemporal correlation characteristics to obtain an output prediction result.
[0022] A third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the photovoltaic power generation system output prediction method as described in the first aspect of the present invention.
[0023] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the photovoltaic power generation system output prediction method as described in the first aspect of the present invention are implemented.
[0024] One or more of the above technical solutions have the following beneficial effects: The photovoltaic power generation system output prediction method provided by the present invention takes into account environmental factors such as average radiation, component temperature, ambient temperature, relative humidity, weather type, etc. influencing factors of photovoltaic power generation. After the above data are normalized, the prediction accuracy is improved while the model convergence speed is enhanced; at the same time, by adopting the comprehensive grey correlation theory, the amount of historical data required for prediction is simplified, thereby improving the prediction accuracy of the model.
[0025] The photovoltaic power generation system output prediction method provided by the present invention adopts a complete integrated empirical mode decomposition method of adaptive white noise to decompose into multiple modal components, and uses each component to characterize the spatiotemporal correlation characteristics between each site, thereby achieving effective and refined characterization. The model can train the modal components of different sites during the training process, extract the spatiotemporal correlation characteristics, and realize the establishment of a prediction model based on the spatiotemporal correlation characteristics.
[0026] The photovoltaic power generation system output prediction method provided by the present invention takes into account the problems existing in the Bayesian neural network and adopts a Bayesian-long short-term memory neural network model to add a Dropout layer to construct a Bayesian neural network model. By adding the Dropout layer, the recurrent neural hidden layer is Bayesianized to obtain the optimal parameters of the weight bias. The improved model can also have a higher prediction accuracy under complex and strongly fluctuating weather conditions.
[0027] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0029] Figure 1 The figure is a flow chart of the photovoltaic power generation system output prediction method of the present invention. DETAILED DESCRIPTION
[0030] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0031] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0032] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0033] Embodiment 1 This embodiment discloses a method for predicting the output of a photovoltaic power generation system. Figure 1 As shown, The following steps are involved: Step 1: Obtain historical output data and related environmental data of different photovoltaic power stations, wherein the related environmental data include daily average radiation, component temperature, ambient temperature, relative humidity, and weather type, and normalize the related environmental data; then use the comprehensive grey correlation analysis method to calculate the correlation between the related environmental parameters.
[0034] The relevant environmental data is normalized using the following formula:
[0035] In the formula, and represents the data at time j before and after normalization, j=1,2,3,···M; P min and P max are the maximum and minimum values of the data.
[0036] Normalizing the data can not only enhance the model convergence speed, but also improve the prediction accuracy.
[0037] There are many factors that affect short-term photovoltaic forecasts, but photovoltaic data such as weather in the same region are similar at certain times. Therefore, similar days are selected to use the grey correlation analysis method to simplify the amount of historical data required for prediction and improve the prediction accuracy of the model. Specifically: (1) The daily average radiation, component temperature, ambient temperature, relative humidity, and weather type are transformed into a feature vector matrix, and the vector feature matrix is standardized to obtain a standard vector matrix, which is expressed as:
[0038] Where R represents an m*(n+1)-dimensional matrix; m represents the number of similar day feature vectors; n represents the number of rough set samples; Represents the feature vector of the day to be tested; represents the kth eigenvector of the rough set sample on the ith day.
[0039] (2) Calculate the difference matrix of the standard vector matrix and the maximum and minimum values of the difference matrix; Standard vector matrix Determined by the following formula:
[0040] In the formula, Represents the kth standard sub-eigenvector of the rough set sample on the ith day.
[0041] The difference matrix of the standard vector matrix is obtained according to the following formula and the difference matrix The maximum value of and minimum value :
[0042] In the formula, It represents the difference between the kth standard sub-eigenvector of the rough set sample on the ith day and the kth standard sub-eigenvector of the day to be predicted.
[0043] (3) Calculate the grey correlation coefficient and weighted vector, and calculate the weighted correlation degree and cosine similarity based on the grey correlation coefficient and weighted vector.
[0044] The grey correlation coefficient is calculated according to the following formula:
[0045] In the formula, represents the kth correlation coefficient vector of the rough set sample on the ith day; Represents the discrimination coefficient.
[0046] Weight vector Calculated according to the following formula:
[0047] In the formula, Relevant factors Covariance with the daily average power vector y; Relevant factors variance; represents the daily average load vector y variance.
[0048] The weighted relevance is calculated according to the following formula:
[0049] Cosine similarity is defined as:
[0050] (4) The weighted correlation and cosine similarity are combined into a comprehensive similarity index.
[0051] The similarity comprehensive index is calculated by the following formula:
[0052] In the formula, represents the weighted association, represents the cosine similarity, Represents the empirical weight coefficient, and the empirical value is 0.5.
[0053] Considering that the fuzzy grey correlation method is slightly single, a comprehensive grey correlation theory is proposed, which consists of weighted correlation and cosine similarity to form a similarity comprehensive index, representing the overall similarity. The closer the value is to 1, the stronger the similarity is.
[0054] Step 2: Use the Pearson correlation coefficient to calculate the correlation of the photovoltaic system output of different photovoltaic power stations, and then use the complete integrated empirical mode decomposition method of adaptive white noise to decompose the photovoltaic output of each site with strong correlation into multiple modal components, and use each component to characterize the spatiotemporal correlation characteristics between each site. The photovoltaic output of each site with strong correlation refers to the Pearson correlation coefficient greater than 0.8.
[0055] According to the correlation of the output curves of photovoltaic power stations, the temporal and spatial correlation between distributed photovoltaic power stations can be quantitatively evaluated. The historical output of photovoltaic sites with strong temporal and spatial correlation has strong similarity with the future output of the sites. In order to fully explore the temporal and spatial correlation between distributed photovoltaics and achieve a refined representation of them, the photovoltaic output of each site with strong correlation after calculating the Pearson correlation coefficient is decomposed into multiple modal components using the complete integrated empirical mode decomposition method of adaptive white noise. Each component is used to characterize the temporal and spatial correlation characteristics between each site, thereby achieving an effective and refined representation.
[0056] The original photovoltaic output sequence s(n) is decomposed into:
[0057] In the formula, represents the kth modal component, Represents the final residual sequence. The complete integrated empirical mode decomposition method of adaptive white noise has fast calculation speed and improves the reconstruction accuracy. By decomposing the non-stationary photovoltaic output sequence into multiple modal components, the impact of photovoltaic output fluctuations on model prediction can be reduced, and each component can be used to characterize the spatiotemporal correlation characteristics between each site.
[0058] Step 3: Use the processed historical output data and related environmental data as sample sets to train and test the improved Bayesian-long short-term memory neural network model to obtain an improved Bayesian-long short-term memory neural network model based on spatiotemporal correlation characteristics.
[0059] The Bayesian neural network structure can obtain the posterior probability distribution of weight and bias parameters based on photovoltaic output sample data and obtain the optimal parameter results. However, there are still the following shortcomings in practical applications: 1. The traditional BNN has a complex structure and many model parameters, which makes it difficult to implement in actual calculations.
[0060] 2. High-dimensional data is difficult to process. When using the BNN model to predict photovoltaic output, the model's weights and bias parameters need to be integrated in the high-dimensional vector space, which is difficult to achieve in actual operation.
[0061] 3. The calculation is complex and time-consuming, which makes it difficult to meet the photovoltaic output prediction needs of power grid scheduling and risk assessment.
[0062] To overcome the above problems, the Bayesian neural network is improved. The improvement method is as follows: a Dropout layer is added to the Bayesian-long short-term memory neural network model to construct the model. Each neuron in the Bayesian-long short-term memory neural network model obeys a Bernoulli binomial distribution with a probability of p. After adding the Dropout layer, the probability of each neuron being discarded is 1-p, so that it does not play a role in the forward propagation process of the corresponding round of neural network training.
[0063] Furthermore, the network calculation formula of the Bayesian-long short-term memory neural network model after adding the Dropout layer includes:
[0064]
[0065]
[0066]
[0067] In the formula, r represents the Dropout layer, Bernoulli(p) represents the Bernoulli distribution with probability p, l is the hidden layer index value, w is the weight parameter, b is the bias parameter, y and Represent input and output respectively, z represents vector input, f represents activation function, and i represents the i-th data of input.
[0068] Step 4: Input the relevant environmental data to be tested into the Bayesian neural network prediction model based on spatiotemporal correlation characteristics to obtain the output prediction result.
[0069] Embodiment 2 This embodiment discloses a photovoltaic power generation system output prediction system, including: The data acquisition module is configured to: acquire historical output data and related environmental data of different photovoltaic power stations, wherein the related environmental data include daily average radiation, component temperature, ambient temperature, relative humidity, and weather type, and normalize the related environmental data; and then use a comprehensive grey correlation analysis method to calculate the correlation between the related environmental parameters; The spatiotemporal correlation feature acquisition module is configured to: calculate the correlation of the photovoltaic system outputs of different photovoltaic power stations using the Pearson correlation coefficient, and then use the complete integrated empirical mode decomposition method of adaptive white noise to decompose the photovoltaic outputs of each station with strong correlation into multiple modal components, and use each component to characterize the spatiotemporal correlation characteristics between each station; The model building module is configured to: train and test the improved Bayesian-long short-term memory neural network model using the processed historical output data and related environmental data as sample sets, and obtain the improved Bayesian-long short-term memory neural network model based on spatiotemporal correlation features; The prediction module is configured to: input the relevant environmental data to be tested into a Bayesian neural network prediction model based on spatiotemporal correlation characteristics to obtain an output prediction result.
[0070] Embodiment 3 The purpose of this embodiment is to provide a computer-readable storage medium.
[0071] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the photovoltaic power generation system output prediction method as described in Example 1 of the present disclosure.
[0072] Embodiment 4 The purpose of this embodiment is to provide an electronic device.
[0073] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the photovoltaic power generation system output prediction method as described in the first embodiment of the present disclosure are implemented.
[0074] The steps involved in the apparatuses of the above embodiments 2, 3 and 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.
[0075] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0076] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A photovoltaic power generation system output prediction method, characterized in that: The following steps are involved: Obtain historical output data and related environmental data of different photovoltaic power stations, the related environmental data including daily average radiation, component temperature, ambient temperature, relative humidity, and weather type, and perform normalization on the related environmental data; then use a comprehensive grey correlation analysis method to calculate the correlation between the related environmental parameters; The Pearson correlation coefficient is used to calculate the correlation of the photovoltaic system output of different photovoltaic power stations. Then, the photovoltaic output of each station with strong correlation is decomposed into multiple modal components using the complete integrated empirical mode decomposition method of adaptive white noise. Each component is used to characterize the spatiotemporal correlation characteristics between each station. The processed historical output data and related environmental data are used as sample sets to train and test the improved Bayesian-long short-term memory neural network model, and an improved Bayesian-long short-term memory neural network model based on spatiotemporal correlation features is obtained; The relevant environmental data to be tested are input into the Bayesian neural network prediction model based on spatiotemporal correlation characteristics to obtain the output prediction results.
2. The photovoltaic power generation system output prediction method according to claim 1, characterized in that: The relevant environmental data are normalized using the following formula: In the formula, and Respectively represent the data at time j before and after normalization, j=1,2,3,···M; P min and P max are the maximum and minimum values of the data.
3. The photovoltaic power generation system output prediction method according to claim 1, characterized in that: The grey correlation analysis method is used to calculate the correlation between the relevant environmental parameters, specifically including: The daily average radiation, component temperature, ambient temperature, relative humidity, and weather type are used to form a characteristic vector matrix, and the vector characteristic matrix is standardized to obtain a standard vector matrix; Calculate the difference matrix of the standard vector matrix and the maximum and minimum values of the difference matrix; Calculate the grey correlation coefficient and weighted vector, and calculate the weighted correlation degree and cosine similarity according to the grey correlation coefficient and weighted vector; The weighted correlation and cosine similarity are combined to form a comprehensive similarity index.
4. The photovoltaic power generation system output prediction method according to claim 3, characterized in that: The similarity comprehensive index is calculated by the following formula: In the formula, represents the weighted association, represents the cosine similarity, Represents the empirical weight coefficient, and the empirical value is 0.
5.
5. The photovoltaic power generation system output prediction method according to claim 1, characterized in that: The original photovoltaic output sequence s(n) is decomposed into: In the formula, represents the kth modal component, Represents the final residue sequence.
6. The photovoltaic power generation system output prediction method according to claim 1, characterized in that: The improved method of the improved Bayesian-long short-term memory neural network model is as follows: a Dropout layer is added to the Bayesian-long short-term memory neural network model to construct a model, in which each neuron obeys a Bernoulli binomial distribution with a probability of p, and after adding the Dropout layer, the probability of each neuron being discarded is 1-p, so that it does not play a role in the forward propagation process of the corresponding round of neural network training.
7. The photovoltaic power generation system output prediction method according to claim 6, characterized in that: The network calculation formula of the Bayesian-long short-term memory neural network model after adding the Dropout layer includes: In the formula, r represents the Dropout layer, Bernoulli(p) represents the Bernoulli distribution with probability p, l is the hidden layer index value, w is the weight parameter, b is the bias parameter, y and Represent input and output respectively, z represents vector input, f represents activation function, and i represents the i-th data of input.
8. A photovoltaic power generation system output prediction system, characterized in that: include: The data acquisition module is configured to: acquire historical output data and related environmental data of different photovoltaic power stations, wherein the related environmental data include daily average radiation, component temperature, ambient temperature, relative humidity, and weather type, and normalize the related environmental data; and then use a comprehensive grey correlation analysis method to calculate the correlation between the related environmental parameters; The Pearson correlation coefficient is used to calculate the correlation of the photovoltaic system output of different photovoltaic power stations. Then, the photovoltaic output of each station with strong correlation is decomposed into multiple modal components using the complete integrated empirical mode decomposition method of adaptive white noise. Each component is used to characterize the spatiotemporal correlation characteristics between each station. The model building module is configured to: train and test the improved Bayesian-long short-term memory neural network model using the processed historical output data and related environmental data as sample sets, and obtain the improved Bayesian-long short-term memory neural network model based on spatiotemporal correlation features; The prediction module is configured to: input the relevant environmental data to be tested into a Bayesian neural network prediction model based on spatiotemporal correlation characteristics to obtain an output prediction result.
9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the photovoltaic power generation system output prediction method as described in any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the photovoltaic power generation system output prediction method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Distributed photovoltaic grid-connected safety monitoring system based on four fusible terminals
CN119921480A
Distributed photovoltaic grid-connected safety monitoring system based on four fusion terminals
CN119921480B
