CN115630316A - Ultrashort-term wind speed prediction method based on improved long-term and short-term memory network - Google Patents

Ultrashort-term wind speed prediction method based on improved long-term and short-term memory network Download PDF

Info

Publication number
CN115630316A
CN115630316A CN202211305960.XA CN202211305960A CN115630316A CN 115630316 A CN115630316 A CN 115630316A CN 202211305960 A CN202211305960 A CN 202211305960A CN 115630316 A CN115630316 A CN 115630316A
Authority
CN
China
Prior art keywords
wind speed
sequence
short
short term
ultra
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
Application number
CN202211305960.XA
Other languages
Chinese (zh)
Inventor
孙鑫
刘阳
张振安
朱全胜
李朝晖
王景钢
滕卫军
张亚飞
魏文荣
苗世洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Electric Power Research Institute of State Grid Henan Electric Power Co Ltd
Original Assignee
Huazhong University of Science and Technology
Electric Power Research Institute of State Grid Henan Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huazhong University of Science and Technology, Electric Power Research Institute of State Grid Henan Electric Power Co Ltd filed Critical Huazhong University of Science and Technology
Priority to CN202211305960.XA priority Critical patent/CN115630316A/en
Publication of CN115630316A publication Critical patent/CN115630316A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01WMETEOROLOGY
    • G01W1/00Meteorology

Landscapes

  • Environmental & Geological Engineering (AREA)
  • Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Atmospheric Sciences (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Ecology (AREA)
  • Environmental Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明属于电气技术领域,公开一种基于改进长短期记忆网络的超短期风速预测方法,预测方法包括:坐标延迟法的风速序列延迟时间与嵌入维数的计算;风速序列混沌特性分析;基于互信息法,构建风速序列重构相空间;风速序列标准化处理;长短期记忆网络训练;基于上述步骤,开展超短期风速预测。本发明实施例在超短期风速预测方面,通过李雅普诺夫指数分析,判定了风速序列混沌特征,通过引入互信息法构建风速序列重构相空间,开展风速序列特征分析,实现了风速序列高维特征的提取,在回归预测中引入长短期记忆网络,实现了风速的准确预测。

Figure 202211305960

The invention belongs to the field of electrical technology, and discloses an ultra-short-term wind speed prediction method based on an improved long-term and short-term memory network. The prediction method includes: calculation of delay time and embedded dimension of wind speed sequence by coordinate delay method; analysis of chaotic characteristics of wind speed sequence; Information method, constructing wind speed sequence and reconstructing phase space; wind speed sequence standardization processing; long short-term memory network training; based on the above steps, carry out ultra-short-term wind speed prediction. In terms of ultra-short-term wind speed prediction, the embodiment of the present invention determines the chaotic characteristics of the wind speed sequence through Lyapunov index analysis, constructs the phase space of the wind speed sequence reconstruction by introducing the mutual information method, and carries out the analysis of the characteristics of the wind speed sequence to realize the high-dimensional wind speed sequence The extraction of features, the introduction of long short-term memory network in the regression prediction, realized the accurate prediction of wind speed.

Figure 202211305960

Description

基于改进长短期记忆网络的超短期风速预测方法Ultra-short-term wind speed prediction method based on improved long-short-term memory network

技术领域technical field

本发明涉及电气技术领域,特别涉及一种基于改进长短期记忆网络的超短期风速预测方法。The invention relates to the field of electrical technology, in particular to an ultra-short-term wind speed prediction method based on an improved long-short-term memory network.

背景技术Background technique

大力开发利用风、光等清洁新能源是支撑我国能源转型发展的坚实力量,是逐渐改善我国能源结构、以实现高质量绿色发展的重要举措,而可再生能源并网也给电力系统的安全稳定运行带来了严峻的挑战。高精度风速预测作为一种时序数据预报方法,可以通过预测下一调控周期内的风速点或风速序列数据来为配电网日前、日内调度以及微电网控制指令的生成提供参考,进而提升配电系统运行经济性及稳定性。Vigorously developing and utilizing clean new energy such as wind and light is a solid force supporting my country's energy transformation and development, and an important measure to gradually improve my country's energy structure and achieve high-quality green development. The grid connection of renewable energy also contributes to the security and stability of the power system. Running presents serious challenges. As a time series data forecasting method, high-precision wind speed prediction can provide reference for distribution network day-ahead and intra-day scheduling and generation of microgrid control instructions by predicting wind speed points or wind speed sequence data in the next control cycle, thereby improving power distribution. System operation economy and stability.

现有研究主要围绕神经网络算法、回归预测算法的应用以及区间预测、空间相关性分析等场景展开了大量讨论。然而现有研究少有针对时序序列固有特征进行分析,在实际对预测模型进行训练的过程中依赖于大量风速或功率数据作为基础,未能充分挖掘出序列变化所蕴含的内部特征,数据利用率较低。因此,如何在上述研究的基础上引入多维数据分析方法,并将分析结果作为输入进行模型训练来拟合风速高维特征,以构建适应场景更广、预测精度更高的风速预测方法,需要更多的探索与研究。Existing research mainly focuses on the application of neural network algorithms, regression prediction algorithms, and scenarios such as interval prediction and spatial correlation analysis. However, few existing studies have analyzed the inherent characteristics of time series. In the process of actually training the prediction model, it relies on a large amount of wind speed or power data as the basis, and has not fully explored the internal characteristics of sequence changes. lower. Therefore, how to introduce multi-dimensional data analysis methods on the basis of the above research, and use the analysis results as input for model training to fit the high-dimensional characteristics of wind speed, so as to build a wind speed prediction method that adapts to wider scenarios and has higher prediction accuracy requires more research. A lot of exploration and research.

国内杂志《太阳能学报》第42卷第9期中名称为“基于序列到序列和注意力机制的超短期风速预测”文献公开了一种基于序列到序列网络及注意力机制的超短期风速预测方法,采用1维卷积神经网络和门控循环单元对风速序列数据做编码处理,然后使用注意力机制和门控循环单元对语义向量做动态解码,进而得到预测值。该模型考虑了风速序列与特定神经网络适配性,提高了超短期风速预测精度。但是上述控制方法未对风速序列内在固有特征展开分析与研究,无法在预测过程中考虑风速的原始多力学特征,超短期风速预测精度低。The domestic journal "Acta Solaris Sinica" in Volume 42, Issue 9, titled "Ultra-short-term Wind Speed Prediction Based on Sequence-to-Sequence and Attention Mechanism" discloses an ultra-short-term wind speed prediction method based on sequence-to-sequence network and attention mechanism. The 1-dimensional convolutional neural network and the gated recurrent unit are used to encode the wind speed sequence data, and then the attention mechanism and the gated recurrent unit are used to dynamically decode the semantic vector to obtain the predicted value. The model considers the adaptability of wind speed sequence and specific neural network, and improves the accuracy of ultra-short-term wind speed prediction. However, the above control methods do not analyze and study the inherent characteristics of the wind speed sequence, and cannot consider the original multi-mechanical characteristics of the wind speed in the prediction process, and the ultra-short-term wind speed prediction accuracy is low.

发明内容Contents of the invention

为解决上述现有技术中存在的不足,本发明提供了一种基于改进长短期记忆网络的超短期风速预测方法及装置、计算机可读存储介质、计算机设备。In order to solve the above-mentioned deficiencies in the prior art, the present invention provides an ultra-short-term wind speed prediction method and device, a computer-readable storage medium, and computer equipment based on an improved long-short-term memory network.

一种基于改进长短期记忆网络的超短期风速预测方法,包括:An ultra-short-term wind speed prediction method based on an improved long-short-term memory network, including:

(1)坐标延迟法的风速序列延迟时间与嵌入维数的计算;(1) Calculation of delay time and embedding dimension of wind speed series by coordinate delay method;

(2)风速序列混沌特性分析;(2) Analysis of chaotic characteristics of wind speed sequence;

(3)基于互信息法,构建风速序列重构相空间;(3) Based on the mutual information method, the reconstruction phase space of the wind speed sequence is constructed;

(4)风速序列标准化处理;(4) standardization of wind speed sequence;

(5)长短期记忆网络训练;(5) Long-term short-term memory network training;

(6)基于上述步骤(1)-(5),开展超短期风速预测。(6) Based on the above steps (1)-(5), carry out ultra-short-term wind speed prediction.

优选地,步骤(1)中所述的坐标延迟法,对于一维混沌序列{xi|i=1,2,...,N},其重构相空间的一般表达形式为:Preferably, for the coordinate delay method described in step (1), for a one-dimensional chaotic sequence { xi |i=1,2,...,N}, the general expression of its reconstructed phase space is:

Figure BDA0003906001850000021
Figure BDA0003906001850000021

其中,xi为混沌序列元素,m为嵌入维数,τ为延迟时间,n为相空间的长度,其中n=N-(m-1)τ,N为混沌序列长度。Among them, x i is the chaotic sequence element, m is the embedding dimension, τ is the delay time, n is the length of the phase space, where n=N-(m-1)τ, N is the length of the chaotic sequence.

优选地,步骤(1)中所述的坐标延迟法的风速序列延迟时间的计算,包括:Preferably, the calculation of the wind speed sequence delay time of the coordinate delay method described in step (1) includes:

记时间序列x(t),则其在延迟时间τ下为x(t+τ),在已知序列x(t)的情况下,x(t+τ)与其的互信息I(x(t+τ),x(t))可表示为:Remember the time series x(t), then it is x(t+τ) under the delay time τ, in the case of known sequence x(t), the mutual information between x(t+τ) and I(x(t +τ), x(t)) can be expressed as:

I(x(t+τ),x(t))=H(x(t+τ))-H(x(t+τ)|x(t))I(x(t+τ),x(t))=H(x(t+τ))-H(x(t+τ)|x(t))

Figure BDA0003906001850000022
Figure BDA0003906001850000022

其中,i为时间序列x(t)中元素的编号,j为时间序列x(t+τ)中元素的编号,Px(t)为x(t)的概率,Px(t),x(t+τ)为x(t)和x(t+τ)的联合概率密度,H为中间变量函数。Among them, i is the number of elements in the time series x(t), j is the number of elements in the time series x(t+τ), P x(t) is the probability of x(t), P x(t),x (t+τ) is the joint probability density of x(t) and x(t+τ), and H is the intermediate variable function.

优选地,步骤(1)中所述的坐标延迟法的风速序列嵌入维数的计算,包括:Preferably, the calculation of the wind speed sequence embedding dimension of the coordinate delay method described in step (1) includes:

记m维相空间中相点矢量为Xi,其最邻近点为Xji,其之间的距离为:Note that the phase point vector in the m-dimensional phase space is X i , its nearest neighbor point is X ji , and the distance between them is:

rm,i=||Xi-Xj,i||r m,i =||X i -X j,i ||

当相空间维数增加1时,其之间的距离更新为:When the dimension of the phase space increases by 1, the distance between them is updated as:

Figure BDA0003906001850000031
Figure BDA0003906001850000031

若rm+1,i显著大于rm,i,则可以判定其为虚假最邻近点;If r m+1,i is significantly greater than r m,i , it can be judged to be a false nearest neighbor point;

定义嵌入维数演变函数E1(m):Define the embedded dimension evolution function E 1 (m):

Figure BDA0003906001850000032
Figure BDA0003906001850000032

Figure BDA0003906001850000033
Figure BDA0003906001850000033

若时间序列为确定系统的序列,则E1(m)将在m达到一定值以后趋于稳定,选取该函数稳定时对应的m即为合适的嵌入维数;If the time series is a sequence of a definite system, then E 1 (m) will tend to be stable after m reaches a certain value, and the corresponding m when the function is stable is selected as the appropriate embedding dimension;

定义嵌入维数辅助函数E2(m):Define the embedding dimension auxiliary function E 2 (m):

Figure BDA0003906001850000034
Figure BDA0003906001850000034

Figure BDA0003906001850000035
Figure BDA0003906001850000035

序列的随机性越大,E2(m)的值围绕1的波动越小;当E2(m)波动较大时,可以认为该序列为混沌时间序列。The greater the randomness of the sequence, the smaller the fluctuation of E 2 (m) around 1; when the fluctuation of E 2 (m) is large, the sequence can be considered as a chaotic time series.

优选地,步骤(2)中所述的风速序列混沌特性分析,包括:Preferably, the chaotic characteristic analysis of the wind speed sequence described in step (2) includes:

采用李雅普诺夫指数的wolf法计算,步骤如下:The wolf method of Lyapunov index is used to calculate, and the steps are as follows:

1)基于步骤(1)所述的坐标延迟法的重构方法,确定相空间的嵌入维数为m,延迟时间为τ,则由长度为N的混沌时间序列构造出相空间可表示为:1) Based on the reconstruction method of the coordinate delay method described in step (1), it is determined that the embedding dimension of the phase space is m, and the delay time is τ, then the phase space constructed by a chaotic time series with a length of N can be expressed as:

