CN114386324A - Ultra-short-term wind power segmented prediction method based on turning period identification - Google Patents
Ultra-short-term wind power segmented prediction method based on turning period identification Download PDFInfo
- Publication number
- CN114386324A CN114386324A CN202111609901.7A CN202111609901A CN114386324A CN 114386324 A CN114386324 A CN 114386324A CN 202111609901 A CN202111609901 A CN 202111609901A CN 114386324 A CN114386324 A CN 114386324A
- Authority
- CN
- China
- Prior art keywords
- prediction
- turning
- wind power
- window
- short
- 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 79
- 238000001514 detection method Methods 0.000 claims abstract description 30
- 230000008859 change Effects 0.000 claims abstract description 17
- 239000000284 extract Substances 0.000 claims abstract description 15
- 230000007246 mechanism Effects 0.000 claims abstract description 15
- 238000009499 grossing Methods 0.000 claims abstract description 5
- 230000035772 mutation Effects 0.000 claims description 28
- 238000012549 training Methods 0.000 claims description 17
- 239000013598 vector Substances 0.000 claims description 13
- 238000013528 artificial neural network Methods 0.000 claims description 12
- 230000014509 gene expression Effects 0.000 claims description 12
- 230000007704 transition Effects 0.000 claims description 12
- 238000000605 extraction Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 claims description 9
- 230000003044 adaptive effect Effects 0.000 claims description 8
- 238000010200 validation analysis Methods 0.000 claims description 8
- 238000003062 neural network model Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000011161 development Methods 0.000 claims description 4
- 230000010355 oscillation Effects 0.000 claims description 4
- 239000011159 matrix material Substances 0.000 claims description 3
- 230000008901 benefit Effects 0.000 abstract description 2
- 238000012935 Averaging Methods 0.000 abstract 1
- 230000011218 segmentation Effects 0.000 abstract 1
- 238000013277 forecasting method Methods 0.000 description 5
- 230000007423 decrease Effects 0.000 description 3
- 238000012850 discrimination method Methods 0.000 description 3
- 230000009194 climbing Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 206010064571 Gene mutation Diseases 0.000 description 1
- 101000711793 Homo sapiens SOSS complex subunit C Proteins 0.000 description 1
- 238000000342 Monte Carlo simulation Methods 0.000 description 1
- 102100034200 SOSS complex subunit C Human genes 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000002860 competitive effect Effects 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 230000000306 recurrent effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2113/00—Details relating to the application field
- G06F2113/06—Wind turbines or wind farms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/02—Reliability analysis or reliability optimisation; Failure analysis, e.g. worst case scenario performance, failure mode and effects analysis [FMEA]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Evolutionary Computation (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Geometry (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Algebra (AREA)
- Computational Mathematics (AREA)
- Computer Hardware Design (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Medical Informatics (AREA)
- Pure & Applied Mathematics (AREA)
- Databases & Information Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及高集中度风电场超短期风电功率预测技术领域,尤其是涉及一种基于转折性时段识别的超短期风电功率分段预测方法。The invention relates to the technical field of ultra-short-term wind power prediction of high-concentration wind farms, in particular to a sub-section prediction method of ultra-short-term wind power based on turning period identification.
背景技术Background technique
近年来,随着风电大规模、高集中度的发展,接入电网的风电比重日益增加。但伴随着极端天气的频繁发生,其引起的大幅风速波动可能导致潜在的灾难,特别是在大容量风电场。为了及时制定有效的防控策略,提前预测极端天气下的风电功率显得尤为重要。极端天气对风电场的影响直观体现为短时内风速的重大变化,极端天气功率时段在时序尺度上表现为功率大幅度激烈波动的特征,识别并提取极端天气功率时段成为首要任务。In recent years, with the development of large-scale and high-concentration wind power, the proportion of wind power connected to the power grid is increasing. But with the frequent occurrence of extreme weather, the large wind speed fluctuations caused by it can lead to potential disaster, especially in large-capacity wind farms. In order to formulate effective prevention and control strategies in time, it is particularly important to predict wind power in extreme weather in advance. The impact of extreme weather on wind farms is intuitively reflected in the significant changes in wind speed in a short period of time. The extreme weather power periods are characterized by large and violent power fluctuations on the time series scale. Identifying and extracting extreme weather power periods has become the primary task.
在以转折性天气为代表的极端气象条件下,风电功率在短时间内呈现剧烈波动。现有超短期风电功率单值预测方法缺乏针对极端天气的预测模型,导致预测精度与稳定性较差;其次针对平缓功率时段,传统单值预测方法具有更高的预测精度,针对极端天气功率时段,概率预测方法因能量化预测误差而具有更佳的预测性能,现有方法缺乏基于极端天气时段的预测方法优选策略,无法在全时段兼具单值预测与概率预测的优点。因此,针对传统的“简单气象模式”下的预测需进一步寻找适合“复杂气象模式”下的超短期风电功率预测方法。特别地,应考虑结合转折性天气特性并构建自适应功率突变识别机制,进一步提升模型的泛化能力。Under extreme meteorological conditions represented by transitional weather, wind power fluctuates violently in a short period of time. Existing ultra-short-term wind power single-value forecasting methods lack a forecasting model for extreme weather, resulting in poor forecast accuracy and stability; secondly, for gentle power periods, traditional single-value forecasting methods have higher prediction accuracy, and for extreme weather power periods , the probabilistic prediction method has better prediction performance because it can quantify the prediction error. The existing method lacks the optimal strategy of prediction method based on extreme weather period, and cannot combine the advantages of single-value prediction and probability prediction in the whole period. Therefore, it is necessary to further search for ultra-short-term wind power prediction methods suitable for the "complex meteorological model" for forecasting under the traditional "simple weather model". In particular, it should be considered to combine the transitional weather characteristics and build an adaptive power mutation identification mechanism to further improve the generalization ability of the model.
当前针对转折性天气下的风电功率突变研究尚局限于对风电爬坡事件描述与预测,现有技术主要采用的方法有:通过多目标适应度函数的遗传算法对概率生成模型参数进行迭代寻优,得到大量预测场景,并通过场景捕捉带内挖掘出的爬坡事件概率特征评价该预测方法,但是该模型尚需要提高在极端天气下的鲁棒性;基于事件检测框架,采用数据驱动算法提高预测精度,但是该模型中功率爬坡事件依然使用传统评价指标,对伪拐点等干扰因素缺乏灵活应对能力;通过集成学习方法不断调整,生成概率预测以量化预测的不确定因素,然而该方法缺乏对风电爬坡事件的精准检测与识别方法,未突出模型在极端天气下的精度改进。综上所述,考虑风电功率突变时段的检测识别与超前预测已取得初步研究成果,但是在突变时段精细化识别等方面仍有一定的提升空间。At present, the research on the sudden change of wind power under transitional weather is still limited to the description and prediction of wind power climbing events. The main methods used in the existing technology are: iterative optimization of the parameters of the probability generation model through the genetic algorithm of the multi-objective fitness function. , obtain a large number of prediction scenarios, and evaluate the prediction method through the probability features of climbing events excavated in the scene capture band, but the model still needs to improve the robustness in extreme weather; based on the event detection framework, data-driven algorithms are used to improve However, the power ramp event in this model still uses the traditional evaluation index, and lacks flexible response ability to interference factors such as pseudo-inflection points; through the continuous adjustment of the integrated learning method, probabilistic prediction is generated to quantify the uncertain factors of the prediction, but this method lacks The accurate detection and identification method of wind power ramping events does not highlight the accuracy improvement of the model under extreme weather. In summary, preliminary research results have been achieved in the detection, identification and advance prediction of wind power sudden change periods, but there is still room for improvement in refined identification of sudden change periods.
发明内容SUMMARY OF THE INVENTION
本发明的目的就是为了克服上述现有技术存在的缺陷而提供一种基于转折性时段识别的超短期风电功率分段预测方法。The purpose of the present invention is to provide a segmented prediction method for ultra-short-term wind power based on the identification of turning points in order to overcome the above-mentioned defects of the prior art.
本发明的目的可以通过以下技术方案来实现:The object of the present invention can be realized through the following technical solutions:
一种基于转折性时段识别的超短期风电功率分段预测方法,包括下列步骤:A method for segmented forecasting of ultra-short-term wind power based on identification of turning period, comprising the following steps:
1)提取时序趋势,求取表征风电场原始风电数据的短期发展趋势的EMA曲线,采用高斯窗法进行平滑处理后求取各时刻变化率为α;1) Extract the time series trend, obtain the EMA curve representing the short-term development trend of the original wind power data of the wind farm, and use the Gaussian window method for smoothing to obtain the change rate α at each time;
2)基于步骤1)得到的EMA曲线,利用EMA曲线局部特征差异制定窗口调整策略,设定检测阈值ε,若窗口与其前一窗口之间分布差异波动小于该检测阈值ε,则扩大窗宽加快检测速度,否则,缩小窗宽以提升检测精度;2) Based on the EMA curve obtained in step 1), use the local feature difference of the EMA curve to formulate a window adjustment strategy, and set the detection threshold ε. If the fluctuation of the distribution difference between the window and its previous window is less than the detection threshold ε, the window width will be expanded to speed up. Detection speed, otherwise, reduce the window width to improve detection accuracy;
3)基于步骤2)制定的局部特征差异的窗口调整策略,利用步骤1)求取的α作为判据之一,标记两个窗口内均值出现极小值的位置为拐点;3) based on the window adjustment strategy of the local feature difference formulated in step 2), use the α obtained in step 1) as one of the criteria, and mark the position where the mean value in the two windows has a minimum value as an inflection point;
4)改进传统功率突变时段判据,合并相邻同趋势突变时段,完整提取转折性天气突变时段;4) Improve the traditional power mutation period criteria, merge adjacent same-trend mutation periods, and completely extract the turning weather mutation period;
5)依据自适应转折时段提取结果为划分依据,将时序划分为转折段与平缓段;5) According to the extraction result of the adaptive turning period as the division basis, the time sequence is divided into turning sections and smooth sections;
6)对平缓段采用点预测,采用GRU作为点预测的原始算法,引入结合CRS算法的改进Attention机制,将神经网络模型的过渡特征向量赋予不同的权重,随后将注意力权重传输到GRU层,输出GRU神经网络的训练结果,读取训练损失曲线、误差曲线,观察收敛过程中训练集、验证集损失曲线纵向间距,结合训练集、验证集绝对误差情况,直观评估网络预测结果收敛性能;6) Using point prediction for the flat segment, using GRU as the original algorithm for point prediction, introducing an improved Attention mechanism combined with the CRS algorithm, assigning different weights to the transition feature vectors of the neural network model, and then transferring the attention weights to the GRU layer, Output the training results of the GRU neural network, read the training loss curve and error curve, observe the longitudinal distance between the loss curves of the training set and the validation set during the convergence process, and visually evaluate the convergence performance of the network prediction results based on the absolute error of the training set and the validation set;
7)对转折段采用概率预测,采用时序模式-自适应带宽核密度估计法概率预测;7) Probabilistic prediction is used for the turning section, and the time series mode-adaptive bandwidth kernel density estimation method is used for probability prediction;
8)将步骤6)和步骤7)组合完成基于转折性时段的超短期风电功率预测,获取预测功率。8) Combining steps 6) and 7) to complete the ultra-short-term wind power prediction based on the transition period, and obtain the predicted power.
进一步地,步骤1)中,利用移动均线法提取时序趋势。Further, in step 1), the time series trend is extracted by using the moving average method.
进一步地,步骤2)中,利用EMA曲线局部特征差异制定窗口调整策略的具体步骤包括:Further, in step 2), the specific steps of formulating the window adjustment strategy by utilizing the local feature difference of the EMA curve include:
21)将原始功率时序切分为若干片段,对每个片段进行转折点检测;21) Divide the original power sequence into several segments, and perform turning point detection on each segment;
22)在转折点检测中,定义diffi为度量第i个窗口与前一窗口的分布差异波动情况,记为其中Vsi为待检测数据的第i个窗口数据数据分布的均值波动,Dsi为差值波动;22) In turning point detection, define diff i to measure the fluctuation of the distribution difference between the i-th window and the previous window, denoted as Wherein Vs i is the mean fluctuation of the data distribution of the i-th window data of the data to be detected, and Ds i is the difference fluctuation;
23)设定阈值ε,若diffi的值小于或等于阈值ε,则扩大滑动窗宽W,增加检测速度;若diffi的值大于ε,则缩小滑动窗宽W,提升检测精度。23) Set the threshold ε, if the value of diff i is less than or equal to the threshold ε, expand the sliding window width W to increase the detection speed; if the value of diff i is greater than ε, reduce the sliding window width W to improve the detection accuracy.
进一步地,步骤3)中,采用双重定时间滑动窗进行拐点检测。具体内容为:Further, in step 3), double fixed-time sliding windows are used to detect inflection points. The specific contents are:
首先引入步骤1)求取的各时刻变化率α作为判据之一,设定拐点满足条件α=0;基于EMA曲线,建立两个紧密相连的滑动窗口,逐帧更新两个窗口内的数据,标记两个窗口内均值差别达到最小时的结合点处的功率值为拐点,重复上述步骤,获取相应的时序趋势拐点集Tip。First, the change rate α obtained in step 1) is introduced as one of the criteria, and the inflection point is set to satisfy the condition α=0; based on the EMA curve, two closely connected sliding windows are established, and the data in the two windows are updated frame by frame. , mark the power value at the junction point when the mean difference in the two windows reaches the minimum as the inflection point, and repeat the above steps to obtain the corresponding time series trend inflection point set T ip .
进一步地,步骤4)中,改进的突变时段判据的表达式为:Further, in step 4), the expression of the improved mutation period criterion is:
式中,为拐点集Tip中第j点功率值;为拐点集Tip中第j+1点功率值;为拐点集Tip中经过第j点时刻;为拐点集Tip中经过第j+1点的时刻;λ为转折时段突变幅度阈值;β为转折时段突变速率阈值;合并相邻同趋势的突变时段,以完整提取转折时段。In the formula, is the power value of the jth point in the inflection point set Tip ; is the power value of the j+1th point in the inflection point set T ip ; is the moment passing through the jth point in the inflection point set T ip ; is the time passing through the j+1th point in the inflection point set T ip ; λ is the threshold of mutation amplitude in the turning period; β is the threshold of mutation rate in the turning period; the adjacent mutation periods with the same trend are merged to completely extract the turning period.
进一步地,步骤6)中,GRU神经网络的数学表达式为:Further, in step 6), the mathematical expression of GRU neural network is:
zt=σ(Wz·[ht-1,xt])z t =σ(W z ·[h t-1 ,x t ])
rt=σ(Wr·[ht-1,xt])r t =σ(W r ·[h t-1 ,x t ])
式中:zt为更新门,rt为重置门,Xt为当前输入,为输入和过去隐层状态的汇总,ht为隐藏层输出,Wz,Wr,W为可训练参数矩阵。where: z t is the update gate, r t is the reset gate, X t is the current input, is the summary of the input and the past hidden layer state, h t is the hidden layer output, W z , W r , and W are the trainable parameter matrix.
引入结合CRS算法的改进Attention机制,将神经网络模型的过渡特征向量赋予不同的权重的具体步骤包括:The improved Attention mechanism combined with the CRS algorithm is introduced, and the specific steps to assign different weights to the transition feature vectors of the neural network model include:
61)提供注意力层的权重W,权重的具体计算步骤如下:61) Provide the weight W of the attention layer, and the specific calculation steps of the weight are as follows:
611)对给定任务查询向量Q和注意力变量K计算相似度M(Q,K);611) Calculate similarity M(Q, K) for given task query vector Q and attention variable K;
612)将得到相似度进行Softmax操作,进行归一化,得到归一化后相似度ηi:612) Perform Softmax operation on the obtained similarity and normalize to obtain the normalized similarity η i :
613)针对上述计算所得的权重,对所有求得权重进行加权求和,得到Attention向量;613) For the weights obtained by the above calculations, weighted summation is performed on all the obtained weights to obtain the Attention vector;
62)将提供的注意力层的权重W转换为二进制代码WB,子集Wi为注意力权重,将子集传输至GRU神经网络,并在GRU神经网络根据网络中的预测误差产生相应的损失值;62) Convert the provided weight W of the attention layer into binary code W B , the subset Wi is the attention weight, transmit the subset to the GRU neural network, and the GRU neural network generates the corresponding prediction error in the network according to the prediction error in the network. loss value;
63)根据WB的损失情况选取最优注意力权重子集Wi B和并对其子集组合进行反复循环;63) According to the loss of W B , select the optimal attention weight subset W i B and And repeat the cycle of its subset combination;
64)重建一个新的注意力权重 64) Rebuild a new attention weight
进一步地,步骤7)中,采用时序模式-自适应带宽核密度估计法概率预测的具体步骤包括:Further, in step 7), the concrete steps of probability prediction using time series mode-adaptive bandwidth kernel density estimation method include:
71)基于功率时段特征划分时序模式,划分为剧烈上升、剧烈下降、缓慢上升、缓慢下降和振荡五类;71) Divide the time series mode based on the characteristics of the power period, and divide it into five categories: sharp rise, sharp fall, slow rise, slow fall and oscillation;
72)采用经验分布估计方法建立各类别在不同天气类型条件下时序模式-风电功率预测误差概率密度分布模型。72) The empirical distribution estimation method is used to establish the time series mode-wind power prediction error probability density distribution model for each category under different weather conditions.
步骤71)中,以α为划分依据,对天气类型进行划分,计算相应时序模式特征下的功率预测误差概率密度分布,并通过箱线图直观反映分布情况;利用渐进积分均方误差法求得最优窗宽,代入估计函数中,分别拟合各时序特征下的概率密度分布曲线,为区间预测结果呈现提供依据。In step 71), with α as the division basis, the weather types are divided, the probability density distribution of power prediction errors under the corresponding time series pattern characteristics is calculated, and the distribution is visually reflected through the boxplot; the asymptotic integral mean square error method is used to obtain The optimal window width is substituted into the estimation function, and the probability density distribution curves under each time series feature are respectively fitted to provide a basis for the presentation of interval prediction results.
本发明提供的基于转折性时段识别的超短期风电功率分段预测方法,相较于现有技术至少包括如下有益效果:Compared with the prior art, the ultra-short-term wind power segment prediction method based on the identification of the turning period provided by the present invention at least includes the following beneficial effects:
1)本发明方法针对转折性天气条件下风电功率场景多变的情况,提出一种基于移动均值迭代的功率时序趋势判别方法,充分考虑历史风电功率时序特征,有利于提升转折天气下功率突变时段趋势描述的准确性;1) The method of the present invention proposes a power time series trend discrimination method based on moving average iteration to fully consider the historical wind power time series characteristics, which is conducive to improving the power mutation period under transition weather conditions, in view of the changeable wind power scene under transitional weather conditions. the accuracy of trend descriptions;
2)本发明针对功率时序转折时段提取不充分的问题,提出一种居于局部时序特征差异的滑动窗宽调整策略以提升转折时段提取完整性,并显著提升算法有效性;2) Aiming at the problem of insufficient extraction of the turning period of the power sequence, the present invention proposes a sliding window width adjustment strategy based on the difference of local timing characteristics to improve the extraction integrity of the turning period and significantly improve the effectiveness of the algorithm;
3)针对气象模式下功率时序特征差异性,提出一种立足于时序特征匹配的点预测-概率区间预测的分段功率预测方法,点预测采用改进GRU算法,减少了训练量,概率区间预测采用可变带宽核密度估计法,提升了预测性能。3) Aiming at the difference of power time series characteristics in meteorological mode, a segmented power prediction method based on point prediction-probability interval prediction based on time series characteristic matching is proposed. The point prediction adopts the improved GRU algorithm, which reduces the amount of training. The variable bandwidth kernel density estimation method improves the prediction performance.
附图说明Description of drawings
图1为实施例中基于转折性时段识别的超短期风电功率分段预测方法的流程示意图;1 is a schematic flowchart of a method for segmented prediction of ultra-short-term wind power based on identification of a turning point in an embodiment;
图2为实施例中窗口调整策略示意图;2 is a schematic diagram of a window adjustment strategy in an embodiment;
图3为实施例中结合CRS的改进Attention机制流程示意图;Fig. 3 is the schematic flow chart of the improved Attention mechanism combined with CRS in the embodiment;
图4为实施例中各时序模式下功率预测误差分布情况。FIG. 4 shows the distribution of power prediction errors in each timing mode in the embodiment.
具体实施方式Detailed ways
下面结合附图和具体实施例对本发明进行详细说明。显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
实施例Example
本发明涉及一种基于转折性时段识别的超短期风电功率分段预测方法,该方法基于移动均线法提取时序趋势,通过自适应窗口调整方法实现转折时段划分,考虑不同特征时段采用不同的预测方法,制定点预测-概率预测分段预测策略,对包含转折性天气的全时段风电功率作出精准预测。The invention relates to an ultra-short-term wind power subsection prediction method based on turning period identification. The method extracts the time series trend based on the moving average method, realizes the turning period division through an adaptive window adjustment method, and adopts different forecasting methods considering different characteristic periods. , formulate a point forecasting-probabilistic forecasting subsection forecasting strategy, and make accurate forecasts for full-time wind power including transitional weather.
本发明建立的基于转折性天气的超短期风电功率分段预测模型的主要原理为:The main principles of the ultra-short-term wind power segment prediction model based on transitional weather established by the present invention are:
转折性天气时段提取方面,极端天气功率时段在时序尺度上表现为功率大幅度激烈波动的特征。为提高转折性天气下风电功率预测精度,识别并提取极端天气功率时段是首要任务,尽可能实现对突变时段的精准完整提取。由于转折性天气下短时间内气象模式变化多样,传统对原功率时序的时序特征提取易造成趋势误判,因此选用移动均值迭代的功率时序趋势判别法提高时段趋势描述的准确性。为了充分提取功率时序转折时段,以定时间滑动窗为代表的传统爬坡提取算法难以准确并完整提取转折功率时段,本发明采用局部时序特征差异的滑动时间窗宽调整策略显著提升算法的有效性。In terms of the extraction of turning weather periods, extreme weather power periods are characterized by large and violent fluctuations in power on the time series scale. In order to improve the prediction accuracy of wind power under transitional weather, it is the primary task to identify and extract extreme weather power periods, and to achieve accurate and complete extraction of sudden changes as much as possible. Due to the variety of meteorological patterns in a short period of time under transitional weather, the traditional time series feature extraction of the original power time series is prone to misjudgment of the trend. Therefore, the moving average iteration power time series trend discrimination method is used to improve the accuracy of the time period trend description. In order to fully extract the turning period of the power sequence, the traditional slope extraction algorithm represented by the fixed-time sliding window is difficult to accurately and completely extract the turning power period. .
预测方法方面,现行单值预测方法缺乏针对极端天气的预测模型,导致预测精度与稳定性较差。针对平缓功率时段,传统单值预测方法具有更高的预测精度,针对极端天气功率时段,概率预测方法因能量化预测误差而具有更佳的预测性能。因此,本发明提出采用分段预测策略对包含转折性天气的全时段风电功率作出精准预测,即平缓段时序采用点预测,转折段时序采用概率预测。In terms of forecasting methods, the current single-value forecasting methods lack forecasting models for extreme weather, resulting in poor forecasting accuracy and stability. For the moderate power period, the traditional single-value prediction method has higher prediction accuracy, and for the extreme weather power period, the probabilistic prediction method has better prediction performance due to quantifying the prediction error. Therefore, the present invention proposes to use a segmented prediction strategy to make accurate predictions of wind power in the whole period including transitional weather, that is, point prediction is used for the time sequence of the smooth segment, and probability prediction is used for the time sequence of the turning segment.
LSTM是一种RNN模型,RNN中的每一个单元除了处理当前时间点的输入数据外,还要处理前一个单元的输出,最终输出单一的预测。基本RNN模型只处理前一个单元的输出,这样距离远的单元的输出因为中间经过多次处理,影响逐渐消失。针对上述问题,本发明提出了采用GRU算法作为点预测的原始算法,GRU是LSTM网络的一个简化变体,属于门控循环神经网络。GRU中的更新门是由LSTM网络中的遗忘门和输入门合并而成,模型架构更为简单,在保证模型预测精度的同时减少了计算量和训练时间。在现有模型基础上,引入结合CRS算法的Attention机制指导时序间权重分布。LSTM is an RNN model. In addition to processing the input data at the current time point, each unit in the RNN also processes the output of the previous unit, and finally outputs a single prediction. The basic RNN model only processes the output of the previous unit, so that the output of the distant unit is processed several times, and the influence gradually disappears. In view of the above problems, the present invention proposes to use the GRU algorithm as the original algorithm for point prediction. GRU is a simplified variant of the LSTM network and belongs to the gated recurrent neural network. The update gate in GRU is composed of the forget gate and the input gate in the LSTM network, and the model architecture is simpler, which reduces the amount of computation and training time while ensuring the prediction accuracy of the model. Based on the existing model, an Attention mechanism combined with the CRS algorithm is introduced to guide the weight distribution between time series.
传统的风电功率区间预测往往只考虑预测误差在不同功率水平下的分布情况,忽略了天气类型转变导致的功率突变对预测误差的影响。针对上述问题,本发明基于功率时段特征划分时序模式,划分为剧烈上升、剧烈下降、缓慢上升、缓慢下降、振荡等五类模式。结合不同天气类型时段下风电功率预测误差的分布特点,改善模型的预测性能,采用经验分布估计方法建立各类别在不同天气类型条件下时序模式-风电功率预测误差概率密度分布模型。Traditional wind power interval forecasts often only consider the distribution of forecast errors at different power levels, ignoring the impact of sudden changes in power caused by weather type changes on forecast errors. In view of the above problems, the present invention divides the time sequence mode based on the power period characteristics, and divides it into five types of modes, such as sharp rise, sharp fall, slow rise, slow fall, and oscillation. Combined with the distribution characteristics of wind power prediction errors under different weather types, the prediction performance of the model is improved, and the empirical distribution estimation method is used to establish the time series mode-wind power power prediction error probability density distribution model for each category under different weather types.
基于上述原理及设计思路,如图1所示,本发明基于转折性时段识别的超短期风电功率分段预测方法具体包括如下步骤:Based on the above principles and design ideas, as shown in FIG. 1 , the ultra-short-term wind power segmented prediction method based on the identification of the turning period of the present invention specifically includes the following steps:
步骤一、提取时序趋势,首先求取表征原始数据(风电场原始风电数据)短期发展趋势的EMA曲线;其次采用高斯窗法进行平滑处理,求取各时刻变化率为α,具体操作如下:Step 1: Extract the time series trend. First, obtain the EMA curve representing the short-term development trend of the original data (original wind power data of the wind farm); secondly, the Gaussian window method is used for smoothing to obtain the change rate α at each moment. The specific operations are as follows:
11)求取EMA曲线11) Find the EMA curve
EMA曲线采用统计处理的方式,对原始数据进行加权平均,然后连成的曲线用于观察数据未来走势的变动趋势。The EMA curve adopts the method of statistical processing to perform a weighted average of the original data, and then the connected curve is used to observe the changing trend of the data in the future.
求取t的N日平滑移动平均值YN,YN-1为N-1日的平滑移动平均值,即EMA曲线求取如下:Obtain the N-day smoothed moving average Y N of t, and Y N-1 is the N-1 day smoothed moving average, that is, the EMA curve is calculated as follows:
12)求取α12) Find α
时序上升或下降趋势没有改变之前,时序斜率能直观反映时序变化趋势,可以通过对时序的斜率跟踪寻求功率时序变化趋势的指标。针对上述求得的EMA曲线,先对曲线采用高斯窗法进行平滑处理,再由当前时刻变化率计算出初始功率突变灵敏度因子α,计算公式如下:Before the rising or falling trend of the time series has not changed, the time series slope can directly reflect the change trend of the time series, and the indicator of the change trend of the power time series can be found by tracking the slope of the time series. For the EMA curve obtained above, the curve is first smoothed by the Gaussian window method, and then the initial power mutation sensitivity factor α is calculated from the rate of change at the current moment. The calculation formula is as follows:
其中,Ysmooth,N(t)为t时刻经过平滑处理前的EMA值。Ysmooth,N-1(t-Δt)为时序上升或下降趋势改变Δt后,经过平滑处理后的EMA值。Among them, Y smooth,N (t) is the EMA value before smoothing at time t. Y smooth,N-1 (t-Δt) is the smoothed EMA value after the time series rising or falling trend changes Δt.
13)趋势提取13) Trend extraction
当原始功率位于短期均线上方时,α>0,当原始功率位于短期均线下方时,α<0。再根据短期均线与原始功率之间的聚合与分离情况,进一步结合均线本身时序特征,可以由图像对预测对象的高点及低点进行直观的判断。When the raw power is above the short-term moving average, α>0, and when the raw power is below the short-term moving average, α<0. Then, according to the aggregation and separation between the short-term moving average and the original power, and further combining the timing characteristics of the moving average itself, the image can intuitively judge the high and low points of the predicted object.
步骤二、提出一种自适应时间窗转折时段划分方法快速识别转折功率时段。首先针对上一步骤得到的EMA曲线,利用EMA曲线局部特征差异来计算出相邻窗口的分布差异,然后设定检测阈值,若窗口与其前一窗口之间分布差异波动小于该值,则扩大窗宽加快检测速度,若大于该值则缩小窗宽以提升检测精度。In step 2, an adaptive time window turning period division method is proposed to quickly identify the turning power period. Firstly, according to the EMA curve obtained in the previous step, use the local characteristic difference of the EMA curve to calculate the distribution difference between adjacent windows, and then set the detection threshold. If the width is larger than this value, the window width will be reduced to improve the detection accuracy.
多数功率突变检测算法通过待检测局部数据分布与标准数据分布的差异大小来判断功率时序突变是否存在,基于时序特征进行窗口调整策略可以加快对转折性时段的提取。Most power mutation detection algorithms use the difference between the distribution of the local data to be detected and the standard data distribution to determine whether there is a sudden change in power time series. The window adjustment strategy based on time series features can speed up the extraction of turning points.
基于局部特征差异的窗口调整方法具体步骤为:The specific steps of the window adjustment method based on local feature differences are as follows:
A)引入原始滑动窗口模型,先将原始功率时序切分为若干片段,然后对每个片段进行转折点检测;A) Introduce the original sliding window model, first divide the original power time series into several segments, and then perform turning point detection on each segment;
B)在转折点检测中,计算待检测数据的第i个窗口数据数据分布的均值波动Vsi和差值波动Dsi,表达式分别如下:B) In turning point detection, calculate the mean fluctuation Vs i and the difference fluctuation Ds i of the data distribution of the i-th window data of the data to be detected, and the expressions are as follows:
式中,Ui代表第i个窗口内的数据,U代表整个原始功率时序,var和std分别代表方差与标准差。max(U)、min(U)分别代表整个原始功率时序的最大值和最小值。In the formula, U i represents the data in the ith window, U represents the entire original power time series, and var and std represent the variance and standard deviation, respectively. max(U) and min(U) represent the maximum and minimum values of the entire original power sequence, respectively.
C)计算第i个窗口与前一窗口的分布差异diffi。C) Calculate the distribution difference diff i between the ith window and the previous window.
D)如图2所示,针对上式求取的分布差异diffi,设定阈值ε=0.2。若diffi的值小于或等于ε,则属于相同数据特征,扩大滑动窗宽W;若diffi的值大于ε,则处于转折性时段,缩小滑动窗宽W,最终达到自适应窗口调整的目的。D) As shown in FIG. 2 , for the distribution difference diff i obtained by the above formula, a threshold ε=0.2 is set. If the value of diff i is less than or equal to ε, it belongs to the same data feature, and the sliding window width W is enlarged; if the value of diff i is greater than ε, it is in a turning period, the sliding window width W is reduced, and finally the purpose of adaptive window adjustment is achieved. .
采用自适应窗口调整方法识别功率突变时段,以便进一步提取得到拐点集,大大增加了检测速度,提升检测精度。The adaptive window adjustment method is used to identify the power mutation period, so as to further extract the inflection point set, which greatly increases the detection speed and improves the detection accuracy.
步骤三、对趋势中的拐点采用双重定时间滑动窗的方法进行检测,首先基于上述制定的局部特征差异的窗口调整策略,引入α作为判据之一,标记两个窗口内均值出现极小值的位置为拐点;然后改进传统功率突变时段判据,合并相邻同趋势突变时段,完整提取转折性天气突变时段。Step 3. Use the double fixed-time sliding window method to detect the inflection point in the trend. First, based on the above-mentioned window adjustment strategy for local feature differences, α is introduced as one of the criteria to mark the minimum value of the mean value in the two windows. The position of is the inflection point; then the traditional power mutation period criterion is improved, the adjacent same trend mutation periods are merged, and the turning weather mutation period is completely extracted.
对趋势中拐点集提取的具体步骤如下:The specific steps for extracting the inflection point set in the trend are as follows:
A)在振荡出力时段下会出现拐点误判的情况,本发明方法引入α作为判据之一,即拐点必须满足条件α=0;A) Under the oscillating output period, there will be a misjudgment of the inflection point. The method of the present invention introduces α as one of the criteria, that is, the inflection point must satisfy the condition α=0;
B)在EMA曲线的基础上,建立2个紧密相连的滑动窗口,逐帧更新2个窗口内数据,本发明取用滑动窗均值作为差值比较的基准,拐点检测评分Sc计算方式如下:B) on the basis of the EMA curve, set up 2 sliding windows that are closely connected, update the data in the 2 windows frame by frame, the present invention takes the sliding window mean value as the benchmark of the difference comparison, and the calculation method of the inflection point detection score S is as follows:
式中:X1,i为前一个窗口内的全部功率数据,X2,i为后一个窗口内的全部功率数据。当2个窗口内均值差别达到最小时标记结合点处的功率值为拐点,重复上述步骤,最终得到相应的时序趋势拐点集Tip。In the formula: X 1,i is all power data in the previous window, X 2,i is all power data in the next window. When the mean difference in the two windows reaches the minimum, the power value at the marked junction point is the inflection point, and the above steps are repeated to finally obtain the corresponding time series trend inflection point set T ip .
接着对传统功率时段判据作出改进,改进的突变时段判据如下:Then, the traditional power period criterion is improved, and the improved mutation period criterion is as follows:
式中,为拐点集Tip中第j点功率值;为拐点集Tip中第j+1点功率值;为拐点集Tip中经过第j点时刻;为拐点集Tip中经过第j+1点的时刻;λ为转折时段突变幅度阈值;β为转折时段突变速率阈值;不仅考虑突变时段幅值的变化,且考虑突变速率,从而排除伪拐点的存在。In the formula, is the power value of the jth point in the inflection point set Tip ; is the power value of the j+1th point in the inflection point set T ip ; is the moment passing through the jth point in the inflection point set T ip ; is the moment when the inflection point set T ip passes through the j+1th point; λ is the threshold of the mutation amplitude in the turning period; β is the threshold of the mutation rate in the turning period; not only the change of the amplitude of the mutation period, but also the mutation rate is considered, so as to exclude the false inflection point. exist.
最后合并相邻同趋势的突变时段,完整提取功率转折时段。Finally, the adjacent mutation periods with the same trend are merged, and the power transition period is completely extracted.
步骤四、依据自适应转折时段提取结果为划分依据,将时序划分为转折段与平缓段,对于平缓段采用基于GRU算法的点预测,对转折段采用时序模式-自适应带宽核密度估计法概率预测。Step 4. According to the extraction result of the adaptive turning period as the division basis, the time series is divided into the turning section and the flat section, the point prediction based on the GRU algorithm is used for the flat section, and the time series mode-adaptive bandwidth kernel density estimation method is used for the turning section. Probability predict.
步骤五、将GRU网络提取的时序特征输入结合CRS算法的改进Attention机制中,将神经网络模型的过渡特征向量赋予不同的权重,之后将经过权重管理的过度特征向量按时间步输入到GRU层,输出改进GRU神经网络的训练结果,读取训练损失曲线、误差曲线,观察收敛过程中训练集、验证集损失曲线纵向间距,结合训练集、验证集绝对误差情况,直观评估网络预测结果收敛性能。Step 5. Input the time series features extracted by the GRU network into the improved Attention mechanism of the CRS algorithm, assign different weights to the transition feature vectors of the neural network model, and then input the transition feature vectors managed by the weights to the GRU layer by time step. Output the training results of the improved GRU neural network, read the training loss curve and error curve, observe the longitudinal distance between the loss curves of the training set and the validation set during the convergence process, and visually evaluate the convergence performance of the network prediction results based on the absolute errors of the training set and the validation set.
以下为三种常见拟合状态代表的收敛情况:The following are convergence conditions represented by three common fitting states:
1)当训练集损失曲线几乎无下降,此时为欠拟合状态,为不收敛状态;1) When the loss curve of the training set has almost no decline, it is an underfitting state and a non-converging state;
2)当训练集损失曲线持续下降,验证集损失曲线到某一时刻不再下降,此时为过拟合状态,为收敛状态但非完美收敛;2) When the loss curve of the training set continues to decrease, and the loss curve of the validation set does not decrease at a certain time, it is in the state of overfitting, which is in the state of convergence but not perfect convergence;
3)当训练集、验证集损失曲线无明显间距时为完美拟合状态,且为完美收敛。3) When there is no obvious gap between the loss curves of the training set and the validation set, it is in a state of perfect fitting and perfect convergence.
进一步地,本发明对传统的GRU模型进行改进优化,结合CRS算法的Attention机制,具体内容如下:Further, the present invention improves and optimizes the traditional GRU model, combined with the Attention mechanism of the CRS algorithm, the specific contents are as follows:
由于输入模型的特征数量众多,为了突出更关键的影响因素,帮助模型做出更加准确的判断,本发明提出一种改进Attention机制,将神经网络模型的过渡特征向量赋予不同的权重。传统的Attention机制中先输入到网络的内容携带的信息会被后输入的信息覆盖掉,语义向量可能无法完全表示整个序列的信息。因此针对上述不足,本发明提出了一种结合CRS(Competitive random search)算法的改进Attention机制(Improved attentionmechanism),其弥补了在同一时间尺度上,网络对不同相关因素特征关注的不足,提升了网络对各种相关因素的注意力程度。Due to the large number of features of the input model, in order to highlight more critical influencing factors and help the model to make more accurate judgments, the present invention proposes an improved Attention mechanism, which assigns different weights to the transition feature vectors of the neural network model. In the traditional Attention mechanism, the information carried by the content input to the network first will be overwritten by the information input later, and the semantic vector may not fully represent the information of the entire sequence. Therefore, in view of the above shortcomings, the present invention proposes an improved Attention mechanism (Improved attention mechanism) combined with the CRS (Competitive random search) algorithm, which makes up for the shortage of the network's attention to the characteristics of different related factors on the same time scale, and improves the network The level of attention to various related factors.
CRS是用来在注意力层中生成最优参数组合的。图3中介绍了CRS的运行过程,CRS由“I、II、III、IV”四个部分组成。CRS is used to generate optimal parameter combinations in the attention layer. The operation process of the CRS is introduced in Fig. 3, and the CRS consists of four parts "I, II, III, IV".
“I”提供注意力层的权重W;然后通过“II”中转换为二进制代码,子集Wi为注意力权重,被传输到GRU神经网络,并在那里根据网络中的预测误差产生相应的损失值。然后,根据“III”中WB的损失情况来选取最优注意力权重子集Wi B和并对其子集组合进行反复循环。最终,在“IV”中重建了一个新的注意力权重 "I" provides the weights W of the attention layer; then through the conversion to binary code in "II", the subset Wi is the attention weights, which are transmitted to the GRU neural network, where corresponding prediction errors are generated according to the network loss value. Then, according to the loss of WB in "III", the optimal attention weight subsets Wi B and And iteratively loops its subset combination. Finally, a new attention weight is reconstructed in "IV"
CRS详细步骤如下:The detailed steps of CRS are as follows:
1)随机生成长度M=n(n为模型输入特征维数)的注意力权重集, 1) Randomly generate an attention weight set of length M=n (n is the model input feature dimension),
2)将子集Wi输入注意力层,将W转化为二进制编码: 2) Input the subset Wi into the attention layer and convert W into binary code:
3)根据GRU模型的真值y和预测值来计算预测误差: 3) According to the true value y and predicted value of the GRU model to calculate the prediction error:
4)根据误差反馈,选择最优注意力权重子集Wi B和每个子集由二进制字符串组成,并均匀地划分为n段。相应地,Wi B和由Wi B=(Fi 1,Fi 2,...Fi n)和表示。Fi 1和分别是Wi B和的一部分。4) According to the error feedback, select the optimal attention weight subset Wi B and Each subset consists of binary strings and is evenly divided into n segments. Correspondingly, Wi B and By Wi B =(F i 1 ,F i 2 ,...F i n ) and express. F i 1 and are W i B and a part of.
5)随机抽取部分Wi B和例如,选择两者的第n-1段Fi n-1和然而所选分段的数目并不固定。5) Randomly extract part of Wi B and For example, select the n -1th segment of both Fin-1 and However, the number of selected segments is not fixed.
6)获取Fi n-1和的遗传重组。Fi n-1和由长度为6的二进制码表示,两者在相应的6个索引上随机交换,得到重组段 6) Get Fin -1 and genetic recombination. Fin -1 and Represented by a binary code of length 6, the two are randomly exchanged at the corresponding 6 indices to obtain a reorganized segment
7)模拟了一个基因突变,并逆转了的基因型。例如,0被反转为1。然后取代了在Wi B中相应的Fi n-1,形成新的插入到WB中。7) Simulated a gene mutation and reversed genotype. For example, 0 is inverted to 1. Then replaces the corresponding Fin -1 in Wi B , forming a new Insert into WB .
8)WB被解码以获得更新的注意力权重集合:W′=(W′1,W′2,...,W′k,...,W′M)。8) W B is decoded to obtain an updated set of attention weights: W'=(W' 1 ,W' 2 ,...,W' k ,...,W' M ).
9)重复步骤2)~8)直到达到预设定的时间数K为止。9) Repeat steps 2) to 8) until the preset time K is reached.
进一步地,GRU神经网络的数学表达式为:Further, the mathematical expression of the GRU neural network is:
zt=σ(Wz·[ht-1,xt])z t =σ(W z ·[h t-1 ,x t ])
rt=σ(Wr·[ht-1,xt])r t =σ(W r ·[h t-1 ,x t ])
式中:zt更新门,rt重置门,Xt为当前输入,输入和过去隐层状态的汇总,ht为隐藏层输出,Wz,Wr,W为可训练参数矩阵。where: z t updates the gate, r t resets the gate, X t is the current input, A summary of the input and past hidden layer states, h t is the hidden layer output, W z , W r , W are the trainable parameter matrix.
步骤七、针对时许突变时段,采用时序模式-自适应带宽核密度估计法概率预测方法具体步骤如下:Step 7. The specific steps of the probability prediction method using the time series mode-adaptive bandwidth kernel density estimation method for the time period of sudden change are as follows:
1)基于功率时段特征划分时序模式,划分为剧烈上升、剧烈下降、缓慢上升、缓慢下降、振荡等五类模式;1) Divide the time series mode based on the characteristics of the power period, and divide it into five modes: sharp rise, sharp fall, slow rise, slow fall, and oscillation;
2)采用经验分布估计方法建立各类别在不同天气类型条件下时序模式-风电功率预测误差概率密度分布模型,具体内容如下:2) The empirical distribution estimation method is used to establish the time series mode-wind power prediction error probability density distribution model for each category under different weather conditions. The details are as follows:
21)假设总体变量X存在一组容量为m的样本观测值x1,x2,…xp…xm,将其按照从小到大的顺序重新排列后得到次序统计量x1′,x2′,…xp′…xm′对于任意实数x,其经验分布表达式为:21) Assuming that the overall variable X has a set of sample observations x 1 , x 2 ,...x p ... x m with a capacity of m, rearrange them in the order from small to large to obtain order statistics x 1 ′, x 2 ′,…x p ′…x m ′ For any real number x, its empirical distribution expression is:
22)针对相应时序模式特征计算功率预测误差概率分布,求取基于多种气象模式误差分布的箱线图。例如附图4所示,方块左右边界分别为50%分位数对应点位,中心位置刻度线为该类模式误差中位数,外部点为野值(异常值),该图直观体现各时序模式下功率预测误差分布情况;22) Calculate the power prediction error probability distribution according to the corresponding time series pattern characteristics, and obtain the boxplot based on the error distribution of various weather patterns. For example, as shown in Figure 4, the left and right borders of the square are respectively the corresponding points of the 50% quantile, the scale line at the center position is the median of this type of pattern error, and the outer points are outliers (outliers). The power prediction error distribution in the mode;
23)由经验分布的出原始预测误差概率分布ferror,估算计算fe核密度的公式如下:23) From the original prediction error probability distribution f error from the empirical distribution, the formula for estimating and calculating f e kernel density is as follows:
式中,N为一组数据的样本数量;h为窗宽,也称光滑参数;K(u)为核函数,u=h-1(e-ei);ei为预测误差数据中的第i个样本值。In the formula, N is the number of samples of a set of data; h is the window width, also known as the smooth parameter; K(u) is the kernel function, u=h -1 (ee i ); e i is the ith in the prediction error data. sample value.
24)选用高斯核函数代入估计表达式中,高斯核函数具体表达式如下:24) Select Gaussian kernel function to substitute for estimation In the expression, the specific expression of the Gaussian kernel function is as follows:
代入表达式中为:Substitute into the expression:
25)首先引入积分均方误差以判断估计所得的概率密度函数和真实的概率密度函数fe(x)两者存在的差异,表达式如下:25) First, the integral mean square error is introduced to judge the estimated probability density function The difference between the real probability density function f e (x) and the real probability density function f e (x) is expressed as follows:
其中MISE表示为主项AMISE的和,当h→0,nh→∞时,定义AMISE表达式为:in MISE is expressed as the sum of the main term AMISE. When h→0, nh→∞, the AMISE expression is defined as:
式中,AMISE为关于窗宽h的表达式,当AMISE取到最小值时达到最优h值,即可得最优窗宽hx表达式如下:In the formula, AMISE is an expression about the window width h, and the optimal h value is reached when AMISE takes the minimum value, that is, The optimal window width h x can be expressed as follows:
3)分别拟合各时序特征下的概率密度分布曲线,为区间预测结果呈现提供理论依据。3) Fit the probability density distribution curve under each time series feature respectively, and provide a theoretical basis for the presentation of interval prediction results.
传统区间预测只考虑历史功率水平来对误差进行分类,而考虑时序模式分类的物理动态过程能够有地提高区间预测的预测精度。本发明提出了一种基于时序模式分类和蒙特卡洛法的短期区间预测方法效果最佳,在不同的置信水平下,均能得到大于预设置信水平的区间覆盖率。Traditional interval forecasting only considers historical power levels to classify errors, but considering the physical dynamic process of time series pattern classification can improve the prediction accuracy of interval forecasting. The invention proposes a short-term interval prediction method based on time series pattern classification and Monte Carlo method, which has the best effect, and can obtain interval coverage rates greater than preset confidence levels under different confidence levels.
步骤八、建立点预测-概率预测分段预测模型,量化分析全时段点预测、概率预测与分段预测点预测、概率预测的结果精度。Step 8: Establish a point prediction-probability prediction subsection prediction model, and quantitatively analyze the result accuracy of point prediction, probability prediction and subsection prediction point prediction and probability prediction in the whole period.
本发明方法考虑包含转折性天气的全时段风电功率预测。首先提出基于移动均值迭代的功率时序趋势判别法,并采用高斯窗法对EMA曲线进行平滑处理,提取转折性天气趋势;其次,提出基于局部时序特征的窗口调整策略自适应调节时间窗宽,采用双重定时间滑动窗的拐点检测策略,结合判据获取拐点集,提取并划分转折性天气突变时段。提出的点预测与概率区间预测的时序分段预测算法,对全时段进行功率预测:对转折段时序采用改进GRU算法点预测,提出结合CRS算法的改进Attention机制,将神经网络模型过渡特征向量赋予不同的权重;对平缓段时序采用概率预测,采用经验分布估计法建立时序模式-功率预测误差概率密度分布模型,基于可变带宽核密度估计法进行风电功率概率预测。该模型既契合突变性天气的典型特征,又显著提升了全时段功率预测的泛化能力和预测性能。The method of the present invention considers full-time wind power forecasting including transitional weather. Firstly, a power time series trend discrimination method based on moving average iteration is proposed, and the Gaussian window method is used to smooth the EMA curve to extract the turning weather trend. Secondly, a window adjustment strategy based on local time series characteristics is proposed to adaptively adjust the time window width. The inflection point detection strategy of double fixed-time sliding window, combined with the criterion to obtain the inflection point set, extract and divide the transitional weather mutation period. The proposed time-series segmented prediction algorithm for point prediction and probability interval prediction performs power prediction for the whole time period: the point prediction of the improved GRU algorithm is used for the time sequence of the turning segment, and the improved Attention mechanism combined with the CRS algorithm is proposed, and the transition feature vector of the neural network model is assigned to Different weights; probabilistic prediction is used for the time series of the gentle segment, the time series mode-power prediction error probability density distribution model is established by the empirical distribution estimation method, and the wind power probability prediction is performed based on the variable bandwidth kernel density estimation method. The model not only fits the typical characteristics of abrupt weather, but also significantly improves the generalization ability and prediction performance of full-time power prediction.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的工作人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person familiar with the technical field can easily think of various equivalents within the technical scope disclosed by the present invention. Modifications or substitutions should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111609901.7A CN114386324A (en) | 2021-12-27 | 2021-12-27 | Ultra-short-term wind power segmented prediction method based on turning period identification |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111609901.7A CN114386324A (en) | 2021-12-27 | 2021-12-27 | Ultra-short-term wind power segmented prediction method based on turning period identification |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114386324A true CN114386324A (en) | 2022-04-22 |
Family
ID=81197461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111609901.7A Pending CN114386324A (en) | 2021-12-27 | 2021-12-27 | Ultra-short-term wind power segmented prediction method based on turning period identification |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114386324A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114898810A (en) * | 2022-05-20 | 2022-08-12 | 厦门大学 | Method for detecting growth condition of microorganism |
CN115078909A (en) * | 2022-06-16 | 2022-09-20 | 国网江苏省电力有限公司宿迁供电分公司 | Non-ideal pulse leading edge detection method and device based on energy inflection point |
CN115442271A (en) * | 2022-08-29 | 2022-12-06 | 云南电网有限责任公司迪庆供电局 | Network performance index time sequence data anomaly detection method |
CN116340796A (en) * | 2023-05-22 | 2023-06-27 | 平安科技(深圳)有限公司 | Time sequence data analysis method, device, equipment and storage medium |
CN116881743A (en) * | 2023-09-06 | 2023-10-13 | 国网上海市电力公司 | A meteorological transition weather identification method and system for photovoltaic power prediction |
CN117007979A (en) * | 2023-10-07 | 2023-11-07 | 深圳市众航物联网有限公司 | Power output power failure abnormality early warning method based on data driving |
CN117272120A (en) * | 2023-11-21 | 2023-12-22 | 国能日新科技股份有限公司 | Multi-factor continuous real-time data prediction method and device based on data classification |
CN117476136A (en) * | 2023-12-28 | 2024-01-30 | 山东松盛新材料有限公司 | High-purity carboxylate synthesis process parameter optimization method and system |
-
2021
- 2021-12-27 CN CN202111609901.7A patent/CN114386324A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114898810A (en) * | 2022-05-20 | 2022-08-12 | 厦门大学 | Method for detecting growth condition of microorganism |
CN115078909A (en) * | 2022-06-16 | 2022-09-20 | 国网江苏省电力有限公司宿迁供电分公司 | Non-ideal pulse leading edge detection method and device based on energy inflection point |
CN115078909B (en) * | 2022-06-16 | 2024-03-15 | 国网江苏省电力有限公司宿迁供电分公司 | Non-ideal pulse leading edge detection method and device based on energy inflection point |
CN115442271A (en) * | 2022-08-29 | 2022-12-06 | 云南电网有限责任公司迪庆供电局 | Network performance index time sequence data anomaly detection method |
CN115442271B (en) * | 2022-08-29 | 2023-09-26 | 云南电网有限责任公司迪庆供电局 | Network performance index time sequence data anomaly detection method |
CN116340796B (en) * | 2023-05-22 | 2023-12-22 | 平安科技(深圳)有限公司 | Time sequence data analysis method, device, equipment and storage medium |
CN116340796A (en) * | 2023-05-22 | 2023-06-27 | 平安科技(深圳)有限公司 | Time sequence data analysis method, device, equipment and storage medium |
CN116881743B (en) * | 2023-09-06 | 2024-01-19 | 国网上海市电力公司 | Meteorological turning weather identification method and system for photovoltaic power prediction |
CN116881743A (en) * | 2023-09-06 | 2023-10-13 | 国网上海市电力公司 | A meteorological transition weather identification method and system for photovoltaic power prediction |
CN117007979A (en) * | 2023-10-07 | 2023-11-07 | 深圳市众航物联网有限公司 | Power output power failure abnormality early warning method based on data driving |
CN117272120A (en) * | 2023-11-21 | 2023-12-22 | 国能日新科技股份有限公司 | Multi-factor continuous real-time data prediction method and device based on data classification |
CN117476136A (en) * | 2023-12-28 | 2024-01-30 | 山东松盛新材料有限公司 | High-purity carboxylate synthesis process parameter optimization method and system |
CN117476136B (en) * | 2023-12-28 | 2024-03-15 | 山东松盛新材料有限公司 | High-purity carboxylate synthesis process parameter optimization method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114386324A (en) | Ultra-short-term wind power segmented prediction method based on turning period identification | |
Liu et al. | Study on deep reinforcement learning techniques for building energy consumption forecasting | |
CN110619420B (en) | A Short-Term Residential Load Forecasting Method Based on Attention-GRU | |
CN109583565B (en) | Flood prediction method based on attention model long-time and short-time memory network | |
CN110751318B (en) | Ultra-short-term power load prediction method based on IPSO-LSTM | |
CN110472840B (en) | Agricultural water conservancy scheduling method and system based on neural network technology | |
CN113705877A (en) | Real-time monthly runoff forecasting method based on deep learning model | |
CN110059852A (en) | A kind of stock yield prediction technique based on improvement random forests algorithm | |
CN114444378A (en) | Short-term power prediction method for regional wind power cluster | |
CN110837915B (en) | Low-voltage load point prediction and probability prediction method for power system based on hybrid integrated deep learning | |
CN115099500A (en) | Water level prediction method based on weight correction and DRSN-LSTM model | |
CN111680786A (en) | A Time Series Prediction Method Based on Improved Weight Gating Unit | |
CN113449919B (en) | Power consumption prediction method and system based on feature and trend perception | |
CN117154704A (en) | A photovoltaic power prediction method based on multi-scale spatiotemporal graph attention convolution network | |
CN108241872A (en) | An Adaptive Stock Forecasting Method Based on Hidden Markov Model with Multiple Eigenfactors | |
CN115329930A (en) | Flood process probability forecasting method based on mixed deep learning model | |
CN115186803A (en) | A combined prediction method and system for data center computing power load demand considering PUE | |
CN114357670A (en) | Power distribution network power consumption data abnormity early warning method based on BLS and self-encoder | |
CN116187835A (en) | A data-driven method and system for estimating theoretical line loss intervals in station areas | |
CN115564155A (en) | A distributed wind turbine power prediction method and related equipment | |
CN118336705A (en) | Short-term load interval prediction method | |
CN117973600A (en) | Reservoir water level prediction method based on multi-source data fusion integration | |
CN116826737A (en) | A photovoltaic power prediction method, device, storage medium and equipment | |
CN117390477A (en) | Hydrologic forecasting method for intelligent classification | |
CN116632834A (en) | Short-term power load prediction method based on SSA-BiGRU-Attention |
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 |