A robust method for fish target segmentation in underwater videos based on adaptive selective optical flow

Through the combination of adaptive selection optical flow and multi-dimensional attention module, a robust fish target segmentation model is proposed, which solves the problem of poor robustness of fish target segmentation in underwater environment and achieves more accurate and stable segmentation. result.

CN118262228BActive Publication Date: 2024-10-11DALIAN OCEAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410462719.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-10-11
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

The existing technology has poor robustness in segmenting fish targets in real underwater environments. Especially in turbid water, low light and camouflage conditions, the visual characteristics of fish are not obvious, and over-reliance on underwater optical flow data leads to inaccurate segmentation results.

Method used

A fish target segmentation model in underwater robust videos based on adaptive selective optical flow is used to extract visual and motion features through the encoder, perform global quality assessment and fusion, and use DenseAspp and multi-dimensional attention modules for multi-scale feature extraction and details. Recovery,design of multi-output selective fusion methods to improve,segmentation accuracy.

Benefits of technology

It improves the accuracy and robustness of fish target segmentation, reduces the dependence on optical flow data, and enhances the model's generalization and segmentation success rate in complex underwater scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118262228B_ABST
    Figure CN118262228B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of fish target recognition, and proposes a method for segmenting fish targets in underwater robust videos based on adaptive selection of optical flow, including obtaining a fish underwater data set and extracting optical flow data; extracting features of video frames and optical flow data, and performing global quality assessment and fusion to obtain fusion features of multiple levels; extracting multi-scale features of the fusion features of the highest level, designing and embedding a multi-dimensional attention module in a coarse-to-fine decoder structure, using a rough positioning map as a guide, obtaining decoder features, and outputting a robust underwater fish segmentation model; obtaining a prediction result by fusing a multi-output selective fusion method and a robust underwater fish segmentation model; performing cross entropy loss calculation and training to obtain a fish target segmentation system; inputting a fish underwater video to be segmented into the fish target segmentation system to obtain a fish target segmentation result. The present invention can obtain a more accurate segmentation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of fish target recognition, and specifically discloses a fish target segmentation model and method in underwater robust video based on adaptive selection of optical flow.

[0002] Background

[0003] Fish is an important marine resource, providing about 20% of daily high-quality animal protein for more than 3.3 billion people worldwide. In addition, people's consumption demand for fish and other seafood is still growing, and fishery resource surveys have naturally become a focus of attention. In order to effectively carry out fishery resource surveys and control the impact of production on the environment, it is necessary to monitor the growth of fish populations in natural habitats and farmed fish. In the early days, the acquisition of fish contour length information usually involved catching fish first and then measuring them, which may cause damage to the fish body and consume a lot of manpower and time costs. With the development of computer vision technology, the automatic segmentation of underwater fish targets to obtain size contours by combining deep learning has attracted the attention of more and more relevant researchers. However, there may be many complex conditions in real underwater scenes, such as turbid water, low light, and camouflage. Therefore, it is a challenge to accurately segment fish targets in real underwater environments. In order to obtain binary masks of underwater fish targets, early related work usually used manually selected color, texture and other features or image morphology methods to help segmentation. For example, Yao et al. proposed a fish image segmentation method that combines K-means clustering segmentation algorithm with mathematical morphology to achieve the separation of fish targets from background. In order to solve the problem of poor robustness of fish target segmentation under low light conditions, Chuang et al. proposed a method using histogram back projection to ensure the accuracy of fish segmentation. However, the above work did not take into account the particularity of the underwater environment. In non-grayscale images and complex background conditions, the robustness of fish target segmentation is poor and the accuracy needs to be improved. In view of the fact that underwater fish images usually have characteristics such as color cast and blur, some studies consider enhancing or preprocessing underwater images before performing fish target segmentation. Banerjee et al. first used vertical flipping, gamma correction and other methods to enhance the image, and then applied two deep learning-based segmentation networks U-Net and PSPNet to automatically segment the head of the fish target. However, the segmentation intersection-over-union ratio of the model was only 76%, and the generalization in complex underwater environments was unknown. Similarly, Li et al. proposed a method for fish image segmentation in aquaculture environments based on a multi-feature fusion model. First, the threshold was redefined using the minimum Euclidean distance between the peaks of the original image, and the thresholded image was fused with the original image to enhance the fish target features in the underwater image. Then, a multi-scale attention module was proposed to fuse features of different scales to finally obtain the segmentation result. This type of method usually has a strong reliance on data preprocessing, and the processed data set is small in size, which has limitations and cannot be well transferred to the real marine environment. In order to improve the generalization of the model, quickly locate the target in complex scenes, and ignore the interference caused by the background, considering that the attention mechanism is relatively simple and effective, some works use the attention mechanism in underwater scenes from different dimensions.In response to the problem that general semantic segmentation methods cannot accurately segment fish objects in underwater images, Zhang et al. designed a novel dual-pooling aggregation attention, using maximum pooling and average pooling to focus on and aggregate target information from two dimensions, spatial and channel, while maintaining the characteristics of lightweight. In order to distinguish foreground underwater targets from cluttered low-contrast backgrounds, Kim proposed a parallel semantic segmentation model, which achieved good segmentation results by designing different attention and loss functions for the foreground and background respectively, and segmenting the foreground and background of complex underwater scenes at the same time.

[0004] Considering the problem that the visual features of fish are not obvious due to turbid water, low light, camouflage and other conditions in real underwater environments, some recent works have begun to consider using motion optical flow to help restore and enhance the appearance features of fish that have been degraded underwater. Saleh et al. proposed an unsupervised wild fish tracking and segmentation method. By combining optical flow and background subtraction and the pseudo-label generation method of unsupervised refinement network, a relatively accurate segmentation result was obtained when used to train a supervised segmentation deep model. Zhang et al. proposed a multi-source information-guided underwater video fish target segmentation. By designing a multiple mutual attention guidance module and a feature adaptation method, the pre-processed optical flow motion information and RGB appearance information were fused and output to obtain the final segmentation result. However, the quality of underwater optical flow often varies and is difficult to control. However, the above method directly fuses appearance information with motion information, so it is overly dependent on underwater optical flow information. When low-quality motion information flows into the network, it may cause erroneous segmentation results. In view of the above problems, it is necessary to study and design a new model and method for underwater robust video fish target segmentation based on adaptive selection optical flow to overcome the problems existing in the existing fish target style methods. Summary of the invention

