A photovoltaic power generation prediction method and system based on complex neural network

Processing photovoltaic power generation and meteorological data through complex neural networks solves the problem of insufficient long-term scale and phase information processing in the existing technology, achieves more accurate photovoltaic power generation prediction, and enhances the accuracy and versatility of the prediction.

CN118364364BActive Publication Date: 2024-08-27GUANGDONG KEXIN ENERGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410790097.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-27
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

Existing photovoltaic power generation prediction technology has deficiencies in long-term scale and phase information processing of oscillation signals, which affects the accuracy of prediction and ignores the real and imaginary part information of the data.

Method used

The complex neural network is used to process photovoltaic power generation and meteorological data. The meteorological data is filtered by calculating the Pearson correlation coefficient and the Spearman order correlation coefficient. The isolated forest algorithm is used to correct the data, and a complex neural network is constructed, which combines dimension expansion, Fourier transform and GELU. The activation function comprehensively captures the amplitude and phase characteristics of the signal for prediction.

Benefits of technology

It improves the accuracy of photovoltaic power generation prediction and the prediction ability of multivariate long-term series. It can more comprehensively understand and analyze signal characteristics, capture amplitude and phase characteristics, and enhance the accuracy and versatility of prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364364B
    Figure CN118364364B
Patent Text Reader

Abstract

The present invention discloses a photovoltaic power generation prediction method and system based on a complex neural network, comprising: acquiring photovoltaic power generation historical data and meteorological historical data; calculating the Pearson correlation coefficient and the Spearman order correlation coefficient according to the photovoltaic power generation historical data and the meteorological historical data; screening the meteorological historical data according to the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data; correcting the meteorological related data by an isolation forest algorithm to obtain training samples; constructing a complex neural network, training the complex neural network by using the training samples, acquiring meteorological data and photovoltaic power generation data in real time and inputting them into the trained complex neural network to obtain photovoltaic power generation prediction power; utilizing the advantage of the complex neural network in processing the real part information and the imaginary part information of the data at the same time, more accurately capturing the amplitude, phase characteristics and periodic characteristics of the signal, thereby being able to more accurately predict the photovoltaic power generation power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of photovoltaic power generation prediction, and in particular relates to a photovoltaic power generation prediction method and system based on a complex neural network. Background Art

[0002] In recent years, the use of large-scale renewable energy for power generation has achieved rapid development, which has not only effectively alleviated environmental problems, but also promoted the transformation of energy structure. However, renewable energy is uncontrollable and uncertain. Bringing renewable energy such as solar or wind energy into the power grid will undoubtedly cause the power grid system to become unstable. Photovoltaic power generation is widely used in power systems. Due to its volatility and intermittency, it has an adverse impact on the power balance, protection configuration and power quality of the power system. Therefore, the accuracy of photovoltaic power generation prediction plays a vital role in the stable operation and safety of the power system.

[0003] At present, the commonly used photovoltaic power generation prediction technologies are mainly focused on short-term and ultra-short-term predictions, such as autoregression (AR), recurrent neural network (RNN), moving average model (MA), autoregression moving average model (ARMA), etc. These technologies have been able to effectively solve the problem of photovoltaic power generation prediction in the short term (within 2 days). However, the reality is that the operation and dispatch of the power grid system requires predictions on a longer time scale (more than 2 days) to cope with changes in photovoltaic power generation.

[0004] At the same time, existing technologies only focus on amplitude information when identifying key oscillations, while phase information is also crucial for capturing the periodicity and waveform shape of the signal. Ignoring the real and imaginary parts of the data will affect the accuracy of photovoltaic power generation prediction. Summary of the invention

[0005] The present invention provides a photovoltaic power generation prediction method and system based on complex neural network, which takes advantage of the complex neural network to simultaneously process the real and imaginary information of the data, more accurately captures the amplitude, phase characteristics, and periodic characteristics of the signal, thereby being able to more accurately predict the photovoltaic power generation power.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is:

[0007] The first aspect of the present invention provides a photovoltaic power generation prediction method based on a complex neural network, comprising:

[0008] Acquire meteorological data and photovoltaic power generation data in real time and input them into the pre-trained complex neural network to obtain the photovoltaic power generation prediction power;

[0009] The training process of the complex neural network is:

[0010] Acquire photovoltaic power generation historical data and meteorological historical data; calculate the Pearson correlation coefficient and the Spearman order correlation coefficient based on the photovoltaic power generation historical data and the meteorological historical data; screen the meteorological historical data according to the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data; correct the meteorological related data by using the isolation forest algorithm to obtain training samples;

[0011] A complex neural network is constructed and trained using training samples, and the complex neural network outputs training prediction results; a training loss value is calculated based on the training prediction results and historical photovoltaic power generation data, and the parameters of the complex neural network are optimized based on the training loss value. The training process of the complex neural network is iterated repeatedly until the training loss value converges to output the trained complex neural network.

[0012] Furthermore, the meteorological historical data were screened according to the Pearson correlation coefficient and the Spearman rank correlation coefficient to obtain meteorological related data, including:

[0013] A linear correlation threshold and a nonlinear correlation threshold are set; when the Pearson correlation coefficient is greater than the linear correlation threshold or the Spearman order correlation coefficient is greater than the nonlinear correlation threshold, the meteorological historical data are set as meteorological related data.

[0014] Furthermore, the meteorological related data is corrected by an isolation forest algorithm to obtain training samples, including:

[0015] A meteorological-related data set is randomly selected as a first-level splitting node from the meteorological-related data set, and the meteorological-related data set is divided into two subsets according to the characteristic values ​​in the meteorological-related data. The next meteorological-related data is selected from the subset as a second-level splitting node, and the iteration is repeated until the splitting depth reaches the set depth threshold to generate a meteorological-related data tree;

[0016] Generate multiple isolated meteorological-related data trees through the isolation forest algorithm; obtain the path length of meteorological-related data in each meteorological-related data tree, and calculate the average path length;

[0017] When the average path length is less than the set length threshold, the meteorological related data is judged to be abnormal data; the abnormal data is corrected according to the meteorological related data adjacent to the abnormal data; the corrected meteorological related data and photovoltaic power generation historical data are used as training samples.

[0018] Furthermore, the complex neural network includes a first complex neural sub-network, a transposition unit, and a second complex neural sub-network in sequence; the output layer and the fully connected layer of the second complex neural sub-network connect;

[0019] Input the training samples into the first complex neural sub-network to obtain meteorological training features ; Transpose unit to train meteorological features After transposition, it is input into the second complex neural sub-network, and the second complex neural sub-network outputs the meteorological training features ; The weather training characteristics Input to the fully connected layer Get the training prediction results.

[0020] Furthermore, the first complex neural sub-network and the second complex neural sub-network sequentially include a dimension expansion layer, a Fourier transform unit, a complex combination unit, an inverse Fourier transform unit and an output layer; the Fourier transform unit and the output layer are connected to each other; the complex combination unit is sequentially provided with a fully connected layer , GELU activation function and fully connected layer .

[0021] Furthermore, the training loss value is calculated based on the training prediction results and the historical data of photovoltaic power generation. The expression formula is:

[0022] ;

[0023] In the formula, Represented as historical data of photovoltaic power generation, Represented as training prediction results; Represents the training loss value; T represents the sampling time length.

[0024] Furthermore, meteorological data and photovoltaic power generation data are obtained in real time and input into a pre-trained complex neural network to obtain photovoltaic power generation prediction power, including:

[0025] Acquire meteorological data and photovoltaic power generation data in real time and input them into the first complex neural sub-network to obtain prediction features The process includes:

[0026] The C convolution kernels in the dimension expansion layer are used to expand the dimensions of meteorological data and photovoltaic power generation data to obtain frequency domain features. ,

