Medium and long term optical power prediction method and system based on classification error compensation

Through the medium- and long-term optical power prediction method based on classification error compensation, error compensation models for different weather types are constructed and updated online, which solves the problems of low update efficiency and low accuracy in the existing technology, and improves the prediction accuracy and power grid stability. .

CN118693792APending Publication Date: 2024-09-24NANJING GUODIAN NANZI WEIMEIDE AUTOMATION CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410615102.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing medium- and long-term optical power prediction methods have low update efficiency and low prediction accuracy, especially under extreme weather conditions. It is difficult to accurately predict, and the model update time and cost are high.

Method used

A medium- and long-term optical power prediction method based on classification error compensation is adopted. By collecting historical data for classification and feature processing, error compensation models for different weather types are constructed, and predictions are made in combination with algorithms such as BP neural network, LSTM-RNN and support vector machines. Online model updates are triggered by timing and conditions.

Benefits of technology

It improves the accuracy and update efficiency of medium- and long-term optical power predictions, provides subdivision processing for different weather conditions, reduces the difference between predictions and actual power generation, and enhances the stability and economy of power grid operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118693792A
    Figure CN118693792A
Patent Text Reader

Abstract

The invention discloses a medium and long term optical power prediction method and system based on classification error compensation, and the method comprises the steps: collecting historical data related to optical power, and carrying out the classification and feature processing of the historical data; respectively constructing five error compensation models, and constructing a prediction model of an optical power prediction basic value; performing online deployment to obtain corresponding irradiation and weather data, and performing medium and long term optical power prediction including error compensation; and finally, according to the characteristics of each error compensation model and the data sample thereof, a periodic or conditional trigger type online updating strategy is selected in a targeted manner, and online updating of the models is realized in a classified manner. Compared with a traditional medium-and-long-term prediction method, the medium-and-long-term optical power prediction method has the advantages of being high in error compensation pertinence, high in online updating efficiency and excellent in power prediction precision for medium-and-long-term optical power prediction scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of optical power prediction, and in particular to a medium- and long-term optical power prediction method and system based on classification error compensation. Background Art

[0002] As a pollution-free renewable energy, solar energy has received global attention in recent years. Photovoltaic power generation has also developed rapidly due to its advantages such as low price and easy installation. However, photovoltaic power generation also has problems such as randomness and intermittency. Large-scale photovoltaic grid connection has brought difficulties to the power dispatching department in arranging power supply and coordinating photovoltaic power generation.

[0003] In the past two years, medium- and long-term optical power forecasting has become increasingly important. Accurate medium- and long-term forecasting can provide a basis for power grid planning, a reference for safe and stable operation of the power grid, and an important reference for power system dispatching and power market transactions. In many areas, 10-day optical power forecasting has been included in the assessment standards, and optical power forecasting for a month or even longer is constantly appearing in systems and applications. At the same time, the accuracy of medium- and long-term optical power forecasting has always been unsatisfactory, and there are many difficulties. Compared with short-term and ultra-short-term forecasting, there are fewer studies. At present, some literature has studied medium- and long-term optical power forecasting. Some literature separates deterministic factors and uncertain factors into models, analyzes the medium- and long-term random characteristics of photovoltaic power generation, and does not give a clear photovoltaic prediction model. There are also literatures that combine feedforward directional propagation and generalized regression neural networks to predict photovoltaic power generation for one year, but the time scale considered is too long and lacks practical application value. There are also literatures that combine fuzzy theory and neural networks to predict photovoltaic power generation in a certain month, but ignore the continuous characteristics of time, and should consider the correlation between daily meteorological data within the prediction period.

[0004] In addition, there is another problem with medium- and long-term optical power prediction. In medium- and long-term power prediction, there will be many extreme weather predictions. In the northwest region with large photovoltaic installed capacity, such as Xinjiang, Qinghai, Gansu, and Ningxia, there are many windy and snowy weather. For example, snowy weather involves the output of photovoltaic panels after the snow stops, during the period of snow covering and snow melting; sandstorm weather involves the output of photovoltaic panels after the wind and sand stops, during the period of sand covering. These situations need to be dealt with in a targeted manner, and at present, there is little research on the subdivision of these scenarios in medium- and long-term optical power prediction. Finally, many machine learning and deep learning algorithms require a lot of time and resources to update the model. When the prediction model needs to be updated online, the training time and cost are high. Summary of the invention

