A method for ocean front detection based on multi-scale residual convolutional neural network

Through the multi-scale residual convolutional neural network Y-Net model, combined with sea surface temperature maps and temperature gradient maps, the problem of insufficient accuracy of the traditional U-Net model in ocean front detection is solved, and higher-precision ocean front detection is achieved. Effect.

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

Patent Information

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

AI Technical Summary

Technical Problem

The traditional U-Net model can only learn information features in a single input path in ocean front detection, and cannot meet the high-precision requirements of scientific research.

Method used

The multi-scale residual convolutional neural network Y-Net model is used to combine sea surface temperature maps and temperature gradient maps through two encoder paths to enhance feature extraction and context information fusion, and use multi-scale residual convolution blocks and skip connections to improve Model detection accuracy.

Benefits of technology

It effectively improves the accuracy of ocean front detection, enhances the model's ability to learn front feature information at different scales, and achieves higher-precision automatic identification and detection of ocean fronts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570612B_ABST
    Figure CN118570612B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of ocean front detection, and discloses an ocean front detection method based on a multi-scale residual convolutional neural network, comprising the following steps: pre-processing the sea surface temperature data obtained by satellite remote sensing observation to obtain a sea surface temperature gradient map and a sea surface temperature map; using Labelme to make ocean front labels; using the sea surface temperature gradient map and the sea surface temperature map as model inputs, inputting the training set into the constructed multi-scale residual convolutional neural network Y-Net model, and evaluating the model using the test set after training; and using the evaluated model to detect ocean fronts. The method disclosed in the present invention has two encoder paths, so that the feature map obtained by the model in the decoder part not only integrates the detailed feature information of the SST gradient map but also integrates the feature information in the SST map, thereby enhancing the context information of the encoder output feature map, thereby effectively improving the detection accuracy of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ocean front detection, and in particular to an ocean front detection method based on a multi-scale residual convolutional neural network. Background Art

[0002] The study of ocean fronts is a long-term need for real-time operational oceanography (a discipline that uses real-time data or real-time analysis to support ocean-related businesses), weather forecasting, and climate research. Various ecological physical processes are closely related to the formation and movement of ocean fronts. The formation of fronts will promote the accumulation of various nutrients, provide a living environment and habitat for a variety of phytoplankton and small fish organisms, and effectively improve the level of biological productivity near the front. Therefore, the study of persistent fronts is of great significance to marine biology. High-precision ocean front detection algorithms are of great significance to leading the cutting-edge technology of the oceanography community and the field of marine environmental security. It is imperative to accurately detect the ocean front from the ocean.

[0003] With the development of deep learning technology, the use of deep neural networks for front detection has become a trend, and treating the ocean front detection problem as a semantic segmentation problem and separating the front from the ocean is a hot topic in current research. The semantic segmentation network U-Net model, which plays an important role in the field of medical image segmentation, also has good segmentation effects when applied to ocean front segmentation. However, the traditional U-Net model has a single input path and can only learn the input information features in a single input path. The accuracy of its front recognition cannot meet the requirements of scientific research. Therefore, new methods are needed to achieve high-precision detection of fronts in the ocean. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides an ocean front detection method based on a multi-scale residual convolutional neural network, so as to achieve the purpose of automatic identification and detection of ocean fronts and effectively improve the accuracy of front detection.

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

[0006] A method for detecting ocean fronts based on a multi-scale residual convolutional neural network comprises the following steps:

[0007] Step 1, preprocessing the sea surface temperature data obtained by satellite remote sensing observation to obtain a sea surface temperature gradient map and a sea surface temperature map;

[0008] Step 2: Based on the sea surface temperature gradient map and combined with expert experience, use Labelme to create ocean front labels;

[0009] Step 3: Use the sea surface temperature gradient map and the sea surface temperature map as model inputs to construct a data set and divide it into a training set and a test set. Input the training set into the constructed multi-scale residual convolutional neural network Y-Net model, train the model using the ocean front label, and evaluate the model using the test set after the training is completed.

[0010] The Y-Net model includes three parts: an encoder, a decoder and a prediction network; the encoder part consists of two branches, one branch is used to receive the sea surface temperature gradient map, and the other branch is used to receive the sea surface temperature map, and both branches are composed of 5 multi-scale residual convolution blocks stacked; the encoder realizes feature extraction and dimensionality reduction, and the feature maps obtained by the two branches are channel-merged and then output to the decoder;

