CN116187498A - A photovoltaic power prediction method based on frequency domain decomposition - Google Patents

A photovoltaic power prediction method based on frequency domain decomposition Download PDF

Info

Publication number
CN116187498A
CN116187498A CN202211493788.5A CN202211493788A CN116187498A CN 116187498 A CN116187498 A CN 116187498A CN 202211493788 A CN202211493788 A CN 202211493788A CN 116187498 A CN116187498 A CN 116187498A
Authority
CN
China
Prior art keywords
module
trend
decomposition
data
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202211493788.5A
Other languages
Chinese (zh)
Inventor
白静波
景超
陈运蓬
尚文
马江海
薛生艺
夏彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datong Power Supply Co of State Grid Shanxi Electric Power Co Ltd
Original Assignee
Datong Power Supply Co of State Grid Shanxi Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datong Power Supply Co of State Grid Shanxi Electric Power Co Ltd filed Critical Datong Power Supply Co of State Grid Shanxi Electric Power Co Ltd
Priority to CN202211493788.5A priority Critical patent/CN116187498A/en
Publication of CN116187498A publication Critical patent/CN116187498A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses a photovoltaic power generation power prediction method based on frequency domain decomposition, which relates to the technical field of photovoltaic power generation, and comprises the following steps: collecting historical data of a photovoltaic power plant, constructing a multi-dimensional time sequence data sample set, cleaning the multi-dimensional time sequence data sample set by using a quarter-point intra-distance algorithm, and separating the multi-dimensional time sequence data sample set into a sunlight intensity data set and a power sequence data set; constructing a neural network model based on the frequency domain decomposition, the neural network model comprising: the system comprises an illumination prediction module, a power prediction module and a fusion module; using a sunlight intensity data set and a power sequence data set as a training neural network model, wherein the sunlight intensity data set is input into a light prediction module, the power sequence data set is input into a power prediction module, and output results of the light prediction module and the power prediction module are input into a fusion module together for processing; and the data is processed by the fusion module and then the result is output as the predicted photovoltaic power generation power of the photovoltaic power plant.

Description

一种基于频域分解的光伏发电功率预测方法A Photovoltaic Power Prediction Method Based on Frequency Domain Decomposition

技术领域technical field

本发明涉及光伏发电的技术领域,具体而言,涉及一种基于频域分解的光伏发电功率预测方法。The present invention relates to the technical field of photovoltaic power generation, in particular to a method for predicting photovoltaic power generation power based on frequency domain decomposition.

背景技术Background technique

光伏发电是一种利用太阳能电池板接收太阳辐射并将其转换为电能的发电方法,由于其需要依靠太阳光照获得能量,因此发电量受季度、阴晴、昼夜等因素影响,光伏发电系统输出功率展现出随机性和间歇性。另外由于储能困难,因此当电网中大部分电能来自于光伏发电时,电力系统的稳定性会受到影响,这就限制了光伏产业的发展。因此,对光伏发电功率做出预测就成了人们关心的问题。Photovoltaic power generation is a power generation method that uses solar panels to receive solar radiation and convert it into electrical energy. Because it needs to rely on sunlight to obtain energy, the power generation is affected by factors such as seasons, cloudy and sunny, and day and night. The output power of photovoltaic power generation systems Exhibits randomness and intermittency. In addition, due to the difficulty of energy storage, when most of the electricity in the grid comes from photovoltaic power generation, the stability of the power system will be affected, which limits the development of the photovoltaic industry. Therefore, forecasting the power of photovoltaic power generation has become a concern of people.

对光伏发电数据预测主要有两大思路:采用统计学方法以及采用物理方法。其中,统计学方法是对历史数据进行统计分析,找出其内在规律进行预测;物理方法是将气象参数作为输入值,通过物理模型求解预测功率。这二者都有各自的局限性:统计学方法只强调了数据的规律性,对于突发性的气象变化无法做到及时响应;而物理方法则无法兼顾周期和规律,预测结果往往不够准确。There are two main ideas for the prediction of photovoltaic power generation data: the use of statistical methods and the use of physical methods. Among them, the statistical method is to conduct statistical analysis on historical data to find out its internal laws for prediction; the physical method is to use meteorological parameters as input values and solve the predicted power through a physical model. Both have their own limitations: the statistical method only emphasizes the regularity of the data, and cannot respond to sudden meteorological changes in a timely manner; while the physical method cannot take into account both the cycle and the law, and the prediction results are often not accurate enough.

随着人工智能方法的快速发展,基于深度学习的模型已被开发并应用于许多领域。深度学习是机器学习方法的一个新分支,利用基于深度学习的模型,如RNN或LSTM等网络预测光伏发电功率的方法受到了重视。与传统的物理、统计方法相比,深度学习模型能够从光伏功率序列中挖掘深层特征,并获得更准确的预测结果。但RNN网络自有的缺陷导致它无法处理长时间/功率序列,LSTM只能通过对功率的历史规律进行预测,无法兼顾突发的气象状况。With the rapid development of artificial intelligence methods, deep learning-based models have been developed and applied in many fields. Deep learning is a new branch of machine learning methods. Using deep learning-based models, such as networks such as RNN or LSTM, to predict photovoltaic power generation has received attention. Compared with traditional physical and statistical methods, the deep learning model can mine deep features from photovoltaic power sequences and obtain more accurate prediction results. However, due to the inherent defects of the RNN network, it cannot handle long-term/power sequences. LSTM can only predict the historical law of power, and cannot take into account sudden meteorological conditions.

