Ultra-short-term wind power prediction method considering time sequence missing value

By using the time series neural network to process missing values ​​in wind power power prediction, and using the time lag decay rate function and autocorrelation coefficient analysis module, the MPIGRU-Seq2Seq model is constructed, which solves the problem of missing value processing being independent of the prediction model and improves the efficiency of wind power prediction. Accuracy and flexibility.

CN118611049APending Publication Date: 2024-09-06CHINA THREE GORGES UNIV
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410690483.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Missing value processing in existing wind power power prediction methods is usually independent of prediction model training and cannot fully utilize the time series correlation characteristics of real data, resulting in poor prediction results.

Method used

This paper proposes an ultra-short-term wind power power prediction method that considers missing values ​​in time series. By designing the mask matrix and time interval matrix, using the delay decay rate function and the masked autocorrelation coefficient analysis module, it is embedded in the time series neural network to construct MPIGRU. -Seq2Seq model to achieve coordination and unification of missing value imputation and prediction.

Benefits of technology

It improves the accuracy and flexibility of the wind power prediction model, can handle the temporal correlation of multiple input features more effectively, improves the accuracy and reliability of the prediction results, and is suitable for low-quality wind farm data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611049A
    Figure CN118611049A
Patent Text Reader

Abstract

The invention discloses an ultra-short-term wind power prediction method considering a time sequence missing value, and the method comprises the steps: collecting a wind power data set of a target region, which mainly comprises power and meteorological data; splicing power and meteorological data as an input matrix, and designing a mask matrix and a time interval matrix to respectively represent whether data is missing or not and the distribution condition of time intervals; proposing a time delay attenuation rate function to reflect the time delay correlation in the incomplete sequence, and completing missing value interpolation on the time sequence data input side of the model by combining the global and local time dependence characteristics of the wind power data; a wind power time sequence correlation characteristic analysis module with a mask is provided, and a time delay attenuation interpolation strategy is constructed in combination with the steps; embedding a time delay attenuation interpolation strategy into a GRU gating operation to form an MPIGRU unit considering missing information; and constructing a sequence-to-sequence structure by taking the MPIGRU as a basic unit to realize ultra-short-term wind power prediction. Compared with a traditional missing value processing and prediction method, the method has higher prediction precision and more stable prediction performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of new energy technology, in particular to the field of renewable energy power generation and comprehensive consumption technology, and specifically to an ultra-short-term wind power prediction method considering time series missing values. Background Art

[0002] In recent years, the total installed capacity of wind power in my country has continued to grow. In the first quarter of 2023, the country's new installed capacity of wind power was 1.04 billion watts, a year-on-year increase of 31.65%. However, wind power generation is affected by meteorological factors and has strong randomness and volatility. The access of a large amount of wind energy will bring risks to the safe and stable operation of the power grid and increase the difficulty of operation and dispatch. Carrying out ultra-short-term wind power forecasting within the next 4 hours can effectively reduce the adverse effects of the randomness and volatility of wind power output, and provide strong support for real-time dispatch and frequency regulation of the power grid.

[0003] However, the feasibility and accuracy of wind power forecasting are highly dependent on the quality of historical data collected by wind farms. Due to factors such as sensor failure, network communication errors or storage anomalies, missing data in wind farms is inevitable. Therefore, designing an accurate missing value processing strategy that is suitable for the calculation mechanism of the prediction model will help to obtain more accurate prediction results on low-quality wind farm data sets. Conventional missing value processing strategies are often independent of the training of prediction models. They mainly interpolate missing values ​​through the global data statistical characteristics of the data or the evolution law of time series data, and then input the prediction model for prediction output. However, this cannot fully utilize the time series related characteristics of real data to improve the prediction effect. At present, some scholars have integrated the processing of missing values ​​of time series data into model training and prediction, mainly focusing on introducing time lag laws and missing value information into the relevant model structure, and realizing missing value interpolation and wind power prediction through nonlinear mapping. However, basically only the time series characteristics and missing information of the input features are considered, and multiple input features cannot be effectively processed.

[0004] In the prior art, gated recurrent unit neural networks and their related variants have been widely used in the field of ultra-short-term wind power prediction. In order to capture the temporal correlation between multiple input features and realize multi-step wind power prediction close to the actual engineering application, some literatures such as: [1] Ye Lin, Li Yilin, Pei Ming, et al. Short-term wind power combination prediction under small sample conditions of cold wave weather [J]. Proceedings of the CSEE, 2023, 43(02): 543-555. [2] Lei Wang, Yigang He, Lie Li, et al. A novel approach to ultra-short-term multi-step wind power predictions based on encoder–decoder architecture in natural language processing [J]. Journal of Cleaner Production, 2022, 354: 131723. [3] Liu Changliang, Zhao Luyang, Wang Ziqi, et al. Multi-step wind speed prediction algorithm for multiple wind turbines based on spatiotemporal attention-Seq2Seq model [J]. Acta Energiae Solaris Sinica, 2023, 44(08): 420-429. The proposed sequence-to-sequence model Seq2Seq solves the problem of unequal input feature dimensions at the historical and prediction times. However, the relevant ultra-short-term wind power prediction models are all based on high-quality wind farm data or simple missing value interpolation, which makes it difficult to optimize the prediction ability of the model by utilizing the complete temporal dependency of the input features.

[0005] Based on the above analysis, in the face of an incomplete data set of wind farms containing time series missing values, in order to achieve the coordinated unification of missing value interpolation and prediction processes, the present invention proposes an ultra-short-term wind power prediction method that takes into account time series missing values; the missing value interpolation process is fully involved in the optimization process of the wind power prediction model, and jointly promotes the improvement of the model's prediction capability. Summary of the invention

[0006] The purpose of the present invention is to solve the technical problem that the missing value processing in the existing wind power prediction method is often independent of the prediction model training, and the time series related characteristics of the real data cannot be fully utilized to improve the prediction effect. An ultra-short-term wind power prediction method considering time series missing values ​​is proposed.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0008] An ultra-short-term wind power prediction method considering time series missing values ​​comprises the following steps:

[0009] Step 1: Collect wind power data sets in the target area, mainly including historical measured power, historical measured meteorological data and meteorological forecast data for the forecast period;

[0010] Step 2: Concatenate historical power and historical meteorological features as input matrix and design mask matrix M ask and the time interval matrix δ respectively indicate whether data is missing and the time interval distribution;

[0011] Step 3: Based on the input matrix, mask matrix and time interval matrix, a time lag decay rate function is proposed to reflect the time lag correlation within the incomplete sequence. At the same time, combined with the time dependency characteristics of global and local wind power data, the missing value interpolation on the input side of the MPIGRU-Seq2Seq time series data of this model is completed;

[0012] Step 4: Combine the input matrix and the time interval matrix to develop a masked wind power timing correlation analysis module M-ACF, and use this module to initialize the time lag attenuation rate function parameters in step 3 to form the dynamic time lag interpolation strategy of the MPIGRU-Seq2Seq model in this paper;

[0013] Step 5: Embed the time-delay attenuation interpolation strategy into the GRU gating operation to obtain the MPIGRU unit that takes missing information into account. When the unit module is updated, in addition to returning the hidden layer vector, the relevant time-delay attenuation rate function parameters in step 4 are updated;

[0014] Step 6: Using MPIGRU as the basic unit, a sequence-to-sequence wind power prediction model MPIGRU-Seq2Seq is constructed that takes into account missing values ​​in the time series, and the decoder output mapping is used to obtain the ultra-short-term wind power prediction results.

[0015] In step 2, the received data are concatenated to obtain the power and meteorological characteristic data with missing values, and the mask matrix M is designed. ask and the time interval matrix δ, specifically including the following sub-steps:

[0016] Step 2.1: Taking the prediction time t as the boundary, the data of historical power and measured meteorological data in the look-back window n before the prediction time t are used to form the input matrix X = [P t-n ,P t-n+1 ,…,P t-1 ;Q t-n ,Q t-n+1 ,…,Q t-1 ], the numerical weather forecast data in the prediction window s is composed of

[0017] Among them, P t-n Refers to the historical power value within the look-back time n before the prediction time t, P t-n+1Refers to the historical power value within n-1 lookback time before the prediction time t, P t-1 Refers to the historical power value at the moment before the prediction time t, Q t-n Refers to the historical meteorological feature vector within the look-back time n before the forecast time t, Q t-n+1 Refers to the historical meteorological feature vector within n-1 lookback time before the forecast time t, Q t-1 Refers to the historical meteorological feature vector at the moment before the prediction time t, Refers to the predicted meteorological feature vector corresponding to the prediction time t, Refers to the predicted meteorological feature vector corresponding to the moment after the predicted moment t. Refers to the meteorological forecast feature vector corresponding to the time t+s-1 within the forecast window;

[0018] Step 2.2: Generate the mask matrix M according to the temporal structure of the input matrix ask ∈R n×F , x t,j If the data is not missing, the matrix element m t,j Set to 1, set to 0 if missing, and generate the time interval matrix δ∈R by combining the absolute time interval between sample sampling points n ×F , the calculation formula is as follows:

[0019]

[0020] Where: I t -I t-1 Indicates an absolute time interval; m t-1,j is the mask vector at the previous moment; δ t-1,j is the previous absolute time interval; j is the feature column; t is the time point in the input matrix, and F represents the feature dimension.

[0021] In step 3, the mask is used to locate the location of the missing value, and the time lag decay rate function is designed according to the distribution characteristics of the time interval near the missing value to complete the missing value interpolation on the input side of the model time series data; specifically, it includes the following sub-steps:

[0022] Step 3.1: Considering that wind power data has high temporal dependence in a short period of time, the possibility of mutation is low; t,j The length of δ reflects the strength of the temporal correlation between the current missing value and the actual observed value of the neighbor. t,j The shorter the time dimension, the closer the actual observed value is to the missing value, and the higher the time series correlation is. Therefore, the design range is between (0,1], and the monotonically decreasing lag decay rate function γ=f(δ|W,b) describes the time dependence:

[0023] γ=1 / ln(e+Wδ+b)

[0024] Where: W is the weight matrix, b is the bias vector, and δ is the time interval matrix;

[0025] Step 3.2: Combine γ and M ask , δ, the last measured value and the next measured value locally related to the location where the missing value occurs, and the mean of the global statistical characteristics, the interpolation mode on the input side of the time series model is constructed as follows:

[0026]

[0027] Where: x t,j is the current input vector; m t,j is the mask corresponding to the current moment; x last is the last actual observation input vector; x next Input vector for the next measurement; is the mean of the corresponding feature sequence; where γ1 and γ2 represent x last and x next The time interval quantizes the weights.

[0028] In step 4, the masked autocorrelation coefficient M-ACF is used to determine the correlation coefficient of the input feature sequence with missing values ​​at different time lag steps, and the initial parameter values ​​of W and b in the time lag attenuation function γ are determined by combining the function fitting method; the following sub-steps are used:

[0029] Step 4.1: Due to the incompleteness of the wind farm time series data, the traditional ACF calculation method cannot correctly obtain the continuous autocorrelation coefficient distribution. Therefore, this paper proposes a masked autocorrelation coefficient calculation method, abbreviated as M-ACF, to correctly count the sequence autocorrelation score:

[0030]

[0031] Where: N is the total amount of data; k represents the selected time lag number; is the mean of the corresponding feature column; m t,j represents the mask value corresponding to the j feature column at time t, m t-k,j represents the mask value corresponding to the feature column j at time tk after a lag of k steps; x t,j represents the eigenvalue corresponding to the j feature column at time t, x t-k,j represents the eigenvalue corresponding to the feature column j at time tk after lag k steps. t,j and m t-k,j When both are 1, no missing occurs, acf k Only then can we have the calculated value, that is, only the autocorrelation calculated value of the non-missing value sequence pair is counted.

[0032] Step 4.2: After obtaining the time series correlation coefficient using the masked autocorrelation coefficient calculation method M-ACF, determine the optimal input time window length of the current data set by setting the empirical threshold of the autocorrelation coefficient;

[0033] Step 4.3: Combined with the calculation formula of the time-delay attenuation function γ, with δ as the independent variable, the least squares method is used to fit the correlation function to determine the parameter W∈R in γ F×F , b∈R F×1 The initial value of; the main formula is as follows:

[0034]

[0035] Where: k is the time interval vector of the corresponding characteristic sequence under k lag steps, acf k is the masked autocorrelation coefficient score; from the above formula, we can see that the quantities to be determined are vectors W and b. The left formula can be obtained by calculating the M-ACF module, so the least squares method is used to fit the function according to the minimum residual error:

[0036]

[0037] After the above operation, we get F groups of weight parameters and bias vectors, which are respectively constructed as the diagonal elements of the weight matrix W and the bias vector values. After this step, we can get the initial parameter setting value of the time-delay decay rate function; then combined with the matrix M ask The time-lag decay rate function is applied to the input missing values ​​of the interpolation model. After the model is trained, the optimal W and b matrix parameters are returned to update the decay rate function, forming a time-lag decay rate interpolation strategy.

[0038] In step 5, the time-delay attenuation rate interpolation strategy is embedded into the time series neural network, and a recurrent neural network MPIGRU considering the processing of time series missing values ​​is constructed, so as to more accurately and efficiently learn the time dependency of wind power data from low-quality data sets; the specific steps are as follows:

[0039] Step 5.1: Establish the MPIGRU hidden layer decay rate coefficient:

[0040]

[0041] Where: W h and b h They represent the hidden layer attenuation rate weight and bias respectively, and their initial values ​​are determined by step 4.3;

[0042] Step 5.2: The model is based on the input mask vector m at time t t Determine whether the gating operation adds additional mask weight V r 、V z , V into the calculation, and then the current time sequence input vector xt Update according to the interpolation strategy, the hidden layer input side vector h t-1 Combined h Embed the missing information and finally output the current time h t As well as the updated W and b parameters of the time-delay decay rate function, the MPIGRU unit calculation formula is as follows:

[0043]

[0044] Where: z t is the update gate; r t is the reset gate; h t-1 is the output vector of the previous hidden layer; σ(·) represents the sigmoid activation function; U r , U z , U are the gating operation parameters of reset gate and update gate respectively; W z , W r , W h 、b r 、b z are the training parameters of each gate; ⊙ represents the point multiplication operation; V r 、V z , V represents the gated mask calculation vector.

[0045] In step 6, the prediction model considers the meteorological characteristic data that is strongly related to wind power, which can improve the wind power prediction accuracy to a certain extent. However, it will cause the problem of inconsistent input feature dimensions at the historical and prediction times. To solve this problem, an encoding-decoding prediction model MPIGRU-Seq2Seq considering time series missing values ​​is established with MPIGRU as the basic unit; the specific steps are as follows:

[0046] Step 6.1: Input the input set χ before the prediction time t, the set contains M ask , δ, X, and MPIGRU are used as the basic unit to construct an encoder. The encoder learns the historical time series rules of historical power data and measured meteorological data, captures the horizontal causal relationship between power and meteorological features in the look-back window within the encoder unit, and then integrates it into the hidden layer vector h t Output, hidden layer vector h t The calculation formula is as follows:

[0047] h t =EncoderMPIGRU( t ,h t-1 )

[0048] Where: t is the encoder input set; h t-1 Output vector for the previous encoding unit;

[0049] Step 6.2: Design the context vector layer c t Process the hidden layer vector of the last MPIGRU unit of the encoder and adapt it to the hidden layer input side of the decoder. The calculation formula is as follows:

[0050] c t =tanh[Linear(W c h t +b c )]

[0051] Where: W c is the linear mapping function weight, b c is the linear mapping bias vector.

[0052] Step 6.3: Construct a decoder. At each moment, the decoder unit receives three sets of inputs, namely the context vector c, the weather forecast data sequence X for the forecast period, and NWP , the hidden layer vector output by the previous decoding unit, taking the above into account in the hidden layer input and the MPIGRU unit input side, and finally calculating the prediction vector through the gated operation in the decoder unit. The calculation formula is as follows:

[0053]

[0054] Where: h t+s-1 Represents the output vector of the previous decoding unit; b G is the bias; G is the decoder gating operation; x nwpt Represents the weather forecast data at time t.

[0055] Step 6.4: Map the prediction vector output by the decoder through the sigmoid function of the output layer to obtain the prediction value under the prediction scale. The specific calculation formula is as follows:

[0056]

[0057] Among them, h t+s is the prediction vector output by the decoder unit; f represents the sigmoid mapping function.

[0058] A method for constructing a sequence-to-sequence wind power prediction model considering time series missing values, using MPIGRU as a basic unit to construct a sequence-to-sequence wind power prediction model MPIGRU-Seq2Seq considering time series missing values; specifically comprising the following steps:

[0059] Step S1: Input the prepared data and connect multiple MPIGRU units into an encoder that captures the development law of time series data;

[0060] Step S2: capturing the lateral causal relationship between power and meteorological characteristics within the look-back window within the encoder unit;

[0061] Step S3: Integrate the output hidden layer vectors and design a context vector processing layer;

[0062] Step S4: constructing a decoder part in combination with the weather forecast information of the time period to be predicted;

[0063] Step S5: Perform nonlinear sigmoid mapping on the decoder output vectors in sequence to obtain the wind power prediction value in the current prediction period s.

[0064] In step S1, the following sub-steps are included:

[0065] S1-1) After collecting the wind farm data set in the target area, a data set χ is obtained, which includes a mask matrix, a time interval matrix and a value matrix;

[0066] S1-2) The missing values ​​NAN in the numerical matrix are digitized and then normalized. The wind power is normalized to [0,1] based on the rated capacity of the wind farm, and the meteorological data is normalized using the maximum and minimum normalization method;

[0067] S1-3) Determine the look-back window size, input the data into the MPIGRU unit network in the form of a sliding window, and capture the horizontal causal relationship. The calculation formula is as follows: t =EncoderMPIGRU( t ,h t-1 );

[0068] S1-4) The MPIGRU units in the encoding network complete the transmission of timing rules by transmitting hidden layer vectors, and dynamically output the hidden layer vector information at the corresponding historical moment; for example, the MPIGRU unit at time l receives the output of the MPIGRU unit at time l-1 and the input set at time l, and finally outputs the hidden layer vector at time l.

[0069] In step S3, the following sub-steps are included:

[0070] S3-1) Input the hidden layer vector h output by the encoder at time t t ;

[0071] S3-2) Considering that the encoder and decoder input feature dimensions are different, according to the weighted formula Linear(W c h t +b c ) linearly processes the encoder output vector to adjust the vector dimension;

[0072] S3-3) Mapping the linear weighted result according to the hyperbolic tangent function t =tanh[Linear(W ch t +b c )], and obtain the input vector c suitable for the decoder structure t .

[0073] In step S4, when constructing the decoder, the following steps are included:

[0074] S4-1) Take the context vector c t As additional input information for the hidden layer of the decoder unit MPIGRU, the weather forecast data sequence X NWP As the input information on the time series input side, taking the wind power in the forecast period s as the basic target, the MPIGRU decoding network is constructed, and the calculation formula is as follows:

[0075] S4-2) Each MPIGRU decoding unit accepts three sets of inputs, namely, the context vector c, the weather forecast data sequence X for the forecast period NWP , the hidden layer vector output by the previous decoding unit is solved through gating operation to obtain the hidden layer vector output by the current unit and output it.

[0076] In step S5, the output vector h of the decoder unit in the prediction period s is input. t ,h t-1 ,…,h t+s , use sigmoid function to perform nonlinear mapping on the vector Get the power prediction value within the time period s.

[0077] A sequence-to-sequence wind power forecasting model considering missing values ​​in time series is as follows:

[0078] Collect wind power data sets in the target area, mainly including wind power and meteorological data;

[0079] Construct an input preparation module, which mainly includes a mask discrimination submodule, a time interval submodule, and a data normalization submodule. After this preparation module, the data becomes a mask matrix M that can be recognized by the encoder layer. ask , time interval matrix δ, numerical matrix X.

[0080] The encoder module is constructed, which is mainly composed of two layers of MPIGRU network units. The lateral MPIGRU internally captures the lateral causal relationship between the power in the lookback window and the measured meteorological characteristics, which is integrated into the hidden layer vector h t It is passed to the next unit to capture the temporal development law of the wind power sequence vertically and complete the transmission between layers. The MPIGRU subunit inputs the relevant data and performs the gating operation as shown in step 5.2. Finally, the encoder hidden layer vector h is output. t .

