Moving target segmentation method, system, device and medium based on deep learning

Through the deep learning method, the feature pyramid and deep feature fusion are used to improve the accuracy of moving target segmentation, solve the problems of high computational complexity and high hardware configuration requirements in the existing technology, and achieve more efficient moving target segmentation.

CN118397038BActive Publication Date: 2024-09-03坤维运动科技(上海)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410813628.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-03
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

The existing technology has high computational complexity in moving target segmentation, is difficult to handle complex and changeable scenes, and has high hardware configuration requirements, resulting in low accuracy of moving target segmentation and difficulty in meeting the needs of the general public.

Method used

A method based on deep learning is used to extract the features of video frames through a feature extraction network model, build a feature pyramid to estimate optical flow, combine deep features for feature fusion, and use a segmentation head for moving target segmentation to improve accuracy.

Benefits of technology

It improves the accuracy of moving target segmentation, reduces the requirements for hardware configuration, reduces the dependence on proprietary data sets, and enhances the robustness and generalization of the method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397038B
    Figure CN118397038B
Patent Text Reader

Abstract

The present application discloses a method, system, device and medium for segmenting moving targets based on deep learning. The method extracts features from a preprocessed first input image and a second input image by using a feature extraction network model, and uses the features output by several network layers in the feature extraction network model as a feature vector set to obtain a first feature vector set and a second feature vector set; constructs a first feature pyramid and a second feature pyramid, and estimates optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result; performs multi-scale deep-level feature extraction on the feature vector last extracted from the second feature vector set to obtain a deep-level feature vector set; performs feature fusion of different scales on the deep-level feature vector set and the optical flow result to obtain multiple fused features; and uses a segmentation head to segment moving targets based on the multiple fused features to obtain a moving target segmentation result. The present application can improve the accuracy of moving target segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, system, device and medium for segmenting a moving target based on deep learning. Background Art

[0002] Traditional moving object segmentation methods mainly classify static pixels and moving pixels based on the motion information of pixels or feature points in the image, such as continuous frame difference method, background difference method and optical flow method. Traditional methods work well in some simple scenes, but still have limitations such as high computational complexity and difficulty in handling complex and changing scenes.

[0003] With the continuous development of deep neural networks, algorithms based on deep learning have been widely used in the field of computer vision and have achieved excellent results. The introduction of the fully convolutional neural network in 2015 solved the problem of image semantic segmentation at the pixel level, and video target segmentation has also entered the era of deep learning. Compared with ordinary image segmentation, the core of moving target segmentation lies in the timing module: its task is to find the pixels corresponding to the target of interest in each continuous frame of the video, so the model combining static image segmentation and motion information has become the mainstream research direction.

[0004] Based on static image segmentation, it is necessary to use neural networks to train large data sets to learn features, select a method to learn motion characteristics, and improve the final accuracy through iteration, post-processing, etc., so it is heavily dependent on proprietary data sets. Although the methods based on radar or laser point clouds can obtain more accurate motion information, they have higher requirements for hardware configuration. If the hardware configuration accuracy is not high, the accuracy of moving target segmentation is not high, and the hardware configuration is difficult to meet the needs of the general public. Therefore, the accuracy of moving target segmentation in most related technologies is relatively low. Summary of the invention

[0005] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a moving target segmentation method, system, device and medium based on deep learning, which can improve the accuracy of moving target segmentation.

[0006] In a first aspect, an embodiment of the present application provides a moving target segmentation method based on deep learning, and the moving target segmentation method based on deep learning includes:

[0007] Acquire a moving target video, and collect video frames in the moving target video; use two adjacent frames as a first input picture and a second input picture, and preprocess the first input picture and the second input picture;

[0008] A feature extraction network model is used to extract features from the preprocessed first input image and the second input image, and features output by several network layers in the feature extraction network model are used as feature vector sets to obtain a first feature vector set corresponding to the first input image and a second feature vector set corresponding to the second input image;

[0009] Based on the first feature vector set and the second feature vector set, construct a first feature pyramid and a second feature pyramid, and estimate optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result;

[0010] Perform multi-scale deep-level feature extraction on the feature vector last extracted from the second feature vector set to obtain a deep-level feature vector set;

[0011] Performing feature fusion of different scales on the deep feature vector set and the optical flow result to obtain multiple fused features;

[0012] According to the multiple fusion features, a segmentation head is used to perform moving target segmentation to obtain a moving target segmentation result.

[0013] Compared with the prior art, the first aspect of the present application has the following beneficial effects:

[0014] The method constructs a first feature pyramid and a second feature pyramid based on a first feature vector set and a second feature vector set, and estimates optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result. The optical flow field requires some information such as color and texture contained in shallow features, so only a relatively shallow feature pyramid needs to be constructed, and no deep feature extraction is required. The accurate optical flow value can be estimated, thereby providing a good data basis for the later target segmentation. The feature vector finally extracted from the second feature vector set is subjected to multi-scale deep feature extraction, and then the deep feature vector set and the optical flow result are subjected to feature fusion of different scales. When performing moving target segmentation, it is necessary to find the part of the motion change (i.e., the optical flow result), and it is also necessary to perform target segmentation on the image of the next frame. The multi-scale fusion with the extracted deep features is performed in order to accurately segment the moving target. Finally, according to multiple fused features, a segmentation head is used to perform moving target segmentation to obtain a moving target segmentation result. By adopting the fusion features of deep features and optical flow field to perform moving target segmentation, the accuracy of moving target segmentation can be improved.

[0015] According to some embodiments of the present application, constructing a first feature pyramid and a second feature pyramid based on the first feature vector set and the second feature vector set, and determining an optical flow result according to the first feature pyramid and the second feature pyramid, includes:

[0016] Combining the first feature vector set and the first input image into a first feature pyramid;

