Method for predicting photovoltaic power generation and related device

By combining clear-sky irradiance and photovoltaic system simulation models with historical data, photovoltaic power generation difference preprocessing and long- and short-term time series model prediction are performed. This solves the problems of limited outlier handling effect and large data requirements in photovoltaic power generation prediction, and improves prediction accuracy.

CN115759365BActive Publication Date: 2026-11-27ASIAINFO TECH CHINA INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211364348.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-02
Publication Date
2026-11-27
Estimated Expiration
2042-11-02

AI Technical Summary

Technical Problem

Existing technologies for photovoltaic power generation prediction suffer from limited outlier handling capabilities, high data requirements, and underutilization of the potential of clear-sky models.

Method used

By combining clear-sky irradiance models and photovoltaic system simulation models with historical meteorological, geographical, and equipment data, the difference in photovoltaic power generation is calculated and preprocessed, including outlier detection and missing value imputation, and then predicted using long-term and short-term time series models.

Benefits of technology

It reduces reliance on data volume, improves the accuracy of photovoltaic power generation prediction, and enables the detection of outliers and the improvement of data quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115759365B_ABST
    Figure CN115759365B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of photovoltaic power generation power prediction method, device, electronic equipment, storage medium and product, involve photovoltaic power generation and machine learning technical field.The method comprises: by clear sky irradiance model and preset photovoltaic system simulation model, based on historical meteorological data, geographical data and equipment data determine historical clear sky photovoltaic power generation power;The power difference of the historical photovoltaic power generation power obtained from the historical data and the calculated historical clear sky photovoltaic power generation power is calculated;The power difference is preprocessed, to obtain preprocessed data;Long short-term time series model is trained based on preprocessed data, and the photovoltaic power generation power is predicted by the trained long short-term time series model.The technical problems, such as that the effect of processing abnormal value in the prior art is limited, the required data volume is too large, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of photovoltaic power generation and machine learning technology. Specifically, this application relates to a method and related equipment for predicting photovoltaic power generation output. Background Technology

[0002] With the continued intensification of the greenhouse effect and the ongoing depletion of non-renewable energy sources such as fossil fuels, a transition to renewable energy sources like solar and wind power, which help reduce carbon emissions, is imperative. Photovoltaic power generation has gained widespread attention and development in recent years. However, due to the volatility and intermittency of photovoltaic power generation, large-scale grid-connected photovoltaic power plants may impact the safe and stable operation of the power system. Therefore, accurate prediction of the output power of photovoltaic power plants is crucial for the coordinated planning of conventional energy and photovoltaic power generation, making the development and research of photovoltaic power generation prediction methods of significant value.

[0003] Given the high cost of network infrastructure investment and the fact that network capacity cannot be infinitely expanded, network capacity deployment must be controllable to avoid network overload. Currently, existing technical solutions do not explicitly provide methods for detecting outliers in historical photovoltaic (PV) power generation data. Because the performance of PV power generation systems differs significantly between day and night, the distribution of historical data is biased, and general statistical methods have limited effectiveness in handling outliers; the potential of clear-sky models in PV power prediction technology has not been fully realized; and the effectiveness of data-driven methods relies heavily on the amount of data available. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, storage medium, and program product for predicting photovoltaic power generation, which solves the technical problems in the prior art such as limited effectiveness in handling outliers and excessive data requirements.

[0005] According to one aspect of the embodiments of this application, a method for predicting photovoltaic power generation is provided, comprising:

[0006] Historical clear-sky photovoltaic power generation was determined based on historical meteorological data, geographical data, and equipment data by using a clear-sky irradiance model and a pre-set photovoltaic system simulation model.

[0007] Calculate the power difference between the historical photovoltaic power generation obtained from historical data and the calculated historical clear-sky photovoltaic power generation;

[0008] The power difference is preprocessed to obtain preprocessed data;

[0009] Long-term and short-term time series models are trained based on preprocessed data, and photovoltaic power generation is predicted using the trained long-term and short-term time series models.

[0010] In one possible implementation, historical clear-sky photovoltaic power generation is determined based on historical meteorological data, geographical data, and equipment data, using a clear-sky irradiance model and a pre-set photovoltaic system simulation model. This includes:

[0011] Historical meteorological data is input into the clear-sky irradiance model to calculate clear-sky irradiance;

[0012] The clear-sky irradiance, geographical information, and equipment information are input into the photovoltaic system simulation model to calculate the historical clear-sky photovoltaic power generation.

[0013] In one possible implementation, the power difference is preprocessed to obtain preprocessed data, including:

[0014] Outlier detection is performed on the power difference at each time point, and outlier nodes are deleted to obtain the first difference;

[0015] The second difference is obtained by filling the first difference with a normal distribution;

[0016] The second difference is standardized, and the output includes the standardized second difference and the preprocessed data of the historical clear-sky photovoltaic power generation.

[0017] In one possible implementation, long-term and short-term time series models are trained based on the preprocessed data, including:

[0018] Feature analysis is performed on the preprocessed data to filter out target features and / or target feature pairs;

[0019] Training long and short-term time series models based on the target features and / or target feature pairs.

[0020] In one possible implementation, feature analysis is performed on the preprocessed data to filter out target features and / or target feature pairs, including:

[0021] The target photovoltaic power generation is obtained by adding the pre-processed power difference to the historical clear-sky photovoltaic power generation.

[0022] Based on the target photovoltaic power generation, the importance of each feature and / or the correlation between features are analyzed, and target features with an importance higher than a first preset threshold and / or target feature pairs with a correlation higher than a second preset threshold are selected.

[0023] In one possible implementation, the long short-term time series model includes convolutional neural networks and recurrent neural networks; training the long short-term time series model based on the target features and / or target feature pairs includes:

[0024] The preprocessed power difference and the target features and / or target features are used to train the input convolutional neural network to obtain a feature-based power difference relationship model;

[0025] The feature-based power difference relationship model is input into a recurrent neural network for time loop training to obtain a feature-based power difference time relationship model.

[0026] The predicted meteorological data and time period are input to obtain a feature-based power difference time relationship model. The obtained photovoltaic power difference and historical clear sky photovoltaic power generation are processed to output the trained long and short time series models.

[0027] In one possible implementation, based on the target photovoltaic power generation, the importance of each feature and / or the correlation between features are analyzed to select target features with an importance higher than a first preset threshold and / or target feature pairs with a correlation higher than a second preset threshold, including:

[0028] Based on the gradient descent tree model, the importance of each feature and / or the correlation between features are calculated, and the values ​​are denoted as the first importance value and the first correlation value, respectively.

[0029] Based on the Shapley value, the importance of each feature and / or the correlation between features are calculated, and the values ​​are denoted as the second importance value and the second correlation value, respectively.

[0030] The importance of each feature is obtained by combining the first importance value and the second importance value;

[0031] The correlation between each feature pair is obtained by combining the first and second correlation values.

[0032] According to another aspect of the embodiments of this application, a photovoltaic power generation prediction device is provided, comprising:

[0033] The data preprocessing module is used to determine the historical clear-sky photovoltaic power generation based on historical meteorological data, geographical data, and equipment data through a clear-sky irradiance model and a preset photovoltaic system simulation model; calculate the power difference between the historical photovoltaic power generation obtained from the historical data and the calculated historical clear-sky photovoltaic power generation; and preprocess the power difference to obtain preprocessed data.

[0034] The prediction model module is used to train long-term and short-term time series models based on preprocessed data, and to predict photovoltaic power generation through the trained long-term and short-term time series models.

[0035] According to another aspect of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above embodiments.

[0036] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the method described in the above embodiments.

[0037] According to another aspect of the embodiments of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described in the above embodiments.

[0038] The beneficial effects of the technical solutions provided in this application are:

[0039] The photovoltaic power generation prediction method provided in this application determines historical clear-sky photovoltaic power generation based on historical meteorological data, geographical data, and equipment data through a clear-sky irradiance model and a preset photovoltaic system simulation model. It calculates the power difference between the historical photovoltaic power generation obtained from historical data and the calculated historical clear-sky photovoltaic power generation. The power difference is preprocessed to obtain preprocessed data. A long-term and short-term time-series model is trained based on the preprocessed data, and the trained long-term and short-term time-series model is used to predict photovoltaic power generation. In this application, the clear-sky model does not rely on a large amount of historical photovoltaic power data, solving the technical problem of high data requirements in existing technologies. Furthermore, by performing data preprocessing operations, outlier detection, missing value imputation, and data detrending and deperiodicization are achieved, improving data quality and thus increasing the accuracy of photovoltaic power generation prediction. This also further reduces the dependence on the amount of data in this solution. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0041] Figure 1 A schematic diagram of the computer system architecture provided for an embodiment of this application;

[0042] Figure 2 A schematic flowchart illustrating a photovoltaic power generation prediction method provided in this application embodiment;

[0043] Figure 3 This application provides a schematic diagram of the overall process for photovoltaic power generation prediction.

[0044] Figure 4A flowchart illustrating a data preprocessing module provided in an embodiment of this application;

[0045] Figure 5 A flowchart illustrating a prediction model module provided in an embodiment of this application;

[0046] Figure 6 This is a schematic diagram of the structure of a photovoltaic power generation prediction device provided in an embodiment of this application;

[0047] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0048] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0049] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.”

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0051] Figure 1 This is a schematic diagram of a computer system architecture provided in an embodiment of this application. The computer system 100 includes a terminal device 101 and a server 102. The terminal device 101 and the server 102 are connected through a communication network, and the terminal device 101 and the server 102 can be directly or indirectly connected through wired or wireless communication methods. This application does not impose any restrictions on this.

[0052] Terminal device 101 can be any terminal device with an application installed or capable of running a program, such as a smartphone, tablet computer, laptop computer, desktop computer, etc., and this application embodiment does not limit it to this. Regarding the hardware structure, the terminal device 101 mentioned above includes a display screen, memory, processor, and input device, but is not limited thereto.

[0053] Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and big data and artificial intelligence platforms.

[0054] Server 102 provides background services for applications developed and running on multiple terminal devices 101. In this application, terminal devices 101 are used to collect historical meteorological data, geographical data, and equipment data, and send the collected data to the server. The server 102 determines the historical clear-sky photovoltaic power generation based on the received historical meteorological data, clear-sky irradiance model, and preset photovoltaic system simulation model. Then, it calculates the power difference between the historical photovoltaic power generation obtained from the historical data and the calculated historical clear-sky photovoltaic power generation, and preprocesses the power difference to obtain preprocessed data. Based on the preprocessed data, a long-term and short-term time series model is trained. Finally, the photovoltaic power generation is predicted using the trained long-term and short-term time series model to obtain the photovoltaic power generation prediction result. This reduces the amount of data required for prediction and improves the accuracy of photovoltaic power generation prediction.

[0055] Optionally, the network performance prediction method provided in this application embodiment can be implemented in the terminal device 101. That is, after the terminal device 101 collects relevant data, it completes the construction of the photovoltaic power generation prediction model and predicts the photovoltaic power generation to obtain the prediction result.

[0056] Figure 2 This is a flowchart illustrating a method for predicting photovoltaic power generation according to an embodiment of this application. The embodiment of this application provides a method for predicting photovoltaic power generation, which is illustrated using the server 102 shown in Figure 1 as an example. The method includes steps S201 and S202.

[0057] S201. Using a clear-sky irradiance model and a pre-set photovoltaic system simulation model, determine the historical clear-sky photovoltaic power generation based on historical meteorological data, geographical data, and equipment data; calculate the power difference between the historical photovoltaic power generation obtained from the historical data and the calculated historical clear-sky photovoltaic power generation; preprocess the power difference to obtain preprocessed data, the specific process is as follows:Figure 4 As shown, this will be explained in detail in the following description.

