Photovoltaic power prediction method and device, and medium

The adaptive noise complete set empirical mode algorithm and the variational mode decomposition algorithm are used to perform secondary decomposition and build a multi-model fusion prediction model, which solves the problems of incomplete signal decomposition and poor model adaptability in existing photovoltaic power prediction, and achieves Provides higher prediction precision and accuracy.

CN118820752AActive Publication Date: 2024-10-22STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER CO +1

Patent Information

Application Number
CN202411077723.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-22
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Existing photovoltaic power prediction methods are not thorough and accurate enough in signal decomposition, which affects the accuracy of subsequent prediction models, and it is difficult for a single model to adapt to different types of photovoltaic data, resulting in prediction accuracy that needs to be improved.

Method used

The adaptive noise complete set empirical mode algorithm is used for primary decomposition, and the variational mode decomposition algorithm is combined for secondary decomposition. The mid-frequency and low-frequency sequences are obtained through clustering, and a multi-model fusion photovoltaic power prediction model is constructed, using LSTM, XGBoost and LightGBM model performs feature extraction and weighted fusion.

Benefits of technology

Through secondary decomposition and multi-model fusion, the accuracy of photovoltaic power prediction is improved, the problem of processing unstable signals and increasing model complexity is solved, and the prediction accuracy and adaptability are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820752A_ABST
    Figure CN118820752A_ABST
Patent Text Reader

Abstract

The invention relates to a photovoltaic power prediction method and device, and a medium. The method comprises the following steps: S1, collecting original photovoltaic data; s2, performing primary decomposition on the original photovoltaic data by adopting an adaptive noise complete set empirical mode algorithm to obtain N1 decomposition sequences; s3, performing secondary decomposition on the first decomposition sequence in the N1 decomposition sequences by adopting a variational mode decomposition algorithm to obtain N2 subsequences; s4, clustering the second to the N1th decomposed sequences in the N1 decomposed sequences to obtain an intermediate frequency sequence and a low frequency sequence, and taking the N2 subsequences, the intermediate frequency sequence and the low frequency sequence as a first feature combination; and S5, constructing a multi-model fusion photovoltaic power prediction model, carrying out feature extraction on the first feature combination, adding the extracted feature as a new feature into a subsequent prediction link, carrying out weighted fusion on prediction results of multiple models, and outputting a final photovoltaic power prediction result. Compared with the prior art, the method has the advantage of high prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of photovoltaic prediction, and in particular to a photovoltaic power prediction method. Background Art

[0002] Accurate prediction of photovoltaic power is of great significance to the further development of photovoltaic power generation technology. At present, many studies have used machine learning to predict photovoltaic power, which has shown good prediction performance when facing complex nonlinear problems.

[0003] Before predicting photovoltaic data, the photovoltaic data is subjected to signal decomposition. Signal decomposition can better extract the fluctuation characteristics of photovoltaic data and effectively improve the accuracy and efficiency of subsequent photovoltaic predictions. Common signal decomposition algorithms include wavelet transform, variational mode decomposition, empirical mode decomposition and singular spectrum analysis. Most existing solutions directly decompose the original photovoltaic data once and then perform model prediction. However, there are still relatively complex feature sequences after one decomposition, that is, the signal decomposition is not thorough and accurate enough, which also greatly affects the prediction accuracy of the subsequent photovoltaic prediction model. In addition, most existing photovoltaic prediction models use a single model, which is difficult to adapt to different types of photovoltaic data, and the prediction accuracy needs to be further improved.

[0004] Therefore, there is an urgent need to design a photovoltaic power prediction scheme with higher prediction accuracy. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a photovoltaic power prediction method, device and medium with higher accuracy.

[0006] The purpose of the present invention can be achieved by the following technical solutions:

[0007] According to a first aspect of the present invention, a photovoltaic power prediction method is provided, the method comprising:

[0008] S1, collect original photovoltaic data;

[0009] S2, using the adaptive noise complete set empirical mode algorithm to decompose the original photovoltaic data once, and obtain N1 decomposition sequences;

