A wave spectrum estimation method and system based on hull motion data

Through a generative neural adversarial network based on hull motion data, using channel attention and Transformer mechanism, the problem of insufficient convenience, accuracy and applicability of wave spectrum estimation in the existing technology is solved, and high-precision wave spectrum estimation is achieved.

CN117829219BActive Publication Date: 2024-08-27HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311850300.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-08-27
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

It is difficult for existing technology to estimate wave spectrum conveniently, with wide application range and high accuracy. Traditional methods have problems such as data reliability, high cost, weak ability to withstand wind and waves, and insufficient spatial and temporal resolution.

Method used

Based on the hull motion data, the generative neural adversarial network is used for training, and the channel attention mechanism and Transformer mechanism are used to extract the six-degree-of-freedom motion timing of the hull, generate a high-precision two-dimensional wave spectrum, and improve the estimation accuracy through adversarial training.

Benefits of technology

It achieves convenient, wide-applicable, and high-precision wave spectrum estimation, improves the accuracy and applicability of wave spectrum estimation, reduces data quantity requirements, and enhances noise immunity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117829219B
    Figure CN117829219B
Patent Text Reader

Abstract

The present invention belongs to the field of wave spectrum estimation, and specifically discloses a wave spectrum estimation method and system based on hull motion data, which includes: obtaining the hull six-degree-of-freedom motion sequence and the corresponding two-dimensional wave spectrum, and constructing a training set; training a generative neural adversarial network through the training set, and realizing wave spectrum estimation based on the trained generative neural adversarial network; the generative neural adversarial network includes a generator and a discriminator, in the generator: encoding the hull six-degree-of-freedom motion sequence through an encoder, and introducing a channel attention mechanism, automatically adjusting the weight of the channel in the encoder, and obtaining a one-dimensional hierarchical feature map; inputting the one-dimensional hierarchical feature map output by the encoder into the Transformer mechanism for processing, and inputting the processed one-dimensional hierarchical feature map into a decoder for decoding, and obtaining a two-dimensional wave spectrum. The present invention can improve the accuracy and applicability of wave spectrum estimation while realizing convenient measurement of ship-borne wave spectrum.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of wave spectrum estimation, and more specifically, relates to a wave spectrum estimation method and system based on hull motion data. Background Art

[0002] Waves have a huge impact on human activities at sea. Accurate wave information is very important for planning economic navigation in the ocean, because ship routes can be planned according to relevant wave conditions to avoid severe ocean conditions, thereby reducing risks, reducing sailing time and fuel costs, and improving economic benefits.

[0003] Traditional techniques for estimating sea conditions usually include manual observation, wave buoys, X-band wave radars, meteorological remote sensing satellites or weather forecasts. The advantage of manual observation is that the data is highly persistent and does not rely on external sensors, but manual observation itself can be very subjective; the advantage of buoys is that the observed data is highly reliable and comparable, and is widely used near the coast, but its disadvantages are weak wind and wave resistance, high cost and slow speed; X-band radars are usually very expensive and require regular calibration and maintenance; meteorological remote sensing satellites are easily affected by clouds, and weather forecasts are often delayed by several hours.

[0004] Therefore, how to estimate the wave spectrum conveniently (small workload), with wide applicability (various sea conditions), and with high precision (temporal and spatial resolution) has become a technical challenge in this field. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a wave spectrum estimation method and system based on hull motion data, the purpose of which is to achieve convenient, widely applicable and high-precision wave spectrum estimation.

[0006] To achieve the above object, according to a first aspect of the present invention, a wave spectrum estimation method based on hull motion data is proposed, comprising the following steps:

[0007] The hull motion data and the corresponding wave data are obtained, and the hull six-degree-of-freedom motion time series and the corresponding two-dimensional wave spectrum are extracted to construct a training set; the generative neural adversarial network is trained through the training set, and the wave spectrum estimation is realized based on the trained generative neural adversarial network;

[0008] The generative neural adversarial network includes a generator and a discriminator. In the generator: the six-degree-of-freedom motion timing of the hull is encoded through an encoder, and a channel attention mechanism is introduced to automatically adjust the weights of the channels in the encoder to obtain a one-dimensional hierarchical feature map; the one-dimensional hierarchical feature map output by the encoder is processed through a Transformer mechanism, and the processed one-dimensional hierarchical feature map is input into a decoder for decoding to obtain a two-dimensional wave spectrum.

