A video object segmentation method based on global coding and asymmetric convolution

By combining global encoding and asymmetric convolution, the speed and accuracy issues of existing video target segmentation algorithms in complex environments are solved, achieving efficient and real-time video target segmentation and improving the network's robustness and target recognition capabilities.

CN118097143BActive Publication Date: 2026-11-20UNIV OF SHANGHAI FOR SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410265952.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-08
Publication Date
2026-11-20
Estimated Expiration
2044-03-08

AI Technical Summary

Technical Problem

Existing video target segmentation algorithms are slow in complex environments, susceptible to time interruptions, and unable to adapt to changes in appearance. Furthermore, existing methods have low accuracy in feature fusion, making it difficult to achieve real-time and efficient target segmentation.

Method used

By combining a global encoder and an asymmetric convolution module, complementary features are extracted through a similarity encoder and a global encoder, deep feature fusion is performed using asymmetric convolution, and a prediction mask is generated through residual upsampling to achieve end-to-end video target segmentation.

Benefits of technology

It improves the robustness and target recognition capabilities of the network, achieves efficient and accurate video target segmentation, and obtains high accuracy and real-time speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118097143B_ABST
    Figure CN118097143B_ABST
Patent Text Reader

Abstract

The application relates to a target segmentation method of a video image, and proposes a video target segmentation method based on global coding and asymmetric convolution. The method aims at solving the problems of slow speed, being easily affected by time discontinuity, and being unable to adapt to appearance changes during automatic segmentation of a video image. First, a series of video images with labels are input into a network, and features which are complementary to each other are extracted through two network branches of a global encoder and a similarity encoder, so that an effective representation of a target appearance is obtained. Then, a module of asymmetric convolution is used to deeply fuse the two complementary features. Finally, residual up-sampling is used for decoding to generate a prediction mask, and target segmentation in a video image is realized. The method can effectively represent the target appearance, improves the recognition ability of the network for a specific target, and achieves high accuracy. In the segmentation task, good performance and real-time speed are achieved, and end-to-end semi-supervised video target segmentation is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a video image segmentation technique, and more particularly to a semi-supervised video target segmentation method. Background Technology

[0002] Video object segmentation is a task that, in each frame of a given video sequence, distinguishes between foreground and background pixels, predicts the mask of the target region pixels, and tracks and segments one or more target objects. In challenging environments, such as dynamic environments with deformed, occluded, or rapidly moving targets, and with camera movement, it aims to separate specific moving objects from the background of a video sequence. Existing video object segmentation algorithms can be broadly categorized into unsupervised and semi-supervised learning methods based on their learning approaches. Unsupervised video object segmentation automatically separates the foreground and background of each frame without labeled samples, identifying the most prominent objects. Unsupervised methods rely heavily on motion information but suffer from uncertainty in complex scenes. Without any prior knowledge, these methods struggle to identify specific objects of interest from a video sequence.

[0003] In contrast, this invention primarily considers semi-supervised video object segmentation (SVOS), which, given a true segmentation mask for the target in the first frame or several frames, classifies all pixels in subsequent frames into foreground and background to obtain the target segmentation result. Semi-supervised video object segmentation presents challenges due to significant changes in the appearance of targets over time throughout the video sequence, as well as issues like target occlusion and rapid movement. A crucial problem in video object segmentation is how to effectively represent the appearance of the background and the target. To achieve this, most previous methods processed each frame independently through online fine-tuning. This single-frame model achieves high segmentation accuracy and good performance. For example, OSVOS is a pioneering work in this direction, using a CNN convolutional network pre-trained for image classification for video object segmentation, using only the first frame as a reference to independently detect targets in each subsequent frame. However, since the online fine-tuning process is not integrated into the offline training of the network, end-to-end training cannot be achieved. This method ignores information between frames, has high computational cost, long testing time, and cannot achieve real-time speed.

