A neural network-based wave energy power generation probability prediction method
By using a neural network model to screen key spatiotemporal features and frequency domain decomposition, and combining attention mechanism and probability interval estimation, the complexity of wave energy generation prediction and equipment variability issues are resolved, achieving accurate probabilistic prediction of wave energy generation and grid dispatch support.
Patent Information
- Application Number
- CN202311340199.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-17
AI Technical Summary
Wave energy power generation forecasting faces challenges such as the influence of complex marine climate environment, the coupling of multiple factors, and equipment differences, resulting in insufficient accuracy and adaptability, and failing to meet the uncertainty information needs of power grid dispatch under the penetration of new energy sources.
By employing a neural network-based approach, and through cluster analysis, frequency domain decomposition, and sequence architecture modeling, combined with attention mechanisms and probability interval estimation, key spatiotemporal features are screened to construct a wave energy power generation probability prediction model, enabling the matching of different devices and the prediction of uncertainty distribution.
It improves the accuracy and adaptability of wave energy power generation forecasting, provides uncertainty information for grid dispatch, reduces equipment adaptability issues, and promotes the stable operation of new energy systems.
Smart Images

Figure CN117494550B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the application of artificial intelligence in wave energy generation technology, in particular to a wave energy generation probability prediction method based on neural network. BACKGROUND
[0002] Wave energy generation technology is derived from the continuous exploration of renewable energy, which uses the kinetic energy of ocean waves to generate electricity. As the dependence on traditional energy sources becomes increasingly prominent, governments around the world are gradually realizing the urgency of reducing greenhouse gas emissions and addressing climate change, and are actively promoting the development of renewable energy. As a clean and sustainable form of energy, wave energy has gradually attracted attention. China has a vast coastline and abundant marine resources, with a theoretical storage capacity of wave energy reaching about 70 million kilowatts. Wave energy generation, as a new form of energy generation that can be applied on a large scale to islands, diversifies energy supply, reduces dependence on limited fossil fuels, and improves energy security.
[0003] Wave energy generation power prediction is of great significance as it can help us plan and optimize energy production and improve the reliability of energy systems. Accurate power prediction helps decision-makers allocate energy resources reasonably and ensure the stability of energy supply. Achieving reliable wave energy generation prediction is the basis for connecting wave energy generated electricity to the grid. In addition, in the face of the responsibility for marine ecological environment protection, in the process of developing island or coastal power networks, achieving reliable wave energy generation grid connection can reduce the continuous damage to islands and marine environments caused by the construction of energy production systems, while reducing the cost of energy production and improving the economic feasibility of wave energy generation technology, thereby promoting the coordinated development of various renewable energy sources, reducing dependence on limited fossil fuels, and reducing environmental pollution problems.
[0004] Wave energy generation is a renewable energy technology that relies on ocean wave motion. The complexity of marine climate and environment has a profound and multifaceted impact on wave energy generation prediction, with two main challenges: First, the wave system is driven by multiple factors, including wind speed, wind direction, tides, topography, and ocean currents, which are very complex in time and space. Second, the increasing instability of marine weather conditions caused by climate change increases the variability of waves, making accurate wave energy prediction more difficult.
[0005] In addition to the above challenges, there are also some other problems. First, the deterministic point prediction of wave energy generation power cannot provide sufficient uncertainty information for grid dispatching in the face of new energy penetration; second, there are many factors affecting wave energy generation, which are coupled with each other, affecting the calculation efficiency of the prediction model; finally, due to the different forms of wave energy generation equipment and the different principles of electricity generation, there are differences in their power generation characteristics, and there are adaptability problems for different equipment.
[0006] It should be noted that the information disclosed in the background section above is only for understanding the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0007] The main objective of this invention is to overcome the shortcomings of the aforementioned background technology and provide a probability prediction method for wave energy generation based on neural networks.
[0008] To achieve the above objectives, the present invention adopts the following technical solution:
[0009] A probability prediction method for wave energy generation based on neural networks includes the following steps:
[0010] S1. Cluster analysis is performed on wave energy power generation sequences to classify different power generation devices into several categories based on their power generation characteristics, thereby achieving matching of devices with different power generation characteristics; key spatiotemporal features are screened based on the influence of marine climate environment on wave energy power generation; frequency domain decomposition is performed on the complex coupling factors affecting wave energy.
[0011] S2. Using the features and data obtained in step S1 as input to the training model, a sequence architecture neural network wave energy prediction model is constructed based on the wave instability change characteristics.
[0012] S3. Predict the uncertainty distribution of future wave energy power generation using the probability interval estimation method, and make a probability prediction of wave energy power generation based on the results of the probability interval estimation.
[0013] Further, in step S1, the clustering analysis includes: collecting historical wave energy power generation data to form a power generation sequence; using a clustering algorithm to perform clustering analysis on the power generation sequence, classifying devices with similar power generation characteristics into the same category; and designing a matching mechanism based on the clustering results to match different power generation devices with their corresponding power generation characteristics.
[0014] Furthermore, based on the quantification of the distance between wave energy sequences, a centroid calculation method based on SBD is used to solve the wave energy power generation sequence clustering problem. Specifically, the wave energy sequence clustering is achieved through an iterative method, which includes: calculating the optimized centroid based on the current centroid of the cluster and all sequences within the cluster; redistributing each wave energy sequence to different clusters based on the distance between each wave energy sequence and the new optimized centroid; repeating the iterative steps until the clusters to which all wave energy sequences belong no longer change, thereby achieving wave energy power generation sequence clustering.
[0015] Furthermore, in step S1, the key spatiotemporal features to be screened include: ocean wave variables that affect wave energy generation, specifically including significant wave height x. WH Average spectral period xWP Ocean currents can always x WE Peak wave direction x WD Meteorological variables affecting wave energy generation include sea surface temperature, sea wind speed, sea wind direction, humidity, and air pressure; equipment variables affecting wave energy generation include equipment operating status and rotational speed.
[0016] Further, in step S1, correlation coefficients are selected to determine the relationship between wave energy sequences, and the mixed correlation coefficient between wave energy power generation sequences and auxiliary prediction variables is calculated to screen the key spatiotemporal features.
[0017] Furthermore, in step S1, an empirical mode decomposition method is used for the wave energy power generation sequence. This method obtains the modal components by expanding the original sequence in the frequency domain, providing information and structure about the wave energy. Specifically, this includes:
[0018] 1) Set the number of times the original wave energy signal is processed to M;
[0019] 2) Generate M random white noise signals, each with the same amplitude as the original signal;
[0020] 3) White noise with a standard normal distribution is added to the original signal to generate a series of new superimposed signals;
[0021] 4) For each noisy superimposed signal, the modal components are obtained using the empirical mode decomposition algorithm;
[0022] 5) Calculate the residuals. The decomposed residuals are the sum of the overall mean and the original input sequence.
[0023] Repeat the above steps M times to generate M sets of modal component IMFs and residuals;
[0024] 6) The final modal components are obtained by averaging the IMFs in the M groups; these are then used as inputs to train the wave energy prediction model.
[0025] Further, in step S2, constructing the sequence architecture neural network wave energy prediction model includes:
[0026] The main objective of the wave energy prediction model is to output the predicted wave energy power and probability information based on the input of the prediction problem, as expressed below:
[0027]
[0028] in, For the predicted active power output of wave energy, P WV The active power output of wave energy. Information representing the probability distribution of wave energy power. This represents a deterministic prediction model, whose prediction result is a deterministic value of wave energy power. This is a probabilistic prediction model, and its prediction result is the probability distribution information of wave energy power. x is the input of the wave energy prediction problem, D1 is the conditional distribution of P given x, and D2 is the conditional distribution of probability distribution information given x.
[0029] Furthermore, the wave energy prediction model is trained and predicted using a sliding window method, that is, the data from time 1 to t0 is used as input and the data from time t0+1 to T is used as output.
[0030] The model employs a sequence architecture neural network, including an encoder and a decoder. The encoder encodes the input sequence into a fixed-length vector, and the decoder decodes the vector into an output sequence. The neurons used for computation are modeled using LSTM units, and both the encoder and the decoder consist of multiple neurons arranged in series.
[0031] In the encoder, the LSTM acquires the input sequence and iteratively updates its hidden state vector, thereby capturing information from the input sequence; the final hidden state vector is the encoder state, which serves as the input sequence for the decoder.
[0032]
[0033]
[0034]
[0035] Where, x t The input sequence in the prediction model, This represents the hidden state vector of the encoder at time t. c represents the output of the LSTM neuron in the encoder. t For encoder interconnection state, W, V, U represent weight matrices in each computation process, b, d represent standardized bias terms in each computation process, and the symbols tanh(·) and softmax(·) represent tanh and softmax activation functions respectively.
[0036] In the decoder, each LSTM neuron calculates the next output by acquiring the encoder state and the output of the previous time step, repeating this process until a complete predicted target sequence is generated.
[0037]
[0038]
[0039]
[0040] Among them, y t The sequence representing the target output at time t. This represents the hidden state vector of the decoder at time t. This represents the output of the LSTM neuron in the decoder.
[0041] Furthermore, the wave energy prediction model introduces an attention mechanism; the implementation of the attention mechanism is based on adjusting the method in the decoder, and the goal of the attention layer is to iterate the similarity weight matrix according to the output of the encoder layer.
[0042] Wherein, given the hidden state vector in the encoder For each hidden state vector in the decoder Relationship between each input sequence position j and the current output sequence position
[0043]
[0044] e t =v T (e t1 ,e t2 ,…,e tT )
[0045] Among them, e tj The numerical value representing the correlation is expressed in vector form as e t , This represents the hidden state vector at position j of the input sequence, where attn(·) is the correlation operator, and v T It is the transpose of the weight vector used in the calculation;
[0046] Next, the attention weight distribution was standardized.
[0047]
[0048] α t =softmax(e t )
[0049] Where, α tj The standardized attention weights obtained are represented in vector form as α. t The symbol exp(·) represents exponentiation.
[0050] Furthermore, the encoder interconnect state is calculated based on the encoder's attention weights and hidden states. In the decoder, the encoder's output is defined as c0, and then c is continuously updated for each decoder step. t
[0051]
[0052] Therefore, the hidden state of the decoder is calculated from it, and the output of the network is generated by the output gate.
[0053]
[0054]
[0055] Among them, g(·) follows the computation rules of LSTM neurons and is used to calculate the wave energy prediction output.
[0056] Furthermore, in step S3, the quantiles of the probability distribution of wave energy power generation are estimated based on the regression method to obtain the predicted probability interval information;
[0057] The objective of deterministic wave energy prediction is to minimize the difference between the actual wave energy generation power and the predicted power, which can be expressed as minimizing the error.
[0058]
[0059] Among them, t n Represents the number of predicted future moments.
[0060] The goal of obtaining wave energy prediction
[0061]
[0062]
[0063] Where α is the parameter to be trained and optimized in the prediction model;
[0064] Quantile regression is used to estimate the probability interval of a pre-set confidence level. Quantile regression is calculated by minimizing the quantile loss, which is used to regress the model to a series of quantiles.
[0065] The present invention has the following beneficial effects:
[0066] This invention proposes a probability prediction method for wave energy generation based on neural networks. It considers the impact of the complexity of the marine climate environment on wave energy generation, selects key spatiotemporal features, performs frequency domain decomposition on the complex coupling factors affecting wave energy, constructs a sequence architecture neural network probability prediction model, and combines an attention mechanism to capture power generation trends, thereby realizing the probability prediction of wave energy generation.
[0067] The main advantages of this invention are as follows: First, addressing the instability and uncertainty of wave energy generation, a neural network prediction model based on a sequence architecture is proposed, which has stronger long-term memory capabilities compared to traditional models. Furthermore, considering the varying impacts of different influencing factors and historical time steps on prediction, an attention mechanism is proposed to enable the model to focus on key features. Second, addressing the power grid's need for uncertainty information, a probability interval prediction method based on quantile regression is proposed to estimate the uncertainty of wave energy. Additionally, considering the differences between various wave energy generation equipment types, a k-shape-based clustering method is proposed, and a hybrid index feature screening method is used to select key features affecting wave energy generation, avoiding data redundancy issues caused by multiple complex spatiotemporal factors driving the wave system. Finally, addressing the complex coupling factors affecting wave energy, a frequency domain decomposition method is proposed to mine potential wave energy trend characteristics.
[0068] This invention, through probabilistic prediction of wave energy generation, has significant practical implications for ensuring the safe, stable, and sustainable operation of the power system under the penetration of new energy sources.
[0069] Other beneficial effects of the embodiments of the present invention will be further described below. Attached Figure Description
[0070] Figure 1 This is a flowchart of the wave energy power generation probability prediction method according to an embodiment of the present invention. Detailed Implementation
[0071] The embodiments of the present invention will be described in detail below. It should be emphasized that the following description is merely exemplary and not intended to limit the scope and application of the present invention.
[0072] Wave energy generation is a renewable energy technology that relies on ocean wave motion. The complexity of the marine climate environment has a profound and multifaceted impact on wave energy generation prediction, posing two main challenges: First, wave systems are driven by multiple factors, including wind speed, wind direction, tides, topography, and ocean currents. These factors are highly complex in both time and space. The prediction model of this invention focuses on key characteristics and is unaffected by irrelevant factors. Second, the instability of marine meteorological conditions caused by climate change increases the variability of waves, making accurate wave energy prediction even more difficult. The prediction model in this embodiment of the invention has strong long-term memory capabilities.
[0073] In addition to the challenges mentioned above, several other issues arise. First, the deterministic prediction of wave energy generation power cannot provide sufficient uncertainty information for grid dispatching in the context of renewable energy penetration. Therefore, this invention estimates the future wave energy generation power using a probability interval and employs a probabilistic method to predict the uncertainty distribution. Second, numerous factors influence wave energy generation, which are interconnected and affect the computational efficiency of the prediction model. This invention filters potentially influential features. Finally, due to the diverse forms and power generation principles of wave energy generation equipment, their power generation characteristics also differ. This invention addresses the adaptability issue of different equipment by designing an identification and matching mechanism.
[0074] This invention proposes a wave energy generation probability prediction method based on an improved neural network for complex weather conditions on islands or coastlines. It considers the impact of the complexity of the marine climate environment on wave energy generation, selects key spatiotemporal features, performs frequency domain decomposition on the complex coupling factors affecting wave energy, constructs a sequence architecture neural network probability prediction model, and combines an attention mechanism to capture power generation trends, thereby realizing the probability prediction of wave energy generation.
[0075] This invention proposes a wave energy generation probability prediction method based on neural networks, comprising the following steps:
[0076] S1. Cluster analysis is performed on wave energy power generation sequences to classify different power generation devices into several categories based on their power generation characteristics, thereby achieving matching of devices with different power generation characteristics; key spatiotemporal features are screened based on the influence of marine climate environment on wave energy power generation; frequency domain decomposition is performed on the complex coupling factors affecting wave energy.
[0077] S2. Using the features and data obtained in step S1 as input to the training model, a sequence architecture neural network wave energy prediction model is constructed based on the wave instability change characteristics.
[0078] S3. Predict the uncertainty distribution of future wave energy power generation using the probability interval estimation method, and make a probability prediction of wave energy power generation based on the results of the probability interval estimation.
[0079] Specifically, it includes the following steps:
[0080] (1) Based on the principle of wave energy power generation device, considering the influence of marine climate environment on wave energy power generation form, key spatiotemporal characteristics of wave energy are screened, and frequency domain decomposition is carried out for complex coupling factors affecting wave energy.
[0081] (1-1) A basic model for predicting wave energy generation is proposed, and a matching mechanism is designed to solve the adaptability problem of different wave energy generation equipment;
[0082] Wave energy generation captures the kinetic energy of ocean waves and converts it into active power output, constructing a wave energy generation sequence as a time-distributed active power sequence.
[0083] P WV (t)=(P WV (t1), WV (t2),…, WV (t n )) T
[0084] Among them, P WV The active power output representing wave energy, t n Representing the corresponding moment, the historical sequence of wave energy power generation has a total of n moments;
[0085] To address the differences in power generation characteristics among various wave energy generation devices, a k-shape-based wave energy generation sequence clustering method is proposed to match devices with different power generation characteristics. The specific steps are as follows:
[0086] 1) By using the statistical measure of cross-correlation, the similarity between two equal-length sequences is determined, and the translational form of the wave energy power generation sequence is defined.
[0087]
[0088] The wave energy power generation sequence has a length of n and a sequence shift of s. A set of sequences is fixed using the method described above. And shift another set of sequences This ensures a complete evaluation of the sequence;
[0089] 2) The cross-correlation sequence between two wave energy generation powers is defined in the following form.
[0090]
[0091] The calculation method for R is defined as follows:
[0092]
[0093] Among them, CC w Let w be the cross-correlation coefficient, and let w satisfy s = wn. The goal of the calculation is to find the optimal position such that the cross-correlation coefficient is s = wn. maximize;
[0094] 3) Define the shape-based distance (SBD) calculation method as follows:
[0095]
[0096] The SBD value varies between 0 and 2. The more similar the power generation sequences of two waves are, the smaller the SBD distance value will be.
[0097] 4) Based on the quantification of distances in wave energy sequences, a centroid calculation method based on SBD is used to solve the wave energy generation sequence clustering problem.
[0098]
[0099] in, Represents the k-th wave energy generation sequence cluster. This represents its corresponding centroid, and the calculation objective is to find the optimal one. This maximizes the similarity between the centroid and each sequence within the cluster;
[0100] Among them, the wave energy sequence is clustered by an iterative method. The specific iterative steps are as follows: (a) Based on the current centroid of the cluster... and all sequences within the cluster Centroid of computation optimization
[0101] (b) Reassign each wave energy sequence to a different cluster based on its distance from the new optimized centroid;
[0102] (c) Repeat the above calculations until the clusters to which all wave energy sequences belong no longer change, thereby realizing the wave energy power generation sequence clustering method;
[0103] (1-2) Considering the influence of marine climate environment on wave energy power generation, key spatiotemporal features are screened through the designed hybrid index feature screening method;
[0104] Since wave energy generation comes from the kinetic energy of waves, its variation and power generation characteristics are related to the marine environment and meteorological indicators around the power generation equipment. Considering that the correlation has an impact on the prediction, the following sequence is used as the alternative input variable for the prediction model.
[0105] Preferably, the impact of ocean wave variables on wave power generation is considered, including significant wave height x. WH Average spectral period x WP Ocean currents can always x WE Peak wave direction x WD ;
[0106]
[0107] Preferably, the impact of meteorological variables on wave power generation is considered, including sea surface temperature, sea wind speed, sea wind direction, humidity and air pressure;
[0108]
[0109] Preferably, the impact of equipment variables on wave energy generation is considered, including equipment operating status and rotational speed;
[0110]
[0111] The correlation coefficient is used to determine the relationship between wave energy sequences. A mixed correlation coefficient is proposed, and its calculation method is shown in the following formula.
[0112] r(P WV (t),x(t))=λr p (P WV (t),x(t))+(1-λ)r s (P WV (txt)),
[0113] λ∈(0,1)
[0114] Where r(P) WV (t),x(t)) represents the mixed correlation coefficient between the wave energy generation sequence and the auxiliary predictor variable x(t), λ is the correlation coefficient weight, used to adjust the weight of different correlation coefficients, r p With r s The Pearson correlation coefficient and the Spearman correlation coefficient are calculated as follows;
[0115] The Pearson correlation coefficient is calculated by the following formula:
[0116]
[0117] Where Cov(X1,X2) represents the covariance of the two sequences, and Var[·] represents the calculation of variance;
[0118] The Spearman correlation coefficient is calculated by the following formula:
[0119]
[0120] Where n represents the sequence length, d i This represents the difference in rank between data points i in the sequence.
[0121] (1-3) To address the complex coupling factors affecting wave energy, the proposed frequency domain decomposition method is used to mine the potential trend characteristics of wave energy.
[0122] Empirical mode decomposition (EMD) is used to analyze the power generation sequence of wave energy. By expanding the original sequence in the frequency domain, each mode component is obtained, providing richer information and structure about wave energy. The main steps are as follows:
[0123] 1) First, set the number of times the original wave energy signal is processed to be M;
[0124] 2) Generate M random white noise signals n1(t), n2(t), ..., n M (t), the amplitude of each signal is compared with the original signal P. WV (t) consistent;
[0125] n i (t)=g(P WV (t))·γ
[0126] Where γ represents the standard noise ratio, and g(·) represents the function that controls the generation of white noise signal, which generates white noise signal with the original sequence as input;
[0127] 3) Next, the white noise n with the standard normal distribution mentioned above... i (t) is added to the original signal P WV (t) to generate a series of new superimposed signals.
[0128] P′(m,t)=P WV (t)+n m (t)
[0129] Where m = 1, 2, ..., M;
[0130] 4) For each noisy superimposed signal, the Empirical Mode Decomposition (EMD) algorithm is used to obtain the Modal Components (IMFs).
[0131]
[0132] Where J is the number of modal components;
[0133] 5) Residual calculation: The residual of the decomposition is the sum of the overall mean and the original input sequence.
[0134]
[0135] Where r(m,t) is the residual function representing the average trend of the sequence;
[0136] Repeat the above steps M times to generate M sets of IMFs and residuals;
[0137] 6) Finally, the final modal components are obtained by averaging the IMFs in the M groups.
[0138]
[0139] This is used as input to train the wave energy prediction model to improve the model's training performance.
[0140] (2) To address the complex weather conditions on islands, a sequence architecture neural network wave energy prediction model is constructed, and an attention mechanism is used to capture key power generation trends.
[0141] (2-1) Based on the instability and change characteristics of waves, a sequence architecture neural network prediction model is constructed;
[0142] The main objective of wave energy prediction is to output predicted wave energy power and probabilistic information based on the input of the prediction problem. The mathematical form is as follows:
[0143]
[0144] in, The active power output representing the predicted wave energy. Information representing the probability distribution of wave energy power. This represents a deterministic prediction model, whose prediction result is a deterministic value of wave energy power. This is a probabilistic prediction model, and its prediction result is the probability distribution information of wave energy power. x is the input of the wave energy prediction problem, D1 is the conditional distribution of P given x, and D2 is the probability distribution information given the conditional distribution of x.
[0145] The wave energy prediction model is trained and predicted using a sliding window method, that is, the data from time 1 to t0 is used as input and the data from time t0+1 to T is used as output.
[0146] Wave energy prediction uses a sequence architecture neural network. This model mainly consists of an encoder and a decoder. The encoder encodes the input sequence into a fixed-length vector, and the decoder decodes the vector into an output sequence. As mentioned above, each repeating unit used for computation, i.e. a neuron, is modeled using an LSTM unit. Both the encoder and the decoder are composed of multiple neurons arranged in series.
[0147] In the encoder, the LSTM acquires the input sequence and iteratively updates its hidden state vector, thereby capturing information from the input sequence. The final hidden state vector is defined as the encoder state, which is the input sequence for the decoder.
[0148]
[0149]
[0150]
[0151] Where, x t Defined as the input sequence in the prediction model, This represents the hidden state vector of the encoder at time t. c represents the output of the LSTM neuron in the encoder. t Defined as encoder interconnection state, W, V, U represent the weight matrices in each computation process, b, d represent the standardized bias terms in each computation process, and the symbols tanh(·) and softmax(·) represent the tanh and softmax activation functions, respectively.
[0152] In the decoder, each LSTM neuron computes the next output by taking the encoder state and the output of the previous time step, repeating this process until a complete predicted target sequence is generated.
[0153]
[0154]
[0155]
[0156] Among them, y t The sequence representing the target output at time t. This represents the hidden state vector of the decoder at time t. This represents the output of the LSTM neuron in the decoder;
[0157] (2-2) Design an attention mechanism to enhance the wave energy prediction model’s ability to focus on key features while reducing the influence of irrelevant factors;
[0158] The relationship between future wave energy generation and historical data can be explained as a complex nonlinear mapping process. Different time steps and different auxiliary variables in the past have an uneven contribution to future output. The attention mechanism ensures that the model focuses on the relevant parts of the input sequence, enabling the model to process long sequences more accurately, while improving the model's generalization ability and adaptability to complex tasks.
[0159] The attention mechanism is implemented by adjusting the method in the decoder. Specifically, an attention layer is added to the neural network, and the goal of the attention layer is to iterate the similarity weight matrix based on the output of the encoder layer. The specific mathematical formula is as follows:
[0160] In practice, given the hidden state vector in the encoder For each hidden state vector in the decoder The relationship between each input sequence position j and the current output sequence position can be calculated by the following formula.
[0161]
[0162] e t =v T (e t1 ,et2 ,…,e tT )
[0163] Among them, e tj Defined as a numerical value representing correlation, its vector form is represented as e t , This represents the hidden state vector at position j of the input sequence. attn(·) is defined as the correlation operator, and v T It is the transpose of the weight vector used in the calculation;
[0164] Next, the attention weight distribution is standardized, and its calculation formula is as follows:
[0165]
[0166] α t =softmax(e t )
[0167] Where, α tj The standardized attention weights obtained are represented in vector form as α. t The symbol exp(·) represents exponentiation.
[0168] Furthermore, the encoder interconnect state is calculated based on the encoder's attention weights and hidden states. In the decoder, the encoder's output is initially defined as c0, and then c is continuously updated for each decoder step. t
[0169]
[0170] Therefore, the hidden state of the decoder is calculated from it, and the output of the network is generated by the output gate.
[0171]
[0172]
[0173] Among them, g(·) follows the computation rules of LSTM neurons and is used to calculate the wave energy prediction output.
[0174] (3) In response to the uncertainty information requirements of power grid dispatch, a probability interval estimation method is proposed to comprehensively realize the probability prediction framework for wave energy power generation;
[0175] (3-1) Estimate the probability distribution quantiles of wave energy power generation based on regression methods to obtain the prediction probability interval information;
[0176] The objective of deterministic wave energy prediction is to minimize the difference between the actual wave energy generation power and the predicted power, which is expressed as minimizing the error, t. nRepresents the number of predicted future moments.
[0177]
[0178] As described above, the target for wave energy prediction can be obtained.
[0179]
[0180]
[0181] Where α is the parameter to be trained and optimized in the prediction model;
[0182] Quantile regression is used to estimate the probability interval for a pre-set confidence level. Quantile regression is a conditional regression method that calculates its probability by minimizing the quantile loss. The quantile loss is used to regress the model to a series of quantiles, and its calculation formula is shown below.
[0183]
[0184] Where γ represents the quantile percentage, satisfying γ∈(0,1), and symbol Ⅱ represents the expression function.
[0185] Based on the above methods, this invention proposes a probabilistic prediction framework for wave energy generation based on an improved neural network, the process of which is as follows: Figure 1 As shown.
[0186] This invention also provides a storage medium for storing a computer program, which, when executed, performs at least the methods described above.
[0187] This invention also provides a control device, including a processor and a storage medium for storing a computer program; wherein the processor executes the computer program by performing at least the method described above.
[0188] This invention also provides a processor that executes a computer program, at least performing the methods described above.
[0189] The storage medium can be implemented by any type of volatile or non-volatile storage device, or a combination thereof. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM). The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0190] In the several embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0191] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0192] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0193] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0194] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0195] The methods disclosed in the several method embodiments provided by this invention can be arbitrarily combined without conflict to obtain new method embodiments.
[0196] The features disclosed in the several product embodiments provided by this invention can be arbitrarily combined without conflict to obtain new product embodiments.
[0197] The features disclosed in the several method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0198] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, various equivalent substitutions or obvious modifications can be made without departing from the concept of the present invention, and all such modifications, achieving the same performance or application, should be considered within the scope of protection of the present invention.
Claims
1. A method for predicting the probability of wave energy generation based on neural networks, characterized in that, Includes the following steps: S1. Cluster analysis is performed on wave energy generation sequences to classify different power generation devices into several categories based on their power generation characteristics, thereby achieving matching of devices with different power generation characteristics; key spatiotemporal features are screened based on the influence of marine climate environment on wave energy generation; frequency domain decomposition is performed on the complex coupling factors affecting wave energy. S2. Using the features and data obtained in step S1 as input to the training model, a sequence architecture neural network wave energy prediction model is constructed based on the wave instability change characteristics. S3. Predict the uncertainty distribution of future wave energy power generation using the probability interval estimation method, and make a probability prediction of wave energy power generation based on the results of the probability interval estimation. In step S1, the clustering analysis includes: collecting historical wave energy power generation data to form a wave energy power generation sequence; using a clustering algorithm to perform clustering analysis on the wave energy power generation sequence, classifying devices with similar power generation characteristics into the same category; and designing a matching mechanism based on the clustering results to match different power generation devices with their corresponding power generation characteristics. Based on the quantization of the distance of wave energy generation sequences, a method based on... A centroid calculation method is proposed to solve the wave energy generation sequence clustering problem. Specifically, the wave energy generation sequence clustering is achieved through an iterative method, which includes: calculating the optimized centroid based on the current centroid of the cluster and all sequences within the cluster; redistributing each wave energy generation sequence to different clusters based on the distance between each wave energy generation sequence and the new optimized centroid; repeating the iterative steps until the clusters to which all wave energy generation sequences belong no longer change, thereby achieving wave energy generation sequence clustering. In step S1, an empirical mode decomposition method is used for the wave energy generation sequence. By expanding the original wave energy generation sequence in the frequency domain, each mode component is obtained, providing information and structure about the wave energy. Specifically, this includes: 1) Set the number of processing iterations for the original wave energy generation sequence to: ; 2) Generation A random white noise signal, the amplitude of which is consistent with the original wave energy generation sequence; 3) White noise with a standard normal distribution is added to the original wave energy generation sequence to generate a series of new superimposed signals; 4) For each noisy superimposed signal, the modal components are obtained using the empirical mode decomposition algorithm; 5) Calculate the residuals, where the residuals are residual functions representing the average trend of the sequence; Repeat the above steps Next, generate Group modal components and residuals; 6) Through the analysis of In the group The modal components are averaged to obtain the final modal components; these are then used as inputs to train the wave energy prediction model. The wave energy prediction model is trained and predicted using a sliding window training method, that is, it employs... The data at each time point is used as input. The data at each moment is used as output; The model employs a sequence architecture neural network, including an encoder and a decoder. The encoder encodes the input sequence into a fixed-length vector, and the decoder decodes the vector into an output sequence. The neurons used for computation are modeled using LSTM units, and both the encoder and the decoder consist of multiple neurons arranged in series. In the encoder, the LSTM acquires the input sequence and iteratively updates its hidden state vector, thereby capturing information from the input sequence; the final hidden state vector is the encoder state, which serves as the input sequence for the decoder. in, The input sequence in the prediction model, represent The hidden state vector of the time encoder, This represents the output of the LSTM neuron in the encoder. Encoder interconnection status, Represents the weight matrix for each calculation process. Represents the standardized bias terms in each calculation process, with the symbol... and These represent the tanh and softmax activation functions, respectively. In the decoder, each LSTM neuron computes the next output by acquiring the encoder state and the output of the previous time step, repeating this process until a complete predicted target sequence is generated. in, represent The sequence of outputs of the target at each time step. represent The hidden state vector of the time-series decoder This represents the output of the LSTM neuron in the decoder.
2. The wave energy generation probability prediction method as described in claim 1, characterized in that, In step S1, the candidate key spatiotemporal features include: ocean wave variables that affect wave energy generation, specifically including significant wave heights. Average spectral period Ocean currents always Peak wave direction Meteorological variables affecting wave energy generation include sea surface temperature, sea wind speed, sea wind direction, humidity, and air pressure; equipment variables affecting wave energy generation include equipment operating status and rotational speed.
3. The wave energy generation probability prediction method as described in claim 2, characterized in that, In step S1, correlation coefficients are used to determine the relationship between wave energy generation sequences, and the mixed correlation coefficient between wave energy generation sequences and auxiliary prediction variables is calculated to screen the key spatiotemporal features.
4. The wave energy generation probability prediction method according to any one of claims 1 to 3, characterized in that, In step S2, constructing the sequence architecture neural network wave energy prediction model includes: The main objective of the wave energy prediction model is to output the predicted wave energy power and probability information based on the input of the prediction problem, as expressed below: in, The active power output representing the predicted wave energy. Represents the active power output of wave energy. Information representing the probability distribution of wave energy power. This represents a deterministic prediction model, whose prediction result is a deterministic value of wave energy power. This is a probabilistic prediction model, and its prediction result is the probability distribution information of wave energy power. For the input of the wave energy prediction problem, for Given Conditional distribution, Given probability distribution information The conditional distribution.
5. The wave energy generation probability prediction method according to any one of claims 1 to 3, characterized in that, The wave energy prediction model introduces an attention mechanism; the implementation of the attention mechanism is based on adjusting the method in the decoder, and the goal of the attention layer is to iterate the similarity weight matrix according to the output of the encoder layer. Wherein, given the hidden state vector in the encoder For each hidden state vector in the decoder The relationship between each input sequence position j and the current output sequence position in, The numerical value representing the correlation is expressed in vector form as follows: , This represents the hidden state vector at position j in the input sequence. For correlation operators, It is the transpose of the weight vector used in the calculation; Next, the attention weight distribution was standardized. in, The standardized attention weights obtained are represented in vector form as follows: ,symbol Represents exponentiation; Furthermore, the encoder interconnect state is calculated based on the encoder's attention weights and hidden states. In the decoder, the encoder's output is defined as... Then, continuously update for each decoder step. Therefore, the hidden state of the decoder is calculated from it, and the output of the network is generated by the output gate. in, Following the computational rules of LSTM neurons, it is used to calculate the wave energy prediction output.
6. The wave energy generation probability prediction method according to any one of claims 1 to 3, characterized in that, In step S3, the quantiles of the probability distribution of wave energy power generation are estimated based on the regression method to obtain the predicted probability interval information; The objective of deterministic wave energy prediction is to minimize the difference between the actual wave energy generation power and the predicted power, which can be expressed as minimizing the error. in, Represents the predicted number of future moments. The goal of obtaining wave energy prediction in, These are the parameters to be trained and optimized in the prediction model; Quantile regression is used to estimate the probability interval of a pre-set confidence level. Quantile regression is calculated by minimizing the quantile loss, which is used to regress the model to a series of quantiles.
Citation Information
Patent Citations
A new energy output prediction method and system based on an independent circulation neural network
CN108985515A
Island new energy power interval prediction method and device
CN116167480A