[0005] In view of the above-mentioned problems, the present invention is proposed.

[0006] Therefore, the technical problem solved by the present invention is that the existing medium- and long-term optical power prediction methods have the problems of slow updating efficiency and poor prediction accuracy.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a medium- and long-term optical power prediction method based on classification error compensation, comprising:

[0008] Collect historical data related to optical power, and classify and feature process the historical data;

[0009] Five error compensation models are constructed respectively, and a prediction model for the basic numerical value of optical power prediction is constructed;

[0010] Online deployment, obtaining corresponding irradiation and weather data, and performing medium- and long-term optical power prediction including error compensation;

[0011] The error compensation model is updated online by combining timing and conditional triggering.

[0012] As a preferred solution of the medium- and long-term optical power prediction method based on classification error compensation described in the present invention, the historical data related to optical power includes the actual power generation, startup capacity, cumulative operation time of the photovoltaic power generation system in the historical period, and meteorological information in the historical period;

[0013] According to the demand for compensation of medium- and long-term power forecast values, weather types are divided into sunny days, cloudy days, rainy days, snowfall and snowmelt days, and dusty days;

[0014] The historical data are classified. On rainy days, the 15-minute cumulative precipitation and integrated cloud water are selected as the judgment parameters. On snowfall and snowmelt days, the snow thickness and ice thickness are selected as the judgment parameters. On dusty days, the visibility and relative humidity are selected as the judgment parameters. Through the threshold analysis of the judgment parameters, the historical data samples of the error compensation model for the three weather types of rainy days, snowfall and snowmelt days, and dusty days are obtained.

[0015] For sunny and cloudy weather, the K-means algorithm is used, K=2 is set, and historical data samples of error compensation models for sunny and cloudy weather types are obtained through clustering;

[0016] Among them, K represents the cluster center.

[0017] As a preferred solution of the medium- and long-term optical power prediction method based on classification error compensation described in the present invention, wherein: the feature processing includes performing feature processing on five types of historical data samples to obtain feature values ​​X_sample;

[0018] The specific steps are:

[0019] Select common characteristic quantities: power-on capacity, cumulative operation time, and total horizontal radiation, ambient temperature, and relative humidity from historical numerical weather forecast (NWP) data;

[0020] Supplement input features: for snowfall and snowmelt weather, add the previous day's total horizontal radiation, ambient temperature, snow thickness, and ice thickness as supplementary input features; for sandstorm days, add the previous day's total horizontal radiation, ambient temperature, relative humidity, and visibility as supplementary input features; for rainy days, add 15 minutes of rainfall as supplementary input features; for sunny and cloudy days, no additional input features are added

[0021] Fill missing data with 0 and normalize the data; the output of the training sample, Y_sample, is the difference between the actual power generation in the historical data and the predicted power generation;

[0022] The eigenvalues ​​and output quantities constitute the error compensation model training samples (X_sample, Y_sample).

[0023] As a preferred solution of the medium- and long-term optical power prediction method based on classification error compensation described in the present invention, wherein: the five error compensation models are constructed respectively, and the prediction model of the basic numerical value of optical power prediction is constructed, including:

[0024] For the error compensation model of sunny days and cloudy days, a BP neural network with 5 input units, 7 hidden layer units and relu activation function is constructed respectively;

[0025] For the error compensation value model for rainy days, a support vector machine model with a radial basis kernel function and a one vs one decision function type is constructed;

[0026] For the error compensation model of snowfall and snowmelt days, since the scene is a process with a time span, the long short-term memory recurrent neural network algorithm with temporal memory function is selected to construct an LSTM-RNN model with 11 input units and 32 hidden layers;