[0081] The context vector layer is constructed according to the relevant formula in step 7, which together with the NWP data of the days to be predicted constitutes the input part of the decoder.

[0082] Construct a two-layer decoder structure. The decoder unit receives three sets of inputs, namely the context vector c, the weather forecast data sequence X for the forecast period NWP , the hidden layer vector output by the previous decoding unit, the gate-related operations of the MPIGRU decoding unit are consistent with those of the encoder, and will not be repeated here.

[0083] Construct a wind power multi-step prediction output module. It mainly includes a decoder output vector integration module and an output layer mapping module. The former mainly concatenates the decoder unit output vectors within the decoder output prediction period s, and the latter uses the sigmoid function to nonlinearly map the vectors within the prediction period s into a power prediction sequence.

[0084] Compared with the prior art, the present invention has the following technical effects:

[0085] 1) For a wind farm data set with time series missing values, compared with the method of missing value interpolation independent of model training, the present invention has a more reasonable interpolation method for missing values, and because the time lag attenuation function can be updated with model training, it has greater flexibility;

[0086] 2) The time-lag attenuation rate function initialization technology based on M-ACF in the present invention can scientifically guide the model to pre-set parameters according to the global time-lag characteristics of the current input data set, making up for the defects of random initialization of model parameters. In addition, the optimal input historical time window length of the model can be determined by setting the wind power autocorrelation coefficient, and the data utilization rate is more sufficient;

[0087] 3) The sequence-to-sequence prediction model constructed by the present invention can effectively solve the problem of unequal input feature dimensions in model training and prediction, and can fully capture the causal relationship between power and meteorological characteristics.

[0088] In summary, this paper proposes a recurrent neural network architecture method with embedded time series missing value processing strategy, which alleviates the adverse effect of missing time series data in wind farm data sets on the prediction accuracy of the prediction model. It can provide more accurate and reliable wind power prediction data support for the scientific dispatching decision-making of power grid operators, and improve the safety of new power systems with new energy as the main body. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:

[0090] Figure 1 It is a schematic diagram of the overall framework of the model in the present invention;

[0091] Figure 2 It is a schematic diagram of the timing distribution of the data input matrix in the present invention;

[0092] Figure 3 It is a schematic diagram of the MPIGRU unit in the present invention;

[0093] Figure 4 It is a schematic diagram of the MPIGRU-Seq2Seq prediction model in the present invention;

[0094] Figure 5 This is a flow chart of ultra-short-term wind power prediction of the prediction model in the present invention;

[0095] Figures 6 to 9 It is a curve diagram of ultra-short-term wind power prediction results under different advance prediction time lengths according to an embodiment of the present invention;

[0096] Figures 10 to 13 This is a statistical diagram of the error of ultra-short-term wind power prediction results under different advance prediction durations according to an embodiment of the present invention;

[0097] Fig.14 Schematic diagram of ablation experiment error statistics in an embodiment of the present invention. DETAILED DESCRIPTION

[0098] An ultra-short-term wind power prediction method considering time series missing values ​​comprises the following steps:

[0099] Step 1: Collect wind power data sets in the target area, mainly including historical measured power, historical measured meteorological data and meteorological forecast data for the forecast period;

[0100] Step 2: Concatenate historical power and historical meteorological features as input matrix and design mask matrix M ask and the time interval matrix δ respectively indicate whether data is missing and the time interval distribution;

[0101] Step 3: Based on the input matrix, mask matrix and time interval matrix, a time lag decay rate function is proposed to reflect the time lag correlation within the incomplete sequence. At the same time, combined with the time dependency characteristics of global and local wind power data, the missing value interpolation on the input side of the MPIGRU-Seq2Seq time series data of this model is completed;

[0102] Step 4: Combine the input matrix and the time interval matrix to develop a masked wind power timing correlation analysis module M-ACF, and use this module to initialize the time lag attenuation rate function parameters in step 3 to form the dynamic time lag interpolation strategy of the MPIGRU-Seq2Seq model in this paper;

[0103] Step 5: Embed the time-delay attenuation interpolation strategy into the GRU gating operation to obtain the MPIGRU unit that takes missing information into account. When the unit module is updated, in addition to returning the hidden layer vector, the relevant time-delay attenuation rate function parameters in step 4 are updated;

[0104] Step 6: Using MPIGRU as the basic unit, a sequence-to-sequence wind power prediction model MPIGRU-Seq2Seq is constructed that takes into account missing values ​​in the time series, and the decoder output mapping is used to obtain the ultra-short-term wind power prediction results.

[0105] In step 2, the received data are concatenated to obtain the power and meteorological characteristic data with missing values, and the mask matrix M is designed. ask and the time interval matrix δ, specifically including the following sub-steps:

[0106] Step 2.1: Taking the prediction time t as the boundary, the data of historical power and measured meteorological data in the look-back window n before the prediction time t are used to form the input matrix X = [P t-n ,P t-n+1 ,…,P t-1 ;Q t-n ,Q t-n+1 ,…,Q t-1 ], the numerical weather forecast data in the prediction window s is composed of

[0107] Among them, P t-n Refers to the historical power value within the look-back time n before the prediction time t, P t-n+1 Refers to the historical power value within n-1 lookback time before the prediction time t, P t-1 Refers to the historical power value at the moment before the prediction time t, Q t-n Refers to the historical meteorological feature vector within the look-back time n before the forecast time t, Q t-n+1 Refers to the historical meteorological feature vector within n-1 lookback time before the forecast time t, Q t-1 Refers to the historical meteorological feature vector at the moment before the prediction time t, Refers to the predicted meteorological feature vector corresponding to the prediction time t, Refers to the predicted meteorological feature vector corresponding to the moment after the predicted moment t. Refers to the meteorological forecast feature vector corresponding to the time t+s-1 within the forecast window;

[0108] Step 2.2: Generate the mask matrix M according to the temporal structure of the input matrix ask ∈R n×F , x t,j If the data is not missing, the matrix element m t,j Set to 1, set to 0 if missing, and generate the time interval matrix δ∈R by combining the absolute time interval between sample sampling pointsn ×F , the calculation formula is as follows:

[0109]

[0110] Where: I t -I t-1 Indicates an absolute time interval; m t-1,j is the mask vector at the previous moment; δ t-1,j is the previous absolute time interval; j is the feature column; t is the time point in the input matrix, and F represents the feature dimension.

[0111] In step 3, the mask is used to locate the location of the missing value, and the time lag decay rate function is designed according to the distribution characteristics of the time interval near the missing value to complete the missing value interpolation on the input side of the model time series data; specifically, it includes the following sub-steps:

[0112] Step 3.1: Considering that wind power data has high temporal dependence in a short period of time, the possibility of mutation is low; t,j The length of δ reflects the strength of the temporal correlation between the current missing value and the actual observed value of the neighbor. t,j The shorter the time dimension, the closer the actual observed value is to the missing value, and the higher the time series correlation is. Therefore, the design range is between (0,1], and the monotonically decreasing lag decay rate function γ=f(δ|W,b) describes the time dependence:

[0113] γ=1 / ln(e+Wδ+b)

[0114] Where: W is the weight matrix, b is the bias vector, and δ is the time interval matrix;

[0115] Step 3.2: Combine γ and M ask , δ, the last measured value and the next measured value locally related to the location where the missing value occurs, and the mean of the global statistical characteristics, the interpolation mode on the input side of the time series model is constructed as follows:

[0116]

[0117] Where: x t,j is the current input vector; m t,j is the mask corresponding to the current moment; x last is the last actual observation input vector; x next Input vector for the next measurement; is the mean of the corresponding feature sequence; where γ1 and γ2 represent x last and x next The time interval quantizes the weights.

[0118] In step 4, the masked autocorrelation coefficient M-ACF is used to determine the correlation coefficient of the input feature sequence with missing values ​​at different time lag steps, and the initial parameter values ​​of W and b in the time lag attenuation function γ are determined by combining the function fitting method; the following sub-steps are used:

[0119] Step 4.1: Due to the incompleteness of the wind farm time series data, the traditional ACF calculation method cannot correctly obtain the continuous autocorrelation coefficient distribution. Therefore, this paper proposes a masked autocorrelation coefficient calculation method, abbreviated as M-ACF, to correctly count the sequence autocorrelation score:

[0120]

[0121] Where: N is the total amount of data; k represents the selected time lag number; is the mean of the corresponding feature column; m t,j represents the mask value corresponding to the j feature column at time t, m t-k,j represents the mask value corresponding to the feature column j at time tk after a lag of k steps; x t,j represents the eigenvalue corresponding to the j feature column at time t, x t-k,j represents the eigenvalue corresponding to the feature column j at time tk after lag k steps. t,j and m t-k,j When both are 1, no missing occurs, acf k Only then can we have the calculated value, that is, only the autocorrelation calculated value of the non-missing value sequence pair is counted.

[0122] Step 4.2: After obtaining the time series correlation coefficient using the masked autocorrelation coefficient calculation method M-ACF, determine the optimal input time window length of the current data set by setting the empirical threshold of the autocorrelation coefficient;

[0123] Step 4.3: Combined with the calculation formula of the time-delay attenuation function γ, with δ as the independent variable, the least squares method is used to fit the correlation function to determine the parameter W∈R in γ F×F , b∈R F×1 The initial value of; the main formula is as follows:

[0124]

[0125] Where: k is the time interval vector of the corresponding characteristic sequence under k lag steps, acf k is the masked autocorrelation coefficient score; from the above formula, we can see that the quantities to be determined are vectors W and b. The left formula can be obtained by calculating the M-ACF module, so the least squares method is used to fit the function according to the minimum residual error:

[0126]

[0127] After the above operation, we get F groups of weight parameters and bias vectors, which are respectively constructed as the diagonal elements of the weight matrix W and the bias vector values. After this step, we can get the initial parameter setting value of the time-delay decay rate function; then combined with the matrix M ask The time-lag decay rate function is applied to the input missing values ​​of the interpolation model. After the model is trained, the optimal W and b matrix parameters are returned to update the decay rate function, forming a time-lag decay rate interpolation strategy.

[0128] In step 5, the time-delay attenuation rate interpolation strategy is embedded into the time series neural network, and a recurrent neural network MPIGRU considering the processing of time series missing values ​​is constructed, so as to more accurately and efficiently learn the time dependency of wind power data from low-quality data sets; the specific steps are as follows:

[0129] Step 5.1: Establish the MPIGRU hidden layer decay rate coefficient:

[0130]

[0131] Where: W h and b h They represent the hidden layer attenuation rate weight and bias respectively, and their initial values ​​are determined by step 4.3;

[0132] Step 5.2: The model is based on the input mask vector m at time t t Determine whether the gating operation adds additional mask weight V r 、V z , V into the calculation, and then the current time sequence input vector x t Update according to the interpolation strategy, the hidden layer input side vector h t-1 Combined h Embed the missing information and finally output the current time h t As well as the updated W and b parameters of the time-delay decay rate function, the MPIGRU unit calculation formula is as follows:

[0133]

[0134] Where: z t is the update gate; r t is the reset gate; h t-1 is the output vector of the previous hidden layer; σ(·) represents the sigmoid activation function; U r , U z , U are the gating operation parameters of reset gate and update gate respectively; W z , W r , W h 、b r 、b z are the training parameters of each gate; ⊙ represents the point multiplication operation; V r 、Vz , V represents the gated mask calculation vector.

[0135] In step 6, the prediction model considers the meteorological characteristic data that is strongly related to wind power, which can improve the wind power prediction accuracy to a certain extent. However, it will cause the problem of inconsistent input feature dimensions at the historical and prediction times. To solve this problem, an encoding-decoding prediction model MPIGRU-Seq2Seq considering time series missing values ​​is established with MPIGRU as the basic unit; the specific steps are as follows:

[0136] Step 6.1: Input the input set χ before the prediction time t, the set contains M ask , δ, X, and MPIGRU are used as the basic unit to construct an encoder. The encoder learns the historical time series rules of historical power data and measured meteorological data, captures the horizontal causal relationship between power and meteorological features in the look-back window within the encoder unit, and then integrates it into the hidden layer vector h t Output, hidden layer vector h t The calculation formula is as follows:

[0137] h t =EncoderMPIGRU( t ,h t-1 )

[0138] Where: t is the encoder input set; h t-1 Output vector for the previous encoding unit;

[0139] Step 6.2: Design the context vector layer c t Process the hidden layer vector of the last MPIGRU unit of the encoder and adapt it to the hidden layer input side of the decoder. The calculation formula is as follows:

[0140] c t =tanh[Linear(W c h t +b c )]

[0141] Where: W c is the linear mapping function weight, b c is the linear mapping bias vector.

[0142] Step 6.3: Construct a decoder. At each moment, the decoder unit receives three sets of inputs, namely the context vector c, the weather forecast data sequence X for the forecast period, and NWP , the hidden layer vector output by the previous decoding unit, taking the above into account in the hidden layer input and the MPIGRU unit input side, and finally calculating the prediction vector through the gated operation in the decoder unit. The calculation formula is as follows:

[0143]

[0144] Where: h t+s-1 Represents the output vector of the previous decoding unit; b G is the bias; G is the decoder gating operation; x nwpt Represents the weather forecast data at time t.

[0145] Step 6.4: Map the prediction vector output by the decoder through the sigmoid function of the output layer to obtain the prediction value under the prediction scale. The specific calculation formula is as follows:

[0146]

