A deep learning-based intelligent detection method for ocean three-dimensional temperature fronts

By constructing a 3DRSP-UNet model that integrates seasonal characteristics and position coding, it solves the problems of subjective threshold dependence and low accuracy of traditional ocean front detection methods, realizes automatic extraction and efficient detection of ocean three-dimensional fronts, and improves detection accuracy and efficiency.

CN118628920BInactive Publication Date: 2024-10-08FIRST INSTITUTE OF OCEANOGRAPHY MNR +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411087563.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional ocean front detection methods rely on subjective thresholds. The detection is unstable and time-consuming. It is also difficult to accurately describe the shape of the three-dimensional ocean front. Especially under the influence of noise data, the accuracy is low and the three-dimensional front cannot be effectively detected.

Method used

An intelligent detection method for ocean three-dimensional temperature fronts based on deep learning is used to build a 3DRSP-UNet model that integrates seasonal characteristics and position coding. The ocean fronts are automatically extracted through a three-dimensional convolutional deep learning algorithm, reducing reliance on subjective thresholds and improving detection accuracy.

Benefits of technology

It improves the accuracy and efficiency of ocean front detection, enhances the detailed description of the three-dimensional front structure, reduces the impact on noise, and can detect medium and small-scale fronts more accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628920B_ABST
    Figure CN118628920B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of ocean temperature front detection, and discloses a method for intelligent detection of ocean three-dimensional temperature front based on deep learning, including the following steps: pre-processing the Copernicus Ocean Environment Observation Service reanalysis data according to different depth layers to obtain a three-dimensional temperature gradient map and three-dimensional front label data; constructing a three-dimensional convolutional deep learning algorithm model 3DRSP-UNet; training the model using the three-dimensional temperature gradient map in the training set and the three-dimensional front label data obtained after annotation; and using a test set to evaluate the model accuracy; after the evaluation is completed, using the model to perform intelligent detection of ocean three-dimensional temperature front. The method disclosed in the present invention constructs a three-dimensional convolutional deep learning model of ocean fronts that integrates seasonal characteristics and position coding, so that the model pays more attention to the seasonal characteristics and location of the front, realizes the automatic extraction of the three-dimensional ocean front, solves the problem of traditional methods' dependence on subjective thresholds, and improves detection accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ocean temperature front detection, and in particular to a deep learning-based intelligent detection method for ocean three-dimensional temperature front. Background Art

[0002] The ocean front is formed by the intersection of different water masses in the sea area of ​​the study area, forming a narrow transition zone with filamentary or banded boundaries at the junction of water masses with different spatial scales and obvious different properties. The frontal area often has a high gradient of hydrological elements (such as temperature, salinity, nutrients, etc.), which is one of the important mesoscale marine environmental characteristics. The frontal area is an important area for the movement of various marine substances and energy exchange, and has an important impact on the interaction between the sea and the air. The area where it is located often has strong turbulent mixing exchange, horizontal convergence and vertical movement, and has a complex underwater three-dimensional temperature and salinity structure. Large-scale ocean fronts are directly related to ocean circulation, water masses and climate change, while medium and small-scale ocean fronts have become important indicators for local marine environmental and ecological research.

[0003] Traditional methods for front detection mainly include: gradient method, histogram method, entropy theory algorithm, edge detection method, etc. The principle of the gradient method is the high gradient characteristics of hydrological elements near the ocean front. The ocean front is extracted by calculating the pixel gradient and selecting pixels above a certain threshold. The edge detection method selects different templates in multiple directions to convolve the image to calculate the gradient value. The main difference lies in the size of the convolution template, the different weightings of the edge information, and the processing method after convolution. These methods are all based on the subjective thresholds of related physical variables to detect the front, which is unstable, time-consuming and not automatic. In addition, these methods are easily affected by noisy data and have low detection accuracy. Therefore, new methods are needed to solve the above problems and detect the ocean front quickly and accurately.

[0004] In addition, traditional methods and common deep learning models are mostly used to determine whether there is a front on the ocean surface, and cannot accurately describe the three-dimensional shape of the ocean front. The three-dimensional ocean front information belongs to the extraction of high-frequency information of the ocean element field. It is very difficult to detect the three-dimensional front using traditional methods and general deep learning methods, and it is difficult to achieve ideal detection results. Therefore, a new method is needed to solve the above problems. Summary of the invention

