Small sample behavior identification method based on edge guidance motion information improvement network

By introducing an edge information extractor and a motion information enhancement module into small-sample behavior recognition, combined with sparse time sampling and self-gating mechanisms, the problem of failing to effectively utilize video spatiotemporal information in the existing technology is solved, and higher recognition is achieved. Accuracy and generalization ability.

CN118658199AActive Publication Date: 2024-09-17XIAMEN UNIV +1

Patent Information

Application Number
CN202410686731.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing small-sample behavior recognition methods fail to effectively utilize edge information and motion information in videos, resulting in low generalization capabilities and difficulty in achieving accurate recognition when the amount of annotated data is insufficient.

Method used

A network structure based on an edge information extractor and a motion information enhancement module is used to capture the edge information and motion-sensitive features of video frames through sparse temporal sampling and self-gating mechanisms, and fuse them to improve recognition performance.

Benefits of technology

It significantly improves the accuracy and generalization ability of small sample behavior recognition, which is better than mainstream methods. Especially when the amount of data is insufficient, it can effectively use the spatiotemporal information in the video for accurate recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658199A
    Figure CN118658199A
Patent Text Reader

Abstract

The invention discloses a small sample behavior recognition method based on an edge guidance motion information promotion network, and relates to a computer vision technology. The method comprises the following steps: A, giving a video data set, and randomly extracting T frames from each video to form a new video frame sequence; b, inputting the video frame sequence into a feature extractor to obtain video frame features; meanwhile, the sampled video frame sequence is input into an edge information extractor to obtain edge information features. And C, respectively inputting the video frame features and the edge information features generated in the step B into a motion information improvement module to obtain improved video frame features and improved edge information features. And D, fusing the two features improved in the step C, inputting the fused features into a predictor to obtain a category prediction result, and generating category loss. And E, inputting the edge information features improved in the step C into a predictor to obtain edge loss, and forming a loss function of the network together with the category loss generated in the step D. Compared with a current mainstream small sample behavior identification method, the classification performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to computer vision technology, and in particular to a small sample behavior recognition method based on edge-guided motion information enhancement network. Background Art

[0002] In recent years, action recognition plays an important role in the multimedia field and has attracted increasing attention due to its diverse applications in traffic management, security monitoring, autonomous driving, and other fields. However, it is still a challenging task because videos usually contain complex temporal information that is difficult to model. The performance of most existing methods is still far below the capabilities of the human visual system. Therefore, the field of action recognition has a deep scientific research value. Deep learning has achieved remarkable success in the field of action recognition. However, modern deep learning methods rely heavily on a large amount of manually annotated data, and the cost of obtaining this data is very high. In contrast, humans can use prior knowledge to learn new concepts even with only a few samples. In order to reduce the dependence on massive data, small sample learning has become a hot research field, which aims to complete the corresponding tasks with limited annotated data.

[0003] Considering that deep learning models may have low generalization ability if they are trained with only a small amount of labeled data, many researchers have focused on the field of small sample image classification and achieved good results. However, directly applying small sample image classification methods to small sample action recognition tasks does not achieve ideal results. Compared with images, videos have more complex structures and contain rich and important contextual information. Therefore, small sample action recognition is a promising and challenging research direction, and its main challenge lies in how to make full use of the contextual information in the video. Current small sample action recognition methods have achieved good results, but they often ignore the effective use of edge information and motion information. Summary of the invention

[0004] The purpose of the present invention is to address the problem of spatiotemporal information mining in small sample behavior recognition and to provide a small sample behavior recognition method based on edge-guided motion information enhancement network, which can effectively capture edge information and motion information at the same time and has better recognition performance.

[0005] The method of the present invention includes two key components, namely, an edge information extractor and a motion information enhancement module. Specifically, an edge information extractor including a semantic enhancement module is used to obtain edge information features of video frames. Then, the edge information features are used as a guide to be fused with the original features. In addition, the motion information enhancement module can adaptively capture motion-sensitive features in the video. It uses a self-gating mechanism to highlight the motion-sensitive areas of the video from a larger temporal receptive field.

[0006] The present invention comprises the following steps:

[0007] A. Given a small sample action recognition dataset, which contains several videos, each video consists of several video frames; the video is sampled using a sparse temporal sampling strategy to obtain a video frame sequence containing T video frames; specifically, a video V is first randomly divided into T video segments; then, a frame is randomly extracted from each video segment; therefore, the randomly extracted T video frames constitute a new video frame sequence V′={I1,I2,…,I i ,…,I T}; Among them, I i represents a video frame randomly selected from the i-th video clip.

[0008] B. Input the video frame sequence generated in step A into the feature extractor (ResNet-50) to obtain the video frame features F = {f1, f2, ..., f t ,…,f T}; where f t represents the feature of the tth video frame; at the same time, the video frame sequence generated in step A is input into the edge information extractor to obtain the edge information feature E = {e1, e2, …, e t ,…,e T}; Specifically, the edge information extractor includes an edge extraction operator and a semantic enhancement (CE) module;

[0009] For the CE module, assuming that its input is X, it is processed using the value transformation function, query transformation function, and key transformation function respectively; after the value transformation function and the key transformation function, a pyramid pooling block is added to obtain the value vector, query vector, and key vector. After a certain processing of the three, the context information is obtained. The process is defined as follows:

[0010] C=P(V(X))·S([P(K(X))·Q(X)]),

[0011] Among them, C represents context information; Q(·), K(·) and V(·) represent query transformation function, key transformation function and value transformation function respectively; P(·) represents pyramid pooling block; S(·) represents activation function; then the context information is processed by convolution layer, concatenated and fused with the original input X, and finally processed by convolution layer, batch normalization layer and random inactivation layer to obtain the final module output Y; CE module imitates the human brain visual system, enriches spatial information and highlights foreground targets, which is beneficial to extract edge information more effectively.

[0012] C. Input the video frame feature F and edge information feature E generated in step B into the motion information enhancement (ME) module to obtain the enhanced video frame feature And the improved edge information features The ME module uses a global self-gating mechanism to adaptively emphasize motion-related areas in the video and suppress irrelevant information from a larger temporal receptive field. Specifically, a 1×1 2D convolutional layer conv1 is first used to reduce the number of feature channels to reduce computational costs. Then a global average pooling layer is used to obtain the pooled feature X avg ; Then calculate the transformation time difference D between adjacent frames t , which is defined as follows:

[0013]

[0014] Among them, conv2 represents a 1×1 channel transformation convolution layer; the difference value of the last time point is set to 0, that is, D T = 0; in order to expand the temporal receptive field, a self-gating mechanism is used to activate the motion-sensitive area in the video; an accumulation operation is used to calculate the accumulated difference A t , which is defined as follows:

[0015]

[0016] Set A1 = D1; then use a learnable parameter λ to adjust and balance the impact of cumulative difference and time difference; the specific definition is as follows:

[0017] λ=σ(L([A t ,D t ])),

[0018] M t =λ·D t +(1-λ)·A t ,

[0019] Among them, σ(·) represents the sigmoid function; L(·) represents the multi-layer perceptron; [·,·] represents the concatenation operation; M t represents the adjusted motion features; then the adjusted motion features are concatenated together to obtain the final adjusted feature M = [M1, ···, M T ], and then use a convolutional layer conv3 to adjust the number of channels and activate the motion-sensitive channel to obtain the improved features The specific definitions are as follows:

[0020]

[0021] Among them, ⊙ represents the channel multiplication operation;

[0022] D. The enhanced video frame features obtained in step C And the improved edge information features Fusion to enhance edge information features As a guide to enrich features, the fused features are then input into the predictor to obtain classification predictions, and the cross entropy loss is used to calculate the category loss; the enhanced video frame features And the improved edge information features The fusion process is specifically defined as follows:

[0023]

[0024] Among them, conv4 represents a convolutional layer.

[0025] E. The enhanced edge information features obtained in step C Input the predictor and get the marginal loss, which together with the category loss generated in step D constitutes the loss function of the network for training the network.

[0026] In step A, the number of frames in the video frame sequence is set to T=8.

[0027] The present invention proposes an effective small sample behavior recognition method based on edge-guided motion information boosting network, which introduces edge information as guidance. In order to effectively utilize edge information in a video, the present invention proposes an edge information extractor, which includes a novel semantic enhancement module proposed by the present invention. The semantic enhancement module is used to enrich spatial information, highlight foreground objects, and is conducive to more effective extraction of edge information. Then, the edge information is used as a guide and fused with the original features to enhance the features of the video frame. In addition, motion information is of great significance to behavior recognition. Motion information and edge information are complementary, and rich motion information helps to effectively extract edge information, and vice versa. Therefore, the present invention proposes a novel motion information boosting module that can adaptively capture motion information in a video. The module uses a global self-gating mechanism to adaptively emphasize motion-related areas in the video and suppress irrelevant information from a larger temporal receptive field. In this way, the method of the present invention can effectively and comprehensively utilize edge information and motion information to achieve accurate small sample behavior recognition. Moreover, edge information and motion information complement each other, and effectively extracting edge information helps to better capture motion information, and vice versa. This method aims at the problem of spatiotemporal information mining in small sample behavior recognition, and achieves better accuracy than the mainstream small sample behavior recognition method. The present invention is mainly used in the field of behavior recognition when the amount of labeled data is insufficient (i.e., small sample). Therefore, the present invention can be applied to various intelligent systems, such as smart homes, smart monitoring, etc. The present invention can be responsible for analyzing and judging the behavior categories in the video to help the system make the next decision. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is an overall flow chart of an embodiment of the present invention.

[0029] Figure 2 Schematic diagram of the semantic enhancement module (CE module).

[0030] Figure 3 Schematic diagram of the motion information enhancement module. DETAILED DESCRIPTION

[0031] The method of the present invention is described in detail below in conjunction with the accompanying drawings and embodiments. This embodiment is implemented on the premise of the technical solution of the present invention, and an implementation method and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiments.

[0032] like Figure 1 As shown, the implementation of the embodiment of the present invention includes the following steps:

[0033] A. Given a small sample behavior recognition dataset, which contains several videos, each of which consists of several video frames; the present invention uses a sparse temporal sampling strategy to sample videos, with the goal of obtaining a video frame sequence containing T video frames; specifically, firstly, a video V is randomly divided into T video segments; then, a frame is randomly extracted from each video segment; therefore, the randomly extracted T video frames constitute a new video frame sequence V′={I1,I2,…,I i ,…,I T}; Among them, I i represents a video frame randomly selected from the ith video segment; the number of frames in the video frame sequence is set to T=8.

[0034] B. Input the video frame sequence generated in step A into the feature extractor (ResNet-50) to obtain the video frame features F = {f1, f2, ..., f t ,…,f T}; where f t represents the feature of the tth video frame; at the same time, the video frame sequence generated in step A is input into the edge information extractor to obtain the edge information feature E = {e1, e2, …, e t ,…,e T}; Specifically, the edge information extractor includes an edge extraction operator (the Canny operator is selected here) and a semantic enhancement (CE) module;

[0035] like Figure 2As shown in the figure, for the CE module, assuming that the input is X, the value transformation function, query transformation function and key transformation function are used to process it respectively; after the value transformation function and the key transformation function, a pyramid pooling block is added to process the features, and then the value vector, query vector and key vector are obtained. Among them, the pyramid pooling block improves the edge features by generating a hierarchical global context prior containing rich information of different scales. Compared with the simplest global average pooling operation, the pyramid pooling block can retain more spatial relationships and reduce information loss. It first uses a multi-scale pooling kernel to generate multiple pooling feature maps, and then uses a 1×1 convolutional layer to reduce the channel dimension of these multi-scale feature maps. Then, these low-dimensional feature maps are upsampled to obtain new feature maps of the same size as the input feature map of the pyramid pooling block. The upsampled features are then concatenated to obtain the final pyramid pooling features. The above process is defined as follows:

[0036] C=P(V(X))·S([P(K(X))·Q(X)]),

[0037] Among them, C represents context information; Q(·), K(·) and V(·) represent query transformation function, key transformation function and value transformation function respectively; P(·) represents pyramid pooling block; S(·) represents Softmax activation function. Then the context information is processed by convolution layer, concatenated and fused with the original input X, and finally processed by convolution layer, batch normalization layer and random inactivation layer to obtain the final module output Y; CE module imitates the human brain visual system, enriches spatial information and highlights foreground targets, which is beneficial to extract edge information more effectively.

[0038] C. Input the video frame feature F and edge information feature E generated in step B into the motion information enhancement (ME) module to obtain the enhanced video frame feature And the improved edge information features

[0039] like Figure 3 As shown in FIG. 1 , the ME module uses a global self-gating mechanism to adaptively emphasize motion-related areas in the video and suppress irrelevant information from a larger temporal receptive field. Specifically, assuming that its input is X (the video frame feature F and the edge information feature E in the present invention), a 1×1 2D convolution layer conv1 is first used to reduce the number of feature channels to reduce the computational cost. Then, a global average pooling layer is used to process the pooled feature X. avg ; Calculate the transformation time difference D between adjacent frames t , specifically defined as follows:

[0040]

[0041] Among them, conv2 represents a 1×1 channel transformation convolution layer, and t represents the time axis dimension of the video;

[0042] Set the difference value of the last time point to 0, that is, D T = 0; In order to expand the temporal receptive field, a self-gating mechanism is used to activate the motion-sensitive area in the video to obtain the final enhanced features; an accumulation operation is used to calculate the accumulated difference A t , which is defined as follows:

[0043]

[0044] Set A1 = D1; use a learnable parameter λ to adjust and balance the effects of cumulative difference and time difference; the specific definition is as follows:

[0045] λ=σ(L([A t ,D t ])),

[0046] M t =λ·D t +(1-λ)·A t ,

[0047] Among them, σ(·) represents the sigmoid function; L(·) represents the multi-layer perceptron; [·,·] represents the concatenation operation; M t represents the adjusted motion features; then the adjusted motion features are concatenated together to obtain the final adjusted feature M = [M1, ···, M T ], and then use a convolutional layer conv3 to adjust the number of channels and activate the motion-sensitive channel to obtain the improved features (In the present invention, the improved video frame features And the improved edge information features ), which is defined as follows:

[0048]

[0049] Among them, ⊙ represents the channel multiplication operation.

[0050] D. The enhanced video frame features obtained in step C And the improved edge information features Fusion, that is, with the enhanced edge information features As a guide to further enrich video frame features The fused features are then input into the similarity category predictor, that is, the similarity "distance" between the query features and the support features is calculated to classify the query video and determine which category it belongs to in the support set. Finally, the recognition result of the behavior category is obtained, and the cross entropy loss is used to calculate the category loss. The enhanced video frame features And the improved edge information features The fusion process is specifically defined as follows:

[0051]

[0052] Among them, conv4 represents a convolutional layer.

[0053] E. The enhanced edge information features obtained in step C Input the same similarity category predictor as mentioned in step D to obtain the marginal loss, which together with the category loss generated in step D constitutes the loss function of the network, which is used to train the network and optimize the parameters to improve the recognition accuracy of the behavior category mentioned in step D.

[0054] The present invention conducts experiments on four datasets: UCF101, HMDB51, SSv2, and Kinetics, and compares them with other cutting-edge methods. For the sake of fairness, referring to the processing methods of other methods, the present invention crops the video frames to a size of 224*224; uses ResNet-50 pre-trained on ImageNet as a feature extractor; and uses a stochastic gradient descent optimizer to train the network end-to-end. For the experiments conducted on the SSv2 dataset, due to its large amount of data, the learning rate is set to 0.001. For the experiments on other datasets, the learning rate is set to 0.0001. The present invention uses the average accuracy of 10,000 tasks randomly selected from the test set as the final performance evaluation. Table 1 shows the comparative experimental results on the UCF101 and HMDB51 datasets.

[0055] Table 1

[0056]

[0057] Table 2 shows the comparative experimental results on the SSv2 and Kinetics datasets.

[0058] Table 2

[0059]

[0060] The bold in the table indicates the best results in comparison. By observing Tables 1 and 2, it can be found that compared with these cutting-edge methods, the present invention achieves the best classification performance in most cases. For example, it can be seen from Table 2 that compared with the STRM method published at the 2022 CVPR (the top conference in the field of computer vision), on the SSv2 dataset, the present invention has achieved comprehensive leadership in various indicators. Especially in the 1-shot setting, the present invention surpasses STRM in accuracy by as much as 8.2%. This is because when the amount of data is smaller, it is more important to fully mine the information in the data (such as edge information and motion information that are concerned in the present invention) and utilize it. The above comparative experimental results fully verify the effectiveness of the present invention.

[0061] The above embodiments are only preferred embodiments of the present invention and cannot be considered to limit the scope of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the present invention.

Claims

1. A small sample behavior recognition method based on edge-guided motion information boosting network, Features The following steps are involved: A. Given a small sample action recognition dataset containing several videos, sample the videos and randomly extract T frames to form a new video frame sequence; B. Input the sampled video frame sequence obtained in step A into the feature extractor to obtain video frame features; at the same time, input the sampled video frame sequence into the edge information extractor to obtain edge information features; C. Input the video frame features and edge information features generated in step B into the motion information enhancement module to obtain enhanced video frame features and enhanced edge information features; D. Fuse the enhanced video frame features and the enhanced edge information features obtained in step C, and input the fused features into the similarity category predictor, that is, calculate the similarity "distance" between the query features and the support features to classify the query video, determine which category it belongs to in the support set, obtain the recognition result of the behavior category, and calculate the category loss; E. Input the enhanced edge information features obtained in step C into the same similarity category predictor as in step D to obtain the edge loss, which together with the category loss generated in step D constitutes the network loss function, which is used to train the network and optimize the network parameters to improve the recognition accuracy of the behavior category in step D.

2. A small sample behavior recognition method based on edge-guided motion information boosting network as claimed in claim 1, Features In step A, T frames are randomly extracted from each video to form a new video frame sequence, where each video consists of several video frames; a sparse temporal sampling strategy is used to sample the video to obtain a video frame sequence containing T video frames; specifically, a video V is first randomly divided into T video segments, and then a frame is randomly extracted from each video segment; the randomly extracted T video frames form a new video frame sequence V′={I 1 ,I 2 ,…,I i ,…,I T }; Among them, I i represents a video frame randomly selected from the i-th video clip.

3. A small sample behavior recognition method based on edge-guided motion information boosting network as claimed in claim 1, Features The number of frames of the video frame sequence is set to T=8.

4. A small sample behavior recognition method based on edge-guided motion information boosting network as claimed in claim 1, Features In step B, the feature extractor uses ResNet-50, and the video frame feature is obtained by inputting the video frame sequence generated in step A into the feature extractor ResNet-50 to obtain the video frame feature F = {f 1 ,f 2 ,…,f t ,…,f T }; where f t Represents the features of the tth video frame; The edge information extractor is composed of an edge extraction operator and a CE module; the video frame sequence generated in step A is input into the edge information extractor to obtain the edge information feature E = {e 1 ,e 2 ,…,e t ,…,e T }; Specifically, for the CE module, let its input be X, and use the value transformation function, query transformation function, and key transformation function to process it respectively; after the value transformation function and the key transformation function, add the pyramid pooling block to obtain the value vector, query vector, and key vector. After a certain processing of the three, the context information is obtained. The process is defined as follows: C=P(V(X))·S([P(K(X))·Q(X)]) Where C represents context information; Q(·), K(·) and V(·) represent query transformation function, key transformation function and value transformation function respectively; P(·) represents pyramid pooling block; S(·) represents activation function; The context information is processed by the convolution layer, concatenated and fused with the original input X, and then processed by the convolution layer, batch normalization layer and random inactivation layer to obtain the final module output Y; the CE module imitates the human brain visual system, enriches spatial information, highlights foreground targets, and effectively extracts edge information.

5. A small sample behavior recognition method based on edge-guided motion information boosting network as claimed in claim 1, Features In step C, the video frame feature F and edge information feature E generated in step B are respectively input into the ME module to obtain the enhanced video frame feature And the improved edge information features The ME module uses a global self-gating mechanism to adaptively emphasize motion-related areas in the video and suppress irrelevant information from a larger temporal receptive field. Specifically, let its input be X. First, a 1×1 2D convolutional layer conv 1 Reduce the number of feature channels to reduce computational costs; use a global average pooling layer to obtain the pooled feature X avg ; Calculate the transformation time difference D between adjacent frames t , which is defined as follows: Among them, conv 2 Represents a 1×1 channel transformation convolution layer; sets the difference value at the last time point to 0, i.e. D T = 0; in order to expand the temporal receptive field, a self-gating mechanism is used to activate the motion-sensitive area in the video; an accumulation operation is used to calculate the accumulated difference A t , which is defined as follows: Setting A 1 =D 1 ; Use a learnable parameter λ to adjust and balance the impact of cumulative difference and time difference; The specific definition is as follows: λ=σ(L([A t ,D t ])) M t =λ·D t +(1-λ)·A t Among them, σ(·) represents the sigmoid function; L(·) represents the multi-layer perceptron; [·,·] represents the concatenation operation; M t represents the adjusted motion features; then the adjusted motion features are concatenated together to obtain the final adjusted feature M = [M 1 ,···,M T ], and then use a convolutional layer conv 3 Adjust the number of channels and activate the motion-sensitive channels to obtain enhanced features The specific definitions are as follows: Among them, ⊙ represents the channel multiplication operation.

6. A small sample behavior recognition method based on edge-guided motion information boosting network as claimed in claim 1, Features In step D, the enhanced video frame features and the enhanced edge information features obtained in step C are fused, and the fused features are input into the similarity category predictor, that is, the similarity "distance" between the query feature and the support feature is calculated to classify the query video, determine which category it belongs to in the support set, obtain the recognition result of the behavior category, and calculate the category loss. The specific steps include: The enhanced video frame features obtained in step C are And the improved edge information features Fusion, that is, with the enhanced edge information features As a guide, further enrich the enhanced video frame features Then the fused features are input into the similarity category predictor to obtain the recognition result of the behavior category, and the cross entropy loss is used to calculate the category loss; the enhanced video frame features And the improved edge information features The fusion process is specifically defined as follows: Among them, conv 4 Represents a convolutional layer.

Citation Information

Patent Citations

  • Small sample action recognition method based on long and short time sequence feature enhancement and key frame feature extraction

    CN117894079A

  • Few-shot gesture recognition method

    US20230326249A1

Cited By

  • Brain-like small sample behavior recognition algorithm based on motion-guided attention mechanism

    CN119314018A

  • A brain-like small sample behavior recognition algorithm based on motion guided attention mechanism

    CN119314018B