[0017] combining the second feature vector set and the second input picture into a second feature pyramid;

[0018] Traversing the first feature pyramid and the second feature pyramid to perform correlation matching to obtain a matching cost between two feature vectors;

[0019] Adaptively modulate and filter the abnormal value of the matching cost to obtain a modulated optical flow field;

[0020] Calculate the confidence map of the optical flow in the modulated optical flow field;

[0021] In the modulated optical flow field, replacing the inaccurate optical flow with the accurate optical flow according to the confidence map to obtain an optimized optical flow field;

[0022] The optimized optical flow field is regularized to obtain an optical flow result.

[0023] According to some embodiments of the present application, the deep feature vector set is fused with the optical flow result at different scales to obtain multiple fused features, including:

[0024] Downsampling the optical flow result to the same scale as each feature vector in the deep feature vector set;

[0025] Add each optical flow result and feature vector of the same scale in the channel dimension to obtain the addition results of multiple channel dimensions;

[0026] Inputting the sum of each channel dimension into a channel attention module and performing residual connection to obtain a plurality of first output results;

[0027] Input each of the first output results into a spatial attention module and perform residual connection to obtain multiple second output results;

[0028] Performing weighted summation on each of the second output results and the corresponding channel dimension addition result to obtain a plurality of weighted features;

[0029] Upsample the weight features of the next deep layer to the same scale as the weight features of the current layer to obtain multiple upsampled weight features;

[0030] Perform convolution and activation operations on each of the upsampled weight features to obtain multiple weighting coefficients;

[0031] Each of the weighting coefficients is multiplied pixel by pixel with the weight feature of the current layer to obtain multiple fusion features.

[0032] According to some embodiments of the present application, each of the channel dimension addition results is input into the channel attention module and residually connected in the following manner to obtain multiple first output results:

[0033]

[0034]

[0035] in, represents average pooling, represents the maximum pooling, represents a multilayer perceptron, Represents the channel dimension addition result, represents the sigmoid activation function, represents the channel attention module, represents element-wise multiplication, Indicates the first output result.

[0036] According to some embodiments of the present application, each of the first output results is input into a spatial attention module and residually connected in the following manner to obtain multiple second output results:

[0037]

[0038]

[0039] in, represents average pooling, represents the maximum pooling, Indicates the filter size is The convolution operation, represents the sigmoid activation function, Represents the first output result, represents the spatial attention module, represents element-wise multiplication, Indicates the second output result.

[0040] According to some embodiments of the present application, the upsampled weight feature is subjected to convolution and activation operations to obtain a weight coefficient in the following manner:

[0041]

[0042] in, represents the weight feature after sampling, represents the activation function, represents the convolution operation, represents the sigmoid activation function, represents batch normalization, Represents the weighting coefficient.

[0043] According to some embodiments of the present application, the segmentation head is used to perform moving target segmentation according to the multiple fusion features to obtain a moving target segmentation result, including:

[0044] Inputting the multiple fusion features into the prototype mask branch to obtain multiple prototype masks output by the prototype mask branch;

[0045] Input the multiple fused features into the three sub-branches of classification, regression and segmentation in the prototype mask confidence branch respectively;

[0046] The three sub-branches respectively extract information of the multiple fused features through convolution to generate multiple anchor frames with equal areas;

[0047] The classification sub-branch is used to predict the classification confidence of the anchor box, the regression sub-branch is used to predict the regression box coefficient of the anchor box, and the segmentation sub-branch is used to predict the confidence of multiple prototype masks;

[0048] Using a non-maximum suppression algorithm to filter the anchor box according to the classification confidence, the regression box coefficient and the confidence, to obtain a filtered anchor box;

[0049] Linearly combining the prototype mask confidence and the prototype mask corresponding to the filtered anchor frame to obtain a combination result;

[0050] The combination result is activated by a nonlinear function to obtain a moving target segmentation result.

[0051] In a second aspect, an embodiment of the present application further provides a moving target segmentation system based on deep learning, and the moving target segmentation system based on deep learning includes:

[0052] A data processing unit, configured to obtain a moving target video and collect video frames in the moving target video; use two adjacent frames as a first input picture and a second input picture, and preprocess the first input picture and the second input picture;

[0053] A first extraction unit is used to extract features from the preprocessed first input image and the second input image using a feature extraction network model, and use the features output by several network layers in the feature extraction network model as a feature vector set to obtain a first feature vector set corresponding to the first input image and a second feature vector set corresponding to the second input image;

[0054] an optical flow estimation unit, configured to construct a first feature pyramid and a second feature pyramid based on the first feature vector set and the second feature vector set, and estimate the optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result;

[0055] A second extraction unit, configured to perform multi-scale deep-level feature extraction on the feature vector last extracted from the second feature vector set to obtain a deep-level feature vector set;

[0056] A feature fusion unit, used to fuse the deep feature vector set with the optical flow result at different scales to obtain multiple fused features;

[0057] The moving target segmentation unit is used to perform moving target segmentation using a segmentation head according to the multiple fusion features to obtain a moving target segmentation result.

[0058] In the third aspect, an embodiment of the present application also provides a motion target segmentation device based on deep learning, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute a motion target segmentation method based on deep learning as described above.

[0059] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a motion target segmentation method based on deep learning as described above.

[0060] It can be understood that the beneficial effects of the second to fourth aspects compared with the related art are the same as the beneficial effects of the first aspect compared with the related art. Please refer to the relevant description in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0062] Figure 1 It is a flowchart of a method for segmenting a moving target based on deep learning according to an embodiment of the present application;

[0063] Figure 2 is an overall schematic diagram of a moving target segmentation method based on deep learning according to another embodiment of the present application;

[0064] Figure 3 is a structural diagram of a feature extraction module according to an embodiment of the present application;