[0010] S3, using the variational mode decomposition algorithm to perform secondary decomposition on the first decomposition sequence of the N1 decomposition sequences to obtain N2 subsequences;

[0011] S4, clustering the 2nd to N1th decomposition sequences among the N1 decomposition sequences to obtain a medium frequency sequence and a low frequency sequence, and taking the N2 subsequences, the medium frequency sequence and the low frequency sequence as the first feature combination;

[0012] S5. Construct a multi-model fusion photovoltaic power prediction model, extract features from the first feature combination and add the extracted features as new features to the subsequent prediction link, and output the final photovoltaic power prediction result after weighted fusion of the prediction results of the multiple models.

[0013] Preferably, in S2, the original photovoltaic data is decomposed once using an adaptive noise complete set empirical mode algorithm to obtain N1 decomposition sequences, which specifically includes the following sub-steps:

[0014] S201. Add noise to the original photovoltaic data x(t) to obtain the original time series set:

[0015] S202, for the i-th original time series x in the original time series set i (t), the corresponding intrinsic mode function component imf1 is obtained through empirical mode decomposition i (t), the average value of the intrinsic mode function components of the original time series set is taken as the first decomposition sequence limf1(t) of the original photovoltaic data;

[0016] S203, updating the residual r1(t) according to the difference between the original photovoltaic data x(t) and the first decomposition sequence limf1(t);

[0017] S204. Based on the residual r1(t), repeat S201 to S203 to obtain the next decomposition sequence and update the residual until the number of extreme points of the residual signal does not exceed two, that is, when the residual signal has become a trend item without significant fluctuations, end the current decomposition process and finally obtain N1 decomposition sequences.

[0018] Preferably, in S201, noise is added to the original photovoltaic data to obtain an original time series set, and the specific expression is:

[0019] x i (t) = x(t) + n i

[0020] n i =ω0ε(t)

[0021] Where: x(t) is the original photovoltaic data; n i is the noise term; ω0 is the noise coefficient, and ε(t) is an independent Gaussian white noise with unit variance.

[0022] Preferably, in S3, the 2nd to N1th decomposition sequences among the N1 decomposition sequences are clustered to obtain a medium frequency sequence and a low frequency sequence, specifically: a K-Means clustering algorithm is used to cluster the 2nd to N1th decomposition sequences among the N1 decomposition sequences according to sample entropy information to obtain a medium frequency sequence and a low frequency sequence.

[0023] Preferably, the multi-model fusion photovoltaic power prediction model in S4 is a multi-model fusion photovoltaic power prediction model with LSTM model, XGBoost model and LightGBM model as the core.

[0024] Preferably, in S4, a multi-model fusion photovoltaic power prediction model is constructed by linear connection and result fusion, feature extraction and prediction are performed on the first feature combination, and the final photovoltaic power prediction result is output, which specifically includes:

[0025] S401, using the first LightGBM model to learn and extract the first feature of the first feature combination F1, and using the first XGBoost model to learn and extract the second feature of the first feature combination F1;

[0026] S402, combining the first feature and the first feature combination F1 into a second feature combination F2, and combining the second feature and the first feature combination F1 into a third feature combination F3;

[0027] S403, using the second LightGBM model to predict the third feature combination F3, using the second XGBoost model to predict the second feature combination F2, using the LSTM model to predict the first feature combination F1, and weightedly fusing the prediction results of the three sub-models to obtain the final prediction result.

[0028] Preferably, an improved sparrow search algorithm is used to determine the number of solution layers and the penalty factor in the variational mode decomposition algorithm described in S3. The specific solution process includes:

[0029] Define the sparrow population as a 2D sequence containing the number of solution layers and penalty factors;

[0030] Introduce cubic mapping to initialize the sparrow population, the expression is:

[0031] y(n+1)=4y(n) 3 -3y(n)

[0032] After the initial value y(0) is given, the sequence y(n) is generated through iteration. The d-dimensional vector in each generation y(n) corresponds to the initial position of a sparrow individual.

