A wind power prediction method based on an adaptive time-frequency dual-domain neural network
Wind power prediction is performed using an adaptive time-frequency dual-domain neural network (ASTFDNet). This network dynamically separates low-frequency trends and high-frequency fluctuations, and utilizes improved gating fusion and time-frequency collaborative modeling to solve the problems of insufficient spectrum partitioning and inadequate information fusion in existing technologies. This results in more accurate and stable predictions, and is applicable to the power allocation and energy management of electrolyzers in wind power hydrogen production systems.
Patent Information
- Application Number
- CN202611627323.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing wind power prediction technologies struggle to effectively separate global trends from local disturbances in complex, nonlinear, highly nonstationary, and short-term drastic fluctuation scenarios. They lack adaptive spectrum partitioning capabilities, and their fusion of high-frequency and low-frequency features is simplistic, failing to fully utilize the global structure in the frequency domain and the local dynamic information in the time domain, resulting in unstable prediction results.
An adaptive time-frequency dual-domain neural network (ASTFDNet) is adopted. The ratio of low frequency to high frequency is dynamically adjusted through an adaptive spectrum partitioning mechanism. Combined with an improved gating fusion mechanism and a time-frequency dual-domain collaborative backbone, the dynamic separation and adaptive weighting of low frequency trends and high frequency fluctuations are achieved. Gating weights are generated using harmonic statistics information to perform collaborative modeling in the frequency domain and time domain.
It improves the accuracy and stability of wind power forecasting, effectively tracks short-term ramp-ups, peak-valley fluctuations and local abrupt changes, and provides more stable forward-looking information, providing a reliable basis for electrolyzer power allocation and system energy management in wind power hydrogen production systems.
Smart Images

Figure CN123144017A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wind power prediction technology, and in particular to an ultra-short-term wind power prediction method based on an adaptive time-frequency dual-domain neural network. Background Technology
[0002] In wind-to-hydrogen systems, wind power serves as the upstream input to the electrolyzer, and its continuity, stability, and predictability directly impact the electrolyzer's load regulation, power allocation, energy storage coordination, and system safety. When prediction results exhibit persistent deviations or insufficient response to short-term fluctuations, it can lead to lag in electrolyzer power regulation, deviations in energy management strategies from actual operating conditions, and increased risks of system instability. Therefore, compared to typical wind power grid connection prediction scenarios, wind-to-hydrogen scenarios place higher demands on the predictive model's dynamic response capabilities, prediction stability, and ability to characterize complex fluctuations.
[0003] Regarding wind power prediction, existing technologies have formed several technical routes, including traditional modeling methods, deep learning methods, and joint spatiotemporal and frequency domain modeling methods. Traditional modeling methods include physical models, statistical models, machine learning models, and grey prediction models. Physical models typically combine numerical weather prediction, aerodynamic mechanisms, wind turbine power curves, and site environmental parameters for prediction; statistical and machine learning models mainly rely on historical data to mine the mapping relationship between input variables and output power; grey prediction models are suitable for some small samples or scenarios with relatively clear variation patterns. The above methods have certain application value when wind conditions are stable or the sequence pattern is obvious, but in complex nonlinear, strongly nonstationary, and short-term drastic fluctuation scenarios, they are still prone to problems such as prediction lag, increased local errors, and insufficient generalization ability.
[0004] With the development of data-driven technologies, deep learning methods such as recurrent neural networks, long short-term memory networks, gated recurrent units, encoder-decoder structures, Transformers and their improved models have been widely applied to wind power forecasting. These methods can learn complex nonlinear mapping relationships from large amounts of historical data, improving prediction accuracy to some extent. However, from the perspective of feature modeling, most existing deep learning models still mainly rely on temporal sequence relationships for feature extraction. Although they can characterize the changing trends between adjacent time points, they are still insufficient in representing explicit periodic structures, multiple frequency components, and trend-fluctuation coupling relationships, making it difficult to fully utilize global structural information in the frequency domain.
[0005] To further reduce the modeling complexity of wind power sequences, existing technologies have proposed prediction schemes that combine signal decomposition methods with deep learning models, such as variational mode decomposition, empirical mode decomposition, wavelet decomposition, and Fourier transform. These methods typically decompose the original sequence into different frequency components, then extract and predict features separately to enhance the model's ability to represent multi-scale fluctuation characteristics. In addition to decomposition prediction methods, existing technologies also include spatiotemporal correlation modeling and frequency domain or time-frequency joint modeling methods. The former typically uses graph neural networks, attention mechanisms, and adaptive sparse graph structures to characterize the correlation between wind farms or different variables, while the latter combines frequency domain features with deep network structures to enhance the modeling ability for periodic structures, frequency components, and local dynamics. However, in ultra-short-term prediction scenarios for wind power to hydrogen production, existing technologies still have room for improvement in supporting the continuity, dynamic response capability, and predictability of prediction results.
[0006] In summary, while existing wind power prediction technologies have made some progress, they still have the following shortcomings:
[0007] First, some methods mainly rely on the original time-domain sequence or fixed decomposition results for modeling, which is insufficient in characterizing the coupling relationship between low-frequency trends, periodic structures and high-frequency fluctuations, and makes it difficult to effectively separate global trends from local disturbances.
[0008] Second, the spectrum partitioning or signal decomposition process often relies on fixed rules or artificial parameters, lacking the ability to adaptively partition based on the statistical characteristics of sample harmonics.
[0009] Third, the fusion of low-frequency and high-frequency features is relatively simple, usually using splicing, superposition or fixed weighting, which makes it difficult to dynamically adjust the contribution of multi-frequency information according to the periodic structure and fluctuation state of different samples.
[0010] Fourth, some methods fail to further distinguish between effective fluctuation information and noise disturbance information in high-frequency components, which can easily lead to noise interference prediction results.
[0011] Fifth, existing single time-domain or frequency-domain modeling methods are insufficient in their ability to synergistically utilize the global periodic structure in the frequency domain and the local dynamic characteristics in the time domain, making it difficult to fully meet the prediction requirements for short-term ramp-up, peak-valley fluctuations, power continuity, and suppression of the accumulation of systematic deviations in wind power-to-hydrogen scenarios.
[0012] The aforementioned shortcomings arise because existing methods typically treat spectral decomposition, fusion of different frequency features, and time-frequency domain modeling as relatively independent processing steps. The spectral boundaries fail to adjust to the periodic structure and fluctuation state of the current sample; there is a lack of a unified dynamic adjustment basis between low-frequency and high-frequency information; effective fluctuation information and noise perturbation information in high-frequency components are not further distinguished; and there is a lack of coordinated weights between the time-domain and frequency-domain branches oriented towards the same sample state. Therefore, the spectral structure and feature information obtained in the previous step is difficult to continuously guide subsequent processing, easily leading to a mixture of trend information and local perturbations, an imbalance in the contributions of different frequency components, and insufficient local fluctuation response. Summary of the Invention
[0013] To address the technical problems mentioned in the background section, this invention provides a wind power prediction method based on an adaptive time-frequency dual-domain neural network.
[0014] To achieve the above objectives, the technical solution of the present invention is as follows:
[0015] A wind power prediction method based on an adaptive time-frequency dual-domain neural network includes the following steps:
[0016] Step 1: Input sequence construction:
[0017] At any moment Get the length as Historical multivariate observation sequence As input samples, calculate historical multivariate observation sequences Harmonic statistics of each variable in the middle, the first The input variables at time... The corresponding harmonic statistical vector is denoted as By stacking the harmonic statistical vectors of each variable, a variable-level harmonic statistical matrix is obtained. The global harmonic statistical vector is obtained by averaging the harmonic statistical vectors of all variables. The harmonic statistics include the proportion of main harmonic energy, the concentration of spectral peaks, and the spectral order.
[0018] Step 2, Adaptive spectrum allocation mechanism:
[0019] Historical multivariate observation sequences along the time dimension Perform a Fast Fourier Transform on each input variable to obtain the corresponding frequency domain representation, based on the variable-level harmonic statistical matrix. and global harmonic statistical vector An adaptive low-frequency ratio is generated for each variable. Complementary low-frequency soft masks and high-frequency soft masks are constructed based on this ratio. The frequency domain representation is filtered using the low-frequency soft masks and high-frequency soft masks. The low-frequency trend component and high-frequency fluctuation component are obtained through inverse fast Fourier transform.
[0020] Step 3: Improve the gating fusion mechanism:
[0021] Step 3.1 Perform feature mapping on the low-frequency trend component and the high-frequency fluctuation component to obtain the low-frequency trend feature, the high-frequency effective feature, and the high-frequency noise feature;
[0022] Step 3.2 Using harmonic statistical vectors and global harmonic statistical vector Calculate the gate bias and gate temperature, jointly encode the low-frequency trend features and high-frequency effective features to obtain the basic gate activation value, and combine the basic gate activation value with the gate bias and gate temperature to obtain the final gate weight;
[0023] Step 3.3 Adaptively weight the low-frequency trend features and high-frequency effective features according to the gating weights to obtain the frequency domain fusion features;
[0024] Step 4, Time-Frequency Dual-Domain Collaborative Backbone:
[0025] Historical multivariate observation series As input, extract local features in the time domain through the local dependency branch in the time domain;
[0026] Historical multivariate observation series Harmonic statistical vector of a single variable With global harmonic statistical vector Joint mapping is performed to obtain the unnormalized contribution scores of the frequency domain branch and the time domain branch respectively. The two contribution scores are normalized by a normalization function to obtain the dual-domain collaborative weight. The frequency domain fusion feature and the time domain local feature are weighted according to the dual-domain collaborative weight to obtain the time-frequency joint feature. The time-frequency joint features of all input variables are stacked to form the overall time-frequency joint feature matrix. Feature interaction and refinement are then performed to obtain the final time-frequency joint feature.
[0027] Step 5: Predicted Output and High-Frequency Noise Compensation:
[0028] The refined final time-frequency joint features are used to generate the main prediction term through the feature mapping function. The high-frequency noise features corresponding to each input variable obtained in step 3.1 are combined to form the overall high-frequency noise correlation features. The feature mapping function is used to generate the local compensation term. The main prediction term and the local compensation term are superimposed to obtain the final output future wind power prediction sequence.
[0029] Furthermore, a prediction model based on the adaptive time-frequency dual-domain neural network ASTFDNet is constructed through steps 2-5. Supervised learning is then used to train the prediction model, with mean squared error used as the prediction loss during training.
[0030] ,
[0031] in, Indicates the predicted loss; This indicates the number of samples in a training batch. Indicates the sample index within the batch; Indicates the prediction step size. This represents the sum of squares of the elements of the vector. and The respective The actual and predicted wind power sequences of each sample
[0032] when When the loss is zero, it represents the single-step prediction error; when... In this case, the loss represents the average error across multiple future prediction times.
[0033] The overall training objective can be expressed as:
[0034] ,
[0035] in, This represents all learnable parameters in ASTFDNet; This represents the set of optimization parameters obtained by minimizing the prediction loss; This represents the parameter that minimizes the prediction loss.
[0036] During training, the gradient of the prediction loss is backpropagated sequentially in the order of step 5 to step 2, and end-to-end joint optimization is performed around the final wind power prediction target. After training is completed, the real-time obtained historical multivariate observation sequence is input into the trained ASTFDNet to obtain the wind power prediction results for one or more future times.
[0037] Further, in step 1, the variable-level harmonic statistical matrix is represented as:
[0038] ,
[0039] in, This indicates the total number of input variables. Indicates the index of the input variable. ; Indicates time No. The harmonic statistical vector corresponding to each input variable has three components, namely the proportion of main harmonic energy, the concentration of spectral peaks, and the spectral order.
[0040] The global harmonic statistical vector is obtained by averaging the harmonic statistics of all variables.
[0041] ,
[0042] in, This represents the global harmonic statistics of the current input sample.
[0043] Further, in step 2, the adaptive low-frequency ratio is expressed as:
[0044] ,
[0045] in, Indicates time No. The adaptive low-frequency ratio corresponding to each input variable Indicates the basic low-frequency ratio, This represents the periodic intensity adjustment coefficient. Indicates by the first The harmonic statistics of each variable are determined. This represents a mapping function that calculates the local-global spectral offset based on the variable-level harmonic statistical vector and the global harmonic statistical vector. Its output is a scalar used to adjust the low-frequency ratio. and These represent the lower and upper bounds of the low-frequency ratio, respectively. This represents the limiting function. After obtaining the adaptive low-frequency ratio, the model constructs the first... Low-frequency soft mask corresponding to each variable and high-frequency soft mask ,
[0046] The high-frequency soft mask is calculated from the low-frequency soft mask:
[0047] ,
[0048] in, Indicates frequency index; Indicates the first The variable in the first... Low-frequency retention weights at each frequency position; This indicates the high-frequency retention weight at the same frequency position;
[0049] Subsequently, the model uses low-frequency and high-frequency soft masks to filter the frequency domain representation, and obtains the low-frequency trend component and high-frequency fluctuation component through inverse fast Fourier transform:
[0050] ,
[0051] ,
[0052] in, Indicates the first The frequency domain representation obtained by performing a Fast Fourier Transform on the input variables; This represents the inverse fast Fourier transform; This represents element-wise multiplication; Indicates the first Low-frequency trend components of each variable, Indicates the first High-frequency fluctuation components of each variable.
[0053] Further, in step 3.1, the low-frequency trend characteristics, high-frequency effective characteristics, and high-frequency noise characteristics are expressed as follows:
[0054] ,
[0055] in, Indicates low-frequency trend characteristics; Indicates high-frequency effective characteristics; Indicates the characteristics of high-frequency noise; , and These represent the corresponding feature extraction functions. and Employ a feature mapping network with mutually independent parameters.
[0056] Depend on The extracted high-frequency effective features participate in low-frequency-high-frequency gating fusion; by The extracted high-frequency noise features are retained in the prediction output stage, and the high-frequency noise features corresponding to each input variable are retained. By combining these features, an overall high-frequency noise correlation characteristic can be formed. It is then passed along the independent branches to step 5 to generate local compensation terms.
[0057] Furthermore, in step 3.2, harmonic statistical vectors are used. and global harmonic statistical vector Generate local-global context vectors Based on this, the gate bias and gate temperature are calculated:
[0058] ,
[0059] in, Indicates by the first The local-global context vector is generated by the harmonic statistical vectors of each variable and the global harmonic statistical vector. Indicates the first The gating biases corresponding to each variable; Indicates the corresponding gate temperature; and Indicates the scaling factor. and Represents a lightweight nonlinear mapping function.
[0060] The model first will... The low-frequency trend features and high-frequency effective features of each variable are jointly encoded to obtain the basic gating activation values:
[0061] ,
[0062] in, Indicates feature splicing; and These represent the learnable weight matrix and bias vector in the gating coding process, respectively. This represents the basic gating activation value before harmonic statistics are introduced.
[0063] The final gating weights are obtained by combining the base gating activation value with the gating bias and gating temperature:
[0064] ,
[0065] in, This represents the Sigmoid function and performs a non-linear mapping on each feature dimension of the input vector element by element; Indicates the first The gating weight vector corresponding to each input variable is composed of... It consists of gating weight elements, each element corresponding to a latent space feature dimension; Represents the dimension of latent space features. Indicates the first The basic gated activation vectors corresponding to each input variable. Indicates the first The gating biases corresponding to each input variable; its output dimension is the same as the basic gating activation vector. Consistent, and combined according to the corresponding feature dimensions; A positive gate temperature parameter used to adjust the smoothness and selectivity of the gate response; gate temperature The range of values is determined by the scaling factor. and nonlinear mapping functions The output range is determined jointly;
[0066] In step 3.3, the low-frequency trend features and high-frequency effective features are adaptively weighted according to the gating weights to obtain the frequency domain fusion features:
[0067] ;
[0068] in, Indicates the first Frequency domain fusion features of individual variables; This represents element-wise product.
[0069] Furthermore, in step 4, the historical multivariate observation sequence The harmonic statistical vectors of individual variables in the data are jointly mapped with the global harmonic statistical vector to obtain the unnormalized contribution scores of the frequency domain branch and the time domain branch, respectively. and The two contribution scores are normalized using the Softmax normalization function to obtain the bi-domain collaborative weights.
[0070] ,
[0071] in, and They represent the first The frequency domain branch contribution score and the time domain branch contribution score are generated by combining the harmonic statistics of each variable and the global harmonic statistics of the current sample. and These represent the contribution weights of frequency domain features and time domain features in the final joint representation, respectively.
[0072] By weighting the frequency domain fused features and the time domain local features according to the dual-domain collaborative weighting, the time-frequency joint features are obtained:
[0073] ,
[0074] in, Indicates the first The time-frequency joint characteristics of the variables, Indicates the first Frequency domain fusion features of individual variables Indicates the first Local time-domain features of each variable;
[0075] Stack the joint time-frequency features of all input variables to form a unified joint time-frequency feature matrix:
[0076] ,
[0077] in, This represents the overall time-frequency joint feature matrix, composed of the time-frequency joint features of all variables. This indicates a feature stacking operation. Indicates the number of input variables. This represents the feature dimension corresponding to each variable.
[0078] The overall time-frequency joint feature matrix is subjected to feature interaction and refinement, specifically as follows:
[0079] First, through feature interaction operations Information from different variables and feature dimensions is mixed, then a feedforward neural network is used for nonlinear feature transformation, and residual connections are formed with the original overall time-frequency joint features:
[0080] ,
[0081] in, This represents the interactive mixing operation between different variables and different features; This represents a feedforward neural network; This represents the final time-frequency joint feature after feature interaction and refinement.
[0082] Furthermore, step 5, predicting the output and compensating for high-frequency noise.
[0083] The final time-frequency joint features after refinement via feature mapping function Generate the master prediction term by combining the high-frequency noise features corresponding to each input variable obtained in step 3.1 to form the overall high-frequency noise correlation feature. via feature mapping function Generate local compensation terms:
[0084] ,
[0085] in, This represents the main prediction term output by the main prediction branch; This represents the compensation term output by the local compensation branch. This represents the feature mapping function in the main prediction branch; This represents the feature mapping function in the local compensation branch; This represents the high-frequency noise-related features extracted in step 3.1.
[0086] The final output of the future wind power prediction sequence is obtained by superimposing the main prediction term and the local compensation term:
[0087] ,
[0088] in, This represents the final output of the model, a predicted sequence of future wind power. Indicates the main forecast term. This represents the compensation term output by the local compensation branch.
[0089] Historical multivariate observation sequence Xt To future wind power forecast sequence The predictive mapping relationship between them can be expressed as:
[0090] ,
[0091] in, This represents the wind power prediction model to be learned. This represents all learnable parameters in the model. This represents the model's output prediction of future wind power output.
[0092] An electronic device includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the above-described wind power prediction method based on an adaptive time-frequency dual-domain neural network.
[0093] A computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described wind power prediction method based on an adaptive time-frequency dual-domain neural network.
[0094] Compared with the prior art, the beneficial effects of the present invention are:
[0095] First, adaptive spectrum partitioning reduces frequency component misclassification caused by fixed boundaries.
[0096] Existing decomposition and prediction methods typically rely on fixed frequency bands, manually set modal numbers, or static decomposition rules, making it difficult to adapt to changes in the spectral structure of different input samples. This scheme dynamically generates an adaptive low-frequency proportion based on the variable levels of the wind power sequence itself and global harmonic statistics, and constructs low-frequency and high-frequency soft masks to divide the input sequence into low-frequency trend components and high-frequency fluctuation components. This approach can adjust the frequency division range according to different wind conditions, fluctuation intensity, and periodic structure, reducing frequency component misclassification that may be caused by fixed frequency boundaries and improving the model's adaptability to complex non-stationary sequences.
[0097] Second, hierarchical feature mapping helps distinguish between trend, effective fluctuation, and noise-related information.
[0098] Wind power sequences typically contain multiple types of information, including overall trends, periodic variations, local abrupt changes, short-term disturbances, and random noise. This scheme employs adaptive spectrum partitioning to ensure that low-frequency components primarily retain the overall trend and periodic structure of the power sequence, while high-frequency components primarily retain short-term fluctuations, local abrupt changes, and random disturbances. Furthermore, using a feature mapping network with mutually independent parameters, high-frequency fluctuation components are mapped to effective high-frequency fluctuation features and high-frequency noise-related features, which are then used for main feature fusion and local error compensation, respectively. This approach preserves effective high-frequency dynamic information while reducing the impact of high-frequency random disturbances directly entering the main prediction process.
[0099] Third, harmonic prior-guided gating weights are dynamically adjusted according to the sample state.
[0100] After completing the structured representation of low-frequency trend features and high-frequency fluctuation features, this scheme further introduces an improved gating fusion mechanism. This mechanism utilizes variable-level harmonic statistics and global harmonic statistics to generate a local-global context, and calculates the gating bias and gating temperature accordingly. This dynamically generates gating weights to adaptively weight low-frequency trend features and high-frequency effective fluctuation features. Compared to simple concatenation, direct addition, or fixed-weight fusion methods, this mechanism can adjust the contribution of different frequency information based on the periodic structure and fluctuation state of the current input sample. When the overall trend and periodic structure are relatively obvious, the model can enhance the role of low-frequency trend information; when short-term fluctuations or local abrupt changes are significant, the model can increase the contribution of high-frequency effective fluctuation information, thereby enhancing the targeting of feature fusion.
[0101] Fourth, dual-domain synergy takes into account both the global cyclical structure and local dynamic changes.
[0102] Existing methods typically focus on single-time-domain or single-frequency-domain modeling, making it difficult to simultaneously consider both global periodic structure and local short-term variations. This scheme, based on frequency-domain fusion features, introduces a time-domain local dependency branch and utilizes variable-level and global harmonic statistics to generate synergistic weights for the frequency-domain and time-domain branches, dynamically adjusting the contributions of the two branches to the joint features. Thus, the model can utilize frequency-domain information to characterize the overall trend and periodic structure, while also using time-domain information to capture dynamic relationships between adjacent moments, local upswings, peak-valley changes, and short-term disturbances, thereby forming a time-frequency joint feature that simultaneously includes global structure and local variations, improving the prediction results' ability to represent complex dynamic changes. The comparison curve between the actual and predicted wind power values is shown below. Figure 5 and Figure 6 As shown, in operation segments containing short-term ramps, peak-valley fluctuations, and local abrupt changes, this scheme can track the actual power change trend well and reduce some prediction lag and local bias, demonstrating good dynamic response capability and prediction stability.
[0103] Fifth, the forecast results can provide more stable forward-looking information for wind power-to-hydrogen operation.
[0104] Wind power-to-hydrogen systems have high requirements for the continuity, stability, and predictability of upstream wind power input. Prediction errors can affect electrolyzer load regulation, energy storage charging and discharging strategies, and system energy management. This scheme enhances the consistency between the prediction results and the overall power change trend through low-frequency trend modeling, improves the response capability to short-term disturbances and power ramp-up processes through high-frequency effective fluctuation feature modeling, and enhances the stability of the prediction results through time-frequency dual-domain collaborative modeling. Simultaneously, high-frequency noise-related features do not directly participate in the main feature fusion but are used to generate local compensation terms through independent compensation branches to correct local changes that are not fully represented in the main prediction results. Therefore, the prediction results obtained by this scheme can provide forward-looking power information for electrolyzer power allocation, energy storage coordinated control, and system energy management in wind power-to-hydrogen systems.
[0105] In summary, this invention achieves dynamic separation of trends and fluctuations through adaptive spectrum partitioning, adaptive weighting of multi-frequency information through improved gating fusion, reduces the impact of random disturbances through high-frequency noise compensation, and achieves joint modeling of global structure in the frequency domain and local dynamics in the time domain through time-frequency dual-domain collaborative backbone. This can improve the accuracy, stability and robustness of ultra-short-term wind power forecasting. Attached Figure Description
[0106] Figure 1 This is an overall flowchart of the present invention;
[0107] Figure 2 This is a schematic diagram of the adaptive spectrum partitioning based on harmonic statistics information according to the present invention;
[0108] Figure 3 This is a structural diagram of the improved gated fusion and noise compensation structure guided by harmonic priors in this invention;
[0109] Figure 4 This is a diagram of the frequency domain-time domain dual-domain collaborative modeling structure of the present invention;
[0110] Figure 5 A comparison chart of wind power prediction results from different prediction models for dataset 1;
[0111] Figure 6 This is a comparison chart of wind power prediction results from different prediction models for dataset 2. Detailed Implementation
[0112] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments and the accompanying drawings. It should be understood that these descriptions are merely exemplary and not intended to limit the scope of the invention. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concept of the invention.
[0113] The wind power prediction described in this invention refers to the ultra-short-term prediction of wind power as the upstream input of the electrolyzer for the wind power hydrogen production operation scenario, and provides a predictive basis for subsequent electrolyzer power allocation and system energy management.
[0114] A wind power prediction method based on an adaptive time-frequency dual-domain neural network includes the following steps:
[0115] Step 1: Input sequence construction
[0116] Set at time The length that can be obtained is Historical multivariate observation sequence This is used as the input sample. Among them, the historical multivariate observation sequence... It consists of multi-variable observations of wind power output and related meteorological and operational status within a historical window. This represents the length of the historical input window. The future wind power sequence corresponding to the input sample is denoted as... When predicting step size When, it corresponds to single-step prediction; when This corresponds to multi-step prediction.
[0117] This invention establishes historical multivariate observation sequences Towards future wind power sequence The predictive mapping relationship between them can be expressed as:
[0118] ,
[0119] in, This represents the wind power prediction model to be learned. This represents all learnable parameters in the model. This represents the model's output prediction of future wind power output.
[0120] Wind power series exhibits trend changes, periodic fluctuations, and local disturbances simultaneously, and the periodic characteristics of different input samples and variables may differ significantly. To provide a basis for subsequent spectrum allocation, further calculations were performed on historical multivariate observation sequences. Harmonic statistics of each variable.
[0121] The harmonic statistics include the proportion of primary harmonic energy, peak concentration, and spectral order. The proportion of primary harmonic energy characterizes the contribution of the main frequency components to the overall spectral energy; peak concentration characterizes the degree of concentration of spectral energy near the main peaks; and spectral order characterizes the concentration and regularity of the spectral distribution.
[0122] No. The input variables at time... The corresponding harmonic statistical vector is denoted as By stacking the harmonic statistical vectors of each variable, a variable-level harmonic statistical matrix is obtained:
[0123] ,
[0124] in, Indicates the number of input variables, superscript Indicates the first One input variable; Indicates the first The harmonic statistical vector of each variable, whose three components correspond to the main harmonic energy ratio, spectral peak concentration and spectral order, respectively. Used to describe the periodicity and spectral distribution characteristics of different variables in the current sample.
[0125] Further averaging the harmonic statistics of all variables yields the global harmonic statistical vector:
[0126] ,
[0127] in, It represents the global harmonic statistics of the current input sample, which reflects the overall periodic intensity and spectral distribution of the sample.
[0128] Step 2: Adaptive Spectrum Allocation Mechanism
[0129] Wind power sequences exhibit significant non-stationarity, with low-frequency trends, periodic structures, and local disturbances often coupled together. Using fixed thresholds or static rules for frequency division may incorrectly classify some periodic components into the high-frequency region or incorrectly retain local disturbances in the low-frequency region, thus affecting subsequent feature extraction and prediction results.
[0130] Since the aforementioned harmonic statistics can reflect the periodic strength and spectral distribution differences of different variables and samples, this invention utilizes variable-level harmonic statistics and global harmonic statistics to dynamically adjust the low-frequency retention range, thereby achieving adaptive separation of low-frequency trend components and high-frequency fluctuation components. The specific process of this mechanism is as follows: Figure 2 As shown.
[0131] Given historical input samples The model first performs a Fast Fourier Transform (FFT) on each input variable along the time dimension to obtain the corresponding frequency domain representation. Then, the model combines the variable-level harmonic statistics matrix. and global statistical vector An adaptive low-frequency proportion is generated for each variable.
[0132] No. The adaptive low-frequency proportion of each variable is expressed as:
[0133] ,
[0134] in, Indicates time No. The adaptive low-frequency proportion corresponding to the input variable. Indicates the basic low-frequency ratio, This represents the periodic intensity adjustment coefficient. Indicates by the first The harmonic statistics of each variable are determined to comprehensively reflect the strength of the periodicity of the current sample of that variable. This represents a mapping function that calculates the local-global spectral offset based on the variable-level harmonic statistical vector and the global harmonic statistical vector. Its output is a scalar used to adjust the low-frequency ratio. and These represent the lower and upper bounds of the low-frequency ratio, respectively; through This represents a limiting function used to restrict the proportion of low frequencies within a preset effective range. When a variable has a significant periodic structure, its low-frequency retention ratio can be adjusted accordingly based on the periodic intensity and harmonic statistics. When local fluctuations in the sample are strong, the model can also change the frequency division position through a local-global spectral offset term. This avoids an imbalance between trend and fluctuation information caused by an excessively small or large low-frequency ratio.
[0135] After obtaining the adaptive low-frequency ratio, the model constructs the first... Low-frequency soft mask corresponding to each variable and high-frequency soft mask Low-frequency soft masks are used to preserve low-frequency trends and periodic components in the frequency domain, while high-frequency soft masks are used to preserve high-frequency fluctuations and local perturbation components.
[0136] To ensure that the low-frequency and high-frequency regions remain complementary, the high-frequency soft mask is calculated from the low-frequency soft mask:
[0137] ,
[0138] in, Indicates frequency index; Indicates the first The variable in the first... Low-frequency retention weights at each frequency position; This indicates that high frequencies at the same frequency position retain weights; dividing the spectrum by soft masking instead of hard thresholding can reduce weight abrupt changes at frequency boundaries, resulting in a smoother transition between low-frequency trends and high-frequency fluctuations.
[0139] Subsequently, the model filters the frequency domain representation using low-frequency and high-frequency soft masks, and recovers the low-frequency trend component and high-frequency fluctuation component using the inverse fast Fourier transform (IFFT).
[0140] ,
[0141] ,
[0142] in, Indicates the first The frequency domain representation obtained by performing a Fast Fourier Transform on the input variables; This represents the inverse fast Fourier transform; This represents element-wise multiplication; Indicates the first Low-frequency trend components of each variable, Indicates the first High-frequency fluctuation components of each variable.
[0143] Through the above process, the present invention can dynamically adjust the frequency division method according to the periodic structure and spectral distribution of different input samples, so that the low-frequency components mainly retain the overall trend and periodic structure of the wind power sequence, and the high-frequency components mainly retain short-term fluctuations, local mutations and random disturbances.
[0144] The low-frequency trend component and high-frequency fluctuation component obtained by spectrum division have different information emphases, and their relative importance changes with wind conditions and sample fluctuation states. Therefore, this invention does not directly splice or fix the weights of the two types of components, but instead uses an improved gating fusion mechanism for dynamic combination.
[0145] Step 3: Improve the gating fusion mechanism
[0146] After adaptive spectrum partitioning, the input sequence is decomposed into low-frequency trend components. and high-frequency fluctuation components Low-frequency components primarily reflect the overall trend and periodic structure of the wind power sequence, while high-frequency components contain both effective dynamic information such as short-term fluctuations and local abrupt changes, and may also include random noise disturbances. To avoid simple splicing or fixed weighting between low-frequency and high-frequency information, this invention sets up an improved gating fusion mechanism, which dynamically assigns weights to different frequency components under the guidance of harmonic statistics. The specific structure is as follows: Figure 3 As shown.
[0147] First, the model performs feature mapping on the low-frequency trend component and the high-frequency fluctuation component to obtain low-frequency trend features, high-frequency effective features, and high-frequency noise features:
[0148] ,
[0149] in, Indicates low-frequency trend characteristics; This represents the effective high-frequency features extracted from high-frequency fluctuation components. Indicates the characteristics of high-frequency noise; , and These represent the corresponding feature extraction functions. and A feature mapping network with mutually independent parameters is used.
[0150] Although and All are high-frequency fluctuation components Both are inputs, but they play different roles in the subsequent prediction process: by The extracted high-frequency effective features participate in low-frequency-high-frequency gating fusion to characterize effective dynamic information such as short-term fluctuations and local mutations; by The extracted high-frequency noise features are not directly incorporated into the main feature fusion process but are retained until the prediction output stage to learn local correction information that is not fully represented in the main prediction result. This is used to extract high-frequency effective fluctuation features. With the use of high-frequency noise feature extraction Independent network parameters are used, and the parameters are updated according to their respective prediction paths during model training, thereby forming high-frequency effective features for main feature fusion and high-frequency noise features for local compensation.
[0151] Therefore, low-frequency trend characteristics and high-frequency effective features Entering the subsequent gating fusion process, high-frequency noise characteristics The high-frequency noise features corresponding to each input variable are then propagated along the independent branches to the prediction output stage. By combining these features, an overall high-frequency noise correlation characteristic can be formed. This information is then passed along independent branches to the prediction output stage to generate local compensation terms. Thus, high-frequency information participates in both main feature fusion and local error compensation according to its function.
[0152] To enable the fusion weights of low-frequency and high-frequency effective information to change with the periodic structure of the current sample, the model further utilizes harmonic statistical vectors. and global harmonic statistical vector Generate local-global context vectors Based on this, the gate bias and gate temperature are calculated:
[0153] ,
[0154] in, Indicates by the first The local-global context vector is generated jointly by the harmonic statistical vectors of each variable and the global harmonic statistical vector. Indicates the first The gating biases corresponding to each variable; Indicates the corresponding gate temperature; and Indicates the scaling factor. and Represents a lightweight nonlinear mapping function. Gated bias. Used to adjust the gating decision direction and gating temperature. Used to adjust the smoothness and selection strength of the gating response, so that the gating weights can adapt to the periodic structure and fluctuation state of the sample.
[0155] Before calculating the gating weights, the model first... The low-frequency trend features and high-frequency effective features of each variable are jointly encoded to obtain the basic gating activation values:
[0156] ,
[0157] in, Indicates feature splicing; and These represent the learnable weight matrix and bias vector in the gating coding process, respectively. This represents the basic gating activation value before harmonic statistics are introduced.
[0158] The basic gating activation value is further combined with the gating bias and gating temperature to obtain the final gating weight:
[0159] ,
[0160] in, This represents the Sigmoid function. Indicates the first Gating weights on each feature dimension of the latent space of each variable; This represents the dimension of the latent space features. To be a positive gate temperature parameter, the gate temperature... The range of values is determined by the scaling factor. and nonlinear mapping functions The output range is jointly guaranteed to avoid zero denominator or invalid temperature values.
[0161] Finally, the low-frequency trend features and high-frequency effective features are adaptively weighted according to the gating weights to obtain the frequency domain fusion features:
[0162] ,
[0163] in, Indicates the first Frequency domain fusion features of individual variables; This represents element-wise product. When the gating weight on a certain latent space dimension is large, that dimension focuses more on low-frequency trend features; when the gating weight is small, that dimension focuses more on high-frequency effective fluctuation features.
[0164] Through the above process, the model can dynamically allocate the contributions of low-frequency trend information and high-frequency effective fluctuation information based on the harmonic statistical characteristics of the current sample. This fusion process solves the problem of adaptive combination between different frequency components, but the frequency domain features mainly reflect the global periodic structure and trend changes, and the local dependencies between adjacent time points still need to be further extracted. Therefore, this invention further introduces a time-domain local dependency branch to construct a time-frequency dual-domain collaborative backbone.
[0165] Step 4: Time-Frequency Dual-Domain Collaborative Backbone
[0166] After the above adaptive spectrum partitioning and improved gating fusion, the prediction model obtains the first... Frequency domain fusion features corresponding to each input variable Meanwhile, to compensate for the inadequacy of frequency domain features in representing local dependencies between adjacent time points, the model uses historical multivariate observation sequences. As input, extract the first... Local time-domain features corresponding to each variable ,in It is mainly used to characterize the dynamic relationship between adjacent time points, local upslopes, peak-valley changes, and short-term disturbances.
[0167] To coordinate the effects of the frequency domain branch and the time domain branch according to the periodicity and fluctuation states of different samples, the model will... Harmonic statistical vector of each variable With global harmonic statistical vector Perform a joint mapping to obtain the unnormalized contribution scores for the frequency domain branch and the time domain branch, respectively. and Subsequently, the two contribution scores are normalized using the Softmax function to obtain the bi-domain collaborative weights:
[0168] ,
[0169] in, and They represent the first The frequency domain branch contribution score and the time domain branch contribution score are generated by combining the harmonic statistics of each variable and the global harmonic statistics of the current sample. and These represent the contribution weights of frequency domain features and time domain features in the final joint representation, respectively.
[0170] Subsequently, the frequency domain fused features and time domain local features are weighted according to the dual-domain collaborative weighting to obtain the first... Time-frequency joint characteristics of the variables:
[0171] ,
[0172] in, Indicates the first The time-frequency joint characteristics of the variables, Indicates the first Frequency domain fusion features of individual variables Indicates the first Local features of each variable in the time domain.
[0173] Stack the joint time-frequency features of all input variables to form a unified joint time-frequency feature matrix:
[0174] ,
[0175] in, This represents the overall time-frequency joint feature matrix, composed of the time-frequency joint features of all variables. This indicates a feature stacking operation. Indicates the number of input variables. This represents the feature dimension corresponding to each variable.
[0176] Since feature stacking primarily aggregates time-frequency information from different variables, the model interacts and refines the overall time-frequency joint features to further extract the correlations between different variables and feature dimensions. Specifically, this is achieved first through feature interaction operations. Information from different variables and feature dimensions is mixed, and then a nonlinear feature transformation is performed using a feed-forward network (FFN). This transformed feature is then combined with the original overall time-frequency joint features to form a residual connection.
[0177] ,
[0178] in, This represents the interactive mixing operation between different variables and different features; This represents a feedforward neural network; This represents the final time-frequency joint feature after feature interaction and refinement; Residual connections are formed to preserve the original joint features and improve the stability of model training.
[0179] Through the aforementioned time-frequency dual-domain collaborative process, the model can dynamically adjust the contribution of frequency domain and time domain information according to the harmonic statistical characteristics of the samples, and further model the interaction relationship between different variables, providing joint features that simultaneously include global periodic structure and local dynamic changes for subsequent wind power prediction.
[0180] Step 5: Predicted Output and High-Frequency Noise Compensation
[0181] The final time-frequency joint features were obtained after refinement. Afterwards, the model enters the prediction output stage. The aforementioned time-frequency dual-domain collaborative process yields... The input to the prediction branch is processed by the feature mapping function. This is converted into the main prediction term; simultaneously, the overall high-frequency noise correlation features retained along the independent branches in step 3.1 are... Input local compensation branch, through feature mapping function Generate local compensation terms:
[0182] ,
[0183] in, This represents the main prediction term output by the main prediction branch; This represents the compensation term output by the local compensation branch. This represents the feature mapping function in the main prediction branch; This represents the feature mapping function in the local compensation branch; This represents the high-frequency noise features extracted in step 3.
[0184] It should be noted that the high-frequency noise compensation branch does not directly superimpose the original high-frequency random noise onto the prediction result, but rather uses a feature mapping function. Correction information related to local prediction bias is extracted from high-frequency noise correlation features. This generates... It is a local compensation amount obtained through model training, used to correct the prediction bias caused by the main prediction branch's insufficient representation of some short-term fluctuations, local abrupt changes, and power ramp-up changes.
[0185] Main forecast item It is generated jointly by low-frequency trends, high-frequency effective fluctuations, and time-frequency collaborative features to ensure that the prediction results can track the overall trend, periodic structure, and major local changes; high-frequency compensation term It is then used to correct local variations that are not adequately represented in the main prediction results.
[0186] The final wind power prediction result is obtained by superimposing the main prediction term and the high-frequency noise compensation term:
[0187] ,
[0188] in, This represents the final output of the model, a predicted sequence of future wind power. Indicates the main forecast term. This represents the compensation term output by the local compensation branch.
[0189] Through the above prediction output method, the main prediction branch is responsible for forming the prediction result determined by the overall trend, periodic structure and effective local fluctuations, while the high-frequency noise branch compensates for local prediction deviations, thereby improving the model's response to short-term disturbances, local abrupt changes and power ramping processes.
[0190] (6) Loss function and training objective
[0191] The model is trained using supervised learning. Assume each batch contains... The nth sample, the nth The actual wind power sequence and predicted sequence for each sample are as follows: and During training, mean squared error (MSE) is used as the prediction loss to constrain the deviation between the model output and the actual wind power.
[0192] ,
[0193] in, Indicates the predicted loss; This indicates the number of samples in a training batch. Indicates the sample index within the batch; This indicates the prediction step size. This represents the sum of squares of the elements of a vector.
[0194] when When the loss is zero, it represents the single-step prediction error; when... In this case, the loss represents the average error across multiple future prediction moments.
[0195] The overall training objective can be expressed as:
[0196] ,
[0197] in, This represents all learnable parameters in ASTFDNet; This represents the set of optimization parameters obtained by minimizing the prediction loss; This represents the parameter that minimizes the prediction loss.
[0198] During training, the gradient of the prediction loss is backpropagated sequentially to the prediction output layer, the time-frequency dual-domain collaborative backbone, the improved gating fusion module, and the adaptive spectrum partitioning module, enabling end-to-end joint optimization of each component around the final wind power prediction target. After training, the real-time historical multivariate observation sequences are input into the trained ASTFDNet to obtain wind power prediction results for one or more future time points.
[0199] Based on the quantitative evaluation of the complete test set, in order to further analyze the local dynamic tracking capabilities of different models, continuous running segments corresponding to sample numbers 3680-3800 and 4520-4640 were selected from the test results of Dataset 1 and Dataset 2 respectively for visualization analysis.
[0200] This invention is compared with existing mainstream prediction models in terms of mean squared error, mean absolute error, and coefficient of determination. The quantitative evaluation results of different prediction models on the two datasets are shown in Table 1.
[0201] As shown in Table 1, the ASTFDNet used in this invention achieves the lowest mean squared error (MSE) and the highest coefficient of determination (R²) on both datasets. 2 This indicates that it has good overall performance in terms of prediction error and fitting ability. Although some comparative models have a slight advantage in the mean absolute error (MAE) metric, the main evaluation metrics of this invention remain at a good level on both datasets, indicating that the proposed method has relatively stable prediction performance.
[0202]
[0203] Based on the overall quantitative evaluation, to further observe the local tracking capabilities of different models in complex power change processes, continuous operating segments with different fluctuation characteristics were selected from the test results of two datasets for visualization analysis. The selected intervals were not determined based on the magnitude of the prediction error of the model in that interval, but mainly considered whether the power sequence contained representative dynamic change processes such as ramp-up, sudden drop, peak-valley transition, low output, and continuous fluctuations.
[0204] For dataset one, select the consecutive execution segments corresponding to sample indices 3680 to 3800, such as... Figure 5 As shown, wind power within this range fluctuates significantly, exhibiting continuous power declines, rapid ramp-up, peak-valley transitions, and multiple local abrupt changes. The direction and magnitude of power changes are quite pronounced within a short period. Therefore, this range is primarily used to examine the ability of different prediction models to track overall trends, local peaks and valleys, and rapid ramp-up processes under conditions of strong fluctuations and frequent transitions.
[0205] For dataset two, select the consecutive execution segments corresponding to sample indices 4520 to 4640, such as... Figure 6 As shown, compared to the selected interval in Dataset 1, this interval contains a more pronounced low-output phase and experiences a rapid recovery from low power to higher power levels, accompanied by continuous upswings, local drops, and multiple fluctuations in the medium-to-high power range. Therefore, this interval can further examine the model's predictive response capability during low output, rapid power recovery, and transitions between different power levels. The selected segments in the two datasets are somewhat complementary in terms of operating states and fluctuation patterns, allowing for observation of the model's local predictive performance from different types of non-stationary change processes.
[0206] It should be noted that, Figure 5 and Figure 6 The vertical axis represents wind power, with units of MW. To maintain consistency in the visualization scale of the prediction results from the two datasets, both figures use the same vertical axis range. Figure 5 and Figure 6 It is primarily used to observe the tracking differences between the true values within each dataset and the prediction curves of different models, rather than to compare the absolute power between two datasets.
[0207] Depend on Figure 5 and Figure 6It can be seen that in relatively stable sections, all prediction models can basically follow the overall changes in actual wind power. However, when rapid uphill climbs, sudden drops, peak-to-valley transitions, and rapid recovery from low to high output occur, the differences in predictions between different models become more pronounced. The model of this invention can effectively follow the main trends in actual power changes in two dataset segments with different power scales and fluctuation patterns, and maintains good dynamic response at some turning points and local peaks and valleys.
[0208] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A wind power prediction method based on an adaptive time-frequency dual-domain neural network, characterized in that, Includes the following steps: Step 1: Input sequence construction: At any moment Get the length as Historical multivariate observation sequence As input samples, calculate historical multivariate observation sequences Harmonic statistics of each variable in the middle, the first The input variables at time... The corresponding harmonic statistical vector is denoted as By stacking the harmonic statistical vectors of each variable, a variable-level harmonic statistical matrix is obtained. The global harmonic statistical vector is obtained by averaging the harmonic statistical vectors of all variables. The harmonic statistics include the proportion of main harmonic energy, the concentration of spectral peaks, and the spectral order. Step 2, Adaptive spectrum allocation mechanism: Historical multivariate observation sequences along the time dimension Perform a Fast Fourier Transform on each input variable to obtain the corresponding frequency domain representation, based on the variable-level harmonic statistical matrix. and global harmonic statistical vector An adaptive low-frequency ratio is generated for each variable. Complementary low-frequency soft masks and high-frequency soft masks are constructed based on this ratio. The frequency domain representation is filtered using the low-frequency soft masks and high-frequency soft masks. The low-frequency trend component and high-frequency fluctuation component are obtained through inverse fast Fourier transform. Step 3: Improve the gating fusion mechanism: Step 3.1 Perform feature mapping on the low-frequency trend component and the high-frequency fluctuation component to obtain the low-frequency trend feature, the high-frequency effective feature, and the high-frequency noise feature; Step 3.2 Using harmonic statistical vectors and global harmonic statistical vector Calculate the gate bias and gate temperature, jointly encode the low-frequency trend features and high-frequency effective features to obtain the basic gate activation value, and combine the basic gate activation value with the gate bias and gate temperature to obtain the final gate weight; Step 3.3 Adaptively weight the low-frequency trend features and high-frequency effective features according to the gating weights to obtain the frequency domain fusion features; Step 4, Time-Frequency Dual-Domain Collaborative Backbone: Historical multivariate observation series As input, extract local features in the time domain through the local dependency branch in the time domain; Historical multivariate observation series Harmonic statistical vector of a single variable With global harmonic statistical vector Joint mapping is performed to obtain the unnormalized contribution scores of the frequency domain branch and the time domain branch respectively. The two contribution scores are normalized by a normalization function to obtain the dual-domain collaborative weight. The frequency domain fusion feature and the time domain local feature are weighted according to the dual-domain collaborative weight to obtain the time-frequency joint feature. The time-frequency joint features of all input variables are stacked to form the overall time-frequency joint feature matrix. Feature interaction and refinement are then performed to obtain the final time-frequency joint feature. Step 5: Predicted Output and High-Frequency Noise Compensation: The refined final time-frequency joint features are used to generate the main prediction term through a feature mapping function. The high-frequency noise features corresponding to each input variable obtained in step 3.1 are combined to form the overall high-frequency noise correlation features. The feature mapping function generates a local compensation term, and the main prediction term and the local compensation term are superimposed to obtain the final output future wind power prediction sequence.
2. The wind power prediction method based on an adaptive time-frequency dual-domain neural network according to claim 1, characterized in that, A prediction model based on the adaptive time-frequency dual-domain neural network ASTFDNet is constructed through steps 2-5. The prediction model is trained using supervised learning, with mean squared error used as the prediction loss during training. , in, Indicates the predicted loss; This indicates the number of samples in a training batch. Indicates the sample index within the batch; Indicates the prediction step size. This represents the sum of squares of the elements of the vector. and The respective The actual and predicted wind power sequences of each sample when When the loss is zero, it represents the single-step prediction error; when... In this case, the loss represents the average error across multiple future prediction times. The overall training objective can be expressed as: , in, This represents all learnable parameters in ASTFDNet; This represents the set of optimization parameters obtained by minimizing the prediction loss; This represents the parameter that minimizes the prediction loss. During training, the gradient of the prediction loss is backpropagated sequentially in the order of step 5 to step 2, and end-to-end joint optimization is performed around the final wind power prediction target. After training is completed, the real-time obtained historical multivariate observation sequence is input into the trained ASTFDNet to obtain the wind power prediction results for one or more future times.
3. The wind power prediction method based on an adaptive time-frequency dual-domain neural network according to claim 2, characterized in that, In step 1, the variable-level harmonic statistical matrix is represented as follows: , in, This indicates the total number of input variables. Indicates the index of the input variable. ; Indicates time No. The harmonic statistical vector corresponding to each input variable has three components, namely the proportion of main harmonic energy, the concentration of spectral peaks, and the spectral order. The global harmonic statistical vector is obtained by averaging the harmonic statistics of all variables. , in, This represents the global harmonic statistics of the current input sample.
4. The wind power prediction method based on an adaptive time-frequency dual-domain neural network according to claim 2, characterized in that, In step 2, the adaptive low-frequency ratio is expressed as: , in, Indicates time No. The adaptive low-frequency ratio corresponding to each input variable Indicates the basic low-frequency ratio, This represents the periodic intensity adjustment coefficient. Indicates by the first The harmonic statistics of each variable are determined. This represents a mapping function that calculates the local-global spectral offset based on the variable-level harmonic statistical vector and the global harmonic statistical vector. Its output is a scalar used to adjust the low-frequency ratio. and These represent the lower and upper bounds of the low-frequency ratio, respectively. This represents the limiting function. After obtaining the adaptive low-frequency ratio, the model constructs the first... Low-frequency soft mask corresponding to each variable and high-frequency soft mask , The high-frequency soft mask is calculated from the low-frequency soft mask: , in, Indicates frequency index; Indicates the first The variable in the first... Low-frequency retention weights at each frequency position; This indicates the high-frequency retention weight at the same frequency position; Subsequently, the model uses low-frequency and high-frequency soft masks to filter the frequency domain representation, and obtains the low-frequency trend component and high-frequency fluctuation component through inverse fast Fourier transform: , , in, Indicates the first The frequency domain representation obtained by performing a Fast Fourier Transform on the input variables; This represents the inverse fast Fourier transform; This represents element-wise multiplication; Indicates the first Low-frequency trend components of each variable, Indicates the first High-frequency fluctuation components of each variable.
5. The wind power prediction method based on an adaptive time-frequency dual-domain neural network according to claim 2, characterized in that, In step 3.1, the low-frequency trend characteristics, high-frequency effective characteristics, and high-frequency noise characteristics are expressed as follows: , in, Indicates low-frequency trend characteristics; Indicates high-frequency effective characteristics; Indicates the characteristics of high-frequency noise; , and These represent the corresponding feature extraction functions. and Employ a feature mapping network with mutually independent parameters. Depend on The extracted high-frequency effective features participate in low-frequency-high-frequency gating fusion; by The extracted high-frequency noise features are retained in the prediction output stage, and the high-frequency noise features corresponding to each input variable are retained. By combining these features, an overall high-frequency noise correlation characteristic can be formed. It is then passed along the independent branches to step 5 to generate local compensation terms.
6. The wind power prediction method based on an adaptive time-frequency dual-domain neural network according to claim 2, characterized in that, In step 3.2, harmonic statistical vectors are used. and global harmonic statistical vector Generate local-global context vectors Based on this, the gate bias and gate temperature are calculated: , in, Indicates by the first The local-global context vector is generated by the harmonic statistical vectors of each variable and the global harmonic statistical vector. Indicates the first The gating biases corresponding to each variable; Indicates the corresponding gate temperature; and Indicates the scaling factor. and Represents a lightweight nonlinear mapping function. The model first will... The low-frequency trend features and high-frequency effective features of each variable are jointly encoded to obtain the basic gating activation values: , in, Indicates feature splicing; and These represent the learnable weight matrix and bias vector in the gating coding process, respectively. This represents the basic gating activation value before harmonic statistics are introduced. The final gating weights are obtained by combining the base gating activation value with the gating bias and gating temperature: , in, This represents the Sigmoid function and performs a non-linear mapping on each feature dimension of the input vector element by element; Indicates the first The gating weight vector corresponding to each input variable is composed of... It consists of gating weight elements, each element corresponding to a latent space feature dimension; Represents the dimension of latent space features. Indicates the first The basic gated activation vectors corresponding to each input variable. Indicates the first The gating biases corresponding to each input variable; its output dimension is the same as the basic gating activation vector. Consistent, and combined according to the corresponding feature dimensions; A positive gate temperature parameter used to adjust the smoothness and selectivity of the gate response; gate temperature The range of values is determined by the scaling factor. and nonlinear mapping functions The output range is determined jointly; In step 3.3, the low-frequency trend features and high-frequency effective features are adaptively weighted according to the gating weights to obtain the frequency domain fusion features: ; in, Indicates the first Frequency domain fusion features of individual variables; This represents element-wise product.
7. The wind power prediction method based on an adaptive time-frequency dual-domain neural network according to claim 2, characterized in that, In step 4, the historical multivariate observation sequence The harmonic statistical vectors of individual variables in the data are jointly mapped with the global harmonic statistical vector to obtain the unnormalized contribution scores of the frequency domain branch and the time domain branch, respectively. and The two contribution scores are normalized using the Softmax normalization function to obtain the bi-domain collaborative weights. , in, and They represent the first The frequency domain branch contribution score and the time domain branch contribution score are generated by combining the harmonic statistics of each variable and the global harmonic statistics of the current sample. and These represent the contribution weights of frequency domain features and time domain features in the final joint representation, respectively. By weighting the frequency domain fused features and the time domain local features according to the dual-domain collaborative weighting, the time-frequency joint features are obtained: , in, Indicates the first The time-frequency joint characteristics of the variables, Indicates the first Frequency domain fusion features of individual variables Indicates the first Local time-domain features of each variable; Stack the joint time-frequency features of all input variables to form a unified joint time-frequency feature matrix: , in, This represents the overall time-frequency joint feature matrix, composed of the time-frequency joint features of all variables. This indicates a feature stacking operation. Indicates the number of input variables. This represents the feature dimension corresponding to each variable. The overall time-frequency joint feature matrix is subjected to feature interaction and refinement, specifically as follows: First, through feature interaction operations Information from different variables and feature dimensions is mixed, then a feedforward neural network is used for nonlinear feature transformation, and residual connections are formed with the original overall time-frequency joint features: , in, This represents the interactive mixing operation between different variables and different features; This represents a feedforward neural network; This represents the final time-frequency joint feature after feature interaction and refinement.
8. The wind power prediction method based on an adaptive time-frequency dual-domain neural network according to claim 2, characterized in that, Step 5: Predicted Output and High-Frequency Noise Compensation The final time-frequency joint features after refinement via feature mapping function Generate the master prediction term by combining the high-frequency noise features corresponding to each input variable obtained in step 3.1 to form the overall high-frequency noise correlation feature. via feature mapping function Generate local compensation terms: , in, This represents the main prediction term output by the main prediction branch; This represents the compensation term output by the local compensation branch. This represents the feature mapping function in the main prediction branch; This represents the feature mapping function in the local compensation branch; This represents the high-frequency noise-related features extracted in step 3.
1. The final output of the future wind power prediction sequence is obtained by superimposing the main prediction term and the local compensation term: , in, This represents the final output of the model, a predicted sequence of future wind power. Indicates the main forecast term. This represents the compensation term output by the local compensation branch. Historical multivariate observation sequence X t To future wind power forecast sequence The predictive mapping relationship between them can be expressed as: , in, This represents the wind power prediction model to be learned. This represents all learnable parameters in the model. This represents the model's output prediction of future wind power output.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the wind power prediction method based on an adaptive time-frequency dual-domain neural network as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the wind power prediction method based on an adaptive time-frequency dual-domain neural network as described in any one of claims 1 to 8.