[0009] As a further preference, the encoder has two channels. For one input, the two channels generate features using global average pooling and global maximum pooling respectively, and then the two features are input into a shared hidden layer multi-layer perceptron to generate an average feature map and a maximum feature map; the average feature map and the maximum feature map are combined, and the weights are calculated through sigmoid transformation to obtain the output.

[0010] As a further preferred method, the method for obtaining the time sequence of the hull six-degree-of-freedom motion is:

[0011] The hull motion data at the center of gravity of the ship is obtained through sensors, and the hull motion data includes surge speed, sway speed, heave speed, roll speed, roll angle, pitch angle, pitch speed, yaw angle, and yaw speed; the hull motion data is processed to extract the six-degree-of-freedom motion time series of the hull.

[0012] As a further preference, the six-degree-of-freedom motion time series of the hull includes the hull's sway, surge, heave, roll, pitch and bow pitch time series data.

[0013] As a further preference, the hull motion data is processed by median filtering.

[0014] As a further preference, during training, the two-dimensional wave spectrum generated by the generator is input into the discriminator, and adversarial training is performed in combination with the actual two-dimensional wave spectrum in the training set.

[0015] As a further preference, adversarial training uses a mixed loss function, which is a weighted sum of a mean square error loss term and an adversarial convolutional network loss term.

[0016] As a further preferred embodiment, when estimating the wave spectrum, the current six-degree-of-freedom motion time sequence of the hull is obtained and input into the generator of the trained generative neural adversarial network to obtain a two-dimensional wave spectrum.

[0017] According to a second aspect of the present invention, there is provided a wave spectrum estimation system based on hull motion data, comprising a processor, wherein the processor is used to execute the above-mentioned wave spectrum estimation method based on hull motion data.

[0018] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the wave spectrum estimation method based on hull motion data is implemented.

[0019] In general, the above technical solution conceived by the present invention has the following technical advantages compared with the prior art:

[0020] 1. The present invention improves the performance of the deep convolutional encoder-decoder neural network by introducing the channel attention mechanism and the self-attention mechanism of the Transformer, wherein the channel attention mechanism can better grasp the characteristics between different channels, and the self-attention mechanism of the Transformer mechanism can better grasp the global characteristics; at the same time, the adversarial network performs discrimination and feedback through the discriminator, which can improve the accuracy of wave spectrum estimation and reduce the amount of data, thereby realizing convenient measurement of the onboard wave spectrum and improving the accuracy and applicability of wave spectrum estimation.

[0021] 2. The present invention obtains hull motion data through sensors, removes redundancy and denoises the data, improves the accuracy of acquiring hull data, selects the hull's six-degree-of-freedom motion sequence, and obtains a high-precision two-dimensional wave spectrum by importing the motion sequence into the generator in the generative adversarial neural network. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flowchart of an encoder provided by an embodiment of the present invention;

[0023] Figure 2 is a flow chart of the Transform mechanism provided by an embodiment of the present invention;

[0024] Figure 3 is a flow chart of a wave spectrum estimation method in a generator provided by an embodiment of the present invention;

[0025] Figure 4 It is a schematic diagram of six-degree-of-freedom parameters of a hull provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0027] An embodiment of the present invention provides a wave spectrum estimation method based on hull motion data, comprising the following steps:

[0028] S1. Obtain the hull motion data and the corresponding wave data during its motion, extract the hull six-degree-of-freedom motion time series and the corresponding two-dimensional wave spectrum, and construct a training set;

[0029] S2. Train the generative neural adversarial network through the training set; the generative neural adversarial network includes a generator and a discriminator. The estimated two-dimensional wave spectrum is obtained by importing the motion timing into the generator in the generative adversarial neural network, and the estimated two-dimensional wave spectrum is imported into the discriminator in the generative adversarial neural network. The discriminator performs judgment and feedback to improve the accuracy of wave spectrum estimation.

[0030] S3. Obtain the current six-degree-of-freedom motion time sequence of the hull and input it into the generator of the trained generative neural adversarial network to obtain a two-dimensional wave spectrum, which can be used to describe information such as the intensity, frequency and direction of the wave.

[0031] Furthermore, steps S1 and S3 obtain the time sequence of the hull's six-degree-of-freedom motion, including:

[0032] The hull motion data at the center of gravity of the ship is obtained through sensors, and the hull motion data is processed to remove noise and redundant information, and then the six-degree-of-freedom motion time series of the hull is extracted.

[0033] Specifically, most sensors are inertial sensors, which use inertial sensor video recording to obtain data. The sensor measures the 9 degrees of freedom (DOF) at the center of gravity of the ship, including surge velocity, sway velocity, heave velocity, roll velocity, roll angle, pitch angle, pitch velocity, yaw angle, and yaw velocity. After subsequent analysis and calculation, the hull motion data can be obtained.

[0034] In the existing denoising methods, the efficiency is often extremely low. The present invention preferably uses the median filtering method to denoise, replacing the value of a point in the digital sequence with the median value of each point in a neighborhood of the point, so that the surrounding pixel values ​​are close to the true value, thereby eliminating isolated noise points. Figure 4 As shown in the figure, the selected six degrees of freedom parameters of the hull are: sway, B Axis translation; surge, along the X B Axis forward and backward translation; heave, along the Z B Axis up and down translation; roll, around X B Axis rotation; pitch, about Y B Axis rotation; yaw, around Z B The shaft rotates.

[0035] Furthermore, in the generator: the motion timing is imported into the encoder combined with the channel attention mechanism for encoding. During the encoding process, the weights of different channels can be automatically adjusted through the channel attention mechanism to better extract the features of different channels; the features output by the encoder are then imported into the Transformer mechanism for processing to obtain a one-dimensional hierarchical feature map; the processed one-dimensional hierarchical feature map is decoded through the decoder combined with the channel attention mechanism to obtain a two-dimensional wave spectrum.

[0036] In order to select task-friendly features, two attention mechanisms are proposed to re-weigh these hierarchical feature maps. The channel attention mechanism is used to exploit the potential relationship of features in the channel, focus on the meaningful part of the given input, and use the idea of ​​channel attention for time series classification. The Transformer mechanism is a model structure based on the self-attention mechanism, which can effectively model and process the input sequence, extract global features, and solve the problem that the original network can only extract local features. The performance of the deep convolutional encoder-decoder neural network can be improved by adopting the channel attention mechanism and the self-attention mechanism of the Transformer mechanism.

[0037] Specifically, the encoder consists of the encoding part of the sliding puzzle network, which includes two convolution steps, followed by min / max / average pooling and concatenation steps. The decoder structure is similar to the encoder, which includes three deconvolution steps, followed by two additional convolution steps with a smaller kernel size for smoother predictions.

[0038] In some embodiments, the encoder first batch normalizes the data and then performs a convolution operation (convolution kernel size: 1×25; Filters∈16) to convert the data from 1@6×1000 to a hierarchical feature map of 16@6×40, and then obtains a weighted hierarchical feature map through a channel attention mechanism, and then performs a convolution operation (convolution kernel size: 6×1; Filters∈64) to convert the data from 16@6×40 to a hierarchical feature map of 64@1×40, and obtains a weighted hierarchical feature map through a channel attention mechanism, and finally performs a pooling operation (convolution kernel size: 1×40; Filters∈192) to convert the data from 64@1×40 to a hierarchical feature map of 192@1×1, and then obtains a weighted hierarchical feature map through a channel attention mechanism. The hierarchical feature map is input into the Transformer mechanism to capture the global feature relationship, and then input into the decoder combined with the channel attention mechanism to batch normalize the data. norm) and then perform deconvolution (convolution kernel size: 16×12; Filters∈64) to transform the data from 192@1×1 to a hierarchical feature map of 64@16×15. The weighted hierarchical feature map is then obtained through the channel attention mechanism, and a convolution operation (convolution kernel size: 2×2; Filters∈8) is performed to transform the data from 64@16×15 to a hierarchical feature map of 8@32×30. The weighted hierarchical feature map is then obtained through the channel attention mechanism, and a deconvolution operation (convolution kernel size: 2×3; Filters∈4) is performed to transform the data from 8@32×30 to 4@ 64×90 layered feature map, and then the channel attention mechanism is used to obtain the weighted layered feature map, and then a convolution operation (convolution kernel size: 3×3; Filters∈4) is performed to change the data from 4@64×90 to a 4@64×90 layered feature map, and then the channel attention mechanism is used to obtain the weighted layered feature map, and finally a convolution operation (convolution kernel size: 2×3; Filters∈1) is performed to change the data from 4@64×90 to a 1@64×90 layered feature map, and then the channel attention mechanism is used to obtain the weighted layered feature map, and finally an estimated two-dimensional wave spectrum of 1@64×90 is obtained.

[0039] Furthermore, in the discriminator: the estimated two-dimensional wave spectrum is input into the discriminator for adversarial training; adversarial training uses a mixed loss, which is a weighted sum of two loss terms: the first loss term is the mean square error, which encourages the estimated model to predict the spectrum; the second loss term is the adversarial network discriminator loss term. If the adversarial network can distinguish the estimated two-dimensional wave spectrum output by the estimated network from the actual two-dimensional wave spectrum, this loss term is large. The adversarial term refers to comparing the output of the estimated network with the true spectrum during training. If the two are similar, the value of the adversarial term is small, otherwise it is large; through the adversarial term, the output of the estimated network can be encouraged to be more similar to the true spectrum. The purpose of the adversarial term is to penalize the mismatch in the statistics of high-order spectral power values. For example, the power value of the spectrum should be smooth in the near area, which cannot be obtained by the mean square loss function. The discriminator is used to make a judgment and feed back the result to improve the accuracy of the estimated wave spectrum.

[0040] Furthermore, in the encoder, the two channels C1 and C2 generate features using global average pooling and global maximum pooling respectively, and both features are input into a shared hidden layer multi-layer perceptron to generate an average feature map and a maximum feature map; then the average feature map and the maximum feature map are weightedly combined to generate a one-dimensional hierarchical feature map. In this process, the channel attention mechanism is used to automatically adjust the channel weights. Figure 1 As shown, including:

[0041] (1) Channel function C1 performs global average pooling on input X to obtain a one-dimensional array, and channel function C2 performs global maximum pooling on input X to obtain a one-dimensional array;

[0042] (2) reshape the two obtained one-dimensional arrays into two-dimensional arrays respectively;

[0043] (3) forwarding the two 2D arrays (features) to a shared hidden layer multi-layer perceptron (MLP) to generate the average feature map and the maximum feature map;

[0044] (4) Obtain the feature vector by summing the average feature map and the maximum feature map, and use the sigmoid transformation to calculate the final weight αC att , the reweighted feature X weighted Will be sent to the next convolution operation. Specifically:

[0045] αC att =Sigmoid(MLP(C avg )+MLP(C max )),

[0046] Among them, C avg is the weight of the average feature map, C maxis the weight of the maximum feature map, MLP represents the weight of MLP (i.e., the average feature map and the maximum feature map use the same weight vector)(), αC att is the channel attention weight; X is the original input, X weighted For output, Represents element-wise multiplication.

[0047] Furthermore, the one-dimensional hierarchical feature map generated by the encoder is input into the Transformer mechanism for processing, such as Figure 2 As shown, including:

[0048] (1) Take the one-dimensional hierarchical feature map as input and process it through Layer Norm;

[0049] (2) Input the data obtained in (1) into the Multi-head self-attention block, and add the output to the input of (1) to obtain the input of the next level;

[0050] (3) Processed again through Layer Norm;

[0051] (4) The data obtained in (3) is input into a multi-layer perceptron, and the output is added to the input of (3) to obtain a processed one-dimensional hierarchical feature map.

[0052] The following is a specific example to illustrate the complete process of the generator of the present invention. Figure 3 As shown, the following steps are included:

[0053] Step 401: Obtain a 1@6×1000 hull six-degree-of-freedom motion time series.

[0054] Step 402: Convolve the hull motion data with a 1×25 convolution kernel (filters=16) to obtain a 16@6×40 feature map.

[0055] Step 403: Obtain a weighted feature map through C-Attention (channel attention mechanism).

[0056] Step 404: Convolve the feature map obtained in step 403 with a 6×1 convolution kernel (filters=64) to obtain a 16@1×40 feature map.

[0057] Step 405: Obtain a weighted feature map through C-Attention.

[0058] Step 406: Perform a pooling operation on the weighted feature map with a 1×40 convolution kernel to obtain a 192@1×1 feature map.

[0059] Step 407: Obtain a weighted feature map through C-Attention.