发明内容Contents of the invention

本发明的目的在于:提出一种能够兼顾历史数据和天气状况的光伏发电功率预测方法。The purpose of the present invention is to propose a method for forecasting photovoltaic power generation that can take into account both historical data and weather conditions.

本发明的技术方案是:提供了一种基于频域分解的光伏发电功率预测方法,该方法包括:The technical solution of the present invention is to provide a method for predicting photovoltaic power generation based on frequency domain decomposition, the method comprising:

S1、收集光伏发电厂历史数据构建多维时序数据样本集,利用四分位点内距算法对多维时序数据样本集进行清洗,并分离为日照强度数据集和功率序列数据集;S1. Collect the historical data of photovoltaic power plants to construct a multi-dimensional time-series data sample set, use the interquartile point distance algorithm to clean the multi-dimensional time-series data sample set, and separate it into a sunshine intensity data set and a power sequence data set;

S2、基于频域分解构建神经网络模型,神经网络模型包括:光照预测模块、功率预测模块以及融合模块;使用日照强度数据集和功率序列数据集作为训练集训练神经网络模型,其中日照强度数据集输入光照预测模块,功率序列数据集输入功率预测模块,光照预测模块和功率预测模块的输出结果一同输入融合模块处理;S2. Construct a neural network model based on frequency domain decomposition. The neural network model includes: an illumination prediction module, a power prediction module, and a fusion module; use the sunshine intensity data set and the power sequence data set as training sets to train the neural network model, wherein the sunshine intensity data set Input the illumination prediction module, the power sequence data set is input to the power prediction module, and the output results of the illumination prediction module and the power prediction module are input into the fusion module for processing;

S3、数据经融合模块处理后将结果输出作为该光伏发电厂的预测光伏发电功率;S3. After the data is processed by the fusion module, the result is output as the predicted photovoltaic power generation power of the photovoltaic power plant;

其中,步骤S2中光照预测模块和功率预测模块的结构相同,均为两层编码器和一层解码器,数据经两轮编码后输入至解码器,将另外输入解码器中初始化序列加工为最终结果输出至融合模块。Among them, the structure of the illumination prediction module and the power prediction module in step S2 are the same, both are two-layer encoder and one-layer decoder, the data is input to the decoder after two rounds of encoding, and the initialization sequence input into the decoder is processed into the final The results are output to the fusion module.

上述任一项技术方案中,进一步地,编码器包括:频率学习模块、周期-趋势分解模块和前向传播模块,各个模块之间残差连接,数据输入编码器后依次经过上述模块处理后输出。In any one of the above technical solutions, further, the encoder includes: a frequency learning module, a cycle-trend decomposition module and a forward propagation module, the residual connections between each module, after the data is input into the encoder, it is sequentially processed by the above modules and then output .

上述任一项技术方案中,进一步地,编码器处理过程包括:In any one of the above technical solutions, further, the encoder processing process includes:

数据首先进入频率学习模块,经过处理得到时序数据,时序数据与未处理的数据做残差连接,一并送入周期-趋势分解模块,周期-趋势分解模块对送入的数据分解后得到了时序上的周期分量和趋势分量,舍弃趋势分量后输出周期分量,同样与输入此模块的信号做残差链接,送入前向传播模块;前向传播模块输出的数据与输入他的数据融合后,再进入一个周期-趋势分解模块,丢弃趋势分量后,最终将周期分量作为编码器的结果输出。The data first enters the frequency learning module, and the time series data is obtained after processing. The time series data and the unprocessed data are connected by residuals, and then sent to the cycle-trend decomposition module. The cycle-trend decomposition module decomposes the input data and obtains the time series The periodic component and trend component above, discarding the trend component and then outputting the periodic component, also make a residual link with the signal input to this module, and send it to the forward propagation module; after the data output by the forward propagation module is fused with the input data, Then enter a period-trend decomposition module, discard the trend component, and finally output the period component as the result of the encoder.

上述任一项技术方案中,进一步地,两层编码器分为第一层编码器和第二层编码器,两者结构完全相同,经过两层编码器处理的结果分解为值和键输入解码器。In any of the above technical solutions, further, the two-layer encoder is divided into a first-layer encoder and a second-layer encoder, both of which have exactly the same structure, and the result processed by the two-layer encoder is decomposed into value and key input decoding device.

上述任一项技术方案中,进一步地,解码器包括:频率学习模块、周期-趋势分解模块、频域注意力模块和前向传播模块,各个模块之间残差连接,数据输入解码器后依次经过上述模块处理后输出。In any one of the above technical solutions, further, the decoder includes: a frequency learning module, a cycle-trend decomposition module, a frequency domain attention module and a forward propagation module, and the residual connection between each module, after the data is input into the decoder, sequentially Output after processing by the above modules.

上述任一项技术方案中,进一步地,解码器处理过程包括:In any one of the above technical solutions, further, the decoder processing process includes:

首先初始化一个周期分量和趋势分量,将初始化后的周期分量输入频率学习模块,变换前后的结果做残差链接,然后将连接结果送入周期-趋势分解模块,周期-趋势分解模块输出的趋势分量与初始化趋势做残差链接,结果记为A;周期-趋势分解模块输出的周期分量连同编码器输出的序列一起送入频域注意力模块;First initialize a periodic component and a trend component, input the initialized periodic component into the frequency learning module, make a residual link between the results before and after the transformation, and then send the connection result to the cycle-trend decomposition module, and the trend component output by the cycle-trend decomposition module Make a residual link with the initialization trend, and the result is recorded as A; the periodic component output by the period-trend decomposition module is sent to the frequency domain attention module together with the sequence output by the encoder;