[0147] Among them, h t+s is the prediction vector output by the decoder unit; f represents the sigmoid mapping function.

[0148] A method for constructing a sequence-to-sequence wind power prediction model considering time series missing values, using MPIGRU as a basic unit to construct a sequence-to-sequence wind power prediction model MPIGRU-Seq2Seq considering time series missing values; specifically comprising the following steps:

[0149] Step S1: Input the prepared data and connect multiple MPIGRU units into an encoder that captures the development law of time series data;

[0150] Step S2: capturing the lateral causal relationship between power and meteorological characteristics within the look-back window within the encoder unit;

[0151] Step S3: Integrate the output hidden layer vectors and design a context vector processing layer;

[0152] Step S4: constructing a decoder part in combination with the weather forecast information of the time period to be predicted;

[0153] Step S5: Perform nonlinear sigmoid mapping on the decoder output vectors in sequence to obtain the wind power prediction value in the current prediction period s.

[0154] In step S1, the following sub-steps are included:

[0155] S1-1) After collecting the wind farm data set in the target area, a data set χ is obtained, which includes a mask matrix, a time interval matrix and a value matrix;

[0156] S1-2) The missing values ​​NAN in the numerical matrix are digitized and then normalized. The wind power is normalized to [0,1] based on the rated capacity of the wind farm, and the meteorological data is normalized using the maximum and minimum normalization method;

[0157] S1-3) Determine the look-back window size, input the data into the MPIGRU unit network in the form of a sliding window, and capture the horizontal causal relationship. The calculation formula is as follows: t =EncoderMPIGRU( t ,h t-1 );

[0158] S1-4) The MPIGRU units in the encoding network complete the transmission of timing rules by transmitting hidden layer vectors, and dynamically output the hidden layer vector information at the corresponding historical moment; for example, the MPIGRU unit at time l receives the output of the MPIGRU unit at time l-1 and the input set at time l, and finally outputs the hidden layer vector at time l.

[0159] In step S3, the following sub-steps are included:

[0160] S3-1) Input the hidden layer vector h output by the encoder at time t t ;

[0161] S3-2) Considering that the encoder and decoder input feature dimensions are different, according to the weighted formula Linear(W c h t +b c ) linearly processes the encoder output vector to adjust the vector dimension;

[0162] S3-3) Mapping the linear weighted result according to the hyperbolic tangent function t =tanh[Linear(W c h t +b c )], and obtain the input vector c suitable for the decoder structure t .

[0163] In step S4, when constructing the decoder, the following steps are included:

[0164] S4-1) Take the context vector c t As additional input information for the hidden layer of the decoder unit MPIGRU, the weather forecast data sequence X NWP As the input information on the time series input side, taking the wind power in the forecast period s as the basic target, the MPIGRU decoding network is constructed, and the calculation formula is as follows:

[0165] S4-2) Each MPIGRU decoding unit accepts three sets of inputs, namely, the context vector c, the weather forecast data sequence X for the forecast period NWP , the hidden layer vector output by the previous decoding unit is solved through gating operation to obtain the hidden layer vector output by the current unit and output it.

[0166] In step S5, the output vector h of the decoder unit in the prediction period s is input. t ,h t-1 ,…,h t+s , use sigmoid function to perform nonlinear mapping on the vector Get the power prediction value within the time period s.

[0167] A sequence-to-sequence wind power forecasting model considering missing values ​​in time series is as follows:

[0168] Collect wind power data sets in the target area, mainly including wind power and meteorological data;

[0169] Construct an input preparation module, which mainly includes a mask discrimination submodule, a time interval submodule, and a data normalization submodule. After this preparation module, the data becomes a mask matrix M that can be recognized by the encoder layer. ask , time interval matrix δ, numerical matrix X.

[0170] The encoder module is constructed, which is mainly composed of two layers of MPIGRU network units. The lateral MPIGRU internally captures the lateral causal relationship between the power in the lookback window and the measured meteorological characteristics, which is integrated into the hidden layer vector h t It is passed to the next unit to capture the temporal development law of the wind power sequence vertically and complete the transmission between layers. The MPIGRU subunit inputs the relevant data and performs the gating operation as shown in step 5.2. Finally, the encoder hidden layer vector h is output. t .

[0171] The context vector layer is constructed according to the relevant formula in step 7, which together with the NWP data of the days to be predicted constitutes the input part of the decoder.

[0172] Construct a two-layer decoder structure. The decoder unit receives three sets of inputs, namely the context vector c, the weather forecast data sequence X for the forecast period NWP , the hidden layer vector output by the previous decoding unit, the gate-related operations of the MPIGRU decoding unit are consistent with those of the encoder, and will not be repeated here.

[0173] Construct a wind power multi-step prediction output module. It mainly includes a decoder output vector integration module and an output layer mapping module. The former mainly concatenates the decoder unit output vectors within the decoder output prediction period s, and the latter uses the sigmoid function to nonlinearly map the vectors within the prediction period s into a power prediction sequence.

[0174] Example:

[0175] Figure 5This is the ultra-short-term wind power prediction flow chart using the example data of the present invention. The wind power data set of a wind farm in China from January 1, 2019 to December 31, 2020, with a data resolution of 15min, a data missing rate of 8%, and a rated installed capacity of 96MW is used as the analysis object to predict the power in the next 15min to 4 hours. After the corresponding data processing, it is divided into training set, verification set and test set for training models and verifying model effects.

[0176] Figures 6 to 9 The power prediction results of some time periods of the implementation example data of the present invention are shown, which demonstrate the power curve fitting effect of the present invention and its related comparative models under different prediction scales;

[0177] Figure 6 This is the forecast result chart 0.5h in advance. Figure 7 This is the 1h forecast result chart. Figure 8 This is the 2h forecast result chart. Fig. 9 This is the 4h forecast result chart;

[0178] Among them, before the prediction scale of 2h, all models can follow the changes of the real wind power curve well and are less affected by missing values; after the prediction scale of 2h, the models have different prediction accuracy of actual power peaks and troughs and the prediction curve fitting effect during the period of rapid power fluctuation. The KNN-GRU model performs worst in peak and trough prediction accuracy; in the 12.5h-17.5h test samples of the prediction results of 8 steps ahead (2h), the KNN-GRU model trough prediction error is too large, KNN-Bilstm and KNN-Transformer can only capture the approximate change trend of the actual power curve, and the GARNN prediction value is too low; in the 10h-14h test samples of the prediction results of 16 steps ahead (4h), the KNN-GRU model cannot predict the continuous power change, and the prediction values ​​of the other comparison models are too low. The model in this paper can capture the changes of peaks and troughs more accurately at each prediction scale, and can better fit the change trend of the actual wind power rapid fluctuation period.

[0179] Figures 10 to 13 This is a diagram showing the statistical error of the prediction results of each prediction model at different prediction scales;