[0004] Another type of method is based on mask propagation. Video object segmentation is treated as a feedforward mask refinement process. The mask predicted in the previous frame is propagated forward and concatenated with the feature map of the current frame. By utilizing information between video frames, the network is guided to find the target in the current frame. MSK proposes treating video object segmentation as a mask refinement problem, using a convolutional neural network to refine the mask predicted in the previous frame. AGAME introduces an appearance module that learns a generative model of the probability distribution of target and background features. In one forward pass, it learns the representation of the target's appearance and the background. The learning and prediction phases of the appearance module are completely differentiable, enabling end-to-end training of the entire segmentation network. These methods consider the spatiotemporal relationships of pixel motion in adjacent frames and can adapt to relatively smooth changes in object appearance and position, but they are easily affected by temporal discontinuities.

[0005] Another type of method is the matching-based method. This method learns the appearance of the target from a given initial frame, extracts features from both the initial and current frames, and performs pixel-by-pixel matching calculations for each frame. These algorithms are not heavily time-dependent, thus exhibiting good robustness in handling mismatches and drift problems. However, this method primarily relies on target appearance detection based on the initial frame and often cannot adapt to changes in appearance. When the target rotates, it exhibits different visual representations, potentially leading to mismatches and difficulty in distinguishing objects with similar appearances. Summary of the Invention

[0006] To address the issues of slow speed, susceptibility to temporal interruptions, and inability to adapt to changes in appearance during automatic video image segmentation, this paper proposes a target segmentation network based on global encoding and asymmetric convolution. This network achieves efficient and accurate segmentation of video images, laying the foundation for target tracking. The proposed global encoder and asymmetric convolution modules better represent the appearance of the target, enhancing the robustness of the segmentation network.

[0007] The technical solution of this invention is as follows:

[0008] A video object segmentation method based on global encoding and asymmetric convolution includes the following steps:

[0009] First, the acquired labeled video sequence images are input into the network. The target region is located using the feedback features, and the original image is cropped to reduce background interference. A global encoder and a similarity encoder serve as two network branches, extracting complementary features to improve the network's ability to distinguish targets. Then, an asymmetric convolution module is used to deeply fuse the two complementary features to obtain the target features. Finally, residual upsampling is used to decode the target features and generate a prediction mask, thus achieving target segmentation in the video image.

[0010] The proposed global encoder fully utilizes information from the entire image, which is beneficial for distinguishing background information from target features and further recognizing the target's appearance. It also employs an asymmetric convolution module to achieve deep feature fusion, specifically including the following steps:

[0011] Step 1: Obtain the dataset:

[0012] The experimental hoisting dataset was constructed using manual annotation. The video data came from the hoisting and transporting of objects, filmed from multiple angles and under different lighting conditions. The videos mainly included cranes, the objects being hoisted and transported, and other objects in the environment. The video clips were converted into continuous video sequence images. Labels were created using image annotation tools, and the edge contours of the hoisted objects were manually segmented. All pixels within the closed area of ​​the contour line belonged to the target, thus completing pixel-level manual annotation. The dataset was then divided into training and validation sets.

[0013] Step 2: Establish a video object segmentation model:

[0014] The overall network consists of four parts: a similarity encoder and a global encoder, a deep feature fusion module, a decoder based on residual upsampling, and a feedback loop, as detailed below:

[0015] The similarity encoder uses a Siamese network to obtain feature correlations and encodes the similarity between the appearance of objects and targets in the current frame; the global encoder extracts global features for the current frame, extracting more detailed and richer features for targets in the input image; the correlation features of the similarity encoder provide appropriate supplements for the global encoder to distinguish between targets and background interference, and the target features extracted by the two encoders make the segmentation network more robust.

[0016] Since deep features are rich in information, an asymmetric convolution module is used, combining 1×k+k×1 and k×1+1×k convolutional layers to effectively expand the receptive field; deep feature fusion is performed on the similarity features and global features obtained from the encoder branches.

[0017] To ensure that edge details and other information are not lost, during the decoding process, based on the idea of ​​residual learning, the network makes full use of shallow features. To obtain more spatial semantic information, the low-level features extracted by the global encoder backbone network are bilinearly interpolated and upsampled with the high-level features in a skip connection manner to finally generate a prediction mask. According to the update strategy of the SAT method, the feedback loop multiplies the predicted binary mask with the input image and fuses the prediction mask of the previous frame to update the target features. According to the cropping strategy and selection mechanism in the SAT method, the prediction mask of the regression head or segmentation network added in the similarity encoder is used to generate the minimum bounding box. Based on the bounding box, the location of the target to be searched is determined, and the image of the relatively small target region in the next frame is cropped as the network input.

[0018] Step 3: Training:

[0019] Since the similarity encoder is based on the SiamFC++ network, it uses weights pre-trained on multiple object tracking datasets according to the SiamFC++ training strategy; the feature extraction backbone network ResNet50-M of the global encoder uses weights pre-trained on the ImageNet dataset.

[0020] Step 4: Complete the establishment of a video target segmentation model based on global encoding and asymmetric convolution, and conduct experiments and analysis.

[0021] Preferably, in step one, the image annotation tool labelme is used to create the labels.

[0022] Furthermore, in step one, the hoisting dataset contains 6 video sequences and 3 different target categories. Each video sequence contains a single target, and each video segment is 6 to 10 seconds long. Approximately 300 frames of images are generated and divided into training and validation sets. Each image is 1920×1080 in size.

[0023] Preferably, in step two, k = 3.

[0024] Furthermore, in step two, the original input image size is 1920×1080. Images containing the target region with sizes of 127×127, 303×303, and 257×257 are cropped and input into each branch for feature extraction, making the network focus more on the target and reducing background interference in the image.

[0025] Furthermore, in step two, the similarity encoder and global encoder are specifically as follows:

[0026] The similarity encoder and the global encoder are encoders for extracting target features and global features, respectively. The similarity encoder is based on the SiamFC++ tracking network architecture with the AlexNet backbone. Referring to the SiamFC++ network structure and following the cropping strategy set by the SAT network, the target regions of the initial frame and the current frame are used as the template image and search image for network input. Based on the Siam network, the similarity between the appearance of the object and the target in the current frame is encoded using feature correlation. The template image size is 127×127, and the search image size is 303×303. The target given in the template image is used as the target of interest in the entire video sequence to guide the network to learn target features.

[0027] The global encoder extracts background features based on the IR module. The backbone network in the module is a variant of ResNet50, namely ResNet50-M. In order to obtain more global information, the receptive field is changed according to the size of the convolutional kernel. Small convolutional kernels are used to increase the receptive field, and channel changes can enhance feature extraction. Similarly, for the input of the global encoder, a relatively small region is cropped around the target to reduce background interference. Thus, the global encoder can extract more detailed and richer features for the target in the input image.

[0028] The features extracted by the global encoder are global features, which lack the ability to distinguish targets. The relevance features of the similarity encoder provide an appropriate supplement for the global encoder to distinguish targets from background interference. The target features extracted by the two encoders make the segmentation network more robust.

[0029] Furthermore, in step two, the deep feature fusion module specifically includes:

[0030] To overcome the locality of convolution operations, a Global Convolution Block module from global convolution is employed. This module effectively expands the receptive field by combining 1×k+k×1 and k×1+1×k convolutional layers. The similarity feature map obtained from the encoder branch and the global feature map are used as inputs. The similarity feature map undergoes convolution operations on each channel, is added to the global feature map, and then undergoes asymmetric convolution operations in the global convolutional layer. The output passes through a residual block, effectively fusing features to obtain richer target features. The asymmetric convolutional layer divides a k×k convolutional kernel into two asymmetric convolutional kernels, k×1 and 1×k, extracting different features through different receptive fields. Furthermore, using asymmetric convolution can reduce the increase in the number of network parameters.

[0031] Furthermore, in step two, the decoder based on residual upsampling specifically includes:

[0032] To ensure that edge details and other information are not lost, the network makes full use of shallow features during the decoding process. First, the target features updated by the feedback loop are convolved, and the number of output channels is adjusted to 256. Then, they are concatenated with the features of the deep feature fusion module. In order to make full use of the feature information of the shallow network, based on the idea of ​​residual learning, and to obtain more spatial semantic information, the low-level features extracted by the global encoder backbone network are bilinearly interpolated and upsampled with the high-level features in a skip connection manner, and finally the prediction mask is generated.

[0033] Furthermore, in step four, the evaluation indicators used in the analysis are as follows:

[0034] The standard evaluation metrics of the benchmark dataset DAVIS2017 are adopted, namely region similarity Jaccard and contour accuracy F-score. Region similarity is the intersection-union ratio (IUU) between the predicted binary segmentation mask and the labeled ground truth, expressed as a ratio. The numerator is the intersection of the foreground values ​​of the predicted mask and the labeled ground truth, and the denominator is their union. The formula for region similarity J is:

[0035]

[0036] Where Y represents the predicted value and T represents the labeled true value; contour accuracy describes whether the boundary of the predicted segmentation result corresponds to the boundary of the labeled true value; the contour accuracy F is defined as:

[0037]

[0038] Where P represents precision, R represents recall, and the mean of region similarity J and contour precision F is also used as a comprehensive evaluation index.

[0039] Furthermore, in step three,

[0040] During network training, sample data from the hoisting dataset, DAVIS2017 training set, COCO training set, and YouTube-VOS training set were used. The entire network training process consisted of 20 epochs, i.e., the number of training iterations. In each epoch, 150,000 images were randomly selected from the training samples for training, so that as many training samples as possible could be trained after 20 epochs. The batch size was set to 32 during training, and the SGD optimizer with a momentum coefficient of 0.9 was used. The cross-entropy loss function was used as the network loss function. The learning rate was set using a warm-up optimization method to stabilize the model. In the first two epochs, the learning rate was set to increase linearly from 10⁻⁵ to 10⁻², and the cosine annealing learning rate was used in the following 18 epochs. The cross-entropy loss function was used.

[0041] The beneficial effects of this invention are as follows:

[0042] This invention proposes a target segmentation network based on global encoding and asymmetric convolution, which can be used for hoisting safety monitoring. The algorithm effectively represents the appearance of targets, improving the network's ability to identify specific targets and achieving high accuracy. It achieves good performance and real-time speed in segmentation tasks, realizing end-to-end semi-supervised video target segmentation. Attached Figure Description

[0043] Figure 1 This is a schematic diagram of the overall network framework of the present invention;

[0044] Figure 2 This is a diagram of the ResNet50-M network structure of the present invention;

[0045] Figure 3 This is the IR diagram of the global encoder of the present invention;

[0046] Figure 4 This is the FFM diagram of the deep fusion module of the present invention;

[0047] Figure 5 This is a residual structure diagram of the present invention;

[0048] Figure 6 These are the results of different methods of the present invention on a hoisting dataset;

[0049] Figure 7 The figures show the results of different methods of this invention on the DAVIS2017 dataset. Detailed Implementation

[0050] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures. However, the scope of protection of the present invention is not limited to the following embodiments.

[0051] 1. This invention proposes a target segmentation network based on global encoding and asymmetric convolution for fast video target segmentation in hoisting safety monitoring. The overall network consists of four parts: a similarity encoder and global encoder, a deep feature fusion module, a decoder based on residual upsampling, and a feedback loop. Its main components are as follows: Figure 1 As shown.

[0052] The experimental hoisting dataset was constructed using manual annotation. The video data came from the hoisting and transporting of objects, filmed from multiple angles and under different lighting conditions. The videos mainly included cranes, the objects being hoisted and transported, and other objects in the environment. The video clips were converted into a continuous video sequence image. Labels were created using image annotation tools, and the edge contours of the hoisted objects were manually segmented. All pixels within the closed area of ​​the contour line belonged to the target, thus completing pixel-level manual annotation.

[0053] The hoisting dataset contains 6 video sequences and 3 different target categories. Each video sequence contains a single target, and each video segment is 6 to 10 seconds long, generating approximately 300 frames of images. Therefore, the hoisting dataset used in the experiment contains a total of 1530 images, divided into training and validation sets. The training set contains 889 images, and the validation set contains 641 images. Each image is 1920×1080 pixels in size.

[0054] Labeled video sequence images are input into the network. The target region is located using the feedback features, and the original image is cropped to reduce background interference. A global encoder and a similarity encoder serve as two network branches to extract complementary features, improving the network's ability to distinguish targets. Then, an asymmetric convolution module is used to deeply fuse the two complementary features to obtain the target features. Finally, residual upsampling is used to decode the target features and generate a predictive mask, thus achieving target segmentation in the video image.

[0055] Among them, the similarity encoder is based on Siamese network and obtains the similarity features of the target by measuring the similarity between the current frame and the template frame; the global encoder extracts global features in the current frame through the backbone network. The features extracted by the two encoders complement each other, enabling the network to better construct the appearance model of the target.

[0056] Since deep features are richer in semantic information, the deep feature fusion module uses asymmetric convolutional layers to fuse similar features and global features, rather than simply adding or concatenating them. This effectively improves accuracy without significantly increasing the number of network parameters.

[0057] The decoder based on residual upsampling effectively utilizes low-level features through skip connections, fuses features updated from the predicted mask, restores target features, and ultimately generates an accurate segmentation mask. Following the update strategy of the SAT method (State-Aware Tracker / SAT), the feedback loop multiplies the predicted binary mask with the input image and fuses the predicted mask from the previous frame to update the target features. Based on the cropping strategy and switching mechanism in the SAT method, a minimum bounding box is generated using the regression head added in the similarity encoder or the predicted mask from the segmentation network. Based on this bounding box, the location of the target to be searched is determined, and the image of the relatively small target region in the next frame is cropped as the network input. The original input image size of this invention is 1920×1080. Images containing target regions of sizes of 127×127, 303×303, and 257×257 are cropped and input to each branch for feature extraction, making the network focus more on the target and reducing background interference in the image.

[0058] 2. Similarity encoders and global encoders

[0059] The similarity encoder and global encoder are encoders that extract target features and global features, respectively. The similarity encoder uses a SiamFC++ tracking network architecture based on the AlexNet backbone. Following the SiamFC++ network structure and the pruning strategy set by the SAT network, it uses the target region of the initial frame and the target region of the current frame as the template image and search image for network input. Based on a Siamese network, it encodes the similarity between the object and the target appearance in the current frame using feature correlation. For example... Figure 1 As shown, the template image size is 127×127, the search image size is 303×303, and the target given in the template image is used as the target of interest in the entire video sequence to guide the network to learn the target features.

[0060] The global encoder extracts background features based on the IR module, such as... Figure 3 As shown. The backbone network in the module is a variant of ResNet50, namely ResNet50-M. The specific structures of stage1, stage2, stage3, and stage4 are as follows. Figure 2To acquire more global information, this invention is inspired by Inception-ResNet. It modifies the receptive field by using convolutional kernels of different sizes, increasing the receptive field with smaller kernels, and enhancing feature extraction by altering channels. Similarly, for the input of the global encoder, a relatively small region is cropped around the target to reduce background interference, allowing the global encoder to extract more detailed and richer features from the target in the input image. However, the features extracted by the global encoder are global features and lack the ability to distinguish targets. The correlation features of the similarity encoder appropriately supplement the global encoder's ability to distinguish between targets and background interference. The target features extracted by both encoders make the segmentation network more robust.

[0061] 3. Deep Feature Fusion Module

[0062] While current methods have achieved significant improvements in accuracy and speed, most simply concatenate deep features, resulting in low discriminative power and segmentation accuracy for different targets. In the SAT network, feature fusion is achieved by simply adding the similarity feature maps extracted from the deep network to feature maps from other network branches, failing to fully utilize the richer features at lower levels. Therefore, this invention proposes a deep feature fusion module (FFM), such as... Figure 4 As shown. To overcome the locality of convolution operations, a Global Convolution Block module from global convolution is used, which effectively expands the receptive field by combining 1×k+k×1 and k×1+1×k convolutional layers (k=3 in this invention). The similarity feature map (corr_Fea) and the global feature map (S4) obtained from the encoder branch are used as inputs. The similarity feature map undergoes convolution operations on the channels, is added to the global feature map, and then undergoes an asymmetric convolution operation in the global convolutional layer. The output passes through a residual block, as shown. Figure 4 As shown, features are effectively fused to obtain richer target features. The asymmetric convolutional layer of this invention divides a k×k convolutional kernel into two asymmetric convolutional kernels, k×1 and 1×k, to extract different features through different receptive fields; on the other hand, using asymmetric convolution can also reduce the increase in the number of network parameters.

[0063] 4. Decoder based on residual upsampling

[0064] Most existing methods focus more on the feature extraction and encoding stage, neglecting the decoding stage. To ensure that information such as edge details is not lost, the network makes full use of shallow features during the decoding process. First, the target features updated by the feedback loop are convolved, and the number of output channels is adjusted to 256. Then, they are concatenated with the features from the deep feature fusion module. To fully utilize the feature information of the shallow network, based on the idea of ​​residual learning, and to obtain more spatial semantic information, the low-level features extracted by the global encoder backbone network are bilinearly interpolated and upsampled with the high-level features in a skip connection manner, finally generating a prediction mask.

[0065] 5. Experimental Comparison and Analysis

[0066] (1) Evaluation indicators

[0067] This invention adopts the standard evaluation metrics of the benchmark dataset DAVIS2017, namely region similarity Jaccard (J) and contour accuracy F-score (F). Region similarity is the intersection-union ratio (IUU) between the predicted binary segmentation mask and the labeled ground truth, expressed as a ratio. The numerator is the intersection of the foreground values ​​of the predicted mask and the labeled ground truth, and the denominator is the union of the two. The formula is expressed as:

[0068]

[0069] Where Y represents the predicted value and T represents the labeled ground truth value. Contour accuracy describes whether the boundary of the predicted segmentation result corresponds to the boundary of the labeled ground truth value. Its definition is:

[0070]

[0071] Where P represents precision and R represents recall. This invention also uses the mean of region similarity J and contour precision F, denoted as J&F, as a comprehensive evaluation index.

[0072] When training the network of this invention, sample data from the hoisting dataset, DAVIS2017 training set, COCO training set, and YouTube-VOS training set were used. The entire network training process consisted of 20 epochs, i.e., the number of training iterations, and took a total of 3 days to complete. 150,000 images were randomly selected from the training samples for each epoch to ensure that as many training samples as possible were trained after 20 epochs. The batch size was set to 32 during training, and an SGD optimizer with a momentum coefficient of 0.9 was used, employing the cross-entropy loss function as the network's loss function. A warmup optimization method was used to stabilize the model; in the first two epochs, the learning rate was linearly increased from 10⁻⁵ to 10⁻², and cosine annealing was used for the remaining 18 epochs. PyTorch was used to build the network, and the overall network structure is as follows: Figure 1 As shown, the hardware environment used is a GPU server equipped with two 3090 GPUs and 16GB of memory; the software environment is Ubuntu 16.04, CUDA 9.0, Python 3.7 and the deep learning framework PyTorch 1.0, and the loss function is the cross-entropy loss function.

[0073] (2) Results on different datasets

[0074] Experiments were conducted on the hoisting dataset and the DAVIS2017 dataset to verify the accuracy of the algorithm of this invention.

[0075] 1) DAVIS2017 dataset

[0076] Experimental results on the DAVIS2017 dataset are as follows: Figure 7As shown, the bold text represents the results of the algorithm in this paper. The comprehensive evaluation index reached 0.708, and the speed on the GPU reached 31 FPS. It was compared with 20 other algorithms, including 6 online learning (OL) methods and 14 offline learning methods. Online learning methods can achieve high segmentation accuracy by fine-tuning each frame, but due to the slow computation speed, most online learning methods do not have publicly available speed indicators for comparison. Among the offline learning methods, some methods such as TVOS, SiamMask, and SAT are relatively fast, but their accuracy is not as high as the method in this paper. SiamMask, like the method in this paper, can also be used for simultaneous video target segmentation and tracking, but the accuracy of the SiamMask method in target segmentation is not high. MAROI, GCSeg, TAB

[85] and others have recently used optical flow, target proposal, attention and other methods to obtain the motion information of objects and perform target segmentation. The STM network makes full use of the information of all frames in the video and achieves good segmentation results, but because it calculates the features of all frames, it greatly increases the amount of computation and cannot achieve real-time speed. In comparison, the method presented in this paper remains highly competitive in terms of accuracy and speed.

[0077] 2) Lifting Dataset