[0060] Step 408: Input the weighted feature map into the Transformer mechanism to obtain a global feature map.

[0061] Step 409: Perform a deconvolution operation on the global feature map and a 16×12 convolution kernel (filters=64) to obtain a 64@16×15 feature map.

[0062] Step 410: Obtain a weighted feature map through C-Attention.

[0063] Step 411: Convolve the feature map obtained in step 410 with a 2×2 convolution kernel (filters=4) to obtain an 8@32×30 feature map.

[0064] Step 412: Obtain a weighted feature map through C-Attention.

[0065] Step 413: Deconvolve the feature map obtained in step 412 with a 2×3 convolution kernel (filters=4) to obtain a 4@64×90 feature map.

[0066] Step 414: Obtain a weighted feature map through C-Attention.

[0067] Step 415: Convolve the feature map obtained in step 414 with a 3×3 convolution kernel (filters=8) to obtain a 4@64×90 feature map.

[0068] Step 416: Obtain a weighted feature map through C-Attention.

[0069] Step 417: Convolve the feature map obtained in step 416 with a 2×3 convolution kernel (filters=4) to obtain a 1@64×90 feature map.

[0070] Step 418: Output the 1@64×90 feature map.

[0071] It will be easily understood by those skilled in the art that 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 and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A wave spectrum estimation method based on hull motion data, characterized in that: The steps include: The hull motion data and the corresponding wave data are obtained, and the hull six-degree-of-freedom motion time series and the corresponding two-dimensional wave spectrum are extracted to construct a training set; the generative neural adversarial network is trained through the training set, and the wave spectrum estimation is realized based on the trained generative neural adversarial network; The generative neural adversarial network includes a generator and a discriminator. In the generator: the six-degree-of-freedom motion sequence of the hull is encoded by an encoder, and the channel attention mechanism is introduced to automatically adjust the weight of the channel in the encoder to obtain a one-dimensional hierarchical feature map; the one-dimensional hierarchical feature map output by the encoder is processed by the Transformer mechanism, and the processed one-dimensional hierarchical feature map is input into the decoder for decoding to obtain a two-dimensional wave spectrum; The encoder has two channels. For one input, the two channels generate features using global average pooling and global maximum pooling respectively, and then input the two features into a shared hidden layer multi-layer perceptron to generate an average feature map and a maximum feature map; the average feature map and the maximum feature map are combined, and the weights are calculated through sigmoid transformation to obtain the output.

2. The wave spectrum estimation method based on hull motion data according to claim 1, characterized in that: The method to obtain the time series of the 6-DOF motion of the hull is: The hull motion data at the center of gravity of the ship is obtained through sensors, and the hull motion data includes surge speed, sway speed, heave speed, roll speed, roll angle, pitch angle, pitch speed, yaw angle, and yaw speed; the hull motion data is processed to extract the six-degree-of-freedom motion time series of the hull.

3. The wave spectrum estimation method based on hull motion data according to claim 2, characterized in that: The six-degree-of-freedom motion time series of the hull includes the sway, surge, heave, roll, pitch and bow pitch time series data of the hull.

4. The wave spectrum estimation method based on hull motion data according to claim 2, characterized in that: The hull motion data is processed by median filtering.

5. The wave spectrum estimation method based on hull motion data according to claim 1, characterized in that: During training, the two-dimensional wave spectrum generated by the generator is input into the discriminator and combined with the actual two-dimensional wave spectrum in the training set for adversarial training.

6. The wave spectrum estimation method based on hull motion data according to claim 5, characterized in that: Adversarial training uses a mixed loss function, which is a weighted sum of the mean squared error loss term and the adversarial network discriminator loss term.

7. The wave spectrum estimation method based on hull motion data according to any one of claims 1 to 6, characterized in that: When estimating the wave spectrum, the current six-degree-of-freedom motion time series of the hull is obtained and input into the generator of the trained generative neural adversarial network to obtain a two-dimensional wave spectrum.

8. A wave spectrum estimation system based on ship motion data, characterized in that: It comprises a processor, wherein the processor is used to execute the wave spectrum estimation method based on hull motion data as described in any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the wave spectrum estimation method based on hull motion data as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • A method for generating ocean wave energy density spectrum based on multi-path conditional flow matching and redundant observation weighted adjustment

    CN123198326A