[0058] The historical photovoltaic (PV) power generated from historical data refers to the actual historical PV power generated by the equipment as statistically analyzed in the historical data. This data can be obtained automatically by the system or through input data. The calculated historical clear-sky PV power generated is determined based on historical meteorological data, geographical data, and equipment data using a clear-sky irradiance model and a pre-set PV system simulation model. Furthermore, the power difference between the historical PV power generated from historical data and the calculated historical clear-sky PV power generated can be understood as the difference in PV power generated due to the influence of weather factors other than clear-sky irradiance on PV power generation.

[0059] It should be noted that since the historical photovoltaic power generation obtained from historical data and the calculated historical clear-sky photovoltaic power generation share information such as photovoltaic system and geographical environment, the difference between the two mainly comes from cloud cover. Therefore, the two have almost the same period and trend, so the difference between the two has no period and trend. This method realizes the de-periodization and de-trendization of historical photovoltaic power data, and thus reduces the demand for time series data for machine learning models.

[0060] S202. Train a long-term and short-term time series model based on the preprocessed data, and predict photovoltaic power generation using the trained long-term and short-term time series model. The specific process is as follows: Figure 5 As shown, this will be explained in detail in the following description.

[0061] In this application, historical meteorological data, geographical data, equipment data, and other model data are input into the data preprocessing module. In the data processing module, the model data is input into a clear-sky irradiance model and then calculated using a photovoltaic system simulation model to determine the historical clear-sky photovoltaic power generation. Further, the power difference between the historical photovoltaic power generation obtained from historical data and the calculated historical clear-sky photovoltaic power generation is calculated. This power difference is then preprocessed to obtain preprocessed data, which is input into the prediction model module. In the prediction model module, long-term and short-term time-series models are trained based on the preprocessed data. Finally, the trained long-term and short-term time-series models are used to predict the photovoltaic power generation rate, thereby obtaining the predicted photovoltaic power generation result. The specific process is as follows: Figure 3 As shown.

[0062] In some embodiments, determining historical clear-sky photovoltaic power generation based on historical meteorological data, geographical data, and equipment data using a clear-sky irradiance model and a preset photovoltaic system simulation model includes:

[0063] Historical meteorological data is input into the clear-sky irradiance model to calculate clear-sky irradiance;

[0064] The clear-sky irradiance, geographical information, and equipment information are input into the photovoltaic system simulation model to calculate the historical clear-sky photovoltaic power generation.

[0065] It should be noted that the rated power and other parameters in the input geographical data and equipment data are usually constants, and this application assumes that the collected meteorological data is complete. Otherwise, statistical methods such as the seasonal difference autoregressive moving average model SARIMA, the smoothing exponential model ETS, and the time series model Prophet can be used to preprocess the collected meteorological data to ensure the integrity of the data.

[0066] In this embodiment, the clear-sky irradiance model can be the Bird model or the ESRA model, but is not limited to these. It is understood that the data types of input are not exactly the same based on different clear-sky irradiance models, and the input data can also be other data besides historical meteorological data, geographical data, and equipment data.

[0067] Optionally, the normal beam radiation can be calculated using the ESRA model, as shown in the following formula (1):

[0068] E bnc =E n ·exp(-8.662·T L ·AM r ·δ R )

[0069] ......Formula (1)

[0070] Accordingly, the horizontal diffuse radiation is calculated using the ESRA model, as shown in the following formula (2):

[0071] E dhc =E h ·T R (T L )·F D (θ Z AM r )

[0072] ...Formula (2) In the above formulas (1) and (2), E n and E h T represents the normal and horizontal components of Earth's external irradiance. L It is the Linke turbidity coefficient, T R It is the diffuse transmittance calculated based on the Linke turbidity coefficient, AM r It is atmospheric optical quality, δ R It is the optical path integral Rayleigh optical thickness, FD Through atmospheric optical quality and solar zenith angle δ Z The diffuse angle function is calculated. Based on the above calculations of normal beam radiation and horizontal diffuse radiation, and further combined with a physical model, the clear-sky irradiance received by the photovoltaic power generation equipment is calculated.