[0027] The frequency domain features are transformed in the time dimension through the Fourier transform unit Perform Fourier transform to obtain frequency domain features The real and imaginary parts of

[0028] The frequency domain features The real and imaginary parts of are input into the complex combination unit to obtain the real frequency domain characteristics and imaginary frequency domain characteristics ; The expression formula is:

[0029] ;

[0030] ;

[0031] The formula is, Represented as a fully connected layer function; Represented as GELU activation function; Represented as frequency domain features The real part of Represented as frequency domain features The imaginary part of

[0032] The real frequency domain features are transformed by the inverse Fourier transform unit and imaginary frequency domain characteristics After inverse Fourier transform, it is input to the output layer and combined with the frequency domain features Add to get the prediction features ; The expression formula is:

[0033] ;

[0034] In the formula, Expressed as an inverse Fourier transform function;

[0035] For prediction features After transposition, the input is sent to the second complex neural sub-network to obtain the prediction features , the predicted features Input the fully connected layer Obtain the predicted photovoltaic power generation power.

[0036] A second aspect of the present invention provides a photovoltaic power generation prediction system based on a complex neural network, comprising:

[0037] The prediction module is used to obtain meteorological data and photovoltaic power generation data in real time and input them into the pre-trained complex neural network to obtain the predicted photovoltaic power generation power;

[0038] An acquisition module is used to acquire photovoltaic power generation historical data and meteorological historical data; calculate the Pearson correlation coefficient and the Spearman order correlation coefficient based on the photovoltaic power generation historical data and the meteorological historical data; filter the meteorological historical data according to the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data; and correct the meteorological related data by using an isolation forest algorithm to obtain training samples;

[0039] The training module is used to construct a complex neural network, train the complex neural network using training samples, and output the training prediction results from the complex neural network; calculate the training loss value according to the training prediction results and the historical data of photovoltaic power generation, optimize the parameters of the complex neural network according to the training loss value, and repeatedly iterate the training process of the complex neural network until the training loss value converges to output the trained complex neural network.

[0040] Furthermore, the complex neural network includes a first complex neural sub-network, a transposition unit, and a second complex neural sub-network in sequence; the output layer and the fully connected layer of the second complex neural sub-network connect;

[0041] Input the training samples into the first complex neural sub-network to obtain meteorological training features ; Transpose the unit to train the meteorological features After transposition, it is input into the second complex neural sub-network, and the second complex neural sub-network outputs the meteorological training features ; The weather training characteristics Input to the fully connected layer Get the training prediction results.

[0042] Furthermore, the first complex neural sub-network and the second complex neural sub-network sequentially include a dimension expansion layer, a Fourier transform unit, a complex combination unit, an inverse Fourier transform unit and an output layer; the Fourier transform unit and the output layer are connected to each other; the complex combination unit is sequentially provided with a fully connected layer , GELU activation function and fully connected layer .

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

[0044] The present invention acquires meteorological data and photovoltaic power generation data in real time and inputs them into a pre-trained complex neural network to obtain the predicted photovoltaic power generation power; fully considering the real and imaginary part information helps to understand and analyze the signal characteristics more comprehensively and accurately, and can accurately capture the amplitude and phase characteristics, which can not only further study the dependencies across variables, but also improve the accuracy and versatility of multivariate long time series prediction.

[0045] The present invention obtains photovoltaic power generation historical data and meteorological historical data; calculates the Pearson correlation coefficient and the Spearman order correlation coefficient according to the photovoltaic power generation historical data and the meteorological historical data; screens the meteorological historical data according to the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data; corrects the meteorological related data by using an isolation forest algorithm to obtain training samples; and trains a complex neural network by using the training samples; the present invention attaches importance to the time dependence and variable dependence of the data, and simultaneously screens the variables based on the dual characteristics of homogeneity and heterogeneity shown between the data, so as to improve the accuracy of prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A flowchart of a method for controlling a message forwarding circuit provided in Embodiment 1 of the present invention;