[0027] For the error compensation model of dusty days, since the scene is also a process with a time span, the long short-term memory recurrent neural network algorithm with temporal memory function is also selected to build an LSTM-RNN model with 10 input units and 32 hidden layers;

[0028] The error compensation model training sample data obtained in claim 3 is used to perform model training for the above five models.

[0029] As a preferred solution of the medium- and long-term optical power prediction method based on classification error compensation described in the present invention, wherein: the prediction model for constructing the basic numerical value of optical power prediction includes constructing a prediction model for the basic numerical value of optical power prediction based on the OS-ELM algorithm, specifically an extreme learning machine model with 3 input units, 5 hidden layer units, and an activation function of the tanh function, then the formula for obtaining the basic prediction value is:

[0030] E P =Hβ

[0031] Among them, E P represents the basic optical power prediction value; H represents the random feature mapping matrix, which is the output of the hidden layer node; β is the output weight.

[0032] As a preferred solution of the medium- and long-term optical power prediction method based on classification error compensation described in the present invention, wherein: the online deployment, obtaining corresponding irradiation and weather data, and performing medium- and long-term optical power prediction including error compensation include online deployment and operation of five error compensation models and a prediction model of basic numerical values ​​of optical power prediction, and regular medium- and long-term optical power prediction;

[0033] The prediction process is as follows: the optical power prediction base value P at this time point is calculated. base Determine the weather type at that time point, select the corresponding error compensation model, and obtain the compensation error value P offsets ; The optical power prediction at this moment P pred The values ​​are expressed as:

[0034] P pred =P base +P offsets

[0035] Among them, P base Represents the basic power prediction value, P offsets Indicates the error compensation value.

[0036] As a preferred solution of the medium- and long-term optical power prediction method based on classification error compensation described in the present invention, wherein: the online updating of the model includes setting a period value for the two models of sunny day and cloudy day, and using a back propagation algorithm to periodically update the model;

[0037] For the three weather types of rainy days, snowy and snow-covered days, and dusty days, a quantitative triggered update strategy is adopted, combined with the sliding window method, and the width value of the window unit and the threshold of the number of new samples are set. When the threshold is reached, the model update is triggered;

[0038] Among them, for the error compensation models of snowfall and snow-covered days, and dust and haze days, the time series back propagation algorithm is used to update the model.

[0039] A medium- and long-term optical power prediction system based on classification error compensation, wherein:

[0040] A collection unit collects historical data related to optical power and performs feature selection on the historical data;

[0041] The training unit builds a basic optical power prediction model and a classification error compensation model, and performs offline model training;

[0042] The prediction unit is deployed online to obtain the corresponding irradiation and weather data and perform medium- and long-term optical power prediction including error compensation;

[0043] The updating unit uses a combination of timing and conditional triggering to update the error compensation model online.

[0044] A computer device comprises: a memory and a processor; the memory stores a computer program, wherein the processor implements the steps of any one of the methods of the present invention when executing the computer program.

[0045] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the methods of the present invention.

[0046] Beneficial effects of the present invention: The medium- and long-term optical power prediction method based on classification error compensation provided by the present invention subdivides different weather types, and respectively constructs error compensation models, performs error compensation on optical power prediction values, and has the function of online model update. Thus, for medium- and long-term optical power prediction scenarios, the accuracy of power prediction is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] 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.

[0048] Figure 1 An overall flow chart of a medium- and long-term optical power prediction method based on classification error compensation provided by the first embodiment of the present invention;

[0049] Figure 2 An offline construction flow chart of a medium- and long-term optical power prediction method based on classification error compensation provided by the first embodiment of the present invention;

[0050] Figure 3A model online updating strategy diagram of a medium- and long-term optical power prediction method based on classification error compensation is provided in accordance with the second embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the above-mentioned purposes, 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 drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0052] Example 1

[0053] Reference Figure 1 , as an embodiment of the present invention, provides a medium- and long-term optical power prediction method based on classification error compensation, comprising:

[0054] S1: Collect historical data related to optical power, and classify and feature process the historical data.