[0033] The butterfly optimization algorithm is used to update the finder position:

[0034]

[0035] Where: is the position of the i-th butterfly during the t+1-th iteration; is the position of the i-th butterfly in the t-th iteration; X best is the current global optimal position; fi represents the size of fitness; r is a random number between 0 and 1; Q is a random number that obeys the standard normal distribution; L is a matrix of all 1s; R is the warning value; ST is the alert value;

[0036] Introduce sine and cosine functions to update the follower position. The expression is:

[0037]

[0038]

[0039] Where: a is a constant greater than 1; ω1, ω2, ω3 are random numbers that obey uniform distribution, and their value ranges are (0, 2π), (0, 2), (0, 1) respectively;

[0040] Updated Sentinel location:

[0041]

[0042] Where: is the global worst position of the t-th iteration; β is the step size control parameter; K is a random number in [-1, 1]; ξ is a very small constant; f best They represent the optimal fitness function respectively. In the VMD decomposition link and the multi-model fusion parameter setting link, f best The minimum envelope entropy of each component and the root mean square error of the photovoltaic power prediction result are taken respectively.

[0043] Preferably, the combination coefficients of the second LightGBM model, the second XGBoost model, and the LSTM model in the weighted fusion in S403 are obtained by solving with an improved sparrow search algorithm, and the sparrow population is defined as a multidimensional sequence containing the combination coefficients.

[0044] According to a second aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, any one of the methods described above is implemented.

[0045] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, any one of the methods described above is implemented.

[0046] Compared with the prior art, the present invention has the following beneficial effects:

[0047] 1) The present invention aims at the original photovoltaic data, firstly uses the adaptive noise complete set empirical mode algorithm to perform a primary decomposition, and then uses the variational mode decomposition algorithm to perform a secondary decomposition on the subsequences whose signal complexity is still high after the primary decomposition by the adaptive noise complete set empirical mode algorithm, so as to effectively solve the problems of insufficient ability to process unstable signals, reliance on historical experience, and mode aliasing in the frequency-close part of the primary decomposition. The secondary collaborative decomposition can further reduce data instability and thus improve prediction accuracy.

[0048] 2) The present invention adopts the K-means clustering algorithm to aggregate a number of medium and low-frequency components with relatively less information content into a medium-frequency sequence and a low-frequency sequence according to the sample entropy of each sequence, so as to solve the problem of increased model complexity and overfitting of original data caused by the rapid expansion of the number of subsequences due to the introduction of secondary decomposition, and reduce the difficulty of subsequent prediction by reducing the number of medium and low-frequency signal sequences.

[0049] 3) The sparrow search algorithm is improved by using cubic mapping, butterfly optimization algorithm and sine and cosine functions to optimize the number of solution layers and penalty factors in the variational mode decomposition algorithm. The diversity of the sparrow population is increased during initialization by introducing cubic mapping. At the same time, the butterfly optimization algorithm is introduced in the position update link of the discoverer and follower to enhance the global search capability, further improving the accuracy of the secondary decomposition. The improved sparrow search algorithm is used to optimize the combination coefficients in multi-model fusion, thereby improving the accuracy of model fusion.

[0050] 4) Construct a multi-model fusion photovoltaic power prediction model, extract features from the decomposed signal and add the extracted features as new features to the subsequent prediction link, and output the final photovoltaic power prediction results after weighted fusion of the prediction results of multiple models, thereby improving the photovoltaic power prediction accuracy; specifically, a photovoltaic power prediction model with LSTM model, XGBoos model and LightGBM model as the core is adopted, LSTM is selected as the neural network model, XGBoost model and LightGBM model are used as tree models, and a multi-model fusion prediction model is jointly constructed, which can effectively improve the photovoltaic prediction accuracy. By adding the prediction results of a single prediction model as a new feature to the subsequent prediction link, and using the prediction results of different models for weighted fusion, the photovoltaic power prediction accuracy can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is the flow chart of the ISSA-SCD-MMF photovoltaic power prediction method;