X={Xi|i∈1,2,...,n}X={X i |i∈1,2,...,n}

Xi={xi,xi+τ,...,xi+(m-1)τ}X i ={ xi , xi+τ ,..., xi+(m-1)τ }

其中n=N-(m-1)τ;where n=N-(m-1)τ;

2)选取X0为初始点,记与其最邻近点之间的距离为L0,设定距离阈值为ε,当时间推进到某一时刻t,使得L0大于ε时,记录Xt的最邻近点Xt′及此时距离值L0′,并根据夹角最小原则搜索Xt′的另一最邻近点,当两点之间距离小于ε时,记录此时距离值为Li2) Select X 0 as the initial point, record the distance between it and its nearest neighbor as L 0 , set the distance threshold as ε, and when the time advances to a certain moment t, when L 0 is greater than ε, record the maximum value of X t Adjacent point X t ′ and the distance value L 0 ′ at this time, and search another nearest neighbor point of X t ′ according to the principle of minimum included angle. When the distance between two points is less than ε, record the distance value L i at this time;

3)重复步骤2)直至遍历相空间中所有点,记总迭代次数为κ,则系统李雅普诺夫指数为:3) Repeat step 2) until all points in the phase space are traversed, and the total number of iterations is recorded as κ, then the Lyapunov exponent of the system is:

Figure BDA0003906001850000041
Figure BDA0003906001850000041

优选地,步骤(3)中所述的基于互信息法,构建风速序列重构相空间,包括:Preferably, based on the mutual information method described in step (3), constructing a wind speed sequence to reconstruct the phase space includes:

假设某观测点某时间段内风速序列为V={vi,i=1,2,...,N},其中N为数据点个数,已知风速序列重构为如下相空间:Assuming that the wind speed sequence at a certain observation point in a certain period of time is V={v i ,i=1,2,...,N}, where N is the number of data points, the known wind speed sequence is reconstructed into the following phase space:

Figure BDA0003906001850000042
Figure BDA0003906001850000042

其中,vi为风速序列元素,m为嵌入维数,τ为延迟时间,N=n+(m-1)τ。Among them, v i is the wind speed sequence element, m is the embedding dimension, τ is the delay time, N=n+(m-1)τ.

优选地,步骤(4)中所述风速序列标准化处理,包括:Preferably, the wind speed sequence standardization process described in step (4) includes:

采用以下公式对风速序列进行标准化:The wind speed series were normalized using the following formula:

Figure BDA0003906001850000043
Figure BDA0003906001850000043

其中,

Figure BDA0003906001850000044
为风速序列均值,σ(V)为风速序列方差。in,
Figure BDA0003906001850000044
is the mean value of the wind speed series, and σ(V) is the variance of the wind speed series.

优选地,步骤(5)中所述的长短期记忆网络训练,包括:Preferably, the long-short-term memory network training described in step (5) includes:

选取已知风速序列前90%为神经网络训练集,后10%为验证集,对训练集与验证集序列分别以m、τ展开为相空间,其中取训练集相空间中第一个点的相空间信息,即

Figure BDA0003906001850000051
作为神经网络输入,第二个时间点的实际标准化风速,即
Figure BDA0003906001850000052
作为输出,对网络进行训练,并依时间向前滚动迭代,直至训练集最后一个点作为输出,参与网络训练。Select the first 90% of the known wind speed sequence as the neural network training set, and the last 10% as the verification set. The training set and the verification set sequence are respectively expanded by m and τ as the phase space, and the first point in the phase space of the training set is taken as Phase space information, namely
Figure BDA0003906001850000051
As input to the neural network, the actual normalized wind speed at the second time point, namely
Figure BDA0003906001850000052
As an output, the network is trained, and iterates forward according to time until the last point of the training set is used as an output to participate in network training.

优选地,步骤(6)所述的基于上述步骤(1)-(5),开展超短期风速预测,包括:Preferably, based on the above-mentioned steps (1)-(5) described in step (6), the ultra-short-term wind speed prediction is carried out, including:

对于训练完成的神经网络,依然以验证集中前N个点的相空间信息作为输入,第N+1个点的实际标准化风速作为输出,并将输出值去标准化后与实际风速进行比较,得到预测精度,预测精度采用均方根误差RMSE来衡量,其计算公式为:

Figure BDA0003906001850000053
For the trained neural network, the phase space information of the first N points in the verification set is still used as input, and the actual standardized wind speed of the N+1th point is used as output, and the output value is denormalized and compared with the actual wind speed to obtain a prediction Accuracy, prediction accuracy is measured by root mean square error RMSE, and its calculation formula is:
Figure BDA0003906001850000053

其中,vpre k为预测风速,vreal k为实际风速。Among them, v pre k is the predicted wind speed, and v real k is the actual wind speed.

一种基于改进长短期记忆网络的超短期风速预测装置,包括:An ultra-short-term wind speed prediction device based on an improved long-short-term memory network, including:

计算模块,计算坐标延迟法的风速序列延迟时间与嵌入维数;Calculation module, calculating the wind speed sequence delay time and embedding dimension of the coordinate delay method;

分析模块,分析风速序列混沌特性;The analysis module analyzes the chaotic characteristics of the wind speed sequence;

构建模块,基于互信息法,构建风速序列重构相空间;The building block, based on the mutual information method, constructs the wind speed sequence and reconstructs the phase space;

标准化处理模块,风速序列标准化处理;Standardization processing module, wind speed sequence standardization processing;

训练模块,长短期记忆网络训练;Training module, long short-term memory network training;

预测模块,预测超短期风速。The forecasting module predicts ultra-short-term wind speed.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现实现上述的方法步骤。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above method steps are implemented.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现上述的方法步骤。A computer device includes a memory and a processor, the memory stores a computer program, and it is characterized in that the above-mentioned method steps are implemented when the processor executes the computer program.

本发明积极有益效果:The positive beneficial effect of the present invention:

本发明提出了基于改进长短期记忆网络LSTM的超短期风速预测方法,分析了风速序列的混沌特性及相空间重构方法,针对传统LSTM网络预测方法未能完全提取并利用风速序列特征的现状,基于风速序列的随机性及混沌性特征构建了基于LSTM及相空间重构的风速预测模型,并采用实测风速验证了风速序列的混沌特性以及所提预测方法的有效性,通过李雅普诺夫指数分析,判定了风速序列混沌特征,通过引入互信息法构建风速序列重构相空间,开展风速序列特征分析,实现了风速序列高维特征的提取,在回归预测中引入长短期记忆网络,实现了风速的准确预测,详述如下:The present invention proposes an ultra-short-term wind speed prediction method based on the improved long-term short-term memory network LSTM, analyzes the chaotic characteristics of the wind speed sequence and the phase space reconstruction method, and aims at the current situation that the traditional LSTM network prediction method cannot fully extract and utilize the characteristics of the wind speed sequence, Based on the randomness and chaotic characteristics of the wind speed sequence, a wind speed prediction model based on LSTM and phase space reconstruction is constructed, and the measured wind speed is used to verify the chaotic characteristics of the wind speed sequence and the effectiveness of the proposed prediction method. Through Lyapunov exponent analysis , determined the chaotic characteristics of the wind speed sequence, introduced the mutual information method to construct the wind speed sequence and reconstructed the phase space, carried out the analysis of the wind speed sequence characteristics, realized the extraction of high-dimensional features of the wind speed sequence, introduced the long-term short-term memory network in the regression prediction, and realized the wind speed The exact prediction of , as detailed below:

1)本发明风速序列相空间重构方法能够有效提取风速序列特征并还原其原始动力学相空间,为后续预测过程提供有效数据支撑;1) The wind speed sequence phase space reconstruction method of the present invention can effectively extract the characteristics of the wind speed sequence and restore its original dynamic phase space, providing effective data support for the subsequent prediction process;

2)本发明基于LSTM及相空间重构的风速预测方法能够通过大数据量的训练记忆风速序列内在特征,从而在预测过程中更加高效地利用风速序列的高维数据特征,使得该方法较传统LSTM方法预测结果误差大大下降;2) The wind speed prediction method based on LSTM and phase space reconstruction of the present invention can memorize the inherent characteristics of the wind speed sequence through the training of a large amount of data, so that the high-dimensional data characteristics of the wind speed sequence can be used more efficiently in the prediction process, making the method more traditional. The error of the prediction result of the LSTM method is greatly reduced;

3)单纯增加神经网络输入维数并不能有效提升预测精度,为提升神经网络学习效率及预测准确性,本发明需针对风速序列内在特征进行分解、重构等操作以提取其特征参数,预测精度高。3) Simply increasing the input dimension of the neural network can not effectively improve the prediction accuracy. In order to improve the learning efficiency and prediction accuracy of the neural network, the present invention needs to decompose and reconstruct the inherent characteristics of the wind speed sequence to extract its characteristic parameters and improve the prediction accuracy. high.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1为风速序列示意图;Figure 1 is a schematic diagram of wind speed sequence;

图2为本发明预测方法流程框图;Fig. 2 is a flow chart of the prediction method of the present invention;

图3为本发明实施例示出延迟时间计算迭代过程图;FIG. 3 is a diagram showing an iterative process of delay time calculation according to an embodiment of the present invention;

图4为本发明实施例示出嵌入维数迭代演变示意图;Fig. 4 is a schematic diagram showing iterative evolution of embedding dimensions according to an embodiment of the present invention;

图5为采用本发明预测方法下超短期风速预测时序波形图;Fig. 5 is the ultra-short-term wind speed prediction timing waveform diagram under the prediction method of the present invention;

图6为采用本发明预测方法下超短期风速预测误差分析图;Fig. 6 is the ultra-short-term wind speed prediction error analysis diagram under the prediction method of the present invention;

图7为采用Case1方法下超短期风速预测时序波形图;Figure 7 is a timing waveform diagram of ultra-short-term wind speed prediction using the Case1 method;

图8为采用Case1方法下超短期风速预测误差分析图;Figure 8 is an analysis diagram of ultra-short-term wind speed prediction error using the Case1 method;