[0055] According to the demand for compensation of medium- and long-term power forecast values, weather types are divided into sunny days, cloudy days, rainy days, snowfall and snowmelt days, and dusty days.

[0056] The historical data related to optical power include the actual power generation, startup capacity, cumulative operation time of the photovoltaic power generation system in the historical period, and meteorological information in the historical period. The historical data are classified, and the parameters of 15-minute cumulative precipitation (mm) and integrated cloud water (kg / m2) are selected as judgment quantities on rainy days, snow thickness (mm) and ice thickness (mm) are selected as judgment quantities on snowfall and snowmelt days, and visibility (km) and relative humidity (%) are selected as judgment quantities on dusty days. The thresholds of these parameters are set to obtain historical data samples of error compensation models for three types of weather: rainy days, snowfall and snowmelt days, and dusty days; for sunny and cloudy weather, the K-means algorithm is used, and K=2 is set (that is, two samples are selected as initial clustering centers). Through clustering, historical data samples of error compensation models for two types of weather: sunny and cloudy days are obtained.

[0057] The five types of historical data samples are processed with features to obtain the feature value X_sample. Specifically, first, select the common feature quantities, including startup capacity, cumulative operation time, and total horizontal radiation, ambient temperature, and relative humidity in the historical numerical weather forecast NWP data. Then, the input features are supplemented. For snowfall and snowmelt weather and sandstorm days, because they involve snow and snow melting and dust covering the photovoltaic panels, these situations belong to the process with a time span. Snowfall and snowmelt weather add the total horizontal radiation, ambient temperature, snow thickness, and ice thickness of the previous day as supplementary input features; sandstorm days add the total horizontal radiation, ambient temperature, relative humidity, and visibility of the previous day as supplementary input features; rainy days add 15 minutes of rainfall as supplementary input features; sunny days and cloudy days do not add additional input features. Then, fill in the missing data with 0 and normalize the data. The output of the training sample Y_sample is the difference between the actual power generation in the historical data and the predicted power generation. Finally, the eigenvalues ​​and output quantities constitute the error compensation model training samples (X_sample, Y_sample).

[0058] Perform feature processing on the historical data obtained in the previous step and obtain model training samples. Specifically, first, perform feature processing by classification:

[0059] For snowfall and snowmelt weather, it involves the snow covering and melting of photovoltaic panels, which is a time-span process. Therefore, after selecting the startup capacity CA, the cumulative operation time RT, and reading the horizontal total radiation E in the historical numerical weather forecast NWP data, T 、Ambient temperature T T , relative humidity RH T , snow thickness ST T , Ice thickness IT T , a total of seven characteristic quantities, adding the total horizontal radiation E of the previous day Y 、Ambient temperature T Y 、Snow thickness ST Y , Ice thickness IT Y As a supplement, we get the input features of snowfall and snowmelt days: X snow =[CA,RT,E T ,T T ,RH T ,ST T ,IT T ,E Y ,T Y ,ST Y ,IT Y ]; Then, fill the missing data with 0 and normalize the data.

[0060] For dusty days, the dust covers the photovoltaic panels. It is not that the photovoltaic panels will be free of dust immediately after the dust stops. This is a process with a time span. Therefore, after selecting the startup capacity CA, the cumulative operation time RT, and reading the horizontal total radiation E in the historical numerical weather forecast NWP data, T 、Ambient temperature T T , relative humidity RH T , visibility V T , a total of six characteristic quantities, the dust day adds the total horizontal radiation E of the previous day Y 、Ambient temperature T Y , relative humidity RH Y , visibility V Y As a supplement, we get the input features of dusty days: X dust =[CA,RT,E T ,T T ,RH T ,V T ,,E Y ,T Y ,RH Y ,V Y ]; Then, fill the missing data with 0 and normalize the data.

