Photovoltaic power prediction method
By constructing a multimodal dataset and using deep learning technology, combined with a radiative transfer model and an LSTM network, the nonlinear relationship and real-time issues in photovoltaic power prediction were resolved, achieving high-precision photovoltaic power prediction and power resource management, and improving the operational stability and efficiency of the power system.
Patent Information
- Application Number
- CN202411059219.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-03
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-03
AI Technical Summary
Existing photovoltaic power prediction technologies have limitations in handling nonlinear relationships, real-time data fusion, and dynamic parameter adjustment. In particular, when clouds move rapidly, the real-time performance and adaptability of the prediction results are poor, and their application in power dispatch and energy storage management is not mature enough.
A multimodal dataset is constructed, and the nonlinear relationship between weather patterns and photovoltaic power output is captured through an LSTM network using a radiative transfer model and deep learning technology. Photovoltaic power is predicted by combining real-time solar radiation intensity, and the prediction strategy is optimized by dynamically adjusting model parameters. Power resource management is carried out by combining grid demand and energy storage system status.
It achieves high-precision real-time photovoltaic power prediction, enhances the robustness and generalization ability of the prediction model, ensures rapid response and adaptation to real-time environmental changes, promotes efficient allocation and management of power resources, and improves the operational stability and economic benefits of the power system.
Smart Images