[0052] Figure 2 It is the CEEMDAN flow chart;

[0053] Figure 3This is the CEEMDAN decomposition result of light intensity;

[0054] Figure 4 This is a comparison of the reconstruction errors between CEEMDAN and EEMD;

[0055] Figure 5 This is the VMD decomposition result diagram of the light intensity IMF1;

[0056] Figure 6 It is the VMD decomposition spectrum of the light intensity IMF1;

[0057] Figure 7 This is the K-Means clustering result diagram of the light intensity sequence;

[0058] Figure 8 It is a schematic diagram of the multi-model fusion structure;

[0059] Fig. 9 It is a comparison of forecast results under different weather conditions. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 should fall within the scope of protection of the present invention.

[0061] Example 1

[0062] This embodiment provides a photovoltaic power prediction method, the method comprising:

[0063] S1, collect original photovoltaic data;

[0064] S2, using the adaptive noise complete set empirical mode CEEMDAN algorithm to decompose the original photovoltaic data once and obtain K decomposition sequences;

[0065] S3, using the variational mode decomposition algorithm to perform secondary decomposition on the first decomposition sequence of the K decomposition sequences to obtain N subsequences;

[0066] S4, clustering the 2nd to Kth decomposition sequences among the K decomposition sequences to obtain a medium frequency sequence and a low frequency sequence, and taking the K decomposition sequences, the medium frequency sequence and the low frequency sequence as the first feature combination;

[0067] S5. Construct a multi-model fusion photovoltaic power prediction model by adopting a linear connection and result fusion method, extract and predict the first feature combination, and output the final photovoltaic power prediction result.

[0068] The electronic device of the present invention includes a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0069] Multiple components in the device are connected to the I / O interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunication networks.

[0070] The processing unit performs the various methods and processes described above, such as methods S1 to S4. For example, in some embodiments, methods S1 to S4 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into the RAM and executed by the CPU, one or more steps of methods S1 to S4 described above may be performed. Alternatively, in other embodiments, the CPU may be configured to execute methods S1 to S4 in any other appropriate manner (e.g., by means of firmware).

[0071] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip systems (SOCs), load programmable logic devices (CPLDs), and the like.

[0072] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0073] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0074] Example 2

[0075] This embodiment provides a photovoltaic power prediction method, the method comprising:

[0076] 1. Use the adaptive noise complete set empirical mode CEEMDAN algorithm for a decomposition

[0077] like Figure 2 As shown, the specific decomposition steps are as follows:

[0078] 1) Add noise to the original photovoltaic data x(t) to get the original time series set:

[0079] x i (t) = x(t) + n i (1)

[0080] n i =ω0ε(t) (2)

[0081] Where: ω0 is the noise coefficient, ε(t) is an independent Gaussian white noise with unit variance

[0082] 2) For the i-th original time series x in the original time series set i (t), use empirical mode decomposition EMD to get the corresponding IMF component imf1 i (t) and obtain the first CEEMDAN decomposition sequence of the original signal by taking the average value:

[0083]

[0084] 3) Update the residual using the original photovoltaic data x(t) and imf1(t):

[0085] r1(t)=x(t)-imfl(t) (4)

[0086] 4) Repeat 1) to 3) based on the residual r1(t) to obtain the second CEEMDAN component and update the residual;

[0087] 5) Repeat the remaining IMFs until the number of extreme points of the remaining signal does not exceed two, and the decomposition process ends.

[0088] The extreme points are the local maximum and minimum values ​​of the signal, which are used to capture the local characteristics of the signal. By connecting these extreme points, the envelope of the signal can be constructed to reflect the local trend of the signal. When the residual signal becomes a monotonic trend term, it will no longer contain significant oscillation components. At this time, the number of extreme points will be very small, with at most only one local maximum and one local minimum. Therefore, if the number of extreme points of the residual signal does not exceed two, it can be considered that the decomposition process has reached a reasonable end condition and the residual signal is no longer suitable for further decomposition.