[0065] Figure 4 is a schematic diagram of an optical flow estimation method according to an embodiment of the present application;

[0066] Figure 5 It is a schematic diagram of the FPN multi-scale feature fusion structure of an embodiment of the present application;

[0067] Figure 6 This is a schematic diagram of a method for fusing features based on an attention mechanism according to an embodiment of the present application;

[0068] Figure 7 is a schematic diagram of a segmentation method according to an embodiment of the present application;

[0069] Figure 8 It is a structural schematic diagram of a moving target segmentation system based on deep learning according to an embodiment of the present application;

[0070] Fig. 9 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0071] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0072] In the description of this application, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0073] It should also be understood that the references to "one embodiment" or "some embodiments" described in the specification of the embodiments of the present application mean that one or more embodiments of the embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0074] In the description of the present application, it should be understood that the descriptions involving orientation, such as the orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0075] In the description of this application, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above terms in this application based on the specific content of the technical solution.

[0076] First, some nouns involved in this application are analyzed:

[0077] Upsampling: refers to increasing the sampling rate or resolution of a signal or image, thereby making it larger. It increases the number of sample points by interpolating or filling in new data points.

[0078] Downsampling: refers to reducing the sampling rate or resolution of a signal or image, thereby making it smaller. It reduces the number of sample points by skipping or merging data points.

[0079] Multilayer Perceptron (MLP): is a feed-forward artificial neural network model that maps multiple input data sets to a single output data set.

[0080] Residual connection: A type of skip connection that adds input to the middle layer or output of the network. It can solve the vanishing gradient problem in neural networks, and it can also make it easier for gradients to flow through very deep neural networks.

[0081] Channel attention module: used to capture the correlation between different channels.

[0082] Spatial attention module: used to capture important information at different locations in the image.

[0083] In the description of this application, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above terms in this application based on the specific content of the technical solution.

[0084] Since it is based on static image segmentation, it is necessary to use neural networks to train large data sets to learn features, select a method to learn motion characteristics, and improve the final accuracy through iteration, post-processing, etc., so it relies heavily on proprietary data sets. Although the methods based on radar or laser point clouds can obtain more accurate motion information, they have higher requirements for hardware configuration. If the hardware configuration accuracy is not high, the accuracy of moving target segmentation is not high, and the hardware configuration is difficult to meet the needs of the general public. Therefore, the accuracy of moving target segmentation in most related technologies is relatively low.

[0085] To solve the above problems, the present application constructs a first feature pyramid and a second feature pyramid based on a first feature vector set and a second feature vector set, and estimates the optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result. The optical flow field requires some color, texture and other information contained in shallow features. Therefore, only a relatively shallow feature pyramid needs to be constructed, and no deep feature extraction is required. The accurate optical flow value can be estimated, thereby providing a good data basis for later target segmentation; the feature vector finally extracted from the second feature vector set is subjected to multi-scale deep feature extraction, and then the deep feature vector set and the optical flow result are subjected to feature fusion of different scales. When performing moving target segmentation, it is necessary to find the part of the motion change (i.e., the optical flow result), and it is also necessary to perform target segmentation on the picture of the next frame. The purpose of multi-scale fusion with the extracted deep features is to accurately segment the moving target; finally, according to multiple fused features, a segmentation head is used to segment the moving target to obtain a moving target segmentation result. By using the fusion features of the deep features and the optical flow field to segment the moving target, the accuracy of the moving target segmentation can be improved.

[0086] Reference Figure 1 The embodiment of the present application provides a moving target segmentation method based on deep learning. The moving target segmentation method based on deep learning includes but is not limited to steps S100 to S600, wherein:

[0087] Step S100: acquiring a moving target video, and collecting video frames in the moving target video; taking two adjacent frames as a first input picture and a second input picture, and preprocessing the first input picture and the second input picture;

[0088] Step S200: extract features from the preprocessed first input image and the second input image using a feature extraction network model, and use features output by several network layers in the feature extraction network model as a feature vector set to obtain a first feature vector set corresponding to the first input image and a second feature vector set corresponding to the second input image;

[0089] Step S300: constructing a first feature pyramid and a second feature pyramid based on the first feature vector set and the second feature vector set, and estimating optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result;

[0090] Step S400, performing multi-scale deep-level feature extraction on the feature vector last extracted from the second feature vector set to obtain a deep-level feature vector set;

[0091] Step S500, fusing the deep feature vector set with the optical flow result at different scales to obtain multiple fused features;

[0092] Step S600: According to multiple fusion features, a segmentation head is used to segment the moving target to obtain a moving target segmentation result.

[0093] In this embodiment, by constructing a first feature pyramid and a second feature pyramid based on the first feature vector set and the second feature vector set, and estimating the optical flow based on the first feature pyramid and the second feature pyramid, an optical flow result is obtained. The optical flow field requires some information such as color and texture contained in shallow features. Therefore, only a relatively shallow feature pyramid needs to be constructed, and no deep feature extraction is required. The accurate optical flow value can be estimated, thereby providing a good data basis for later target segmentation; the feature vector finally extracted from the second feature vector set is subjected to multi-scale deep feature extraction, and then the deep feature vector set and the optical flow result are subjected to feature fusion of different scales. When performing moving target segmentation, it is necessary to find the part of the motion change (i.e., the optical flow result), and it is also necessary to perform target segmentation on the image of the next frame. The multi-scale fusion with the extracted deep features is performed in order to accurately segment the moving target; finally, according to multiple fused features, a segmentation head is used to perform moving target segmentation to obtain a moving target segmentation result. By using the fusion features of the deep features and the optical flow field to perform moving target segmentation, the accuracy of moving target segmentation can be improved.

[0094] It should be noted that the feature extraction network model of this embodiment can adopt the DarkNet53 network model with weight sharing, and can also be changed according to actual conditions, which is not specifically limited in this embodiment.

[0095] In some embodiments, based on the first feature vector set and the second feature vector set, constructing a first feature pyramid and a second feature pyramid, and determining an optical flow result according to the first feature pyramid and the second feature pyramid, includes:

[0096] Combining the first feature vector set and the first input image into a first feature pyramid;

[0097] combining the second feature vector set and the second input image into a second feature pyramid;

[0098] Traversing the first feature pyramid and the second feature pyramid to perform correlation matching, and obtaining the matching cost between the two feature vectors;

[0099] Adaptive modulation is used to filter outliers in the matching cost volume to obtain the modulated optical flow field.

[0100] Calculate the confidence map of the optical flow in the modulated optical flow field;

[0101] In the modulated optical flow field, the accurate optical flow replaces the inaccurate optical flow according to the confidence map to obtain the optimized optical flow field;

[0102] Regularize the optimized optical flow field to obtain the optical flow result.

[0103] In this embodiment, adaptive modulation is used to filter outliers in the matching cost, and then in the modulated optical flow field, the precise optical flow replaces the inaccurate optical flow according to the confidence map to obtain an optimized optical flow field. Finally, the optimized optical flow field is regularized to obtain the optical flow result. Accurate optical flow results can be obtained, which provides a good data basis for later target segmentation.

[0104] In some embodiments, the deep feature vector set is fused with the optical flow result at different scales to obtain multiple fused features, including:

[0105] Downsample the optical flow result to the same scale as each feature vector in the deep feature vector set;

[0106] Add each optical flow result and feature vector of the same scale in the channel dimension to obtain the addition results of multiple channel dimensions;

[0107] The sum of each channel dimension is input into the channel attention module and residually connected to obtain multiple first output results;

[0108] Input each first output result into the spatial attention module and perform residual connection to obtain multiple second output results;

[0109] Perform weighted summation on each second output result and the corresponding channel dimension addition result to obtain multiple weighted features;

[0110] Upsample the weight features of the next deep layer to the same scale as the weight features of the current layer to obtain multiple upsampled weight features;

[0111] Each upsampled weight feature is subjected to convolution and activation operations to obtain multiple weighting coefficients;

[0112] Each weighting coefficient is multiplied pixel by pixel with the weight feature of the current layer to obtain multiple fused features.

[0113] In this embodiment, the optical flow result is downsampled to the same scale as each feature vector in the deep feature vector set, and then each optical flow result and feature vector of the same scale are added in the channel dimension to obtain multiple channel dimension addition results, so as to preliminarily combine the optical flow result and feature vector. Then the channel attention module and the spatial attention module are used to obtain the corresponding feature weights, and then the feature weights corresponding to the channel attention module and the spatial attention module are added to obtain the features of the weights of each feature map in the channel and spatial dimensions. Then, the high-level features with global information are guided to weight the low-level features, and the latter deep weight features are upsampled to the same scale as the current layer weight features to obtain multiple upsampled weight features, and each upsampled weight feature is subjected to convolution and activation operations to obtain multiple weight coefficients; each weight coefficient is multiplied pixel by pixel with the current layer weight feature to obtain multiple fusion features. The purpose of multi-scale fusion with the extracted deep-level features is to accurately segment moving targets.

[0114] In some embodiments, the sum of each channel dimension is input into the channel attention module and residually connected in the following manner to obtain multiple first output results:

[0115]

[0116]

[0117] in, represents average pooling, represents the maximum pooling, represents a multilayer perceptron, Represents the channel dimension addition result, represents the sigmoid activation function, represents the channel attention module, represents element-wise multiplication, Indicates the first output result.

[0118] In some embodiments, each first output result is input into the spatial attention module and residually connected to obtain multiple second output results in the following manner:

[0119]

[0120]

[0121] in, represents average pooling, represents the maximum pooling, Indicates the filter size is The convolution operation, represents the sigmoid activation function, Represents the first output result, represents the spatial attention module, represents element-wise multiplication, Indicates the second output result.

[0122] In some embodiments, the upsampled weight features are subjected to convolution and activation operations to obtain weight coefficients in the following manner:

[0123]

[0124] in, represents the weight feature after sampling, represents the activation function, represents the convolution operation, represents the sigmoid activation function, represents batch normalization, Represents the weighting coefficient.

[0125] In some embodiments, a segmentation head is used to perform moving object segmentation based on multiple fusion features to obtain a moving object segmentation result, including:

[0126] Inputting multiple fused features into the prototype mask branch to obtain multiple prototype masks output by the prototype mask branch;

[0127] Input multiple fused features into the three sub-branches of classification, regression and segmentation in the prototype mask confidence branch respectively;

[0128] The three sub-branches extract information of multiple fused features through convolution and generate multiple anchor boxes with equal areas;

[0129] The classification sub-branch is used to predict the classification confidence of the anchor box, the regression sub-branch is used to predict the regression box coefficient of the anchor box, and the segmentation sub-branch is used to predict the confidence of multiple prototype masks;

[0130] The non-maximum suppression algorithm is used to screen the anchor box according to the classification confidence, regression box coefficient and confidence to obtain the screened anchor box;

[0131] Linearly combine the prototype mask confidence and prototype mask corresponding to the filtered anchor box to obtain the combined result;

[0132] The combined result is activated by a nonlinear function to obtain the moving target segmentation result.

[0133] In this embodiment, the moving target segmentation is performed by using the fusion features of the deep-level features and the optical flow field, which can improve the accuracy of the moving target segmentation.

[0134] To facilitate understanding by those skilled in the art, a set of best embodiments is provided below:

[0135] Since it is based on static image segmentation, it is necessary to use neural networks to train large data sets to learn features, select a method to learn motion characteristics, and improve the final accuracy through iteration, post-processing, etc., so it relies heavily on proprietary data sets. Although the methods based on radar or laser point clouds can obtain more accurate motion information, they have higher requirements for hardware configuration. If the hardware configuration accuracy is not high, the accuracy of moving target segmentation is not high, and the hardware configuration is difficult to meet the needs of the general public. Therefore, the accuracy of moving target segmentation in most related technologies is relatively low.

[0136] Therefore, refer to Figure 2 In this embodiment, a method is designed to combine the optical flow estimation principle with the traditional deep segmentation model. This method uses a model pre-training segmentation part that has a certain ability to segment unknown targets in the open world, combined with an optimized optical flow estimation method, to improve the accuracy, robustness and generalization of moving target segmentation, and reduce the segmentation model's dependence on the data set. Specifically, it includes the following steps:

[0137] Step 1: Acquire a moving target video, collect video frames in the moving target video, and use two temporally adjacent frames as input images (including a first input image and a second input image), and preprocess the first input image and the second input image.

[0138] Specifically, two temporally adjacent frames in the moving target video are collected as input images. First, the formats of the two input images are converted to The tensor form of , where Represents the number of channels, usually 3, and The input image is scaled to 640*640, and preprocessed by normalizing pixels, filling, etc.

[0139] Step 2: Input the two frames into the weight-shared DarkNet53 network to extract features.

[0140] Specifically, the two frames are input into the weight-shared DarkNet53 network to extract features (i.e., feature extraction network model). The structure of the DarkNet53 network is referenced Figure 3, where (a) is a schematic diagram of the overall structure of the DarkNet53 network, (b) is a schematic diagram of the Conv module structure, where BatchNorm2d represents two-dimensional batch normalization processing, SiLU function represents adaptive activation function, (c) is a schematic diagram of the C2f residual module structure, where split represents splitting the feature map into two halves according to the channel dimension, Bottleneck represents the bottleneck layer, and (d) is a schematic diagram of the SPPF pooling module structure. The DarkNet53 network consists of multiple convolutional regularized Conv modules, C2f residual modules and SPPF pooling modules in series. The key parameters of its Conv module are the number of convolution kernels, the size of the convolution kernel and the step size, and the key parameters of the C2f module are the number of channels and whether to use shortcut dimensionality reduction. Assume that the first module is layer 0, and the same and adjacent modules are one layer, then there are 10 layers from 0 to 9. Put two frames of pictures in series. , The weight-sharing DarkNet53 network is input respectively to obtain the output feature vectors of the 2nd, 4th, 6th, 8th, and 9th layers. Since the input image format is fixed to 3*640*640, the feature sizes of the extracted 2nd, 4th, 6th, 8th, and 9th layers are fixed, that is, [64*320*320, 128*60*60, 256*80*80, 512*40*40, 1024*20*20].

[0141] Assume that the feature vectors of the two frames extracted are , where c represents the number of channels of the feature map, h represents the height of the feature map, and w represents the width of the feature map. The final feature vectors can be listed as follows: the first feature vector set corresponding to the first input image [ ] and the second feature vector set corresponding to the second input image [ ].

[0142] Step 3: Construct a feature pyramid based on the two sets of features and perform optical flow estimation.

[0143] Based on the two sets of features, a feature pyramid (including the first feature pyramid and the second feature pyramid) is constructed, and the correlation between the feature vectors is estimated to construct the optical flow field. The error is eliminated and the accuracy is improved by matching the cost modulation and the flow field distortion, and finally the optical flow result is obtained.

[0144] Specifically, first construct a feature pyramid for each set of features. , , where layer 0 is the original input image , the subsequent layers are the feature map lists obtained in step 2 (i.e., the first feature vector set and the second feature vector set), namely:

[0145]

[0146]

[0147] Then, the feature pyramid is traversed sequentially to perform correlation matching to estimate the optical flow field from coarse to fine. , They are , For a point on the rectangular domain of the feature map, the similarity association is obtained by calculating the dot product of the feature vector in each layer of the feature pyramid:

[0148]

[0149] in, represents the matching cost volume between two feature vectors, represents the length of the feature map, Represents the maximum matching radius, which limits Selection range:

[0150]

[0151] The matching cost represents the matching degree of two feature vectors, which will be disturbed by the occluded areas and large homogeneous areas in the image. According to the idea of ​​LiteFlowNet3, adaptive modulation is used to filter outliers of the cost and improve the flow accuracy:

[0152]

[0153] in, represents the matching cost after modulation, and Represents pixel-level multiplication and addition respectively. Input confidence map M, feature map corresponding to the current layer And the matching cost , obtained through two layers of convolution , .

[0154] The confidence map M is used to reflect whether the optical flow estimation at a certain position in the flow field is accurate, through the real value label And L2 loss to train, where Obtained by the following formula:

[0155]

[0156] in, represents the predicted optical flow value in the optical flow field, express The corresponding true value. And use the sigmoid function to constrain the values ​​in the confidence map M to the range [0,1].

[0157] After obtaining the modulated optical flow field, in order to solve the problem of inaccurate optical flow caused by excessive motion displacement, according to the principle of local flow consistency, the inaccurate optical flow is replaced by the accurate optical flow at nearby positions to optimize the flow field. Optical Flow Inaccurate, nearby location Optical Flow Accurate, and , then the calculated displacement will be used to calculate the optical flow Distort and replace as: .

[0158] Regularize the optimized optical flow field and finally get the optical flow result .