Figure CN118966447A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of smart grid, and in particular to a photovoltaic power prediction method. Background Art
[0002] As a clean and sustainable way of power generation, photovoltaic energy has developed rapidly around the world in recent years. With the continuous increase in photovoltaic installed capacity, how to accurately predict the output power of photovoltaic power stations has become one of the key challenges in power system planning, scheduling and operation. The short-term and ultra-short-term predictions of photovoltaic power prediction technology are of great significance for optimizing power system operation, improving power market efficiency, and ensuring safe and stable operation of power systems. Traditional photovoltaic power prediction methods mainly rely on single meteorological data, including temperature, humidity and wind speed, combined with the characteristic parameters of photovoltaic modules for prediction. However, these methods often ignore the combined influence of multiple factors, including cloud cover, atmospheric pollution and changes in surface reflectivity, resulting in limited prediction accuracy.
[0003] In recent years, with the advancement of big data, artificial intelligence and Internet of Things technologies, multi-source data fusion and deep learning algorithms have been widely used in the field of photovoltaic power prediction. The construction of multimodal data sets not only covers traditional meteorological parameters, but also incorporates multiple information from satellite remote sensing, radar monitoring and social media, which improves the comprehensiveness and accuracy of the prediction model. However, the existing technology still has limitations in dealing with nonlinear relationships, real-time data fusion and dynamic parameter adjustment. For example, most prediction models fail to fully consider the dynamic changes in solar radiation intensity, especially in the case of rapid cloud movement, resulting in poor real-time and adaptability of the prediction results. In addition, there is a lack of effective mechanisms for real-time optimization of model parameters, and the application in power dispatching and energy storage management is not mature enough. These are bottlenecks that restrict the further development of photovoltaic power prediction technology. Summary of the invention
[0004] In view of the above existing problems, the present invention is proposed.
[0005] Therefore, the present invention provides a photovoltaic power prediction method to solve the limitations of the existing technology in dealing with nonlinear relationships, real-time data fusion and dynamic parameter adjustment. For example, most prediction models fail to fully consider the dynamic changes in solar radiation intensity, especially in the case of rapid cloud movement, resulting in poor real-time and adaptability of the prediction results. In addition, there is a lack of effective mechanism for real-time optimization of model parameters, and its application in power dispatching and energy storage management is not mature enough. These are bottleneck issues that restrict the further development of photovoltaic power prediction technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present invention provides a photovoltaic power prediction method, which comprises:
[0008] Collect and preprocess data from multiple data sources to form multimodal datasets;
[0009] Construct a radiation transfer model to calculate the solar radiation intensity on the surface of photovoltaic modules;
[0010] Build a PV power prediction model based on historical data to capture the nonlinear relationship between weather patterns and PV power output, and output the predicted PV power;
[0011] Use historical data sets to train a photovoltaic power prediction model, taking solar radiation intensity as an auxiliary input of the model;
[0012] Collect real-time multimodal data sets and combine them with the real-time solar radiation intensity input to train the photovoltaic power prediction model to perform real-time photovoltaic power prediction;
[0013] According to the error of the real-time prediction value, the prediction strategy is dynamically adjusted and the model parameters are optimized;
[0014] Based on the photovoltaic power prediction results, combined with the real-time demand of the power grid and the status of the energy storage system, power resources can be efficiently allocated and managed.
[0015] As a preferred solution of the photovoltaic power prediction method of the present invention, wherein: the data are collected and preprocessed from multiple data sources to form a multimodal data set, and the specific steps are:
[0016] Collect meteorological data and pre-process the collected data;
[0017] The preprocessed data set is formed into a multimodal data matrix X, which is an n×p matrix, where n is the number of observations and p is the number of variables;
[0018] The temperature and wind speed in the meteorological data are integrated to form the wind chill index, which is expressed as:
[0019] WCI=13.12+0.6215·T-11.37·v 0.16 +0.3965·T·v 0.16 ;
[0020] Where WCI is the wind chill index, which indicates the temperature perceived by human skin under given temperature and wind speed conditions, T represents the air temperature, v represents the wind speed, and the specific values in the formula are constants;
[0021] The multimodal matrix is X, and the expression is:
[0022] X=(WCI,I t);
[0023] Among them, I t Indicates the intensity of solar radiation;
[0024] The principal component analysis PCA is used to reduce the dimension of the data, and the expression is:
[0025] Y = X·W;
[0026] Among them, X represents the multimodal data matrix, W is the weight matrix composed of principal components, and Y represents the fused feature vector;
[0027] The preprocessed data are organized into time series to construct a multimodal dataset containing historical weather conditions and corresponding PV power output.
[0028] As a preferred solution of the photovoltaic power prediction method of the present invention, the specific steps of constructing a radiation transmission model and calculating the solar radiation intensity on the surface of the photovoltaic module are as follows:
[0029] The two-stream approximate radiative transfer model is adopted as the radiative transfer model;
[0030] The direct radiation intensity is calculated using the Pearson-Blackman formula, which is expressed as:
[0031] I d =I0·cos(δ) / z;
[0032] Among them, I0 represents the solar constant, δ represents the solar radiation angle, z represents the air mass number, and cos represents the cosine value;
[0033] The Assmann formula is used to calculate the scattered radiation intensity, and the expression is:
[0034] I s =π·I0·ρ·sin(δ)·cos(L) / (1-cos(δ));
[0035] Among them, π represents pi, p represents the surface albedo, δ represents the angle between the sun beam and the straight line perpendicular to the ground, L represents the latitude of the geographical location, and sin represents the sine value;
[0036] The calculation expression of solar radiation intensity is:
[0037] I t =I d ·T a ·(1-R a )+I s ·(1-R s )·(1-ρ);
[0038] Among them, I tRepresents the total solar radiation intensity on the surface of the photovoltaic module, I d Indicates the direct radiation intensity, I s represents the scattered radiation intensity, R a represents the atmospheric reflectivity, T a Indicates the atmospheric transmittance R s Represents the surface reflectivity.
[0039] As a preferred solution of the photovoltaic power prediction method of the present invention, wherein: the photovoltaic power prediction model is constructed based on historical data to capture the nonlinear relationship between weather patterns and photovoltaic power output, and the predicted photovoltaic power is output, and the specific steps are:
[0040] The LSTM network is used as the core model of the photovoltaic power prediction model;
[0041] Extract the deep features of meteorological data and convert them into a form suitable for input into the photovoltaic power prediction model. The expression is:
[0042]
[0043] Among them, F represents the deep feature, y i represents the i-th input feature, w i Represents y i The weight value, μ i represents the average value of the i-th feature, α is the adjustment factor, and p represents the number of input features;
[0044] The photovoltaic power prediction model structure is constructed based on LSTM, and the expression is:
[0045] h t =LSTM(h t-1 ,F);
[0046] Among them, h t represents the hidden state at the current moment, which is used to predict the photovoltaic power at the current time point, h t -1 represents the hidden state at the previous moment;
[0047] The photovoltaic power prediction value is obtained by the activation function ReLU, which is expressed as:
[0048]
[0049] in, Represents the predicted photovoltaic power value at time point t, W out represents the weight matrix of the output layer, b out Represents the bias term of the output layer.
[0050] As a preferred solution of the photovoltaic power prediction method of the present invention, the photovoltaic power prediction model is trained using the historical data set, and the solar radiation intensity is used as the auxiliary input of the model. The specific steps are:
[0051] Collect a large amount of historical data and combine it into a historical data set through preprocessing and feature extraction;
[0052] The historical data set is divided into a training set, a validation set and a test set, and the training set, the validation set and the test set are input into the photovoltaic power prediction model to complete the training, validation and testing of the model;
[0053] A comprehensive feature fusion function is constructed based on solar radiation intensity and depth features. The expression of the comprehensive feature fusion function is:
[0054]
[0055] Among them, H t represents the comprehensive features at time point t, F i represents the i-th deep feature, f represents the hyperbolic tangent function Tanh, g(I t ) represents the solar radiation intensity I t The nonlinear transformation W i and γ are the weights of depth feature and solar radiation intensity, respectively, μ i and μ I They represent the average values of depth characteristics and solar radiation intensity, respectively, and α and β are adjustment factors;
[0056] The training set data is used to input the photovoltaic power prediction model for training, and the loss function is introduced to calculate the mean square error L between the predicted photovoltaic power and the actual photovoltaic power;
[0057] Use validation set data to verify the photovoltaic power prediction model, adjust model parameters and prevent overfitting;
[0058] The comprehensive feature vector of the test set is input into the model to generate the PV power prediction value
[0059] As a preferred solution of the photovoltaic power prediction method of the present invention, wherein: the real-time multimodal data set is collected, and the photovoltaic power prediction model trained by combining the real-time solar radiation intensity input is used to perform real-time photovoltaic power prediction, and the specific steps are as follows:
[0060] Collect the latest data in real time from national weather stations, the International Meteorological Satellite Organization, local radar monitoring networks and social media;
[0061] The Z-score method is used to detect and process outliers in real-time data, and the K-nearest neighbor interpolation method is used to fill missing values. The data is then standardized and combined into a real-time multimodal data matrix.
[0062] The temperature and wind speed in real-time meteorological data are combined to form a wind chill index;
[0063] Use principal component analysis (PCA) to reduce the dimension of real-time data to form a real-time fusion feature vector;
[0064] The direct radiation intensity and scattered radiation intensity are calculated in real time by the Pearson-Blackman formula and the Assman formula;
[0065] The real-time fused feature vector and the real-time calculated total solar radiation intensity are input into the photovoltaic power prediction model to obtain a comprehensive feature fusion function;
[0066] The real-time photovoltaic power prediction value is obtained by the current hidden state and comprehensive feature fusion function, and the expression is:
[0067] P tt =W out ·h t (H tt )+b out ;
[0068] Among them, P tt Represents the real-time photovoltaic power prediction value, W out represents the matrix of the output layer, H tt represents the comprehensive feature fusion function at time point t, b out Represents the bias term of the output layer;
[0069] The real-time PV power prediction value is compared with the actual PV power, and the prediction accuracy is evaluated using the mean square error (MSE).
[0070] As a preferred solution of the photovoltaic power prediction method of the present invention, the prediction strategy is dynamically adjusted and the model parameters are optimized according to the error of the real-time prediction value. The specific steps are as follows:
[0071] Calculate the root mean square error between the predicted photovoltaic power and the actual photovoltaic power, the expression is:
[0072]
[0073] Among them, RMSE represents the root mean square error value, It means to sum a series of items with subscript t from 1 to N. represents the predicted photovoltaic power at time point t, P t Indicates the actual photovoltaic power at the same time point;
[0074] Calculate the average absolute percentage error between the predicted photovoltaic power and the actual photovoltaic power, the expression is:
[0075]
[0076] Among them, MAPE represents the mean absolute percentage error value;
[0077] Update model parameters using adaptive learning rate algorithm based on Adam optimizer;
[0078] A comprehensive performance index is constructed based on RMSE and MAPE, and the expression is:
[0079]
[0080] Where η is the comprehensive performance index, RMSE t Represents the preset RMSE threshold, MAPE t Indicates the preset MAPE threshold;
[0081] When the prediction error is lower than RMSE t and MAPE t When , η will be greater than 0, otherwise it will be less than 0;
[0082] Enter η into the adjustment formula, the expression is:
[0083] α=α·(1+η·γ);
[0084] Among them, α represents the learning rate, and γ represents the learning rate adjustment factor;
[0085] Continue to iterate and update until the prediction error reaches the standard.
[0086] As a preferred solution of the photovoltaic power prediction method of the present invention, wherein: according to the photovoltaic power prediction result, combined with the real-time demand of the power grid and the state of the energy storage system, the power resources are efficiently allocated and managed, and the specific steps are:
[0087] A comprehensive performance index is constructed based on the power dispatch efficiency Ξ energy storage system health Ω and system operation cost Λ, and the expression is:
[0088]
[0089] Among them, Ψ represents the comprehensive performance index;
[0090] A questionnaire survey was used to collect users’ satisfaction scores on power dispatch, energy storage systems, and operating costs;
[0091] The user feedback index is constructed based on user feedback and model prediction results. The expression is:
[0092]
[0093] Among them, Φ represents the user feedback index, S SC represents the user's satisfaction score on power dispatching efficiency, S St represents the user's satisfaction score on the health of the energy storage system and the user experience, S CO represents the user's satisfaction score on the system operation cost, S max Indicates the rating when the user is completely satisfied, S min A rating indicating when the user is completely dissatisfied;
[0094] The model parameters are dynamically adjusted according to Φ and Ψ, and the expression is:
[0095]
[0096] Among them, α new represents the new learning rate after update, α old represents the current learning rate, Ψ t and Φ t They respectively represent the preset comprehensive performance indicator target value and the preset user feedback indicator target value.
[0097] In a second aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the photovoltaic power prediction method as described in the first aspect of the present invention is implemented.
[0098] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the photovoltaic power prediction method as described in the first aspect of the present invention is implemented.
[0099] The beneficial effects of the present invention are as follows: the present invention realizes high-precision real-time prediction of photovoltaic power by constructing a multimodal data set, utilizing a radiation transfer model and deep learning technology, which not only covers traditional meteorological data, but also integrates remote sensing, radar and social data to form a comprehensive multimodal data set, thereby enhancing the robustness and generalization ability of the prediction model. By accurately calculating the solar radiation intensity on the surface of photovoltaic modules and combining the photovoltaic power prediction model trained with historical data, the complex nonlinear relationship between weather patterns and photovoltaic power output can be captured, thereby improving the prediction accuracy. In addition, the use of real-time multimodal data sets, in conjunction with a dynamic parameter adjustment mechanism, ensures the rapid response and adaptation of the model to real-time environmental changes. More importantly, the method combines the prediction results with power dispatching, energy storage management and system operation optimization, thereby realizing closed-loop optimization of photovoltaic power prediction in practical applications of power systems, and providing strong support for the efficient allocation and management of power resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0101] Figure 1 This is a flow chart of the photovoltaic power prediction method in Example 1.
[0102] Figure 2 This is a flow chart for calculating the solar radiation intensity in Example 1. DETAILED DESCRIPTION
[0103] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0104] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0105] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0106] Example 1, reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, provides a photovoltaic power prediction method, comprising the following steps:
[0107] S1 collects and preprocesses data from multiple data sources to form a multimodal dataset;
[0108] Meteorological data is collected from national meteorological stations. To ensure the timeliness and accuracy of the data, the API interface is used to capture the latest data in real time.
[0109] Preprocess the collected data
[0110] The preprocessed data set is formed into a multimodal data matrix X, which is an n×p matrix, where n is the number of observations and p is the number of variables;
[0111] The temperature and wind speed in the meteorological data are integrated to form the wind chill index, which is expressed as:
[0112] WCI=13.12+0.6215·T-11.37·v 0.16 +0.3965·T·v 0.16 ;
[0113] Among them, WCI is the wind chill index, which indicates the temperature perceived by human skin under given temperature and wind speed conditions, T represents the air temperature, and v represents the wind speed. The specific values in the formula are constants obtained through experiments and data analysis, and are used to accurately reflect the relationship between temperature, wind speed and the degree of coldness felt by the human body.
[0114] The multimodal matrix is X, and the expression is:
[0115] X=(WCI,I t );
[0116] Among them, I t Indicates the intensity of solar radiation;
[0117] Principal component analysis PCA is used to reduce the dimension of the data and reduce redundant information. The expression is:
[0118] Y = X·W;
[0119] Where X represents the multimodal data matrix, W is the weight matrix composed of principal components, W is a p×k weight matrix, k is the number of selected principal components, equal to p, Y represents the fused eigenvector, Y is an n×k matrix, representing the projection of the original data in the principal component space, that is, the dimensionality reduction representation of the data;
[0120] The preprocessed data are organized into time series to construct a multimodal dataset containing historical weather conditions and corresponding PV power output;
[0121] To fill in missing values, the expression is:
[0122]
[0123] in, represents the result of filling the missing value, k represents the k value in the nearest neighbor interpolation method, x j Represents the value of the k nearest neighbor data points;
[0124] Meteorological data, including temperature, wind speed, and solar radiation.
[0125] S2 builds a radiation transfer model to calculate the solar radiation intensity on the surface of the photovoltaic module;
[0126] The two-stream approximate radiative transfer model is used as the radiative transfer model, which has high accuracy in dealing with atmospheric scattering and absorption processes and good computational efficiency;
[0127] The direct radiation intensity is calculated using the Pearson-Blackman formula, which is expressed as:
[0128] I d =I0·cos(δ) / z;
[0129] Among them, I0 represents the solar constant, δ represents the solar radiation angle, z represents the air mass number, and cos represents the cosine value;
[0130] The Assmann formula is used to calculate the scattered radiation intensity, and the expression is:
[0131] I s =π·I0·ρ·sin(δ)·cos(L) / (1-cos(δ));
[0132] Among them, π represents pi, p represents the surface albedo, which varies with the surface type and the angle of the sun, δ represents the angle between the sun beam and the straight line perpendicular to the ground, L represents the latitude of the geographical location, and sin represents the sine value;
[0133] The calculation expression of solar radiation intensity is:
[0134] I t =I d ·T a ·(1-R a )+I s ·(1-R s )·(1-ρ);
[0135] Among them, I t Represents the total solar radiation intensity on the surface of the photovoltaic module, I d Indicates the intensity of direct radiation, which is affected by the solar altitude angle, solar azimuth angle, atmospheric pressure, temperature and altitude. s Represents the intensity of scattered radiation, which is affected by air mass number, surface albedo, latitude and observation date. a Represents the atmospheric reflectivity, which is related to the aerosol and water vapor content in the atmosphere. a Represents atmospheric transmittance, which is affected by the absorption and scattering of gas molecules in the atmosphere. s Represents the reflectivity of the surface, which is affected by the type of surface cover and moisture.
[0136] S3 builds a PV power prediction model based on historical data, captures the nonlinear relationship between weather patterns and PV power output, and outputs the predicted PV power;
[0137] The LSTM network is used as the core model of the photovoltaic power prediction model because LSTM can handle long-term dependency problems in time series data, as photovoltaic power is affected by periodic and seasonal changes in weather conditions;
[0138] Extract the deep features of meteorological data and convert them into a form suitable for input into the photovoltaic power prediction model. The expression is:
[0139]
[0140] Among them, F represents the deep feature, y i represents the i-th input feature, w i Represents y i The weight value, μ i represents the average value of the i-th feature, α is the adjustment factor used to control the impact of the feature value deviating from the average value on the model output, and p represents the number of input features;
[0141] The photovoltaic power prediction model structure is constructed based on LSTM, and the expression is:
[0142] h t =LSTM(h t-1 ,F);
[0143] Among them, h t represents the hidden state at the current moment, which is used to predict the photovoltaic power at the current time point, h t -1 represents the hidden state at the previous moment;
[0144] The photovoltaic power prediction value is obtained by the activation function ReLU, which is expressed as:
[0145]
[0146] in, Represents the predicted photovoltaic power value at time point t, W out represents the weight matrix of the output layer, b out Represents the bias term of the output layer.
[0147] S4 uses historical data sets to train the photovoltaic power prediction model and takes solar radiation intensity as an auxiliary input of the model;
[0148] Collect a large amount of historical data and combine it into a historical data set through preprocessing and feature extraction;
[0149] The historical data set is divided into a training set, a validation set, and a test set. In this embodiment, the proportions are 70%, 15%, and 15% respectively to ensure the generalization ability of the model and the accuracy of the evaluation. The training set, validation set, and test set are input into the photovoltaic power prediction model to complete the training, verification, and testing of the model;
[0150] A comprehensive feature fusion function is constructed based on solar radiation intensity and depth features to enhance the prediction ability of the model. The expression of the comprehensive feature fusion function is:
[0151]
[0152] Among them, H t represents the comprehensive features at time point t, F i represents the i-th deep feature, f represents the hyperbolic tangent function Tanh, g(I t ) represents the solar radiation intensity I t The nonlinear transformation W i and γ are the weights of depth feature and solar radiation intensity, respectively, μ i and μ I They represent the average values of depth characteristics and solar radiation intensity respectively. α and β are adjustment factors used to control the influence of characteristic values deviating from the average values on the model output.
[0153] The training set data is used to input the photovoltaic power prediction model for training, and the loss function is introduced to calculate the mean square error L between the predicted photovoltaic power and the actual photovoltaic power;
[0154] Use validation set data to verify the photovoltaic power prediction model, adjust model parameters and prevent overfitting;
[0155] The comprehensive feature vector of the test set is input into the model to generate the PV power prediction value
[0156] The values of the two adjustment factors α and β can be directly set based on the experience of domain experts or can be set based on actual needs.
[0157] S5 collects real-time multimodal data sets and combines the real-time solar radiation intensity input into the trained photovoltaic power prediction model to perform real-time photovoltaic power prediction;
[0158] Collect the latest data in real time from national weather stations, the International Meteorological Satellite Organization, local radar monitoring networks and social media;
[0159] The Z-score method is used to detect and process outliers in real-time data, and the K-nearest neighbor interpolation method is used to fill missing values. The data is then standardized and combined into a real-time multimodal data matrix.
[0160] The temperature and wind speed in real-time meteorological data are combined to form a wind chill index;
[0161] Use principal component analysis (PCA) to reduce the dimension of real-time data to form a real-time fusion feature vector;
[0162] The direct radiation intensity and scattered radiation intensity are calculated in real time by the Pearson-Blackman formula and the Assman formula;
[0163] The real-time fused feature vector and the real-time calculated total solar radiation intensity are input into the photovoltaic power prediction model to obtain a comprehensive feature fusion function;
[0164] The real-time photovoltaic power prediction value is obtained by the current hidden state and comprehensive feature fusion function, and the expression is:
[0165] P tt =W out ·h t (H tt )+b out ;
[0166] Among them, P tt Represents the real-time photovoltaic power prediction value, W out represents the matrix of the output layer, H tt represents the comprehensive feature fusion function at time point t, b out Represents the bias term of the output layer;
[0167] The real-time photovoltaic power prediction value is compared with the actual photovoltaic power, and the mean square error (MSE) is used to evaluate the prediction accuracy to ensure the reliability and accuracy of the model in the real-time prediction scenario.
[0168] S6 dynamically adjusts the prediction strategy and optimizes the model parameters according to the error of the real-time prediction value;
[0169] Calculate the root mean square error between the predicted photovoltaic power and the actual photovoltaic power, the expression is:
[0170]
[0171] Among them, RMSE represents the root mean square error value, It means to sum a series of items with subscript t from 1 to N. represents the predicted photovoltaic power at time point t, P t Indicates the actual photovoltaic power at the same time point;
[0172] Calculate the average absolute percentage error between the predicted photovoltaic power and the actual photovoltaic power, the expression is:
[0173]
[0174] Among them, MAPE represents the mean absolute percentage error value;
[0175] Based on the Adam optimizer, the model parameters are updated using an adaptive learning rate algorithm. The model parameters are set to θ, the learning rate is α, and the update expression is:
[0176] m t =β1m t-1 +(1-β1)g t (θ);
[0177] v t =β2v t-1 +(1-β2)g t (θ) 2 ;
[0178]
[0179] Where β1 and β2 are the decay rates of the first and second matrices, ε represents a decimal to prevent division by zero, gt(θ) represents the gradient of the parameter θ at time point t, and m t represents the exponentially weighted moving average at time point t, v t represents the exponentially weighted moving average at time point t, represents the updated exponentially weighted moving average at time point t, represents the updated exponentially weighted moving average at time point t;
[0180] A comprehensive performance index is constructed based on RMSE and MAPE, and the expression is:
[0181]
[0182] Among them, η is a comprehensive performance indicator, that is, the error adjustment coefficient. The larger the value, the better the prediction performance of the model. t Represents the preset RMSE threshold. When the RMSE of the photovoltaic power prediction model is lower than the preset threshold, the model performs well. MAPE t It represents the preset MAPE threshold. When the MAPE of the photovoltaic power prediction model is lower than the preset threshold, the model performs well.
[0183] When the prediction error is lower than RMSE t and MAPE t When , η will be greater than 0, otherwise it will be less than 0;
[0184] Enter η into the adjustment formula to adjust the learning rate. The expression is:
[0185] α=α·(1+η·γ);
[0186] Among them, α represents the learning rate, and γ represents the learning rate adjustment factor, which is used to control the increase and decrease speed of the learning rate;
[0187] Continue to iterate and update until the prediction error reaches the standard.
[0188] S7 efficiently allocates and manages power resources based on PV power forecast results, combined with the real-time demand of the power grid and the status of the energy storage system;
[0189] A comprehensive performance index is constructed based on the power dispatch efficiency Ξ energy storage system health Ω and system operation cost Λ, and the expression is:
[0190]
[0191] Among them, Ψ represents a comprehensive performance index. The larger its value, the more efficient, economical and durable the overall system operation is;
[0192] A questionnaire survey was used to collect users’ satisfaction scores on power dispatch, energy storage systems, and operating costs;
[0193] The user feedback index is constructed based on user feedback and model prediction results. The expression is:
[0194]
[0195] Among them, Φ represents the user feedback index, and the value range of Φ is between 0 and 1. The closer the value is to 1, the higher the user satisfaction is. SC represents the user's satisfaction score on power dispatching efficiency, S St represents the user's satisfaction score on the health of the energy storage system and the user experience, S CO represents the user's satisfaction score on the system operation cost, S max Indicates the rating when the user is completely satisfied, S min A rating indicating when the user is completely dissatisfied;
[0196] The model parameters are dynamically adjusted according to Φ and Ψ, and the expression is:
[0197]
[0198] Among them, α new represents the new learning rate after update, α old represents the current learning rate, Ψ t and Φ t Respectively represent the preset comprehensive performance indicator target value and the preset user feedback indicator target value;
[0199] The power dispatch efficiency refers to the dispatch response speed and matching degree of the power system. It is determined by the real-time response time of the power dispatch center and the execution deviation of the dispatch plan. The expression is:
[0200]
[0201] Among them, t re represents the actual response time at time point t, and represents t tarepresents the target response time, and N represents the total number of time points;
[0202] The health of the energy storage system indicates the number of charge and discharge cycles and battery life loss of the energy storage device under the predicted power fluctuation. The expression is:
[0203] Ω=e -λ·C ;
[0204] Among them, Ω represents the health of the energy storage system. The value range of Ω is between 0 and 1. The closer the value is to 1, the better the health of the energy storage system. e is a data constant. -λ is a positive real number, which represents the attenuation coefficient of the energy storage device. The larger the value of λ is, the faster the health of the energy storage system decreases in each charge and discharge cycle. C represents the number of charge and discharge cycles.
[0205] System operation costs, including electricity transaction costs, energy storage costs and system maintenance costs, are expressed as:
[0206] Λ=α·P mt +β·P se +γ·P me ;
[0207] Among them, Λ represents the overall indicator of system operation cost, α, β and γ are the weight values of power transaction cost, energy storage cost and system maintenance cost respectively, P mt , P se and P me They are electricity trading cost, energy storage cost and system maintenance cost respectively.
[0208] This embodiment also provides a computer device, which is applicable to the photovoltaic power prediction method, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to implement the photovoltaic power prediction method proposed in the above embodiment.
[0209] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0210] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the photovoltaic power prediction method proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0211] In summary, the present invention achieves high-precision real-time prediction of photovoltaic power by: constructing a multimodal dataset, using radiation transfer models and deep learning technology, which not only covers traditional meteorological data, but also integrates remote sensing, radar and social data to form a comprehensive multimodal dataset, which enhances the robustness and generalization ability of the prediction model. By accurately calculating the solar radiation intensity on the surface of photovoltaic modules and combining the photovoltaic power prediction model trained with historical data, it can capture the complex nonlinear relationship between weather patterns and photovoltaic power output, thereby improving the prediction accuracy. In addition, the use of real-time multimodal datasets, combined with a dynamic parameter adjustment mechanism, ensures the model's rapid response and adaptation to real-time environmental changes. More importantly, the method combines the prediction results with power dispatching, energy storage management and system operation optimization, thereby realizing closed-loop optimization of photovoltaic power prediction in practical applications of power systems, and providing strong support for the efficient allocation and management of power resources.
[0212] Example 2, referring to Table 1, is the second example of the present invention. To further verify the advancement of the present invention, experimental simulation data of the photovoltaic power prediction method are provided.
[0213] In order to verify the effectiveness and superiority of the photovoltaic power prediction method, a series of experiments were carried out. A typical photovoltaic power station was selected as the research object. The power station is located at 30° north latitude and 120° east longitude, with a total installed capacity of 10MW. During the experiment, from July 1, 2023 to July 31, 2023, a total of 31 days, the time interval for collecting data every day is once an hour, that is, 24 sets of data are collected in one day, totaling 744 sets of data samples.
[0214] During the data collection phase, real-time meteorological data, satellite remote sensing data, and radar data were obtained from multiple sources including national meteorological stations, the International Meteorological Satellite Organization, local radar monitoring networks, and social media platforms. These data were identified and processed for outliers using the Z-score method, and missing values were filled using the K nearest neighbor interpolation method. A multimodal data set was formed through standardization.
[0215] When constructing the radiation transfer model, the two-stream approximate radiation transfer model and the Pearson-Blackman formula were used to calculate the direct radiation intensity, and the Assmann formula was used to calculate the scattered radiation intensity, and finally the total solar radiation intensity on the surface of the photovoltaic module was obtained.
[0216] During the construction of the photovoltaic power prediction model, the LSTM network was selected as the core model. At the same time, the deep features of the wind chill index, meteorological data, satellite remote sensing data and radar data were combined. The features were fused through formulas to establish a photovoltaic power prediction model. The model was trained using historical data sets, and solar radiation intensity was used as an auxiliary input.
[0217] In the real-time prediction stage, real-time multimodal data sets were collected and the same data preprocessing process as historical data was carried out. Real-time photovoltaic power prediction was performed through the model. Subsequently, according to the error of the real-time prediction value, the prediction strategy was dynamically adjusted and the model parameters were optimized until the prediction error reached the predetermined standard.
[0218] Finally, based on the photovoltaic power prediction results, combined with the real-time demand of the power grid and the status of the energy storage system, power resources are efficiently allocated and managed, and the model parameters are dynamically adjusted through comprehensive performance indicators and user feedback indicators to optimize the allocation of power resources.
[0219] The details are shown in Table 1:
[0220] Table 1 Experimental record table
[0221]
[0222]
[0223] Through the analysis of experimental data, it can be clearly seen that the proposed PV power prediction method has significant advantages in accuracy and stability. For example, at around 12:00 noon on July 15, when solar radiation reached its peak, the actual PV power was 8500kW, while the predicted PV power was 8520kW, with a prediction error of only 0.24%, which shows that the model can accurately capture the nonlinear relationship between weather patterns and PV power output, especially when lighting conditions change rapidly.
[0224] In addition, by calculating the root mean square error (RMSE) and mean absolute percentage error (MAPE) during the entire experimental period, it was found that the RMSE was 150kW and the MAPE was 1.7%, which were much lower than 300kW and 3.5% of the traditional prediction method. This shows that the photovoltaic power prediction method in the present invention not only improves the prediction accuracy, but also performs well in real-time prediction and dynamic parameter adjustment, and can more effectively cope with weather uncertainties.
[0225] Compared with the existing technology, the method of the present invention significantly improves the accuracy and real-time performance of photovoltaic power prediction by constructing a multimodal data set, fusing deep features, and applying an LSTM network. In particular, in terms of dynamically adjusting prediction strategies and optimizing model parameters, the present invention can perform self-correction according to real-time prediction errors to ensure the reliability of prediction results, thereby promoting the efficient allocation and management of power resources, and providing strong support for the stable operation and economic benefits of the power system.
[0226] In summary, the photovoltaic power prediction method of the present invention has significant creativity and novelty in improving prediction accuracy, enhancing real-time performance and adaptability, and can effectively solve the shortcomings of the existing technology in photovoltaic power prediction. It has important practical significance for promoting the development of smart grid technology and renewable energy.
[0227] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A photovoltaic power prediction method, characterized in that: include, Collect and preprocess data from multiple data sources to form multimodal datasets; Construct a radiation transfer model to calculate the solar radiation intensity on the surface of photovoltaic modules; Build a PV power prediction model based on historical data to capture the nonlinear relationship between weather patterns and PV power output, and output the predicted PV power; Use historical data sets to train a photovoltaic power prediction model, taking solar radiation intensity as an auxiliary input of the model; Collect real-time multimodal data sets and combine them with the real-time solar radiation intensity input to train the photovoltaic power prediction model to perform real-time photovoltaic power prediction; According to the error of the real-time prediction value, the prediction strategy is dynamically adjusted and the model parameters are optimized; Based on the photovoltaic power prediction results, combined with the real-time demand of the power grid and the status of the energy storage system, power resources can be efficiently allocated and managed.
2. The photovoltaic power prediction method according to claim 1, characterized in that: The specific steps of collecting and preprocessing data from multiple data sources to form a multimodal data set are as follows: Collect meteorological data and pre-process the collected data; The preprocessed data set is formed into a multimodal data matrix X, which is an n×p matrix, where n is the number of observations and p is the number of variables; The temperature and wind speed in the meteorological data are integrated to form the wind chill index, which is expressed as: WCI=13.12+0.6215·T-11.37·v 0.16 +0.3965 T in 0.16 ; Where WCI is the wind chill index, which indicates the temperature perceived by human skin under given temperature and wind speed conditions, T represents the air temperature, v represents the wind speed, and the specific values in the formula are constants; The multimodal matrix is X, and the expression is: X=(WCI,I t ); Among them, I t Indicates the intensity of solar radiation; The principal component analysis PCA is used to reduce the dimension of the data, and the expression is: Y = X·W; Among them, X represents the multimodal data matrix, W is the weight matrix composed of principal components, and Y represents the fused feature vector; The preprocessed data are organized into time series to construct a multimodal dataset containing historical weather conditions and corresponding PV power output.
3. The photovoltaic power prediction method according to claim 2, characterized in that: The radiation transmission model is constructed to calculate the solar radiation intensity on the surface of the photovoltaic module, and the specific steps are: The two-stream approximate radiative transfer model is adopted as the radiative transfer model; The direct radiation intensity is calculated using the Pearson-Blackman formula, which is expressed as: AND d =I0 cos(δ) / z; Among them, I0 represents the solar constant, δ represents the solar radiation angle, z represents the air mass number, and cos represents the cosine value; The Assmann formula is used to calculate the scattered radiation intensity, and the expression is: I s =π·I0·ρ·sin(δ)·cos(L) / (1-cos(δ)); Among them, π represents pi, p represents the surface albedo, δ represents the angle between the sun beam and the straight line perpendicular to the ground, L represents the latitude of the geographical location, and sin represents the sine value; The calculation expression of solar radiation intensity is: I t =I d ·T a ·(1-R a )+I s ·(1-R s )·(1-ρ); Among them, I t Represents the total solar radiation intensity on the surface of the photovoltaic module, I d Indicates the direct radiation intensity, I s represents the scattered radiation intensity, R a represents the atmospheric reflectivity, T a Indicates the atmospheric transmittance R s Represents the surface reflectivity.
4. The photovoltaic power prediction method according to claim 3, characterized in that: The photovoltaic power prediction model is constructed based on historical data to capture the nonlinear relationship between weather patterns and photovoltaic power output, and the predicted photovoltaic power is output. The specific steps are: The LSTM network is used as the core model of the photovoltaic power prediction model; Extract the deep features of meteorological data and convert them into a form suitable for input into the photovoltaic power prediction model. The expression is: Among them, F represents the deep feature, y i represents the i-th input feature, w i Represents y i The weight value, μ i represents the average value of the i-th feature, α is the adjustment factor, and p represents the number of input features; The photovoltaic power prediction model structure is constructed based on LSTM, and the expression is: h t =LSTM(h t-1 ,F); Among them, h t represents the hidden state at the current moment, which is used to predict the photovoltaic power at the current time point, h t -1 represents the hidden state at the previous moment; The photovoltaic power prediction value is obtained by the activation function ReLU, which is expressed as: in, Represents the predicted photovoltaic power value at time point t, W out represents the weight matrix of the output layer, b out Represents the bias term of the output layer.
5. The photovoltaic power prediction method according to claim 4, characterized in that: The photovoltaic power prediction model is trained using the historical data set, and the solar radiation intensity is used as the auxiliary input of the model. The specific steps are as follows: Collect a large amount of historical data and combine it into a historical data set through preprocessing and feature extraction; The historical data set is divided into a training set, a validation set and a test set, and the training set, the validation set and the test set are input into the photovoltaic power prediction model to complete the training, validation and testing of the model; A comprehensive feature fusion function is constructed based on solar radiation intensity and depth features. The expression of the comprehensive feature fusion function is: Among them, H t represents the comprehensive features at time point t, F i represents the i-th deep feature, f represents the hyperbolic tangent function Tanh, g(I t ) represents the solar radiation intensity I t The nonlinear transformation W i and γ are the weights of depth feature and solar radiation intensity, respectively, μ i and μ I They represent the average values of depth characteristics and solar radiation intensity, respectively, and α and β are adjustment factors; The training set data is used to input the photovoltaic power prediction model for training, and the loss function is introduced to calculate the mean square error L between the predicted photovoltaic power and the actual photovoltaic power; Use validation set data to verify the photovoltaic power prediction model, adjust model parameters and prevent overfitting; The comprehensive feature vector of the test set is input into the model to generate the PV power prediction value 6. The photovoltaic power prediction method according to claim 5, characterized in that: The real-time multimodal data set is collected, and the photovoltaic power prediction model trained by combining the real-time solar radiation intensity input is used to perform real-time photovoltaic power prediction. The specific steps are as follows: Collect the latest data in real time from national weather stations, the International Meteorological Satellite Organization, local radar monitoring networks and social media; The Z-score method is used to detect and process outliers in real-time data, and the K-nearest neighbor interpolation method is used to fill missing values. The data is then standardized and combined into a real-time multimodal data matrix. Use principal component analysis (PCA) to reduce the dimension of real-time data to form a real-time fusion feature vector; The direct radiation intensity and scattered radiation intensity are calculated in real time by the Pearson-Blackman formula and the Assman formula; The real-time fused feature vector and the real-time calculated total solar radiation intensity are input into the photovoltaic power prediction model to obtain a comprehensive feature fusion function; The real-time photovoltaic power prediction value is obtained by the current hidden state and comprehensive feature fusion function, and the expression is: P t t=W out ·h t (H tt )+b out ; Among them, P tt Represents the real-time photovoltaic power prediction value, W out represents the matrix of the output layer, H tt represents the comprehensive feature fusion function at time point t, b out Represents the bias term of the output layer; The real-time PV power prediction value is compared with the actual PV power, and the prediction accuracy is evaluated using the mean square error (MSE).
7. The photovoltaic power prediction method according to claim 6, characterized in that: The specific steps of dynamically adjusting the prediction strategy and optimizing the model parameters according to the error of the real-time prediction value are as follows: Calculate the root mean square error between the predicted photovoltaic power and the actual photovoltaic power, the expression is: Among them, RMSE represents the root mean square error value, It means to sum a series of items with subscript t from 1 to N. represents the predicted photovoltaic power at time point t, P t Indicates the actual photovoltaic power at the same time point; Calculate the average absolute percentage error between the predicted photovoltaic power and the actual photovoltaic power, the expression is: Among them, MAPE represents the mean absolute percentage error value; Update model parameters using adaptive learning rate algorithm based on Adam optimizer; A comprehensive performance index is constructed based on RMSE and MAPE, and the expression is: Where η is the comprehensive performance index, RMSE t Represents the preset RMSE threshold, MAPE t Indicates the preset MAPE threshold; When the prediction error is lower than RMSE t and MAPE t When , η will be greater than 0, otherwise it will be less than 0; Enter η into the adjustment formula, the expression is: α=α·(1+η·γ); Among them, α represents the learning rate, and γ represents the learning rate adjustment factor; Continue to iterate and update until the prediction error reaches the standard.
8. The photovoltaic power prediction method according to claim 7, characterized in that: The specific steps of efficiently allocating and managing power resources based on the photovoltaic power prediction results, combined with the real-time demand of the power grid and the status of the energy storage system are as follows: A comprehensive performance index is constructed based on the power dispatch efficiency Ξ energy storage system health Ω and system operation cost Λ, and the expression is: Among them, Ψ represents the comprehensive performance index; A questionnaire survey was used to collect users’ satisfaction scores on power dispatch, energy storage systems, and operating costs; The user feedback index is constructed based on user feedback and model prediction results. The expression is: Among them, Φ represents the user feedback index, S SC represents the user's satisfaction score on power dispatching efficiency, S St represents the user's satisfaction score on the health of the energy storage system and the user experience, S CO represents the user's satisfaction score on the system operation cost, S max Indicates the rating when the user is completely satisfied, S min A rating indicating when the user is completely dissatisfied; The model parameters are dynamically adjusted according to Φ and Ψ, and the expression is: Among them, α new represents the new learning rate after update, α old represents the current learning rate, Ψ t and Φ t They respectively represent the preset comprehensive performance indicator target value and the preset user feedback indicator target value.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the photovoltaic power prediction method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the photovoltaic power prediction method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method for predicating temperature of photovoltaic cell through photo-thermal property coupling
CN104767483A
Seasonal clothing short-term sales prediction method based on weather forecast information
CN116596580A
Photovoltaic power generation power prediction method based on mechanism-data driving hybrid integration
CN117134334A
Knowledge and data fusion driving-based photovoltaic output prediction method
CN117713218A
Photovoltaic power prediction method under lightning condition based on thundercloud trajectory tracking
WO2021204226A1
Cited By
Array type photovoltaic panel intelligent power regulation and energy optimization distribution method
CN119378929A
Intelligent power regulation and energy optimization distribution method for array photovoltaic panels
CN119378929B
Solar power generation integrated management system, device and method based on AI intelligence
CN120090561A
An AI-based integrated solar power generation management system, device, and method
CN120090561B
Photovoltaic power generation power prediction method and related equipment
CN120200248A
