A distributed photovoltaic output prediction method and system based on pre- and post-processing mechanism

By adopting a pre- and post-processing mechanism in the distributed photovoltaic output prediction model, the cumulative impact factors are processed independently, which solves the problem that the existing model is difficult to accurately consider the cumulative impact, and improves the accuracy and efficiency of prediction.

CN118536840BActive Publication Date: 2024-09-17XIHUA UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000695.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-17
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing distributed photovoltaic output prediction models are difficult to accurately consider cumulative influencing factors, resulting in inaccurate prediction results and increasing model complexity and training difficulty.

Method used

Using a method based on pre- and post-processing mechanisms, the factors affecting photovoltaic output are divided into direct influencing factors, intermittent accumulation factors and continuous accumulation factors. The intermittent accumulation factors are expressed as model parameters through pre-processing, which are independent of the training data, and are processed through post-processing. Correct prediction results to reduce model complexity and training difficulty.

Benefits of technology

It improves the prediction accuracy, reduces the difficulty of model training and calculation efficiency, and ensures the accuracy and efficiency of the prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536840B
    Figure CN118536840B
Patent Text Reader

Abstract

The present invention discloses a distributed photovoltaic output prediction method and system based on a pre- and post-processing mechanism. The factors affecting photovoltaic output are divided into direct influencing factors, discontinuous cumulative factors, and continuous cumulative factors. Pre-processing and classification training of a neural network model are performed based on the discontinuous cumulative factors. The influence of the discontinuous cumulative factors is not reflected in the training data but in the model parameters. This can reduce the model complexity without affecting the training efficiency. The prediction results are independently corrected by post-processing based on the continuous cumulative factors without affecting the previous model training results. Therefore, the prediction accuracy is improved while the training difficulty is minimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a distributed photovoltaic output prediction method and system based on a pre- and post-processing mechanism. Background Art

[0002] With the popularization of photovoltaic power generation, accurate prediction of photovoltaic output is crucial for the stable operation of the power grid and energy management. However, due to the large differences in the deployment environment of distributed photovoltaics and the numerous and complex influencing factors, predictions are usually made with the help of neural network models. However, existing prediction models are usually trained using environmental factors that directly affect the output, such as temperature, light, humidity, etc., but ignore the cumulative effects, such as the aging of photovoltaic panels and the accumulation of dust. Especially in areas with strong winds and sand, these two factors cannot be ignored. Therefore, even if the location, environment, etc. are completely consistent, the actual output may be different due to the existence of cumulative effects, resulting in inaccurate prediction results. Due to the complexity and special cumulative properties of the cumulative influencing factors themselves, directly training with cumulative influencing factors will greatly increase the difficulty of model training and affect the interpretability of the model, which may lead to results that do not meet expectations. If a higher-order and more complex model is designed for this purpose, the technical difficulty is high and it is not conducive to implementation.

[0003] Therefore, for the output prediction of distributed photovoltaics, how to introduce cumulative effects at appropriate steps in the prediction process to improve the prediction accuracy while minimizing the increase in training difficulty is a technical problem that is currently difficult to solve. Summary of the invention

[0004] In view of the problem in the prior art that it is difficult to use cumulative influences to correct prediction values ​​and thus improve prediction accuracy, the present invention provides a distributed photovoltaic output prediction method and system based on a pre- and post-processing mechanism, which divides the factors affecting photovoltaic output into direct influencing factors, discontinuous cumulative factors, and continuous cumulative factors, and performs pre-processing and classification training of a neural network model based on the discontinuous cumulative factors, so that the influence of the discontinuous cumulative factors is not reflected in the training data but in the model parameters, which can reduce the model complexity without affecting the training efficiency, and then perform independent prediction result correction based on the continuous cumulative factors by post-processing without affecting the previous model training results, thereby solving the problem of improving the prediction accuracy while minimizing the increase in training difficulty.

[0005] The following is the technical solution of the present invention.

[0006] A distributed photovoltaic output prediction method based on pre- and post-processing mechanism includes:

[0007] S1: obtaining several factors affecting photovoltaic output from historical meteorological parameters, dividing the several factors into direct influencing factors, discontinuous cumulative factors, and continuous cumulative factors according to the influencing methods, and determining parameter dimensions based on the direct influencing factors;

[0008] S2: Obtain historical output data; pre-process the direct influencing factors and historical output data: divide and reorganize the direct influencing factors and historical output data according to the discontinuous accumulation factors to obtain several training and verification groups, wherein each training and verification group corresponds to the first cumulative value of a discontinuous accumulation factor;

[0009] S3: constructing a corresponding convolutional neural network model for each training verification group, and setting model parameters according to the first cumulative value and parameter dimension of the corresponding training verification group, and training to obtain prediction models for different first cumulative values;

[0010] S4: determining a target photovoltaic unit and a target time to be predicted, obtaining corresponding meteorological forecast parameters, determining a first cumulative value according to the meteorological forecast parameters, and then selecting a corresponding prediction model, and outputting first predicted output data based on the prediction model calculation;

[0011] S5: Post-processing the first predicted output data, determining a second cumulative value of the continuous accumulation factor according to the target photovoltaic unit and the target time, and calculating the final predicted output data based on the second cumulative value and the first predicted output data.

[0012] The present invention is different from conventional model training and prediction methods. First, the pre-processing mechanism is used to separate the discontinuous accumulation factor and the continuous accumulation factor from the training data, and the discontinuous accumulation factor is expressed in the model parameters, so that the training process is affected by the discontinuous accumulation factor to produce different prediction models, and then the corresponding prediction model is selected according to the actual discontinuous accumulation factor for prediction, and finally the post-processing mechanism is used to correct the first predicted output data to obtain the final predicted output data. The present invention fully considers the impact of different types of factors on the output of distributed photovoltaics, and separates the complex and special cumulative impacts from the training data, and expresses its influence by affecting the model parameters, so it does not increase the difficulty of training, and then corrects through post-processing, which improves the accuracy of prediction without affecting the efficiency of implementation.

[0013] As a preferred method, several factors affecting photovoltaic output in historical meteorological parameters are obtained, which are divided into direct influencing factors, discontinuous cumulative factors, and continuous cumulative factors according to the influencing mode, and the parameter dimensions are determined based on the direct influencing factors, including:

[0014] Obtain several factors affecting photovoltaic processing in historical meteorological parameters;

[0015] Determine the division results based on the relationship between each factor and the time dimension;

[0016] Among them, factors that do not increase over time are classified as direct influencing factors;

[0017] Factors that grow intermittently over time are classified as intermittent cumulative factors;

[0018] Factors that grow continuously over time are classified as continuously cumulative factors;

[0019] The parameter dimensions are determined according to the types of direct influencing factors.

[0020] Preferably, the intermittent accumulation factor includes the number of consecutive sunny days, and the continuous accumulation factor includes the attenuation of photovoltaic module output.

[0021] As a preferred method, historical output data is obtained; direct influencing factors and historical output data are pre-processed: direct influencing factors and historical output data are segmented and reorganized according to discontinuous accumulation factors to obtain a number of training verification groups, wherein each training verification group corresponds to a first cumulative value of a discontinuous accumulation factor;

[0022] Obtain historical output data, and divide the direct influencing factors and the historical output data into time units according to the first cumulative value;

[0023] The direct influencing factors and historical output data corresponding to the time units having the same first cumulative value are grouped into one group to obtain a plurality of training and verification groups.

[0024] Preferably, a corresponding convolutional neural network model is constructed for each training verification group, and model parameters are set according to the first cumulative value and parameter dimension of the corresponding training verification group, and prediction models for different first cumulative values ​​are obtained through training, including:

[0025] For each convolutional neural network model, the size of the convolution kernel is determined according to the first cumulative value of the corresponding training verification group, the depth of the convolution kernel is determined according to the parameter dimension, and the prediction models for different first cumulative values ​​are obtained through training.