[0047] Figure 2 This is a transposition flow chart provided for Example 1 of the present invention. DETAILED DESCRIPTION

[0048] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0049] Example 1

[0050] like Figure 1 and Figure 2 As shown, this implementation provides a photovoltaic power generation prediction method based on complex neural network, including:

[0051] Photovoltaic power generation historical data and meteorological historical data were obtained; the meteorological historical data used photovoltaic power generation data of DKASC 35 and 37 stations in Alice Springs, Australia, and selected segments from them:

[0052] Research Center 35, September 24, 2015, 9:00 am to December 13, 2015, 9:30 am (Research Center 35 Excerpt 1).

[0053] Research Center 37, 11:00 noon on August 27, 2020 to 14:30 on November 20, 2020 (Research Center 37 Section 1); obtain meteorological data of two sections of stations 35 and 37, including: temperature, relative humidity, global horizontal radiation, diffuse horizontal radiation, wind direction, daily rainfall, etc.; the time granularity of the original data is 15 minutes.

[0054] The Pearson correlation coefficient and the Spearman order correlation coefficient are calculated based on the photovoltaic power generation historical data and the meteorological historical data; the meteorological historical data are screened based on the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data, including:

[0055] Set a linear correlation threshold and a nonlinear correlation threshold; when the Pearson correlation coefficient is greater than the linear correlation threshold or the Spearman rank correlation coefficient is greater than the nonlinear correlation threshold, set the meteorological historical data as meteorological related data and discard the data with lower correlation.

[0056] In the process of photovoltaic power generation data collection, various factors may affect the data, such as temperature, relative humidity, global horizontal radiation, diffuse horizontal radiation, wind direction, daily rainfall, etc., which may cause the collected data to be missing, misplaced, or inaccurate. In order to ensure the accuracy of photovoltaic power generation prediction, the weather-related data is corrected through the isolation forest algorithm to obtain training samples, including:

[0057] A meteorological-related data set is randomly selected as a first-level splitting node from the meteorological-related data set, and the meteorological-related data set is divided into two subsets according to the characteristic values ​​in the meteorological-related data. The next meteorological-related data is selected from the subset as a second-level splitting node, and the iteration is repeated until the splitting depth reaches the set depth threshold to generate a meteorological-related data tree;

[0058] Generate multiple isolated meteorological-related data trees through the isolation forest algorithm; obtain the path length of meteorological-related data in each meteorological-related data tree, and calculate the average path length;

[0059] When the average path length is less than a set length threshold, the meteorological related data is judged to be abnormal data; the abnormal data is corrected according to the meteorological related data adjacent to the abnormal data; the corrected meteorological related data and photovoltaic power generation historical data are used as training samples, and the training samples have N variables.

[0060] The above correlation analysis of the factors affecting the output power of photovoltaic power generation shows the dual characteristics of homogeneity and heterogeneity among multiple variables; the correlation strength between each variable is obtained.

[0061] A complex neural network is constructed, wherein the complex neural network includes a first complex neural sub-network and a second complex neural sub-network in sequence; an output layer and a fully connected layer of the second complex neural sub-network connect;

[0062] Input the training samples into the first complex neural sub-network to obtain meteorological training features ; Input the first time domain representation feature into the second complex neural sub-network to obtain meteorological training features ; The weather training characteristics Input to the fully connected layer Get the training prediction results.

[0063] The complex neural network includes a first complex neural sub-network, a transposition unit, and a second complex neural sub-network in sequence; the output layer and the fully connected layer of the second complex neural sub-network connect;

[0064] Input the training samples into the first complex neural sub-network to obtain meteorological training features ; Transpose unit to train meteorological features After transposition, it is input into the second complex neural sub-network. The transposition unit converts the meteorological training features Transition from the time dimension to the variable dimension, and then the second complex neural sub-network outputs the meteorological training features ; The weather training characteristics Input to the fully connected layer Get the training prediction results.