图9为采用Case2方法下超短期风速预测时序波形图;Figure 9 is a timing waveform diagram of ultra-short-term wind speed prediction using the Case2 method;

图10为采用Case2方法下超短期风速预测误差分析图;Figure 10 is an analysis diagram of ultra-short-term wind speed prediction error using the Case2 method;

图11为本发明实施例计算机设备的示意图。Fig. 11 is a schematic diagram of a computer device according to an embodiment of the present invention.

具体实施方式Detailed ways

以下描述和附图充分地示出本文的具体实施方案,以使本领域的技术人员能够实践它们。一些实施方案的部分和特征可以被包括在或替换其他实施方案的部分和特征。本发明的实施方案的范围包括权利要求书的整个范围,以及权利要求书的所有可获得的等同物。本发明中,术语“第一”、“第二”等仅被用来将一个元素与另一个元素区分开来,而不要求或者暗示这些元素之间存在任何实际的关系或者顺序。实际上第一元素也能够被称为第二元素,反之亦然。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的结构、装置或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种结构、装置或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的结构、装置或者设备中还存在另外的相同要素。本发明中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。The following description and the accompanying drawings sufficiently illustrate specific embodiments herein to enable those skilled in the art to practice them. Portions and features of some embodiments may be included in or substituted for those of other embodiments. The scope of embodiments of the present invention includes the full scope of the claims, and all available equivalents of the claims. In the present invention, the terms "first", "second", etc. are only used to distinguish one element from another element, without requiring or implying any actual relationship or order between these elements. In fact the first element can also be called the second element and vice versa. Furthermore, the terms "comprising", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion such that a structure, means or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed elements, or also elements inherent in the structure, device or equipment. Without further limitations, an element defined by the phrase "comprising a" does not preclude the presence of additional identical elements in the structure, device or equipment comprising said element. Each embodiment of the present invention is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same and similar parts of the various embodiments can be referred to each other.

本发明中的术语“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。在本发明的描述中,除非另有规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是机械连接或电连接,也可以是两个元件内部的连通,可以是直接相连,也可以通过中间媒介间接相连,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。The terms "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", The orientation or positional relationship indicated by "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying the referred device or positional relationship. Elements must have certain orientations, be constructed and operate in certain orientations, and therefore should not be construed as limitations on the invention. In the description of the present invention, unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, and it can also be the internal communication of two components , may be directly connected, or may be indirectly connected through an intermediary. Those skilled in the art can understand the specific meanings of the above terms according to specific situations.

本发明中,除非另有说明,术语“多个”表示两个或两个以上。In the present invention, unless otherwise specified, the term "plurality" means two or more.

本发明中,字符“/”表示前后对象是一种“或”的关系。例如,A/B表示:A或B。In the present invention, the character "/" indicates that the preceding and following objects are an "or" relationship. For example, A/B means: A or B.

本发明中,术语“和/或”是一种描述对象的关联关系,表示可以存在三种关系。例如,A和/或B,表示:A或B,或,A和B这三种关系。In the present invention, the term "and/or" is an associative relationship describing objects, indicating that there may be three relationships. For example, A and/or B means: A or B, or, A and B, these three relationships.

图1为风速序列示意图。该实施例中,本发明提供一种基于改进长短期记忆网络的超短期风速预测方法,参见图2,包括:Figure 1 is a schematic diagram of the wind speed sequence. In this embodiment, the present invention provides an ultra-short-term wind speed prediction method based on an improved long-short-term memory network, referring to Fig. 2, including:

(1)坐标延迟法的风速序列延迟时间与嵌入维数计算;(1) Calculation of delay time and embedding dimension of wind speed series by coordinate delay method;

(2)风速序列混沌特性分析;(2) Analysis of chaotic characteristics of wind speed sequence;

(3)基于互信息法,构建风速序列重构相空间;(3) Based on the mutual information method, the reconstruction phase space of the wind speed sequence is constructed;

(4)风速序列标准化处理;(4) standardization of wind speed sequence;

(5)长短期记忆网络训练;(5) Long-term short-term memory network training;

(6)基于上述步骤(1)-(5),开展超短期风速预测。(6) Based on the above steps (1)-(5), carry out ultra-short-term wind speed prediction.

本实施例的方法设计基于坐标延迟法的相空间重构方法,实现对风速序列高维动态特征的还原;设计基于长短期记忆网络的超短期风速预测方法,实现对超短期风速的准确预测。The method of this embodiment designs a phase space reconstruction method based on the coordinate delay method to restore the high-dimensional dynamic characteristics of the wind speed sequence; designs an ultra-short-term wind speed prediction method based on a long-term short-term memory network to achieve accurate prediction of ultra-short-term wind speed.

在一个实施例中,步骤(1)中所述的坐标延迟法,对于一维混沌序列{xi|i=1,2,...,N},其重构相空间的一般表达形式为:In one embodiment, the coordinate delay method described in step (1), for a one-dimensional chaotic sequence { xi |i=1,2,...,N}, the general expression of its reconstructed phase space is :

Figure BDA0003906001850000081
Figure BDA0003906001850000081

其中,xi为混沌序列元素,m为嵌入维数,τ为延迟时间,n为相空间的长度,其中n=N-(m-1)τ,N为混沌序列长度。Among them, x i is the chaotic sequence element, m is the embedding dimension, τ is the delay time, n is the length of the phase space, where n=N-(m-1)τ, N is the length of the chaotic sequence.

进一步地,步骤(1)中所述的坐标延迟法的风速序列延迟时间的计算,包括:Further, the calculation of the wind speed sequence delay time of the coordinate delay method described in step (1) includes:

记时间序列x(t),则其在延迟时间τ下为x(t+τ),在已知序列x(t)的情况下,x(t+τ)与其的互信息I(x(t+τ),x(t))可表示为:Remember the time series x(t), then it is x(t+τ) under the delay time τ, in the case of known sequence x(t), the mutual information between x(t+τ) and I(x(t +τ), x(t)) can be expressed as:

I(x(t+τ),x(t))=H(x(t+τ))-H(x(t+τ)|x(t))I(x(t+τ),x(t))=H(x(t+τ))-H(x(t+τ)|x(t))

Figure BDA0003906001850000091
Figure BDA0003906001850000091

其中,i为时间序列x(t)中元素的编号,j为时间序列x(t+τ)中元素的编号,Px(t)为x(t)的概率,Px(t),x(t+τ)为x(t)和x(t+τ)的联合概率密度,H为中间变量函数。Among them, i is the number of elements in the time series x(t), j is the number of elements in the time series x(t+τ), P x(t) is the probability of x(t), P x(t),x (t+τ) is the joint probability density of x(t) and x(t+τ), and H is the intermediate variable function.

进一步地,在相空间重构中,期望达到的效果为不同状态点矢量之间的相关性尽量小,因而可选择互信息函数的第一个极小值作为延迟时间整定值。Furthermore, in the phase space reconstruction, the expected effect is that the correlation between different state point vectors is as small as possible, so the first minimum value of the mutual information function can be selected as the delay time setting value.

进一步地,步骤(1)中所述的坐标延迟法的风速序列嵌入维数的计算,包括:Further, the calculation of the embedded dimension of the wind speed sequence of the coordinate delay method described in step (1) includes:

记m维相空间中相点矢量为Xi,其最邻近点为Xji,其之间的距离为:Note that the phase point vector in the m-dimensional phase space is X i , its nearest neighbor point is X ji , and the distance between them is:

rm,i=||Xi-Xj,i|| (2)r m,i =||X i -X j,i || (2)

当相空间维数增加1时,其之间的距离更新为:When the dimension of the phase space increases by 1, the distance between them is updated as:

Figure BDA0003906001850000092
Figure BDA0003906001850000092