[0026] In the present invention, since the size of the convolution kernel affects the field of view of the model, the field of view of the model determines the learning range of various cumulative factors during the model training process, and the first cumulative value of the discontinuous cumulative factor represents the cumulative influence of the discontinuous cumulative factor. Therefore, various cumulative factors are not added to the training data here. Instead, the discontinuous cumulative factor is used to group other parameters for training, and then the model parameters are adjusted to fit the training data. This can not only eliminate the influence of the cumulative factor on the learning efficiency, but also take the cumulative factor into account during the training process, so as to obtain several specially adjusted prediction models.

[0027] Preferably, the step size of the convolution kernel is determined according to the first cumulative value. After the step size is determined, the learning content can be limited to a certain extent, and the influence of discontinuous accumulation factors can be better matched during the learning and training process.

[0028] Preferably, determining a target photovoltaic unit and a target time to be predicted, obtaining a meteorological forecast parameter corresponding to the target time, determining a first cumulative value according to the meteorological forecast parameter, and then selecting a corresponding prediction model, and outputting first predicted output data based on the prediction model, including:

[0029] Determining a first cumulative value of a target photovoltaic unit at a target time according to a meteorological forecast parameter;

[0030] Selecting a corresponding prediction model according to the first cumulative value;

[0031] The relevant numerical values ​​of the direct influencing factors in the meteorological forecast parameters are input into the corresponding prediction model, and the first prediction output data is calculated and output.

[0032] Preferably, the first predicted output data is post-processed, a second cumulative value of the continuous cumulative factor is determined according to the target photovoltaic unit and the target time, and the final predicted output data is calculated based on the second cumulative value and the first predicted output data, including:

[0033] Determine a cumulative rate of the continuous cumulative factor according to the target photovoltaic unit, and calculate a second cumulative value according to the target time and the cumulative rate;

[0034] The final predicted output data is calculated based on the second accumulated value and the first predicted output data.

[0035] In the present invention, the post-processing mechanism can use the second cumulative value to correct the prediction result, which neither increases the difficulty of model training nor affects the training efficiency. In addition, the change of the continuous accumulation factor does not require retraining the model, so the use efficiency is still maintained while ensuring the accuracy.

[0036] The present invention also provides a distributed photovoltaic output prediction system based on a pre- and post-processing mechanism, which is used to execute the above-mentioned distributed photovoltaic output prediction method based on a pre- and post-processing mechanism. The distributed photovoltaic output prediction system includes:

[0037] Data acquisition module: obtains several factors that affect photovoltaic output from historical meteorological parameters, divides several factors into direct influencing factors, intermittent cumulative factors, and continuous cumulative factors according to the way of influencing, and determines the parameter dimension based on the direct influencing factors;

[0038] Pre-processing module: obtain historical output data, divide and reorganize the direct influencing factors and historical output data according to the discontinuous accumulation factors, and obtain several training and verification groups, where each training and verification group corresponds to the first cumulative value of a discontinuous accumulation factor;

[0039] Training module: construct a corresponding convolutional neural network model for each training verification group, and set model parameters according to the first cumulative value and parameter dimension of the corresponding training verification group, and train to obtain prediction models for different first cumulative values;

[0040] Wherein, for each convolutional neural network model, the size of the convolution kernel is determined according to the first cumulative value of the corresponding training verification group, the depth of the convolution kernel is determined according to the parameter dimension, and the prediction models for different first cumulative values ​​are obtained through training;

[0041] Prediction module: determine the target photovoltaic unit and target time to be predicted, obtain the meteorological forecast parameters corresponding to the target time, determine the first cumulative value according to the meteorological forecast parameters, and then select the corresponding prediction model, and calculate and output the first predicted output data based on the prediction model;

[0042] Post-processing module: post-processes the first predicted output data, determines the second cumulative value of the continuous cumulative factor according to the target photovoltaic unit and the target time, and calculates the final predicted output data based on the second cumulative value and the first predicted output data.

[0043] The present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the steps of the above-mentioned distributed photovoltaic output prediction method based on the pre- and post-processing mechanism are implemented.