[0073] In this embodiment, the photovoltaic system simulation model calculates the historical clear-sky photovoltaic power generation by combining photovoltaic and inverter types, factory parameters, geographical location information, etc.

[0074] Optionally, the clear-sky irradiance estimated based on the clear-sky irradiance model is shown in formula (3):

[0075]

[0076] Clear-sky photovoltaic power can be estimated using the above formula (3). Where, P ac0 It is the rated power of the inverter; P mpA A is the maximum power of the device estimated based on clear-sky irradiance, etc.; A, B, and C are DC voltages.

[0077] In some embodiments, the power difference is preprocessed to obtain preprocessed data, including:

[0078] Outlier detection is performed on the power difference at each time point, and outlier nodes are deleted to obtain the first difference;

[0079] The second difference is obtained by filling the first difference with a normal distribution;

[0080] The second difference is standardized, and the output includes the standardized second difference and the preprocessed data of the historical clear-sky photovoltaic power generation.

[0081] In this embodiment, outlier detection of power differences at each time point can be performed using the quantile method or the isolated forest method, but is not limited to these methods.

[0082] Optionally, outlier detection can be performed using the Interquartile Range (IQR) method, and the corresponding outlier nodes can be deleted to obtain the first difference. Let the power difference be denoted as dP, and calculate the first and third quantiles of dP, denoted as Q1 and Q3 respectively. Then, IQR = Q3 - Q1, and define the set...

[0083]

[0084] Where k > 0, a commonly used value is k = 1.5. Set I ad Store the index of photovoltaic power outlier nodes detected by the quantile method. Delete the index belonging to I in dP. ad The data is denoted as the first difference.

[0085] In this embodiment, the first difference is calculated. The expected value μ and standard deviation σ, based on the normal distribution The second difference is obtained by randomly imputing the missing data.

[0086] In this embodiment, the standardized meteorological data is processed using a second difference method. And historical clear sky photovoltaic power P CS Together, they form the preprocessed data output.

[0087] It should be noted that the preprocessing of time series data in this application typically includes outlier detection, missing value imputation, and normalization or standardization, but is not limited to these. This application performs outlier detection and missing value imputation based on the Clear Sky model, and then performs normalization or standardization on this basis, which greatly reduces the bias of the data.

[0088] In some embodiments, training a long-short-term time series model based on preprocessed data includes:

[0089] Feature analysis is performed on the preprocessed data to filter out target features and / or target feature pairs;

[0090] Training long and short-term time series models based on the target features and / or target feature pairs.

[0091] In this application, based on preprocessed data, target features and / or feature pairs are selected by analyzing the input feature data. These target features and / or feature pairs are used as the main input relational parameters in subsequent model training. It should be noted that the target features and / or feature pairs are mainly meteorological features, but are not limited to these.

[0092] In some embodiments, feature analysis is performed on the preprocessed data to filter out target features and / or target feature pairs, including:

[0093] The target photovoltaic power generation is obtained by adding the pre-processed power difference to the historical clear-sky photovoltaic power generation.

[0094] Based on the target photovoltaic power generation, the importance of each feature and / or the correlation between features are analyzed, and target features with an importance higher than a first preset threshold and / or target feature pairs with a correlation higher than a second preset threshold are selected.

[0095] In this embodiment, the target photovoltaic power generation is the sum of the difference between the clear-sky power generation and the processed power. By analyzing the relationship between the importance of features and the target power generation, target features with an importance higher than a certain threshold are identified, meaning these features have a significant impact on the target photovoltaic power generation. Similarly, by analyzing the correlation between feature pairs, target feature pairs with a correlation higher than a certain threshold are identified. This is used to verify the correlation between features and their contribution to the prediction results, thereby providing theoretical support for subsequent model training. It should be noted that this application does not limit the specific values ​​of the first and second preset thresholds, and the magnitude of these values ​​is specifically defined according to different importance and / or correlation analysis models.

[0096] In some embodiments, based on the target photovoltaic power generation, the importance of each feature and / or the correlation between features are analyzed to screen out target features with an importance higher than a first preset threshold and / or target feature pairs with a correlation higher than a second preset threshold, including:

[0097] Based on the gradient descent tree model, the importance of each feature and / or the correlation between features are calculated, and the values ​​are denoted as the first importance value and the first correlation value, respectively.

[0098] Based on the Shapley value, the importance of each feature and / or the correlation between features are calculated, and the values ​​are denoted as the second importance value and the second correlation value, respectively.

[0099] The importance of each feature is obtained by combining the first importance value and the second importance value;

[0100] The correlation between each feature pair is obtained by combining the first and second correlation values.

[0101] In this embodiment, the importance of photovoltaic power data features and the correlation between features are analyzed using a descent tree model and a game theory-based Shapley value method, respectively. Then, the results of the two analysis methods are combined to obtain the importance of each feature and / or the correlation between feature pairs.

[0102] It should be noted that there are several methods for combining the values ​​of first importance and / or relevance with those of second importance and / or relevance, but these are not limited to: First importance and / or relevance can be compared with second importance and / or relevance, and only one value can be selected as the importance and / or relevance; second importance and / or relevance can be added to the values ​​of first importance and / or relevance with those of second importance and / or relevance according to a certain ratio based on the accuracy of the two analysis models, and the sum can be used as the importance of each feature and / or the relevance between feature pairs.

[0103] For example, the importance of each feature and / or the correlation between features is calculated using the XGBoost descent tree model. This model uses first and second-order partial derivatives and obtains the second-order derivative form of the function as the independent variable through Taylor expansion, thereby quantifying the importance of the input features. The Shapley value fairly allocates credit or contribution to features by calculating the marginal contribution of each participant in different feature pairs. Furthermore, the Shapley interaction value considers the marginal contribution of a given pair of features. For a given feature pair, it calculates the model's final output when the pair of features participate simultaneously, separately, and neither participates. The Shapley interaction value for this pair of features is obtained through a series of mathematical formulas, and this value reflects the correlation of the contributions of this pair of features.

[0104] In some embodiments, the long short-term time series model includes a convolutional neural network and a recurrent neural network; training the long short-term time series model based on the target features and / or target feature pairs includes:

[0105] The preprocessed power difference and the target features and / or target features are used to train the input convolutional neural network to obtain a feature-based power difference relationship model;

[0106] The feature-based power difference relationship model is input into a recurrent neural network for time loop training to obtain a feature-based power difference time relationship model.

[0107] The predicted meteorological data and time period are input to obtain a feature-based power difference time relationship model. The obtained photovoltaic power difference and historical clear sky photovoltaic power generation are processed to output the trained long and short time series models.

[0108] In this embodiment, based on the correlation between the data shown by the feature results, especially the meteorological feature data, in terms of their contribution to photovoltaic power prediction, this application selects a long-short-term time series model that combines the characteristics of convolutional neural networks and recurrent neural networks as the prediction model. This long-short-term time series model includes convolutional neural networks and recurrent neural networks. The long-short-term time series network is trained using these two networks respectively to train the relationship between the difference in photovoltaic power generation and features and time intervals.

[0109] For example, the preprocessed power difference Compared with historical clear-sky photovoltaic power generation P cS The training sets were divided into two groups with a ratio of 80% and 20%. P cs,Tr and test set P cs,Te .in, n is the number of features, and T is the number of time points covered by the data. Let the convolutional module of the long short-term time series model use a kernel size of (n, s) and a convolutional layer h.k =RELU(W k *X s +b k ) input This convolutional layer uses a learnable weight matrix. The convolutional module combines local features. Its goal is to learn a mapping. Make It can extract local feature dependencies of the data, where W and b are trainable parameters.