[0005] The present invention aims to solve the problem that the visual features of fish targets are not obvious due to complex conditions such as turbid water and insufficient light in the marine environment, resulting in inaccurate fish target segmentation results. In addition, the existing work lacks the evaluation and screening of underwater optical flow data, and there is a limitation that the model is overly dependent on underwater motion data and the segmentation results are easily disturbed. A fish target segmentation model and method in underwater robust video based on adaptive selection of optical flow is proposed.

[0006] The present invention provides a method for segmenting fish targets in underwater robust videos based on adaptive selection of optical flow, comprising the following steps:

[0007] S1. Obtain a fish underwater data set, and extract the optical flow data corresponding to the video frames in the fish underwater data set;

[0008] S2. extracting features from the video frame and optical flow data obtained in step S1 through an encoder to obtain visual features and motion features, and performing a global quality assessment on the visual features and motion features, and fusing the visual features and motion features based on the quality assessment results to obtain fusion features at multiple levels;

[0009] S3. Perform multi-scale feature extraction on the highest-level fusion features obtained in step S2 through DenseAspp to obtain a coarse localization map. After designing and embedding a multi-dimensional attention module in the coarse-to-fine decoder structure, use the coarse localization map as a guide to gradually perform upsampling recovery from three dimensions: spatial perception, channel separation, and edge detail recovery. Use the output of the previous stage to globally and locally guide the decoder features of the next stage to obtain the decoder features and output a robust underwater fish segmentation model.

[0010] S4. Obtaining a visual prediction result, a motion prediction result and a fusion prediction result by using a multi-output selective fusion method and the robust underwater fish segmentation model obtained in step S3, and fusing the visual prediction result, the motion prediction result and the fusion prediction result to obtain a prediction result;

[0011] S5. The prediction results obtained in each decoder stage are cross-entropy loss calculated and trained with the true value through the cross-entropy loss function to obtain the fish target segmentation system;

[0012] S6. Input the underwater video of fish to be segmented into the fish target segmentation system obtained in step S5 to obtain the fish target segmentation result.

[0013] According to a model and method for fish target segmentation in underwater robust video based on adaptive selection of optical flow in some embodiments of the present application, in step S2, the encoder extracts visual features and motion features through two backbone networks with shared weights.

[0014] According to a model and method for segmenting fish targets in underwater robust videos based on adaptive selection of optical flow in some embodiments of the present application, in step S2, the visual features and motion features are spliced ​​along the channel, and the spliced ​​features are subjected to a 3×3 convolution and channel compression and separation operation, and then subjected to a sigmoid normalization to obtain a global optical flow quality evaluation score Gi, as shown in formula (1):

[0015]

[0016] Among them, σ represents the sigmoid normalization function, Split represents channel compression and separation operations, Conv represents 3×3 convolution, and Cat represents splicing operations along the channel. represents the visual features of the i-th layer, represents the motion features of the i-th layer, i∈{1,2,3,4,5},

[0017] Based on the quality assessment result, the visual features and motion features are fused to obtain five levels of fused features. The five levels of fused features all include the visual features and the motion features after assessment and correction, as shown in formula (2):

[0018]

[0019] Among them, Fi represents the fusion features of different levels, i∈{1,2,3,4,5}.

[0020] According to a model and method for fish target segmentation in underwater robust video based on adaptive selection of optical flow in some embodiments of the present application, in step S3, multi-scale feature extraction is performed on the fusion features of the fifth layer through DenseAspp to obtain a rough positioning map.

[0021] According to a model and method for segmenting fish targets in underwater robust videos based on adaptive selection of optical flow in some embodiments of the present application, in step S3, the multidimensional attention module includes spatial channel attention and reverse attention.

[0022] The reverse attention is shown in formula (3):

[0023] RA=E-σ(Cat(Max(CBAM(D i )), Avg(CBAM(D i )))) (3)

[0024] Where RA represents reverse attention, E represents the identity matrix, σ represents the sigmoid normalization function, Cat represents concatenation along the channel, Max represents the maximum pooling operation, Avg represents the average pooling operation, CBAM represents spatial channel attention, and Di represents the current layer decoder feature, which is shown in formula (4):

[0025]

[0026] Among them, DenseAspp represents DenseAspp processing, and F5 represents the fusion feature of the fifth layer.

[0027] According to a model and method for segmenting fish targets in underwater robust videos based on adaptive selection of optical flow in some embodiments of the present application, in step S4, the multi-output selective fusion method includes the following steps:

[0028] S401. Change the input of the robust underwater fish segmentation model,

[0029] The visual feature is input into the robust underwater fish segmentation model to obtain the visual prediction result, as shown in formula (5):

[0030] P r =RUSnet(RGB, RGB) (5)

[0031] Among them, P r represents the visual prediction result, RUSnet represents the robust underwater fish segmentation model, RGB represents the visual feature,

[0032] The motion feature is input into the robust underwater fish segmentation model to obtain the motion prediction result, as shown in formula (5):

[0033] P m =RUSnet (Motion, Motion) (6)

[0034] Among them, P m Indicates the motion prediction result, Motion indicates the motion feature,

[0035] The fusion feature is input into the robust underwater fish segmentation model to obtain the fusion prediction result, as shown in formula (5):

[0036] P f =RUSnet(RGB, Motion) (7)

[0037] Among them, P f represents the fusion prediction result;

[0038] S402. Compare the mean absolute errors of the visual prediction result, motion prediction result and fusion prediction result obtained in step S401, as shown in formula (8):

[0039]

[0040] Among them, P c represents candidate features, MAE represents mean absolute error;

[0041] S403. Based on the comparison result of step S402, output the prediction result, as shown in formula (9):

[0042] Output=α·P f +(1-α)·P c (9)

[0043] Among them, Output represents the prediction result, and α represents the hyperparameter of the experimental setting.

[0044] According to a model and method for segmenting fish targets in underwater robust videos based on adaptive selection of optical flow in some embodiments of the present application, the value of the hyperparameter α set in the experiment is 0.9.

[0045] According to a model and method for segmenting fish targets in underwater robust videos based on adaptive selection of optical flow in some embodiments of the present application, in step S5, the cross entropy loss function is as shown in formula (10):

[0046]