[0011] The decoder part consists of 4 groups of 2×2 convolutional layers and multi-scale residual convolutional blocks. The decoder implements feature analysis and upsampling, restores the image size to the original image size, and then passes it to the prediction network.

[0012] The prediction network first consists of a convolutional layer with a 3×3 convolution kernel, in which the ReLU activation function is applied and the number of output channels is adjusted to 2. The second layer is a convolutional layer with a 1×1 convolution kernel, in which the softmax activation function is applied to convert the output of the convolutional layer into a probability distribution and predict the probability that each pixel belongs to a certain category. After that, the feature map size is restored to the original input size, and the number of output channels is adjusted to 2 to achieve pixel classification and generate detection results.

[0013] Step 4: pre-process the sea surface temperature data of the sea area to be measured obtained by satellite remote sensing observation to obtain a sea surface temperature gradient map and a sea surface temperature map, and input them into the qualified model for ocean front detection.

[0014] In the above scheme, the specific method of step 1 is as follows:

[0015] The daily sea surface temperature data obtained by satellite remote sensing is m×n grid data, where m represents the number of latitudinal grids and n represents the number of longitudinal grids. First, Matlab is used to draw the longitude and latitude map of the study area, and the sea surface temperature data of the corresponding grid points are filled into the longitude and latitude map. Then, the sea surface temperature is mapped to the image with different colors to complete the drawing of the sea surface temperature map.

[0016] The gradient of daily sea surface temperature data is calculated using the Sobel operator. The formula is as follows:

[0017]

[0018]

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

[0020] After obtaining the gradient value, the “jet” color mapping function of Matlab was used to draw the sea surface temperature gradient map.

[0021] In the above scheme, in step 2, the pixels in each image are divided into two categories: one is the ocean front pixels, and the other is the background pixels. The pixel values ​​of the ocean front pixels are marked as 1, and the pixel values ​​of the background pixels are marked as 0.

[0022] In the above scheme, in step 2, after completing the labeling work, data enhancement is performed by randomly adjusting the image hue, saturation, brightness, randomly scaling, randomly cropping, and randomly flipping.

[0023] In the above scheme, in step 3, the multi-scale residual convolution block includes an upper branch and a lower branch, the upper branch consists of three 3×3 convolutional layers, and the lower branch includes one 1×1 convolutional layer; the outputs of the three 3×3 convolutional layers are concatenated, and then added element-by-element with the output of the input through the 1×1 convolutional layer, and the ReLU nonlinear activation function is used after each layer of convolution to realize feature extraction of different scales.

[0024] In the above scheme, in step 3, in one branch of the encoder, the input feature map is sequentially subjected to 5 multi-scale residual convolution blocks for feature extraction. After the first 4 multi-scale residual convolution blocks, there is a maximum pooling layer to reduce the dimension of the feature map, and the pooling window size of the maximum pooling layer is 2×2.

[0025] In the above scheme, in step 3, the feature map is subjected to dimension reduction and channel number adjustment in addition to feature extraction in the encoder part. The output channel numbers of the five multi-scale residual convolution blocks are 64, 128, 256, 512, and 1024 respectively.

[0026] The input size is The feature map of is first extracted by the first multi-scale residual convolution block and the number of channels is adjusted. Then, the dimension is reduced by the maximum pooling layer. The output feature map size is ; Then it passes through the 2nd, 3rd, 4th, and 5th multi-scale residual convolution blocks and the maximum pooling layer in turn, and finally outputs two images of size feature map.

[0027] In the above scheme, in step 3, in the decoder, the feature map output by the encoder is first subjected to an upsampling process before being passed to the 2×2 convolution layer, and the upsampling scale factor is set to 2. The dimension of the feature map is increased through the upsampling process, and the feature extraction and the adjustment of the number of channels are achieved through the 2×2 convolution layer; after the dimension increase operation, the feature map of the same size as the encoder part is subjected to feature fusion through a jump connection operation, and the fused result is passed to the multi-scale residual convolution block for feature extraction operation.

[0028] In the above scheme, in step 3, the size of the two images output by the encoder is The feature map of , first merge the channel dimension to get The feature map is upsampled by a factor of 2 and output The feature map of size is then passed through a 2×2 convolution layer and the channel is adjusted to 512, and the output size is The feature map is then passed to the multi-scale residual convolution block, where only feature extraction is performed without changing the dimension or adjusting the number of channels. The multi-scale residual block used in the decoder is the same as that in the encoder, and the number of output channels of the 2×2 convolution layer is set to 512, 256, 128, and 64 respectively. The feature map passed to the decoder passes through 4 2×2 convolution layers and 4 multi-scale residual convolution blocks in turn, and the output size of the decoder is feature map.