[0089] Taking the original sequence of light intensity as an example, the light intensity subsequence after CEEMDAN decomposition is as follows: Figure 3 As shown. EEMD and CEEMDAN are used for decomposition respectively, and the new sequence reconstructed by superposition of the decomposed components is compared with the original signal. The reconstruction error is compared. Figure 4 shown.

[0090] 2. Use variational mode decomposition VMD for secondary decomposition

[0091] For the IMF1 subsequence whose signal complexity is still high after the first decomposition, this design uses variational mode decomposition (VMD) for secondary decomposition. There are two key parameters in the VMD decomposition process: the number of components K and the penalty coefficient α. Compared with CEEMDAN decomposition, VMD decomposition does not have the ability to adaptively select the number of components K and the penalty coefficient α. The selected parameter K should accurately match the number of useful components in the signal to be decomposed to ensure the adequacy of the decomposition. This design determines the value of the VMD decomposition layer K and the penalty factor α by improving the sparrow search algorithm, where the adaptation value selects the minimum envelope entropy. Figure 5 , Figure 6 It is the light intensity waveform and spectrum after secondary decomposition by VMD.

[0092] Improve the sparrow search algorithm as follows:

[0093] Define the sparrow population as a 2D sequence containing the number of solution layers and penalty factors;

[0094] The cubic mapping formula is as follows:

[0095] y(n+1)=4y(n) 3-3y(n) (5)

[0096] After the initial value y(0) is given, the sequence y(n) is generated through iteration. The d-dimensional vector in each generation y(n) corresponds to the initial position of a sparrow individual.

[0097] The Butterfly Optimization Algo-rithm (BOA) simulates the foraging and courtship behavior of butterflies. During the search phase, the butterfly will move in the direction of the strongest smell, and the updated position is:

[0098]

[0099] Where: is the position of the i-th butterfly in the t-th iteration; X best is the current global optimal position; f i Indicates the size of fitness; r is a random number between 0 and 1. Referring to the BOA algorithm, the position update strategy of the discoverer in SSA is improved according to formula (7):

[0100]

[0101] In the formula: Q is a random number that obeys the standard normal distribution; L is an all-1 matrix; R is the warning value; ST is the alert value.

[0102] The process of the follower approaching the discoverer in the traditional SSA algorithm follows the goal of the fastest convergence, but the strategy of directly approaching the discoverer easily leads to excessive aggregation of individuals in the population, causing the algorithm to fall into a local optimum. By introducing the oscillating sine and cosine functions in the follower position update link, the follower's search ability can be increased, avoiding falling into a local optimum, thereby improving the algorithm's global search ability. The follower position update formula after the introduction of the sine and cosine functions is as follows:

[0103]

[0104]

[0105] Where a is a constant greater than 1; ω1, ω2, ω3 are random numbers that obey uniform distribution, and their value ranges are (0, 2π), (0, 2), (0, 1) respectively; t max For maximum optimization duration.

[0106] At the same time, the update formula of the sentinel position is as follows:

[0107]

[0108] Where: is the global worst position of the t-th iteration; β is the step size control parameter; K is a random number in [-1, 1]; ξ is a very small constant; f best They represent the best fitness function respectively.

[0109] 3. K-Means Clustering

[0110] Sample entropy is a statistic used to describe the complexity or irregularity of a signal, and is suitable for analyzing nonlinear and non-stationary signals. The calculation of sample entropy is based on the concept of information theory and is used to quantify the uncertainty or randomness of a signal. Therefore, this design uses K-Means clustering to aggregate a number of medium and low-frequency components with relatively less information content into a medium-frequency sequence and a low-frequency sequence according to the sample entropy of each sequence, so as to reduce the number of medium and low-frequency signal sequences and reduce the difficulty of prediction. K-Means clustering is used to cluster the characteristic sequences of light intensity after a primary decomposition by CEEMDAN into medium-frequency sequence co-imf1 and low-frequency sequence co-imf2 according to their sample entropy. The results are shown in the figure. Figure 7 .

[0111] 5. Multi-model fusion photovoltaic power prediction model