[0078] Experimental results on the hoisting dataset Figure 6 The study compared 11 other algorithms, including 2 online learning methods and 9 offline learning methods, among which COSNet is an unsupervised learning method. Figure 6 The bold text indicates the results of the algorithm of this invention. The overall performance index (J&F) is 0.976, and the running speed on the GPU reaches 26.16 FPS. Compared with SAT, the accuracy of the method of this invention is improved by 5.1%. It ranks second among all compared methods, outperforming most of them. Among them, the top-ranked STM* method pre-trains the weights of the entire network on the large image classification dataset ImageNet, training samples for a longer time. The algorithm of this invention is only 0.7 percentage points behind STM*, while the best result of the STM network without pre-training is only 0.664. It can be seen that most methods sacrifice running speed when improving accuracy, while the method of this invention achieves a better balance between speed and accuracy.

[0079] The above-described embodiments are merely one implementation of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention should be determined by the appended claims.

Claims

1. A video target segmentation method based on global encoding and asymmetric convolution, characterized in that, Includes the following steps: First, the acquired labeled video sequence images are input into the network. The target region is located by the feedback features. The original image is cropped to reduce background interference. The global encoder and the similarity encoder are used as two network branches to extract complementary features, which improves the network's ability to distinguish targets. Then, the two complementary features are deeply fused using an asymmetric convolution module to obtain the target features. Finally, residual upsampling is used to decode the target features and generate a prediction mask, thereby achieving target segmentation in the video image; The proposed global encoder fully utilizes information from the entire image, which is beneficial for distinguishing background information from target features and further recognizing the target's appearance. It also employs an asymmetric convolution module to achieve deep feature fusion, specifically including the following steps: Step 1: Obtain the dataset: The experimental hoisting dataset was constructed using manual annotation. The video data came from the hoisting and transporting of objects, filmed from multiple angles and under different lighting conditions. The videos mainly included cranes, the objects being hoisted and transported, and other objects in the environment. The video clips were converted into continuous video sequence images. Labels were created using image annotation tools, and the edge contours of the hoisted objects were manually segmented. All pixels within the closed area of ​​the contour line belonged to the target, thus completing pixel-level manual annotation. The dataset was then divided into training and validation sets. Step 2: Establish a video object segmentation model: The overall network consists of four parts: a similarity encoder and a global encoder, a deep feature fusion module, a decoder based on residual upsampling, and a feedback loop, as detailed below: Since deep features are rich in information, an asymmetric convolution module is used, combining 1×k+k×1 and k×1+1×k convolutional layers to effectively expand the receptive field; deep feature fusion is performed on the similarity features and global features obtained from the encoder branches. To ensure no loss of edge detail, during decoding, based on the idea of ​​residual learning, the network fully utilizes shallow features. To obtain more spatial semantic information, low-level features extracted by the global encoder backbone network are bilinearly interpolated and upsampled with high-level features via skip connections to generate a prediction mask. Following the update strategy of the SAT method, the feedback loop multiplies the predicted binary mask with the input image and fuses the prediction mask from the previous frame to update the target features. According to the cropping strategy and selection mechanism in the SAT method, the prediction mask from the regression head added in the similarity encoder or the segmentation network is used to generate a minimum bounding box. Based on this bounding box, the location of the target to be searched is determined, and the image of the relatively small target region in the next frame is cropped as the network input. Step 3: Training: Since the similarity encoder is based on the SiamFC++ network, it uses weights pre-trained on multiple object tracking datasets according to the SiamFC++ training strategy; the feature extraction backbone network ResNet50-M of the global encoder is pre-trained on the ImageNet dataset. Step 4: Complete the establishment of a video target segmentation model based on global encoding and asymmetric convolution, and conduct experiments and analysis.

2. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step one, the labeling tool labelme is used to create the labels.

3. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step one, the hoisting dataset contains 6 video sequences and 3 different target categories. Each video sequence contains a single target, and each video segment is 6 to 10 seconds long. Approximately 300 frames of images are generated and divided into training and validation sets. Each image is 1920×1080 in size.

4. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step two, k = 3.

5. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step two, the original input image size is 1920×1080. Images containing the target region with sizes of 127×127, 303×303, and 257×257 are cropped and input into each branch for feature extraction, so that the network pays more attention to the target and reduces background interference in the image.

6. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step two, the similarity encoder and the global encoder are specifically as follows: The similarity encoder and the global encoder are encoders for extracting target features and global features, respectively. The similarity encoder is based on the SiamFC++ tracking network architecture with the AlexNet backbone. Referring to the SiamFC++ network structure, it follows the cropping strategy set by the SAT method. The target regions of the initial frame and the current frame are used as the template image and search image for network input. Based on Siamese network, it encodes the similarity between the appearance of the object and the target in the current frame using feature correlation. The template image size is 127×127, and the search image size is 303×303. The target given in the template image is used as the target of interest in the entire video sequence to guide the network to learn target features. The global encoder extracts background features based on the IR module. The backbone network in the module is a variant of ResNet50, namely ResNet50-M. In order to obtain more global information, the field of view is changed according to the size of the convolution kernel. The receptive field is increased by using small convolution kernels, and the changes in channels can enhance feature extraction. For the input of the global encoder, a relatively small region is cropped around the target. The features extracted by the global encoder are global features, which lack the ability to distinguish targets. The relevance features of the similarity encoder provide an appropriate supplement for the global encoder to distinguish targets from background interference. The target features extracted by the two encoders make the segmentation network more robust.

7. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step two, the deep feature fusion module specifically includes: To overcome the locality of convolution operations, the GlobalConvolution Block module in global convolution is adopted. By combining 1×k+k×1 and k×1+1×k convolutional layers, the receptive field is effectively expanded. The similarity feature map and the global feature map obtained from the encoder branch are used as inputs. The similarity feature map is convolved on the channel and added to the global feature map. Asymmetric convolution operation is performed in the global convolutional layer. The output passes through a residual block to effectively fuse features, thereby obtaining richer target features. Asymmetric convolutional layers divide a k×k convolutional kernel into two asymmetric convolutional kernels, k×1 and 1×k, and extract different features through different receptive fields; On the other hand, using asymmetric convolution can also avoid increasing the number of network parameters.

8. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step two, the decoder based on residual upsampling specifically works as follows: To ensure that edge details are not lost, the network makes full use of shallow features during the decoding process. First, the target features updated by the feedback loop are convolved, and the number of output channels is adjusted to 256. Then, they are concatenated with the features of the deep feature fusion module. In order to make full use of the feature information of the shallow network, based on the idea of ​​residual learning, and to obtain more spatial semantic information, the low-level features extracted by the global encoder backbone network are bilinearly interpolated and upsampled with the high-level features in a skip connection manner to finally generate the prediction mask.

9. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step four, the evaluation indicators used in the analysis are as follows: The standard evaluation metrics of the benchmark dataset DAVIS2017 are adopted, namely region similarity Jaccard and contour accuracy F-score. Region similarity is the intersection-union ratio (IUU) between the predicted binary segmentation mask and the labeled ground truth, expressed as a ratio. The numerator is the intersection of the foreground values ​​of the predicted mask and the labeled ground truth, and the denominator is their union. The formula for region similarity J is: Where Y represents the predicted value and T represents the labeled true value; contour accuracy describes whether the boundary of the predicted segmentation result corresponds to the boundary of the labeled true value; the contour accuracy F is defined as: Where P represents precision, R represents recall, and the mean of region similarity J and contour precision F is also used as a comprehensive evaluation index.

10. The video target segmentation method based on global coding and asymmetric convolution according to claim 1, characterized in that, In step three, During network training, sample data from the hoisting dataset, DAVIS2017 training set, COCO training set, and YouTube-VOS training set were used. The entire network training process consisted of 20 epochs, i.e., the number of training iterations. In each epoch, 150,000 images were randomly selected from the training samples for training, ensuring that as many training samples as possible were trained after 20 epochs. The batch size was set to 32, and the SGD optimizer with a momentum coefficient of 0.9 was used, employing the cross-entropy loss function as the network's loss function. A warm-up optimization method was used to stabilize the model; in the first two epochs, the learning rate was set to 10%. -5 linearly increase to 10 -2 The last 18 epochs use a cosine annealing learning rate; the loss function is the cross-entropy loss function.

Citation Information

Patent Citations

  • Video target segmentation method of space-time component graph

    CN111652899A

  • Video object segmentation by reference-guided mask propagation

    US20190311202A1