[0047] Among them, L total represents the cross entropy loss function, UP represents bilinear interpolation upsampling, represents the prediction results of different decoder stages, i∈{1, 2, 3, 4, 5}, G t represents the true value, represents the prediction result obtained in the fifth stage of the decoder, L bce represents the standard binary cross entropy loss function, as shown in formula (11):

[0048]

[0049] Among them, (x, y) represents the position coordinates of the pixel point in the video frame in the dataset.

[0050] The present invention proposes a method for segmenting fish targets in underwater robust videos based on adaptively selected optical flow, which rethinks the contribution of optical flow to underwater fish segmentation, effectively solves the limitation of existing underwater segmentation models relying on optical flow, and can obtain more accurate fish target segmentation results; a global optical flow quality evaluation is proposed, so that the present invention will not be overly dependent on optical flow data, and low-quality optical flow data will not flow into the network, thereby improving the success rate of fish target segmentation; a multi-dimensional attention module is designed and embedded in the coarse-to-fine decoder structure, inspired by the human visual perception system that first locates the target and then focuses on the details, a rough positioning map is obtained through dense pyramid pooling, which is used to capture the rough position information of the fish target, and then guided by this, the fish target features in the underwater complex scene are iteratively optimized from three perspectives of spatial perception, channel separation and edge detail recovery, so as to obtain more accurate fish target segmentation results; a multi-output selective fusion method is proposed to determine the modal information with higher credibility by comparing the mean absolute errors of single visual prediction results, motion prediction results and fusion prediction results, and fuse them with the fusion prediction results to obtain the final underwater fish target segmentation results. The present invention has also achieved excellent performance in terms of model generalization and robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1A schematic diagram of a flow chart of a method for segmenting fish targets in underwater robust videos based on adaptive selection of optical flow according to the present invention;

[0052] Figure 2 This is an example of a complex underwater scene in Example 2 of the present invention, which includes turbid water, low light, small target, and camouflaged target scenes from left to right;

[0053] Figure 3 The underwater motion scene data of different qualities in Example 2 of the present invention, from left to right are respectively video frames, optical flow data and segmentation true values;

[0054] Figure 4 The prediction results of different models in Example 2 of the present invention on the Deepfish-Seagrass joint dataset;

[0055] Figure 5 The prediction results of MSGNet and RUSNet on the DeepFish dataset in Example 2 of the present invention. DETAILED DESCRIPTION

[0056] The following embodiments of the present invention are described in further detail in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0057] Example 1

[0058] A robust fish target segmentation method in underwater videos based on adaptive selection of optical flow, such as Figure 1 As shown, the following steps are included:

[0059] S1. Obtain a fish underwater dataset and extract the optical flow data corresponding to the video frames in the fish underwater dataset;

[0060] S2. extracting features from the video frames and optical flow data obtained in step S1 through an encoder to obtain visual features and motion features, and performing a global quality assessment on the visual features and motion features, and fusing the visual features and motion features based on the quality assessment results to obtain fusion features at multiple levels;

[0061] By introducing flow data into complex underwater scenes, it is helpful to quickly and accurately locate underwater fish targets and reduce segmentation interference caused by blurred underwater visual features. However, underwater optical flow data does not bring positive benefits in all scenarios. When there are no fish targets in the scene or there are drastic changes in lighting, the quality of optical flow data drops sharply, eventually leading to failure in fish target segmentation. In order to avoid the impact of low-quality optical flow data on the segmentation effect, a lightweight global optical flow quality evaluation module is proposed to evaluate and correct motion features.

[0062] The encoder extracts visual features and motion features through two weight-sharing backbone networks; the visual features and motion features are spliced ​​along the channel to align the visual features and motion features for implicit interaction, which helps to capture the relative relationship between multimodal features. After a 3×3 convolution and channel compression and separation operation, the spliced ​​features are used to extract the effective information in the fused features and separate them. Finally, after a sigmoid normalization, the global optical flow quality evaluation score Gi is obtained, as shown in formula (1):

[0063]

[0064] Among them, σ represents the sigmoid normalization function, Split represents channel compression and separation operations, Conv represents 3×3 convolution, and Cat represents splicing operations along the channel. represents the visual features of the i-th layer, represents the motion features of the i-th layer, i∈{1,2,3,4,5},

[0065] Based on the quality assessment results, the visual features and motion features are fused to obtain five levels of fusion features. The five levels of fusion features include visual features and motion features after assessment and correction, as shown in formula (2):

[0066]

[0067] Among them, Fi represents the fusion features of different levels, i∈{1, 2, 3, 4, 5};

[0068] Previous RGB-D quality assessment or optical flow quality assessment methods usually pool the fused features, and then obtain a one-dimensional weight after normalization as the confidence score of the image-level optical flow data, which is used to globally scale the three-dimensional optical flow data. However, the quality of each local optical flow of a single image may also be different, and weighting the global features by one-dimensional weights may have limitations. For this reason, this embodiment does not perform image-level confidence calculations, but removes the conventional pooling layer, uses pixel-level quality assessment, and corrects the global optical flow data through two-dimensional weights to ensure that the optical flow data flowing into the network is relatively reliable.

[0069] S3. Perform multi-scale feature extraction on the highest-level fusion features obtained in step S2 through DenseAspp to obtain a coarse localization map. After designing and embedding a multi-dimensional attention module in the coarse-to-fine decoder structure, use the coarse localization map as a guide to gradually perform upsampling recovery from three dimensions: spatial perception, channel separation, and edge detail recovery. Use the output of the previous stage to globally and locally guide the decoder features of the next stage to obtain the decoder features and output a robust underwater fish segmentation model.

[0070] The traditional FPN decoder structure has achieved relatively excellent performance in processing the fusion of multi-scale features by using a multi-scale pyramid. However, for complex scenes, FPN cannot effectively use the decoder features of the previous layer to guide the iterative recovery of subsequent features. Taking into account the existence of turbid water and camouflage in underwater scenes, which leads to the lack of detail information such as edges in the upsampling recovery of features, this embodiment applies a decoder structure that recovers from coarse to fine step by step. Coarse-to-fine follows the law of human visual perception, that is, the rough position of the target is located first, and then the details are observed. This embodiment first performs a DenseAspp calculation on the highest-level fusion feature F5, which is used to obtain the position information of underwater fish targets at high-level features. Multi-scale feature extraction is performed on the fusion features of the fifth layer through DenseAspp to obtain a rough positioning map;