[0065] The first complex neural sub-network and the second complex neural sub-network have the same structure, and the first complex neural sub-network and the second complex neural sub-network each sequentially include a dimension expansion layer, a Fourier transform unit, a complex combination unit, an inverse Fourier transform unit and an output layer; the Fourier transform unit and the output layer are mutually communicated and connected; the complex combination unit is sequentially provided with a fully connected layer , GELU activation function and fully connected layer .

[0066] The complex neural network is trained using training samples, and the complex neural network outputs the training prediction results. The training loss value is calculated based on the training prediction results and the historical data of photovoltaic power generation, and the expression formula is:

[0067] ;

[0068] In the formula, Represented as historical data of photovoltaic power generation, Represented as training prediction results; Represents the training loss value; T represents the sampling time length.

[0069] The parameters of the complex neural network are optimized according to the training loss value, and the training process of the complex neural network is repeatedly iterated until the training loss value converges and the trained complex neural network is output.

[0070] Acquire meteorological data and photovoltaic power generation data in real time and input them into the pre-trained complex neural network to obtain photovoltaic power generation prediction power, including:

[0071] Acquire meteorological data and photovoltaic power generation data in real time and input them into the first complex neural sub-network to obtain prediction features The process includes:

[0072] The C convolution kernels in the dimension expansion layer are used to expand the dimensions of meteorological data and photovoltaic power generation data to obtain frequency domain features. ,

[0073] The frequency domain features are transformed in the time dimension through the Fourier transform unit Perform Fourier transform to obtain frequency domain features The real and imaginary parts of

[0074] The frequency domain features The real and imaginary parts of are input into the complex combination unit to obtain the real frequency domain characteristics and imaginary frequency domain characteristics ; The expression formula is:

[0075] ;

[0076] ;

[0077] The formula is, Represented as a fully connected layer function; Represented as GELU activation function; Represented as frequency domain features The real part of Represented as frequency domain features The imaginary part of

[0078] The real frequency domain features are transformed by the inverse Fourier transform unit and imaginary frequency domain characteristics After inverse Fourier transform, it is input to the output layer and combined with the frequency domain features Add to get the prediction features ; The expression formula is:

[0079] ;

[0080] In the formula, Expressed as an inverse Fourier transform function;

[0081] For prediction features After transposition, the input is sent to the second complex neural sub-network to obtain the prediction features , where the first complex neural sub-network and the second complex neural sub-network process the data in the same way, and predict the features Input the fully connected layer Obtain the predicted photovoltaic power generation power.

[0082] This embodiment fully considers the real and imaginary information, which helps to understand and analyze the signal characteristics more comprehensively and accurately, and can accurately capture the amplitude and phase characteristics. It can not only further study the dependencies across variables, but also improve the accuracy and versatility of multivariate long time series prediction.

[0083] Example 2

[0084] This embodiment provides a photovoltaic power generation prediction system based on a complex neural network. The photovoltaic power generation prediction system described in this embodiment can be used to execute the photovoltaic power generation prediction method described in Example 1. The photovoltaic power generation prediction system includes:

[0085] The prediction module is used to obtain meteorological data and photovoltaic power generation data in real time and input them into the pre-trained complex neural network to obtain the predicted photovoltaic power generation power;

[0086] An acquisition module is used to acquire photovoltaic power generation historical data and meteorological historical data; calculate the Pearson correlation coefficient and the Spearman order correlation coefficient based on the photovoltaic power generation historical data and the meteorological historical data; filter the meteorological historical data according to the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data; and correct the meteorological related data by using an isolation forest algorithm to obtain training samples;

[0087] The training module is used to construct a complex neural network, train the complex neural network using training samples, and output the training prediction results from the complex neural network; calculate the training loss value according to the training prediction results and the historical data of photovoltaic power generation, optimize the parameters of the complex neural network according to the training loss value, and repeatedly iterate the training process of the complex neural network until the training loss value converges to output the trained complex neural network.