频域注意力模块将处理后的结果与周期-趋势分解模块的输出的结果做残差链接,送入下一个周期-趋势分解模块;周期-趋势分解模块将其分解为周期量和趋势量,周期量进入前向传播模块,趋势量与结果A做残差连接,结果记为B;The frequency-domain attention module links the processed results with the output of the cycle-trend decomposition module as a residual, and sends them to the next cycle-trend decomposition module; the cycle-trend decomposition module decomposes it into period volume and trend volume, The period quantity enters the forward propagation module, the trend quantity and the result A are connected by residual, and the result is recorded as B;

前向传播模块输入与输出的结果做残差连接后送入下一个周期-趋势分解模块,周期-趋势分解模块将其分解为周期量和趋势量,并将趋势量和B做残差连接,结果记为C;The results of the input and output of the forward propagation module are connected by residuals and then sent to the next cycle-trend decomposition module. The cycle-trend decomposition module decomposes it into periodic quantities and trend quantities, and connects the trend quantities with B as residuals. The result is recorded as C;

最终,周期-趋势分解模块分解得到的周期量与趋势量C融合,输出结果至融合模块。Finally, the periodic quantity decomposed by the cycle-trend decomposition module is fused with the trend quantity C, and the result is output to the fusion module.

上述任一项技术方案中,进一步地,高斯窗处理具体是:In any of the above technical solutions, further, the Gaussian window processing is specifically:

Figure BDA0003964729760000041
Figure BDA0003964729760000041

其中,n为离散序列数据点的序号,M为窗的宽度。Among them, n is the serial number of discrete sequence data points, and M is the width of the window.

上述任一项技术方案中,进一步地,加权平均公式为:In any of the above technical solutions, further, the weighted average formula is:

Figure BDA0003964729760000042
Figure BDA0003964729760000042

其中,L(n)为输出值即放入全连接层的值,l(n)为原始序列数据点。Among them, L(n) is the output value, that is, the value put into the fully connected layer, and l(n) is the original sequence data point.

本发明的有益效果是:The beneficial effects of the present invention are:

本发明中的技术方案针对光伏发电功率的周期性和不稳定性,设计了两个相同的网络模块分别预测日照与功率,接着将预测结果做融合集成,得到光伏发电功率预测结果,此方法既能够提取到光伏发电功率的时序特征,也能够兼顾气象条件对于光伏发电功率的影响,弥补了统计方法和物理方法的不足,从而提高预测值的精确度;The technical solution in the present invention aims at the periodicity and instability of photovoltaic power generation. Two identical network modules are designed to predict sunshine and power respectively, and then integrate the prediction results to obtain the prediction result of photovoltaic power generation. This method not only It can extract the timing characteristics of photovoltaic power generation, and can also take into account the impact of meteorological conditions on photovoltaic power generation, making up for the shortcomings of statistical methods and physical methods, thereby improving the accuracy of forecast values;

通过在解码器中引入频域注意力模块,将时域数据转至频域,对于类似光照信息、光伏发电功率这种周期性较为明显的时域数据,其频域往往含有更加直观的信息,模型进行频域信息的学习能够更加准确的预测出结果。By introducing a frequency-domain attention module in the decoder, the time-domain data is transferred to the frequency domain. For time-domain data with obvious periodicity such as illumination information and photovoltaic power generation, the frequency domain often contains more intuitive information. The learning of frequency domain information by the model can predict the results more accurately.

附图说明Description of drawings

本发明的上述和附加方面的优点在结合下面附图对实施例的描述中将变得明显和容易理解,其中:The advantages of the above and additional aspects of the present invention will become apparent and readily understood from the following description of embodiments when taken in conjunction with the accompanying drawings, in which:

图1是根据本发明的一个实施例的基于频域分解的光伏发电功率预测方法的示意流程图;Fig. 1 is a schematic flow chart of a method for predicting photovoltaic power generation based on frequency domain decomposition according to an embodiment of the present invention;

图2是根据本发明的一个实施例的基于频域分解的光伏发电功率预测方法的光照预测模块或功率预测模块结构图;Fig. 2 is a structural diagram of an illumination prediction module or a power prediction module of a photovoltaic power prediction method based on frequency domain decomposition according to an embodiment of the present invention;

图3是根据本发明的一个实施例的基于频域分解的光伏发电功率预测方法的编码器结构图;Fig. 3 is the coder structural diagram of the photovoltaic generation power prediction method based on frequency domain decomposition according to an embodiment of the present invention;

图4是根据本发明的一个实施例的基于频域分解的光伏发电功率预测方法的编码器的频率学习模块结构图;Fig. 4 is the structural diagram of the frequency learning module of the coder of the photovoltaic power generation power prediction method based on frequency domain decomposition according to an embodiment of the present invention;

图5是根据本发明的一个实施例的基于频域分解的光伏发电功率预测方法的解码器结构图;FIG. 5 is a structural diagram of a decoder for a photovoltaic power prediction method based on frequency domain decomposition according to an embodiment of the present invention;

图6是根据本发明的一个实施例的基于频域分解的光伏发电功率预测方法的解码器的频域注意力模块结构图;Fig. 6 is a structural diagram of a frequency domain attention module of a decoder of a photovoltaic power generation power prediction method based on frequency domain decomposition according to an embodiment of the present invention;

图7是根据本发明的一个实施例的基于频域分解的光伏发电功率预测方法的融合模块处理流程图;Fig. 7 is a fusion module processing flow chart of a photovoltaic power prediction method based on frequency domain decomposition according to an embodiment of the present invention;

图8是根据本发明的一个实施例的基于频域分解的光伏发电功率预测方法的预测发电量与实际发电量对比曲线。Fig. 8 is a comparison curve between predicted power generation and actual power generation of a photovoltaic power prediction method based on frequency domain decomposition according to an embodiment of the present invention.

具体实施方式Detailed ways

为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本发明的实施例及实施例中的特征可以相互结合。In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

在下面的描述中,阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the following disclosure. Limitations of specific embodiments.

如图1所示,本实施例提供了一种基于频域分解的光伏发电功率预测方法,该方法包括:As shown in Figure 1, this embodiment provides a method for predicting photovoltaic power generation based on frequency domain decomposition, which includes:

S1、收集光伏发电厂历史数据构建多维时序数据样本集,利用四分位点内距算法对多维时序数据样本集进行清洗,并分离为日照强度数据集和功率序列数据集。S1. Collect the historical data of photovoltaic power plants to construct a multi-dimensional time-series data sample set, use the interquartile distance algorithm to clean the multi-dimensional time-series data sample set, and separate it into a sunshine intensity data set and a power sequence data set.

具体地,收集的光伏发电厂历史数据包含时间、光照幅度、温度、气压以及实际功率,将同一时刻的上述数据作为一个多维时序数据样本保存为本地文件,在本实施例中,以10分钟一采样的频率积累获取了5000个多维时序数据样本,其中涵盖了受多种不同场景因素影响的光伏发电功率数据,更加全面。Specifically, the collected historical data of the photovoltaic power plant includes time, illumination amplitude, temperature, air pressure and actual power, and the above data at the same moment are saved as a multi-dimensional time series data sample as a local file. The frequency of sampling has accumulated 5,000 multi-dimensional time-series data samples, which cover photovoltaic power generation data affected by various scene factors, which is more comprehensive.

利用四分位点内距算法对异常数据进行检测,清洗数据集后对数据进行重构与标准化,根据类型分离为日照强度数据集和功率序列数据集。The interquartile distance algorithm is used to detect abnormal data, and after cleaning the data set, the data is reconstructed and standardized, and separated into sunshine intensity data set and power sequence data set according to the type.

S2、基于频域分解构建神经网络模型,神经网络模型包括:光照预测模块、功率预测模块以及融合模块;使用日照强度数据集和功率序列数据集作为训练集训练神经网络模型,其中日照强度数据集输入光照预测模块,功率序列数据集输入功率预测模块,光照预测模块和功率预测模块的输出结果一同输入融合模块处理。S2. Construct a neural network model based on frequency domain decomposition. The neural network model includes: an illumination prediction module, a power prediction module, and a fusion module; use the sunshine intensity data set and the power sequence data set as training sets to train the neural network model, wherein the sunshine intensity data set Input the illumination prediction module, the power sequence data set is input to the power prediction module, and the output results of the illumination prediction module and the power prediction module are input into the fusion module for processing.

如图2所示,光照预测模块和所述功率预测模块的结构相同,均为两层编码器和一层解码器,数据经两轮编码后输入至解码器,将另外输入解码器中初始化序列加工为最终结果输出至所述融合模块。As shown in Figure 2, the illumination prediction module and the power prediction module have the same structure, both of which are two-layer encoder and one-layer decoder. After two rounds of encoding, the data is input to the decoder, and the initialization sequence will be additionally input into the decoder. The final result is processed and output to the fusion module.

如图3所示,编码器包含:频率学习模块、周期-趋势分解模块和前向传播模块,各个模块之间残差连接防止梯度爆炸或消失,数据输入编码器后依次经过上述模块处理后输出。As shown in Figure 3, the encoder includes: a frequency learning module, a cycle-trend decomposition module, and a forward propagation module. The residual connection between each module prevents the gradient from exploding or disappearing. After the data is input into the encoder, it is processed by the above modules in turn and then output .

如图4所示,数据进入频率学习模块后,先对其进行线性变换,结果记作q,对q进行离散傅里叶变换,结果记作Q,对Q下采样后得到结果记作

Figure BDA0003964729760000061
再将其与参数矩阵R做线性运算,得到的结果定义为/>
Figure BDA0003964729760000062
接着对/>
Figure BDA0003964729760000063
进行频率补全后,做傅里叶逆变换得到处理完成的时序数据y并输出。As shown in Figure 4, after the data enters the frequency learning module, it is linearly transformed first, and the result is denoted as q, and the discrete Fourier transform is performed on q, and the result is denoted as Q, and the result obtained after downsampling Q is denoted as
Figure BDA0003964729760000061
Then perform a linear operation with the parameter matrix R, and the obtained result is defined as />
Figure BDA0003964729760000062
Next to />
Figure BDA0003964729760000063
After frequency completion, inverse Fourier transform is performed to obtain the processed time series data y and output it.

接着将频率学习模块处理过后的数据和未处理的数据做残差连接,一并送入周期-趋势分解模块,周期-趋势分解模块对送入的数据分解后得到了时序上的周期分量和趋势分量,舍弃趋势分量后输出周期分量,同样与输入此模块的信号做残差链接,送入前向传播模块。Then, the data processed by the frequency learning module and the unprocessed data are residually connected and sent to the cycle-trend decomposition module. The cycle-trend decomposition module decomposes the input data and obtains the periodic components and trends in time series. Component, the periodic component is output after discarding the trend component, which is also connected with the signal input to this module by residual link, and sent to the forward propagation module.