[0159] In step 3, optical flow estimation is performed based on the feature pyramid constructed based on the feature group extracted in step 2. The estimation method is as follows: Figure 4 In the implementation process, the feature groups of the same level in the two feature pyramids are processed in turn. The parameters of correlation calculation are different according to the different pyramid levels: the key parameters include padding size, convolution kernel size, maximum displacement, and the step size of the two convolutions. When the level is equal to 3, it is (8, 1, 8, 1, 2), when the level is equal to 4, it is (6, 1, 6, 1, 2), and in other cases it is (4, 1, 4, 1, 1). The optical flow field after modulation, flow field distortion and regularization optimization is the optical flow result. .

[0160] Step 4: The feature vector obtained in step 2 for the next frame , continue to extract its deep features, and perform multi-scale feature fusion, optical flow and feature fusion.

[0161] The feature vector Continue to input the FPN feature pyramid structure to extract deep features and obtain a deep feature vector set. The FPN structure is composed of multiple upsample Upsample modules, concat modules, convolution regular Conv modules and C2f residual modules in series. Continuing from step 2, assume that the first module is the 10th layer, and the same and adjacent modules are one layer, then there are 12 layers from 10 to 21. In the Upsample module, the nearest neighbor interpolation algorithm is used to enlarge the feature map. In the concat module, the input of the previous layer is added to the shallow feature output in the channel dimension. Obtain the output feature maps of the 15th, 18th, and 21st layers respectively, recorded as The optical flow value is fused with the feature map through the attention module to obtain a new feature map .

[0162] Then the optical flow field C is downsampled to the feature map Same size and recorded as ,Will and Add in the channel dimension to get the channel dimension addition result First, Input channel attention module And residual connection is performed to obtain the first output result. In the first step, average pooling and maximum pooling operations are used to generate two different spatial context descriptors, and then multi-layer perceptron is used to generate two different spatial context descriptors. After aggregation, the formula is:

[0163]

[0164]

[0165] in, represents average pooling, represents the maximum pooling, represents a multilayer perceptron, Represents the channel dimension addition result, represents the sigmoid activation function, represents the channel attention module, represents element-wise multiplication, Indicates the first output result.

[0166] Then Input to the spatial attention module And residual connection is performed to obtain the second output result. In , average pooling and maximum pooling operations are first performed along the channel axis and concatenated to generate 1 feature descriptor, and then a convolutional layer is applied to generate a spatial attention map, the formula is:

[0167]

[0168]

[0169] in, represents average pooling, represents the maximum pooling, Indicates the filter size is The convolution operation, represents the sigmoid activation function, Represents the first output result, represents the spatial attention module, represents element-wise multiplication, Indicates the second output result.

[0170] Finally Yohara Perform weighted summation and use activation function to obtain features that dynamically adjust the weights of each feature map in the channel and spatial dimensions. .

[0171] Then, the attention module is guided to let the high-level features with global information weight the low-level features. (representing deeper features) upsampled to Same size , and then obtain the weighted coefficients through convolution and activation operations :

[0172]

[0173] in, represents the weight feature after sampling, represents the activation function, represents the convolution operation, which is used to learn the weighting coefficients, represents the sigmoid activation function, represents batch normalization, represents the weighting coefficient. Then, With feature mapping Multiply pixel by pixel to obtain the weighted feature map, which is the final fusion feature :

[0174]

[0175] In step 4, the feature vector obtained in step 2 for the next frame is (its size is 1024*20*20), continue to extract its deep features, and fuse the multi-scale features through the FPN structure, such as Figure 5 The key parameter of the upsampling module is the magnification factor, which is set to 2. The method used is the nearest neighbor interpolation method. The Concat module has no parameters, but it needs to declare which layers' outputs are connected. Since the input size is fixed, the output feature maps of the 15th, 18th, and 21st layers are The sizes are [256*80*80, 512*40*40, 1024*20*20].

[0176] The feature map and optical flow are combined as follows Figure 6 The CBAM module is a combination of channel attention and spatial attention. When performing convolution, a 3*3 convolution kernel is used with a step size of 1.

[0177] Step 5: Use the segmentation head to obtain the segmentation result according to the fused feature map;

[0178] The fused feature map Then two parallel subtasks are used to obtain the segmentation results. The first task is the prototype mask branch: The feature map is upsampled to the input image size, and then input a FCN full convolutional network with k channels in the last layer. Each channel generates a prototype mask K. After the ReLU activation function, a total of k masks are generated. The second task is the prototype mask confidence branch: Input to the classification, regression and segmentation branches. Each branch extracts information through two 3x3 convolutions and one 1x1 convolution. Generate multiple anchor boxes of equal area, and finally return the following three branches: the classification branch predicts the classification confidence of c (the number of target categories in a specific dataset) categories for each anchor box, the regression branch predicts 4 regression box coefficients for each anchor box, and the segmentation branch predicts the confidence H of k prototype masks. Finally, the non-maximum suppression algorithm (NMS) is used to screen and optimize the anchor boxes.

[0179] After the two subtasks are completed, the prototype mask and the prototype mask confidence are linearly combined (implemented by matrix multiplication), and the combined output is activated by the nonlinear function Sigmoid to generate the final instance mask. (i.e. the moving target segmentation result), the formula is:

[0180]

[0181] in, Indicates that the prototype mask is a The matrix of Represents the prototype mask coefficients of the n instances retained after non-maximum suppression and threshold processing, which is a The matrix of Express Transpose.

[0182] In step 5, the segmentation head is used to obtain the segmentation result based on the fused feature map, such as Figure 7 As shown in Figure 2. When performing non-maximum suppression, the 30,000 output results with the highest classification scores greater than 0.25 are retained. Since a pre-trained segmentation model based on FastSAM is used, the category is set to 1, and all target objects are considered to be of category 1.

