A distributed photovoltaic power data repair method, device, equipment and storage medium
By adopting a data repair method based on joint probability distribution in distributed photovoltaic systems, combined with KL divergence and KS test, and using two-way long short-term memory neural network and Copula function, the problem of low photovoltaic power data repair accuracy in distributed photovoltaic systems is solved. issues, achieving greater repair accuracy and reliability.
Patent Information
- Application Number
- CN202410827260.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Existing photovoltaic power data repair methods are not effective in distributed photovoltaic systems, mainly due to data volatility and lack of meteorological data, resulting in limited repair accuracy.
The joint probability distribution based on the predicted value and the actual true value of the perfect period is used for data repair. KL divergence and KS test are used to evaluate the difference in probability distribution between the repaired value and the actual value of the perfect period. The repair is optimized through the two-way long short-term memory neural network and Copula function. process.
The accuracy and reliability of distributed photovoltaic power data repair are improved, the power value of the defective period can be more accurately estimated, and the accuracy of the repair process can be quantified.
Smart Images

Figure CN118378025B
Abstract
Description
Technical Field
[0001] The present application relates to the field of distributed photovoltaic power data repair, and in particular to a distributed photovoltaic power data repair method, device, equipment and storage medium. Background Art
[0002] Photovoltaic power historical data is the basis of data-driven photovoltaic power forecasting, and data quality and scale directly affect the prediction accuracy of the model. However, due to communication failures, equipment abnormalities, artificial power restrictions and other reasons, the quality of power data collected by photovoltaic power stations may be poor, and the direct use of these data may have an adverse effect on the training of the model and the accuracy of power forecasting. Therefore, it is crucial to repair abnormal data with a high proportion of photovoltaic power. Existing photovoltaic power data repair methods are mainly focused on centralized photovoltaic sites, mainly including interpolation, mapping, and spatiotemporal mining. Interpolation methods usually assume that the data is smooth and interpolate based on linear or polynomial relationships between known data points. Due to the small capacity, scattered installation, large number of distributed photovoltaic sites, and the influence of factors such as cloud movement, their output data usually has stronger volatility and irregularity. Simple interpolation methods may not accurately capture the volatility characteristics of the data, so interpolation methods are not effective in repairing distributed photovoltaic power data. The mapping method repairs data by establishing a mapping relationship between influencing factors and photovoltaic output. However, most distributed photovoltaic systems lack special meteorological monitoring devices and cannot obtain measured meteorological data, or even numerical weather forecast data. In addition, distributed photovoltaic power data will be affected by multiple factors. If these correlations cannot be accurately captured, the mapping method cannot provide accurate repair results. The spatiotemporal mining method uses the power curve clusters of similar days and similar stations in time and space of the target station to achieve spatiotemporal data repair. It usually relies on meteorological data to model and analyze spatiotemporal similarity. This method has good results in centralized photovoltaic data repair, but for distributed photovoltaics, it may be difficult to obtain accurate meteorological data. In addition, the existing spatiotemporal similarity sample selection method is difficult to adapt to the strong volatility of distributed photovoltaics, and the scale of highly correlated spatiotemporal similarity samples is small. Therefore, the distributed photovoltaic power repair accuracy based on the spatiotemporal mining method is limited.
[0003] In summary, there are differences between distributed photovoltaic systems and centralized photovoltaic systems in terms of power data repair. Therefore, it is necessary to further explore repair methods that adapt to the characteristics of distributed photovoltaic systems in order to achieve accurate power data repair. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a distributed photovoltaic power data repair method, device, equipment and storage medium, which perform data repair based on the joint probability distribution of the predicted value and the actual true value of the intact period, fully consider the dependency between the predicted value and the actual value, and more accurately estimate the power value that meets the specified confidence level in the defective period, and then evaluate the degree of difference between the probability distribution of the repaired value and the actual true value of the intact period by using KL divergence and KS test, thereby quantifying the accuracy of power data repair, and at the same time can help identify the specific location of the probability distribution difference between the repaired value and the true value, further optimize the repair process, and improve the accuracy and reliability of the repaired value.
[0005] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions:
[0006] In a first aspect, the present invention provides a distributed photovoltaic power data repair method, comprising:
[0007] Obtain the target distributed photovoltaic power station power time series data;
[0008] If the target distributed photovoltaic power station power time series data has a power missing period, the power missing period is preliminarily repaired based on a linear interpolation method;
[0009] The power time series data of the target distributed photovoltaic station after preliminary repair is input into the pre-built power repair model to obtain the power repair value of the power time series data of the target distributed photovoltaic station.
[0010] The method for constructing the power restoration model includes:
[0011] S10, obtaining complete target distributed photovoltaic power station time series data, dividing it into a training set and a validation set, setting different lengths of power missing periods for the validation set and performing preliminary repair using a linear interpolation method to obtain a preliminary repaired data set; wherein the preliminary repaired data set includes the training set and the preliminary repaired validation set;
[0012] S20, using the preliminarily repaired data set to train and verify the bidirectional long short-term memory neural network model, to obtain the power prediction results of the verification set for the entire period; wherein the power prediction results of the verification set for the entire period include the power prediction results of the verification set without defects and the power prediction values of the defective period;
[0013] S30, using the Copula function to establish a joint probability distribution function of the power prediction value of the verification set during the intact period and the corresponding actual value, and based on the power prediction value of the verification set during the defective period, calculate the power repair value of the verification set during the defective period;
[0014] S40, calculating the KL divergence and KS statistics based on the power repair value in the defective period and the actual power value in the intact period;
[0015] S50, repeating steps S20-S40 until a set number of iterations is reached, or the KL divergence and KS statistics meet a set threshold.
[0016] Furthermore, the step S10 includes:
[0017] S101, obtaining a large amount of complete target distributed photovoltaic power time series data, dividing it into a training set and a validation set, and manually setting power loss periods of different lengths for the validation set;
[0018] S102, using a linear interpolation method to repair the set missing time period, and obtaining a preliminary repaired data set for subsequent training and verification.
[0019] Furthermore, the step S20 includes:
[0020] S201, converting the repaired data set data into an input sequence suitable for the BiLSTM model, defining the length of the input sequence by means of a sliding window, and training the BiLSTM model with the training set;
[0021] S202: Pass the input of the preliminary repaired verification set to the prediction model to obtain the power prediction result of the verification set for the entire period.
[0022] Furthermore, the step S30 includes:
[0023] S301: The predicted value and the corresponding actual value of the missing time period in the validation set are regarded as two random variables, and the predicted value is estimated using the Gaussian kernel density estimation method. and actual value The probability density function of and , expressed as:
[0024] ;
[0025] ;
[0026] in, Represents the data sequence, The value of Represents the data sequence, p The value of f ( x ) represents the probability density function, K represents the kernel function, X i Indicates iSample data, x represents the independent variable of the probability density function, K(x) is the kernel function, M is the sample size, X is the sample data, h is bandwidth;
[0027] S302: For the obtained probability density functions of the perfect time period prediction value and the actual value, the cumulative probability distribution function of the perfect time period prediction value and the actual value is calculated by integrating the obtained probability density functions of the perfect time period prediction value and the actual value. and , expressed as:
[0028] ;
[0029] ;
[0030] in, for The value in p t for The value in , Pr represents a recursive function;
[0031] Based on the Copula function, the dependency relationship between the predicted value and the actual value is established, and the joint probability distribution function of the predicted value and the actual value is constructed. , expressed as:
[0032] ;
[0033] in, To establish the dependency relationship between the predicted value and the actual value based on the Copula function;
[0034] S303, perform an inverse operation on the obtained joint probability distribution function to obtain the conditional probability distribution function of the actual value, which is expressed as:
[0035] ;
[0036] S304, setting the reliability , the asymmetry coefficient is k, let ,in is the confidence interval probability, and the quantile probability of the upper and lower boundaries of the confidence interval is , , which means the probability that the data point is above the upper boundary is , the probability of being below the lower boundary is , expressed as:
[0037] ;
[0038] ;
[0039] S305, based on the obtained upper and lower boundary quantile probabilities and the corresponding , using the conditional probability distribution function of the actual value to calculate , The corresponding quantile , , expressed as:
[0040] ;
[0041] ;
[0042] ;
[0043] in, is the conditional probability distribution function;
[0044] Based on the obtained upper and lower boundary quantiles , , using the cumulative probability distribution function of the actual value Inverse to get the upper and lower boundary values, add them up and take the average value to get the repair value corresponding to the defect period , expressed as:
[0045] ;
[0046] ;
[0047] .
[0048] Furthermore, the step S40 includes:
[0049] S401, according to the probability density function of the repair value The probability density function of the true value of the complete period , calculate the KL divergence between two functions, expressed as:
[0050] ;
[0051] in, T Represents the total number of iterations, t Represents the iteration round;
[0052] S402: Based on the cumulative probability distribution function of the repair value Cumulative probability distribution function of the true value of the complete period , calculate the KS statistic between two functions, expressed as:
[0053] .
[0054] Furthermore, the step S50 includes:
[0055] S501 . Set a threshold to determine the degree of acceptance of the probability distribution difference, or determine the number of iterations required, that is, the maximum number of iterations.
[0056] S502. Compare the calculated KL divergence and KS statistic with the set threshold. If the threshold requirement is met, terminate the repair; otherwise, repeat steps S20 to S40, and predict and repair the repaired data again until the accuracy meets the threshold or reaches the set number of iterations.
[0057] In a second aspect, the present invention provides a distributed photovoltaic power data repair device, comprising:
[0058] A data acquisition module is used to acquire the power time series data of the target distributed photovoltaic station;
[0059] A data processing module is used to determine whether there is a missing period in the data acquired by the data acquisition module. If so, the power missing period is preliminarily repaired based on a linear interpolation method;
[0060] The power repair module obtains the power repair value of the target distributed photovoltaic station power time series data according to the target distributed photovoltaic station power time series data after preliminary repair.
[0061] The power repair module is specifically used for:
[0062] The target distributed photovoltaic power station power time series data after preliminary repair is input into the bidirectional long short-term memory neural network model to obtain the power prediction value of the target distributed photovoltaic power station power time series data;
[0063] The Copula function is used to establish a joint probability distribution function of the power prediction value and the corresponding actual value, and the power repair value is calculated based on the obtained power prediction value.
[0064] In a third aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method described in the first aspect.
[0065] In a fourth aspect, the present invention provides a computing device, comprising:
[0066] One or more processors, one or more memories, and one or more programs, wherein the one or more programs are stored in the one or more memories and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the methods described in the first aspect.
[0067] Compared with the prior art, the present invention has the following beneficial effects:
[0068] (1) The distributed photovoltaic power data repair method of the present invention performs data repair based on the joint probability distribution of the predicted value and the actual true value during the intact period, fully considering the dependency between the predicted value and the actual value, and more accurately estimating the power value that meets the specified confidence level during the defective period; the Copula function provides a flexible method to describe the correlation between the predicted value and the actual value, and more accurately fits the joint probability distribution of the two.
[0069] (2) The distributed photovoltaic power data repair method of the present invention uses KL divergence and KS test to evaluate the degree of difference between the probability distribution of the repaired value and the actual true value during the intact period, thereby quantifying the accuracy of power data repair. At the same time, it can help identify the specific location of the probability distribution difference between the repaired value and the true value, further optimize the repair process, and improve the accuracy and reliability of the repaired value. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 It is a schematic diagram of a process of an embodiment of a distributed photovoltaic power data repair method of the present invention;
[0071] Figure 2 It is a schematic structural diagram of an embodiment of a distributed photovoltaic power data repair device of the present invention;
[0072] Figure 3 Shown is a schematic flow chart of the method for constructing a power repair model of the present invention. DETAILED DESCRIPTION
[0073] The technical concept of the present invention is: data repair is performed based on the joint probability distribution of the predicted value and the actual true value of the intact period, which fully considers the dependency between the predicted value and the actual value, and more accurately estimates the power value of the defective period that meets the specified confidence level. Then, the KL divergence and KS test are used to evaluate the degree of difference between the probability distribution of the repaired value and the actual true value of the intact period, thereby quantifying the accuracy of power data repair, and at the same time, it can help identify the specific location of the probability distribution difference between the repaired value and the true value, further optimize the repair process, and improve the accuracy and reliability of the repaired value.
[0074] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present application and its application or use.
[0075] Example 1
[0076] This embodiment provides a distributed photovoltaic power data repair method, such as Figure 1 As shown, including:
[0077] Obtain the target distributed photovoltaic power station power time series data;
[0078] If the target distributed photovoltaic power station power time series data has a power missing period, the power missing period is preliminarily repaired based on a linear interpolation method;
[0079] Input the target distributed photovoltaic power station power time series data after preliminary repair into the pre-built power repair model to obtain the power repair value of the target distributed photovoltaic power station power time series data
[0080] The power repair model is constructed as follows: Figure 3 As shown, including:
[0081] S10, obtaining the target distributed photovoltaic power station power time series data, setting different lengths of power loss periods, and using the linear interpolation method to repair it to obtain a preliminary repaired data set; specifically including:
[0082] S101, obtaining a large amount of complete target distributed photovoltaic power time series data, dividing it into a training set and a validation set, and manually setting power loss periods of different lengths for the validation set;
[0083] S102, using a linear interpolation method to repair the set missing time period, and obtaining a preliminary repaired data set for subsequent training and verification.
[0084] S20, perform power prediction based on a bidirectional long short-term memory neural network to obtain the power prediction results of the verification set for the entire period; specifically including:
[0085] S201. Convert the repaired data set into an input sequence suitable for the BiLSTM model, define the length of the input sequence using a sliding window, and train the BiLSTM model using a training set; during the training process, use a loss function and an optimization algorithm to optimize the weights and biases of the model. There are two LSTM layers in the BiLSTM structure, one processes the sequence from front to back, and the other processes the sequence from back to front. The input of each time step will be passed to the two LSTM layers separately, and the output will be merged.
[0086] S202: Pass the input of the preliminary repaired verification set to the prediction model to obtain the power prediction result of the verification set for the entire period .
[0087] S30, based on the predicted values and actual values of the intact time periods in the validation set, using the Gaussian kernel density estimation method to obtain the probability density functions of the predicted values and the actual values, and calculating the cumulative probability distribution functions of the two by integrating the probability density functions;
[0088] The Copula function is used to construct the joint probability distribution of the predicted value and the actual value of the missing period in the data set, and the repair value corresponding to the missing period is obtained; specifically, it includes:
[0089] S301: The predicted value and the corresponding actual value of the missing time period in the validation set are regarded as two random variables, and the predicted value is estimated using the Gaussian kernel density estimation method. and actual value The probability density function of and , expressed as:
[0090] ;
[0091] ;
[0092] in, Represents the data sequence, The value of Represents the data sequence, p The value of f ( x ) represents the probability density function, K represents the kernel function, X i Indicates i Sample data, x represents the independent variable of the probability density function, K(x) is the kernel function, M is the sample size, X is the sample data, h is bandwidth;
[0093] S302: For the obtained probability density functions of the perfect time period prediction value and the actual value, the cumulative probability distribution function of the perfect time period prediction value and the actual value is calculated by integrating the obtained probability density functions of the perfect time period prediction value and the actual value. and , expressed as:
[0094] ;
[0095] ;
[0096] in, for The value in p t for The value in , Pr represents a recursive function;
[0097] Based on the Copula function, the dependency relationship between the predicted value and the actual value is established, and the joint probability distribution function of the predicted value and the actual value is constructed. , expressed as:
[0098] ;
[0099] in, To establish the dependency relationship between the predicted value and the actual value based on the Copula function;
[0100] S303, perform an inverse operation on the obtained joint probability distribution function to obtain the conditional probability distribution function of the actual value, which is expressed as:
[0101] ;
[0102] S304, setting the reliability , the asymmetry coefficient is k, let ,in is the confidence interval probability, and the quantile probability of the upper and lower boundaries of the confidence interval is , , which means the probability that the data point is above the upper boundary is , the probability of being below the lower boundary is , expressed as:
[0103] ;
[0104] ;
[0105] S305, based on the obtained upper and lower boundary quantile probabilities and the corresponding , using the conditional probability distribution function of the actual value to calculate , The corresponding quantile , , expressed as:
[0106] ;
[0107] ;
[0108] ;
[0109] in, is the conditional probability distribution function;
[0110] Based on the obtained upper and lower boundary quantiles , , using the cumulative probability distribution function of the actual value Inverse to get the upper and lower boundary values, add them up and take the average value to get the repair value corresponding to the defect period , expressed as:
[0111] ;
[0112] ;
[0113] .
[0114] S40, based on the probability density function of the repaired value and the probability density function of the true value of the perfect period, obtain the KL divergence between the two functions; based on the cumulative probability distribution function of the repaired value and the cumulative probability distribution function of the true value of the perfect period, obtain the KS statistic between the two functions; specifically including:
[0115] S401, according to the probability density function of the repair value The probability density function of the true value of the complete period , calculate the KL divergence between two functions, expressed as:
[0116] ;
[0117] in, T Represents the total number of iterations, t Represents the iteration round;
[0118] S402: Based on the cumulative probability distribution function of the repair value Cumulative probability distribution function of the true value of the complete period , calculate the KS statistic between two functions, expressed as:
[0119] .
[0120] S50, repeating steps S20 to S40 until the difference in the probability distributions of the two in step S40 meets a set threshold or reaches a maximum number of iterative repair times; specifically including:
[0121] S501 . Setting a threshold to determine the degree of acceptance of the probability distribution difference, or determining the number of iterations required, that is, the maximum number of iterations.
[0122] S502. Compare the calculated KL divergence and KS statistic with the set threshold. If the threshold requirement is met, terminate the repair; otherwise, repeat steps S20 to S40, and predict and repair the repaired data again until the accuracy meets the threshold or reaches the set number of iterations.
[0123] Example 2
[0124] Based on Example 1, this embodiment provides a distributed photovoltaic power data repair device, such as Figure 2 As shown, including:
[0125] A data acquisition module is used to acquire the power time series data of the target distributed photovoltaic station;
[0126] A data processing module is used to determine whether there is a missing period in the data acquired by the data acquisition module. If so, the power missing period is preliminarily repaired based on a linear interpolation method;
[0127] The power repair module obtains the power repair value of the target distributed photovoltaic station power time series data according to the target distributed photovoltaic station power time series data after preliminary repair.
[0128] The power repair module is specifically used for:
[0129] The target distributed photovoltaic power station power time series data after preliminary repair is input into the bidirectional long short-term memory neural network model to obtain the power prediction value of the target distributed photovoltaic power station power time series data;
[0130] The Copula function is used to establish a joint probability distribution function of the power prediction value and the corresponding actual value, and the power repair value is calculated based on the obtained power prediction value.
[0131] Example 3
[0132] This embodiment provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in Embodiment 1 are implemented.
[0133] Example 4
[0134] The present invention provides a computing device, comprising:
[0135] One or more processors, one or more memories, and one or more programs, wherein the one or more programs are stored in the one or more memories and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the methods described in Example 1.
[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0137] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0140] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A distributed photovoltaic power data repair method, characterized in that: include: Obtain the target distributed photovoltaic power station power time series data; If the target distributed photovoltaic power station power time series data has a power missing period, the power missing period is preliminarily repaired based on a linear interpolation method; Input the target distributed photovoltaic station power time series data after preliminary repair into the pre-built power repair model to obtain the power repair value of the target distributed photovoltaic station power time series data; The method for constructing the power repair model includes: S10, obtaining complete target distributed photovoltaic power station time series data, dividing it into a training set and a validation set, setting different lengths of power missing periods for the validation set and performing preliminary repair using a linear interpolation method to obtain a preliminary repaired data set; wherein the preliminary repaired data set includes the training set and the preliminary repaired validation set; S20, using the preliminarily repaired data set to train and verify the bidirectional long short-term memory neural network model, to obtain the power prediction results of the verification set for the entire period; wherein the power prediction results of the verification set for the entire period include the power prediction results of the verification set without defects and the power prediction values of the defective period; S30, using the Copula function to establish a joint probability distribution function of the power prediction value of the verification set during the intact period and the corresponding actual value, and based on the power prediction value of the verification set during the defective period, calculate the power repair value of the verification set during the defective period; S40, calculating the KL divergence and KS statistics based on the power repair value in the defective period and the actual power value in the intact period; S50, repeating steps S20-S40 until a set number of iterations is reached, or the KL divergence and KS statistics meet a set threshold.
2. The distributed photovoltaic power data repair method according to claim 1, characterized in that: The step S10 comprises: S101, obtaining a large amount of complete target distributed photovoltaic station power time series data, dividing it into a training set and a validation set, and setting power missing periods of different lengths for the validation set; S102, using a linear interpolation method to repair the set missing time period to obtain a preliminary repaired data set.
3. The distributed photovoltaic power data repair method according to claim 1, characterized in that: The step S20 comprises: S201, converting the repaired data set data into an input sequence suitable for a bidirectional long short-term memory neural network model, defining the length of the input sequence by a sliding window method, and training the bidirectional long short-term memory neural network model with a training set; S202, inputting the initially repaired verification set into a bidirectional long short-term memory neural network model to obtain the power prediction value of the verification set for the entire period.
4. The distributed photovoltaic power data repair method according to claim 1, characterized in that: The step S30 comprises: S301: The predicted value and the corresponding actual value of the missing time period in the validation set are regarded as two random variables, and the predicted value is estimated using the Gaussian kernel density estimation method. and actual value The probability density function of and , expressed as: ; ; in, Represents the data sequence, The value of represents the data sequence, which is the value of p; f(x) represents the probability density function, K represents the kernel function, and X i represents the i-th sample data, x represents the independent variable of the probability density function, K(x) is the kernel function, M is the sample capacity, X is the sample data, and h is the bandwidth; S302: For the obtained probability density functions of the perfect time period prediction value and the actual value, the cumulative probability distribution function of the perfect time period prediction value and the actual value is calculated by integrating the obtained probability density functions of the perfect time period prediction value and the actual value. and , expressed as: ; ; in, for The value in p t for The value in , Pr represents a recursive function; Based on the Copula function, the dependency relationship between the predicted value and the actual value is established, and the joint probability distribution function of the predicted value and the actual value is constructed. , expressed as: ; in, To establish the dependency relationship between the predicted value and the actual value based on the Copula function; S303, perform an inverse operation on the obtained joint probability distribution function to obtain the conditional probability distribution function of the actual value, which is expressed as: ; S304, setting the reliability , the asymmetry coefficient is k, let ,in is the confidence interval probability, and the quantile probability of the upper and lower boundaries of the confidence interval is , , which means the probability that the data point is above the upper boundary is , the probability of being below the lower boundary is , expressed as: ; ; S305, based on the obtained upper and lower boundary quantile probabilities and the corresponding , using the conditional probability distribution function of the actual value to calculate , The corresponding quantile , , expressed as: ; ; ; in, is the conditional probability distribution function; Based on the obtained upper and lower boundary quantiles , , using the cumulative probability distribution function of the actual value Inverse to get the upper and lower boundary values, add them up and take the average value to get the repair value corresponding to the defect period , expressed as: ; ; 。 5. The distributed photovoltaic power data repair method according to claim 1, characterized in that: The step S40 comprises: S401, based on the probability density function of the repair value The probability density function of the true value of the complete period , calculate the KL divergence between two functions, expressed as: ; Among them, T represents the total number of iterations, and t represents the iteration round; S402: Based on the cumulative probability distribution function of the repair value Cumulative probability distribution function of the true value of the complete period , calculate the KS statistic between two functions, expressed as: 。 6. The distributed photovoltaic power data repair method according to claim 1, characterized in that: The step S50 comprises: S501, setting a threshold to determine the degree of acceptance of probability distribution differences, or setting a maximum number of iterations; S502. Compare the calculated KL divergence and KS statistic with the set threshold. If the threshold requirement is met, terminate the repair; otherwise, repeat steps S20 to S40, and predict and repair the repaired data again until the accuracy meets the threshold or reaches the set number of iterations.
7. A distributed photovoltaic power data repairing device using the distributed photovoltaic power data repairing method according to any one of claims 1 to 6, characterized in that: include: A data acquisition module is used to acquire the power time series data of the target distributed photovoltaic station; A data processing module is used to determine whether there is a missing period in the data acquired by the data acquisition module. If so, the power missing period is preliminarily repaired based on a linear interpolation method; The power repair module obtains the power repair value of the target distributed photovoltaic station power time series data according to the target distributed photovoltaic station power time series data after preliminary repair.
8. The distributed photovoltaic power data repair device according to claim 7, characterized in that: The power repair module is specifically used for: The target distributed photovoltaic power station power time series data after preliminary repair is input into the bidirectional long short-term memory neural network model to obtain the power prediction value of the target distributed photovoltaic power station power time series data; The Copula function is used to establish a joint probability distribution function of the power prediction value and the corresponding actual value, and the power repair value is calculated based on the obtained power prediction value.
9. A computer device, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 6.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Distributed photovoltaic power data restoration method based on multivariate information
CN117493765A