[0071] In order to consider both global information and local details when upsampling and restoring features, and to promote the perception of fish targets in complex underwater scenes, this embodiment designs and embeds a multi-dimensional attention module in the coarse-to-fine decoder structure. The multi-dimensional attention module includes spatial channel attention and reverse attention, which perform gradual upsampling and restoration from three dimensions: spatial perception, channel separation, and edge detail recovery. The output of the previous stage is used to guide the decoder features of the next stage globally and locally, thereby enhancing the position information and edge details of underwater fish.

[0072] The reverse attention is shown in formula (3):

[0073] RA=E-σ(Cat(Max(CBAM(D i )), Avg(CBAM(D i )))) (3)

[0074] Where RA represents reverse attention, E represents the identity matrix, σ represents the sigmoid normalization function, Cat represents concatenation along the channel, Max represents the maximum pooling operation, Avg represents the average pooling operation, CBAM represents spatial channel attention, Di represents the decoder feature of the current layer, and the decoder feature of the current layer is shown in formula (4):

[0075]

[0076] Among them, DenseAspp represents DenseAspp processing, and F5 represents the fusion feature of the fifth layer;

[0077] S4. Obtaining a visual prediction result, a motion prediction result and a fusion prediction result by using a multi-output selective fusion method and the robust underwater fish segmentation model obtained in step S3, and fusing the visual prediction result, the motion prediction result and the fusion prediction result to obtain a prediction result;

[0078] In the test phase, in order to further obtain a more accurate binary segmentation mask for underwater fish, this embodiment designs a multi-output selective fusion method. The basic starting point is that low-quality optical flow data usually contains more noise rather than effective information. In order to avoid introducing too much interference information during segmentation, the multi-output selective fusion method will be used together with the global optical flow quality evaluation module to ensure that the motion features selected during fish target segmentation are as reliable as possible. In high-quality optical flow data, the direction and degree of motion of the foreground target are more significant than the background. The manifestation in the optical flow data is that the moving fish targets often have clear, continuous, complete boundaries and are significant. Low-quality optical flow data usually contains more messy background motion such as seaweed, drastically changing lighting, or blurred fish target boundaries. In order to effectively combine high-quality optical flow of fish moving targets and avoid using low-quality motion information or introducing additional background motion interference, this embodiment not only performs optical flow quality evaluation in the feature extraction phase, but also introduces a selective fusion output method in the test output phase.

[0079] In step S4, the multi-output selective fusion method includes the following steps:

[0080] S401. Change the input of the robust underwater fish segmentation model,

[0081] The visual features are input into the robust underwater fish segmentation model to obtain the visual prediction result, as shown in formula (5):

[0082] P r =RUSnet(RGB, RGB) (5)

[0083] Among them, P r represents the visual prediction result, RUSnet represents the robust underwater fish segmentation model, RGB represents the visual feature,

[0084] The motion features are input into the robust underwater fish segmentation model to obtain the motion prediction result, as shown in formula (5):

[0085] P m=RUSnet (Motion, Motion) (6)

[0086] Among them, P m Indicates the motion prediction result, Motion indicates the motion feature,

[0087] The fusion features are input into the robust underwater fish segmentation model to obtain the fusion prediction result, as shown in formula (5):

[0088] P f =RUSnet(RGB, Motion) (7)

[0089] Among them, P f represents the fusion prediction result;

[0090] S402. Compare the mean absolute errors of the visual prediction result, motion prediction result and fusion prediction result obtained in step S401, as shown in formula (8):

[0091]

[0092] Among them, P c represents candidate features, MAE represents mean absolute error;

[0093] By comparing the visual prediction results P r , motion prediction result P m And the fusion prediction result P f The mean absolute error MAE can be used to determine which modality contributes more to the final segmentation. Specifically, if the visual prediction result P r And the fusion prediction result P f The MAE of motion prediction result P m And the fusion prediction result P f The MAE of r The prediction result and the fusion prediction result P f The prediction results of P are more similar, that is, the visual features contribute more to the final result; if the visual prediction result P r And the fusion prediction result P f The MAE of motion prediction result P m And the fusion prediction result P f The MAE of the motion prediction result P is large. m The prediction result and the fusion prediction result P fThe prediction results are more similar, that is, the motion features contribute more to the final result. Different from the target segmentation in non-underwater scenes, in underwater scenes, the targets in the video frame input are usually not significant enough, so both visual features and motion features may cause unstable interference to the final prediction results. Therefore, this embodiment is different from other methods. It does not set a manual threshold for MAE and only compares the similarity between the single modal branch and the fusion branch. Instead, it calculates the MAE of the predictions of the two single modal branches and the fusion modal branch at the same time, thereby avoiding the limitation of poor model generalization caused by manual thresholds;

[0094] S403. Based on the comparison result of step S402, output the prediction result, as shown in formula (9):

[0095] Output=α·P f +(1-α)·P c (9)

[0096] Among them, Output represents the prediction result, and α represents the hyperparameter of the experimental setting; as a preferred embodiment of this embodiment, the value of the hyperparameter α of the experimental setting can be 0.9, and the final prediction result includes the segmentation result of the fusion feature and the segmentation result of the candidate feature, which effectively improves the robustness of the model under different quality inputs;

[0097] S5. The prediction results obtained in each decoder stage are cross-entropy loss calculated and trained with the true value through the cross-entropy loss function to obtain the fish target segmentation system;

[0098] The cross entropy loss function is shown in formula (10):

[0099]

[0100] Among them, L total represents the cross entropy loss function, and UP represents bilinear interpolation upsampling, which aims to combine the prediction results of different decoder stages. With the true value G t To align the dimensions, represents the prediction results of different decoder stages, i∈{1, 2, 3, 4, 5}, G t represents the true value, represents the prediction result obtained in the fifth stage of the decoder, L bce represents the standard binary cross entropy loss function, as shown in formula (11):

[0101]

[0102] Where (x, y) represents the position coordinates of the pixel point in the video frame in the dataset;

[0103] Calculating the loss of the prediction results at each stage of the decoder can not only accurately control the learning of multi-scale information at different stages of the decoder, but also help iteratively optimize features from the perspective of spatial positioning and detail recovery more accurately;

[0104] S6. Input the underwater video of fish to be segmented into the fish target segmentation system obtained in step S5 to obtain the fish target segmentation result.

[0105] The size contour information obtained by fish target segmentation can also be applied to marine environmental protection. By monitoring the size and length of young fish, it helps to formulate reasonable fish grading, feeding and fishing strategies, and can also avoid marine pollution caused by unreasonable discharge of aquaculture pollutants such as bait and fish excrement.

[0106] Example 2

[0107] In order to verify the effectiveness of the method proposed in the present invention for segmenting fish targets in complex underwater scenes, this embodiment uses four public underwater data sets for training and verification, namely DeepFish, Seagrass, DeepFish-Seagrass joint data set and MoCA-Mask. Among them, the DeepFish data set contains about 40K underwater video fish pictures from 20 different habitats in remote coastal marine environments in tropical Australia. The video is collected using a high-definition digital camera and is divided into three subsets: counting, segmentation, and classification. The segmentation subset contains video clips of 13 different underwater environments, a total of 310 video frames, with a resolution of 1920×1080, and there are many scenes of single fish. The Seagrass data set was collected from two estuary systems in southeastern Queensland, Australia. The original data was collected by an underwater motion camera, including video clips of 18 underwater fish, a total of 4280 video frames, and the resolution of the picture is 1920×1080. Most of the video clips contain multiple fish targets. Considering that the segmentation set of the DeepFish dataset has only 310 images, in order to maximize the generalization ability of the model, this embodiment adopts the same approach as Zhang et al., and jointly trains and tests the DeepFish dataset and the Seagrass dataset, and extracts the optical flow data corresponding to the video frame, that is, the DeepFish-Seagrass joint dataset, selects 12 video clips and 3107 pictures from the joint dataset for training, selects 8 video clips and 693 pictures for verification, and selects 11 video clips and 609 pictures for testing. MoCA-Mask is a subset of the camouflage video dataset MoCA. This embodiment selects 32 underwater camouflage creature video clips from it, including underwater camouflage creatures such as devil Scorpion fish and flatfish, and a total of 1539 frames are used for testing. In the above datasets, DeepFish and Seagrass have severe brightness attenuation and turbid water, and also have complex backgrounds, such as floating dense seaweed. MoCA-Mask contains complex scenes of underwater camouflage, and these datasets are all very challenging. like Figure 2 As shown in the figure, from left to right are turbid water, low light, small target, and camouflaged target scenes. In real underwater scenes, there may be many complex conditions such as turbid water, low light, and camouflage. Therefore, it is a challenge to accurately segment fish targets in real underwater environments. The quality of underwater optical flow often varies and is difficult to control. For example, Figure 3In the figure, underwater motion scene data of different qualities are shown, including video frames, optical flow data and segmentation true values ​​from left to right. The background motion in the first row is less, the scene is relatively static, and the movement of fish targets is more significant. However, the floating background seaweed in the second row causes a large amount of non-fish target motion interference in the optical flow data. At this time, the fish motion information is easily submerged by noise.

[0108] The experiment uses GPU for accelerated training, and the environment configuration is as follows: GPU model is Geforce RTX3090, video memory size is 24GB, CPU model is Intel(R) Core(TM) i7-9700 CPU (3.00GHz), Python3.8 interpreter, Pycharm development platform with cuda version 11.3, and deep learning framework Pytorch1.11.0.

[0109] In the optical flow data preparation stage, for the DeepFish dataset and the Seagrass dataset, considering that factors such as water turbidity are relatively strong, firstly, simple pre-segmentation and label conversion processing are performed, and then the RAFT network is used for optical flow extraction. For the MoCa-Mask dataset, optical flow extraction is performed directly. All datasets are divided into training sets, validation sets, and test sets according to 6:2:2. After balancing the calculation speed and accuracy, this embodiment chooses to use MiT-b1 pre-trained on ImageNet-1K as the feature extractor of the dual-branch network. In order to facilitate model processing, the resolution of the video frames and optical flow data used for training and testing is uniformly set to 384×384, and the input data is enhanced by horizontal flipping. With the video frame and the corresponding optical flow data as input, 3000 iterations are trained, the batch size is set to 16, the adaptive moment estimation Adam is used as the optimizer, the learning rate is set to 1e-5, the learning rate remains unchanged during the training phase, and all BN layers are frozen to speed up training.

[0110] Underwater video fish target segmentation is a binary semantic segmentation task. The target pixel value in the predicted result and the true value is 255, and the background pixel value is 0. Therefore, two commonly used evaluation indicators of semantic segmentation, class average pixel accuracy mPA and average intersection over union (mIoU), are used to evaluate the difference between the predicted result and the true value. mPA represents the average value of the proportion of correctly classified pixels of all classes to the predicted pixels of the class, as shown in formula (12):

[0111]

[0112] Wherein, k represents the number of categories. In this embodiment, k is 2. ii It represents the number of pixels correctly predicted as fish, i.e., true positive TP, Pij It indicates the number of fish-type pixels that are fish-type but are mistakenly predicted as background, i.e., false positive FP. i indicates the true category of the pixel, j indicates the predicted category of the pixel,

[0113] mIoU represents the average value of the ratio of the intersection and union of all category pixel prediction values, as shown in formula (13):

[0114]

[0115] Among them, P ji It represents the number of background pixels that are actually background but are mistakenly predicted as fish, i.e., false negative FN, P jj Represents the number of pixels correctly predicted as background, i.e., true negative TN.

[0116] In order to verify the effectiveness of the global optical flow quality evaluation, the coarse-to-fine decoder structure design embedded with a multi-dimensional attention module, and the multi-output selective fusion method proposed in the present invention, this embodiment designed an ablation test on the Deepfish-Seagrass joint dataset. The Baseline of this article is an ordinary two-stream network. Specifically, the encoder stage of the model is a Mit-b1 network with shared weights, which is used to extract input features of different modalities. The decoder splices the fish appearance features and motion features obtained by the encoder along the channel, and uses a convolution with a kernel size of 3*3 to obtain the final segmentation result. By adding the designed global optical flow quality evaluation FC, the coarse-to-fine decoder structure design MDA embedded with a multi-dimensional attention module, and the multi-output selective fusion method Select to the Baseline, the model fish target segmentation system RUSNet proposed in the present invention is obtained. The experimental results are shown in Table 1:

[0117] Table 1 Module ablation experiment

[0118]

[0119] The test results show that compared with the Baseline, the three proposed designs have different improvements. Among them, the coarse-to-fine decoder structure design MDA embedded with a multi-dimensional attention module has a more obvious improvement, with mPA increased by 1.25% and mIoU increased by 2.75% compared with the Baseline. In addition, mPA is higher than the complete fish target segmentation system RUSNet. This is because the Seagrass dataset used contains a large number of small targets. Due to the lack of strong target positioning ability and attention to detail information, the additional global optical flow quality evaluation FC will mistakenly identify small fish targets as backgrounds, resulting in pixel prediction errors, thereby reducing mPA. At the same time, the improvement brought by using the multi-output selective fusion method only in the test phase is the least significant. The reason is that the lack of reasonable optical flow quality evaluation and target feature recovery ability in the training phase leads to deviations in the initial prediction results. The segmentation mask before fusion is not accurate enough, so it is difficult to improve the segmentation accuracy and average intersection-over-union ratio through multi-output fusion. By combining these three key designs and methods, the fish target segmentation system RUSNet proposed in this embodiment has achieved significant improvements. Compared with the Baseline, mPA and mIoU have increased by 0.75% and 3.23% respectively.

[0120] Considering that the coarse-to-fine decoder structure design MDA embedded with a multi-dimensional attention module brings a greater improvement, in order to further study whether the order of using channel space attention and edge attention in the coarse-to-fine decoder structure design MDA embedded with a multi-dimensional attention module will affect the final prediction, and because the segmentation of underwater camouflaged fish usually relies more on edge details, this embodiment is based on the underwater camouflaged biological video dataset MoCA_Mask, and the coarse-to-fine decoder structure design MDA embedded with a multi-dimensional attention module conducts a deeper ablation test. As mentioned above, following the law of human visual perception, this embodiment segments fish targets according to the steps of first positioning and then identifying, that is, first using channel space perception attention to capture the rough position of the target, and then using reverse edge attention to iteratively restore the edge details of the blurred target, while the control group experiment uses the opposite order. When edge correction is performed first and then spatial perception restoration is performed, due to the lack of global position information guidance, the prediction results often focus too much on the edges and ignore the spatial consistency within the target, resulting in holes in the prediction results of fish targets. The attention heat map visualization results of the coarse-to-fine decoder structure design MDA that reversely embeds the multi-dimensional attention module also show that there is a serious uneven attention inside the fish target at this time. This result is basically consistent with the conclusions of other saliency detection work combined with reverse edge attention, which further verifies the rationality of the design proposed in this embodiment.

[0121] In order to verify the effectiveness of the proposed method, it is further compared with the advanced video target segmentation models AMC-Net, FSNet and underwater fish segmentation models MSGNet and WaterSNet on the public complex underwater video dataset Deepfish-Seagrass joint dataset. The experiment conducted in this embodiment does not use any post-processing such as CRF to make a fair comparison. The segmentation set of the DeepFish dataset has only 310 pictures. In order to improve the generalization of the model and avoid overfitting, it follows the training principles consistent with the underwater video fish segmentation SOTA model MSGNet and is jointly trained with another complex underwater video public dataset Seagrass. The specific results are shown in Table 2:

[0122] Table 2 Comparative test results with advanced segmentation models

[0123]

[0124] FSNet effectively promotes the information interaction and enhancement of the RGB branch and the optical flow branch in the video target segmentation model by using bidirectional cross attention. However, during feature extraction, the optical flow information is not evaluated and screened, but the optical flow branch is simply reused, resulting in unsatisfactory segmentation results in the case of low-quality optical flow. WaterSNet effectively improves the segmentation accuracy of non-salient and camouflaged fish through random style adaptation (RSA) and multi-scale fusion of input images. However, when setting the group size of RSA, the batch size is directly used as the number of mixed images in the group, resulting in a significant decrease in the robustness of the model under hardware constraints. AMC-Net jointly evaluates cross-modal features by calculating a set of co-attentions, and combines the channel space attention mechanism in both the encoder and decoder stages. The average pixel angle and average intersection are significantly improved compared with FSNet, but as analyzed above, using a one-dimensional scalar as the global quality evaluation score has limitations in optical flow quality evaluation when the regional optical flow quality is inconsistent. Finally, MSGNet achieved the closest mPA and mIoU to the proposed model by utilizing the multi-attention interaction mechanism based on self-attention and feature adaptive fusion. However, its dependence on optical flow is too strong, resulting in a significant impact of the quality of the input optical flow on the segmentation result. There is room for improvement in segmentation robustness, such as Figure 4 As shown in the figure, the experimental results are visualized. In a real underwater environment with illumination changes and complex backgrounds, compared with other advanced models, Frame represents the input video frame and GT is the true value. The prediction results of RUSNet have more complete targets and more accurate edge detail information. The fish target segmentation system RUSNet improves the robustness of the model by performing global quality assessment on the input motion information and multi-output selective fusion to avoid introducing low-quality interference features. At the same time, the coarse-to-fine decoder structure embedded with a multi-dimensional attention module ensures that the prediction results have relatively complete targets and rich edge details. Compared with the advanced underwater fish segmentation model MSGNet, the mPA and mIoU of the present invention are improved by 0.72% and 1.21% respectively. Compared with the advanced video target segmentation model AMC-Net, the mPA and mIoU of the present invention are improved by 1.06% and 2.51% respectively. It shows the effectiveness of the present invention in segmenting fish targets in complex underwater scenes.

[0125] In order to more fairly verify the robustness of the fish target segmentation system RUSNet, the DeepFish dataset was selected separately for experiments. The optical flow of this dataset has not undergone any preprocessing, so it is easily disturbed by changes in lighting, resulting in lower quality. In the official segmentation strategy, the DeepFish segmentation dataset has a total of 620 images, and the image labels are divided into background and fish targets. Among them, 310 images are used for training, 124 images are used for verification, and 186 images are used for testing. This embodiment uses this method to train and test the fish target segmentation system RUSNet, and compares it with the advanced underwater fish target segmentation model. The experimental results are shown in Table 3:

[0126] Table 3 Comparison with other advanced underwater segmentation models on the DeepFish dataset

[0127]