[0005] To solve the above technical problems, the present invention provides an intelligent detection method for ocean three-dimensional temperature fronts based on deep learning, and constructs a three-dimensional convolutional deep learning model of ocean fronts that integrates seasonal characteristics and position coding, so that the model pays more attention to the seasonal characteristics of the front and the location of its occurrence, and realizes the automatic extraction of the three-dimensional ocean front, which solves the problem of traditional methods' dependence on subjective thresholds and improves the accuracy of front detection.

[0006] To achieve the above object, the technical solution of the present invention is as follows:

[0007] A deep learning-based intelligent detection method for ocean three-dimensional temperature fronts includes the following steps:

[0008] Step 1: preprocess the Copernicus Ocean Environment Observation Service reanalysis data according to different depth layers to obtain preprocessed three-dimensional temperature data;

[0009] Step 2, using the Sobel operator to calculate the temperature gradient of the three-dimensional temperature data in layers, and draw a temperature gradient map, and superimpose to obtain a three-dimensional temperature gradient map;

[0010] Step 3, based on the three-dimensional temperature gradient map, label the front labels in layers through Labelme software to obtain three-dimensional front label data;

[0011] Step 4, construct a three-dimensional convolutional deep learning algorithm model 3DRSP-UNet;

[0012] The model includes 5 encoders, 4 decoders and an output layer; the encoder extracts features and reduces the dimension, the decoder analyzes the features and upsamples to the original image size, and the output layer introduces 3D position encoding and parses the classification probability of each 3D spatial pixel to generate the final detection result;

[0013] The encoder is composed of three branches. The bottom branch analyzes the image features through a three-dimensional convolution module to obtain a feature map B1. The middle branch is a residual connection structure, and the input features of each layer are used as part of the output features, which are recorded as ORI. The upper branch is used to learn the weight ratio relationship on the channel dimension of the feature map and add the seasonality of the ocean front to obtain the feature map B2. Finally, the feature map obtained by adding the feature maps B1, B2 and ORI element by element passes through the sampling layer to obtain the output of the encoder.

[0014] The output layer includes a bottom branch and an upper branch. The bottom branch is used to output the model detection result. The upper branch is a position attention module, which adds PE position encoding information. Finally, the result of the upper branch is multiplied element by element with the result of the bottom branch, and the product result is added to the result of the bottom branch to obtain the final detection result.

[0015] Step 5, dividing the three-dimensional temperature gradient map and the three-dimensional front label data into a training set and a test set, using the training set to train the model; and using the test set to evaluate the model accuracy;

[0016] Step 6, preprocess the Copernicus Ocean Environment Observation Service reanalysis data of the sea area to be tested according to different depth layers to obtain preprocessed three-dimensional temperature data, calculate the temperature gradient of the three-dimensional temperature data by layering using the Sobel operator, and draw a temperature gradient map, which is superimposed to obtain a three-dimensional temperature gradient map; input the three-dimensional temperature gradient map into the qualified model for intelligent detection of the three-dimensional temperature front.

[0017] In the above scheme, the bottom branch of the encoder includes three 3D convolutional layers with a convolution kernel size of 3×3×3, namely 3D convolutional layer 1, 3D convolutional layer 2, and 3D convolutional layer 3. After each convolutional layer, the feature map is activated with the PReLU activation function. The calculation formula of the PReLU activation function is as follows:

[0018] ;

[0019] in, represents the larger value of the two. Represents the smaller value of the two; is a real number less than 1 and is a learnable parameter that controls the slope on the negative semi-axis.

[0020] In the above scheme, in the upper branch of the encoder, the input feature map size is , H, W, Z, and C are the height, width, depth, and number of feature channels of the feature map respectively; first, after passing through the 3D global average pooling layer, we get The feature map B is then passed through the fully connected layer to reduce the number of channels to , the feature map at this time is connected in series with the seasonal features of the month to which the day belongs, and the number of channels becomes Then use the fully connected layer 2 to increase the number of channels to ,get Feature map B2.

[0021] In the above scheme, the difference between the decoder structure and the encoder structure is that the encoder reduces the dimension of the feature map through a 2×2×2 downsampling 3D convolution layer and reduces the feature map size to 1 / 2 of the original; the decoder finally reduces the number of feature channels through a 2×2×2 upsampling 3D transposed convolution layer and increases the feature map size by 2 times; therefore, in the feature map finally output by the encoder, k is , the scaling ratio of the feature map in the decoder is k=2.