[0088] The complex neural network includes a first complex neural sub-network, a transposition unit, and a second complex neural sub-network in sequence; the output layer and the fully connected layer of the second complex neural sub-network connect;

[0089] Input the training samples into the first complex neural sub-network to obtain meteorological training features ; Transpose unit to train meteorological features After transposition, it is input into the second complex neural sub-network, and the second complex neural sub-network outputs the meteorological training features ; The weather training characteristics Input to the fully connected layer Get the training prediction results.

[0090] The first complex neural sub-network and the second complex neural sub-network sequentially include a dimension expansion layer, a Fourier transform unit, a complex combination unit, an inverse Fourier transform unit and an output layer; the Fourier transform unit and the output layer are connected to each other in communication; the complex combination unit is sequentially provided with a fully connected layer , GELU activation function and fully connected layer .

[0091] 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 take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, etc.) containing computer-usable program code. M , optical storage, etc.).

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

[0093] 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 comprising 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.

[0094] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0095] 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 photovoltaic power generation prediction method based on complex neural network, characterized in that: include: Acquire meteorological data and photovoltaic power generation data in real time and input them into the pre-trained complex neural network to obtain the photovoltaic power generation prediction power; The training process of the complex neural network is: Acquire photovoltaic power generation historical data and meteorological historical data; calculate the Pearson correlation coefficient and the Spearman order correlation coefficient based on the photovoltaic power generation historical data and the meteorological historical data; screen the meteorological historical data according to the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data; correct the meteorological related data by using the isolation forest algorithm to obtain training samples; A complex neural network is constructed and trained using training samples, and the complex neural network outputs training prediction results; a training loss value is calculated based on the training prediction results and historical photovoltaic power generation data, and the parameters of the complex neural network are optimized based on the training loss value. The training process of the complex neural network is iterated repeatedly until the training loss value converges to output the trained complex neural network.

2. The photovoltaic power generation prediction method according to claim 1, characterized in that: The meteorological historical data were screened according to the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data, including: A linear correlation threshold and a nonlinear correlation threshold are set; when the Pearson correlation coefficient is greater than the linear correlation threshold or the Spearman order correlation coefficient is greater than the nonlinear correlation threshold, the meteorological historical data are set as meteorological related data.

3. The photovoltaic power generation prediction method according to claim 2, characterized in that: Correcting the meteorological related data by using an isolation forest algorithm to obtain training samples includes: A meteorological-related data set is randomly selected as a first-level splitting node from the meteorological-related data set, and the meteorological-related data set is divided into two subsets according to the characteristic values ​​in the meteorological-related data. The next meteorological-related data is selected from the subset as a second-level splitting node, and the iteration is repeated until the splitting depth reaches the set depth threshold to generate a meteorological-related data tree; Generate multiple isolated meteorological-related data trees through the isolation forest algorithm; obtain the path length of meteorological-related data in each meteorological-related data tree, and calculate the average path length; When the average path length is less than the set length threshold, the meteorological related data is judged to be abnormal data; the abnormal data is corrected according to the meteorological related data adjacent to the abnormal data; the corrected meteorological related data and photovoltaic power generation historical data are used as training samples.

4. The photovoltaic power generation prediction method according to claim 1, characterized in that: The complex neural network includes a first complex neural sub-network, a transposition unit, and a second complex neural sub-network in sequence; the output layer and the fully connected layer of the second complex neural sub-network connect; Input the training samples into the first complex neural sub-network to obtain meteorological training features ; Transpose unit to train meteorological features After transposition, it is input into the second complex neural sub-network, and the second complex neural sub-network outputs the meteorological training features ; The weather training characteristics Input to the fully connected layer Get the training prediction results.