[0112] like Figure 8 As shown, the implementation process of the multi-model fusion photovoltaic power prediction model in this embodiment is specifically as follows:

[0113] LightGBM-1 is used to learn the first feature combination F1 to extract the first feature, and XGBoost-1 is used to learn the first feature combination F1 to extract the second feature;

[0114] The first feature and the first feature combination F1 form a second feature combination F2, and the second feature and the first feature combination F1 form a third feature combination F3;

[0115] LightGBM-2 is used to predict the third feature combination F3, XGBoost-2 is used to predict the second feature combination F2, and the LSTM model is used to predict the first feature combination F1. The prediction results of the three sub-models are weighted and fused to obtain the final prediction result. The weighted fusion expression is:

[0116]

[0117] Where: P i is the combined forecast value at time i; are the predicted values ​​of the three sub-models at time i; ω1, ω2, ω3 are the combination coefficients between the three sub-models. The sparrow search algorithm is used to solve the combination coefficients ω1, ω2, ω3.

[0118] The root mean square error of the prediction result is selected as the fitness function value of the improved sparrow search algorithm. The optimal solution of the sparrow search algorithm is recorded as j1 * ω2 * ,ω3 * Then the optimized combined prediction model is obtained:

[0119]

[0120] By adding the prediction results of a single prediction model as a new feature to the subsequent prediction link, different prediction models are linearly connected, and the result files of different models are used for fusion. The prediction model proposed in this design combines two mainstream model fusion methods to obtain the optimal power prediction capability.

[0121] 6. Example Analysis

[0122] The simulation case data comes from the measured data of a photovoltaic power plant in a certain place, including light intensity, panel temperature, field temperature, wind speed, wind direction, and photovoltaic power data. Record once every 15 minutes. In order to verify the effectiveness and accuracy of the proposed photovoltaic power prediction model, a control experiment is set up. In order to verify that the secondary collaborative decomposition can effectively improve the prediction performance when the other variables are consistent, the module ablation experiment of CEEMDAN, VMD, and K-Means is selected for the same original data sequence using the same single prediction model; in order to verify the prediction performance of the model under different weather conditions, the mainstream prediction models in the field of power prediction, ELM, LightGBM, XGBoost, GRU, LSTM and this design and comparative experiments are selected.

[0123] Table 1 below shows the module ablation experiment results.

[0124] Table 1

[0125]

[0126]

[0127] From Table 1, it can be seen that compared with the direct input of the original data set, a CEEMDAN decomposition can effectively reduce the MAE, RMSE, and MAPE indexes of various models in different prediction models with large differences in principle structure, indicating that signal decomposition can effectively reduce signal complexity and thus improve prediction performance. Adding VMD decomposition and K-Means clustering on the basis of CEEMDAN decomposition, the MAE, RMSE, and MAPE indexes of various models are further reduced, indicating that the prediction performance of the model is closely related to the degree of signal decomposition. At the same time, since VMD decomposition further decomposes the high-frequency components with the highest sample entropy and the strongest volatility, the addition of VMD decomposition optimizes the prediction index to a higher degree than the K-Means clustering module that processes the medium and low frequency components. After combining CEEMDAN, VMD, and K-Means, each prediction model has achieved the highest prediction performance. The experimental results show that the signal decomposition part in the secondary decomposition mode proposed in this design can further explore the original signal characteristics, and the clustering part can effectively improve the generalization ability of the model, thereby effectively improving the prediction accuracy of photovoltaic power.

[0128] Fig. 9 Table 2 and Table 3 are the comparison of prediction results under different weather conditions and the comparison of prediction results of prediction models under different weather conditions, respectively.

[0129] Table 2

[0130]