若rm+1,i显著大于rm,i,则可以判定其为虚假最邻近点;If r m+1,i is significantly greater than r m,i , it can be judged to be a false nearest neighbor point;

进一步地,定义嵌入维数演变函数E1(m):Further, define the embedded dimension evolution function E 1 (m):

Figure BDA0003906001850000093
Figure BDA0003906001850000093

若时间序列为确定系统的序列,则E1(m)将在m达到一定值以后趋于稳定,选取该函数稳定时对应的m即为合适的嵌入维数。If the time series is a sequence of a definite system, then E 1 (m) will tend to be stable after m reaches a certain value, and the corresponding m when the function is stable is selected as the appropriate embedding dimension.

进一步地,在实际应用中,由于数据量限制,针对有限长序列很难区分其E1(m)函数的稳定状态与缓慢增长状态,即难以区分达到稳态的混沌序列与趋于饱和的随机序列,因此定义嵌入维数辅助函数E2(m):Furthermore, in practical applications, due to the limitation of the amount of data, it is difficult to distinguish the steady state and the slow growth state of the E 1 (m) function of the finite sequence, that is, it is difficult to distinguish the chaotic sequence that reaches the steady state from the random sequence that tends to saturation. sequence, so define the embedding dimension auxiliary function E 2 (m):

Figure BDA0003906001850000101
Figure BDA0003906001850000101

序列的随机性越大,E2(m)的值围绕1的波动越小;当E2(m)波动较大时,可以认为该序列为混沌时间序列。The greater the randomness of the sequence, the smaller the fluctuation of E 2 (m) around 1; when the fluctuation of E 2 (m) is large, the sequence can be considered as a chaotic time series.

在一个实施例中,步骤(2)中所述的风速序列混沌特性分析,包括:In one embodiment, the chaotic characteristic analysis of the wind speed sequence described in step (2) includes:

通过系统的李雅普诺夫指数反映系统的敛散性及对初始条件的敏感性,计算李雅普诺夫指数的wolf法具体步骤如下:The convergence and divergence of the system and the sensitivity to initial conditions are reflected by the Lyapunov index of the system. The specific steps of the wolf method for calculating the Lyapunov index are as follows:

1)基于上述的重构方法,确定相空间的嵌入维数为m,延迟时间为τ,则由长度为N的混沌时间序列构造出相空间可表示为:1) Based on the above reconstruction method, the embedding dimension of the phase space is determined to be m, and the delay time is τ, then the phase space constructed from the chaotic time series with length N can be expressed as:

Figure BDA0003906001850000102
Figure BDA0003906001850000102

其中n=N-(m-1)τ;where n=N-(m-1)τ;

2)选取X0为初始点,记与其最邻近点之间的距离为L0,设定距离阈值为ε,当时间推进到某一时刻t,使得L0大于ε时,记录Xt的最邻近点Xt′及此时距离值L0′,并根据夹角最小原则搜索Xt′的另一最邻近点,当两点之间距离小于ε时,记录此时距离值为Li2) Select X 0 as the initial point, record the distance between it and its nearest neighbor as L 0 , set the distance threshold as ε, and when the time advances to a certain moment t, when L 0 is greater than ε, record the maximum value of X t Adjacent point X t ′ and the distance value L 0 ′ at this time, and search another nearest neighbor point of X t ′ according to the principle of minimum included angle. When the distance between two points is less than ε, record the distance value L i at this time;

3)重复步骤2)直至遍历相空间中所有点,记总迭代次数为κ,则系统李雅普诺夫指数为:

Figure BDA0003906001850000103
3) Repeat step 2) until all points in the phase space are traversed, and the total number of iterations is recorded as κ, then the Lyapunov exponent of the system is:
Figure BDA0003906001850000103

在一个实施例中,步骤(3)中基于互信息法,构建风速序列重构相空间,包括:In one embodiment, in step (3), based on the mutual information method, the reconstruction phase space of the wind speed sequence is constructed, including:

假设某观测点某时间段内风速序列为V={vi,i=1,2,...,N},其中N为数据点个数。则根据前述理论可将已知风速序列重构为如下相空间:Assume that the wind speed sequence of a certain observation point within a certain period of time is V={v i , i=1,2,...,N}, where N is the number of data points. Then according to the aforementioned theory, the known wind speed sequence can be reconstructed into the following phase space:

Figure BDA0003906001850000111
Figure BDA0003906001850000111

其中,vi为风速序列元素,m为嵌入维数,τ为延迟时间,N=n+(m-1)τ。Among them, v i is the wind speed sequence element, m is the embedding dimension, τ is the delay time, N=n+(m-1)τ.

在一个实施例中,步骤(4)中对风速序列进行标准化处理,为防止神经网络训练结果发散,需要用以下公式对风速序列进行标准化:In one embodiment, in step (4), the wind speed sequence is standardized, in order to prevent the divergence of neural network training results, the wind speed sequence needs to be standardized with the following formula:

Figure BDA0003906001850000112
Figure BDA0003906001850000112

其中,

Figure BDA0003906001850000113
为风速序列均值,σ(V)为风速序列方差。in,
Figure BDA0003906001850000113
is the mean value of the wind speed series, and σ(V) is the variance of the wind speed series.

在一个实施例中,步骤(5)中对长短期记忆网络进行训练,包括:In one embodiment, the long short-term memory network is trained in step (5), including:

长短期记忆网络中遗忘门通过控制本单元对上一单元输出St-1所含信息的接收概率,从而实现对上一单元所传递信息的选择性遗忘,其激活函数选择Sigmoid函数,则遗忘门可表示为:In the long-short-term memory network, the forgetting gate realizes the selective forgetting of the information transmitted by the previous unit by controlling the reception probability of the information contained in the output S t-1 of the previous unit. The activation function selects the Sigmoid function, and the forgetting The gate can be expressed as:

ft=Sigmoid(wfSSt-1+wfxxtf) (7)f t =Sigmoid(w fS S t-1 +w fx x tf ) (7)

其中,wfS,wfx分别为通过遗忘门的上一单元输出与本单元实际输入的权重,f为遗忘门计算迭代参数。Among them, w fS , w fx are the weights of the output of the previous unit passing through the forget gate and the actual input of this unit, and f is the calculation iteration parameter of the forget gate.

进一步地,输入门通过控制对本单元输入xt所含信息的接收程度,从而实现对本单元输入到单元记忆状态的选择性接收,同时也可起到单元记忆状态更迭的功能。输入门包含两个端口,其分别采用Sigmoid及tanh作为激活函数:Furthermore, the input gate realizes the selective reception of the input to the unit memory state of the unit by controlling the degree of reception of the information contained in the input x t of the unit, and at the same time, it can also perform the function of changing the memory state of the unit. The input gate contains two ports, which respectively use Sigmoid and tanh as activation functions:

Figure BDA0003906001850000114
Figure BDA0003906001850000114

其中,wiS,wix分别为通过输入门的上一单元输出与本单元实际输入的权重,i为输入门计算偏置参数,wiS,wix分别为更新单元记忆状态的上一单元输出与本单元实际输入的权重,C为状态更新计算偏置参数。Among them, w iS , w ix are the weights of the output of the previous unit through the input gate and the actual input of this unit, i is the bias parameter for calculating the input gate, and w iS , w ix are the output of the previous unit that updates the memory state of the unit With the actual input weight of this unit, C calculates the bias parameter for state update.

进一步地,输入门兼具更新单元记忆状态的功能,其中本单元对长期记忆状态的继承由遗忘门与长期记忆状态相乘来实现,对本单元实际输入的短时记忆状态的继承由输入门两个端口信息相乘来实现,其中*表示按元素相乘:Furthermore, the input gate also has the function of updating the memory state of the unit, in which the inheritance of the long-term memory state of the unit is realized by multiplying the forgetting gate and the long-term memory state, and the inheritance of the short-term memory state actually input by the unit is realized by the two input gates. Port information is multiplied to achieve, where * represents element-wise multiplication:

Figure BDA0003906001850000121
Figure BDA0003906001850000121

进一步地,输出门对考虑长期记忆与仅考虑短期记忆的输出分别设置通道,其中短期记忆对应的输出为:Further, the output gate sets channels for the output considering long-term memory and only short-term memory, where the output corresponding to short-term memory is:

ot=Sigmoid(woSSt-1+woxxto) (10)o t =Sigmoid(w oS S t-1 +w ox x to ) (10)

长期记忆对应的输出为:The output corresponding to the long-term memory is:

St=ot*tanh(Ct) (11)S t =o t *tanh(C t ) (11)

进一步地,针对由上述单元组成的神经网络,共有四组参数需要进行训练,与一般RNN相同,仍采用BPTT算法进行模型的求解,其主要步骤如下:Furthermore, for the neural network composed of the above units, there are four sets of parameters that need to be trained. Same as the general RNN, the BPTT algorithm is still used to solve the model. The main steps are as follows:

1)对待训练参数进行初始化,计算每个门单元的输出以及当前序列索引期望输出

Figure BDA0003906001850000122
其中
Figure BDA0003906001850000123
计算公式为:1) Initialize the training parameters, calculate the output of each gate unit and the expected output of the current sequence index
Figure BDA0003906001850000122
in
Figure BDA0003906001850000123
The calculation formula is:

Figure BDA0003906001850000124
Figure BDA0003906001850000124

其中,V与c为回归层权值与偏置,视作单元内计算辅助参数,并不参与前向传播过程。Among them, V and c are the weights and biases of the regression layer, which are regarded as auxiliary parameters for calculation in the unit, and do not participate in the forward propagation process.

2)定义损失函数J与单元误差项δt2) Define the loss function J and the unit error term δ t :

Figure BDA0003906001850000125
Figure BDA0003906001850000125

则前向传递误差项可以表示为:Then the forward pass error term can be expressed as:

Figure BDA0003906001850000126
Figure BDA0003906001850000126

其中:in:

Figure BDA0003906001850000127
Figure BDA0003906001850000127

则易得待优化参数的误差梯度为:Then it is easy to get the error gradient of the parameter to be optimized as:

Figure BDA0003906001850000131
Figure BDA0003906001850000131

3)在迭代中利用梯度下降原理,更新单元连接权重:3) Utilize the gradient descent principle in the iteration to update the unit connection weight:

wij+λδixij→w′ij (17)w ij +λδ i x ij →w′ ij (17)

其中,λ为学习效率,一般在迭代次数达到阈值后会予以降低,以避免发生震荡而产生网络不收敛。Among them, λ is the learning efficiency, which is generally reduced after the number of iterations reaches the threshold, so as to avoid network non-convergence due to oscillation.

步骤(5)中,选取已知风速序列前90%为神经网络训练集,后10%为验证集,对训练集与验证集序列分别以m、τ展开为相空间,其中取训练集相空间中第一个点的相空间信息,即

Figure BDA0003906001850000132
作为神经网络输入,第二个时间点的实际标准化风速,即
Figure BDA0003906001850000133
作为输出对网络进行训练,并依时间向前滚动迭代,直至训练集最后一个点作为输出,参与网络训练,可见输入量为一个长度为m的序列,序列点数为0.9n-1。In step (5), the first 90% of the known wind speed sequence is selected as the neural network training set, and the last 10% is the verification set. The training set and the verification set sequence are respectively expanded by m and τ as the phase space. The phase space information of the first point in , namely
Figure BDA0003906001850000132
As input to the neural network, the actual normalized wind speed at the second time point, namely
Figure BDA0003906001850000133
As the output, the network is trained, and iterates forward according to time until the last point of the training set is used as the output to participate in network training. It can be seen that the input is a sequence of length m, and the number of sequence points is 0.9n-1.

进一步地,步骤(6)所述的基于上述步骤(1)-(5),开展超短期风速预测,包括:Further, based on the above steps (1)-(5) described in step (6), the ultra-short-term wind speed prediction is carried out, including:

对于训练完成的神经网络,依然以验证集中前N个点的相空间信息作为输入,第N+1个点的实际标准化风速作为输出,并将输出值去标准化后与实际风速进行比较,得到预测精度,预测精度采用均方根误差RMSE来衡量,其计算公式为:

Figure BDA0003906001850000134
For the trained neural network, the phase space information of the first N points in the verification set is still used as input, and the actual standardized wind speed of the N+1th point is used as output, and the output value is denormalized and compared with the actual wind speed to obtain a prediction Accuracy, prediction accuracy is measured by root mean square error RMSE, and its calculation formula is:
Figure BDA0003906001850000134

其中,vpre k为预测风速,vreal k为实际风速。Among them, v pre k is the predicted wind speed, and v real k is the actual wind speed.

为验证本发明所提控制策略的有效性,基于Matlab2020b平台构建了相空间重构及LSTM预测模型并开展算例验证。In order to verify the effectiveness of the control strategy proposed in the present invention, a phase space reconstruction and LSTM prediction model were constructed based on the Matlab2020b platform, and a numerical example was carried out for verification.

互信息函数随延迟时间变化的迭代过程如图3所示,可以看到迭代过程在τ=30时出现第一个极小值点,则确定相空间重构延迟时间为30。The iterative process of the mutual information function changing with the delay time is shown in Figure 3. It can be seen that the first minimum point appears in the iterative process when τ = 30, so the phase space reconstruction delay time is determined to be 30.

确定延迟时间后,进行嵌入维数的迭代计算。设定最大嵌入维数为50,则随着嵌入维数的增加,嵌入维数演变函数E1(m)及E2(m)的变化情况如图4所示。可以看到当嵌入维数在m=9这个点后E1(m)转入平稳状态,同时E2(m)的值围绕1依然有波动,进而可以确定本风速序列并非随机序列,且相空间重构的嵌入维数为10。After determining the delay time, the iterative calculation of the embedding dimension is performed. Assuming that the maximum embedding dimension is 50, as the embedding dimension increases, the changes of the embedding dimension evolution functions E 1 (m) and E 2 (m) are shown in Fig. 4 . It can be seen that when the embedding dimension is at the point of m=9, E 1 (m) turns into a stable state, while the value of E 2 (m) still fluctuates around 1, and then it can be determined that this wind speed sequence is not a random sequence, and is relatively The embedding dimension for spatial reconstruction is 10.

基于上述延迟时间与嵌入维数,通过wolf法计算得到李雅普诺夫指数为0.000265>0,则原风速序列具有混沌特性,可以采用混沌序列方法对风速序列进行分析。Based on the above delay time and embedding dimension, the Lyapunov exponent calculated by the wolf method is 0.000265>0, then the original wind speed sequence has chaotic characteristics, and the chaotic sequence method can be used to analyze the wind speed sequence.