5. The photovoltaic power generation prediction method according to claim 4, characterized in that: The first complex neural sub-network and the second complex neural sub-network sequentially include a dimension expansion layer, a Fourier transform unit, a complex combination unit, an inverse Fourier transform unit and an output layer; the Fourier transform unit and the output layer are connected to each other in communication; the complex combination unit is sequentially provided with a fully connected layer , GELU activation function and fully connected layer .

6. The photovoltaic power generation prediction method according to claim 1, characterized in that: The training loss value is calculated based on the training prediction results and the historical data of photovoltaic power generation. The expression formula is: ; In the formula, Represented as historical data of photovoltaic power generation, Represented as training prediction results; Represents the training loss value; T represents the sampling time length.

7. The photovoltaic power generation prediction method according to claim 5, characterized in that: Acquire meteorological data and photovoltaic power generation data in real time and input them into the pre-trained complex neural network to obtain photovoltaic power generation prediction power, including: Acquire meteorological data and photovoltaic power generation data in real time and input them into the first complex neural sub-network to obtain prediction features The process includes: The C convolution kernels in the dimension expansion layer are used to expand the dimensions of meteorological data and photovoltaic power generation data to obtain frequency domain features. , The frequency domain features are transformed in the time dimension through the Fourier transform unit Perform Fourier transform to obtain frequency domain features The real and imaginary parts of The frequency domain features The real and imaginary parts of are input into the complex combination unit to obtain the real frequency domain characteristics and imaginary frequency domain characteristics ; The expression formula is: ; ; The formula is, Represented as a fully connected layer function; Represented as GELU activation function; Represented as frequency domain features The real part of Represented as frequency domain features The imaginary part of The real frequency domain features are transformed by the inverse Fourier transform unit and imaginary frequency domain characteristics After inverse Fourier transform, it is input to the output layer and combined with the frequency domain features Add to get the prediction features ; The expression formula is: ; In the formula, Expressed as an inverse Fourier transform function; For prediction features After transposition, the input is sent to the second complex neural sub-network to obtain the prediction features , the predicted features Input the fully connected layer Obtain the predicted photovoltaic power generation power.

8. A photovoltaic power generation prediction system based on complex neural network, characterized in that: include: The prediction module is used to obtain meteorological data and photovoltaic power generation data in real time and input them into the pre-trained complex neural network to obtain the predicted photovoltaic power generation power; An acquisition module is used to acquire photovoltaic power generation historical data and meteorological historical data; calculate the Pearson correlation coefficient and the Spearman order correlation coefficient based on the photovoltaic power generation historical data and the meteorological historical data; filter the meteorological historical data according to the Pearson correlation coefficient and the Spearman order correlation coefficient to obtain meteorological related data; and correct the meteorological related data by using an isolation forest algorithm to obtain training samples; The training module is used to construct a complex neural network, train the complex neural network using training samples, and output the training prediction results from the complex neural network; calculate the training loss value according to the training prediction results and the historical data of photovoltaic power generation, optimize the parameters of the complex neural network according to the training loss value, and repeatedly iterate the training process of the complex neural network until the training loss value converges to output the trained complex neural network.

9. The photovoltaic power generation prediction system according to claim 8, characterized in that: The complex neural network includes a first complex neural sub-network, a transposition unit, and a second complex neural sub-network in sequence; the output layer and the fully connected layer of the second complex neural sub-network connect; Input the training samples into the first complex neural sub-network to obtain meteorological training features ; Transpose unit to train meteorological features After transposition, it is input into the second complex neural sub-network, and the second complex neural sub-network outputs the meteorological training features ; The weather training characteristics Input to the fully connected layer Get the training prediction results.

10. The photovoltaic power generation prediction system according to claim 9, characterized in that: The first complex neural sub-network and the second complex neural sub-network sequentially include a dimension expansion layer, a Fourier transform unit, a complex combination unit, an inverse Fourier transform unit and an output layer; the Fourier transform unit and the output layer are connected to each other in communication; the complex combination unit is sequentially provided with a fully connected layer , GELU activation function and fully connected layer .