[0183] In this embodiment, the parameters of the segmentation model need to be determined by training. The dataset used is the CD 2014 dataset, from which 7 categories of videos are selected for training. There are about 8,500 frames of pictures in the 7 videos, which are divided into about 4,250 sets of picture pairs according to adjacent time. The training samples are 3,400 sets of data and the test samples are 850 sets of data. The pytorch framework is used for implementation, and the configuration environment includes cuda10.2, python3.9, and torch1.11.

[0184] It should be noted that the model training parameters of this embodiment can be specifically set according to actual construction requirements and are not specifically limited in this embodiment.

[0185] In this embodiment, compared with the prior art, the advantage of the present application is that the optical flow estimation principle is integrated into the static image segmentation. Since it is not easy to construct an optical flow field on features that are too deep, the optical flow field requires some information such as color and texture contained in shallow features. Therefore, the present application only uses a relatively shallow feature map pyramid to construct, rather than using the deep features of the two to construct the optical flow field, so that a more accurate optical flow field can be obtained. Then, the fusion features of the deep feature vector set and the estimated optical flow result are used to segment the moving target, so that the segmentation of a certain line can obtain a more accurate moving target segmentation capability. When training the segmentation model, this embodiment performs transfer learning on the basis of the segmentation model pre-trained on the SA-1B data set generated by the large model in the segmentation field, and pre-trains the feature extraction part, which reduces the dependence on the data set and improves the robustness and generalization of the method.

[0186] Reference Figure 8 The embodiment of the present application further provides a moving target segmentation system based on deep learning. The moving target segmentation system based on deep learning includes a data processing unit 100, a first extraction unit 200, an optical flow estimation unit 300, a second extraction unit 400, a feature fusion unit 500 and a moving target segmentation unit 600, wherein:

[0187] The data processing unit 100 is used to obtain a moving target video and collect video frames in the moving target video; use two adjacent frames as a first input picture and a second input picture, and pre-process the first input picture and the second input picture;

[0188] The first extraction unit 200 is used to extract features from the preprocessed first input image and the second input image using a feature extraction network model, and use the features output by several network layers in the feature extraction network model as a feature vector set to obtain a first feature vector set corresponding to the first input image and a second feature vector set corresponding to the second input image;

[0189] An optical flow estimation unit 300 is used to construct a first feature pyramid and a second feature pyramid based on the first feature vector set and the second feature vector set, and estimate the optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result;

[0190] The second extraction unit 400 is used to perform multi-scale deep-level feature extraction on the feature vector last extracted in the second feature vector set to obtain a deep-level feature vector set;

[0191] A feature fusion unit 500 is used to fuse the deep feature vector set with the optical flow result at different scales to obtain multiple fused features;

[0192] The moving target segmentation unit 600 is used to perform moving target segmentation using a segmentation head according to multiple fusion features to obtain a moving target segmentation result.

[0193] It should be noted that since the motion target segmentation system based on deep learning in this embodiment and the above-mentioned motion target segmentation method based on deep learning are based on the same inventive concept, the corresponding contents in the method embodiment are also applicable to the system embodiment and will not be described in detail here.

[0194] Reference Fig. 9 The embodiment of the present application further provides a moving target segmentation device based on deep learning, and the moving target segmentation device based on deep learning includes:

[0195] at least one memory;

[0196] at least one processor;

[0197] at least one program;

[0198] The program is stored in the memory, and the processor executes at least one program to implement the above-mentioned deep learning-based moving target segmentation method implemented in the present disclosure.

[0199] The electronic device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a car computer, etc.

[0200] The electronic device according to the embodiment of the present application is described in detail below.

[0201] The processor 1600 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided by the embodiments of the present disclosure;

[0202] The memory 1700 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1700 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1700, and the processor 1600 calls and executes the moving target segmentation method based on deep learning in the embodiment of the present disclosure.

[0203] Input / output interface 1800, used to implement information input and output;

[0204] Communication interface 1900, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0205] Bus 2000 , which transmits information between various components of the device (e.g., processor 1600 , memory 1700 , input / output interface 1800 , and communication interface 1900 );

[0206] The processor 1600 , the memory 1700 , the input / output interface 1800 , and the communication interface 1900 are connected to each other in communication within the device via the bus 2000 .

[0207] An embodiment of the present disclosure also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned deep learning-based motion target segmentation method.

[0208] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0209] The embodiments described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.

[0210] Those skilled in the art will appreciate that the technical solutions shown in the figures do not limit the embodiments of the present disclosure and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0211] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0212] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0213] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0214] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0215] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0216] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0217] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0218] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store programs. The above is a detailed description of the embodiments of the present application in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments. Within the scope of knowledge possessed by ordinary technicians in the relevant technical field, various changes can be made without departing from the purpose of the present application.

[0219] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments. Various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.

Claims

1. A moving target segmentation method based on deep learning, characterized in that: The moving target segmentation method based on deep learning includes: Acquire a moving target video, and collect video frames in the moving target video; use two adjacent frames as a first input picture and a second input picture, and preprocess the first input picture and the second input picture; A feature extraction network model is used to extract features from the preprocessed first input image and the second input image, and features output by several network layers in the feature extraction network model are used as feature vector sets to obtain a first feature vector set corresponding to the first input image and a second feature vector set corresponding to the second input image; Based on the first feature vector set and the second feature vector set, construct a first feature pyramid and a second feature pyramid, and estimate optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result; Perform multi-scale deep-level feature extraction on the feature vector last extracted from the second feature vector set to obtain a deep-level feature vector set; The deep feature vector set and the optical flow result are subjected to feature fusion of different scales to obtain multiple fusion features; wherein: Downsampling the optical flow result to the same scale as each feature vector in the deep feature vector set; Add each optical flow result and feature vector of the same scale in the channel dimension to obtain the addition results of multiple channel dimensions; Inputting the sum of each channel dimension into a channel attention module and performing residual connection to obtain a plurality of first output results; Input each of the first output results into a spatial attention module and perform residual connection to obtain multiple second output results; Performing weighted summation on each of the second output results and the corresponding channel dimension addition result to obtain a plurality of weighted features; Upsample the weight features of the next deep layer to the same scale as the weight features of the current layer to obtain multiple upsampled weight features; Perform convolution and activation operations on each of the upsampled weight features to obtain multiple weighting coefficients; Multiply each of the weighting coefficients and the current layer weight feature pixel by pixel to obtain multiple fusion features; According to the multiple fusion features, a segmentation head is used to perform moving target segmentation to obtain a moving target segmentation result.