前向传播模块是一个全连接网络,其参数作为训练参数。前向传播模块输出的数据与输入他的数据融合后,再进入一个周期-趋势分解模块,丢弃趋势分量后,最终将周期分量作为结果输入至第二层编码器,第二层编码器与第一层编码器结构完全相同,经过两层编码器处理的结果分解为值和键输入解码器。The forward propagation module is a fully connected network whose parameters are used as training parameters. After the data output by the forward propagation module is fused with the input data, it enters a cycle-trend decomposition module. After discarding the trend component, the cycle component is finally input to the second-layer encoder as a result, and the second-layer encoder and the first layer The structure of one-layer encoder is exactly the same, and the result processed by two-layer encoder is decomposed into value and key input decoder.

如图5所示,解码器包含:频率学习模块、周期-趋势分解模块、频域注意力模块和前向传播模块。As shown in Figure 5, the decoder consists of: frequency learning module, cycle-trend decomposition module, frequency domain attention module and forward propagation module.

在解码器中,首先初始化一个周期分量和趋势分量,将初始化后的周期分量输入频率学习模块,变换前后的结果做残差链接,然后将连接结果送入周期-趋势分解模块,周期-趋势分解模块输出的趋势分量与初始化趋势做残差链接,结果记为A;周期-趋势分解模块输出的周期分量连同编码器输出的序列一起送入频域注意力模块。In the decoder, first initialize a period component and a trend component, input the initialized period component into the frequency learning module, make the residual link of the results before and after the transformation, and then send the connection result to the period-trend decomposition module, period-trend decomposition The trend component output by the module is residually linked with the initialization trend, and the result is denoted as A; the period component output by the period-trend decomposition module is sent to the frequency domain attention module together with the sequence output by the encoder.

频域注意力模块将处理后的结果与周期-趋势分解模块的输出的结果做残差链接,送入下一个周期-趋势分解模块;周期-趋势分解模块将其分解为周期量和趋势量,周期量进入前向传播模块,趋势量与结果A做残差连接,结果记为B。The frequency-domain attention module links the processed results with the output of the cycle-trend decomposition module as a residual, and sends them to the next cycle-trend decomposition module; the cycle-trend decomposition module decomposes it into period volume and trend volume, The period quantity enters the forward propagation module, the trend quantity and the result A are connected by residuals, and the result is recorded as B.

前向传播模块与编码器中一样采用全连接层,输入与输出的结果做残差连接后送入下一个周期-趋势分解模块,周期-趋势分解模块将其分解为周期量和趋势量,并将趋势量和B做残差连接,结果记为C。最终,周期-趋势分解模块分解得到的周期量与趋势量C融合,输出结果至融合模块。The forward propagation module uses the same fully connected layer as the encoder, and the results of the input and output are residually connected and then sent to the next cycle-trend decomposition module. The cycle-trend decomposition module decomposes it into cycle quantities and trend quantities, and Make a residual connection between the trend quantity and B, and record the result as C. Finally, the periodic quantity decomposed by the cycle-trend decomposition module is fused with the trend quantity C, and the result is output to the fusion module.

如图6所示,频域注意力模块中首先输入编码器输出的值v和键k,具体地,编码器向解码器的频域注意力模块输入分为两路,分别输入值v和键k;其次将解码器前面网络层的结果记作q输入,对q和键k做线性运算后再将结果与值v做线性运算,得到注意力结果,再对注意力结果进行频率补全和傅里叶逆变换,得到时序数据,此结果将会传递给接下来的层进行学习。As shown in Figure 6, the value v and the key k output by the encoder are first input into the frequency domain attention module. Specifically, the input from the encoder to the frequency domain attention module of the decoder is divided into two ways, and the value v and the key k are input respectively. k; secondly, record the result of the network layer in front of the decoder as q input, perform a linear operation on q and the key k, and then perform a linear operation on the result and the value v to obtain the attention result, and then perform frequency completion and summing on the attention result Inverse Fourier transform to obtain time series data, and this result will be passed to the next layer for learning.

S3、数据经所述融合模块处理后将结果输出作为该光伏发电厂的预测光伏发电功率。S3. After the data is processed by the fusion module, the result is output as the predicted photovoltaic power of the photovoltaic power plant.

如图7所示,由光照预测模块和功率预测模块输出的数据分别通过步长为1、β值为1.2的高斯窗处理后加权平均,将两者输出的结果一并输入位于融合模块中的前向传播模块,通过全连接层处理后最终输出结果数据。As shown in Figure 7, the data output by the illumination prediction module and the power prediction module are respectively processed by a Gaussian window with a step size of 1 and a β value of 1.2 and then weighted and averaged, and the output results of both are input into the fusion module. The forward propagation module finally outputs the result data after being processed by the fully connected layer.

其中高斯窗公式为:The Gaussian window formula is:

Figure BDA0003964729760000081
Figure BDA0003964729760000081

其中,n为离散序列数据点的序号,M为窗的宽度。Among them, n is the serial number of discrete sequence data points, and M is the width of the window.

加权平均公式为:The weighted average formula is:

Figure BDA0003964729760000082
Figure BDA0003964729760000082