[0029] In the above scheme, in step 3, when training the model, the cross entropy loss function is used, and the calculation formula is as follows:

[0030] ;

[0031] in, The first elements, Represents model predictions Belong to Probability of class; Indicates the number of sample labels.

[0032] Through the above technical solution, the ocean front detection method based on multi-scale residual convolutional neural network provided by the present invention has the following beneficial effects:

[0033] The present invention proposes a multi-scale residual convolutional neural network Y-Net model, which is based on U-Net. An encoder path is added to the U-Net model. One end of the model uses a sea surface temperature map (SST map) as input, and the other end uses a sea surface temperature gradient map (SST gradient map) as input. This approach enables the model to not only learn the details of temperature changes from the sea surface temperature map, but also obtain feature information about gradient changes from the sea surface temperature gradient map. At the same time, the traditional U-Net model performs a jump connection between the encoder and the decoder, while the model of the present invention has two encoder paths. Therefore, the present invention performs a jump connection between the two encoder paths and the decoder, so that the feature map obtained by the model in the decoder part not only integrates the detailed feature information of the SST gradient map but also integrates the feature information in the SST map, thereby enhancing the contextual information of the encoder output feature map, thereby effectively improving the detection accuracy of the model;

[0034] At the same time, the present invention replaces the convolution layer of the original U-Net model with a multi-scale residual convolution block, which connects the outputs of three 3×3 convolution layers to obtain spatial feature combination maps of different scales, thereby enhancing the model's ability to learn front feature information of different scales. Compared with the traditional U-Net model, the model of the present invention effectively improves the accuracy of front detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] 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.

[0036] Figure 1 A schematic flow chart of an ocean front detection method based on a multi-scale residual convolutional neural network disclosed in an embodiment of the present invention;

[0037] Figure 2 This is the structure diagram of the constructed Y-Net model;

[0038] Figure 3 This is the structure diagram of the multi-scale residual convolution block. DETAILED DESCRIPTION

[0039] 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.

[0040] The present invention provides an ocean front detection method based on a multi-scale residual convolutional neural network, such as Figure 1 As shown, the following steps are included:

[0041] Step 1: preprocess the sea surface temperature (SST) data obtained from satellite remote sensing observations to obtain a sea surface temperature gradient map and a sea surface temperature map.

[0042] The daily sea surface temperature data of a certain sea area obtained by satellite remote sensing means is m×n grid data, where m represents the number of latitudinal grids and n represents the number of longitudinal grids.

[0043] First, Matlab is used to draw the longitude and latitude map of the study area, and the sea surface temperature data of the corresponding grid points are filled into the longitude and latitude map. Then, the sea surface temperature is mapped to the image with different colors to complete the drawing of the sea surface temperature map.

[0044] The gradient of daily sea surface temperature data is calculated using the Sobel operator. The formula is as follows:

[0045] ;

[0046] ;

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

[0048] After obtaining the gradient value, the “jet” color mapping function of Matlab was used to draw the sea surface temperature gradient map.

[0049] Step 2: Based on the sea surface temperature gradient map and combined with expert experience, use Labelme to create ocean front labels.

[0050] The pixels in each image are divided into two categories: one is the ocean front pixels, and the other is the background pixels. The pixel values ​​of the ocean front pixels are marked as 1, and the pixel values ​​of the background pixels are marked as 0.

[0051] At the same time, in order to prevent overfitting and increase the number of training samples, after completing the labeling work, data enhancement is performed by randomly adjusting the image hue, saturation, brightness, randomly scaling, randomly cropping and randomly flipping.

[0052] Step 3: Use the sea surface temperature gradient map and the sea surface temperature map as model inputs to construct a data set and divide it into a training set and a test set. Input the training set into the constructed multi-scale residual convolutional neural network Y-Net model, train the model using the ocean front label, and evaluate the model using the test set after training.

[0053] 1. Model construction.

[0054] The Y-Net model consists of three parts: encoder, decoder and prediction network. Figure 2 shown.

[0055] (1) Encoder.

[0056] The encoder part consists of two branches, one branch is used to receive the sea surface temperature gradient map, and the other branch is used to receive the sea surface temperature map. Both branches are composed of 5 stacked multi-scale residual convolution blocks; the encoder realizes feature extraction and dimensionality reduction, and the feature maps obtained by the two branches are channel-merged and output to the decoder.