[0061] For rainy days, after selecting the startup capacity CA, the cumulative operation time RT, and reading the horizontal total radiation E in the historical numerical weather forecast NWP data, T 、Ambient temperature T T , relative humidity RH T , based on a total of five feature quantities, the 15-minute rainfall RF is added as a supplementary feature to obtain the input feature of rainy days: X rain =[CA,RT,E T ,T T ,RH T ,RF]; then, fill the missing data with 0 and normalize the data.

[0062] No additional input features are added for sunny and cloudy days. Instead, the startup capacity CA, cumulative operation time RT, and the total horizontal radiation E from the historical numerical weather forecast NWP data are selected. T 、Ambient temperature T T , relative humidity RH T , a total of five feature quantities, the input features of sunny days are obtained: X sunny =[CA,RT,E T ,T T ,RH T ], and the input features of cloudy days: X cloud =[CA,RT,E T ,T T,RH T ]. Then, fill the missing data with 0 and normalize the data.

[0063] For the above five types of data, the output of the training sample, Y_sample, is the difference between the actual power generation in the historical data and the predicted power generation. Finally, the eigenvalues ​​and outputs constitute the training samples of the error compensation model, that is, the training samples for snowy days are (X snow ,Y_sample), the training sample of dusty days is (X dust ,Y_sample), the training sample for rainy days is (X rain ,Y_sample), the training sample for sunny days is (X sunny ,Y_sample), and the training sample for cloudy days is (X cloud ,Y_sample).

[0064] In addition, read the historical numerical weather forecast NWP data and select the horizontal total radiation E, ambient temperature T, and relative humidity RH as input features X base =[E,T,RH], fill in the missing data with 0; then convert the measured power P A As output Y base , and obtain the sample data (X base ,Y base ).

[0065] S2: Construct five error compensation models respectively, and construct a prediction model for the basic numerical value of optical power prediction.

[0066] like Figure 2 As shown, five error compensation models are constructed according to the difference in weather types; and a prediction model for the basic numerical value of optical power prediction is constructed.

[0067] For the error compensation model of sunny days, a BP (back propagation) neural network with 5 input units, 7 hidden layer units and relu activation function is constructed; the training sample of sunny days is (X sunny ,Y_sample), and conduct model training.

[0068] For the error compensation model of cloudy days, a BP (back propagation) neural network with 5 input units, 7 hidden layer units and relu activation function is also constructed; the training sample of cloudy days is (X cloud ,Y_sample), and conduct model training.

[0069] For the error compensation value model of rainy days, a support vector machine model with a radial basis kernel function and a one vs one decision function type is constructed; the training sample of rainy days is (Xrain , Y_sample), and conduct model training.

[0070] For the error compensation model of snowfall and snowmelt days, since the scene belongs to a time-span process, the long short-term memory recurrent neural network algorithm with temporal memory function is selected. According to the input feature dimension of the training sample, an LSTM-RNN model with 11 input units and 32 hidden layers is constructed; the training sample of snowy days is (X snow ,Y_sample), and conduct model training.

[0071] For the error compensation model of sandstorms, since the scene also belongs to a process with a time span, the long short-term memory recurrent neural network algorithm with time series memory function is also selected. According to the input feature dimension of the training sample, an LSTM-RNN model with 10 input units and 32 hidden layers is constructed; the training sample of sandstorms is (X dust ,Y_sample), and conduct model training.

[0072] A prediction model for the basic numerical value of optical power prediction is constructed based on the OS-ELM (online extreme learning machine) algorithm. Specifically, the extreme learning machine model has 3 input units, 5 hidden layer units, and the activation function is the tanh function. The formula for obtaining the basic prediction value is:

[0073] E P =Hβ

[0074] Among them, E P represents the basic value of optical power prediction; H represents the random feature mapping matrix, which is the output of the hidden layer node; β is the output weight.

[0075] Through the sample data (X base ,Y base ) to train the model.

[0076] S3: Online deployment, obtaining corresponding irradiation and weather data, and performing medium- and long-term optical power prediction including error compensation.