[0128] Compared with the advanced underwater fish segmentation model MSGNet, the Background IoU of the present invention is improved by 0.13%, the Fish IoU (%) is improved by 10.03%, and the mIoU is improved by 5.08%. Compared with the advanced video target segmentation model AMC-Net, the Background IoU of the present invention is improved by 0.17%, the Fish IoU (%) is improved by 4.62%, and the mIoU is improved by 2.39%, which shows the effectiveness of the present invention in segmenting fish targets in complex underwater scenes. The fish target segmentation system RUSNet proposed in the present invention is more competitive than the current SOTA model RMP-Net, especially in terms of the intersection-over-union ratio of fish targets. Therefore, the fish target segmentation system RUSNet focuses more on learning the semantic features of fish, can segment short-term static targets, and has a certain robustness to interference information such as background motion. Figure 5 As shown in the figure, the prediction results of MSGNet and RUSNet on the DeepFish dataset, from left to right are video frames, optical flow data, true values, MSGNet prediction results, and RUSNet prediction results. Figure 5 There are two fish targets of different scales in the scene in the first row. However, since the small target on the left remains stationary for a period of time, the optical flow data does not detect the movement of the target. The advanced underwater multimodal fish segmentation model MSGNet has a strong dependence on the input optical flow, which leads to the neglect of the information of the RGB video frame and ultimately leads to missed detection. The fish target segmentation system RUSNet proposed in the present invention reduces the dependence on the input optical flow through global optical flow quality evaluation and iterative recovery from coarse to fine, and has a certain robustness for the segmentation of short-term stationary targets. Figure 5The second row is the last frame of the video clip. Due to the drastic scene changes, the optical flow data presents an irregular interference state. The blurred video frames and the interference optical flow input make MSGNet unable to segment the effective target. In contrast, since the fish target segmentation system RUSNet does not pay too much attention to the underwater optical flow information, it can predict the underwater fish targets relatively accurately. Figure 5 The last row is a scene without a target. In this case, the optical flow is the change in illumination in the background environment, and MSGNet will segment part of the background as a target.

[0129] In real marine environments, there are usually complex conditions such as turbid water and cluttered backgrounds. It is difficult to locate and segment fish targets only through the visual information of video frames. In some special environments such as underwater and camouflage, the combination of optical flow, RGB-D, RGB-T and other information can more effectively complete the visual scene understanding task. However, the quality of optical flow introduced in real underwater scenes varies, and it cannot be guaranteed that it can always bring positive benefits. Therefore, it is necessary to evaluate the quality of multi-source input information. For the quality evaluation of additional information such as optical flow, it is usually divided into three categories according to how much information flows into the network. The first is learnable soft weights. Through specific quality evaluation modules, such as edge information learning, the confidence or common attention score of multi-source information is obtained, so as to control the proportion of multi-source information flowing into the network. This type of method usually has a small computational overhead, but the confidence learning process is not stable enough and is easily affected by model training and data set distribution, resulting in unreliable evaluation results. The second type is to generate additional new information to flow into the network through information alignment and correction. This type of method is sufficient in theoretical analysis, but the process is cumbersome when implemented, and manual features may be introduced, resulting in certain limitations. The last method is information selection based on hard gating, which selects or discards all multi-source information through a 0-1 gate. This type of method usually requires manually selecting a threshold for hard gating, resulting in insufficient generalization. Compared with the above three methods, the global optical flow quality evaluation proposed in the present invention realizes the alignment of cross-modal features through simple channel splicing and separation, and the computational cost is relatively small, which can meet the lightweight requirements. At the same time, this embodiment does not use pooling operations to obtain a one-dimensional scalar to measure the quality of optical flow, but uses pixel-level normalization, which fully considers the global characteristics of optical flow motion information and avoids uncontrollable correction deviations. In addition, in visual tasks that require high edge details such as camouflage, different reverse attentions are usually designed to focus on the edges of the target. Reverse attention is a lightweight attention mechanism that effectively guides the network to learn hard pixels in difficult edge areas through simple inversion and subtraction operations. The underwater data used in this embodiment also has camouflage and other difficult scenes. Following the process of humans capturing hidden targets, this embodiment first uses DenseASPP and CBAM channel spatial attention to locate the blurred and camouflaged fish targets underwater, and then combines the reverse attention RA to capture the edge details of the target, and proposes a coarse-to-fine decoder structure design embedded with a multi-dimensional attention module. In an overall attention module, the target features of complex underwater scenes are iteratively optimized from three perspectives: spatial positioning, channel recovery, and edge refinement, and the underwater fish targets are finally effectively segmented. The experimental results on public datasets show that the accuracy and robustness of underwater video fish segmentation can be effectively improved by performing quality evaluation of the input optical flow and multi-dimensional feature recovery.

[0130] In terms of visual perception tasks based on deep learning, Meta AI announced a larger and more powerful segmentation model SAM in April 2023. Through the debugging of a large amount of data and prompt engineering, it has promoted the further development of computer vision tasks and inspired a large number of researchers to think about how to achieve an open and unified visual model, that is, to achieve the learning of open scene visual perception or open tasks through a unified structural paradigm or engineering. This is not only a problem that the academic community is thinking about, but also a pain point that needs to be solved urgently in marine fishery resource monitoring. For example, in a real marine environment, how to design a unified visual model that can simultaneously segment static fish, moving fish, and even automatically identify scenes without fish targets. Some of the latest work has been attempted, but considering the environmental particularity of underwater operations and the limitations of hardware conditions, there is still room for improvement. To this end, this embodiment has also made a preliminary attempt. In terms of model design, by separating the codec, a low-coupling model structure is designed to facilitate subsequent expansion and debugging. In order to verify the effectiveness of the model proposed in this embodiment in segmenting fish targets in static and complex underwater scenes, video frames are used as the input of the second branch instead of optical flow data. However, the experimental results show that although the rough position of the fish target can be located, the recovery of details is still not ideal.