[0131] As can be seen from Table 2, compared with sunny and cloudy days, accurate photovoltaic prediction in rainy and sudden weather scenarios is more difficult, and the prediction indicators of each model are generally high. In such complex weather scenarios, the MMF model proposed in this design has the best indicators compared with other prediction models. In sunny and cloudy scenes, although the performance indicators of each model are not much different, the prediction performance of the MMF model is still in the forefront. Compared with the traditional prediction model ELM and the emerging prediction model GRU, the prediction indicators of the multi-model fusion prediction model have been significantly improved. At the same time, compared with the single use of each base learner LSTM, LightGBM, and XGBoost that constitute the MMF prediction model, the prediction performance of the MMF prediction model is better than that of each base learner. The experimental results show that by linearly connecting different prediction models and directly fusing the result files of different models, the base learners can effectively complement each other to obtain the best prediction performance.

[0132] The proposed quadratic mode decomposition based on CEEMDAN, VMD, K-Means and LSTM-LightGBM-XGBoost multi-model fusion prediction model uses CEEMDAN to decompose the original photovoltaic time series once, and then uses VMD to further decompose the high-frequency intrinsic mode function IMF1 into a series of subsequences with lower complexity, while using K-Means clustering to reduce the number of medium and low frequency signal sequences. Experiments show that this quadratic mode decomposition method can effectively improve the prediction performance.

[0133] In the LSTM-LightGBM-XGBoost multi-model fusion prediction model, the model fusion method designed in this paper combines the base learners to obtain better prediction performance than other single prediction models. Compared with other existing prediction models, the ISSA-SCD-MMF prediction model proposed in this design has better prediction performance and good scalability and application prospects in practical applications.

[0134] The other configurations of this embodiment are the same as those of Embodiment 1.

[0135] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A photovoltaic power prediction method, characterized in that: The method includes: S1, collect original photovoltaic data; S2, using the adaptive noise complete set empirical mode algorithm to decompose the original photovoltaic data once, and obtain N1 decomposition sequences; S3, using the variational mode decomposition algorithm to perform secondary decomposition on the first decomposition sequence of the N1 decomposition sequences to obtain N2 subsequences; S4, clustering the 2nd to N1th decomposition sequences among the N1 decomposition sequences to obtain a medium frequency sequence and a low frequency sequence, and taking the N2 subsequences, the medium frequency sequence and the low frequency sequence as the first feature combination; S5. Construct a multi-model fusion photovoltaic power prediction model, extract features from the first feature combination and add the extracted features as new features to the subsequent prediction link, and output the final photovoltaic power prediction result after weighted fusion of the prediction results of the multiple models.

2. A photovoltaic power prediction method according to claim 1, characterized in that: In S2, the original photovoltaic data is decomposed once using the adaptive noise complete set empirical mode algorithm to obtain N1 decomposition sequences, which specifically includes the following sub-steps: S201. Add noise to the original photovoltaic data x(t) to obtain the original time series set: S202, for the i-th original time series x in the original time series set i (t), the corresponding intrinsic mode function component imf1 is obtained through empirical mode decomposition i (t), the average value of the intrinsic mode function components of the original time series set is taken as the first decomposition sequence limf1(t) of the original photovoltaic data; S203, updating the residual r1(t) according to the difference between the original photovoltaic data x(t) and the first decomposition sequence limf1(t); S204. Based on the residual r1(t), repeat S201 to S203 to obtain the next decomposition sequence and update the residual until the number of extreme points of the residual signal does not exceed two, that is, when the residual signal has become a trend item without significant fluctuations, end the current decomposition process and finally obtain N1 decomposition sequences.

3. A photovoltaic power prediction method according to claim 2, characterized in that: In S201, noise is added to the original photovoltaic data to obtain an original time series set, and the specific expression is: x i (t)=x(t)+n i n i =ω0ε(t) Where: x(t) is the original photovoltaic data; n i is the noise term; ω0 is the noise coefficient, and ε(t) is an independent Gaussian white noise with unit variance.

4. A photovoltaic power prediction method according to claim 1, characterized in that: In S3, the second to N1 decomposition sequences among the N1 decomposition sequences are clustered to obtain a medium frequency sequence and a low frequency sequence. Specifically, a K-Means clustering algorithm is used to cluster the second to N1 decomposition sequences among the N1 decomposition sequences according to sample entropy information to obtain a medium frequency sequence and a low frequency sequence.