[0077] Deploy online, obtain the corresponding irradiation and weather data, and make medium- and long-term optical power forecasts. In this example, the optical power values ​​of 960 points in the next 10 days are forecasted on a regular basis every day (the forecast resolution is one point every 15 minutes). The forecast process is shown in the attached figure. Figure 1 As shown in the process, firstly, the basic optical power prediction value P at each time point is calculated. base Then, the same method as in step S2 is used to determine the weather type at the current moment, and then the corresponding error compensation model is selected to obtain the compensation error value P offsets Finally, the optical power prediction P at this moment is predThe value is determined by the basic power prediction value P base and error compensation value P offsets It consists of two parts, namely:

[0078] P pred =P base +P offsets .

[0079] S4: The error compensation model is updated online by combining timing and conditional triggering.

[0080] The error compensation model is updated online by combining timing and quantitative methods. Figure 1 and attached Figure 3 As shown, this medium- and long-term optical power prediction method will update and iterate the model. For the two models of sunny day and cloudy day, in this example, the constructed neural network is not complicated, and the number of samples is relatively sufficient, so the cycle value is also set to one month, and the conventional back propagation algorithm is used to iteratively update the model. For the three weather types of rainy day, snowy and snow-covered day, and dusty and hazy day, since the speed of accumulating new samples is relatively slow, a quantitative triggered update strategy is adopted, and combined with the sliding window method, the width value of the window unit and the threshold of the number of new samples are set. When the threshold is reached, the model update is triggered. Among them, the error compensation model for rainy days is constructed by support vector machine, which has excellent effect on small and medium sample data sets. Therefore, in this example, the width of the sliding window is set to 100 samples, and the proportion of new samples is 20% to trigger the update. For snowy and snow-covered days, dusty and hazy days, the width of the sliding window is set to 500 samples, and the proportion of new samples is 10%, which triggers the update.

[0081] On the other hand, this embodiment also provides a medium- and long-term optical power prediction system based on classification error compensation, which includes:

[0082] The collection unit collects historical data related to optical power and performs feature selection on the historical data.

[0083] The training unit builds a basic optical power prediction model and a classification error compensation model, and performs offline model training.

[0084] The prediction unit is deployed online to obtain the corresponding irradiation and weather data and perform medium- and long-term optical power prediction including error compensation.

[0085] The updating unit uses a combination of timing and conditional triggering to update the error compensation model online.

[0086] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0087] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0088] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0089] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0090] Example 2

[0091] The following is an embodiment of the present invention, which provides a medium- and long-term optical power prediction method based on classification error compensation. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0092] First, one year of data was collected from the historical data of photovoltaic power stations as experimental materials. These data include actual power generation, startup capacity, cumulative operation time and detailed meteorological information. In the data processing stage, data mining technology was used for in-depth data cleaning and feature extraction. For the identification of specific weather types, advanced threshold settings and K-means algorithm were used for weather classification to ensure that the data samples of each type of weather are representative.

[0093] For feature processing, this embodiment not only uses traditional meteorological data (such as global radiation on the horizontal plane, ambient temperature, and relative humidity), but also introduces specific supplementary input features for different weather types, such as rainfall on rainy days, snow thickness and ice thickness on snowfall and snowmelt days, and visibility on dusty days. In addition, all features are normalized to eliminate the impact of dimensions, and missing data are processed using the zero-filling method.

[0094] During the model building phase, forecasting models with different structures were used for different weather types. For example, back propagation neural networks (BP neural networks) were used for sunny and cloudy days, while long short-term memory networks (LSTM) were used for snowfall and snowmelt days and dusty days, because the latter is more suitable for processing data with time series characteristics. All models were trained on the TensorFlow platform on the server, and cross-validation technology was used during the training process to optimize model parameters and prevent overfitting.

[0095] The experiment also includes a baseline model (a basic prediction model without error compensation technology) to evaluate the improvement effect of the model in practical applications. The final stage of the experiment is the evaluation of the model, using statistical indicators such as mean square error (MSE) and mean absolute error (MAE) to quantify the accuracy and stability of the prediction. The recorded data are shown in Table 1.

[0096] Table 1 Data comparison table

[0097]