[0022] In the above scheme, the bottom branch of the output layer consists of a 1×1×1 3D convolutional layer and a Softmax layer.

[0023] In the above scheme, in the upper branch of the output layer, the upper branch is a position attention module, and the input feature map A is of size , first through the average pooling layer, the size is The feature map C1, is the downsampling coefficient; then the feature map C1 is passed through the 3D convolution layer 5 for feature learning, the feature map at this time is added to the feature map of the PE position encoding, and then the feature map with position encoding information is input into the 3D convolution layer 6 composed of multiple convolution blocks for feature learning, and the output size is Finally, the weight feature map C2 is restored to its original size through the upsampling layer of bilinear interpolation , and multiply it element by element with the bottom branch result, add the product result to the bottom branch result to get the final detection result.

[0024] In the above scheme, the formula for PE position encoding is as follows:

[0025] ;

[0026] ;

[0027] ;

[0028] ;

[0029] ;

[0030] ;

[0031] in, Respectively represent the vertical coordinate, horizontal coordinate and depth values ​​of the three-dimensional feature map, and the ranges are [0,H] , [0,W] , [0,Z] , H, W, and Z represent the image length, width, and height respectively; Indicates the number of channels of PE position encoding for vertical position encoding, Indicates the number of channels of PE position encoding for horizontal position encoding, Indicates the number of channels of PE position encoding for depth position encoding, the range is [0, D 6 ] ; D represents the final number of channels of the feature map of PE position encoding, and PE represents the feature encoding that converts the spatial position into a position vector.

[0032] In the above scheme, in step 2, the method for constructing a three-dimensional temperature gradient map is as follows:

[0033] First, the Sobel operator is used to calculate the temperature gradient value G of each layer in the three-dimensional ocean temperature grid data to obtain the gradient grid data of each layer. The calculation formula is as follows:

[0034] ;

[0035] ;

[0036] in, and Respectively represent the horizontal gradient and vertical gradient of the current coordinate point, A is the 3×3 neighborhood matrix of the current coordinate point, * represents the convolution operation, and G represents the gradient value of the current coordinate point;

[0037] Then, Matlab is used to fill the gradient values ​​of the grid points corresponding to the gradient grid data into the image;

[0038] Afterwards, the gradient value G is mapped to the image using the “jet” color library to draw the temperature gradient map of each layer in the study area;

[0039] Finally, the daily temperature gradient maps of different layer depths are superimposed in sequence to obtain a three-dimensional temperature gradient map.

[0040] In the above scheme, in step 3, each pixel of each layer of the temperature gradient map in the three-dimensional temperature gradient map is divided into two categories: one is the ocean front and the other is the background. If the pixel belongs to the ocean front, it is marked as 1; if the pixel belongs to the background, it is marked as 0.

[0041] In the above scheme, in step 3, after labeling, data enhancement is performed by random cropping, random photometric distortion, and random flipping of images.

[0042] Through the above technical solution, the deep learning-based intelligent detection method for ocean three-dimensional temperature front provided by the present invention has the following beneficial effects:

[0043] 1. In the existing three-dimensional convolutional model 3D-ResUNet, the present invention integrates the seasonality of the ocean three-dimensional front into the feature learning process of the model. And introduces a three-dimensional position attention mechanism, which integrates the three-dimensional position information of the front into the learning process of the model in the form of PE position encoding, and learns the three-dimensional spatial dependency of the front, thereby increasing the model's attention to the location where the front occurs. It allows the model to comprehensively analyze the seasonality of the input feature map at the channel level, and at the same time pay attention to the three-dimensional location of the front. In this way, the detection accuracy of the ocean front and the detailed characterization of the three-dimensional front structure can be improved;

[0044] 2. Although the traditional front detection method is relatively simple and fast, it has many problems. First, the selection of gradient threshold is very time-consuming and heavily relies on the experience of experts. Secondly, the gradient threshold algorithm ignores the continuity of the front distribution, and does not consider the seasonality and distribution location characteristics of the front. The detection accuracy is seriously affected by noise. The present invention improves and forms a three-dimensional convolutional network that can automatically detect the three-dimensional ocean front through a deep learning algorithm, while improving the efficiency and accuracy of front detection and being less affected by data noise;