基于本发明提出的基于改进LSTM的风速预测方法构建预测模型,风速相空间的延迟时间为30,嵌入维数为10,LSTM网络包含序列输入层、LSTM层、全连接层及回归层四层,其中LSTM层包含200个隐藏单元。指定网络训练迭代次数为150次,梯度阈值为1,初始学习率为0.005,经过75代后学习率开始下降,下降率为0.2。由于Adam算法在处理LSTM回归问题方面的优越性,此处采用Adam算法进行求解。预测风速曲线与实际风速曲线如图5、误差分布及均方根误差如图6所示。Based on the wind speed prediction method based on the improved LSTM proposed by the present invention, the prediction model is constructed. The delay time of the wind speed phase space is 30, and the embedding dimension is 10. The LSTM network includes four layers of sequence input layer, LSTM layer, fully connected layer and regression layer. The LSTM layer contains 200 hidden units. Specify the number of network training iterations to be 150, the gradient threshold to be 1, and the initial learning rate to be 0.005. After 75 generations, the learning rate begins to decrease, and the rate of decrease is 0.2. Due to the superiority of the Adam algorithm in dealing with the LSTM regression problem, the Adam algorithm is used here to solve it. The predicted wind speed curve and the actual wind speed curve are shown in Figure 5, and the error distribution and root mean square error are shown in Figure 6.

可以看出,预测风速曲线与实际风速曲线拟合度较好,方均根误差为0.39484,所提基于LSTM及相空间重构的风速预测方法精度较高。It can be seen that the fit between the predicted wind speed curve and the actual wind speed curve is good, and the root mean square error is 0.39484. The proposed wind speed prediction method based on LSTM and phase space reconstruction has high accuracy.

为验证所提方法的优越性,本发明基于LSTM预测方法设置两个对比算例Case1及Case2,输入均采用实际标准化风速,其中Case1采用以前一个点的实际风速预测后一个点风速的单输入预测方式,Case2采用以前10个点的实际风速预测后一个点风速的多输入预测方式,其结果分别如图7、8及图9、10所示。由以上结果可知,Case1方均根误差为0.42746,Case2方均根误差为0.63626,则本发明所提预测方法的均方根误差小于Case1及Case2,且从误差分布图可以看出,本发明所提方法误差分布更为均匀,说明其对序列特征的提取效果更好,预测精度更高。同时可以看出Case2相较Case1预测效果更差,可见单纯增加预测模型的输入维数并不能提高预测精度,而需要通过对风速序列特征进行提取,并实时将特征反映到输入量中才能有效提升预测效果。In order to verify the superiority of the proposed method, the present invention sets up two comparison examples Case1 and Case2 based on the LSTM prediction method, and the input uses the actual standardized wind speed, and Case1 uses the actual wind speed of the previous point to predict the wind speed of the next point. Single input prediction In Case2, the actual wind speed of the previous 10 points is used to predict the wind speed of the next point with multiple inputs. The results are shown in Figures 7 and 8 and Figures 9 and 10 respectively. As can be seen from the above results, the root mean square error of Case1 is 0.42746, and the root mean square error of Case2 is 0.63626, then the root mean square error of the prediction method proposed by the present invention is smaller than Case1 and Case2, and it can be seen from the error distribution diagram that the error distribution of the method proposed by the present invention is It is more uniform, indicating that it has a better extraction effect on sequence features and higher prediction accuracy. At the same time, it can be seen that the prediction effect of Case2 is worse than that of Case1. It can be seen that simply increasing the input dimension of the prediction model cannot improve the prediction accuracy, but it is necessary to extract the characteristics of the wind speed sequence and reflect the characteristics into the input in real time to effectively improve. predictive effect.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图如图11所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储静态信息和动态信息数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现上述方法实施例中的步骤。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure is shown in FIG. 11 . The computer device includes a processor, memory and a network interface connected by a system bus. Wherein, the processor of the computer device is used to provide calculation 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, computer programs and databases. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store static information and dynamic information data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps in the above method embodiments can be realized.

本领域技术人员可以理解,图11中示出的结构,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 11 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer equipment on which the solution of the present invention is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例中的步骤。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 steps in the foregoing method embodiments are implemented.

在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述方法实施例中的步骤。In one embodiment, there is also provided a computer device, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本发明所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided by the present invention may include at least one of non-volatile memory and volatile memory. The non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory or optical memory, and the like. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

最后说明的是,以上实施例仅用以说明本发明的技术方案而非限制,本领域普通技术人员对本发明的技术方案所做的其他修改或者等同替换,只要不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。Finally, it is noted that the above embodiments are only used to illustrate the technical solution of the present invention and not to limit it. Those of ordinary skill in the art may make other modifications or equivalent replacements to the technical solution of the present invention, as long as they do not depart from the spirit and spirit of the technical solution of the present invention. All should be included in the scope of the claims of the present invention.

Claims (10)

1. An ultra-short term wind speed prediction method based on an improved long-short term memory network is characterized by comprising the following steps:
(1) Calculating the wind speed sequence delay time and the embedding dimension by a coordinate delay method;
(2) Analyzing the chaos characteristic of the wind speed sequence;
(3) Constructing a wind speed sequence reconstruction phase space based on a mutual information method;
(4) Wind speed sequence standardization processing;
(5) Training a long-term and short-term memory network;
(6) And (5) performing ultra-short-term wind speed prediction based on the steps (1) - (5).
2. The ultra-short term wind speed prediction method based on the improved long and short term memory network as claimed in claim 1, wherein the calculation of the wind speed sequence delay time by the coordinate delay method in step (1) comprises:
time series x (t) is recorded, then it is x (t + τ) at delay time τ, and in case of known series x (t), x (t + τ) and its mutual information I (x (t + τ), x (t)) can be expressed as:
I(x(t+τ),x(t))=H(x(t+τ))-H(x(t+τ)|x(t))
Figure FDA0003906001840000011
where i is the number of the elements in the time series x (t), j is the number of the elements in the time series x (t + τ), P x(t) Probability of x (t), P x(t),x(t+τ) Is the joint probability density of x (t) and x (t + τ), and H is an intermediate variable function.
3. The ultra-short term wind speed prediction method based on the improved long-short term memory network as claimed in claim 1, wherein the calculation of the wind speed sequence embedding dimension of the coordinate delay method in step (1) comprises:
recording the phase point vector in the m-dimensional phase space as X i The nearest neighbor point is X ji The distance between them is:
r m,i =||X i -X j,i ||
when the phase space dimension increases by 1, the distance between them is updated as:
Figure FDA0003906001840000012
if r m+1,i Is significantly greater than r m,i Then it can be determined as a false nearest point;
defining an embedding dimension evolution function E 1 (m):
Figure FDA0003906001840000021
Figure FDA0003906001840000022
If the time series is a series of definite systems, E 1 (m) the function tends to be stable after m reaches a certain value, and the m corresponding to the function is selected as a proper embedding dimension when the function is stable;
defining an embedding dimension auxiliary function E 2 (m):
Figure FDA0003906001840000023
Figure FDA0003906001840000024
The greater the randomness of the sequence, E 2 The smaller the fluctuation of the value of (m) around 1; when E is 2 (m) when the fluctuation is large, the sequence can be regarded as a chaotic time sequence.
4. The ultra-short term wind speed prediction method based on the improved long-short term memory network as claimed in claim 1, wherein the wind speed sequence chaotic characteristic analysis in the step (2) comprises:
the calculation by adopting the wolf method of the Lyapunov index comprises the following steps:
1) Based on the reconstruction method of the coordinate delay method in step (1), if it is determined that the embedding dimension of the phase space is m and the delay time is τ, the phase space constructed by the chaos time sequence with the length of N can be expressed as:
X={X i |i∈1,2,...,n}
X i ={x i ,x i+τ ,...,x i+(m-1)τ }
wherein N = N- (m-1) τ;
2) Selecting X 0 As an initial point, recording the distance between the most adjacent point and the initial point as L 0 Setting the distance threshold to epsilon, then advancing the time to a time t such that L 0 When is greater than epsilon, record X t Closest point X of (2) t ' and the distance value L at this time 0 ', and searching for X according to the principle of minimum included angle t ' when the distance between two points is less than epsilon, the distance value at this time is recorded as L i
3) Repeating the step 2) until all points in the phase space are traversed, and recording the total iteration times as kappa, wherein the systematic Lyapunov exponent is as follows:
Figure FDA0003906001840000031
5. the ultra-short term wind speed prediction method based on the improved long-short term memory network as claimed in claim 1, wherein the step (3) of constructing the wind speed sequence reconstruction phase space based on the mutual information method comprises:
suppose that the wind speed sequence in a certain observation point in a certain time period is V = { V = i I =1, 2.·, N }, where N is the number of data points, the known wind speed sequence is reconstructed as the following phase space:
Figure FDA0003906001840000032
wherein v is i For wind speed sequence elements, m is the embedding dimension, τ is the delay time, N = N + (m-1) τ.
6. The ultra-short term wind speed prediction method based on the improved long-short term memory network as claimed in claim 1, wherein the wind speed sequence normalization process in step (4) comprises:
the wind speed sequence is normalized using the following formula:
Figure FDA0003906001840000033
wherein,
Figure FDA0003906001840000034
is the mean value of the wind speed sequence, and sigma (V) is the variance of the wind speed sequence.
7. The ultra-short term wind speed prediction method based on the improved long-short term memory network as claimed in claim 1, wherein the training of the long-short term memory network in the step (5) comprises:
selecting the first 90% of the known wind speed sequence as a neural network training set and the last 10% as a verification set, respectively expanding the training set and the verification set sequence by m and tau as phase spaces, wherein the phase space information of the first point in the phase space of the training set is taken, namely
Figure FDA0003906001840000035
As input to the neural network, the actual normalized wind speed at the second point in time, i.e.
Figure FDA0003906001840000036
And as output, training the network, and rolling and iterating forwards according to time until the last point of the training set is used as output to participate in network training.
8. The ultra-short term wind speed prediction method based on the improved long and short term memory network as claimed in claim 1, wherein the step (6) of developing ultra-short term wind speed prediction based on the above steps (1) - (5) comprises:
for the trained neural network, before the verification centralization is still carried outThe phase space information of N points is used as input, the actual standardized wind speed of the (N + 1) th point is used as output, the output value is subjected to standardization and then is compared with the actual wind speed to obtain the prediction precision, the prediction precision is measured by a root mean square error RMSE, and the calculation formula is as follows:
Figure FDA0003906001840000041
wherein v is pre k To predict wind speed, v real k Is the actual wind speed.
9. An ultra-short term wind speed prediction device based on an improved long-short term memory network is characterized by comprising:
the computing module is used for computing the wind speed sequence delay time and the embedding dimension of the coordinate delay method;
the analysis module is used for analyzing the chaos characteristic of the wind speed sequence;
the construction module is used for constructing a wind speed sequence reconstruction phase space based on a mutual information method;
the wind speed sequence is subjected to standardization processing;
the training module is used for training the long-term and short-term memory network;
and the prediction module predicts the ultra-short term wind speed.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the method steps of any of claims 1-8 when executing the computer program.
CN202211305960.XA 2022-10-24 2022-10-24 Ultrashort-term wind speed prediction method based on improved long-term and short-term memory network Pending CN115630316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211305960.XA CN115630316A (en) 2022-10-24 2022-10-24 Ultrashort-term wind speed prediction method based on improved long-term and short-term memory network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211305960.XA CN115630316A (en) 2022-10-24 2022-10-24 Ultrashort-term wind speed prediction method based on improved long-term and short-term memory network