[0098] As can be seen from the table, under various weather conditions, the mean square error (MSE) and mean absolute error (MAE) of the model of the present invention are significantly lower than those of the baseline model. This shows that through the error compensation mechanism and feature processing strategy designed specifically for different weather conditions, the present invention can more accurately predict photovoltaic power generation.

[0099] In the case of sunny and cloudy days, the prediction accuracy of the invented model increased by 40.5% and 36.7% respectively. This is mainly due to the high efficiency of BP neural network in processing nonlinear relationships, which is suitable for processing changes in photovoltaic output under relatively stable weather conditions. The prediction accuracy of rainy days, snowfall and snowmelt days and dusty days has increased significantly, reaching 45.4%, 41.7% and 34.6% respectively. These weather conditions usually cause large prediction errors, but the model of the present invention effectively captures the changing patterns under these complex conditions by introducing specific weather-related features and using LSTM network to process time series data.

[0100] In addition, by comparing the power generation difference ratio, it can be found that the model of the present invention can reduce the difference between the predicted and actual power generation under various weather conditions, further proving the effectiveness of the present invention in practical applications. This optimization not only improves the accuracy of photovoltaic power generation prediction, but also enhances the stability and economy of power grid operation.

[0101] In general, this embodiment, through detailed data analysis and experimental verification, demonstrates the significant improvements and advantages of the present invention over the prior art, especially in improving the accuracy of photovoltaic power generation prediction under complex and changeable meteorological conditions. This not only proves the novelty of the invention, but also demonstrates its creativity and practicality, and can bring substantial technological progress to the field of photovoltaic power generation.

[0102] 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 medium- and long-term optical power prediction method based on classification error compensation, characterized in that: include: Collect historical data related to optical power, and classify and feature process the historical data; Five error compensation models are constructed respectively, and a prediction model for the basic numerical value of optical power prediction is constructed; Online deployment, obtaining corresponding irradiation and weather data, and performing medium- and long-term optical power prediction including error compensation; The error compensation model is updated online by combining timing and conditional triggering.

2. The method for predicting medium- and long-term optical power based on classification error compensation according to claim 1, characterized in that: The historical data related to optical power includes the actual power generation, startup capacity, cumulative operation time of the photovoltaic power generation system during the historical period, and meteorological information during the historical period; According to the demand for compensation of medium- and long-term power forecast values, weather types are divided into sunny days, cloudy days, rainy days, snowfall and snowmelt days, and dusty days; The historical data are classified. On rainy days, the 15-minute cumulative precipitation and integrated cloud water are selected as the judgment parameters. On snowfall and snowmelt days, the snow thickness and ice thickness are selected as the judgment parameters. On dusty days, the visibility and relative humidity are selected as the judgment parameters. Through the threshold analysis of the judgment parameters, the historical data samples of the error compensation model for the three weather types of rainy days, snowfall and snowmelt days, and dusty days are obtained. For sunny and cloudy weather, the K-means algorithm is used, K=2 is set, and historical data samples of error compensation models for sunny and cloudy weather types are obtained through clustering; Among them, K represents the cluster center.

3. The method for predicting medium- and long-term optical power based on classification error compensation according to claim 2, characterized in that: The feature processing includes performing feature processing on five types of historical data samples to obtain feature values ​​X_sample; The specific steps are: Select common characteristic quantities: power-on capacity, cumulative operation time, and total horizontal radiation, ambient temperature, and relative humidity from historical numerical weather forecast (NWP) data; Supplement input features: For snowfall and snowmelt weather, add the total horizontal radiation, ambient temperature, snow thickness, and ice thickness of the previous day as supplementary input features; For dust days, the total horizontal radiation, ambient temperature, relative humidity and visibility of the previous day are added as supplementary input features; For rainy days, 15-minute rainfall is added as a supplementary input feature; No additional input features are added for sunny and cloudy days Fill missing data with 0 and normalize the data; the output of the training sample, Y_sample, is the difference between the actual power generation in the historical data and the predicted power generation; The eigenvalues ​​and output quantities constitute the error compensation model training samples (X_sample, Y_sample).