[0045] 3. Compared with other deep learning networks for front detection, the present invention has higher detection accuracy for ocean three-dimensional fronts. By comparing the detection results of different models, the three-dimensional front structure detected by the present invention is more consistent with the actual situation, the false detection rate and missed detection rate are reduced, and some small and medium-scale fronts are also detected. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0047] Figure 1 A schematic flow chart of a method for intelligently detecting a three-dimensional ocean temperature front based on deep learning disclosed in an embodiment of the present invention;

[0048] Figure 2 The overall structure diagram of the three-dimensional convolutional deep learning algorithm model 3DRSP-UNet;

[0049] Figure 3 This is the encoder structure diagram;

[0050] Figure 4 It is the structure diagram of the output layer;

[0051] Figure 5 Comparison of evaluation results of different models; (a) Original three-dimensional sea temperature data gradient map; (b) 3D-UNet; (c) 3D-KiUNet; (d) 3D-ResUNet; (e) 3DRS-UNet; (f) 3DRSP-UNet. DETAILED DESCRIPTION

[0052] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0053] The present invention provides a method for intelligent detection of ocean three-dimensional temperature front based on deep learning, such as Figure 1 As shown, the following steps are included:

[0054] Step 1: Preprocess the Copernicus Marine Environment Monitoring Service (CMEMS) reanalysis data according to different depth layers to obtain preprocessed three-dimensional temperature data.

[0055] The CMEMS daily reanalysis dataset includes daily average files of temperature, salinity, ocean currents, sea level, and mixed layer depth. The global ocean output file is displayed on a standard regular grid of 1 / 12° (about 8 kilometers) and is divided into 50 standard water depth layers. According to past experience, the maximum depth of the ocean temperature front is generally above 1000m, so the sea temperature data of layers 1-32 with a depth above 1000m are read, and the longitude and latitude range is selected in the A sea area of ​​0-23°N, 103°E-121°E to construct a three-dimensional temperature grid data of size H*W*Z, where H represents the number of latitudinal grids, W represents the number of longitudinal grids, and Z represents the number of layers at different depths. The data from 2018 to 2021 were uniformly preprocessed to obtain a three-dimensional sea temperature dataset for the target area.

[0056] Step 2: Calculate the temperature gradient of the three-dimensional temperature data by layers using the Sobel operator, draw a temperature gradient graph, and superimpose the three-dimensional temperature gradient graph.

[0057] First, the Sobel operator is used to calculate the temperature gradient value G of each layer in the daily three-dimensional ocean temperature grid data to obtain the gradient grid data of each layer. The calculation formula is as follows:

[0058] ;

[0059] ;

[0060] in, and They represent the horizontal gradient and vertical gradient of the current coordinate point respectively, A is the 3×3 neighborhood matrix of the current coordinate point, * represents the convolution operation, and G represents the gradient value of the current coordinate point.

[0061] Then, Matlab is used to fill the gradient values ​​of the grid points corresponding to the gradient grid data into the image.

[0062] Afterwards, the gradient value G is mapped to the image using the “jet” color library to draw the temperature gradient map of each layer in the study area.

[0063] Finally, the temperature gradient maps of different depths of each day are superimposed in order to obtain a three-dimensional temperature gradient map. The size of the three-dimensional temperature gradient map is the same as the three-dimensional temperature data, which is H*W*Z.

[0064] Step 3: Based on the three-dimensional temperature gradient map, the front labels are annotated in layers through Labelme software to obtain three-dimensional front label data.

[0065] Based on the three-dimensional ocean temperature gradient map of Sea Area A, three ocean front research experts were invited to help label the ocean front. Combined with previous research on the ocean front in Sea Area A, a labeling dataset was established using Labelme. Each pixel of each layer of the gradient map in the three-dimensional temperature gradient map was divided into two categories: one is the ocean front and the other is the background. If the pixel belongs to the ocean front, it will be labeled as 1; if the pixel belongs to the background, it will be labeled as 0.

[0066] At the same time, in order to prevent overfitting and increase data training samples, after annotation, the data was enhanced by random cropping, random photometric distortion and random image flipping.