[0110] Furthermore, X c The data is input into the recurrent module, which uses the characteristics of a GRU (Gated Recurrent Unit) to capture patterns in the time-series data. The recurrent module aims to learn the mapping. in This is the output of the recurrent module. The final output of the long short-term time series model is... in This is a clear-sky photovoltaic power estimation over the time interval [T+1, T+M]. The training of LSTNet explores the optimal parameters (Θ). * W * ,b * ) satisfies the following formula (4):

[0111]

[0112] The photovoltaic power generation prediction method provided in this application determines historical clear-sky photovoltaic power generation based on historical meteorological data, geographical data, and equipment data through a clear-sky irradiance model and a preset photovoltaic system simulation model. It calculates the power difference between the historical photovoltaic power generation obtained from historical data and the calculated historical clear-sky photovoltaic power generation. The power difference is preprocessed to obtain preprocessed data. A long-term and short-term time-series model is trained based on the preprocessed data, and the trained long-term and short-term time-series model is used to predict photovoltaic power generation. In this application, the clear-sky model does not rely on a large amount of historical photovoltaic power data, solving the technical problem of high data requirements in existing technologies. Furthermore, by performing data preprocessing operations, outlier detection, missing value imputation, and data detrending and deperiodicization are achieved, improving data quality and thus increasing the accuracy of photovoltaic power generation prediction. This also further reduces the dependence on the amount of data in this solution.

[0113] See Figure 6 This is a schematic diagram of a network performance prediction device 300 provided in an embodiment of this application. The network performance prediction device 300 includes:

[0114] The data preprocessing module 301 is used to determine the historical clear-sky photovoltaic power generation based on historical meteorological data, geographical data, and equipment data through a clear-sky irradiance model and a preset photovoltaic system simulation model; calculate the power difference between the historical photovoltaic power generation obtained from the historical data and the calculated historical clear-sky photovoltaic power generation; and preprocess the power difference to obtain preprocessed data.

[0115] The prediction model module 302 is used to train a long-term and short-term time series model based on the preprocessed data, and to predict the photovoltaic power generation through the trained long-term and short-term time series model.

[0116] The apparatus in this application embodiment can execute the method provided in this application embodiment, and the implementation principle is similar. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the apparatus, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0117] This application provides an electronic device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to achieve the steps of photovoltaic power generation prediction. Compared with related technologies, this application achieves the following: the clear sky model does not rely on a large amount of historical photovoltaic power data, solving the technical problem of large data requirements in the prior art. Furthermore, by performing preprocessing operations on the data, outlier detection, missing value filling, and data detrending and deperiodicization are achieved, improving the quality of the data and thus improving the accuracy of photovoltaic power generation prediction. At the same time, it further reduces the dependence on the amount of data in this solution.

[0118] In one alternative embodiment, an electronic device is provided, such as Figure 7 As shown, Figure 7 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.

[0119] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0120] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0121] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0122] The memory 4003 stores computer programs that execute embodiments of this application, and its execution is controlled by the processor 4001. The processor 4001 executes the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0123] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned method embodiments.

[0124] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0125] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the figures or text.

[0126] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0127] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.

Claims

1. A method for predicting photovoltaic power generation, characterized in that, The method includes the following steps: Historical clear-sky photovoltaic power generation was determined based on historical meteorological data, geographical data, and equipment data by using a clear-sky irradiance model and a pre-set photovoltaic system simulation model. Calculate the power difference between the historical photovoltaic power generation obtained from historical data and the calculated historical clear-sky photovoltaic power generation; The power difference is preprocessed to obtain preprocessed data; The power difference is preprocessed to obtain preprocessed data, including: outlier detection of the power difference at each time point, deletion of outlier nodes to obtain a first difference; filling the first difference based on a normal distribution to obtain a second difference; standardizing the second difference, and outputting preprocessed data composed of the standardized second difference and the historical clear-sky photovoltaic power generation. Long-term and short-term time series models are trained based on preprocessed data, and photovoltaic power generation is predicted using the trained long-term and short-term time series models; the long-term and short-term time series models include convolutional neural networks and recurrent neural networks; The process of training a long-term and short-term time-series model based on preprocessed data, and then using the trained model to predict photovoltaic power generation, includes: Feature analysis is performed on the preprocessed data to filter out target features and / or target feature pairs; The preprocessed power difference and the target features and / or target features are used to train the input convolutional neural network to obtain a feature-based power difference relationship model; The output features of the feature-based power difference relationship model are input into a recurrent neural network for time loop training to obtain a feature-based power difference time relationship model. The predicted meteorological data and time period are input into the feature-based power difference time relationship model to obtain the photovoltaic power difference. The obtained photovoltaic power difference and clear-sky photovoltaic power generation are then processed to obtain the photovoltaic power generation prediction result.