[0180] Fig.10 This is the statistical diagram of wind power forecast error 0.5h in advance. Fig.11 This is a statistical diagram of wind power forecast error 1 hour in advance. Fig.12 This is a statistical diagram of wind power forecast error 2 hours in advance. Fig.13 This is a statistical chart of wind power forecast error 4 hours in advance.

[0181] Among them, the left figure is the error frequency statistics diagram of the prediction results; the right figure is the error statistics Taylor diagram, in which the scattered points represent the prediction model, the radial lines represent the correlation coefficient, the dotted lines represent the error RMSD, and the horizontal and vertical axes represent the standard deviation. It can be seen from the left figure of the error statistics combination diagram under each prediction scale that the per-unit error of the model of the present invention is mainly concentrated near the 0 axis, that is, the small error interval, and the predicted value is closer to the true value. At the same time, from the perspective of the positive and negative distribution of the error, the per-unit value of the prediction error of the model of the present invention is more evenly distributed near the 0 value, and the model prediction result is more stable, while the remaining model error distribution is more biased towards the left half of the horizontal axis, indicating that most of the predicted values ​​are higher than the true value. From the results reflected in the Taylor diagram on the right: the distance between the present invention and the highly correlated blue radiation line (correlation coefficient) is closer, and the correlation between the model prediction value and the true value is higher; the standard deviation of the prediction result of the present invention is closer to the red arc (actual power standard deviation), indicating that the mathematical calculation distribution of the model prediction value is closer to the distribution of the real data; the distribution of the present invention in the Taylor diagram is closer to the red dot (the point where RMSD is 0), indicating that the absolute deviation between the model's true value and the predicted value is lower, and the prediction accuracy is higher. In summary, the model in this paper has higher prediction stability and prediction accuracy, and can more effectively alleviate the adverse effects caused by the lack of wind power data compared with other comparative models.

[0182] Fig.14 The figure is a statistical diagram of the prediction error of the ablation experiment after removing the dynamic interpolation strategy, M-ACF parameter initialization and MPIGRU unit structure. The bar chart reflecting the error index RMSE shows that the height difference between the bar after removing the interpolation strategy and the bar after initialization based on M-ACF parameters is small, indicating that the contribution of the time-delay attenuation interpolation strategy and the bar after initialization based on M-ACF parameters to the improvement of model prediction accuracy is basically the same. The prediction model that removes the MPIGRU unit and uses the conventional GRU unit has the fastest increase in RMSE with the increase of the prediction time scale, and the model prediction stability is poor; the line chart reflecting MAPE shows that the model in this paper has a lower prediction error, and the increase is more gentle with the increase of the prediction time scale. Compared with the ablation experiment without MPIGRU, the use of MPIGRU units with embedded missing information can effectively improve the stability of the model in low-quality wind power data sets.

Claims

1. An ultra-short-term wind power prediction method considering time series missing values, characterized in that: The following steps are involved: Step 1: Collect wind power data sets in the target area, mainly including historical measured power, historical measured meteorological data and meteorological forecast data for the forecast period; Step 2: Concatenate historical power and historical meteorological features as input matrix and design mask matrix M ask and the time interval matrix δ respectively indicate whether data is missing and the time interval distribution; Step 3: Based on the input matrix, mask matrix and time interval matrix, a time lag decay rate function is proposed to reflect the time lag correlation within the incomplete sequence. At the same time, combined with the time dependency characteristics of global and local wind power data, the missing value interpolation on the input side of the MPIGRU-Seq2Seq time series data of this model is completed; Step 4: Combine the input matrix and the time interval matrix to develop a masked wind power timing correlation analysis module M-ACF, and use this module to initialize the time lag attenuation rate function parameters in step 3 to form the dynamic time lag interpolation strategy of the MPIGRU-Seq2Seq model in this paper; Step 5: Embed the time-delay attenuation interpolation strategy into the GRU gating operation to obtain the MPIGRU unit that takes missing information into account. When the unit module is updated, in addition to returning the hidden layer vector, the relevant time-delay attenuation rate function parameters in step 4 are updated; Step 6: Using MPIGRU as the basic unit, a sequence-to-sequence wind power prediction model MPIGRU-Seq2Seq is constructed that takes into account missing values ​​in the time series, and the decoder output mapping is used to obtain the ultra-short-term wind power prediction results.

2. The method according to claim 1, characterized in that In step 2, the received data are concatenated to obtain the power and meteorological characteristic data with missing values, and the mask matrix M is designed. ask and the time interval matrix δ, specifically including the following sub-steps: Step 2.1: Taking the prediction time t as the boundary, the data of historical power and measured meteorological data in the look-back window n before the prediction time t are used to form the input matrix X = [P t-n ,P t-n+1 ,…,P t-1 ;Q t-n ,Q t-n+1 ,…,Q t-1 ], the numerical weather forecast data in the prediction window s is composed of Among them, P t-n Refers to the historical power value within the look-back time n before the prediction time t, P t-n+1 Refers to the historical power value within n-1 lookback time before the prediction time t, P t-1 Refers to the historical power value at the moment before the prediction time t, Q t-n Refers to the historical meteorological feature vector within the look-back time n before the forecast time t, Q t-n+1 Refers to the historical meteorological feature vector within n-1 lookback time before the forecast time t, Q t-1 Refers to the historical meteorological feature vector at the moment before the prediction time t, Refers to the predicted meteorological feature vector corresponding to the prediction time t, Refers to the predicted meteorological feature vector corresponding to the moment after the predicted moment t. Refers to the meteorological forecast feature vector corresponding to the time t+s-1 within the forecast window; Step 2.2: Generate the mask matrix M according to the temporal structure of the input matrix ask ∈R n×F , x t,j If the data is not missing, then the matrix element m t,j Set to 1, set to 0 if missing, and generate the time interval matrix δ∈R by combining the absolute time interval between sample sampling points n×F , the calculation formula is as follows: Where: I t -I t-1 Indicates an absolute time interval; m t-1,j is the mask vector at the previous moment; δ t-1,j is the previous absolute time interval; j is the feature column; t is the time point in the input matrix, and F represents the feature dimension.

3. The method according to claim 1, characterized in that In step 3, the mask is used to locate the location of the missing value, and the time lag decay rate function is designed according to the distribution characteristics of the time interval near the missing value to complete the missing value interpolation on the input side of the model time series data; specifically, it includes the following sub-steps: Step 3.1: Set the range to (0,1], and the monotonically decreasing lag decay rate function γ = f(δ|W,b) describes the time dependence: γ=1 / ln(e+Wδ+b) Where: W is the weight matrix, b is the bias vector, and δ is the time interval matrix; Step 3.2: Combine γ and M ask , δ, the last measured value and the next measured value locally related to the location where the missing value occurs, and the mean of the global statistical characteristics, the interpolation mode on the input side of the time series model is constructed as follows: Where: x t,j is the current input vector; m t,j is the mask corresponding to the current moment; x last is the last actual observation input vector; x next Input vector for the next measurement; is the mean of the corresponding feature sequence; where γ1 and γ2 represent x last and x next The time interval quantizes the weights.