5. A photovoltaic power prediction method according to claim 1, characterized in that: The multi-model fusion photovoltaic power prediction model in S4 is a multi-model fusion photovoltaic power prediction model with LSTM model, XGBoost model and LightGBM model as the core.

6. A photovoltaic power prediction method according to claim 5, characterized in that: In the S4, a multi-model fusion photovoltaic power prediction model is constructed by linear connection and result fusion, feature extraction and prediction are performed on the first feature combination, and the final photovoltaic power prediction result is output, which specifically includes: S401, using the first LightGBM model to learn and extract the first feature of the first feature combination F1, and using the first XGBoost model to learn and extract the second feature of the first feature combination F1; S402, combining the first feature and the first feature combination F1 into a second feature combination F2, and combining the second feature and the first feature combination F1 into a third feature combination F3; S403, using the second LightGBM model to predict the third feature combination F3, using the second XGBoost model to predict the second feature combination F2, using the LSTM model to predict the first feature combination F1, and weightedly fusing the prediction results of the three sub-models to obtain the final prediction result.

7. A photovoltaic power prediction method according to claim 1, characterized in that: The improved sparrow search algorithm is used to determine the number of solution layers and penalty factors in the variational mode decomposition algorithm described in S3. The specific solution process includes: Define the sparrow population as a 2D sequence containing the number of solution layers and penalty factors; Introduce cubic mapping to initialize the sparrow population, the expression is: y(n+1)=4y(n) 3 -3y(n) After the initial value y(0) is given, the sequence y(n) is generated through iteration. The d-dimensional vector in each generation y(n) corresponds to the initial position of a sparrow individual. The butterfly optimization algorithm is used to update the finder position: Where: is the position of the i-th butterfly during the t+1-th iteration; is the position of the i-th butterfly in the t-th iteration; X best is the current global optimal position; f i represents the size of fitness; r is a random number between 0 and 1; Q is a random number that obeys the standard normal distribution; L is a matrix of all 1s; R is the warning value; ST is the alert value; Introduce sine and cosine functions to update the follower position. The expression is: Where: a is a constant greater than 1; ω1, ω2, ω3 are random numbers that obey uniform distribution, and their value ranges are (0, 2π), (0, 2), (0, 1) respectively; Updated Sentinel location: Where: is the global worst position of the t-th iteration; β is the step size control parameter; K is a random number in [-1,1]; ξ is a very small constant; f best They represent the optimal fitness function respectively. In the VMD decomposition link and the multi-model fusion parameter setting link, f best The minimum envelope entropy of each component and the root mean square error of the photovoltaic power prediction result are taken respectively.

8. A photovoltaic power prediction method according to claim 7, characterized in that: The combination coefficients of the second LightGBM model, the second XGBoost model, and the LSTM model in the weighted fusion in S403 are obtained by solving with an improved sparrow search algorithm, and the sparrow population is defined as a multidimensional sequence containing the combination coefficients.

9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Electricity price prediction method based on double-layer VMD decomposition and SSA-LSTM

    CN116562908A

  • Device and method for predicting short-term photovoltaic power interval based on ensemble learning

    CN117200198A

  • Photovoltaic power generation short-term prediction method, system, medium and equipment

    CN117709556A

  • Distributed optical storage participated power distribution network improvement multi-objective optimization control method

    CN117913789A

  • Photovoltaic power prediction method and system based on EEMD-SSA-GRU

    CN117933462A

Cited By

  • Electric vehicle charging load prediction method and system

    CN119740882A

  • Multi-time scale photovoltaic power generation power prediction method based on multi-mode decomposition

    CN119761860A

  • Photovoltaic power prediction model training method, photovoltaic power prediction method and system

    CN119830047A

  • Double-closed-loop decomposition prediction fractional order reinforcement learning power generation control method and device of power system, computer equipment and medium

    CN120357556A

  • Ultra-short-term wind power prediction method based on 24-solar-term adaptive mode decomposition framework

    CN121688880A