4. The method for predicting medium- and long-term optical power based on classification error compensation according to claim 3, characterized in that: The five error compensation models are constructed respectively, and a prediction model for the basic value of optical power prediction is constructed, including: For the error compensation model of sunny days and cloudy days, a BP neural network with 5 input units, 7 hidden layer units and relu activation function is constructed respectively; For the error compensation value model for rainy days, a support vector machine model with a radial basis kernel function and a onevsone decision function type is constructed; For the error compensation model of snowfall and snowmelt days, since the scene is a process with a time span, the long short-term memory recurrent neural network algorithm with temporal memory function is selected to construct an LSTM-RNN model with 11 input units and 32 hidden layers; For the error compensation model of dusty days, since the scene is also a process with a time span, the long short-term memory recurrent neural network algorithm with temporal memory function is also selected to build an LSTM-RNN model with 10 input units and 32 hidden layers; The error compensation model training sample data obtained in claim 3 is used to perform model training for the above five models.

5. The method for predicting medium- and long-term optical power based on classification error compensation according to claim 4, characterized in that: The prediction model for constructing the basic value of optical power prediction includes constructing a prediction model for the basic value of optical power prediction based on the OS-ELM algorithm, specifically an extreme learning machine model with 3 input units, 5 hidden layer units, and an activation function of the tanh function. The formula for obtaining the basic prediction value is: AND P =Hβ Among them, E P represents the basic optical power prediction value; H represents the random feature mapping matrix, which is the output of the hidden layer node; β is the output weight.

6. The method for mid- to long-term optical power prediction based on classification error compensation according to claim 5, characterized in that: The online deployment, obtaining corresponding irradiation and weather data, and performing medium- and long-term optical power prediction including error compensation include online deployment and operation of five error compensation models and a prediction model of basic optical power prediction values, and regularly performing medium- and long-term optical power prediction; The prediction process is as follows: the optical power prediction base value P at this time point is calculated. base predictions; Determine the weather type at that time point, select the corresponding error compensation model, and obtain the compensation error value P offsets ; The optical power prediction P at this moment pred The values ​​are expressed as: P pred =P base +P offsets Among them, P base Represents the basic power prediction value, P offsets Indicates the error compensation value.

7. The method for predicting medium- and long-term optical power based on classification error compensation according to claim 6, characterized in that: The online updating of the model includes setting a period value for the two models of sunny day and cloudy day, and using a back propagation algorithm to periodically update the model; For the three weather types of rainy days, snowy and snow-covered days, and dusty days, a quantitative triggered update strategy is adopted, combined with the sliding window method, and the width value of the window unit and the threshold of the number of new samples are set. When the threshold is reached, the model update is triggered; Among them, for the error compensation models of snowfall and snow-covered days, and dust and haze days, the time series back propagation algorithm is used to update the model.

8. A medium- and long-term optical power prediction system based on classification error compensation using the method according to any one of claims 1 to 7, characterized in that: A collection unit collects historical data related to optical power and performs feature selection on the historical data; The training unit builds a basic optical power prediction model and a classification error compensation model, and performs offline model training; The prediction unit is deployed online to obtain the corresponding irradiation and weather data and perform medium- and long-term optical power prediction including error compensation; The updating unit uses a combination of timing and conditional triggering to update the error compensation model online.

9. A computer device comprising: Memory and processor; The memory stores a computer program, characterized in that: when the processor executes the computer program, the processor implements the steps of a medium- and long-term optical power prediction method based on classification error compensation.

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 a medium- and long-term optical power prediction method based on classification error compensation are implemented.

Citation Information

Cited By

  • Distributed photovoltaic power uncertainty quantitative prediction method based on multi-modal fusion and adaptive learning

    CN120726431A

  • Distributed photovoltaic power uncertainty quantification and prediction method based on multi-modal fusion and adaptive learning

    CN120726431B

  • Oil and gas resource reliability quantitative characterization method and system and storage medium

    CN121958915A