[0067] Step 4: Construct the three-dimensional convolutional deep learning algorithm model 3DRSP-UNet.

[0068] like Figure 2 As shown in the figure, the model consists of 5 encoders, 4 decoders and an output layer; the encoder extracts features and reduces the dimension, the decoder analyzes the features and upsamples to the original image size, and the output layer introduces 3D position encoding and parses the classification probability of each 3D spatial pixel to generate the final detection result.

[0069] 1. Encoder

[0070] like Figure 3 As shown in the figure, the encoder consists of three branches. The bottom branch analyzes the image features through a three-dimensional convolution module. In this module, there are three 3D convolution layers with a convolution kernel size of 3×3×3, namely 3D convolution layer 1, 3D convolution layer 2, and 3D convolution layer 3. After each convolution layer, the feature map is activated with a PReLU (Parametric Rectified Linear Unit) activation function to finally obtain feature B1.

[0071] Unlike traditional ReLU (Rectified Linear Unit), the output of traditional ReLU is always 0 when negative input is input, which may cause the neuron to "die", that is, stop updating during training. PReLU introduces a small negative slope, allowing a small response when negative input is input, thus avoiding the problem of neurons completely stopping learning. It can better express the model. This allows PReLU to learn the best slope suitable for different data and tasks, and in large-scale data sets and complex models, it can better capture the nonlinear characteristics of the data and improve the generalization ability and training speed of the model.

[0072] The calculation formula of the PReLU activation function is as follows:

[0073] ;

[0074] in, represents the larger value of the two. Represents the smaller value of the two; in the PReLU activation function, for non-negative input, is equal to x, is equal to 0, and the final output is x; for negative input, is equal to 0, is equal to x, and the final output is ; is a real number less than 1 and is a learnable parameter that controls the slope on the negative semi-axis.

[0075] The middle branch is a residual connection structure, which takes the input features of each layer as part of the output features, denoted as ORI.

[0076] The upper branch is used to learn the weight ratio relationship on the channel dimension of the feature map and add the seasonality of the ocean front. Specifically, the input feature map size is , H, W, Z, and C are the height, width, depth, and number of feature channels of the feature map respectively; first, after passing through the 3D global average pooling layer, we get The feature map B is then reduced to the number of channels through the fully connected layer 1 (using the ReLU activation function in the full connection). , the feature map at this time is connected in series with the seasonal features of the month to which the day belongs, and the number of channels becomes Then use the fully connected layer 2 to increase the number of channels to ,get Feature map B2.

[0077] Finally, the feature map after adding feature maps B1, B2 and ORI element by element passes through the sampling layer to obtain the output of the encoder; the size of this final feature map is The sampling layer here increases the number of feature channels and reduces the dimension of the feature map.

[0078] 2. Decoder

[0079] The decoder structure is basically the same as the encoder structure. The difference is that the encoder reduces the dimension of the feature map through a 2×2×2 downsampling 3D convolution layer and reduces the feature map size to 1 / 2 of the original size. The decoder finally reduces the number of feature channels through a 2×2×2 upsampling 3D transposed convolution layer and increases the feature map size by 2 times. Therefore, in the feature map finally output by the encoder, k is , the scaling ratio of the feature map in the decoder is k=2.

[0080] Each encoder and decoder has the same structure, but the parameters are different, as shown in Table 1:

[0081] Table 1 Network parameters of 3DRSP-UNet model

[0082] .

[0083] 3. Output layer

[0084] like Figure 4 As shown in the figure, the output layer includes a bottom branch and an upper branch. The bottom branch consists of a 1×1×1 3D convolutional layer 4 and a Softmax layer, which are used to output the model detection results.

[0085] The upper branch is a position attention module, which takes as input a feature map A of size , first through the average pooling layer, the size is The feature map C1, is the downsampling coefficient; then the feature map C1 is passed through the 3D convolution layer 5 for feature learning, the feature map at this time is added to the feature map of the PE position encoding, and then the feature map with position encoding information is input into the 3D convolution layer 6 composed of multiple convolution blocks for feature learning, and the output size is Finally, the weight feature map C2 is restored to its original size through the upsampling layer of bilinear interpolation , and multiply it element by element with the bottom branch result, add the product result to the bottom branch result to get the final detection result.