[0131] In view of the fact that the fish video target segmentation model in the previous complex underwater environment is highly dependent on the motion optical flow, which makes the segmentation result susceptible to the interference of low-quality motion information, this embodiment proposes a robust underwater fish target segmentation method that adaptively screens and fuses the input optical flow information by rethinking the contribution of optical flow in the underwater fish segmentation task. First, a global optical flow quality evaluation is designed to evaluate and correct the input optical flow information. Secondly, by embedding the proposed multi-dimensional attention module into the coarse-to-fine decoder structure, the features are guided and iterated step by step from the three dimensions of spatial perception, channel separation and edge detail recovery, and the spatial position and edge details are fully restored. Finally, a multi-output selective fusion method is proposed in the test phase. By comparing the mean absolute error MAE between the prediction results of the single modal branch and the cross-modal branch, it is confirmed which modal information contributes more to the final segmentation, and finally the prediction fusion output is performed. The experimental results on multiple public data sets show that the method proposed in this embodiment has high accuracy and robustness in the segmentation of complex underwater scenes, and can provide key information for the subsequent sustainable development of marine fishery resources.

[0132] The embodiments of the present invention are given for the purpose of illustration and description, and are not intended to be exhaustive or to limit the invention to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. A method for fish target segmentation in underwater robust video based on adaptive selection of optical flow, characterized in that: The steps include: S1. Obtain a fish underwater data set, and extract the optical flow data corresponding to the video frames in the fish underwater data set; S2. extracting features from the video frame and optical flow data obtained in step S1 through an encoder to obtain visual features and motion features, and performing a global quality assessment on the visual features and motion features, and fusing the visual features and motion features based on the quality assessment results to obtain fusion features at multiple levels; S3. Perform multi-scale feature extraction on the highest-level fusion features obtained in step S2 through DenseAspp to obtain a coarse localization map. After designing and embedding a multi-dimensional attention module in the coarse-to-fine decoder structure, use the coarse localization map as a guide to gradually perform upsampling recovery from three dimensions: spatial perception, channel separation, and edge detail recovery. Use the output of the previous stage to globally and locally guide the decoder features of the next stage to obtain the decoder features and output a robust underwater fish segmentation model. S4. Obtaining a visual prediction result, a motion prediction result and a fusion prediction result by using a multi-output selective fusion method and the robust underwater fish segmentation model obtained in step S3, and fusing the visual prediction result, the motion prediction result and the fusion prediction result to obtain a prediction result; S5. The prediction results obtained in each decoder stage are cross-entropy loss calculated and trained with the true value through the cross-entropy loss function to obtain the fish target segmentation system; S6. Inputting the fish underwater video to be segmented into the fish target segmentation system obtained in step S5 to obtain the fish target segmentation result; In step S4, the multi-output selective fusion method comprises the following steps: S401. Change the input of the robust underwater fish segmentation model, The visual feature is input into the robust underwater fish segmentation model to obtain the visual prediction result, as shown in formula (1): P r =RUSnet(RGB、RGB) (1) Among them, P r represents the visual prediction result, RUSnet represents the robust underwater fish segmentation model, RGB represents the visual feature, The motion feature is input into the robust underwater fish segmentation model to obtain the motion prediction result, as shown in formula (2): P m =RUSnet(Motion、Motion) (2) Among them, P m Indicates the motion prediction result, Motion indicates the motion feature, The fusion feature is input into the robust underwater fish segmentation model to obtain the fusion prediction result, as shown in formula (3): P f = RUSnet(RGB, Motion) (3) Where P f represents the fusion prediction result; S402. Compare the mean absolute errors of the visual prediction result, motion prediction result and fusion prediction result obtained in step S401, as shown in formula (4): Among them, P c represents candidate features, MAE represents mean absolute error; S403. Based on the comparison result of step S402, output the prediction result, as shown in formula (5): Output=α·P f +(1-a)·P c (5) Among them, Output represents the prediction result, and α represents the hyperparameter of the experimental setting.

2. The method for fish target segmentation in underwater robust video based on adaptive selection optical flow according to claim 1, characterized in that: In step S2, the encoder extracts visual features and motion features through two weight-sharing backbone networks.

3. The method for fish target segmentation in underwater robust video based on adaptive selection optical flow according to claim 1, characterized in that: In step S2, the visual features and motion features are spliced ​​along the channel, and the spliced ​​features are subjected to a 3×3 convolution and channel compression and separation operation, and then subjected to a sigmoid normalization to obtain a global optical flow quality evaluation score Gi, as shown in formula (6): Among them, σ represents the sigmoid normalization function, Split represents channel compression and separation operations, Conv represents 3×3 convolution, and Cat represents splicing operations along the channel. represents the visual features of the i-th layer, represents the motion features of the i-th layer, i∈{1,2,3,4,5}, Based on the quality assessment result, the visual features and motion features are fused to obtain five levels of fused features. The five levels of fused features all include the visual features and the motion features after assessment and correction, as shown in formula (7): Among them, Fi represents the fusion features of different levels, i∈{1,2,3,4,5}.

4. The method for fish target segmentation in underwater robust video based on adaptive selection optical flow according to claim 3, characterized in that: In step S3, multi-scale feature extraction is performed on the fusion features of the fifth layer through DenseAspp to obtain a rough positioning map.

5. The method for fish target segmentation in underwater robust video based on adaptive selection optical flow according to claim 4, characterized in that: In step S3, the multidimensional attention module includes spatial channel attention and reverse attention. The reverse attention is shown in formula (8): RA=E-σ(Cat(Max(CBAM(D i )),Avg(CBAM(D i )))) (8) Where RA represents reverse attention, E represents the identity matrix, σ represents the sigmoid normalization function, Cat represents concatenation along the channel, Max represents the maximum pooling operation, Avg represents the average pooling operation, CBAM represents spatial channel attention, and Di represents the current layer decoder feature, which is shown in formula (9): Among them, DenseAspp represents DenseAspp processing, and F5 represents the fusion feature of the fifth layer.

6. The method for fish target segmentation in underwater robust video based on adaptive selection optical flow according to claim 1, characterized in that: The value of the hyperparameter α in the experiment is set to 0.

9.

7. The method for fish target segmentation in underwater robust video based on adaptive selection optical flow according to claim 1, characterized in that: In step S5, the cross entropy loss function is as shown in formula (10): Among them, L total represents the cross entropy loss function, UP represents bilinear interpolation upsampling, represents the prediction results of different decoder stages, i∈{1,2,3,4,5}, G t represents the true value, represents the prediction result obtained in the fifth stage of the decoder, L bce represents the standard binary cross entropy loss function, as shown in formula (11): Among them, (x, y) represents the position coordinates of the pixel point in the video frame in the dataset.