[0057] The structure of the multi-scale residual convolution block is shown in the figure Figure 3 As shown in the figure. The multi-scale residual convolution block includes an upper branch and a lower branch. The upper branch consists of three 3×3 convolutional layers. The outputs of the second and third convolutional layers are approximately equal to 5×5 and 7×7 convolution operations. The lower branch includes a 1×1 convolutional layer. The outputs of the three 3×3 convolutional layers are concatenated and then added element-by-element to the output of the input after the 1×1 convolutional layer. The ReLU nonlinear activation function is used after each convolution layer to extract features of different scales.

[0058] In one branch of the encoder, the input feature map passes through 5 multi-scale residual convolution blocks in sequence for feature extraction. There is a maximum pooling layer after the first 4 multi-scale residual convolution blocks to reduce the dimension of the feature map, and the pooling window size of the maximum pooling layer is 2×2.

[0059] In addition to feature extraction, the encoder also performs dimensionality reduction and channel number adjustment on the feature map. The output channel numbers of the five multi-scale residual convolution blocks are 64, 128, 256, 512, and 1024, respectively.

[0060] The operation after the input image is fed into the model is as follows: The feature map of is first extracted by the first multi-scale residual convolution block and the number of channels is adjusted. Then, the dimension is reduced by the maximum pooling layer. The output feature map size is ; Then it passes through the 2nd, 3rd, 4th, and 5th multi-scale residual convolution blocks and the maximum pooling layer in turn, and finally outputs two images of size feature map.

[0061] (2) Decoder.

[0062] The decoder part is composed of 4 groups of 2×2 convolutional layers and multi-scale residual convolutional blocks. The output of the encoder is the output result of the channel merging of the feature maps obtained by the two branches. The feature map passes through 4 groups of 2×2 convolutional layers and multi-scale residual convolutional blocks in turn to achieve feature analysis and upsampling, restore the image size to the original image size, and then pass it to the prediction network.

[0063] In the decoder, the feature map output by the encoder is first upsampled before being passed to the 2×2 convolutional layer. The upsampling scale factor is set to 2. The dimension of the feature map is increased through the upsampling process, and the feature extraction and channel number adjustment are achieved through the 2×2 convolutional layer. After the dimension increase operation, the feature map of the same size as the encoder part is fused through the jump connection operation, and the fused result is passed to the multi-scale residual convolution block for feature extraction.

[0064] The operation after the feature map output by the encoder is passed to the decoder is as follows: The feature map of , first merge the channel dimension to get The feature map is upsampled by a factor of 2 and output The feature map of size is then passed through a 2×2 convolution layer and the channel is adjusted to 512, and the output size is The feature map is then passed to the multi-scale residual convolution block, where only feature extraction is performed without changing the dimension or adjusting the number of channels. The multi-scale residual block used in the decoder is the same as that in the encoder, and the number of output channels of the 2×2 convolution layer is set to 512, 256, 128, and 64 respectively. The feature map passed to the decoder passes through 4 2×2 convolution layers and 4 multi-scale residual convolution blocks in turn, and the output size of the decoder is feature map.

[0065] (3) Prediction network.

[0066] The prediction network first consists of a convolution layer with a 3×3 convolution kernel, and a ReLU activation function is applied to this layer, and the number of output channels is adjusted to 2; the second is a convolution layer with a 1×1 convolution kernel, which applies a softmax activation function to convert the output of the convolution layer into a probability distribution and predict the probability that each pixel belongs to a certain category; then the feature map size is restored to the original input size, and the number of output channels is adjusted to 2 to achieve pixel classification and generate detection results.

[0067] (2) Model training.

[0068] In the final prediction of the ocean front, the pixel points were classified. Therefore, when training the model, the cross entropy loss function was used, and the calculation formula is as follows:

[0069] ;

[0070] in, The first elements, Represents model predictions Belong to Probability of class; Indicates the number of sample labels.

[0071] The hyperparameters of the model are set as follows: the batch size of the dual-input Y-Net model is set to 2, the training epoch is set to 80, the cross entropy loss function is used, the Adam optimizer is used, and the initial learning rate of the training is 0.0001.

[0072] During the training process, a learning rate decay strategy is adopted. If the loss error on the validation set does not decrease within three consecutive epochs, the learning rate at this time is reduced to half of the original value.

[0073] (3) Model evaluation.