4. The method according to claim 1, characterized in that In step 4, the masked autocorrelation coefficient M-ACF is used to determine the correlation coefficient of the input feature sequence with missing values ​​at different time lag steps, and the initial parameter values ​​of W and b in the time lag attenuation function γ are determined by combining the function fitting method; Use the following sub-steps: Step 4.1: Set the masked autocorrelation coefficient calculation method, abbreviated as M-ACF, to correctly count the autocorrelation scores of the sequence: Where: N is the total amount of data; k represents the selected time lag number; is the mean of the corresponding feature column; m t,j represents the mask value corresponding to the j feature column at time t, m t-k,j represents the mask value corresponding to the feature column j at time tk after a lag of k steps; x t,j represents the eigenvalue corresponding to the j feature column at time t, x t-k,j represents the eigenvalue corresponding to the feature column j at time tk after lag k steps, if and only if m t,j and m t-k,j When both are 1, there is no missing, acf k Only then can we have the calculated value, that is, only the autocorrelation calculated value of the non-missing value sequence pair is counted; Step 4.2: After obtaining the time series correlation coefficient using the masked autocorrelation coefficient calculation method M-ACF, determine the optimal input time window length of the current data set by setting the empirical threshold of the autocorrelation coefficient; Step 4.3: Combined with the calculation formula of the time-delay attenuation function γ, with δ as the independent variable, the least squares method is used to fit the correlation function to determine the parameter W∈R in γ F×F , b∈R F×1 The initial value of; the formula used is as follows: Where: k is the time interval vector of the corresponding characteristic sequence under k lag steps, acf k is the masked autocorrelation coefficient score; from the above formula, we can see that the quantities to be determined are vectors W and b. The left formula can be obtained by calculating the M-ACF module, so the least squares method is used to fit the function according to the minimum residual error: After the above operation, we get F groups of weight parameters and bias vectors, which are respectively constructed as the diagonal elements of the weight matrix W and the bias vector values. After this step, we can get the initial parameter setting value of the time-delay decay rate function; then combined with the matrix M ask The time-lag decay rate function is applied to the input missing values ​​of the interpolation model. After the model is trained, the optimal W and b matrix parameters are returned to update the decay rate function, forming a time-lag decay rate interpolation strategy.

5. The method according to claim 4, characterized in that In step 5, the time-delay attenuation rate interpolation strategy is embedded into the time series neural network, and a recurrent neural network MPIGRU that considers the processing of time series missing values ​​is constructed, so as to more accurately and efficiently learn the time dependency of wind power data from low-quality data sets; The specific steps are as follows: Step 5.1: Establish the MPIGRU hidden layer decay rate coefficient: Where: W h and b h They represent the hidden layer attenuation rate weight and bias respectively, and their initial values ​​are determined by step 4.3; Step 5.2: The model is based on the input mask vector m at time t t Determine whether the gating operation adds additional mask weight V r 、V z , V into the calculation, and then the current time sequence input vector x t Update according to the interpolation strategy, the hidden layer input side vector h t-1 Combined h Embed the missing information and finally output the current time h t As well as the updated W and b parameters of the time-delay decay rate function, the MPIGRU unit calculation formula is as follows: Where: z t is the update gate; r t is the reset gate; h t-1 is the output vector of the previous hidden layer; σ(·) represents the sigmoid activation function; U r , U z , U are the gating operation parameters of reset gate and update gate respectively; W z , W r , W h , b r , b z are the training parameters of each gate; ⊙ represents the point multiplication operation; V r 、V z , V represents the gated mask calculation vector.

6. A method for constructing a sequence-to-sequence wind power prediction model considering missing values ​​in time series, characterized in that: The MPIGRU-Seq2Seq sequence-to-sequence wind power forecasting model considering time series missing values ​​is constructed with MPIGRU as the basic unit; specifically, the following steps are included: Step S1: Input the prepared data and connect multiple MPIGRU units into an encoder that captures the development law of time series data; Step S2: capturing the lateral causal relationship between power and meteorological characteristics within the look-back window within the encoder unit; Step S3: Integrate the output hidden layer vectors and design a context vector processing layer; Step S4: constructing a decoder part in combination with the weather forecast information for the period to be predicted; Step S5: Perform nonlinear sigmoid mapping on the decoder output vectors in sequence to obtain the wind power prediction value in the current prediction period s.

7. The method according to claim 6, characterized in that In step S1, the following sub-steps are included: S1-1) After collecting the wind farm data set in the target area, a data set χ is obtained, which includes a mask matrix, a time interval matrix and a value matrix; S1-2) The missing values ​​NAN in the numerical matrix are digitized and then normalized. The wind power is normalized to [0,1] based on the rated capacity of the wind farm, and the meteorological data is normalized using the maximum and minimum normalization method; S1-3) Determine the look-back window size, input the data into the MPIGRU unit network in the form of a sliding window, and capture the horizontal causal relationship. The calculation formula is as follows: t =EncoderMPIGRU( t ,h t-1 ); S1-4) The MPIGRU units in the encoding network complete the transmission of timing rules by transmitting hidden layer vectors, and dynamically output the hidden layer vector information at the corresponding historical moment; for example, the MPIGRU unit at time l receives the output of the MPIGRU unit at time l-1 and the input set at time l, and finally outputs the hidden layer vector at time l.

8. The method according to claim 6, characterized in that In step S3, the following sub-steps are included: S3-1) Input the hidden layer vector h output by the encoder at time t t ; S3-2) Considering that the encoder and decoder input feature dimensions are different, according to the weighted formula Linear (W c h t +b c ) linearly processes the encoder output vector to adjust the vector dimension; S3-3) Mapping the linear weighted result according to the hyperbolic tangent function t =tanh[Linear(W c h t +b c )], and obtain the input vector c suitable for the decoder structure t .

9. The method according to claim 6, characterized in that In step S4, when constructing the decoder, the following steps are included: S4-1) Take the context vector c t As additional input information for the hidden layer of the decoder unit MPIGRU, the weather forecast data sequence X NWP As the input information on the time series input side, taking the wind power in the forecast period s as the basic target, the MPIGRU decoding network is constructed, and the calculation formula is as follows: S4-2) Each MPIGRU decoding unit accepts three sets of inputs, namely, the context vector c, the weather forecast data sequence X for the forecast period NWP , the hidden layer vector output by the previous decoding unit is solved through gating operation to obtain the hidden layer vector output by the current unit and output it.

Citation Information

Cited By

  • TCU-based random assignment water pump control method and system

    CN119065356A

  • Cancer detection method based on multi-spectrum electrical impedance

    CN120021964A

  • Wind power resource drought degree assessment method and related equipment

    CN121810126A

  • Wind power prediction method based on state space model

    CN122782443A