CN118399378A - Method, apparatus, device, storage medium and program product for predicting generated power - Google Patents
Method, apparatus, device, storage medium and program product for predicting generated power Download PDFInfo
- Publication number
- CN118399378A CN118399378A CN202410373310.1A CN202410373310A CN118399378A CN 118399378 A CN118399378 A CN 118399378A CN 202410373310 A CN202410373310 A CN 202410373310A CN 118399378 A CN118399378 A CN 118399378A
- Authority
- CN
- China
- Prior art keywords
- power generation
- photovoltaic power
- generation data
- data
- historical
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000010248 power generation Methods 0.000 claims abstract description 247
- 238000012545 processing Methods 0.000 claims abstract description 42
- 238000010219 correlation analysis Methods 0.000 claims abstract description 37
- 238000013528 artificial neural network Methods 0.000 claims abstract description 22
- 230000007246 mechanism Effects 0.000 claims abstract description 20
- 238000012549 training Methods 0.000 claims abstract description 4
- 238000004590 computer program Methods 0.000 claims description 37
- 230000000306 recurrent effect Effects 0.000 claims description 27
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 238000004140 cleaning Methods 0.000 claims description 9
- 238000010606 normalization Methods 0.000 claims description 8
- 230000000875 corresponding effect Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000007621 cluster analysis Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- ORILYTVJVMAKLC-UHFFFAOYSA-N Adamantane Natural products C1C(C2)CC3CC1CC2C3 ORILYTVJVMAKLC-UHFFFAOYSA-N 0.000 description 1
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001149 cognitive effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J3/00—Circuit arrangements for AC mains or AC distribution networks
- H02J3/004—Generation forecast, e.g. methods or systems for forecasting future energy generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/10—Pre-processing; Data cleansing
- G06F18/15—Statistical pre-processing, e.g. techniques for normalisation or restoring missing data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/044—Recurrent networks, e.g. Hopfield networks
- G06N3/0442—Recurrent networks, e.g. Hopfield networks characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0464—Convolutional networks [CNN, ConvNet]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J3/00—Circuit arrangements for AC mains or AC distribution networks
- H02J3/38—Arrangements for parallely feeding a single network by two or more generators, converters or transformers
- H02J3/381—Dispersed generators
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J2203/00—Indexing scheme relating to details of circuit arrangements for AC mains or AC distribution networks
- H02J2203/20—Simulating, e g planning, reliability check, modelling or computer assisted design [CAD]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J2300/00—Systems for supplying or distributing electric power characterised by decentralized, dispersed, or local generation
- H02J2300/20—The dispersed energy generation being of renewable origin
- H02J2300/22—The renewable source being solar energy
- H02J2300/24—The renewable source being solar energy of photovoltaic origin
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Molecular Biology (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Power Engineering (AREA)
- Probability & Statistics with Applications (AREA)
- Photovoltaic Devices (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及光伏发电技术领域,特别是涉及一种发电功率预测方法、装置、设备、存储介质和程序产品。The present application relates to the field of photovoltaic power generation technology, and in particular to a method, device, equipment, storage medium and program product for predicting power generation.
背景技术Background technique
近年来,光伏发电迅猛发展,光伏装机容量逐年增加。大力发展光伏等新能源已成为促进能源转型的重要举措。但光伏出力受天气影响极大,具有明显的非线性、波动性和不确定性等特点,并网后会对电网的稳定性、安全性、经济性造成影响。因此对光伏发电量进行准确的预测能有助于规划电网调度计划,减少电网故障,降低损失,对电网优化调度及光伏电站经济运行等具有重要意义。In recent years, photovoltaic power generation has developed rapidly, and photovoltaic installed capacity has increased year by year. Vigorously developing new energy sources such as photovoltaics has become an important measure to promote energy transformation. However, photovoltaic output is greatly affected by the weather, and has obvious nonlinearity, volatility and uncertainty. After being connected to the grid, it will affect the stability, safety and economy of the power grid. Therefore, accurate prediction of photovoltaic power generation can help plan the grid dispatching plan, reduce grid failures, and reduce losses. It is of great significance to the optimization of grid dispatching and the economic operation of photovoltaic power stations.
目前现有技术,对光伏发电的预测是利用数学模型直接进行输出功率预测,常见的有数学统计预测法、人工智能预测法以及混合预测法,但目前的直接预测模型总体复杂度还是相对简单,稳定性较弱,并且光伏发电的历史数据并不规律,使得目前直接预测模型的预测精度并不高。The current existing technology predicts photovoltaic power generation by directly predicting the output power using mathematical models. Common prediction methods include mathematical statistical prediction methods, artificial intelligence prediction methods, and hybrid prediction methods. However, the overall complexity of the current direct prediction model is still relatively simple, the stability is relatively weak, and the historical data of photovoltaic power generation is irregular, which makes the prediction accuracy of the current direct prediction model not high.
发明内容Summary of the invention
基于此,有必要针对上述技术问题,提供一种发电功率预测方法、装置、设备、存储介质和程序产品,能够准确预测发电功率。Based on this, it is necessary to provide a power generation prediction method, device, equipment, storage medium and program product to accurately predict the power generation in response to the above technical problems.
第一方面,本申请提供了一种发电功率预测方法,包括:In a first aspect, the present application provides a method for predicting power generation, comprising:
获取目标区域在目标时段内的目标光伏发电数据;Obtain target photovoltaic power generation data for a target area within a target period;
将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;Input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period;
其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。Among them, the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
在其中一个实施例中,对历史光伏发电数据进行相关性分析和聚类处理,包括:In one embodiment, correlation analysis and clustering processing are performed on historical photovoltaic power generation data, including:
对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标;根据主要气象指标,对各历史光伏发电数据进行聚类处理,得到样本光伏发电数据。The correlation analysis of each historical photovoltaic power generation data is carried out to obtain the main meteorological indicators among each meteorological indicator; according to the main meteorological indicators, the historical photovoltaic power generation data are clustered to obtain sample photovoltaic power generation data.
在其中一个实施例中,对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标,包括:In one embodiment, correlation analysis is performed on each historical photovoltaic power generation data to obtain the main meteorological indicators among the meteorological indicators, including:
根据各历史光伏发电数据中的气象指标数据和发电功率值,确定每一气象指标与发电功率之间的相关系数;根据每一气象指标与发电功率之间的相关系数,从各气象指标中选择主要气象指标。According to the meteorological index data and the power generation value in each historical photovoltaic power generation data, the correlation coefficient between each meteorological index and the power generation is determined; according to the correlation coefficient between each meteorological index and the power generation, the main meteorological index is selected from each meteorological index.
在其中一个实施例中,根据主要气象指标,对各历史光伏发电数据进行聚类处理,得到样本光伏发电数据,包括:In one embodiment, each historical photovoltaic power generation data is clustered according to the main meteorological indicators to obtain sample photovoltaic power generation data, including:
针对每一主要气象指标,对各历史光伏发电数据中该主要气象指标对应的气象指标数据进行聚类处理,得到该主要气象指标对应的聚类处理结果;根据各主要气象指标对应的聚类处理结果,剔除各历史光伏发电数据中的异常数据,得到样本光伏发电数据。For each major meteorological indicator, cluster processing is performed on the meteorological indicator data corresponding to the major meteorological indicator in each historical photovoltaic power generation data to obtain the clustering processing results corresponding to the major meteorological indicator; according to the clustering processing results corresponding to each major meteorological indicator, the abnormal data in each historical photovoltaic power generation data is eliminated to obtain the sample photovoltaic power generation data.
在其中一个实施例中,在对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标之前,包括:In one embodiment, before performing correlation analysis on each historical photovoltaic power generation data to obtain the main meteorological indicators among the meteorological indicators, it includes:
对各历史光伏发电数据进行数据清洗。Perform data cleaning on each historical photovoltaic power generation data.
在其中一个实施例中,循环神经网络包括卷积门控循环单元ConvGRU网络;其中,ConvGRU网络包括ConvGRU层、归一化层、注意力层和全连接层。In one of the embodiments, the recurrent neural network includes a convolutional gated recurrent unit (ConvGRU) network; wherein the ConvGRU network includes a ConvGRU layer, a normalization layer, an attention layer, and a fully connected layer.
第二方面,本申请还提供了一种发电功率预测装置,包括:In a second aspect, the present application also provides a power generation prediction device, comprising:
获取模块,用于获取目标区域在目标时段内的目标光伏发电数据;An acquisition module is used to acquire target photovoltaic power generation data of a target area within a target period of time;
预测模块,用于将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。The prediction module is used to input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period; wherein, the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
第三方面,本申请还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
获取目标区域在目标时段内的目标光伏发电数据;Obtain target photovoltaic power generation data for a target area within a target period;
将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;Input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period;
其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。Among them, the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
第四方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
获取目标区域在目标时段内的目标光伏发电数据;Obtain target photovoltaic power generation data for a target area within a target period;
将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;Input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period;
其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。Among them, the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
第五方面,本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
获取目标区域在目标时段内的目标光伏发电数据;Obtain target photovoltaic power generation data for a target area within a target period;
将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;Input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period;
其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。Among them, the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
上述发电功率预测方法、装置、设备、存储介质和程序产品,通过对历史光伏发电数据进行相关性分析和聚类处理,得到与发电功率相关性较强的高质量数据;进而,使用处理后的数据对功率预测模型进行训练,使得功率预测模型能很好地学习到与发电功率相关数据的特征,从而功率预测模型基于标光伏发电数据能够精准地预测到发电功率值,提高了发电功率预测的准确性。The above-mentioned power generation prediction method, device, equipment, storage medium and program product obtain high-quality data with a strong correlation with power generation by performing correlation analysis and clustering processing on historical photovoltaic power generation data; then, the processed data is used to train the power prediction model, so that the power prediction model can well learn the characteristics of data related to power generation, so that the power prediction model can accurately predict the power generation value based on standard photovoltaic power generation data, thereby improving the accuracy of power generation prediction.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1为本申请实施例中提供的一种发电功率预测方法的应用环境图;FIG1 is an application environment diagram of a power generation prediction method provided in an embodiment of the present application;
图2为本申请实施例中提供的一种发电功率预测方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a power generation prediction method provided in an embodiment of the present application;
图3为本申请实施例中提供的一种注意力机制的结构示意图;FIG3 is a schematic diagram of the structure of an attention mechanism provided in an embodiment of the present application;
图4为本申请实施例中提供的一种功率预测模型的结构示意图;FIG4 is a schematic diagram of the structure of a power prediction model provided in an embodiment of the present application;
图5为本申请实施例中提供的一种进行相关性分析和聚类处理的流程示意图;FIG5 is a schematic diagram of a process for performing correlation analysis and clustering processing provided in an embodiment of the present application;
图6为本申请实施例中提供的一种发电功率预测装置的结构框图;FIG6 is a structural block diagram of a power generation prediction device provided in an embodiment of the present application;
图7为本申请实施例中提供的另一种发电功率预测装置的结构框图;FIG7 is a structural block diagram of another power generation prediction device provided in an embodiment of the present application;
图8为本申请实施例中提供的一种计算机设备的内部结构图。FIG8 is a diagram of the internal structure of a computer device provided in an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
本申请实施例提供的发电功率预测方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104进行通信。服务器104从终端102(传感器)获取各气象指标数据;进一步的,服务器104通过功率预测模型提取各气象指标数据的特征,并基于提取的特征对发电功率值做出预测。数据存储系统可以存储服务器104需要处理的数据。数据存储系统可以集成在服务器104上,也可以放在云上或其他网络服务器上。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备,物联网设备可包括智能车载设备等。服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The power generation prediction method provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The server 104 obtains various meteorological indicator data from the terminal 102 (sensor); further, the server 104 extracts the characteristics of each meteorological indicator data through the power prediction model, and predicts the power generation value based on the extracted characteristics. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and Internet of Things devices may include smart car-mounted devices, etc. The server 104 can be implemented as an independent server or a server cluster consisting of multiple servers.
在一个示例性的实施例中,如图2所示,提供了一种发电功率预测方法,以该方法应用于图1中的服务器104为例进行说明,包括:In an exemplary embodiment, as shown in FIG. 2 , a method for predicting power generation is provided, which is described by taking the method applied to the server 104 in FIG. 1 as an example, and includes:
S201,获取目标区域在目标时段内的目标光伏发电数据。S201, obtaining target photovoltaic power generation data of a target area within a target period of time.
其中,光伏发电数据包括多个气象指标数据。可选的,气象指标数据可通过传感器采集获得;不同的气象指标数据可通过不同的传感器进行采集。The photovoltaic power generation data includes a plurality of meteorological index data. Optionally, the meteorological index data can be acquired through sensor collection; different meteorological index data can be collected through different sensors.
可选的,气象指标数据包括但不限于温度传感器采集的气温数据、风速传感器采集的风速数据、湿度传感器采集的湿度数据,以及辐照度传感器采集的辐照强度数据等。Optionally, the meteorological indicator data includes, but is not limited to, air temperature data collected by a temperature sensor, wind speed data collected by a wind speed sensor, humidity data collected by a humidity sensor, and radiation intensity data collected by an irradiance sensor.
示例性的,目标区域即为部署光伏发电设备的任一区域;目标时段即为对未来发电功率进行预测的参考时段,例如可以为当前时间之前的一段时间,比如可以是24h。Exemplarily, the target area is any area where photovoltaic power generation equipment is deployed; the target period is a reference period for predicting future power generation, for example, it can be a period of time before the current time, such as 24 hours.
例如,对A区域在未来24h-48h的光伏发电功率进行预测,获取A区域在当前时间之前24h内的气象指标数据,例如,气温、风速、湿度、水平辐照度、扩散水平辐照度等气象指标数据。For example, the photovoltaic power generation power of area A in the next 24h-48h is predicted, and the meteorological index data of area A within 24h before the current time is obtained, such as temperature, wind speed, humidity, horizontal irradiance, diffuse horizontal irradiance and other meteorological index data.
S202,将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值。S202, inputting the target photovoltaic power generation data into a power prediction model to obtain the power generation value of the target area in the future period.
其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。其中,历史光伏发电数据包括多个历史时段对应的历史光伏发电数据;每一历史光伏发电数据包括发电功率值和多个气象指标数据。The power prediction model is obtained by training a recurrent neural network with an attention mechanism using sample photovoltaic power generation data; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering on historical photovoltaic power generation data. The historical photovoltaic power generation data includes historical photovoltaic power generation data corresponding to multiple historical periods; each historical photovoltaic power generation data includes power generation value and multiple meteorological indicator data.
可选的,功率预测模型中的循环神经网络包括卷积门控循环单元(ConvolutionalGated Recurrent Unit,ConvGRU)网络;其中,ConvGRU网络包括ConvGRU层、归一化层、注意力层和全连接层。在本申请实施例中,选择Adam优化算法,学习率为0.01,epoch为100。Optionally, the recurrent neural network in the power prediction model includes a convolutional gated recurrent unit (ConvGRU) network; wherein the ConvGRU network includes a ConvGRU layer, a normalization layer, an attention layer, and a fully connected layer. In the embodiment of the present application, the Adam optimization algorithm is selected, the learning rate is 0.01, and the epoch is 100.
需要说明的是,由于ConvGRU网络在面对较长的时序数据时预测精度不高,且容易造成重要特征信息丢失。因此,在ConvGRU网络中引入注意力机制到,强调关键特征信息,避免信息丢失从而提高预测精度。It should be noted that the prediction accuracy of the ConvGRU network is not high when facing long time series data, and it is easy to cause the loss of important feature information. Therefore, the attention mechanism is introduced into the ConvGRU network to emphasize key feature information, avoid information loss and improve prediction accuracy.
示例性的,将目标光伏发电数据输入至功率预测模型,功率预测模型提取目标光伏发电数据的时序特征和空间特征,进一步结合历史光伏发电数据,得到目标区域在未来时段的发电功率预测值。Exemplarily, the target photovoltaic power generation data is input into a power prediction model, which extracts the temporal and spatial characteristics of the target photovoltaic power generation data, and further combines the historical photovoltaic power generation data to obtain the predicted power generation value of the target area in the future period.
上述发电功率预测方法,通过对历史光伏发电数据进行相关性分析和聚类处理,得到与发电功率相关性较强的高质量数据;进而,使用处理后的数据对功率预测模型进行训练,使得功率预测模型能很好地学习到与发电功率相关数据的特征,从而功率预测模型基于光伏发电数据能够精准地预测到发电功率值,提高了发电功率预测的准确性。The above-mentioned power generation prediction method obtains high-quality data with a strong correlation with power generation by performing correlation analysis and clustering processing on historical photovoltaic power generation data; then, the processed data is used to train the power prediction model, so that the power prediction model can well learn the characteristics of data related to power generation, so that the power prediction model can accurately predict the power generation value based on photovoltaic power generation data, thereby improving the accuracy of power generation prediction.
在上述实施例的基础上,可选的,如图3所示,注意力机制是一种模仿认知注意力的机制,可视为由查询(Q)、键(K)和值(V)组成,通过计算得到值的加权和。通过将注意力机制添加到循环神经网络中,可以使注意力对提取到的特征信息赋予不同的权重,从而突出重要信息。其计算过程分为三个阶段:Based on the above embodiment, optionally, as shown in FIG3 , the attention mechanism is a mechanism that imitates cognitive attention, which can be regarded as consisting of a query (Q), a key (K) and a value (V), and the weighted sum of the values is obtained by calculation. By adding the attention mechanism to the recurrent neural network, the attention can be given different weights to the extracted feature information, thereby highlighting important information. The calculation process is divided into three stages:
1)输入Q,通过点积运算,得到注意力向量,详细过程如下所示:1) Input Q and obtain the attention vector through dot product operation. The detailed process is as follows:
(1) (1)
其中,Q为注意力层输入向量(查询向量),Ki为历史光伏发电数据中某些特征的键向量。其中,将Q想象成是由一系列的<K,V>数据对构成。Among them, Q is the attention layer input vector (query vector), and Ki is the key vector of certain features in the historical photovoltaic power generation data. Among them, imagine Q as a series of <K, V> data pairs.
2)在全连接层利用Softmax函数对上一步得到的权重系数进行归一化处理,得到查询向量Q与一组键值对(Ki,Vi)之间的相关性,详细过程如下所示:2) In the fully connected layer, the Softmax function is used to normalize the weight coefficients obtained in the previous step to obtain the correlation between the query vector Q and a set of key-value pairs (K i , V i ). The detailed process is as follows:
(2) (2)
3)通过加权求和,得到对应的注意力权重值,详细过程如下所示:3) Obtain the corresponding attention weight value through weighted summation. The detailed process is as follows:
(3) (3)
进一步的,如图4所示,门控循环单元是循环神经网络(Recurrent NeuralNetwork,RNN)的一种,通过门控机制控制输入、记忆等信息,在当前时间步做出预测。ConvGRU网络是一种具有门控机制的RNN变体,使用重置门和更新门来控制信息的流动,能够有效地提取输入数据的空间和时间特征。Furthermore, as shown in Figure 4, the gated recurrent unit is a type of recurrent neural network (RNN), which controls input, memory and other information through a gating mechanism to make predictions at the current time step. The ConvGRU network is a variant of the RNN with a gating mechanism, which uses reset gates and update gates to control the flow of information and can effectively extract the spatial and temporal features of the input data.
可选的,ConvGRU网络的详细过程如下所示:Optionally, the detailed process of the ConvGRU network is as follows:
(4) (4)
(5) (5)
(6) (6)
(7) (7)
其中,σ为Sigmoid激活函数;*表示卷积操作;⊙表示元素相乘;Rt为重置门;Zt为更新门;Xt为t时刻网络层的输入;Ht-1为t-1时刻的隐藏状态;为候选集;Wxr、Wxz、Wxh、Whr、Whz、Whh为权重;br、bz、bh为偏置。Among them, σ is the Sigmoid activation function; * represents the convolution operation; ⊙ represents element-wise multiplication; R t is the reset gate; Z t is the update gate; X t is the input of the network layer at time t; H t-1 is the hidden state at time t-1; is the candidate set; Wxr , Wxz , Wxh , Whr , Whz , Whh are weights; br , bz , bh are biases.
在上述的实施例的基础上,本申请实施例对上述实施例S202进行详细解释说明。具体的,本申请实施例中涉及对历史光伏发电数据进行相关性分析和聚类处理的过程,如图5所示,具体包括以下步骤:Based on the above embodiment, the present application embodiment explains the above embodiment S202 in detail. Specifically, the present application embodiment involves a process of performing correlation analysis and clustering processing on historical photovoltaic power generation data, as shown in FIG5 , which specifically includes the following steps:
S501,对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标。S501, performing correlation analysis on each historical photovoltaic power generation data to obtain the main meteorological indicators among the meteorological indicators.
其中,历史光伏发电数据包括历史时段内各传感器采集的气象指标数据。Among them, the historical photovoltaic power generation data includes meteorological index data collected by various sensors during the historical period.
需要说明的是,光伏设备是对太阳能进行转化,所以光伏设备的发电功率受天气状况影响。例如,光伏发电功率与气温(摄氏度)、湿度(%)、风速(米/秒)、扩散射辐照度(瓦/平方米)、水平辐照度(瓦/平方米)等气象指标均有一定的关系,但不同的气象指标对发电功率的影响程度不同。因此,需要对各气象指标与发电功率之间的相关性进行分析。It should be noted that photovoltaic equipment converts solar energy, so the power generation of photovoltaic equipment is affected by weather conditions. For example, photovoltaic power generation has a certain relationship with meteorological indicators such as temperature (degrees Celsius), humidity (%), wind speed (m/s), diffuse irradiance (watts/square meter), and horizontal irradiance (watts/square meter), but different meteorological indicators have different degrees of influence on power generation. Therefore, it is necessary to analyze the correlation between various meteorological indicators and power generation.
可选的,本申请实施例的一种可实施方式为:通过相关性分析算法对各历史光伏发电数据进行相关性分析,最终根据相关性分析的结果,确定主要气象指标。Optionally, one possible implementation method of the embodiment of the present application is: performing correlation analysis on various historical photovoltaic power generation data through a correlation analysis algorithm, and finally determining the main meteorological indicators based on the results of the correlation analysis.
本申请实施例的另一种可实施方式为,根据各历史光伏发电数据中的气象指标数据和发电功率值,确定每一气象指标与发电功率之间的相关系数;根据每一气象指标与发电功率之间的相关系数,从各气象指标中选择主要气象指标。Another possible implementation method of the embodiment of the present application is to determine the correlation coefficient between each meteorological indicator and the power generation power based on the meteorological indicator data and the power generation power value in each historical photovoltaic power generation data; and select the main meteorological indicator from each meteorological indicator based on the correlation coefficient between each meteorological indicator and the power generation power.
示例性的,历史光伏发电数据中包含水平辐照度、扩散水平辐照度、风速、风向、湿度、降雨以及气温等气象指标数据,采用Pearson相关系数方法进行相关性分析,计算各气象指标与发电功率之间的相关系数;根据相关系数,选择相关系数较高的气象指标,例如选取相关系数高于系数阈值所对应的气象指标;或者按照相关系数从高到低的顺序,对各气象指标进行排序,选取前10%的气象指标。例如,采用皮尔逊相关系数r(Xi,Y)(i=1,2,...,m)作为相关性分析指标,对m种气象指标Xi(i=1,2,...,m)与发电功率Y之间的相关性进行分析,皮尔逊相关系数计算表达式为:For example, historical photovoltaic power generation data includes meteorological index data such as horizontal irradiance, diffuse horizontal irradiance, wind speed, wind direction, humidity, rainfall, and temperature. The Pearson correlation coefficient method is used for correlation analysis to calculate the correlation coefficient between each meteorological index and the power generation; according to the correlation coefficient, the meteorological index with a higher correlation coefficient is selected, for example, the meteorological index corresponding to the correlation coefficient higher than the coefficient threshold is selected; or the meteorological index is sorted in order from high to low in terms of the correlation coefficient, and the top 10% of the meteorological indexes are selected. For example, the Pearson correlation coefficient r(X i , Y) (i=1, 2, ..., m) is used as a correlation analysis index to analyze the correlation between m meteorological indexes Xi (i=1, 2, ..., m) and the power generation Y. The Pearson correlation coefficient calculation expression is:
(8) (8)
其中,Xi为历史光伏发电数据中第i个气象指标的数据(即气象指标数据);Y为历史光伏发电数据中发电功率值;为第i个气象指标的数据的平均值;为历史光伏发电数据中发电功率值的平均值;N为单个气象指标的数量,即为历史光伏发电数据的组数;其中,将一个历史时段对应的历史光伏发电数据作为一组数据。Among them, Xi is the data of the i-th meteorological index in the historical photovoltaic power generation data (i.e., meteorological index data); Y is the power generation value in the historical photovoltaic power generation data; is the average value of the data of the i-th meteorological index; is the average value of the power generation value in the historical photovoltaic power generation data; N is the number of single meteorological indicators, that is, the number of groups of historical photovoltaic power generation data; among them, the historical photovoltaic power generation data corresponding to a historical period is regarded as a group of data.
需要说明的是,如果r>0,则表明X和Y有着正相关的关系;如果r<0,则表明X和Y呈负相关关系。如果=1,X和Y完全相关,r的绝对值越大,则X和Y的相关性越强。可选的,可以进行进一步的划分,例如,0.8<r<1,代表极强相关性;0.6<r<0.8,代表强相关性;0.4<r<0.6,代表中等相关性;0.2<r<0.4,代表弱相关性;0<r<0.2,代表极弱或无相关性。It should be noted that if r>0, it means that X and Y have a positive correlation; if r<0, it means that X and Y have a negative correlation. =1, X and Y are completely correlated, and the larger the absolute value of r, the stronger the correlation between X and Y. Optionally, further divisions can be made, for example, 0.8<r<1, representing extremely strong correlation; 0.6<r<0.8, representing strong correlation; 0.4<r<0.6, representing moderate correlation; 0.2<r<0.4, representing weak correlation; 0<r<0.2, representing extremely weak or no correlation.
S502,根据主要气象指标,对各历史光伏发电数据进行聚类处理,得到样本光伏发电数据。S502, clustering the historical photovoltaic power generation data according to the main meteorological indicators to obtain sample photovoltaic power generation data.
其中,聚类是按照某个特定标准(例如距离)把一个数据集分割成不同的类或簇,使得同一个簇内的数据对象的相似性尽可能大,同时不在同一个簇中的数据对象的差异性也尽可能地大。Among them, clustering is to divide a data set into different classes or clusters according to a specific standard (such as distance), so that the similarity of data objects in the same cluster is as large as possible, and the difference of data objects in different clusters is as large as possible.
本申请实施例的一种可实施方式为:针对主要气象指标,可以根据主要气象指标数据间的相似度进行度量,将超过距离阈值的指标数据进行剔除处理,以得到样本光伏发电数据。One possible implementation method of the embodiment of the present application is: for the main meteorological indicators, the similarity between the main meteorological indicator data can be measured, and the indicator data exceeding the distance threshold can be eliminated to obtain sample photovoltaic power generation data.
本申请实施例的另一种可实施方式为:针对每一主要气象指标,对各历史光伏发电数据中该主要气象指标对应的气象指标数据进行聚类处理,得到该主要气象指标对应的聚类处理结果;根据各主要气象指标对应的聚类处理结果,剔除各历史光伏发电数据中的异常数据,得到样本光伏发电数据。Another possible implementation method of the embodiment of the present application is: for each main meteorological indicator, clustering processing is performed on the meteorological indicator data corresponding to the main meteorological indicator in each historical photovoltaic power generation data to obtain the clustering processing result corresponding to the main meteorological indicator; according to the clustering processing results corresponding to each main meteorological indicator, the abnormal data in each historical photovoltaic power generation data is eliminated to obtain sample photovoltaic power generation data.
示例性的,根据主要气象指标,对各历史光伏发电数据进行基于密度的噪声应用空间聚类分析(Density-Based Spatial Clustering of Applications with Noise,DBSCAN),确定DBSCAN聚类分析中的领域半径和最小样本数的参数值,根据距离度量公式和核心点,对主要气象指标的各历史光伏发电数据进行遍历,将数据中的孤立点、离散点等异常点识别出来,并进行剔除,最终得到样本光伏发电数据。Exemplarily, based on the main meteorological indicators, density-based spatial clustering analysis of applications with noise (DBSCAN) is performed on each historical photovoltaic power generation data, and the parameter values of the domain radius and the minimum number of samples in the DBSCAN cluster analysis are determined. According to the distance measurement formula and the core points, the historical photovoltaic power generation data of the main meteorological indicators are traversed, and abnormal points such as isolated points and discrete points in the data are identified and eliminated, so as to finally obtain sample photovoltaic power generation data.
在本申请实施例中,通过对各气象指标与发电功率之间的相关性进行分析,对各气象指标进行筛选,选取对发电功率影响较大的气象指标;进一步的,针对筛选后得到的各气象指标,进行聚类分析,将数据中的异常值进行剔除,保证了样本光伏发电数据的有效性和高质量。In an embodiment of the present application, the correlation between each meteorological indicator and the power generation is analyzed, each meteorological indicator is screened, and the meteorological indicators with a greater impact on the power generation are selected; further, a cluster analysis is performed on each meteorological indicator obtained after the screening, and outliers in the data are eliminated, thereby ensuring the validity and high quality of the sample photovoltaic power generation data.
在上述的实施例的基础上,本申请实施例在对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标之前,具体还包括:对各历史光伏发电数据进行数据清洗。其中,数据清洗包括处理缺失数据、异常值和噪声,以及进行归一化或标准化等操作。On the basis of the above-mentioned embodiments, before the correlation analysis of each historical photovoltaic power generation data is performed to obtain the main meteorological indicators in each meteorological indicator, the embodiment of the present application specifically further includes: data cleaning of each historical photovoltaic power generation data. Among them, data cleaning includes processing missing data, outliers and noise, and performing normalization or standardization operations.
需要说明的是,由于设备老化、系统故障或人为因素等特殊情况,会出现传感器记录的数据存在异常值和缺失值等情况。It should be noted that due to special circumstances such as equipment aging, system failure or human factors, the data recorded by the sensor may contain abnormal values and missing values.
具体的,可以选择使用均值、中位数和使用插值方法进行填充缺失值,及时剔除或修正重复值和错误值;或者,可以将空白值删去,将非数值统一设置为0;或者可以通过算法对数据进行数据清洗,例如,孤立森林(Isolation Forest,iForest)算法;再统一对数据进行标准化和归一化,以保证数据的质量和准确性。Specifically, you can choose to use the mean, median, and interpolation methods to fill missing values, and promptly remove or correct duplicate values and erroneous values; or, you can delete blank values and set non-numeric values to 0; or you can use algorithms to clean the data, such as the Isolation Forest (iForest) algorithm; and then standardize and normalize the data to ensure the quality and accuracy of the data.
在本申请实施例中,通过预先对各历史光伏发电数据进行数据清洗,在一定程度上提高了数据的质量和准确性。In the embodiment of the present application, by pre-cleaning the historical photovoltaic power generation data, the quality and accuracy of the data are improved to a certain extent.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的发电功率预测方法的发电功率预测装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个发电功率预测装置实施例中的具体限定可以参见上文中对于发电功率预测方法的限定,在此不再赘述。Based on the same inventive concept, the embodiment of the present application also provides a power generation prediction device for implementing the power generation prediction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more power generation prediction device embodiments provided below can refer to the limitations of the power generation prediction method above, and will not be repeated here.
在一个示例性的实施例中,如图6所示,提供了一种发电功率预测装置1,包括:获取模块10和预测模块20,其中:In an exemplary embodiment, as shown in FIG6 , a power generation prediction device 1 is provided, comprising: an acquisition module 10 and a prediction module 20, wherein:
获取模块10,用于获取目标区域在目标时段内的目标光伏发电数据。The acquisition module 10 is used to acquire target photovoltaic power generation data of a target area within a target period of time.
预测模块20,用于将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。The prediction module 20 is used to input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period; wherein the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
在一个实施例中,如图7所示,预测模块20具体还包括:In one embodiment, as shown in FIG7 , the prediction module 20 specifically further includes:
相关分析单元21,用于对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标。The correlation analysis unit 21 is used to perform correlation analysis on each historical photovoltaic power generation data to obtain the main meteorological indicators among the meteorological indicators.
聚类处理单元22,用于根据主要气象指标,对各历史光伏发电数据进行聚类处理,得到样本光伏发电数据。The clustering processing unit 22 is used to perform clustering processing on each historical photovoltaic power generation data according to the main meteorological indicators to obtain sample photovoltaic power generation data.
在一个实施例中,相关分析单元21具体还用于:In one embodiment, the correlation analysis unit 21 is further configured to:
根据各历史光伏发电数据中的气象指标数据和发电功率值,确定每一气象指标与发电功率之间的相关系数;根据每一气象指标与发电功率之间的相关系数,从各气象指标中选择主要气象指标。According to the meteorological index data and the power generation value in each historical photovoltaic power generation data, the correlation coefficient between each meteorological index and the power generation is determined; according to the correlation coefficient between each meteorological index and the power generation, the main meteorological index is selected from each meteorological index.
在一个实施例中,聚类处理单元22具体用于:In one embodiment, the clustering processing unit 22 is specifically used for:
针对每一主要气象指标,对各历史光伏发电数据中该主要气象指标对应的气象指标数据进行聚类处理,得到该主要气象指标对应的聚类处理结果;根据各主要气象指标对应的聚类处理结果,剔除各历史光伏发电数据中的异常数据,得到样本光伏发电数据。For each major meteorological indicator, cluster processing is performed on the meteorological indicator data corresponding to the major meteorological indicator in each historical photovoltaic power generation data to obtain the clustering processing results corresponding to the major meteorological indicator; according to the clustering processing results corresponding to each major meteorological indicator, the abnormal data in each historical photovoltaic power generation data is eliminated to obtain the sample photovoltaic power generation data.
在一个实施例中,发电功率预测装置1具体还包括:In one embodiment, the power generation prediction device 1 specifically further includes:
清洗单元,用于对各历史光伏发电数据进行数据清洗。The cleaning unit is used to clean the historical photovoltaic power generation data.
在一个实施例中,循环神经网络包括卷积门控循环单元ConvGRU网络,其中,ConvGRU网络包括ConvGRU层、批归一化层、注意力层和全连接层。In one embodiment, the recurrent neural network includes a convolutional gated recurrent unit (ConvGRU) network, wherein the ConvGRU network includes a ConvGRU layer, a batch normalization layer, an attention layer, and a fully connected layer.
上述发电功率预测装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned power generation prediction device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
在一个示例性的实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图8所示。该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储发电功率预测数据。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种发电功率预测方法。In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG8. The computer device includes a processor, a memory, an input/output interface (Input/Output, referred to as I/O) and a communication interface. The processor, the memory and the input/output interface are connected via a system bus, and the communication interface is connected to the system bus via the input/output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store power generation prediction data. The input/output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a power generation prediction method is implemented.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 8 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
在一个示例性的实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
获取目标区域在目标时段内的目标光伏发电数据;Obtain target photovoltaic power generation data for a target area within a target period;
将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;Input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period;
其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。Among them, the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标;根据主要气象指标,对各历史光伏发电数据进行聚类处理,得到样本光伏发电数据。The correlation analysis of each historical photovoltaic power generation data is carried out to obtain the main meteorological indicators among each meteorological indicator; according to the main meteorological indicators, the historical photovoltaic power generation data are clustered to obtain sample photovoltaic power generation data.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
根据各历史光伏发电数据中的气象指标数据和发电功率值,确定每一气象指标与发电功率之间的相关系数;根据每一气象指标与发电功率之间的相关系数,从各气象指标中选择主要气象指标。According to the meteorological index data and the power generation value in each historical photovoltaic power generation data, the correlation coefficient between each meteorological index and the power generation is determined; according to the correlation coefficient between each meteorological index and the power generation, the main meteorological index is selected from each meteorological index.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
针对每一主要气象指标,对各历史光伏发电数据中该主要气象指标对应的气象指标数据进行聚类处理,得到该主要气象指标对应的聚类处理结果;根据各主要气象指标对应的聚类处理结果,剔除各历史光伏发电数据中的异常数据,得到样本光伏发电数据。For each major meteorological indicator, cluster processing is performed on the meteorological indicator data corresponding to the major meteorological indicator in each historical photovoltaic power generation data to obtain the clustering processing results corresponding to the major meteorological indicator; according to the clustering processing results corresponding to each major meteorological indicator, the abnormal data in each historical photovoltaic power generation data is eliminated to obtain the sample photovoltaic power generation data.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
对各历史光伏发电数据进行数据清洗。Perform data cleaning on each historical photovoltaic power generation data.
在一个实施例中,循环神经网络包括卷积门控循环单元ConvGRU网络,其中,ConvGRU网络包括ConvGRU层、批归一化层、注意力层和全连接层。。In one embodiment, the recurrent neural network includes a convolutional gated recurrent unit (ConvGRU) network, wherein the ConvGRU network includes a ConvGRU layer, a batch normalization layer, an attention layer, and a fully connected layer.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取目标区域在目标时段内的目标光伏发电数据;Obtain target photovoltaic power generation data for a target area within a target period;
将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;Input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period;
其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。Among them, the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标;根据主要气象指标,对各历史光伏发电数据进行聚类处理,得到样本光伏发电数据。The correlation analysis of each historical photovoltaic power generation data is carried out to obtain the main meteorological indicators among each meteorological indicator; according to the main meteorological indicators, the historical photovoltaic power generation data are clustered to obtain sample photovoltaic power generation data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
根据各历史光伏发电数据中的气象指标数据和发电功率值,确定每一气象指标与发电功率之间的相关系数;根据每一气象指标与发电功率之间的相关系数,从各气象指标中选择主要气象指标。According to the meteorological index data and the power generation value in each historical photovoltaic power generation data, the correlation coefficient between each meteorological index and the power generation is determined; according to the correlation coefficient between each meteorological index and the power generation, the main meteorological index is selected from each meteorological index.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
针对每一主要气象指标,对各历史光伏发电数据中该主要气象指标对应的气象指标数据进行聚类处理,得到该主要气象指标对应的聚类处理结果;根据各主要气象指标对应的聚类处理结果,剔除各历史光伏发电数据中的异常数据,得到样本光伏发电数据。For each major meteorological indicator, cluster processing is performed on the meteorological indicator data corresponding to the major meteorological indicator in each historical photovoltaic power generation data to obtain the clustering processing results corresponding to the major meteorological indicator; according to the clustering processing results corresponding to each major meteorological indicator, the abnormal data in each historical photovoltaic power generation data is eliminated to obtain the sample photovoltaic power generation data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
对各历史光伏发电数据进行数据清洗。Perform data cleaning on each historical photovoltaic power generation data.
在一个实施例中,循环神经网络包括卷积门控循环单元ConvGRU网络,其中,ConvGRU网络包括ConvGRU层、批归一化层、注意力层和全连接层。In one embodiment, the recurrent neural network includes a convolutional gated recurrent unit (ConvGRU) network, wherein the ConvGRU network includes a ConvGRU layer, a batch normalization layer, an attention layer, and a fully connected layer.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
获取目标区域在目标时段内的目标光伏发电数据;Obtain target photovoltaic power generation data for a target area within a target period;
将目标光伏发电数据输入至功率预测模型,得到目标区域在未来时段的发电功率值;Input the target photovoltaic power generation data into the power prediction model to obtain the power generation value of the target area in the future period;
其中,功率预测模型是采用样本光伏发电数据,对包含注意力机制的循环神经网络进行训练得到的;样本光伏发电数据是对历史光伏发电数据进行相关性分析和聚类处理得到的。Among them, the power prediction model is obtained by using sample photovoltaic power generation data to train a recurrent neural network including an attention mechanism; the sample photovoltaic power generation data is obtained by performing correlation analysis and clustering processing on historical photovoltaic power generation data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
对各历史光伏发电数据进行相关性分析,得到各气象指标中的主要气象指标;根据主要气象指标,对各历史光伏发电数据进行聚类处理,得到样本光伏发电数据。The correlation analysis of each historical photovoltaic power generation data is carried out to obtain the main meteorological indicators among each meteorological indicator; according to the main meteorological indicators, the historical photovoltaic power generation data are clustered to obtain sample photovoltaic power generation data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
根据各历史光伏发电数据中的气象指标数据和发电功率值,确定每一气象指标与发电功率之间的相关系数;根据每一气象指标与发电功率之间的相关系数,从各气象指标中选择主要气象指标。According to the meteorological index data and the power generation value in each historical photovoltaic power generation data, the correlation coefficient between each meteorological index and the power generation is determined; according to the correlation coefficient between each meteorological index and the power generation, the main meteorological index is selected from each meteorological index.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
针对每一主要气象指标,对各历史光伏发电数据中该主要气象指标对应的气象指标数据进行聚类处理,得到该主要气象指标对应的聚类处理结果;根据各主要气象指标对应的聚类处理结果,剔除各历史光伏发电数据中的异常数据,得到样本光伏发电数据。For each major meteorological indicator, cluster processing is performed on the meteorological indicator data corresponding to the major meteorological indicator in each historical photovoltaic power generation data to obtain the clustering processing results corresponding to the major meteorological indicator; according to the clustering processing results corresponding to each major meteorological indicator, the abnormal data in each historical photovoltaic power generation data is eliminated to obtain the sample photovoltaic power generation data.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
对各历史光伏发电数据进行数据清洗。Perform data cleaning on each historical photovoltaic power generation data.
在一个实施例中,循环神经网络包括卷积门控循环单元ConvGRU网络,其中,ConvGRU网络包括ConvGRU层、批归一化层、注意力层和全连接层。In one embodiment, the recurrent neural network includes a convolutional gated recurrent unit (ConvGRU) network, wherein the ConvGRU network includes a ConvGRU layer, a batch normalization layer, an attention layer, and a fully connected layer.
需要说明的是,本申请所涉及的区域信息(包括但不限于区域内设备信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经区域授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要符合相关规定。It should be noted that the regional information (including but not limited to equipment information within the region, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the region or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410373310.1A CN118399378A (en) | 2024-03-29 | 2024-03-29 | Method, apparatus, device, storage medium and program product for predicting generated power |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410373310.1A CN118399378A (en) | 2024-03-29 | 2024-03-29 | Method, apparatus, device, storage medium and program product for predicting generated power |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118399378A true CN118399378A (en) | 2024-07-26 |
Family
ID=91983847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410373310.1A Pending CN118399378A (en) | 2024-03-29 | 2024-03-29 | Method, apparatus, device, storage medium and program product for predicting generated power |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118399378A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118981609A (en) * | 2024-10-18 | 2024-11-19 | 云鹰智维能源科技有限公司 | Photovoltaic power station operation data cleaning method and system |
-
2024
- 2024-03-29 CN CN202410373310.1A patent/CN118399378A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118981609A (en) * | 2024-10-18 | 2024-11-19 | 云鹰智维能源科技有限公司 | Photovoltaic power station operation data cleaning method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111091233B (en) | Short-term wind power prediction modeling method for wind power plant | |
Li et al. | An integrated missing-data tolerant model for probabilistic PV power generation forecasting | |
CN108280551B (en) | Photovoltaic power generation power prediction method utilizing long-term and short-term memory network | |
Li et al. | An ensemble approach for short-term load forecasting by extreme learning machine | |
Bhardwaj et al. | Estimation of solar radiation using a combination of Hidden Markov Model and generalized Fuzzy model | |
CN113554466B (en) | Short-term electricity consumption prediction model construction method, prediction method and device | |
CN109829587A (en) | Zonule grade ultra-short term and method for visualizing based on depth LSTM network | |
CN111814956B (en) | A multi-task learning air quality prediction method based on multi-dimensional quadratic feature extraction | |
CN111985719B (en) | Power load prediction method based on improved long-term and short-term memory network | |
Yu et al. | Improved convolutional neural network‐based quantile regression for regional photovoltaic generation probabilistic forecast | |
CN112598248A (en) | Load prediction method, load prediction device, computer equipment and storage medium | |
CN115600498A (en) | A Wind Speed Forecast Correction Method Based on Artificial Neural Network | |
CN117851802A (en) | Water quality prediction method and device and computer readable storage medium | |
CN117541291A (en) | An electricity price prediction method and system based on EMD decomposition and SSA-SVM model | |
Wibawa et al. | Long Short-Term Memory to Predict Unique Visitors of an Electronic Journal | |
CN118399378A (en) | Method, apparatus, device, storage medium and program product for predicting generated power | |
Khetarpal et al. | Power quality disturbance signal segmentation and classification based on modified BI‐LSTM with double attention mechanism | |
Khan et al. | Forecasting renewable energy for environmental resilience through computational intelligence | |
Singh et al. | A federated and transfer learning based approach for households load forecasting | |
CN114784795A (en) | Wind power prediction method, device, electronic device and storage medium | |
CN115389743A (en) | A method, medium and system for predicting the content interval of dissolved gas in transformer oil | |
Ibrahim et al. | LSTM neural network model for ultra-short-term distribution zone substation peak demand prediction | |
Li et al. | Hybrid model for wind power estimation based on BIGRU network and error discrimination‐correction | |
Yalçın | Weather parameters forecasting with time series using deep hybrid neural networks | |
Zhang et al. | Multiscale spatio-temporal enhanced short-term load forecasting of electric vehicle charging stations |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |