Self-evolution video object information driven target segmentation framework construction method

Through the self-evolving video object information-driven target segmentation framework, the fusion of visual and language features and dynamic kernel generation are used to solve the problems of low video timing information processing efficiency and poor adaptability to dynamic changes in the existing technology, and achieve efficient and accurate Video object segmentation for real-time video analysis.

CN118658103AInactive Publication Date: 2024-09-17NORTHWESTERN POLYTECHNICAL UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410930630.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing video object information-driven target segmentation methods have low efficiency and poor adaptability when processing video timing information and dynamic changes, and lack an effective fusion mechanism, resulting in unstable recognition and segmentation results.

Method used

A self-evolving video object information-driven target segmentation framework is used to extract visual and language features, generate conditional queries and dynamic kernels, build a cross-modal feature pyramid network, and perform instance sequence segmentation processing to achieve end-to-end video object segmentation.

Benefits of technology

Improved processing efficiency and segmentation accuracy, suitable for real-time video analysis applications such as intelligent surveillance and interactive media editing, capable of accurately identifying and tracking dynamic objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658103A
    Figure CN118658103A
Patent Text Reader

Abstract

The invention discloses a self-evolution video object information driven target segmentation framework construction method, which comprises the steps of firstly extracting visual and language features, then performing language query and dynamic kernel generation, then constructing a cross-modal feature pyramid network, and finally performing instance sequence segmentation processing. The invention provides an end-to-end solution from language description to video object segmentation by integrating an advanced computer vision technology and a natural language processing technology, not only improves the processing efficiency, but also enhances the segmentation precision, and is particularly suitable for real-time video analysis applications, such as intelligent monitoring, interactive media editing and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of computer technology, and in particular relates to a method for constructing a self-evolving video object information driven target segmentation framework. Background Art

[0002] The task of video object information driven target segmentation refers to identifying and segmenting the specified target objects in the video by parsing natural language descriptions. This task combines the two fields of computer vision and natural language processing, aiming to improve the machine's ability to understand video content, so that it can accurately identify and locate dynamic objects based on language descriptions in complex visual scenes. Since this technology has extremely high application value in the fields of intelligent monitoring, interactive media editing, target tracking, personnel search and rescue, etc., it has attracted widespread attention and research in the industry. However, on the one hand, this task requires processing and understanding data of two different modalities, vision and language, at the same time, which requires the model to not only analyze the visual information in the image, but also understand the details and context in the language description. On the other hand, the objects in the video may change their position, shape, and even occlusion status over time. The model needs to rely entirely on language descriptions to identify the target objects, which brings great difficulties to video object information driven target segmentation.

[0003] Existing video object information driven target segmentation methods can be divided into two categories:

[0004] Bottom-up methods: This type of method first processes each frame of the image independently to extract visual and language features, and then generates object masks by fusing these features early using decoders such as fully convolutional networks (FCNs). The main disadvantage of this method is that it is usually unable to effectively handle the temporal information and dynamic changes in the video, resulting in unstable recognition and segmentation of objects in consecutive frames.

[0005] Top-down methods: These methods adopt a two-stage strategy, first using an instance segmentation model to identify all possible objects in each frame, and then selecting the object that best matches it based on the language description. Although this approach generally outperforms bottom-up methods in terms of performance, its complex multi-stage process increases the computational burden and may lead to suboptimal overall performance due to inconsistent optimization of each subtask.

[0006] Although these methods are effective to a certain extent, they all have their own limitations, such as low processing efficiency, poor adaptability to dynamic scenes, lack of effective fusion mechanism, resulting in low understanding accuracy, etc. Summary of the invention

[0007] In order to overcome the shortcomings of the prior art, the present invention provides a method for constructing a self-evolving video object information-driven target segmentation framework, which first extracts visual and language features, then performs language query and dynamic kernel generation, then constructs a cross-modal feature pyramid network (CM-FPN), and finally performs instance sequence segmentation processing. By integrating advanced computer vision technology and natural language processing technology, the present invention provides an end-to-end solution from language description to video object segmentation, which not only improves processing efficiency, but also enhances segmentation accuracy, and is particularly suitable for real-time video analysis applications such as intelligent monitoring, interactive media editing, etc.

[0008] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0009] Step 1: For Video For each frame in , a pre-trained convolutional neural network is used to extract visual features. in represents the visual features of the tth frame; the spatial resolution of the visual features is H×W, D represents the number of feature channels, T represents the number of video frames, and I t Represents the t-th frame of video;

[0010] Step 2: For text description Use the language model to process each word l , and obtain the feature vector sequence L represents the length of the text sentence, f i Represents the language features of the i-th word; by pooling the language features of all words, the language features of the text description are obtained C represents the number of text feature channels;

[0011] Step 3: Transform the visual features F v The 1×1 convolution operation is used to reduce the dimension to the same number of channels as the language features, and the visual features after dimensionality reduction are combined with the language features f e Multiply to form a new multi-scale feature map where f′ t The calculation formula is:

[0012] f′ t =Conv1×1(f t )⊙f e (1)

[0013] Among them, Conv1 represents a 1×1 convolution operation, and ⊙ represents a multiplication operation;

[0014] Step 4: Let N represent the number of instances to be queried, based on the language feature f eGenerate a set of conditional queries Q, which are used to identify and locate the objects referenced in the video. The query weights are shared between video frames. The language features f e Repeat N times to match the number of queries; combine Q and visual features F v Input the decoder together, query is converted into dynamic kernel Where N q =T×N represents the total number of queries, which is used to generate segmentation masks from the corresponding feature maps through dynamic convolution, w i represents the weight of the i-th dynamic kernel;

[0015] Step 5: Three lightweight headers are built on top of the decoder, namely the category header, mask header, and bounding box header; the embedded instances are further transformed. The category header is used to determine whether each instance is referenced by a text sentence, the mask header is used to generate mask parameters related to each dynamic kernel, and the bounding box header is used to predict the bounding box position of each referenced object;

[0016] Step 6: Construct a multi-level feature pyramid to perform visual-linguistic feature fusion of the video frames. For the four-layer feature map, set the downsampling factor to [8, 4, 2, 1]; next, the visual features are fused with the language features through a cross-attention mechanism, and an additional 3×3 convolutional layer is applied on the feature map with a spatial stride of 4 to obtain the final feature map. in Represents the final feature map of the t-th frame image, C d Indicates the number of channels of the final feature map; the formula for fusing visual features with language features is as follows:

[0017]

[0018] in is a learnable parameter, Represents the l-th layer feature of the visual feature, H l represents the height of the feature map of the lth layer, W l represents the width of the feature map of the lth layer, f e represents the language feature, C represents the number of feature channels of the encoder, and d head represents the feature dimension of the encoder head;

[0019] Step 7: Dynamic convolution generates mask;

[0020] For each dynamic kernel w in each frame i Perform convolution operation with the corresponding feature map and obtain the segmentation mask The formula is as follows:

[0021]

[0022] in Represents the feature map of the i-th dynamic kernel; Represents the convolution operation;

[0023] Step 8: For queries with N conditions, generate N q = a set of T×N prediction values, which is regarded as the trajectory prediction of N instances on T frames; an instance matching strategy is used to supervise the instance order in the entire sequence, and the prediction set is represented as The prediction for the i-th instance is as follows:

[0024]

[0025] For the tth frame, is a probability scalar indicating whether the instance corresponds to the referent object and the object is visible in the current frame; is a normalized vector that defines the center coordinates, height, and width of the prediction box; is the predicted binary semantic segmentation mask;

[0026] Step 9: Total loss function And several loss functions are defined as follows:

[0027]

[0028]

[0029]

[0030]

[0031] in To match the cost loss, is the classification loss, is the bounding box loss, is the mask loss, λ cls , box , mask are the weights of classification loss, bounding box loss, and mask loss respectively, and y represents the true value. represents the predicted value of the i-th instance in all frames, Represents the predicted bounding box The absolute difference between the real bounding box b; GIoU, Dice, Focal are defined as follows:

[0032]

[0033] Where b, are two bounding boxes, C is the box containing b, The minimum closed area of ​​?

[0034]

[0035] Where s, They are the real mask and the predicted mask respectively;

[0036]

[0037] where α t is the balance factor and γ is the modulation factor.

[0038] Preferably, the convolutional neural network is ResNet or Swin Transformer.

[0039] Preferably, the language model is BERT or RoBERTa.

[0040] The beneficial effects of the present invention are as follows:

[0041] The video object information driven target segmentation framework of the present invention provides an end-to-end solution from language description to video object segmentation by integrating advanced computer vision technology and natural language processing technology. It not only improves processing efficiency but also enhances segmentation accuracy, and is particularly suitable for real-time video analysis applications such as intelligent monitoring and interactive media editing. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of the framework of the present invention.

[0043] Figure 2 This is a diagram showing the actual prediction effect of an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0045] The present invention provides a video object information driven target segmentation framework, which is based on query matching and dynamic convolution mechanism and significantly improves processing efficiency and accuracy.

[0046] The technical solution of the present invention mainly includes four key parts: the first part is to extract video and language features, the second part is language query and dynamic kernel generation, the third part is cross-modal feature pyramid network (CM-FPN), and the fourth part is instance sequence segmentation processing. In the first part, a convolutional neural network (such as ResNet, Swin Transformer) is used to extract multi-scale feature maps of each frame, obtain the visual feature sequence of the video, and use a pre-trained language model (such as RoBERTa) to extract text features from natural language descriptions and obtain language features. In the second part, object queries (conditional queries) are generated based on language expressions. These queries are used as input to the decoder, focusing on finding the referenced objects, and then converted into dynamic kernels through the decoding process. These kernels can capture instance-specific features and generate segmentation masks as convolution filters. In the third part, a four-level feature pyramid is constructed, and feature interactions are performed at each level through a visual language fusion module to achieve more refined visual-language fusion. In the fourth part, a prediction set is generated using conditional queries, and these predictions are regarded as trajectories of N instances in the video frame. The instance sequence is fully supervised through the instance matching strategy. The above four parts effectively realize the efficient conversion from natural language description to video object segmentation, and demonstrate a self-evolving video object information-driven target segmentation method based on query matching and dynamic convolution. The main features and innovations of the present invention include:

[0047] (1) Query generation and matching: The present invention uses natural language descriptions as input, parses the language descriptions through a pre-trained language model, and generates targeted object queries. These queries are processed by the Transformer decoder and directly matched with the target object features in the video frame.

[0048] (2) Application of dynamic convolution kernels: After queries are successfully matched to target objects in video frames, the system generates dynamic convolution kernels based on these queries. These kernels not only capture the key visual features of the objects, but also dynamically adjust according to the changes of the objects in the video, thereby achieving accurate object segmentation.

[0049] (3) Cross-modal feature fusion: Through the cross-modal feature pyramid network (CM-FPN), this framework effectively integrates information from visual and language modalities, enhancing the model's ability to understand the subtle differences in complex video content and language descriptions.

[0050] (4) Adaptive instance tracking: In continuous video frames, the present invention realizes adaptive tracking of target objects through instance sequence segmentation processing components. Even when the object changes dynamically (such as moving, occlusion, etc.), the system can accurately track and update the state of the object.

[0051] (5) End-to-end reasoning capability: In the reasoning stage, the present invention selects the query with the highest average score as the final result and directly outputs the mask prediction of the target object, thereby realizing end-to-end processing from input language description to output video object mask.

[0052] Example:

[0053] The present invention provides a video object information driven target segmentation framework, and the specific process is as follows:

[0054] 1. Visual feature extraction;

[0055] Assume that the input video has T = 10 frames, the original size of each frame is 224 × 224 pixels, and ResNet50 is used as the visual encoder to obtain visual features. in

[0056] 2. Extraction of text features;

[0057] The given text description sentence is decomposed into words, L = 5 is the number of words, and the text feature embedding dimension is 768. After word embedding, the feature vector sequence corresponding to each word is obtained By pooling the features of all words, we can obtain the feature representation of the entire sentence.

[0058] 3. Conditional query and dynamic convolution kernel generation;

[0059] Based on the input language description, a set of conditional queries are generated, which are specifically used to identify and track the objects described in the video. The number of query instances N = 5, the input language feature f e and N to the encoder to get the query condition (The dimension of each query is adjusted to 256).

[0060] Each frame feature in the video Perform attention calculation together with query Q to obtain the query vector (N) for each frame q = 10 × 5). The query vectors are input into the decoder together, and these queries are converted into dynamic kernels. Used to generate segmentation masks from the corresponding feature maps through dynamic convolution.

[0061] 4. Feature pyramid and cross-modal fusion;

[0062] The multi-scale features of the image and language features f e After fusing each level of feature map, we get the fused feature map.

[0063] 5. Segmentation mask generation

[0064] Each dynamic convolution kernel And the corresponding feature map Perform dynamic convolution operation to obtain the final segmentation mask

[0065] 6. Environment Configuration

[0066] During training, ResNet is used as the video feature extractor, RoBERTa is selected as the language model, a 4-layer encoder and a 4-layer decoder are used, the number of feature channels of the encoder is C=256, and the number of conditional queries is set to 5; the Adam optimizer is used because the Adam optimizer can effectively adjust the learning rate when processing very deep neural networks, which is suitable for complex data and model structures; the initial learning rate is set to 1e-4. During the training process, in order to more finely control the convergence speed of the model, the learning rate is reduced to 10% of the original in the 15th and 30th epochs. In addition, the batch size is set to 16. In the first 30 epochs of training, the dynamic convolution kernel is updated according to the loss back propagation, and then remains fixed so that the model can focus on refining the learning of other parts in the later training. The model as a whole is trained for 50 epochs.

[0067] 7. Model Application

[0068] Through the above training process, the model with the smallest loss function value is selected for testing. The model parameters are fixed, and the video and the corresponding query text are input. After feature extraction, conditional query and dynamic convolution kernel generation, and cross-modal feature fusion, the mask of the query target object can be directly obtained through dynamic convolution. This experiment was tested on Ref-Youtube-VOS, and the generated results are as follows: Figure 2 The results show that the information-driven target segmentation task of video objects can be completed by directly generating semantic masks and detection boxes of objects in all frames without post-processing based on a very simple and unified framework of query matching and dynamic convolution.

Claims

1. A method for constructing a self-evolving video object information driven target segmentation framework, characterized in that: The steps include: Step 1: For Video For each frame in the image, a pre-trained convolutional neural network is used to extract visual features. in represents the visual features of the tth frame; the spatial resolution of the visual features is H×W, D represents the number of feature channels, T represents the number of video frames, and I t Represents the t-th frame of video; Step 2: For text description Use the language model to process each word l , and obtain the feature vector sequence L represents the length of the text sentence, f i Represents the language features of the i-th word; By pooling the language features of all words, we can obtain the language features of the text description. C represents the number of text feature channels; Step 3: Transform the visual features F v The 1×1 convolution operation is used to reduce the dimension to the same number of channels as the language features, and the visual features after dimensionality reduction are combined with the language features f e Multiply to form a new multi-scale feature map where f′ t The calculation formula is: f′ t =Conv1×1(f t )☉f e (1) Among them, conv1 represents a 1×1 convolution operation, and ⊙ represents a multiplication operation; Step 4: Let N represent the number of instances to be queried, based on the language feature f e Generate a set of conditional queries Q, which are used to identify and locate the objects referenced in the video. The query weights are shared between video frames. The language features f e Repeat N times to match the number of queries; combine Q and visual features F v Input the decoder together, query is converted into dynamic kernel Where N q =T×N represents the total number of queries, which is used to generate segmentation masks from the corresponding feature maps through dynamic convolution, w i represents the weight of the i-th dynamic kernel; Step 5: Three lightweight headers are built on top of the decoder, namely the category header, mask header, and bounding box header; the embedded instances are further transformed. The category header is used to determine whether each instance is referenced by a text sentence, the mask header is used to generate mask parameters related to each dynamic kernel, and the bounding box header is used to predict the bounding box position of each referenced object; Step 6: Construct a multi-level feature pyramid to perform visual-linguistic feature fusion of the video frames. For the four-layer feature map, set the downsampling factor to [8, 4, 2, 1]; next, the visual features are fused with the language features through a cross-attention mechanism, and an additional 3×3 convolutional layer is applied on the feature map with a spatial stride of 4 to obtain the final feature map. in Represents the final feature map of the t-th frame image, C d Indicates the number of channels of the final feature map; the formula for fusing visual features with language features is as follows: in is a learnable parameter, Represents the l-th layer feature of the visual feature, H l represents the height of the feature map of the lth layer, W l represents the width of the feature map of the lth layer, f e represents the language feature, C represents the number of feature channels of the encoder, and d head represents the feature dimension of the encoder head; Step 7: Dynamic convolution generates mask; For each dynamic kernel w in each frame i Perform convolution operation with the corresponding feature map and obtain the segmentation mask The formula is as follows: in Represents the feature map of the i-th dynamic kernel; Represents the convolution operation; Step 8: For queries with N conditions, generate N q = a set of T×N prediction values, which is regarded as the trajectory prediction of N instances on T frames; an instance matching strategy is used to supervise the instance order in the entire sequence, and the prediction set is represented as The prediction for the i-th instance is as follows: For the tth frame, is a probability scalar indicating whether the instance corresponds to the referent object and the object is visible in the current frame; is a normalized vector that defines the center coordinates, height, and width of the prediction box; is the predicted binary semantic segmentation mask; Step 9: Total loss function And several loss functions are defined as follows: in To match the cost loss, is the classification loss, is the bounding box loss, is the mask loss, λ cls , box , mask are the weights of classification loss, bounding box loss, and mask loss respectively, and y represents the true value. represents the predicted value of the i-th instance in all frames, Represents the predicted bounding box The absolute difference between the real bounding box b; GIoU, Dice, Focal are defined as follows: in are two bounding boxes, C is the The minimum closed area of ​​? in They are the real mask and the predicted mask respectively; where α t is the balance factor and γ is the modulation factor.

2. The method for constructing a self-evolving video object information driven target segmentation framework according to claim 1, characterized in that: The convolutional neural network is ResNet or Swin Transformer.

3. The method for constructing a self-evolving video object information driven target segmentation framework according to claim 1, characterized in that: The language model is BERT or RoBERTa.

Citation Information

Cited By

  • Power transmission channel image ground object intelligent segmentation method and device

    CN121259459A