[0086] PE (Positional Encoding) uses sine and cosine functions to represent absolute positions, and provides a vector representing each position in the sequence, so that the model can distinguish information at different positions when processing the sequence, and obtain the relative position by multiplying the two. Because sine and cosine functions are periodic, they can well represent the relative position of data in the sequence.

[0087] The formula for PE position encoding is as follows:

[0088] ;

[0089] ;

[0090] ;

[0091] ;

[0092] ;

[0093] ;

[0094] in, Respectively represent the vertical coordinate, horizontal coordinate and depth values ​​of the three-dimensional feature map, and the ranges are [0,H] , [0,W] , [0,Z] , H, W, and Z represent the image length, width, and height respectively; Indicates the number of channels of PE position encoding for vertical position encoding, Indicates the number of channels of PE position encoding for horizontal position encoding, Indicates the number of channels of PE position encoding for depth position encoding, the range is [0, D 6 ] ; D represents the final number of channels of the feature map of PE position encoding, and PE represents the feature encoding that converts the spatial position into a position vector.

[0095] Step 5: Divide the 3D temperature gradient map and 3D label data into a training set and a test set. The data set division ratio is 3:1. The data set from 2018 to 2020 is used as the training set, and the data from 2021 is used as the test set. The model is trained using the 3D temperature gradient map in the training set and the 3D front label data obtained after annotation; and the model accuracy is evaluated using the test set.

[0096] 1. Model training

[0097] Ocean fronts are small sample data, accounting for about 5-20% of an image. If the traditional cross entropy loss function is used, it is easy to ignore the details of the ocean front and pay more attention to the background pixels. Cross entropy loss usually performs poorly when dealing with category imbalance because it tends to favor categories with a larger number, causing the model to ignore minority categories. Tversky Loss can handle category imbalance more effectively. By adjusting the α and β parameters to balance the trade-off between misclassification and missed classification, the model pays more attention to minority categories, thereby improving the performance of the model on unbalanced data sets. The formula is as follows:

[0098] ;

[0099] Among them: T represents the final calculated loss value, with a total of four parameters; P represents the predicted value, G represents the true value, α and β are a set of adjustable parameters; P 0i is the probability that pixel i is a front, P 1i is the probability that pixel i is a non-frontal surface; G 0iG0i is 1 for frontal pixels, and G0i is 0 for non-frontal pixels; 1i On the contrary.

[0100] The hyperparameters of the model are set as follows: batch size is set to 4, training epochs are set to 200, Tversky Loss for class imbalance is used as the loss function, the optimizer used is Adam, and the initial learning rate of training is 0.0001. During the training process, the learning rate decay strategy is adopted, and the early stopping mechanism is set. If the loss error on the training set does not decrease within three consecutive epochs, the learning rate at this time is reduced to half of the original; if the loss error on the training set does not decrease within 20 consecutive epochs, the program is stopped and the current optimal parameters are saved.

[0101] 2. Model Evaluation

[0102] The problem of detecting three-dimensional ocean fronts is essentially to determine whether each longitude and latitude position in different water depth layers is a front, that is, to divide each pixel point in different layers of the three-dimensional gradient value into different categories, which conforms to the definition of semantic segmentation. Therefore, the 3DRSP-UNet model is compared with the common three-dimensional convolutional semantic segmentation model.

[0103] (1) The 3D-UNet model can effectively capture multi-scale features and generate accurate segmentation results in the three-dimensional medical image segmentation task through the encoder-decoder structure and skip connection mechanism.

[0104] (2) 3D-KiUNet combines Ki-Net with Unet to form KiUNet. The input feature map passes through two branches at the same time, one branch is UNet and the other branch is Ki-Net. Both branches are encoder-decoder architectures, and the encoding and decoding parts are three convolutional blocks. Good performance has been achieved in segmentation accuracy and detail preservation.

[0105] (3) The 3D-ResUNet model introduces a residual connection structure, which is a cross-layer connection method that enables the network to better learn low-frequency information, solve the problems of gradient vanishing and gradient exploding in deep networks, and converge the "degeneration" problem of deep networks, making the network easier to train.

[0106] (4) Based on the 3D-ResUNet model, 3DRS-UNet adds an upper branch to the encoder-decoder module, which is used to learn the weight ratio relationship in the channel dimension of the feature map and incorporate the seasonality of the ocean front. Incorporating seasonal features into the model can help the model better understand the formation and evolution of the ocean front and the distribution characteristics of the front in different seasons, thereby improving the accuracy and practicality of the model for three-dimensional front detection.