[0044] The present invention also provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the above-mentioned distributed photovoltaic output prediction method based on the pre- and post-processing mechanism are implemented.

[0045] The substantial effects of the present invention include:

[0046] The present invention is different from conventional model training and prediction methods. First, the pre-processing mechanism is used to separate the discontinuous accumulation factor and the continuous accumulation factor from the training data, and the discontinuous accumulation factor is expressed in the model parameters, so that the training process is affected by the discontinuous accumulation factor to produce different prediction models, and then the corresponding prediction model is selected according to the actual discontinuous accumulation factor for prediction, and finally the post-processing mechanism is used to correct the first predicted output data to obtain the final predicted output data. The present invention fully considers the impact of different types of factors on the output of distributed photovoltaics, and separates the complex and special cumulative impacts from the training data, and expresses its influence by affecting the model parameters, so it does not increase the difficulty of training, and then corrects through post-processing, which improves the accuracy of prediction without affecting the efficiency of implementation.

[0047] Among them, since the size of the convolution kernel affects the field of view of the model, the field of view of the model determines the learning scope of various cumulative factors during the model training process, and the first cumulative value of the discontinuous cumulative factor represents the cumulative influence of the discontinuous cumulative factor. Therefore, various cumulative factors are not added to the training data here. Instead, the discontinuous cumulative factors are used to group other parameters for training, and then the model parameters are adjusted to fit the training data. This can not only eliminate the influence of the cumulative factors on the learning efficiency, but also take the cumulative factors into account during the training process, so as to obtain several specially adjusted prediction models.

[0048] In addition, the post-processing mechanism can use the second cumulative value to correct the prediction result, which neither increases the difficulty of model training nor affects the training efficiency. Moreover, the change of continuous accumulation factors does not require retraining the model, so the efficiency is maintained while ensuring the accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution will be clearly and completely described below in combination with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0052] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0053] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0054] The technical solution of the present invention is described in detail with specific embodiments below. The embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0055] Embodiment 1:

[0056] A distributed photovoltaic output prediction method based on pre- and post-processing mechanism, such as Figure 1 As shown, steps S1-S5 are included, specifically including:

[0057] S1: Obtain several factors that affect photovoltaic output in historical meteorological parameters, divide the several factors into direct influencing factors, discontinuous cumulative factors, and continuous cumulative factors according to the way of influencing, and determine parameter dimensions based on direct influencing factors.

[0058] The S1 includes:

[0059] Obtain several factors affecting photovoltaic processing in historical meteorological parameters;

[0060] Determine the division results based on the relationship between each factor and the time dimension;

[0061] Among them, factors that do not increase over time are classified as direct influencing factors;

[0062] Factors that grow intermittently over time are classified as intermittent cumulative factors;

[0063] Factors that grow continuously over time are classified as continuously cumulative factors;

[0064] The parameter dimensions are determined according to the types of direct influencing factors.

[0065] In this embodiment, direct influencing factors include irradiance, temperature, humidity, etc., intermittent cumulative factors include the number of consecutive sunny days, and some areas can consider continuous sandstorms, continuous haze, etc. as intermittent cumulative factors. Continuous cumulative factors are photovoltaic module output attenuation, mainly including material aging, inverter loss, etc., for the convenience of calculation, no further subdivision is made here. Taking irradiance, temperature, and humidity as examples, the parameter dimension is determined to be three-dimensional according to the type of direct influencing factors.

[0066] S2: Obtain historical output data; pre-process the direct influencing factors and historical output data: divide and reorganize the direct influencing factors and historical output data according to the discontinuous accumulation factors to obtain several training verification groups, each of which corresponds to the first cumulative value of a discontinuous accumulation factor.

[0067] The S2 includes:

[0068] Obtain historical output data, and divide the direct influencing factors and the historical output data into time units according to the first cumulative value;

[0069] The direct influencing factors and historical output data corresponding to the time units having the same first cumulative value are grouped into one group to obtain a plurality of training and verification groups.