2. The moving target segmentation method based on deep learning according to claim 1, characterized in that: The constructing a first feature pyramid and a second feature pyramid based on the first feature vector set and the second feature vector set, and determining an optical flow result according to the first feature pyramid and the second feature pyramid, includes: Combining the first feature vector set and the first input image into a first feature pyramid; combining the second feature vector set and the second input picture into a second feature pyramid; Traversing the first feature pyramid and the second feature pyramid to perform correlation matching to obtain a matching cost between two feature vectors; Adaptively modulate and filter the abnormal value of the matching cost to obtain a modulated optical flow field; Calculate the confidence map of the optical flow in the modulated optical flow field; In the modulated optical flow field, replacing the inaccurate optical flow with the accurate optical flow according to the confidence map to obtain an optimized optical flow field; The optimized optical flow field is regularized to obtain an optical flow result.

3. The moving target segmentation method based on deep learning according to claim 1, characterized in that: The sum of each channel dimension is input into the channel attention module and residually connected in the following manner to obtain multiple first output results: ; ; in, represents average pooling, represents the maximum pooling, represents a multilayer perceptron, Represents the channel dimension addition result, represents the sigmoid activation function, represents the channel attention module, represents element-wise multiplication, Indicates the first output result.

4. The moving target segmentation method based on deep learning according to claim 1, characterized in that: Each of the first output results is input into the spatial attention module and residually connected to obtain multiple second output results in the following manner: ; ; in, represents average pooling, represents the maximum pooling, Indicates the filter size is The convolution operation, represents the sigmoid activation function, Represents the first output result, represents the spatial attention module, represents element-wise multiplication, Indicates the second output result.

5. The moving target segmentation method based on deep learning according to claim 1, characterized in that: The upsampled weight features are convolved and activated to obtain weight coefficients in the following manner: ; in, represents the weight feature after sampling, represents the activation function, represents the convolution operation, represents the sigmoid activation function, represents batch normalization, Represents the weighting coefficient.

6. The moving target segmentation method based on deep learning according to claim 1, characterized in that: The step of using a segmentation head to segment the moving target according to the multiple fusion features to obtain a moving target segmentation result includes: Inputting the multiple fusion features into the prototype mask branch to obtain multiple prototype masks output by the prototype mask branch; Input the multiple fused features into the three sub-branches of classification, regression and segmentation in the prototype mask confidence branch respectively; The three sub-branches respectively extract information of the multiple fused features through convolution to generate multiple anchor frames with equal areas; The classification sub-branch is used to predict the classification confidence of the anchor box, the regression sub-branch is used to predict the regression box coefficient of the anchor box, and the segmentation sub-branch is used to predict the confidence of multiple prototype masks; Using a non-maximum suppression algorithm to filter the anchor box according to the classification confidence, the regression box coefficient and the confidence, to obtain a filtered anchor box; Linearly combining the prototype mask confidence and the prototype mask corresponding to the filtered anchor frame to obtain a combination result; The combination result is activated by a nonlinear function to obtain a moving target segmentation result.

7. A moving target segmentation system based on deep learning, characterized in that: The moving target segmentation system based on deep learning includes: A data processing unit, configured to obtain a moving target video and collect video frames in the moving target video; use two adjacent frames as a first input picture and a second input picture, and preprocess the first input picture and the second input picture; A first extraction unit is used to extract features from the preprocessed first input picture and the second input picture by using a feature extraction network model, and use the features output by several network layers in the feature extraction network model as a feature vector set to obtain a first feature vector set corresponding to the first input picture and a second feature vector set corresponding to the second input picture; an optical flow estimation unit, configured to construct a first feature pyramid and a second feature pyramid based on the first feature vector set and the second feature vector set, and estimate the optical flow based on the first feature pyramid and the second feature pyramid to obtain an optical flow result; A second extraction unit, configured to perform multi-scale deep-level feature extraction on the feature vector last extracted from the second feature vector set to obtain a deep-level feature vector set; A feature fusion unit is used to fuse the deep feature vector set with the optical flow result at different scales to obtain multiple fused features; wherein: Downsampling the optical flow result to the same scale as each feature vector in the deep feature vector set; Add each optical flow result and feature vector of the same scale in the channel dimension to obtain the addition results of multiple channel dimensions; Inputting the sum of each channel dimension into a channel attention module and performing residual connection to obtain a plurality of first output results; Input each of the first output results into a spatial attention module and perform residual connection to obtain multiple second output results; Performing weighted summation on each of the second output results and the corresponding channel dimension addition result to obtain a plurality of weighted features; Upsample the weight features of the next deep layer to the same scale as the weight features of the current layer to obtain multiple upsampled weight features; Perform convolution and activation operations on each of the upsampled weight features to obtain multiple weighting coefficients; Multiply each of the weighting coefficients and the current layer weight feature pixel by pixel to obtain multiple fusion features; The moving target segmentation unit is used to perform moving target segmentation using a segmentation head according to the multiple fusion features to obtain a moving target segmentation result.

8. A moving target segmentation device based on deep learning, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the deep learning-based motion target segmentation method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the deep learning-based moving target segmentation method as described in any one of claims 1 to 6.