[0107] (4) 3DRSP-UNet adds the seasonal characteristics of the ocean front to the 3DRS-UNet model, and adds PE position encoding to the final output layer. Through convolution operations, the position encoding allows the model to better focus on the location of the front.

[0108] Table 2 shows the detection results of each model. The overall accuracy is reflected by the Dice coefficient, from which it can be seen that the 3DRSP-UNet model has the best performance.

[0109] Table 2 Comparative experiments with other models

[0110] .

[0111] The detection results of each model on January 1, 2021 were visualized. For the convenience of comparison, the first layer of the three-dimensional front detection results was taken out for visualization, as shown in the figure below: Figure 5 As shown in the figure. The 3D-UNet model can detect the front, but it also detects some noise data that are not in the front label. At the same time, in the northern part of Sea Area A, the frontal area detection results of the same front are discontinuous; 3D-KiUNet ignores the small-scale front information and splices the discontinuous fronts together; 3D-ResUNet can detect the mesoscale front, but the detection results of the small-scale front are not comprehensive; 3DRS-UNet adds the frontal season information. On the fronts of different scales, the detected frontal morphology is more complete than that of 3D-ResUNet, but the detection accuracy of the front edge is low; 3DRSP-UNet can accurately learn the frontal features of different scales, including mesoscale and small-scale fronts, and will not detect the fronts outside the front label. The front edge matching degree is high, and the detected front in the northern part of Sea Area A is most consistent with the real front label.

[0112] Step 6, preprocess the Copernicus Ocean Environment Observation Service reanalysis data of the sea area to be tested according to different depth layers to obtain preprocessed three-dimensional temperature data, calculate the temperature gradient of the three-dimensional temperature data by layering using the Sobel operator, and draw a temperature gradient map, which is superimposed to obtain a three-dimensional temperature gradient map; input the three-dimensional temperature gradient map into the qualified model for intelligent detection of the three-dimensional temperature front.

[0113] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A deep learning-based intelligent detection method for ocean three-dimensional temperature fronts, characterized in that: The steps include: Step 1: preprocess the Copernicus Ocean Environment Observation Service reanalysis data according to different depth layers to obtain preprocessed three-dimensional temperature data; Step 2, using the Sobel operator to calculate the temperature gradient of the three-dimensional temperature data in layers, and draw a temperature gradient map, and superimpose to obtain a three-dimensional temperature gradient map; Step 3, based on the three-dimensional temperature gradient map, label the front labels in layers through Labelme software to obtain three-dimensional front label data; Step 4, construct a three-dimensional convolutional deep learning algorithm model 3DRSP-UNet; The model includes 5 encoders, 4 decoders and an output layer; the encoder extracts features and reduces the dimension, the decoder analyzes the features and upsamples to the original image size, and the output layer introduces 3D position encoding and parses the classification probability of each 3D spatial pixel to generate the final detection result; The encoder has a three-branch structure, the bottom branch analyzes the image features through a three-dimensional convolution module to obtain a feature map B1; The middle branch is a residual connection structure, which takes the input features of each layer as part of the output features, denoted as ORI; the upper branch is used to learn the weight ratio relationship on the channel dimension of the feature map and add the seasonality of the ocean front to obtain the feature map B2; finally, the feature map after element-by-element addition of feature maps B1, B2 and ORI is passed through the sampling layer to obtain the output of the encoder; The output layer includes a bottom branch and an upper branch. The bottom branch is used to output the model detection result. The upper branch is a position attention module, which adds PE position encoding information. Finally, the result of the upper branch is multiplied element by element with the result of the bottom branch, and the product result is added to the result of the bottom branch to obtain the final detection result. Step 5, dividing the three-dimensional temperature gradient map and the three-dimensional front label data into a training set and a test set, using the training set to train the model; and using the test set to evaluate the model accuracy; Step 6, preprocess the Copernicus Ocean Environment Observation Service reanalysis data of the sea area to be tested according to different depth layers to obtain preprocessed three-dimensional temperature data, calculate the temperature gradient of the three-dimensional temperature data by layering using the Sobel operator, and draw a temperature gradient map, which is superimposed to obtain a three-dimensional temperature gradient map; input the three-dimensional temperature gradient map into the qualified model for intelligent detection of the three-dimensional temperature front.

2. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1 is characterized in that: The bottom branch of the encoder includes three 3D convolutional layers with a convolution kernel size of 3×3×3, namely 3D convolutional layer 1, 3D convolutional layer 2, and 3D convolutional layer 3. After each convolutional layer, the feature map is activated with the PReLU activation function. The calculation formula of the PReLU activation function is as follows: ; in, represents the larger value of the two. Represents the smaller value of the two; is a real number less than 1 and is a learnable parameter that controls the slope on the negative semi-axis.

3. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1 is characterized in that: In the upper branch of the encoder, the input feature map size is , H, W, Z, and C are the height, width, depth, and number of feature channels of the feature map respectively; first, after passing through the 3D global average pooling layer, we get The feature map B is then passed through the fully connected layer to reduce the number of channels to , the feature map at this time is connected in series with the seasonal features of the month to which the day belongs, and the number of channels becomes Then use the fully connected layer 2 to increase the number of channels to ,get Feature map B2.

4. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1, characterized in that: The difference between the decoder structure and the encoder structure is that the encoder reduces the dimension of the feature map through a 2×2×2 downsampling 3D convolution layer and reduces the size of the feature map to 1 / 2 of the original size; the decoder finally reduces the number of feature channels through a 2×2×2 upsampling 3D transposed convolution layer and increases the size of the feature map by 2 times; Therefore, in the feature map finally output by the encoder, the scaling ratio k of the feature map is , k is 2 in the decoder.

5. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1, characterized in that: The bottom branch of the output layer consists of four 1×1×1 3D convolutional layers and a Softmax layer.

6. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1, characterized in that: In the upper branch of the output layer, the input feature map A is of size , first through the average pooling layer, the size is The feature map C1, is the downsampling coefficient; then the feature map C1 is passed through the 3D convolution layer 5 for feature learning, the feature map at this time is added to the feature map of the PE position encoding, and then the feature map with position encoding information is input into the 3D convolution layer 6 composed of multiple convolution blocks for feature learning, and the output size is Finally, the weight feature map C2 is restored to its original size through the upsampling layer of bilinear interpolation , and multiply it element by element with the bottom branch result, add the product result to the bottom branch result to get the final detection result.

7. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1 or 6, characterized in that: The formula for PE position encoding is as follows: ; ; ; ; ; ; in, Respectively represent the vertical coordinate, horizontal coordinate and depth values ​​of the three-dimensional feature map, and the ranges are , , , H, W, and Z represent the image length, width, and height respectively; Indicates the number of channels of PE position encoding for vertical position encoding, Indicates the number of channels of PE position encoding for horizontal position encoding, Indicates the number of channels of PE position encoding for depth position encoding, the range is ; D represents the final number of channels of the feature map of PE position encoding, and PE represents the feature encoding that converts the spatial position into a position vector.

8. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1, characterized in that: In step 2, the method for constructing a three-dimensional temperature gradient map is as follows: First, the Sobel operator is used to calculate the temperature gradient value G of each layer in the three-dimensional ocean temperature grid data to obtain the gradient grid data of each layer. The calculation formula is as follows: ; ; in, and Respectively represent the horizontal gradient and vertical gradient of the current coordinate point, A is the 3×3 neighborhood matrix of the current coordinate point, * represents the convolution operation, and G represents the gradient value of the current coordinate point; Then, Matlab is used to fill the gradient values ​​of the grid points corresponding to the gradient grid data into the image; After that, the gradient value G is mapped to the image using the "jet" color library to draw the temperature gradient map of each layer in the study area; Finally, the daily temperature gradient maps of different layer depths are superimposed in sequence to obtain a three-dimensional temperature gradient map.

9. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1, characterized in that: In step 3, each pixel of each layer of the temperature gradient map in the three-dimensional temperature gradient map is divided into two categories: one is the ocean front and the other is the background. If the pixel belongs to the ocean front, it is marked as 1; if the pixel belongs to the background, it is marked as 0.

10. The method for intelligent detection of ocean three-dimensional temperature front based on deep learning according to claim 1, characterized in that: In step 3, after annotation, data augmentation is performed by random cropping, random photometric distortion, and random flipping of images.