Ocean mesoscale eddy detection method based on attention-based multi-scale residual U-Net
By using the attention-based multi-scale residual U-Net model in ocean mesoscale eddy detection, combined with the residual module and the pyramid segmentation attention module, the semantic gap problem between the encoder and the decoder is solved, and the More efficient and accurate vortex detection.
Patent Information
- Application Number
- CN202410817315.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Traditional ocean mesoscale eddy detection methods based on physical characteristics and geometric contours are subjective, low accuracy, complex calculations and noisy, and deep learning models such as U-Net and PSPNet perform poorly in detecting eddy contour information. There is a semantic gap between encoder and decoder.
The attention-based multi-scale residual U-Net model is adopted, and the channel sum between the encoder features is enhanced through the double cross multi-scale feature fusion network (DCA-PRUNet) combined with the residual module, pyramid segmentation attention module and skip connection. spatial dependence, optimizing the network training process and extracting multi-scale eddy information.
It improves the accuracy and efficiency of eddy detection and reduces the semantic gap between the encoder and decoder. The model is more ideal for detecting eddy profile information, can learn the characteristic information of ocean eddies more accurately, and improves detection performance. .
Smart Images

Figure CN118378665B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ocean vortex technology, and in particular to an ocean mesoscale vortex detection method based on attention-based multi-scale residual U-Net. Background Art
[0002] Traditional vortex detection methods based on physical features are somewhat subjective and have low accuracy. The method based on geometric profile features achieves the purpose of detection by extracting closed streamlines of vortex motion, but its calculation process is complicated, which affects the detection efficiency. Vortex detection that integrates physical features and geometric profiles has a lot of noise and requires the help of experts in the ocean field. The efficiency and accuracy of detection need to be improved.
[0003] In the field of mesoscale vortex detection, deep learning methods have been widely used. Deep learning methods can ultimately achieve vortex detection by learning the feature information and intrinsic connections in the data. The pixel classification model (EddyNet) model, based on U-Net, reduces the convolutional layers of the encoder and decoder parts, and realizes the automatic detection of ocean vortices in the sea surface height (SSH) image, but the detection performance still needs to be optimized. The average pooling pyramid model (PSPNet) model integrates features of different scales through the pyramid pooling module and the dilated convolution module, but the model is not ideal for detecting vortex contour information. The PSA-EDUNet model, which combines pyramid spilt attention (PSA) with U-Net, can effectively extract multi-scale vortex information, but ignores the channel and spatial dependencies between encoder features, resulting in a semantic gap between the encoder and decoder. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide an ocean mesoscale eddy detection method based on attention-based multi-scale residual U-Net to solve the channel and spatial dependency problems between encoder features and the semantic gap problem between encoder and decoder.
[0005] Technical solution: The ocean mesoscale vortex detection method based on attention-based multi-scale residual U-Net of the present invention comprises the following steps:
[0006] (1) Obtain sea level anomaly data SLA with a temporal resolution of 1d and a spatial resolution of 0.25°, select sea surface temperature data SST with a temporal resolution of one-dimensional data and a spatial resolution of 0.25°, and select the ocean eddy identification and tracking data set based on satellite altimeters;
[0007] (2) Generate eddy labels for the ocean eddy identification and tracking dataset based on satellite altimeters, with a time resolution of one-dimensional data; normalize the sea level anomaly data and sea surface temperature data;
[0008] (3) splicing the normalized results; traversing the vortex label data, intercepting the vortex labels in an array according to a preset area, and obtaining a vortex label data set;
[0009] (4) Construct a dual cross multi-scale feature fusion network model, namely the DCA-PRUNet model, and train it. The eddy data set is used as the training set, and the sea level anomaly data SLA and sea surface temperature data SST are used as the test set.
[0010] (5) Input the test set into the optimal DCA-PRUNet model for performance testing, obtain the test results, and compare the test results with the vortex labels to obtain the evaluation indicators.
[0011] Furthermore, in step (2), the longitude and latitude ranges of the vortex label are -90°~90°, -180°~180°, and the matrix range corresponding to the pixel points is [180 / 0.25, 360 / 0.25], that is, [720, 1440].
[0012] Furthermore, in step (2), the vortex label is prepared as follows: first, the vortex whose vortex profile information is empty in the data set is removed, and the type and profile longitude and latitude information of the vortex are extracted; second, an all-zero matrix is constructed including the internal area and the edge area; the ray method is used to find the internal information of the vortex; the internal edge information is determined by the nearest matching principle; if it is an anti-gas vortex, the value is 1; if it is a cyclonic vortex, the value is 2; and the label is obtained according to the internal information and edge information of the vortex.
[0013] Furthermore, in step (3), SLA and SST are concatenated on a daily basis.
[0014] Furthermore, step (4) is as follows: the DCA-PRUNet detection model consists of an encoder, a decoder and a skip connection; the encoder includes a residual module, a pyramid segmentation attention module and a maximum pooling; the skip connection consists of a double cross attention module; the decoder includes a transposed convolution, a residual model and a pyramid segmentation attention module.
[0015] Furthermore, step (4) includes the following steps:
[0016] (41) Coding: The residual module is used to optimize the network training process and improve the model's expressiveness. It consists of a residual path and a convolution block with a kernel size of 1×1. The residual path consists of two sets of convolution layers with a kernel size of 3×3 and a ReLU activation function. Specifically, the processed vortex data set is input into two layers of 3×3 convolution layers to obtain a feature map with 64 channels. The input is dimensionally upgraded using a 1×1 convolution and then summed with the residual path result. The processed feature map is then obtained through a ReLU activation function. The feature map obtained by the residual learning module is input into the pyramid segmentation attention module. The pyramid segmentation attention module is used to obtain spatial information of different scales. It includes a grouping splicing module, namely the SPC module, and a compression excitation module, namely the S E modules and layers; specifically as follows: the SPC module divides the feature map processed by the residual module into 4 sub-blocks, uses multi-scale convolution on each sub-block to extract the spatial information of features of different scales, and then splices them to obtain the spatial information of the entire feature map; the SE module is used to obtain the attention weights of feature maps of different channels, including compression and excitation modules; the attention weights of feature maps of different channels are normalized through the layer and then spliced to obtain the weight of the attention vector of the entire channel; the spatial information of the entire feature map is multiplied by the obtained weight of the entire channel attention vector to obtain the feature map processed by the pyramid segmentation attention module; the feature map is downsampled using the maximum pooling with a step size of 2 and a kernel size of 2×2, so that the size of the feature map becomes half of the original size;
[0017] (42) Skip connection: The output of the pyramid segmentation attention module is used as input, and the channel dependencies of the four encoding blocks are obtained through channel cross attention and concatenated; the spatial dependencies of the four encoding blocks are obtained through spatial cross attention and concatenated; then, after passing through the batch normalization layer and the GeLU activation function layer, it is connected to the corresponding decoder;
[0018] (43) Decoding: The feature map after skip connection processing is input into a 2×2 transposed convolution for upsampling. After upsampling, the size of the feature map is doubled and concatenated with the encoder feature map from the same stage by channel to obtain a feature map with 2C channels. The feature map is input into the residual module and the pyramid segmentation attention module for feature learning. Finally, the feature map size is restored to C, where C represents the number of channels, which is 64.
[0019] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: (1) The residual module and the pyramid segmentation attention module are used to replace the convolutional blocks in the traditional U-Net architecture. The residual module effectively prevents the gradient vanishing problem caused by the network being too deep and optimizes the network training process. The pyramid segmentation attention module can effectively extract multi-scale vortex feature information, learn the feature information of important channels, and ignore unimportant channel information; (2) Double cross attention DCA is added to the jump connection between the encoder and decoder to enhance the channel and spatial dependency between the encoder features, reduce the semantic gap between the encoder and the decoder, and enable the model to focus on the contour information of vortices of different scales; (3) The use of SLA and SST data avoids the problem of incomplete vortex information acquisition in a single ocean feature data set. The model can fully learn the feature information of the vortex and improve detection accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flow chart of the present invention;
[0021] Figure 2 is a flow chart of the vortex label of the present invention;
[0022] Figure 3 Structural diagram of the DCA-PRUNet model of the present invention. DETAILED DESCRIPTION
[0023] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0024] like Figure 1 As shown, an embodiment of the present invention provides an ocean mesoscale vortex detection method based on attention-based multi-scale residual U-Net, comprising the following steps:
[0025] (1) Obtain sea level anomaly data SLA with a temporal resolution of 1d and a spatial resolution of 0.25°, select sea surface temperature data SST with a temporal resolution of one-dimensional data and a spatial resolution of 0.25°, and select the ocean eddy identification and tracking data set based on satellite altimeters;
[0026] (2) Create eddy labels for the ocean eddy identification and tracking dataset based on satellite altimeters, with a time resolution of one-dimensional data; normalize the sea level anomaly data and sea surface temperature data; the eddy label longitude and latitude range is -90°~90°, -180°~180°, and the matrix range corresponding to the pixel point is [180 / 0.25, 360 / 0.25], that is, [720, 1440]. Figure 2As shown in the figure, the specific steps of making vortex labels are as follows: first, remove the vortices with empty vortex contour information in the data set, and extract the type and contour longitude and latitude information of the vortex; second, construct an all-zero matrix including the internal area and the edge area; use the ray method to find the internal information of the vortex; use the nearest matching principle to determine the internal edge information; if it is an anti-gas vortex, it is 1; if it is a cyclonic vortex, it is 2; and obtain the label according to the internal information and edge information of the vortex.
[0027] (3) splicing the normalized results; traversing the two-dimensional vortex label data, intercepting the vortex labels in array according to the preset area, and obtaining the vortex label data set; among which, SLA and SST are spliced in units of days.
[0028] (4) A dual cross-multiscale feature fusion network model, namely the DCA-PRUNet model, is constructed and trained; the vortex dataset is used as the training set, and the sea level anomaly SLA data and sea surface temperature SST data are used as the test set; Figure 3 As shown in the figure, the details are as follows: The DCA-PRUNet detection model consists of an encoder, a decoder and a jump connection; the encoder includes a residual module, a pyramid segmentation attention module and a maximum pooling; the jump connection consists of a double cross attention module; the decoder includes a transposed convolution, a residual model and a pyramid segmentation attention module. It includes the following steps:
[0029] (41) Coding: The residual module is used to optimize the network training process and improve the model's expressiveness. It consists of a residual path and a convolution block with a kernel size of 1×1. The residual path consists of two sets of convolution layers with a kernel size of 3×3 and a ReLU activation function. Specifically, the processed vortex data set is input into two layers of 3×3 convolution layers to obtain a feature map with 64 channels. The input is dimensionally upgraded using a 1×1 convolution, and then summed with the residual path result. The processed feature map is then obtained through a ReLU activation function.
[0030] The feature map obtained by the residual learning module is input into the pyramid segmentation attention module, which is used to obtain spatial information of different scales; it includes a grouping and splicing module, namely the SPC module, a compression and excitation module, namely the SE module, and a layer; specifically, the SPC module divides the feature map processed by the residual module into 4 sub-blocks, uses multi-scale convolution on each sub-block to extract the spatial information of features of different scales, and then splices them to obtain the spatial information of the entire feature map; the formula is as follows:
[0031] ;
[0032] ;
[0033] in, represents the convolution kernel size used by the i-th sub-block, represents the number of convolution groups of the ith sub-block, represents the feature map obtained by the i-th sub-block; X represents the feature map of each sub-block;
[0034] The SE module is used to obtain the attention weights of different channel feature maps, including compression and excitation modules; the attention weights of different channel feature maps are normalized through the layer and then concatenated to obtain the attention vector weight of the entire channel; the formula is as follows:
[0035] ;
[0036] ;
[0037] ;
[0038] in, represents the feature of the i-th channel, represents two fully connected layers, and is the weight matrix of the two fully connected layers, and is the activation function, represents the channel attention weight obtained by the i-th sub-block; H represents the feature map length, W represents the feature map width; j and k represent cycle vectors.
[0039] The spatial information of the entire feature map is multiplied by the weight of the entire channel attention vector to obtain the feature map processed by the pyramid segmentation attention module; the feature map is downsampled using the maximum pooling with a step size of 2 and a kernel size of 2×2, so that the size of the feature map becomes half of the original size;
[0040] (42) Skip connection: The output of the pyramid segmentation attention module is used as input, and the channel dependencies of the four encoding blocks are obtained through channel cross attention and concatenated; the spatial dependencies of the four encoding blocks are obtained through spatial cross attention and concatenated; then, after passing through the batch normalization layer and the GeLU activation function layer, it is connected to the corresponding decoder;
[0041] Among them, the channel cross attention module formula is as follows:
[0042] ;
[0043] ;
[0044] in, is the scaling factor, and a 1×1 depthwise convolution is used to obtain , and , is the query value of the i-th encoder, is the overall key value, is the overall value. The similarity of feature channel weights is and get; is the output of the i-th encoder, It is the concatenation result of each encoder.
[0045] The formula of the spatial cross attention module is as follows:
[0046] ;
[0047] ;
[0048] in, is the scaling factor, which is obtained by a 1×1 depth convolution. , and ; is the overall query value, is the overall key value, is the value of the i-th channel cross attention, is the output of the i-th channel cross attention, It is the result of cross-attention concatenation of each channel.
[0049] (43) Decoding: The feature map after skip connection processing is input into a 2×2 transposed convolution for upsampling. After upsampling, the size of the feature map is doubled and concatenated with the encoder feature map from the same stage by channel to obtain a feature map with 2C channels. The feature map is input into the residual module and the pyramid segmentation attention module for feature learning. Finally, the feature map size is restored to C, where C represents the number of channels, which is 64.
[0050] (5) Input the test set into the optimal DCA-PRUNet model for performance testing, obtain the test results, and compare the test results with the vortex labels to obtain relevant evaluation indicators. Specifically: Establish detection evaluation indicators, select accuracy (A), precision (P), recall (R) and F1 score 4 evaluation indicators, accuracy A represents the proportion of accurate predictions among all predicted pixels. Precision P represents the proportion of correctly predicted vortices to the identified vortices. Recall R represents the proportion of all real vortex samples successfully identified by the model. F1 score is the harmonic mean of precision and recall, and the formulas for each indicator are as follows:
[0051] ;
[0052] ;
[0053] ;
[0054] ;
[0055] Among them, TP represents the number of vortices correctly predicted by the model; TN represents the number of non-vortices correctly predicted by the model; FP represents the number of false vortices predicted by the model; and FN represents the number of non-vortices incorrectly predicted by the model. The F1 score can be used as a basis for vortex detection evaluation.
[0056] The present invention selects 5 deep learning models to compare with the model of the present invention, and conducts comparative analysis through evaluation indicators such as accuracy, precision and recall rate. The SLA and SST of the Kuroshio Sea area are selected for testing. The results are shown in Table 1.
[0057] Table 1 Experimental results of each model on the test set
[0058]
[0059] The results show that the proposed model is closer to the observed values than other models in medium-sized vortices and vortex contours, achieving the best detection performance.
Claims
1. An ocean mesoscale eddy detection method based on attention-based multi-scale residual U-Net, characterized in that: The following steps are involved: (1) Obtain sea level anomaly data SLA with a temporal resolution of 1d and a spatial resolution of 0.25°, select sea surface temperature data SST with a temporal resolution of one-dimensional data and a spatial resolution of 0.25°, and select the ocean eddy identification and tracking data set based on satellite altimeters; (2) Generate eddy labels for the ocean eddy identification and tracking dataset based on satellite altimeters, with a temporal resolution of one-dimensional data; Normalize the sea level anomaly data and sea surface temperature data; (3) splicing the normalized results; traversing the vortex label data, intercepting the vortex labels in an array according to a preset area, and obtaining a vortex label data set; (4) Construct a dual cross multi-scale feature fusion network model, namely the DCA-PRUNet model, and train it; wherein the vortex dataset is used as the training set, and the sea level anomaly data SLA and sea surface temperature data SST are used as the test set; specifically, the DCA-PRUNet detection model consists of an encoder, a decoder, and a jump connection; the encoder includes a residual module, a pyramid segmentation attention module, and a maximum pooling; the jump connection consists of a dual cross attention module; the decoder includes a transposed convolution, a residual model, and a pyramid segmentation attention module; and includes the following steps: (41) Encoding: The residual module consists of a residual path and a convolution block with a kernel size of 1×1; wherein the residual path consists of two sets of convolution layers with a kernel size of 3×3 and a ReLU activation function; specifically as follows: after the processed vortex data set is input into two layers of 3×3 convolution layers, a feature map with 64 channels is obtained, and the input is dimensionally upgraded using a 1×1 convolution, and then summed with the residual path result, and then the processed feature map is obtained through a ReLU activation function; the feature map obtained by the residual learning module is input into the pyramid segmentation attention module, which is used to obtain spatial information of different scales; it includes a group splicing module, namely an SPC module, a compression excitation module, namely an SE module and a layer; specifically as follows: The SPC module divides the feature map processed by the residual module into 4 sub-blocks, uses multi-scale convolution on each sub-block to extract the spatial information of features of different scales, and then splices them to obtain the spatial information of the entire feature map; the SE module is used to obtain the attention weights of feature maps of different channels, including compression and excitation modules; the attention weights of feature maps of different channels are normalized by layers and then spliced to obtain the weight of the attention vector of the entire channel; the spatial information of the entire feature map is multiplied by the weight of the entire channel attention vector to obtain the feature map processed by the pyramid segmentation attention module; the feature map is downsampled using the maximum pooling with a step size of 2 and a kernel size of 2×2, so that the size of the feature map becomes half of the original size; (42) Skip connection: The output of the pyramid segmentation attention module is used as input, and the channel dependencies of the four encoding blocks are obtained through channel cross attention and concatenated; the spatial dependencies of the four encoding blocks are obtained through spatial cross attention and concatenated; then, after passing through the batch normalization layer and the GeLU activation function layer, it is connected to the corresponding decoder; (43) Decoding: The feature map after skip connection processing is input into a 2×2 transposed convolution for upsampling. After upsampling, the size of the feature map is doubled and concatenated with the encoder feature map from the same stage by channel to obtain a feature map with a channel number of 2C; the feature map is input into the residual module and the pyramid segmentation attention module for feature learning, and the final feature map size is restored to C, where C represents the number of channels, which is 64; (5) Input the test set into the optimal DCA-PRUNet model for performance testing, obtain the test results, and compare the test results with the vortex labels to obtain the evaluation indicators.
2. The method for detecting ocean mesoscale vortices based on attention-based multi-scale residual U-Net according to claim 1, characterized in that: In step (2), the latitude and longitude ranges of the vortex label are -90°~90°, -180°~180°, and the matrix range corresponding to the pixel points is [180 / 0.25, 360 / 0.25], that is, [720, 1440].
3. The method for detecting ocean mesoscale vortices based on attention-based multi-scale residual U-Net according to claim 2, characterized in that: In step (2), the vortex label is made as follows: first, remove the vortices with empty vortex profile information in the data set, and extract the type and profile longitude and latitude information of the vortex; second, construct an all-zero matrix including the internal area and the edge area; use the ray method to find the internal information of the vortex; use the nearest match principle to determine the internal edge information; if it is an anti-gas vortex, the value is 1; if it is a cyclonic vortex, the value is 2; and obtain the label based on the internal information and edge information of the vortex.
4. The method for detecting ocean mesoscale vortices based on attention-based multi-scale residual U-Net according to claim 1, characterized in that: In step (3), SLA and SST are concatenated on a daily basis.