其中,L(n)为输出值即放入全连接层的值,l(n)为原始序列数据点。Among them, L(n) is the output value, that is, the value put into the fully connected layer, and l(n) is the original sequence data point.

在本发明的另一个实施例中,对一个村庄的光伏发电功率趋势进行了预测,如图8所示,本发明提供的光伏发电功率预测方法所预测出的结果与实际发电结果拟合情况良好,具有较高的准确性。In another embodiment of the present invention, the photovoltaic power generation trend of a village is predicted, as shown in Figure 8, the results predicted by the photovoltaic power generation prediction method provided by the present invention fit well with the actual power generation results , with high accuracy.

综上所述,本发明提出了一种基于频域分解的光伏发电功率预测方法,包括:In summary, the present invention proposes a method for predicting photovoltaic power generation based on frequency domain decomposition, including:

S1、收集光伏发电厂历史数据构建多维时序数据样本集,利用四分位点内距算法对多维时序数据样本集进行清洗,并分离为日照强度数据集和功率序列数据集。S1. Collect the historical data of photovoltaic power plants to construct a multi-dimensional time-series data sample set, use the interquartile distance algorithm to clean the multi-dimensional time-series data sample set, and separate it into a sunshine intensity data set and a power sequence data set.

S2、基于频域分解构建神经网络模型,神经网络模型包括:光照预测模块、功率预测模块以及融合模块;使用日照强度数据集和功率序列数据集作为训练集训练神经网络模型,其中日照强度数据集输入光照预测模块,功率序列数据集输入功率预测模块,光照预测模块和功率预测模块的输出结果一同输入融合模块处理。S2. Construct a neural network model based on frequency domain decomposition. The neural network model includes: an illumination prediction module, a power prediction module, and a fusion module; use the sunshine intensity data set and the power sequence data set as training sets to train the neural network model, wherein the sunshine intensity data set Input the illumination prediction module, the power sequence data set is input to the power prediction module, and the output results of the illumination prediction module and the power prediction module are input into the fusion module for processing.

S3、数据经融合模块处理后将结果输出作为该光伏发电厂的预测光伏发电功率。S3. After the data is processed by the fusion module, the result is output as the predicted photovoltaic power generation power of the photovoltaic power plant.

其中,步骤S2中光照预测模块和功率预测模块的结构相同,均为两层编码器和一层解码器,数据经两轮编码后输入至解码器,将另外输入解码器中初始化序列加工为最终结果输出至融合模块。Among them, the structure of the illumination prediction module and the power prediction module in step S2 are the same, both are two-layer encoder and one-layer decoder, the data is input to the decoder after two rounds of encoding, and the initialization sequence input into the decoder is processed into the final The results are output to the fusion module.

本发明中的步骤可根据实际需求进行顺序调整、合并和删减。The steps in the present invention can be adjusted, combined and deleted according to actual needs.

尽管参考附图详地公开了本发明,但应理解的是,这些描述仅仅是示例性的,并非用来限制本发明的应用。本发明的保护范围由附加权利要求限定,并可包括在不脱离本发明保护范围和精神的情况下针对发明所作的各种变型、改型及等效方案。Although the present invention has been disclosed in detail with reference to the accompanying drawings, it should be understood that these descriptions are illustrative only and are not intended to limit the application of the present invention. The protection scope of the present invention is defined by the appended claims, and may include various changes, modifications and equivalent solutions for the invention without departing from the protection scope and spirit of the present invention.

Claims (9)