2. The method according to claim 1, characterized in that, The determination of historical clear-sky photovoltaic power generation based on historical meteorological data, geographical data, and equipment data, using a clear-sky irradiance model and a pre-set photovoltaic system simulation model, includes: Historical meteorological data is input into the clear-sky irradiance model to calculate clear-sky irradiance; The clear-sky irradiance, geographical data, and equipment data are input into the photovoltaic system simulation model to calculate the historical clear-sky photovoltaic power generation.

3. The method according to claim 1, characterized in that, Feature analysis is performed on the preprocessed data to filter out target features and / or target feature pairs, including: The target photovoltaic power generation is obtained by adding the pre-processed power difference to the historical clear-sky photovoltaic power generation. Based on the target photovoltaic power generation, the importance of each feature and / or the correlation between features are analyzed, and target features with an importance higher than a first preset threshold and / or target feature pairs with a correlation higher than a second preset threshold are selected.

4. The method according to claim 3, characterized in that, Based on the target photovoltaic power generation, the importance of each feature and / or the correlation between features are analyzed to select target features with an importance higher than a first preset threshold and / or target feature pairs with a correlation higher than a second preset threshold, including: Based on the gradient descent tree model, the importance of each feature and / or the correlation between features are calculated, and the values ​​are denoted as the first importance value and the first correlation value, respectively. Based on the Shapley value, the importance of each feature and / or the correlation between features are calculated, and the values ​​are denoted as the second importance value and the second correlation value, respectively. The importance of each feature is obtained by combining the first importance value and the second importance value; The correlation between each feature pair is obtained by combining the first and second correlation values.

5. A device for predicting photovoltaic power generation, characterized in that, The device includes: The data preprocessing module is used to determine the historical clear-sky photovoltaic power generation based on historical meteorological data, geographical data, and equipment data through a clear-sky irradiance model and a preset photovoltaic system simulation model; calculate the power difference between the historical photovoltaic power generation obtained from the historical data and the calculated historical clear-sky photovoltaic power generation; and preprocess the power difference to obtain preprocessed data. The data preprocessing module is used to detect outliers in the power differences at each time point, delete outlier nodes to obtain a first difference; fill the first difference based on a normal distribution to obtain a second difference; standardize the second difference, and output preprocessed data consisting of the standardized second difference and the historical clear-sky photovoltaic power generation. The prediction model module is used to train a long-term and short-term time series model based on preprocessed data, and to predict photovoltaic power generation through the trained long-term and short-term time series model; the long-term and short-term time series model includes a convolutional neural network and a recurrent neural network. The prediction model module is used to perform feature analysis on the preprocessed data, and filter out target features and / or target feature pairs; input the preprocessed power difference and the target features and / or target feature pairs into a convolutional neural network to train a feature-based power difference relationship model; input the output features of the feature-based power difference relationship model into a recurrent neural network for time loop training to obtain a feature-based power difference time relationship model; input the predicted meteorological data and time period into the feature-based power difference time relationship model to obtain the photovoltaic power difference; and then process the obtained photovoltaic power difference and clear-sky photovoltaic power generation to obtain the photovoltaic power generation prediction result.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1-4.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-4.