[0070] In this embodiment, the number of consecutive sunny days is used as the discontinuous accumulation factor, and the weather can be judged from the historical meteorological parameters. For example, if it is sunny for 0 consecutive days (such as rainy and snowy days), the first cumulative value is 0; if it is sunny for 1 consecutive day (the first day of clear weather), the first cumulative value is 1; if it is sunny for 2 consecutive days (the first and second days of clear weather), the first cumulative value is 2. The same is true for other numbers, which are not listed here.

[0071] Based on the first cumulative value, the historical meteorological parameters can be divided into time units (such as one day). For example, if January 1, January 3, and January 6 are all rainy days, then January 1, January 3, and January 6 are divided into a training verification group with a first cumulative value of 0, and the data of their direct influencing factors are recorded in this group. January 2 is sunny and it rains before and after, which means that the first cumulative value is 1, and it is divided into a training verification group with a first cumulative value of 1. January 4 and January 5 are two consecutive sunny days, and are divided into a training verification group with a first cumulative value of 2, and so on. Of course, in order to simplify the calculation, the first cumulative values ​​of 0 and 1 can be grouped together, that is, integrated into the training verification group with a first cumulative value of 1.

[0072] S3: Construct a corresponding convolutional neural network model for each training verification group, set model parameters according to the first cumulative value and parameter dimension of the corresponding training verification group, and train to obtain prediction models for different first cumulative values.

[0073] The S3 includes:

[0074] For each convolutional neural network model, the size of the convolution kernel is determined according to the first cumulative value of the corresponding training verification group, the depth of the convolution kernel is determined according to the parameter dimension, and the prediction models for different first cumulative values ​​are obtained through training.

[0075] In this embodiment, a separate convolutional neural network model is customized for each training verification group. For example, if one of the convolutional neural network models is trained for a training verification group with a first cumulative value of 2, the size of the convolution kernel is 2*1. If necessary, the step size of the convolution kernel can also be set to be equal to the first cumulative value, for example, the step size is 2. After determining the step size, the learning content can be limited to a certain extent, and the influence of discontinuous accumulation factors can be better matched during the learning and training process. If the parameter dimension is three-dimensional, the depth of the convolution kernel is determined to be 3. In addition, other parameters such as pooling layer, fully connected layer, learning rate, etc. are not restricted, and are selected based on the actual performance in the optimization process.

[0076] In this embodiment, since the size of the convolution kernel affects the field of view of the model, the field of view of the model determines the learning range of various cumulative factors during the model training process, and the first cumulative value of the discontinuous cumulative factor represents the cumulative influence of the discontinuous cumulative factor, various cumulative factors are not added to the training data here, but the discontinuous cumulative factor is used to group other parameters for training, and then the model parameters are adjusted to match the training data, which can eliminate the influence of the cumulative factor on the learning efficiency and take the cumulative factor into account during the training process, so as to obtain several specially adjusted prediction models. After determining the step size, the learning content can be limited to a certain extent, and the influence of the discontinuous cumulative factor can be matched during the learning and training process.

[0077] S4: Determine the target photovoltaic unit and target time to be predicted, obtain the meteorological forecast parameters corresponding to the target time, determine the first cumulative value according to the meteorological forecast parameters, and then select the corresponding prediction model, and calculate and output the first predicted output data based on the prediction model.

[0078] The S4 includes:

[0079] Determining a first cumulative value of a target photovoltaic unit at a target time according to a meteorological forecast parameter;

[0080] Selecting a corresponding prediction model according to the first cumulative value;

[0081] The relevant numerical values ​​of the direct influencing factors in the meteorological forecast parameters are input into the corresponding prediction model, and the first prediction output data is calculated and output.

[0082] For example, the target time to be predicted is March 3, and according to the weather forecast parameters, March 3 is the second consecutive sunny day, and the first cumulative value is 2, so the prediction model with the first cumulative value of 2 is selected.

[0083] S5: Post-processing the first predicted output data, determining a second cumulative value of the continuous accumulation factor according to the target photovoltaic unit and the target time, and calculating the final predicted output data based on the second cumulative value and the first predicted output data.

[0084] The S5 includes:

[0085] Determine a cumulative rate of the continuous cumulative factor according to the target photovoltaic unit, and calculate a second cumulative value according to the target time and the cumulative rate;

[0086] The final predicted output data is calculated based on the second accumulated value and the first predicted output data.

[0087] For example, based on the information obtained, the material aging and inverter loss of the target photovoltaic unit are used to calculate a decay rate, and then the corresponding working time is calculated based on the target time and construction time. The photovoltaic module output decay value of the target photovoltaic unit can be calculated by combining the decay rate and the working time, which is the second cumulative value of the continuous accumulation factor. The final predicted output data can be obtained by multiplying the second cumulative value and the first predicted output data.

[0088] In this embodiment, the post-processing mechanism can use the second cumulative value to correct the prediction result, which neither increases the difficulty of model training nor affects the training efficiency. In addition, the change of continuous accumulation factors does not require retraining the model, so the efficiency of use is still maintained while ensuring accuracy.

[0089] This embodiment is different from the conventional model training and prediction method. First, the discontinuous accumulation factor and the continuous accumulation factor are separated from the training data by the pre-processing mechanism, and the discontinuous accumulation factor is expressed in the model parameters, so that the training process is affected by the discontinuous accumulation factor to produce different prediction models, and then the corresponding prediction model is selected for prediction according to the actual discontinuous accumulation factor. Finally, the first predicted output data is corrected by the post-processing mechanism to obtain the final predicted output data. The present invention fully considers the impact of different types of factors on the output of distributed photovoltaics, and separates the complex and special cumulative impacts from the training data, and expresses its influence by affecting the model parameters, so it does not increase the difficulty of training, and then corrects through post-processing, which improves the accuracy of prediction without affecting the efficiency of implementation.

[0090] Embodiment 2:

[0091] This embodiment further provides a distributed photovoltaic output prediction system based on a pre- and post-processing mechanism, which is used to execute the above-mentioned distributed photovoltaic output prediction method based on a pre- and post-processing mechanism. The distributed photovoltaic output prediction system includes:

[0092] Data acquisition module: obtains several factors that affect photovoltaic output from historical meteorological parameters, divides several factors into direct influencing factors, intermittent cumulative factors, and continuous cumulative factors according to the way of influencing, and determines the parameter dimension based on the direct influencing factors;

[0093] Pre-processing module: obtain historical output data, divide and reorganize the direct influencing factors and historical output data according to the discontinuous accumulation factors, and obtain several training and verification groups, where each training and verification group corresponds to the first cumulative value of a discontinuous accumulation factor;

[0094] Training module: construct a corresponding convolutional neural network model for each training verification group, and set model parameters according to the first cumulative value and parameter dimension of the corresponding training verification group, and train to obtain prediction models for different first cumulative values;

[0095] Wherein, for each convolutional neural network model, the size of the convolution kernel is determined according to the first cumulative value of the corresponding training verification group, the depth of the convolution kernel is determined according to the parameter dimension, and the prediction models for different first cumulative values ​​are obtained through training;

[0096] Prediction module: determine the target photovoltaic unit and target time to be predicted, obtain the meteorological forecast parameters corresponding to the target time, determine the first cumulative value according to the meteorological forecast parameters, and then select the corresponding prediction model, and calculate and output the first predicted output data based on the prediction model;

[0097] Post-processing module: post-processes the first predicted output data, determines the second cumulative value of the continuous cumulative factor according to the target photovoltaic unit and the target time, and calculates the final predicted output data based on the second cumulative value and the first predicted output data.

[0098] Embodiment three:

[0099] This embodiment also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the steps of the above-mentioned distributed photovoltaic output prediction method based on the pre- and post-processing mechanism are implemented.

[0100] Embodiment 4:

[0101] This embodiment further provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the above-mentioned distributed photovoltaic output prediction method based on the pre- and post-processing mechanism are implemented.

[0102] In summary, the substantial effects of this embodiment include:

[0103] This embodiment is different from the conventional model training and prediction method. First, the discontinuous accumulation factor and the continuous accumulation factor are separated from the training data by the pre-processing mechanism, and the discontinuous accumulation factor is expressed in the model parameters, so that the training process is affected by the discontinuous accumulation factor and different prediction models are generated. Then, the corresponding prediction model is selected for prediction according to the actual discontinuous accumulation factor. Finally, the first predicted output data is corrected by the post-processing mechanism to obtain the final predicted output data. This embodiment fully considers the impact of different types of factors on the distributed photovoltaic output, and separates the complex and special cumulative impacts from the training data, and expresses its influence by affecting the model parameters, so it does not increase the difficulty of training, and then corrects it through post-processing, which improves the prediction accuracy without affecting the implementation efficiency.

[0104] Among them, since the size of the convolution kernel affects the field of view of the model, the field of view of the model determines the learning scope of various cumulative factors during the model training process, and the first cumulative value of the discontinuous cumulative factor represents the cumulative influence of the discontinuous cumulative factor. Therefore, various cumulative factors are not added to the training data here. Instead, the discontinuous cumulative factors are used to group other parameters for training, and then the model parameters are adjusted to fit the training data. This can not only eliminate the influence of the cumulative factors on the learning efficiency, but also take the cumulative factors into account during the training process, so as to obtain several specially adjusted prediction models.

[0105] In addition, the post-processing mechanism can use the second cumulative value to correct the prediction result, which neither increases the difficulty of model training nor affects the training efficiency. Moreover, the change of continuous accumulation factors does not require retraining the model, so the efficiency is maintained while ensuring the accuracy.

[0106] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the specific device can be divided into different functional modules to complete all or part of the functions described above.

[0107] In the embodiments provided in the present application, it should be understood that the disclosed structures and methods can be implemented in other ways. For example, the embodiments of the structure described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another structure, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, structures or units, which can be electrical, mechanical or other forms.

[0108] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0109] In addition, each functional unit in the embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0110] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0111] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A distributed photovoltaic output prediction method based on pre- and post-processing mechanism, characterized in that: include: S1: obtaining several factors affecting photovoltaic output from historical meteorological parameters, dividing the several factors into direct influencing factors, discontinuous cumulative factors, and continuous cumulative factors according to the influencing methods, and determining parameter dimensions based on the direct influencing factors; S2: Obtain historical output data, pre-process the direct influencing factors and historical output data; divide and reorganize the direct influencing factors and historical output data according to the discontinuous accumulation factors to obtain several training and verification groups, wherein each training and verification group corresponds to the first cumulative value of a discontinuous accumulation factor; S3: constructing a corresponding convolutional neural network model for each training verification group, and setting model parameters according to the first cumulative value and parameter dimension of the corresponding training verification group, and training to obtain prediction models for different first cumulative values; S4: determining a target photovoltaic unit and a target time to be predicted, obtaining a meteorological forecast parameter corresponding to the target time, determining a first cumulative value according to the meteorological forecast parameter, and then selecting a corresponding prediction model, and outputting first predicted output data based on the prediction model calculation; S5: post-processing the first predicted output data, determining a second cumulative value of the continuous cumulative factor according to the target photovoltaic unit and the target time, and calculating the final predicted output data based on the second cumulative value and the first predicted output data; The method comprises: obtaining several factors affecting photovoltaic power output from historical meteorological parameters, dividing them into direct influencing factors, discontinuous cumulative factors, and continuous cumulative factors according to the influencing mode, and determining parameter dimensions based on direct influencing factors, including: obtaining several factors affecting photovoltaic processing from historical meteorological parameters; determining the division result according to the relationship between each factor and the time dimension; wherein factors that do not grow with time are divided into direct influencing factors; factors that grow discontinuously with time are divided into discontinuous cumulative factors; factors that grow continuously with time are divided into continuous cumulative factors; and determining parameter dimensions according to the types of direct influencing factors; The method constructs a corresponding convolutional neural network model for each training verification group, sets model parameters according to the first cumulative value and parameter dimension of the corresponding training verification group, and obtains prediction models for different first cumulative values ​​through training, including: for each convolutional neural network model, determines the size of the convolution kernel according to the first cumulative value of the corresponding training verification group, determines the depth of the convolution kernel according to the parameter dimension, and obtains prediction models for different first cumulative values ​​through training; The step size of the convolution kernel is determined according to the first accumulated value.