1.一种基于频域分解的光伏发电功率预测方法,其特征在于,所述方法包括:1. A method for forecasting photovoltaic power generation based on frequency domain decomposition, characterized in that the method comprises: S1、收集光伏发电厂历史数据构建多维时序数据样本集,利用四分位点内距算法对所述多维时序数据样本集进行清洗,并分离为日照强度数据集和功率序列数据集;S1. Collect historical data of photovoltaic power plants to construct a multi-dimensional time-series data sample set, use the interquartile distance algorithm to clean the multi-dimensional time-series data sample set, and separate it into a sunshine intensity data set and a power sequence data set; S2、基于频域分解构建神经网络模型,所述神经网络模型包括:光照预测模块、功率预测模块以及融合模块;使用所述日照强度数据集和所述功率序列数据集作为训练集训练所述神经网络模型,其中所述日照强度数据集输入所述光照预测模块,所述功率序列数据集输入所述功率预测模块,所述光照预测模块和所述功率预测模块的输出结果一同输入所述融合模块处理;S2. Constructing a neural network model based on frequency domain decomposition, the neural network model comprising: an illumination prediction module, a power prediction module, and a fusion module; using the sunlight intensity data set and the power sequence data set as a training set to train the neural network A network model, wherein the sunshine intensity data set is input into the illumination prediction module, the power sequence data set is input into the power prediction module, and the output results of the illumination prediction module and the power prediction module are input into the fusion module together deal with; S3、数据经所述融合模块处理后将结果输出作为该光伏发电厂的预测光伏发电功率;S3. After the data is processed by the fusion module, the result is output as the predicted photovoltaic power generation power of the photovoltaic power plant; 其中,步骤S2中所述光照预测模块和所述功率预测模块的结构相同,均为两层编码器和一层解码器,数据经两轮编码后输入至解码器,将另外输入解码器中初始化序列加工为最终结果输出至所述融合模块。Wherein, the structure of the illumination prediction module and the power prediction module in step S2 is the same, both of which are two-layer encoder and one-layer decoder. Sequence processing is output to the fusion module as the final result. 2.如权利要求1所述的基于频域分解的光伏发电功率预测方法,其特征在于,所述编码器包括:频率学习模块、周期-趋势分解模块和前向传播模块,各个模块之间残差连接,数据输入编码器后依次经过上述模块处理后输出。2. The photovoltaic power prediction method based on frequency domain decomposition as claimed in claim 1, wherein the encoder comprises: a frequency learning module, a cycle-trend decomposition module and a forward propagation module, and residual Differential connection, after the data is input into the encoder, it is processed by the above modules in turn and then output. 3.如权利要求2所述的基于频域分解的光伏发电功率预测方法,其特征在于,所述编码器处理过程包括:3. the photovoltaic power generation power prediction method based on frequency domain decomposition as claimed in claim 2, is characterized in that, described coder process comprises: 数据首先进入频率学习模块,经过处理得到时序数据,所述时序数据与未处理的数据做残差连接,一并送入周期-趋势分解模块,周期-趋势分解模块对送入的数据分解后得到了时序上的周期分量和趋势分量,舍弃趋势分量后输出周期分量,同样与输入此模块的信号做残差链接,送入前向传播模块;前向传播模块输出的数据与输入他的数据融合后,再进入一个周期-趋势分解模块,丢弃趋势分量后,最终将周期分量作为编码器的结果输出。The data first enters the frequency learning module and is processed to obtain time-series data. The time-series data is residually connected with unprocessed data and sent to the cycle-trend decomposition module. The cycle-trend decomposition module decomposes the input data to obtain The periodic component and trend component in the time series are discarded, and the periodic component is output after discarding the trend component. It is also connected with the signal input to this module by residual link and sent to the forward propagation module; the data output by the forward propagation module is fused with the input data After that, it enters a period-trend decomposition module, discards the trend component, and finally outputs the period component as the result of the encoder. 4.如权利要求1所述的基于频域分解的光伏发电功率预测方法,其特征在于,所述两层编码器分为第一层编码器和第二层编码器,两者结构完全相同,经过两层编码器处理的结果分解为值和键输入所述解码器。4. The method for predicting photovoltaic power generation based on frequency-domain decomposition as claimed in claim 1, wherein the two-layer encoder is divided into a first-layer encoder and a second-layer encoder, both of which are identical in structure, The result processed by the two-layer encoder is decomposed into the value and key input to the decoder. 5.如权利要求1所述的基于频域分解的光伏发电功率预测方法,其特征在于,所述解码器包括:频率学习模块、周期-趋势分解模块、频域注意力模块和前向传播模块,各个模块之间残差连接,数据输入解码器后依次经过上述模块处理后输出。5. The method for predicting photovoltaic power generation based on frequency domain decomposition as claimed in claim 1, wherein the decoder comprises: frequency learning module, cycle-trend decomposition module, frequency domain attention module and forward propagation module , the residual connection between each module, the data is input to the decoder and then processed by the above modules in sequence and then output. 6.如权利要求5所述的基于频域分解的光伏发电功率预测方法,其特征在于,所述解码器处理过程包括:6. the photovoltaic power generation power prediction method based on frequency domain decomposition as claimed in claim 5, is characterized in that, described decoder process comprises: 首先初始化一个周期分量和趋势分量,将初始化后的周期分量输入所述频率学习模块,变换前后的结果做残差链接,然后将连接结果送入周期-趋势分解模块,周期-趋势分解模块输出的趋势分量与初始化趋势做残差链接,结果记为A;周期-趋势分解模块输出的周期分量连同编码器输出的序列一起送入所述频域注意力模块;First initialize a periodic component and a trend component, input the initialized periodic component into the frequency learning module, and make a residual link between the results before and after the transformation, and then send the connection result to the cycle-trend decomposition module, and the output of the cycle-trend decomposition module The trend component is connected to the residual of the initialization trend, and the result is denoted as A; the periodic component output by the cycle-trend decomposition module is sent to the frequency domain attention module together with the sequence output by the encoder; 所述频域注意力模块将处理后的结果与周期-趋势分解模块的输出的结果做残差链接,送入下一个周期-趋势分解模块;周期-趋势分解模块将其分解为周期量和趋势量,周期量进入前向传播模块,趋势量与所述结果A做残差连接,结果记为B;The frequency-domain attention module performs residual linking of the processed result with the output of the cycle-trend decomposition module, and sends it to the next cycle-trend decomposition module; the cycle-trend decomposition module decomposes it into period quantity and trend Quantity, periodic quantity enters the forward propagation module, the trend quantity is connected with the result A by residual error, and the result is recorded as B; 前向传播模块输入与输出的结果做残差连接后送入下一个周期-趋势分解模块,周期-趋势分解模块将其分解为周期量和趋势量,并将趋势量和B做残差连接,结果记为C;The results of the input and output of the forward propagation module are connected by residuals and then sent to the next cycle-trend decomposition module. The cycle-trend decomposition module decomposes it into periodic quantities and trend quantities, and connects the trend quantities with B as residuals. The result is recorded as C; 最终,周期-趋势分解模块分解得到的周期量与趋势量C融合,输出结果至融合模块。Finally, the periodic quantity decomposed by the cycle-trend decomposition module is fused with the trend quantity C, and the result is output to the fusion module. 7.如权利要求1所述的基于频域分解的光伏发电功率预测方法,其特征在于,所述光照预测模块和功率预测模块得到的结果输入所述融合模块,光照预测数据与功率预测数据分别通过高斯窗处理后加权平均,结果一并输入位于融合模块中的前向传播模块,通过全连接层处理后最终输出结果数据。7. The photovoltaic power prediction method based on frequency domain decomposition as claimed in claim 1, wherein the results obtained by the illumination prediction module and the power prediction module are input into the fusion module, and the illumination prediction data and the power prediction data are respectively The weighted average is processed by the Gaussian window, and the results are input to the forward propagation module located in the fusion module, and the final output result data is processed by the fully connected layer. 8.如权利要求7所述的基于频域分解的光伏发电功率预测方法,其特征在于,所述高斯窗处理具体是:8. The method for predicting photovoltaic power generation based on frequency domain decomposition as claimed in claim 7, wherein the Gaussian window processing is specifically:
Figure FDA0003964729750000031
Figure FDA0003964729750000031
其中,n为离散序列数据点的序号,M为窗的宽度。Among them, n is the serial number of discrete sequence data points, and M is the width of the window.
9.如权利要求7所述的基于频域分解的光伏发电功率预测方法,其特征在于,所述加权平均公式为:9. the photovoltaic power generation power prediction method based on frequency domain decomposition as claimed in claim 7, is characterized in that, described weighted average formula is:
Figure FDA0003964729750000032
Figure FDA0003964729750000032
其中,L(n)为输出值即放入全连接层的值,l(n)为原始序列数据点。Among them, L(n) is the output value, that is, the value put into the fully connected layer, and l(n) is the original sequence data point.
CN202211493788.5A 2022-11-25 2022-11-25 A photovoltaic power prediction method based on frequency domain decomposition Withdrawn CN116187498A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211493788.5A CN116187498A (en) 2022-11-25 2022-11-25 A photovoltaic power prediction method based on frequency domain decomposition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211493788.5A CN116187498A (en) 2022-11-25 2022-11-25 A photovoltaic power prediction method based on frequency domain decomposition

