CNN-BiLSTM-ATTENTION-based tide level prediction method and system
The CNN-BiLSTM-Attention model is used to perform feature extraction and sequence modeling on ocean tide level data, which solves the problems of high data requirements and limited accuracy of existing tide level prediction methods, and achieves tide level prediction with higher accuracy and efficiency.
Patent Information
- Application Number
- CN202410820506.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing tide level prediction methods such as harmonic analysis require a large amount of historical data and have high data quality requirements when predicting tide levels. Moreover, the prediction accuracy is limited under the influence of non-astronomical tide factors, making it difficult to accurately predict tide level changes.
A deep learning model based on CNN-BiLSTM-Attention is used to perform feature extraction and sequence modeling on ocean tide level data through data preprocessing, convolutional neural network, bidirectional long short-term memory network and attention mechanism to improve the accuracy and efficiency of tide level prediction. .
It achieves higher accuracy and efficiency in tide level prediction, can effectively capture important information in tide level changes, and enhances the generalization performance and interpretability of the model.
Smart Images

Figure CN118656643A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of marine engineering, and in particular to a tidal level prediction method and system based on CNN-BiLSTM-ATTENTION. Background Art
[0002] The coastal and estuary areas have flat terrain, the locational advantage of being connected by land and sea, dense population, developed industry and agriculture. They are the economic center and transportation hub of a region, as well as a port with frequent foreign exchanges. They are one of the engines of social and economic development. However, the area is located in a tidal zone and is affected by tides all year round, which directly or indirectly affects people's normal production activities and poses a threat to people's lives and property.
[0003] Tide prediction is a scientific prediction method used to predict tidal changes at a specific time and place. Accurate tide forecasts are crucial for fields such as navigation, marine engineering and marine environmental protection, water security in coastal areas and scheduling of production operations. The more mature tide prediction methods currently available are mainly harmonic analysis methods, which are derived from considering the tidal force caused by the periodic motion of celestial bodies. By using a toolkit to extract the harmonic constants of the hourly tide data from tide gauges, analyze tidal characteristics, and compare the harmonic analysis results of tides in different time periods, its assumptions enable it to predict fluctuations caused by astronomical tides.
[0004] The harmonic analysis method is a classic tidal forecasting method. This method is derived from the consideration of the tidal force caused by the periodic motion of celestial bodies, which enables it to predict the fluctuations caused by astronomical tides. However, when predicting tide levels, the use of the harmonic analysis method requires a large amount of historical tide data and has high requirements for data quality. When the water level includes fluctuations caused by non-astronomical tide factors (such as meteorological and estuary runoff factors), the forecast accuracy of the harmonic analysis method will be affected and limited.
[0005] The deep learning model has multiple nonlinear mapping levels, which can abstract the input signal layer by layer and explore deeper rules; the CNN-BiLSTM-Attention used in the present invention is a deep learning model structure, which combines convolutional neural networks, bidirectional long short-term memory networks and attention mechanisms, and can effectively model and analyze tide sequences, thereby improving the efficiency and accuracy of ocean tide prediction. Summary of the invention
[0006] The purpose of the present invention is to overcome the above problems existing in the prior art and greatly improve its technical effect on the basis of the original technology; firstly, the present invention provides a tide level prediction method based on CNN-BiLSTM-ATTENTION, the method comprising:
[0007] (i) Data preprocessing: preprocess the collected ocean tide data, including processing missing values and duplicate values, and then normalize them. The normalized data are divided into a training set and a test set.
[0008] (ii) Construction of a CNN model; the CNN is a convolutional neural network, the ocean tide data training set obtained in (i) is input into the CNN model, the ocean tide data training set is trained through each layer structure in the CNN, and the features of the ocean tide data are extracted; the each layer structure in the CNN includes: an input layer, a convolution layer, a pooling layer, a fully connected layer and an output layer;
[0009] (III) Construction of BiLSTM model; the BiLSTM is a bidirectional long short-term memory network, which is used to perform sequence modeling on the ocean tide data features extracted by CNN; and the number of layers of the neural network is appropriately adjusted to adapt to the temporal dependency of the tide data;
[0010] (iv) updating weight values through Attention; Attention is an attention mechanism, which strengthens attention to the characteristics of ocean tides at key moments in the sequence, increases weight values for the extracted features, and updates the weights to improve the model's accurate prediction of tide level changes;
[0011] (V) Conduct model evaluation; evaluate the performance of the models trained in (II), (III) and (IV) in tide prediction based on the MAE and RMSE evaluation indicators.
[0012] The ocean tide data includes: the gravitational force of the moon and the sun, the rotation of the earth, the position of the earth in orbit, meteorological changes and tide height; the data missing value and duplicate value processing includes: interpolation processing using a cubic polynomial interpolation method for missing data, and deleting duplicate data; the normalization includes: normalizing other data except the tide height to 0-1, so that the size of other data is between 0 and 1, and the calculation formula is:
[0013]
[0014] Among them, λ is a value of an element in the ocean tide data, λ i is the i-th value of the corresponding element in the ocean tide data, and the value of i ranges from 1 to n, which proves that the corresponding element has n values in total; λ * is the corresponding data after λ normalization.
[0015] The method of dividing the normalized data into a training set and a test set includes: forming a vector affecting the ocean tide data with multiple elements in the normalized ocean tide data, and forming a training set and a test set with the vector affecting the ocean tide data and the corresponding tide height.
[0016] The training of the ocean tide data training set through each layer structure in the CNN includes: taking the vector of the ocean tide data as the input of the CNN, taking the tide height corresponding to the vector of the ocean tide data as the output to train the CNN model, and extracting the characteristics of the ocean tide data; and appropriately adjusting the number of layers of the neural network to adapt to the temporal dependency of the tide data, including: setting the number of convolution kernels in the convolution layer to 64 and the size to 2×2 in the final model, the activation function to the ReLU function, and the size of the pooling layer to 1×1.
[0017] The construction of the BiLSTM model includes: the BiLSTM neural network includes forward and backward recurrent neural networks to fully consider the temporal relationship in tidal data; the neural network optimizer selects the Adam function, the batch_size is 128, the number of neurons is 64, the learning rate is 0.001, the activation function in the BiLSTM uses the Sigmoid function, and the Dropout layer in the model is set to 0.2 to prevent overfitting and improve the generalization performance of the model; the output result of the BiLS TM model is expressed as:
[0018]
[0019] y t =σ(h t )
[0020] in, Indicates that BiLSTM forward calculates the hidden vector, represents the BiLSTM backward calculation of latent vector, α and β are constants, α+β=1; h t is the output of the BiLSTM network of this layer after the weighted forward and backward latent vectors, σ is the activation function, and y t is the output result.
[0021] The updating of weight values by Attention includes: the attention mechanism distributes the model's attention to different time steps through dynamic weights to improve the model's ability to capture important information in tide level prediction; the data h calculated by the BiLSTM layer is t Input the ATTENTION layer, and after calculation, the output S of the ATTNETION layer is obtained, and its formula is:
[0022]
[0023] in, is the weight of the tth layer in the ATTENTION layer, T means that there are T layers in the ATTENTION layer, h t is the output of each layer of the BiLSTM network; then back-error propagation is used for parameter adjustment.
[0024] The model evaluation includes: testing the model through the test set. If the model is tested through the evaluation indicators of MAE and RMSE, the result obtained is that the model is qualified; real-time tide data can be collected and input into the qualified model, and the output result is the real-time tide change; the method of using MAE and RMSE to evaluate the performance of the model in the tide prediction task is:
[0025] The calculation formula of MAE is:
[0026]
[0027] The calculation formula of RMSE is:
[0028]
[0029] Where n is the number of tide data test sets, y j is the true value of the tide data test set sample, is the predicted value of the input tide data model.
[0030] On the other hand, the present invention also establishes a tide prediction system based on CNN-BiLSTM-ATTENTION, characterized in that the features include: a tide data input module, a CNN feature extraction module, a BiLSTM sequence modeling module, an attention mechanism module and an evaluation module; the tide data input module is connected to the CNN feature extraction module, used to obtain ocean tide data, and input the acquired data into the CNN feature extraction module; the CNN feature extraction module is respectively connected to the tide data input module and the BiLSTM sequence modeling module, used to extract features from the input tide data, and transmit the extracted feature data to the BiLSTM sequence modeling module; the BiLSTM sequence modeling module is connected to the CNN feature extraction module, used to perform sequence analysis on the features extracted by the CNN feature extraction module; the attention mechanism module is connected to the BiLSTM sequence modeling module, used to increase weight values for different time series features when analyzing the sequence, so as to improve the model's accurate prediction of tide changes; the evaluation module is connected to the BiLSTM sequence modeling module, used to evaluate the tide prediction model obtained by the BiLSTM sequence modeling module, and determine the performance of the entire evaluation model in tide prediction.
[0031] The system also includes: a data preprocessing module; the data preprocessing module is connected to the tidal data input module and is used to perform data missing value, duplicate value and normalization processing on the original ocean tidal data obtained by the tidal data input module.
[0032] The beneficial effects of the present invention are:
[0033] The present invention provides a tidal level prediction method and system based on CNN-BiLSTM-ATTENTION; compared with other common tidal level prediction methods, the tidal level prediction method based on CNN-BiLSTM-ATTENTION has the following advantages:
[0034] Deep feature extraction: CNN is suitable for extracting local spatial features and can deeply extract features from tide data information.
[0035] Comprehensive time series information: BiLSTM not only has the advantages of LSTM, but also considers the forward and backward bidirectional time series information in the time dimension, making the prediction more comprehensive and accurate.
[0036] Attention mechanism: The attention mechanism can assign weights to information and finally perform weighted summation to capture the most important information, so it has strong interpretability.
[0037] Therefore, the tide prediction method based on CNN-BiLSTM-ATTENTION can achieve higher-precision tide prediction by establishing a theoretical model with stronger generalization ability under the deep learning algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 :A flow chart of a tide prediction method based on CNN-BiLSTM-ATTENTION of the present invention.
[0039] Figure 2 : A schematic diagram of a tide prediction system based on CNN-BiLSTM-ATTENTION of the present invention.
[0040] Figure 3 : Flow chart of tide prediction based on CNN-BiLSTM-ATTENTION of the present invention. DETAILED DESCRIPTION
[0041] The specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings; it should be understood that the specific embodiments given here are only used to illustrate and explain the present invention and cannot be used to limit the present invention.
[0042] It should be noted that many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention may also have other implementations and variations thereof. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0043] like Figure 1 As shown, a flow chart of a tide prediction method based on CNN-BiLSTM-ATTENTION according to an embodiment of the present invention includes: step S100, data preprocessing; preprocessing the collected ocean tide data, including processing missing values and duplicate values of the data, and then normalizing, and dividing the normalized data into a training set and a test set; step S101, construction of a CNN model; the CNN is a convolutional neural network, and the ocean tide data training set obtained in step S100 is input into the CNN model, and the ocean tide data training set is trained through each layer structure in the CNN to extract the characteristics of the ocean tide data; the each layer structure in the CNN includes: an input layer, a convolution layer, a pooling layer, a fully connected layer and an output layer; step S102, Construction of BiLSTM model; the BiLSTM is a bidirectional long short-term memory network, and the ocean tide data features extracted by CNN are sequence modeled through the bidirectional long short-term memory network; and the number of layers of the neural network is appropriately adjusted to adapt to the temporal dependency of the tide data; step S103, updating the weight value through Attention; the Attention is an attention mechanism, which uses the attention mechanism to strengthen the attention to the ocean tide features at key moments in the sequence, increase the weight value of the extracted features, and update the weight to improve the model's accurate prediction of tidal changes; step S104, model evaluation; the performance of the model trained together in step S101, step S102 and step S103 in tide prediction is evaluated according to the evaluation indicators of MAE and RMSE.
[0044] Specifically, the method preprocesses the collected ocean tide data, then normalizes it, and divides the normalized data into a training set and a test set; the obtained ocean tide data training set is input into the CNN model, and the ocean tide data training set is trained through each layer structure in the CNN to extract the characteristics of the ocean tide data; the ocean tide data features extracted by the CNN are sequence modeled through a bidirectional long short-term memory network; the attention mechanism is used to strengthen the attention to the ocean tide characteristics at key moments in the sequence, the weight value of the extracted features is increased, and the weight is updated to improve the model's accurate prediction of tidal changes; the performance of the jointly trained model in tide prediction is evaluated according to the evaluation indicators of MAE and RMSE.
[0045] Step S100, data preprocessing: preprocessing the collected ocean tide data, including processing missing values and duplicate values, and then normalizing the data, dividing the normalized data into a training set and a test set.
[0046] In the above embodiment, specifically, since the acquired ocean tide data has problems of missing data and data duplication, the data needs to be preprocessed; at the same time, since some results of the tide data vary greatly, the data needs to be normalized before being input into the neural network model.
[0047] In the above embodiment, specifically, the ocean tide data includes: the gravitational force of the moon and the sun, the rotation of the earth, the position of the earth in orbit, meteorological changes and tide height, etc.; the data missing value and duplicate value processing includes: interpolation processing using a cubic polynomial interpolation method for missing data, and deleting duplicate data; the normalization includes: normalizing other data except the tide height to 0-1, so that the size of other data is between 0 and 1, and the calculation formula is:
[0048]
[0049] Among them, λ is a value of an element in the ocean tide data, λ i is the i-th value of the corresponding element in the ocean tide data, and the value of i ranges from 1 to n, which proves that the corresponding element has n values in total; λ * is the corresponding data after λ normalization.
[0050] In the above embodiment, specifically, multiple elements in the normalized ocean tide data are collectively formed into a vector affecting the ocean tide data, and the vector affecting the ocean tide data and the corresponding tide height are collectively formed into a training set and a test set.
[0051] Step S101, constructing a CNN model; the CNN is a convolutional neural network, and the ocean tide data training set obtained in step S100 is input into the CNN model, and the ocean tide data training set is trained through each layer structure in the CNN to extract the characteristics of the ocean tide data; the each layer structure in the CNN includes: an input layer, a convolution layer, a pooling layer, a fully connected layer and an output layer.
[0052] In the above embodiment, specifically, the vector of ocean tide data is used as the input of CNN, and the tide height corresponding to the vector of ocean tide data is used as the output to train the CNN model to extract the characteristics of the ocean tide data; and the number of layers of the neural network is appropriately adjusted to adapt to the temporal dependency of the tide data, including: in the final model, the number of convolution kernels in the convolution layer is set to 64, the size is 2×2, the activation function is the ReLU function, and the size of the pooling layer is set to 1×1.
[0053] Step S102, construction of a BiLSTM model; the BiLSTM is a bidirectional long short-term memory network, which performs sequence modeling on the ocean tide data features extracted by CNN through the bidirectional long short-term memory network; and the number of layers of the neural network is appropriately adjusted to adapt to the temporal dependency of the tide data.
[0054] In the above embodiment, specifically, the BiLSTM neural network includes a recurrent neural network LSTM in both the forward and backward directions. The long short-term memory network (LSTM) has its own memory ability and can make relatively accurate predictions. It has been widely used in the fields of speech recognition, sentiment analysis, and text analysis, and learns long-term dependencies. The LSTM mechanism consists of three storage gates, namely, an input gate, a forget gate, and an output gate. The calculation formulas of the LSTM forget gate, the input gate, and the output gate are respectively:
[0055] LSTM forget gate calculation formula:
[0056] f t =σ(U f ×X t +W f ×h t-1 +b f )
[0057] Among them, f t is the output of the forget gate, σ is the sigmoid function, which locks the output result between 0 and 1; U f , W f is the weight matrix; X t For newly input information; t-1 is the output of the previous LSTM cell structure; b f is the offset.
[0058] LSTM input gate calculation formula:
[0059] i t =σ(U i ×X t +W i ×h t-1 +b i )
[0060]
[0061] Among them, i t The information that the new cell needs to save, is the output of the input gate, tanh is the hyperbolic tangent function, which can compress the result to -1 to 1; U i , W i , U c and W c is the weight matrix, X t is the newly input information, h t-1 is the output of the previous LSTM cell structure, bi and bc are offsets; C t is the new cell state, f t is the output of the forget gate, C t-1 is the previous cell state.
[0062] LSTM output gate calculation formula:
[0063] O t =σ(U o ×X t +W o ×h t-1 +b o )
[0064] h t =O t ×tanh(C t )
[0065] Among them, U o and W o is the weight matrix, X t is the newly input information, h t-1 is the output of the previous LSTM cell structure, σ is the activation function, C t is the new cell state, O t The scale parameter retained for the new cell state, b o is the offset, h t is the output of the current cell.
[0066] In the above embodiment, specifically, the BiLSTM neural network includes recurrent neural networks in both forward and backward directions to fully consider the temporal relationship in the tidal data; the neural network optimizer selects the Adam function, the batch_size is 128, the number of neurons is 64, the learning rate is 0.001, and the activation function in the BiLSTM uses the Sigmoid function. At the same time, the Dropout layer in the model is set to 0.2 to prevent overfitting and improve the generalization performance of the model; the output result of the BiLSTM model is expressed as:
[0067]
[0068] y t =σ(h t )
[0069] in, Indicates that BiLSTM forward calculates the hidden vector, represents the BiLSTM backward calculation of latent vector, α and β are constants, α+β=1; h t is the output of the BiLSTM network of this layer after the weighted forward and backward latent vectors, σ is the activation function, and y t is the output result.
[0070] Step S103, updating the weight value through Attention; the Attention is an attention mechanism, which strengthens the attention to the ocean tide characteristics at key moments in the sequence, increases the weight value of the extracted features, and updates the weight, so as to improve the model's accurate prediction of tide changes.
[0071] In the above embodiment, specifically, updating the weight value by Attention includes: the attention mechanism distributes the model's attention to different time steps through dynamic weights to improve the model's ability to capture important information in tide level prediction; the data h calculated by the BiLSTM layer is t Input the ATTENTION layer, and after calculation, the output S of the ATTNETION layer is obtained, and its formula is:
[0072]
[0073] in, is the weight of the tth layer in the ATTENTION layer, T means that there are T layers in the ATTENTION layer, h t is the output of each layer of the BiLSTM network; then back-error propagation is used for parameter adjustment.
[0074] Step S104, perform model evaluation; evaluate the performance of the model trained in steps S101, S102 and S103 in tide level prediction according to the evaluation indicators of MAE and RMSE.
[0075] In the above embodiment, specifically, the model is tested through the test set. If the model is tested through the evaluation indicators of MAE and RMSE, the result obtained is that the model is qualified; real-time tide data can be collected and input into the qualified model, and the output result is the real-time tide change; the method of using MAE and RMSE to evaluate the performance of the model in the tide prediction task is:
[0076] The calculation formula of MAE is:
[0077]
[0078] The calculation formula of RMSE is:
[0079]
[0080] Where n is the number of tide data test sets, y j is the true value of the tide data test set sample, is the predicted value of the input tide data model.
[0081] like Figure 2 As shown: a schematic diagram of a tide prediction system based on CNN-BiLSTM-ATTENTION of the present invention; the figure includes a tide data input module S10, a CNN feature extraction module S20, a BiLSTM sequence modeling module S30, an attention mechanism module S40 and an evaluation module S50; wherein the tide data input module S10 is connected to the CNN feature extraction module S20 to obtain ocean tide data, and input the obtained data into the CNN feature extraction module S20; the CNN feature extraction module S20 is respectively connected to the tide data input module S10 and the BiLSTM sequence modeling module S30 to extract features from the input tide data, and The extracted feature data is transmitted to the BiLSTM sequence modeling module S30; the BiLSTM sequence modeling module S30 is connected to the CNN feature extraction module S20, and is used to perform sequence analysis on the features extracted by the CNN feature extraction module S20; the attention mechanism module S40 is connected to the BiLSTM sequence modeling module S30, and is used to increase the weight value of different time series features when analyzing the sequence, so as to improve the model's accurate prediction of tidal changes; the evaluation module S50 is connected to the BiLSTM sequence modeling module S30, and is used to evaluate the tidal prediction model finally obtained by the BiLSTM sequence modeling module S30, and determine the performance of the entire evaluation model in tidal prediction.
[0082] In the above embodiment, preferably, the system also includes: a data preprocessing module; the data preprocessing module is connected to the tidal data input module S10, and is used to perform data missing value, duplicate value and normalization processing on the original ocean tidal data obtained by the tidal data input module S10.
[0083] like Figure 3As shown: is a tide prediction flow chart based on CNN-BiLSTM-ATTENTION of the present invention; the flow chart illustrates that firstly, tide data information is obtained, and the tide data is preprocessed to obtain a tide data training set and a tide data test set respectively; then, CNN, BiLSTM and ATTENTION are trained on the tide data training set in turn to obtain a trained model; the tide data training set is brought into the trained model to judge the performance of the model; if the performance of the model is up to standard, the ocean tide data information can be collected in real time, input into the trained model, and the ocean tide change can be judged by the input result.
[0084] It should be understood that the above-mentioned embodiments are one or more embodiments of the present invention, and there are many other embodiments and variations thereof based on the present invention; the variations and modifications made by ordinary technicians in this industry through the present invention without making pioneering innovations all fall within the scope of protection of the present invention.
Claims
1. A tide prediction method based on CNN-BiLSTM-ATTENTION, It is characterized in that The method comprises: 1) Data preprocessing: preprocess the collected ocean tide data, including processing missing values and duplicate values, and then normalize them. The normalized data are divided into a training set and a test set. 2) Construction of a CNN model; the CNN is a convolutional neural network, the ocean tide data training set obtained in 1) is input into the CNN model, the ocean tide data training set is trained through each layer structure in the CNN, and the features of the ocean tide data are extracted; the each layer structure in the CNN includes: an input layer, a convolution layer, a pooling layer, a fully connected layer and an output layer; 3) Construction of BiLSTM model; the BiLSTM is a bidirectional long short-term memory network, which is used to perform sequence modeling on the ocean tide data features extracted by CNN; and the number of layers of the neural network is appropriately adjusted to adapt to the temporal dependency of the tide data; 4) Updating weight values through Attention; Attention is an attention mechanism that strengthens attention to the ocean tide characteristics at key moments in the sequence, increases weight values for the extracted features, and updates weights to improve the model's accurate prediction of tide level changes; 5) Perform model evaluation; evaluate the performance of the models trained in 2), 3) and 4) in tide prediction based on the evaluation indicators of MAE and RMSE.
2. A tidal level prediction method based on CNN-BiLSTM-ATTENTION according to claim 1, It is characterized in that The ocean tide data includes: the gravitational force of the moon and the sun, the rotation of the earth, the position of the earth in orbit, meteorological changes and tide height; the data missing value and duplicate value processing includes: interpolation processing using a cubic polynomial interpolation method for missing data, and deleting duplicate data; the normalization includes: normalizing other data except the tide height to 0-1, so that the size of other data is between 0 and 1, and the calculation formula is: Among them, λ is a value of an element in the ocean tide data, λ i is the i-th value of the corresponding element in the ocean tide data, and the value of i ranges from 1 to n, which proves that the corresponding element has n values in total; λ * is the corresponding data after λ normalization; The method of dividing the normalized data into a training set and a test set includes: forming a vector affecting the ocean tide data with multiple elements in the normalized ocean tide data, and forming a training set and a test set with the vector affecting the ocean tide data and the corresponding tide height.
3. A tidal level prediction method based on CNN-BiLSTM-ATTENTION according to claim 1, It is characterized in that The training of the ocean tide data training set through each layer structure in the CNN includes: taking the vector of the ocean tide data as the input of the CNN, taking the tide height corresponding to the vector of the ocean tide data as the output to train the CNN model, and extracting the characteristics of the ocean tide data; and appropriately adjusting the number of layers of the neural network to adapt to the temporal dependency of the tide data, including: setting the number of convolution kernels in the convolution layer to 64 and the size to 2×2 in the final model, the activation function to the ReLU function, and the size of the pooling layer to 1×1.
4. A tidal level prediction method based on CNN-BiLSTM-ATTENTION according to claim 1, It is characterized in that The construction of the BiLSTM model includes: the BiLSTM neural network includes forward and backward recurrent neural networks to fully consider the temporal relationship in tidal data; the neural network optimizer selects the Adam function, the batch_size is 128, the number of neurons is 64, the learning rate is 0.001, the activation function in the BiLSTM uses the Sigmoid function, and the Dropout layer in the model is set to 0.2 to prevent overfitting and improve the generalization performance of the model; the output result of the BiLSTM model is expressed as: y t =σ(h t ) in, Indicates that BiLSTM forward calculates the hidden vector, represents the BiLSTM backward calculation of latent vector, α and β are constants, α+β=1; h t is the output of the BiLSTM network of this layer after the weighted forward and backward latent vectors, σ is the activation function, and y t is the output result.
5. A tidal level prediction method based on CNN-BiLSTM-ATTENTION according to claim 1, It is characterized in that The updating of weight values by Attention includes: the attention mechanism distributes the model's attention to different time steps through dynamic weights to improve the model's ability to capture important information in tide level prediction; the data h calculated by the BiLSTM layer is t Input the ATTENTION layer, and after calculation, the output S of the ATTNETION layer is obtained, and its formula is: in, is the weight of the tth layer in the ATTENTION layer, T means that there are T layers in the ATTENTION layer, h t is the output of each layer of the BiLSTM network; then back-error propagation is used for parameter adjustment.
6. According to a tidal level prediction method based on CNN-BiLSTM-ATTENTION according to claim 1, the model evaluation is performed include: The model is tested through the test set. If the model is tested through the evaluation indicators of MAE and RMSE, the result obtained is that the model is qualified; real-time tide data can be collected and input into the qualified model, and the output result is the real-time tide change; the method of using MAE and RMSE to evaluate the performance of the model in the tide prediction task is: The calculation formula of MAE is: The calculation formula of RMSE is: Where n is the number of tide data test sets, y j is the true value of the tide data test set sample, is the predicted value of the input tide data model.
7. Tide prediction system based on CNN-BiLSTM-ATTENTION, It is characterized in that The features include: a tidal data input module, a CNN feature extraction module, a BiLSTM sequence modeling module, an attention mechanism module and an evaluation module; the tidal data input module is connected to the CNN feature extraction module to obtain ocean tidal data and input the obtained data into the CNN feature extraction module; the CNN feature extraction module is respectively connected to the tidal data input module and the BiLSTM sequence modeling module to extract features from the input tidal data and transmit the extracted feature data to the BiLSTM sequence modeling module; the BiLSTM sequence modeling module is connected to the CNN feature extraction module to perform sequence analysis on the features extracted by the CNN feature extraction module; the attention mechanism module is connected to the BiLSTM sequence modeling module to increase the weight value of different time series features when analyzing the sequence, so as to improve the model's accurate prediction of tidal changes; the evaluation module is connected to the BiLSTM sequence modeling module to evaluate the tidal prediction model finally obtained by the BiLSTM sequence modeling module and determine the performance of the entire evaluation model in tidal prediction.
8. A tide level prediction system based on CNN-BiLSTM-ATTENTION according to claim 6, It is characterized in that The system also includes: a data preprocessing module; the data preprocessing module is connected to the tidal data input module and is used to perform data missing value, duplicate value and normalization processing on the original ocean tidal data obtained by the tidal data input module.
Citation Information
Patent Citations
Ocean station water level space-time prediction method and device based on deep learning
CN112862178A
Intelligent flood forecasting method based on MCRBiLSTM
CN115860231A
Time sequence prediction method in combination with attention mechanism
CN117494898A
CNN-BiLSTM-Attention-based sound velocity profile prediction method
CN118094462A
Cited By
Medium and long term hydrological probability forecasting method and system considering interpretable deep learning model nested combination
CN119204350A
Tidal reach tide level forecasting method and system based on combined model
CN119312022A
Tide prediction method and system based on ISSA-AC-CNN-BiLSTM model
CN119986862A
A tidal prediction method and system based on ISSA-AC-CNN-BiLSTM model
CN119986862B
Tidal reach tide level intelligent prediction method and device
CN120850762A