2. A distributed photovoltaic output prediction method based on pre- and post-processing mechanism according to claim 1, characterized in that: The intermittent accumulation factor includes the number of consecutive sunny days, and the continuous accumulation factor includes the attenuation of photovoltaic module output.

3. A distributed photovoltaic output prediction method based on pre- and post-processing mechanism according to claim 1, characterized in that: The historical output data is obtained, and the direct influencing factors and the historical output data are pre-processed; the direct influencing factors and the historical output data are segmented and reorganized according to the discontinuous accumulation factors to obtain a plurality of training verification groups, wherein each training verification group corresponds to a first cumulative value of a discontinuous accumulation factor, including: Obtain historical output data, and divide the direct influencing factors and the historical output data into time units according to the first cumulative value; The direct influencing factors and historical output data corresponding to the time units having the same first cumulative value are grouped into one group to obtain a plurality of training and verification groups.

4. A distributed photovoltaic output prediction method based on pre- and post-processing mechanism according to claim 1, characterized in that: The step of determining a target photovoltaic unit and a target time to be predicted, obtaining a meteorological forecast parameter corresponding to the target time, determining a first cumulative value according to the meteorological forecast parameter, and then selecting a corresponding prediction model, and outputting first predicted output data based on the prediction model calculation includes: Determining a first cumulative value of a target photovoltaic unit at a target time according to a meteorological forecast parameter; Selecting a corresponding prediction model according to the first cumulative value; The relevant numerical values ​​of the direct influencing factors in the meteorological forecast parameters are input into the corresponding prediction model, and the first prediction output data is calculated and output.

5. The distributed photovoltaic output prediction method based on pre- and post-processing mechanism according to claim 1 is characterized in that: The post-processing of the first predicted output data, determining a second cumulative value of the continuous cumulative factor according to the target photovoltaic unit and the target time, and calculating the final predicted output data based on the second cumulative value and the first predicted output data, includes: Determine a cumulative rate of the continuous cumulative factor according to the target photovoltaic unit, and calculate a second cumulative value according to the target time and the cumulative rate; The final predicted output data is calculated based on the second accumulated value and the first predicted output data.

6. A distributed photovoltaic output prediction system based on a pre- and post-processing mechanism, used to execute a distributed photovoltaic output prediction method based on a pre- and post-processing mechanism according to any one of claims 1 to 5, characterized in that: The distributed photovoltaic output prediction system comprises: Data acquisition module: obtains several factors affecting photovoltaic output from historical meteorological parameters, divides the several factors into direct influencing factors, discontinuous cumulative factors, and continuous cumulative factors according to the influencing methods, and determines parameter dimensions based on direct influencing factors; Pre-processing module: obtain historical output data, pre-process direct influencing factors and historical output data; divide and reorganize direct influencing factors and historical output data according to discontinuous accumulation factors to obtain several training and verification groups, where each training and verification group corresponds to the first cumulative value of a discontinuous accumulation factor; Training module: construct a corresponding convolutional neural network model for each training verification group, and set model parameters according to the first cumulative value and parameter dimension of the corresponding training verification group, and train to obtain prediction models for different first cumulative values; Prediction module: determine the target photovoltaic unit and target time to be predicted, obtain the meteorological forecast parameters corresponding to the target time, determine the first cumulative value according to the meteorological forecast parameters, and then select the corresponding prediction model, and calculate and output the first predicted output data based on the prediction model; Post-processing module: post-processes the first predicted output data, determines the second cumulative value of the continuous cumulative factor according to the target photovoltaic unit and the target time, and calculates the final predicted output data based on the second cumulative value and the first predicted output data.

7. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, it implements the steps of a distributed photovoltaic output prediction method based on a pre- and post-processing mechanism as described in any one of claims 1 to 5.