Publications (1)

Publication Number Publication Date
CN115630316A true CN115630316A (en) 2023-01-20

Family

ID=84906016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211305960.XA Pending CN115630316A (en) 2022-10-24 2022-10-24 Ultrashort-term wind speed prediction method based on improved long-term and short-term memory network

Country Status (1)

Country Link
CN (1) CN115630316A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116992274A (en) * 2023-09-28 2023-11-03 国网山东省电力公司滨州市滨城区供电公司 Short-term wind speed prediction method and system based on improved principal component regression model

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820783A (en) * 2015-05-08 2015-08-05 重庆科创职业学院 A method for processing short-term wind speed data
CN105628383A (en) * 2016-02-01 2016-06-01 东南大学 Bearing fault diagnosis method and system based on improved LSSVM transfer learning
CN111222677A (en) * 2019-10-22 2020-06-02 浙江运达风电股份有限公司 Wind speed prediction method and system based on long-short term memory time neural network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820783A (en) * 2015-05-08 2015-08-05 重庆科创职业学院 A method for processing short-term wind speed data
CN105628383A (en) * 2016-02-01 2016-06-01 东南大学 Bearing fault diagnosis method and system based on improved LSSVM transfer learning
CN111222677A (en) * 2019-10-22 2020-06-02 浙江运达风电股份有限公司 Wind speed prediction method and system based on long-short term memory time neural network

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
徐玉芳等: "《机械系统动力学分形特征及故障诊断方法》", 31 January 2006, pages: 183 - 187 *
王吉亮和杨静: "《基于人工智能算法与三维数值模拟的隧道围岩稳定性系统研究》", 30 November 2019, pages: 55 - 59 *
翟开运和李金林: "《大数据技术与管理决策》", 31 August 2022, pages: 142 - 149 *
袁惠群和李宁: "《混沌及其控制基础》", 30 September 2016, pages: 79 - 83 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116992274A (en) * 2023-09-28 2023-11-03 国网山东省电力公司滨州市滨城区供电公司 Short-term wind speed prediction method and system based on improved principal component regression model
CN116992274B (en) * 2023-09-28 2024-02-02 国网山东省电力公司滨州市滨城区供电公司 Short-term wind speed prediction method and system based on improved principal component regression model

Similar Documents

Publication Publication Date Title
CN110020711A (en) A kind of big data analysis method using grey wolf optimization algorithm
CN108879732B (en) Power system transient stability assessment method and device
CN111832825A (en) Wind power forecasting method and system integrating long short-term memory network and extreme learning machine
CN116112563A (en) Dual-strategy self-adaptive cache replacement method based on popularity prediction
CN112865170A (en) Scene probability-based load recovery optimization method considering wind power output correlation
CN118734720A (en) A machine learning optimization design method and system
CN117129875A (en) Method, system, equipment and medium for training and predicting battery capacity prediction model
Zhou et al. Probabilistic optimization based adaptive neural network for short-term wind power forecasting with climate uncertainty
CN115630316A (en) Ultrashort-term wind speed prediction method based on improved long-term and short-term memory network
KR20230126793A (en) Correlation recurrent unit for improving the predictive performance of time series data and correlation recurrent neural network
CN117909517A (en) Knowledge graph completion method, apparatus, device, storage medium, and program product
Huang et al. A grid and density based fast spatial clustering algorithm
CN117689061A (en) A method and system for short-term power generation prediction of thermal power plants
Liu et al. Wind power prediction model based on WOA-BiLSTM-Attention
Zhang et al. Small files storing and computing optimization in Hadoop parallel rendering
Jiang et al. ODE-DPS: ODE-based Diffusion Posterior Sampling for Inverse Problems in Partial Differential Equation
CN119716577B (en) Open-circuit voltage-state-of-charge model construction method and device for battery
CN112836825A (en) A high-dimensional Bayesian optimization method based on active dimensionality reduction
CN118227448B (en) Large language model system load prediction method based on deep learning
CN116187446B (en) Knowledge graph completion method, device and equipment based on self-adaptive attention mechanism
Wu et al. EDGE++: Improved Training and Sampling of EDGE
Chen et al. EDGE++: Improved training and sampling of EDGE
CN120106133A (en) Multi-terminal interconnected flexible microgrid performance evaluation method, system and medium
CN120045909A (en) Resource allocation method, device, computer equipment and storage medium
CN119476637A (en) Behavior prediction method, device, computer equipment, readable storage medium and program product

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