Publications (1)

Publication Number Publication Date
CN116187498A true CN116187498A (en) 2023-05-30

Family

ID=86431506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211493788.5A Withdrawn CN116187498A (en) 2022-11-25 2022-11-25 A photovoltaic power prediction method based on frequency domain decomposition

Country Status (1)

Country Link
CN (1) CN116187498A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116415744A (en) * 2023-06-12 2023-07-11 深圳大学 Power prediction method, device and storage medium based on deep learning
CN117131790A (en) * 2023-10-27 2023-11-28 西南石油大学 Photovoltaic module cleaning period prediction method under probability coding and decoding framework

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116415744A (en) * 2023-06-12 2023-07-11 深圳大学 Power prediction method, device and storage medium based on deep learning
CN116415744B (en) * 2023-06-12 2023-09-19 深圳大学 Power prediction method, device and storage medium based on deep learning
CN117131790A (en) * 2023-10-27 2023-11-28 西南石油大学 Photovoltaic module cleaning period prediction method under probability coding and decoding framework
CN117131790B (en) * 2023-10-27 2024-01-23 西南石油大学 Photovoltaic module cleaning period prediction method under probability coding and decoding framework

Similar Documents

Publication Publication Date Title
CN109214575B (en) An ultra-short-term wind power prediction method based on small wavelength short-term memory network
CN116187498A (en) A photovoltaic power prediction method based on frequency domain decomposition
CN111582551B (en) Wind power plant short-term wind speed prediction method and system and electronic equipment
CN111242377A (en) Short-term wind speed prediction method integrating deep learning and data denoising
CN118095891A (en) Active power distribution network payload prediction method and system considering source load meteorological characteristic decoupling
CN116826727B (en) Ultra-short-term wind power prediction method and prediction system based on time sequence representation and multistage attention
CN109376951A (en) A photovoltaic probability prediction method
CN113361782B (en) Short-term rolling forecast method of photovoltaic power generation based on improved MKPLS
CN116451035A (en) A Data Feature Engineering Processing Method to Improve the Prediction Accuracy of Distributed Photovoltaics
CN116885691B (en) Wind power climbing event indirect prediction method
CN114282711A (en) A short-term photovoltaic power generation forecast method incorporating time-frequency analysis
CN117151303B (en) Ultra-short-term solar irradiance prediction method and system based on hybrid model
CN112132344A (en) A Short-Term Wind Power Prediction Method Based on Similar Days and FRS-SVM
CN116995670A (en) Photovoltaic power ultra-short-term prediction method based on multi-mode decomposition and multi-branch input
Li et al. Temporal attention based TCN-BIGRU model for energy time series forecasting
CN116070768A (en) Short-term wind power prediction method based on data reconstruction and TCN-BiLSTM
CN118472943B (en) A short-term wind power forecasting method based on multi-feature fusion period enhancement
CN118194112A (en) Photovoltaic power station abnormality identification method, storage medium and device
CN117650514A (en) Autoformer long-term photovoltaic power prediction method based on SG filtering optimization
CN117335404A (en) CEEMDAN-BiLSTM-based photovoltaic power generation power prediction method
CN117113054A (en) A multivariate time series forecasting method based on graph neural network and Transformer
CN116599036A (en) Two-stage non-invasive load decomposition method based on TCN and Informar
CN107918920A (en) The output correlation analysis method of more photovoltaic plants
CN115545319A (en) A short-term load forecasting method for power grid based on meteorological similar day sets
Jin et al. A hybrid prediction framework based on deep learning for wind power

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20230530

WW01 Invention patent application withdrawn after publication