Photovoltaic power generation power multi-step prediction method based on time convolution and DLinear
By combining time convolution and DLinear methods, decompose photovoltaic and meteorological data, capture long-term timing characteristics and perform direct multi-step prediction, the problem of difficulty in learning long sequence and error accumulation in photovoltaic power generation prediction in the existing technology is solved, and high Multi-step prediction performance for accuracy.
Patent Information
- Application Number
- CN202411140427.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-22
AI Technical Summary
The existing photovoltaic power prediction methods are difficult to effectively learn the timing change trends in long sequences, and error accumulation is prone to occur when multiple steps are output.
Using the method based on time convolution and DLinear, historical data is decomposed through ICEEMDAN, local and long-term timing features are captured using TCN, and direct multi-step prediction is performed through DLinear's linear network to avoid error accumulation.
It realizes high-precision multi-step prediction of photovoltaic power generation, which can effectively learn long-sequence features and reduce feature redundancy, improving the prediction performance of the model.
Smart Images

Figure CN119004989A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a photovoltaic power prediction problem, and in particular to a photovoltaic power multi-step prediction method based on time convolution and DLinear. Background Art
[0002] The power output of photovoltaic power generation is uncertain and volatile, which poses a major challenge to the operation, scheduling and planning of power systems. High-precision short-term photovoltaic power generation prediction is crucial to further utilize solar energy. At present, artificial intelligence models based on data mining have become the mainstream models for ultra-short-term photovoltaic power generation due to their simple modeling and high accuracy. Machine learning methods such as extreme learning machines and support vector machines can learn the mapping relationship between historical data and predicted values as prediction models, but they cannot well mine the temporal dependencies therein; the DLinear linear model based on time series decomposition and multi-step prediction can well realize the modeling of time series change trends and avoid the problem of error accumulation. Experimental results show that it is better than most time series models with Transformer architecture, but its completely linear structure cannot mine the time series characteristics of time series, and each dimensional channel is independent, and it cannot mine the dimensional information between multivariate variables; when processing time series features, the temporal convolutional neural network (TCN) can effectively capture the local dependencies in the sequence data and improve the prediction accuracy of the model. However, the convolution operation works within the local receptive field, and has poor ability to model longer sequences and handle long-term dependencies.
[0003] An accurate ultra-short-term photovoltaic power generation power prediction model must be able to learn the time series change trends in long sequences and avoid the problem of error accumulation in multi-step output. However, the existing photovoltaic power generation power prediction method cannot meet the above requirements. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide a multi-step prediction method for photovoltaic power generation based on time convolution and DLinear.
[0005] Technical solution: The method described in the present invention comprises the following steps: (1) Using ICEEMDAN (the improved complete ensemble empirical mode of adaptive white noise) to decompose the photovoltaic and meteorological historical data into a set of subsequences, the volatility characteristics are eliminated, and the intrinsic mode function reflecting the volatility trend of the sequence is obtained. Different subsequences are sent to TCN-DLinear respectively; (2) Use TCN, i.e., temporal convolutional neural network, to extract the temporal features of input features, capture local dependencies in sequence data, implement long-term dependency modeling, and construct feature tensors that contain local and long-term temporal change trends; (3) Using DLinear to decompose the feature tensor into trend terms and residual terms, direct multi-step prediction is achieved through a linear network; (4) Reconstruct each prediction result subsequence to obtain the final prediction result.
[0006] Furthermore, the data decomposition in step (1) includes: Add Gaussian white noise To the original sequence In the above equation, we get the decomposed signal: , in is the sequence after adding noise; is the signal-to-noise ratio of the decomposed signal; To decompose the signal white noise; represents the original sequence; The original signal is decomposed by ICEEMDAN to obtain the first-order IMF component: , , in is the first remaining item; is the first IMF component; M (*) is the local mean function; find the second residual term : , is the second decomposition signal white noise, is the second round signal-to-noise ratio; and so on, we finally get Residuals and eigenmode functions: , , in and For the k and k- 1 remaining item; For the k Wheel signal-to-noise ratio; For the k The round decomposition signal is white noise; For the k IMF components; When the residual component meets the iteration end condition or the eigenmode function is less than the first three order local extreme values, the solution iteration stops.
[0007] Furthermore, in the step (2), TCN is combined into a neural network model by dilated causal convolution and residual connection fusion, and the neural network model establishment method includes causal convolution, dilated convolution and residual module.
[0008] Furthermore, the calculation process of the causal convolution is: Let the filter be , N is the number of filters, time series , J is the number of sequences, first use The function time series is padded with 0 at the end and then convolved. The causal convolution at is: , in, For the A sequence; For the n filters; For the A sequence.
[0009] Furthermore, the calculation process of the dilated convolution is: For the sequence X and filter F , sequence element s Dilated convolution on G for: , Among them, “*” indicates convolution operation; c Convolution kernel size; is the expansion coefficient; For the i convolution kernels; Indicates the past direction of the sequence.
[0010] Furthermore, the residual module structure is expressed as: , in: U(X) is convolution; Activation is the activation function, Represents a residual module.
[0011] Furthermore, the step (3) comprises: (3.1) DLinear decomposes the original series of photovoltaic and meteorological historical data into trend components and residual components; (3.2) Use two linear networks for direct multi-step prediction to output the prediction results; (3.3) Linearly add the outputs of the two linear layers to get the final prediction result ; , , , in; is the trend component; is the residual component; L is the length of the input sequence; C is the feature dimension; Predict results for trend items; Predict the results for the residual term; , is the output sequence length; , They are the linear prediction networks for trend term and residual term respectively.
[0012] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: the present invention inherits the advantages of long sequence modeling and multi-step direct output, and solves the problem of feature redundancy of the attention mechanism. It can not only realize long sequence feature learning, but also perform local time series convolution modeling, mine the deep time series features of meteorological data, and improve the model prediction performance; DLinear's linear mechanism and direct multi-step output method reduce feature redundancy while paying attention to the long-term trend of photovoltaic data, avoid the problem of multi-step prediction error accumulation, and realize high-precision multi-step prediction of photovoltaic power generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a flow chart of the present invention; Figure 2 It is a schematic diagram of the TCN structure; Figure 3 This is a schematic diagram of the DLinear structure; Figure 4 It is the overall framework diagram of the present invention. DETAILED DESCRIPTION
[0014] The present invention is further explained below in conjunction with the accompanying drawings and specific implementation methods.
[0015] like Figure 1 As shown, it is a schematic diagram of the process of the present invention, comprising the following steps: (1) Using ICEEMDAN (the improved complete ensemble empirical mode of adaptive white noise) to decompose the photovoltaic and meteorological historical data into a set of subsequences, the volatility characteristics are eliminated, and the intrinsic mode function reflecting the volatility trend of the sequence is obtained. Different subsequences are sent to TCN-DLinear respectively; Decomposing the data using ICEEMDAN includes: Add Gaussian white noise To the original sequence In the above equation, we get the decomposed signal: , in is the sequence after adding noise; is the signal-to-noise ratio of the decomposed signal; To decompose the signal white noise; represents the original sequence; The original signal is decomposed by ICEEMDAN to obtain the first-order IMF component: , , in is the first remaining item; is the first IMF component; M (*) is the local mean function; find the second residual term : , is the second decomposition signal white noise, is the second round signal-to-noise ratio; and so on, we finally get Residuals and eigenmode functions: , , in and For the k and k- 1 remaining item; For the k Wheel signal-to-noise ratio; For the k The round decomposition signal is white noise; For the k IMF components; When the residual component meets the iteration end condition or the eigenmode function is less than the first three order local extreme values, the solution iteration stops.
[0016] (2) Use TCN, i.e., temporal convolutional neural network, to extract the temporal features of input features, capture local dependencies in sequence data, implement long-term dependency modeling, and construct feature tensors that contain local and long-term temporal change trends; like Figure 2 The figure shows a schematic diagram of the TCN structure. The construction of TCN includes the following steps: Causal Convolution In TCN, causal convolution is a special convolution operation that only considers the features of the previous moment when performing convolution, without leaking information of the later moment. This causal property enables TCN to maintain causal relationships when processing time series data, avoiding the influence of future information on current predictions.
[0017] Let the filter be , N is the number of filters, time series , J is the number of sequences, first use The function time series is padded with 0 at the end and then convolved. The causal convolution at is: , in, For the A sequence; For the n filters; For the A sequence.
[0018] Dilated Convolution In TCN, dilated convolution is a convolution operation with an expanded receptive field. By adding a dilation rate to the convolution kernel, dilated convolution can increase the receptive field of the neural network without increasing the number of parameters, thereby better capturing long-term dependent temporal relationships and improving the accuracy of time series prediction.
[0019] For the sequence X and filter F , sequence element s Dilated convolution on G for: , Among them, “*” indicates convolution operation; c Convolution kernel size; is the expansion coefficient; For the i convolution kernels; Indicates the past direction of the sequence.
[0020] Residual Module Adding a residual module after the dilated causal convolution layer can solve the problems of gradient attenuation and gradient disappearance caused by causal convolution and dilated convolution in the network layer.
[0021] The residual module structure is expressed as: , in: U(X) is convolution; Activation is the activation function, Represents a residual module.
[0022] (3) DLinear is used to decompose the feature tensor into trend terms and residual terms, and direct multi-step prediction is achieved through a linear network; DLinear is a high-precision linear time series prediction model. Although it only consists of one decomposition method and two linear networks for direct multi-step prediction, its design aggregates historical information well, learns time series trends, and avoids the error accumulation effect. It solves the problems existing in the time series prediction models of Transformer architecture and recursive architecture, such as Figure 3 Shown is a schematic diagram of the DLinear structure.
[0023] DLinear decomposes the sequence into trend component and residual component, and uses linear network to learn multi-scale features. The direct multi-step prediction includes the following steps: First, DLinear decomposes the original series of photovoltaic and meteorological historical data into trend component (Remainder) and residual component (Trend).
[0024] Secondly, two linear networks for direct multi-step prediction are used to output the prediction results ; , , , in; is the trend component; is the residual component; L is the length of the input sequence; C is the feature dimension; Predict results for trend items; Predict the results for the residual term; , is the output sequence length; , They are the linear prediction networks for trend term and residual term respectively.
[0025] (4) Based on step (3), a multi-step prediction model for photovoltaic power generation based on time convolution and DLinear is proposed to reconstruct each prediction result subsequence to obtain the final prediction result.
[0026] like Figure 4The overall framework diagram of the present invention is shown. First, ICEEMDNA is used to decompose the multivariate meteorological sequence to obtain a multidimensional subsequence that is easier to learn multi-scale features; secondly, TCN is used to implement local time series information modeling and mine short-term time series features; then DLinear is used to decompose the sequence into trend components and residual components, and a linear network is used to learn multi-scale features to achieve direct multi-step prediction; finally, the photovoltaic power generation multi-step prediction model based on time convolution and DLinear proposed before is used to reconstruct each prediction result subsequence to obtain the final prediction result.
Claims
1. A multi-step prediction method for photovoltaic power generation based on time convolution and DLinear, characterized in that: The steps include: (1) Using ICEEMDAN (the improved complete ensemble empirical mode of adaptive white noise) to decompose the photovoltaic and meteorological historical data into a set of subsequences, the volatility characteristics are eliminated, and the intrinsic mode function reflecting the volatility trend of the sequence is obtained. Different subsequences are sent to TCN-DLinear respectively; (2) Use TCN, i.e., temporal convolutional neural network, to extract the temporal features of input features, capture local dependencies in sequence data, implement long-term dependency modeling, and construct feature tensors that contain local and long-term temporal change trends; (3) Using DLinear to decompose the feature tensor into trend terms and residual terms, direct multi-step prediction is achieved through a linear network; (4) Reconstruct each prediction result subsequence to obtain the final prediction result.
2. The photovoltaic power generation multi-step prediction method based on time convolution and DLinear according to claim 1 is characterized in that: The data decomposition in step (1) comprises: Add Gaussian white noise To the original sequence In the above equation, we get the decomposed signal: , in is the sequence after adding noise; is the signal-to-noise ratio of the decomposed signal; To decompose the signal white noise; represents the original sequence; The original signal is decomposed by ICEEMDAN to obtain the first-order IMF component: , , in is the first remaining item; is the first IMF component; M (*) is the local mean function; find the second residual term : , is the second decomposition signal white noise, is the second round signal-to-noise ratio; and so on, we finally get Residuals and eigenmode functions: , , in and For the k and k- 1 remaining item; For the k Wheel signal-to-noise ratio; For the k The round decomposition signal is white noise; For the k IMF components; When the residual component meets the iteration end condition or the eigenmode function is less than the first three order local extreme values, the solution iteration stops.
3. The photovoltaic power generation multi-step prediction method based on time convolution and DLinear according to claim 1 is characterized in that: In the step (2), TCN forms a neural network model by fusing dilated causal convolution and residual connection. The neural network model establishment method includes causal convolution, dilated convolution and residual module.
4. The photovoltaic power multi-step prediction method based on time convolution and DLinear according to claim 3 is characterized in that: The calculation process of the causal convolution is: Let the filter be , N is the number of filters, time series , J is the number of sequences, first use The function time series is padded with 0 at the end and then convolved. The causal convolution at is: , in, For the A sequence; For the n filters; For the A sequence.
5. The photovoltaic power generation multi-step prediction method based on time convolution and DLinear according to claim 3 is characterized in that: The calculation process of the dilated convolution is: For the sequence X and filter F , sequence element s Dilated convolution on G for: , Among them, "*" represents convolution operation; c Convolution kernel size; is the expansion coefficient; For the i convolution kernels; Indicates the past direction of the sequence.
6. The photovoltaic power generation multi-step prediction method based on time convolution and DLinear according to claim 3 is characterized in that: The residual module structure is expressed as: , in: U(X) is convolution; Activation is the activation function, Represents a residual module.
7. The photovoltaic power generation multi-step prediction method based on time convolution and DLinear according to claim 1 is characterized in that: The step (3) comprises: (3.1) DLinear decomposes the original series of photovoltaic and meteorological historical data into trend components and residual components; (3.2) Use two linear networks for direct multi-step prediction to output the prediction results; (3.3) Linearly add the outputs of the two linear layers to get the final prediction result ; , , , in; is the trend component; is the residual component; L is the length of the input sequence; C is the feature dimension; Predict results for trend items; Predict the results for the residual term; , is the output sequence length; , They are the linear prediction networks for trend term and residual term respectively.
Citation Information
Cited By
Method for predicting short-term wind power
CN119719918A
Data-driven photovoltaic power generation estimation method and system based on Betti curve
CN119988818A
A Data-Driven Photovoltaic Power Generation Estimation Method and System Based on Betty Curves
CN119988818B