[0074] The problem of ocean front detection is essentially to classify each pixel in the image into different categories, which conforms to the definition of semantic segmentation. Therefore, the Y-Net model designed by the present invention is compared with the U-Net model and other commonly used semantic segmentation models in terms of front detection effect:

[0075] (1) The U-Net model is widely used in the field of medical image segmentation. The model obtains context information and target location information through its unique U-shaped structure and jump connection between the encoder and decoder, and has good segmentation effect.

[0076] (2) Dual Attention Net (DANet) introduces dual attention, namely channel attention and position attention, to enhance the model's ability to capture channel dependencies and spatial dependencies, improve the model's segmentation effect, and complete pixel-level segmentation tasks.

[0077] (3) Pyramid Scene Parsing Network (PSPNet) proposes a pyramid pooling module that can aggregate contextual information from different regions and scales, improving the model's ability to capture global and local semantic information.

[0078] At the same time, the backbone feature extraction networks of the DANet and PSPNet models use ResNet50 and ResNet101 to process and learn features, respectively.

[0079] Table 1 shows the front detection effect of each model under different input conditions. The detection accuracy of front pixels and background pixels is measured by IoU (Intersection over Union), and the overall detection accuracy is measured by mean intersection over Union (mIoU). In order to enable the model to learn both the semantic information contained in the sea surface temperature map and the information contained in the sea surface temperature gradient map, the SST map and the SST gradient map are merged along the channel dimension. After the merging operation, a 6-channel image is obtained. The mixed image is used as input data and the performance of different models is compared and analyzed.

[0080] Table 1 Detection accuracy of each model.

[0081]

[0082] It is not difficult to see from the data in Table 1 that the detection accuracy of U-Net is significantly higher than that of DANet and PSPNet, while the detection effect of the Y-Net model is the best. Whether it is background detection or front detection, the Y-Net model has achieved the best results. For DANet and PSPNet, the detection effect when ResNet50 is used as the backbone feature extraction network is better than that when ResNet101 is used as the backbone feature extraction network. The reason for this may be that ResNet101 has a deeper network depth and more model parameters, and there is an overfitting phenomenon during the training process, which affects the detection accuracy. For the U-Net model, the detection accuracy when the SST map is used as input data is not much different from that when the SST gradient map is used as input data. For the DANet and PSPNet (ResNet50) models, the detection accuracy when the SST gradient map is used as input data is significantly better. The reason for this may be that the U-Net model has good generalization ability and can capture more detailed information in the SST map, while DANet and PSPNet (ResNet50) ignore the detailed information contained in the SST map.

[0083] Step 4: pre-process the sea surface temperature data of the sea area to be measured obtained by satellite remote sensing observation to obtain a sea surface temperature gradient map and a sea surface temperature map, and input them into the qualified model for ocean front detection.

[0084] 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 method for detecting ocean fronts based on a multi-scale residual convolutional neural network, characterized in that: The steps include: Step 1, preprocessing the sea surface temperature data obtained by satellite remote sensing observation to obtain a sea surface temperature gradient map and a sea surface temperature map; Step 2: Based on the sea surface temperature gradient map and combined with expert experience, use Labelme to create ocean front labels; Step 3: Use the sea surface temperature gradient map and the sea surface temperature map as model inputs to construct a data set and divide it into a training set and a test set. Input the training set into the constructed multi-scale residual convolutional neural network Y-Net model, train the model using the ocean front label, and evaluate the model using the test set after the training is completed. The Y-Net model includes three parts: an encoder, a decoder and a prediction network; the encoder part consists of two branches, one branch is used to receive the sea surface temperature gradient map, and the other branch is used to receive the sea surface temperature map, and both branches are composed of 5 multi-scale residual convolution blocks stacked; the encoder realizes feature extraction and dimensionality reduction, and the feature maps obtained by the two branches are channel-merged and then output to the decoder; The decoder part consists of 4 groups of 2×2 convolutional layers and multi-scale residual convolutional blocks. The decoder implements feature analysis and upsampling, restores the image size to the original image size, and then passes it to the prediction network. The prediction network first consists of a convolutional layer with a 3×3 convolution kernel, in which the ReLU activation function is applied and the number of output channels is adjusted to 2. The second layer is a convolutional layer with a 1×1 convolution kernel, in which the softmax activation function is applied to convert the output of the convolutional layer into a probability distribution and predict the probability that each pixel belongs to a certain category. After that, the feature map size is restored to the original input size, and the number of output channels is adjusted to 2 to achieve pixel classification and generate detection results. Step 4: pre-process the sea surface temperature data of the sea area to be measured obtained by satellite remote sensing observation to obtain a sea surface temperature gradient map and a sea surface temperature map, and input them into the qualified model for ocean front detection.

2. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 1 is characterized in that: Step 1: The daily sea surface temperature data obtained by satellite remote sensing is m×n grid data, where m represents the number of latitudinal grids and n represents the number of longitudinal grids. First, Matlab is used to draw the longitude and latitude map of the study area, and the sea surface temperature data of the corresponding grid points are filled into the longitude and latitude map. Then, the sea surface temperature is mapped to the image with different colors to complete the drawing of the sea surface temperature map. The gradient of daily sea surface temperature data is calculated using the Sobel operator. The formula is as follows: ; ; in, and Respectively represent the horizontal gradient and vertical gradient of the current coordinate point, is the 3×3 neighborhood matrix of the current coordinate point, represents the convolution operation, Indicates the gradient value of the current coordinate point; After obtaining the gradient value, the "jet" color mapping function of Matlab is used to draw the sea surface temperature gradient map.

3. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 1 is characterized in that: In step 2, the pixels in each image are divided into two categories: one is the ocean front pixels, and the other is the background pixels. The pixel values ​​of the ocean front pixels are marked as 1, and the pixel values ​​of the background pixels are marked as 0.

4. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 1 is characterized in that: In step 2, after the labeling work is completed, data enhancement is performed by randomly adjusting the image hue, saturation, brightness, randomly scaling, randomly cropping, and randomly flipping.

5. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 1, characterized in that: In step 3, the multi-scale residual convolution block includes an upper branch and a lower branch, the upper branch consists of three 3×3 convolutional layers, and the lower branch includes one 1×1 convolutional layer; the outputs of the three 3×3 convolutional layers are concatenated, and then added element-by-element with the output of the input through the 1×1 convolutional layer, and the ReLU nonlinear activation function is used after each layer of convolution to realize feature extraction of different scales.

6. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 1, characterized in that: In step 3, in one branch of the encoder, the input feature map passes through 5 multi-scale residual convolution blocks in sequence for feature extraction. There is a maximum pooling layer after the first 4 multi-scale residual convolution blocks to reduce the dimension of the feature map, and the pooling window size of the maximum pooling layer is 2×2.

7. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 6 is characterized in that: In step 3, in addition to feature extraction, the feature map is also reduced in dimension and the number of channels is adjusted in the encoder part. The number of output channels of the five multi-scale residual convolution blocks is 64, 128, 256, 512, and 1024 respectively. The input size is The feature map of is first extracted by the first multi-scale residual convolution block and the number of channels is adjusted. Then, the dimension is reduced by the maximum pooling layer. The output feature map size is ; Then it passes through the 2nd, 3rd, 4th, and 5th multi-scale residual convolution blocks and the maximum pooling layer in turn, and finally outputs two images of size feature map.

8. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 1, characterized in that: In step 3, in the decoder, the feature map output by the encoder is first upsampled before being passed to the 2×2 convolution layer. The upsampling factor is set to 2. The dimension of the feature map is increased through the upsampling process, and the feature extraction and channel number adjustment are achieved through the 2×2 convolution layer. After the dimension increase operation, the feature map of the same size as the encoder part is fused through the jump connection operation, and the fused result is passed to the multi-scale residual convolution block for feature extraction.

9. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 8, characterized in that: In step 3, the encoder outputs two images of size The feature map of , first merge the channel dimension to get The feature map is upsampled by a factor of 2 and output The feature map of size is then passed through a 2×2 convolution layer and the channel is adjusted to 512, and the output size is The feature map is then passed to the multi-scale residual convolution block, where only feature extraction is performed without changing the dimension or adjusting the number of channels. The multi-scale residual block used in the decoder is the same as that in the encoder, and the number of output channels of the 2×2 convolution layer is set to 512, 256, 128, and 64 respectively. The feature map passed to the decoder passes through 4 2×2 convolution layers and 4 multi-scale residual convolution blocks in turn, and the output size of the decoder is feature map.

10. The ocean front detection method based on a multi-scale residual convolutional neural network according to claim 1, characterized in that: In step 3, when training the model, the cross entropy loss function is used, and the calculation formula is as follows: ; in, The first elements, Representing model predictions Belong to Probability of class; Indicates the number of sample labels.