Video human body behavior recognition method based on multi-dimensional spatio-temporal information excitation

By introducing a multi-dimensional spatiotemporal information excitation module and a multi-scale motion differential attention module into video human behavior recognition, the problems of high computational overhead and insufficient feature extraction in the existing technology are solved, and more efficient video behavior recognition is achieved, which is suitable for applications with limited resources. environment.

CN118628953APending Publication Date: 2024-09-10CHONGQING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410711053.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing video human behavior recognition methods have problems such as high computational overhead, complex training, insufficient extraction of salient spatiotemporal features, and lack of efficient motion representation. It is especially difficult to achieve efficient recognition in environments with limited resources.

Method used

A multi-dimensional spatio-temporal information excitation module is used, combined with a multi-scale motion differential attention module and an adaptive motion information aggregation module, to extract significant spatio-temporal features through multi-scale channel-space excitation, multi-scale channel-time excitation and spatio-temporal dependence excitation branches, and use The motion extraction and motion attention modules capture multi-scale motion information and aggregate spatiotemporal features and motion features to achieve more accurate action classification.

Benefits of technology

It achieves the extraction of richer salient spatiotemporal information and motion information without destroying the original model structure, improves the accuracy and efficiency of video behavior recognition, reduces computational overhead, and is suitable for environments with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628953A
    Figure CN118628953A
Patent Text Reader

Abstract

The invention relates to the field of deep learning and video analysis, and provides a video human behavior recognition method based on multi-dimensional spatio-temporal information excitation. The method comprises the following steps: inputting processed video frame image data into a video action classification model based on 2D convolution, and calibrating spatio-temporal features learned based on a multi-scale convolution structure along different axial contexts through a multi-dimensional spatio-temporal feature enhancement module; extracting motion information under different spatial and temporal scales through a multi-scale motion difference attention module; aggregating the extracted multi-scale motion information through an adaptive motion information aggregation module; and accumulating and aggregating the spatial-temporal characteristics and the motion characteristics learned by the final model, and inputting the accumulated and aggregated spatial-temporal characteristics and the motion characteristics into a classifier of which the structure is a full connection layer to obtain a final motion classification result. According to the method, the model can be helped to more effectively learn significant spatial-temporal characteristics, and calculation consumption and classification accuracy can be better balanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of deep learning and video analysis, and in particular to a video human behavior recognition method based on multi-dimensional spatiotemporal information excitation. Background Art

[0002] Video human behavior recognition involves understanding and analyzing various human behaviors from videos and accurately classifying them. It is an important basic research topic in the field of computer vision. At present, this technology has been widely used in various fields such as visual monitoring systems, autonomous navigation systems, video retrieval, etc., and has high industrial application value. In the past decade, deep learning models have achieved great success in the field of computer vision, and have replaced cumbersome manual extraction methods to become the mainstream method in the field of video behavior recognition. At present, video-based spatiotemporal modeling methods are mainly divided into four categories: methods based on two-stream networks, methods based on 3D convolution, methods based on ViT (Vision Transformer), and methods based on 2D convolution.

[0003] The two-stream network-based method uses RGB and optical flow maps as inputs to the spatial network branch and the temporal network branch, and obtains the final classification result by fusing the classification results of the two branches in the later stage of the network. In view of the inability of the two-stream convolutional network to model long-range temporal information, Wang et al. [1] first proposed a sparse sampling method. The input video is first divided into K segments, and then a frame is randomly sampled from each segment as a segment for classification. The category scores of different segments are fused using a segment consensus function to obtain a video-level prediction, and then the predictions of all modes are fused to produce the final prediction result. Although the two-stream structure can effectively combine the spatial information and temporal information of the action, the extraction of temporal information requires dense optical flow information as a carrier, which leads to a huge amount of calculation. As the data set increases, the extraction of optical flow information becomes more complicated.

[0004] 3D convolution-based methods use 3D convolution kernels to model motion features and appearance features simultaneously, and learn long-term temporal information by stacking local spatiotemporal convolutions. The I3D (Inflated 3D ConvNet, I3D) model proposed by Carreira et al. [2] "inflates" all 2D convolution filters used in the Inception V1 architecture into 3D convolutions and carefully selects the temporal kernel size in the early layers. The network is trained on large-scale datasets to obtain better optimization results. In order to alleviate the computational overhead, Tran et al. [3] combined residual learning and 3D convolution decomposition to demonstrate the importance of temporal information, and proposed to decompose 3D convolution into 2D spatial convolution + 1D temporal convolution R (2 + 1) D ((2 + 1) Dimensional ResNets) network to improve the model effect. Although the 3D convolution-based method avoids the extraction of heavy optical flow information, it is prone to problems such as overfitting and slow convergence. In addition, as the video dataset continues to expand, the computational cost of 3D convolution will increase exponentially.

[0005] ViT-based methods are relatively popular in recent years. They have reached the current state-of-the-art level by learning spatiotemporal information through spatiotemporal self-attention. The RViT framework proposed by Yang et al. [4] is equipped with attention to establish the interaction between the current frame input and the previous hidden state, thereby aggregating the global level of inter-frame features through the hidden state time series. RViT processes the video to capture spatial and temporal features by repeatedly executing the current frame and the previous hidden state. However, due to the complexity and large size of self-attention calculations, the training and inference time cost of ViT-based methods increases exponentially, making it difficult to deploy and train in a limited resource environment, and is not considered within the scope of this technology.

[0006] Compared with the above three methods, the 2D convolution-based method is lighter and has faster reasoning, and has become the first choice for lightweight models. Ji et al. [5] shifted the channels of some input features along the time axis so that each frame of the image can exchange information with adjacent frames to capture temporal information. The proposed TSM (Temporal Shift Module, TSM) module was inserted into the classic video network TSN (Temporal Segment Networks, TSN) [1] to perform complex spatiotemporal feature learning. Heeseung K et al. [6] introduced advanced operators such as inter-frame correlation calculation, displacement estimation, and feature transformation to establish cross-frame correspondence, replacing the optical flow that requires heavy calculation with lightweight motion features that can be learned within the model. Limin et al. [7] simultaneously modeled long-term and short-term temporal information by calculating the difference between frames with short and long time intervals, achieving excellent classification results.

[0007] Although the above existing related video human behavior recognition solutions have achieved excellent results, there are still some problems:

[0008] (1) High computational overhead and complex and difficult training: Although methods based on dual-stream, 3D convolution, and ViT can achieve excellent recognition accuracy, they require huge computing resources, which limits model training and application under conditions of limited resources and environment.

[0009] (2) Insufficient extraction of salient spatiotemporal features: The actions in the video are sparse and diverse, and a single spatiotemporal convolution cannot focus on the spatiotemporal regions that are more helpful for action recognition.

[0010] (3) Lack of efficient motion representation: Current motion feature extraction generally uses methods such as optical flow, 3D convolution stacking, and motion difference. The first two methods have high computational overhead, and the latter method can only extract rough motion information between adjacent frames. It is difficult to effectively extract multi-level motion information at different visual scales.

[0011] References:

[0012] [1]WANG L,

[0013] [2]CARREIRA J, ZISSERMAN A. Quo Vadis, Action Recognition? A New ModelAnd The Kinetics Dataset[C]. / / 2017Computer Vision and Pattern Recognition(CVPR).HONOLULU,HI,IEEE,2017:4724-4733.

[0014] [3]D TRAN,WANG H,TORRESANI L,et al.A Closer Look At SpatiotemporalConvolutions For Action Recognition[C] / / IEEE Conference on Computer Visionand Pattern Recognition,2018:6450-6459.

[0015] [4] Jiewen Y, Xingbo D, Liujun L, Chao Z, Jiajun S, Dahai Y, et al. Recurring the Transformer for Video Action Recognition[C] / / Computer Vision and Pattern Recognition, 2022, 2022(1): 14043-14053.

[0016] [5]LIN J,GAN C,HAN S.TSM: Temporal Shift Module For Efficient VideoUnderstanding[C] / / 2019IEEE International Conference on Computer Vision:IEEE,2019:7082-7092.

[0017] [6]KWON H,KIM M,KWAK S,et al.MotionSqueeze:Neural Motion FeatureLearning for Video Understanding[C] / / European Conference on Computer Vision(ECCV),2020:345-362.

[0018] [7]WANG L, TONG 2, JI B, et al.TDN: Temporal Difference Networks for Efficient Action Recognition[C] / / IEEE Conlerence on Computer Vision andPattern Recognition.Computer Vision Foundation.IEEE,2021:1895 1904. Summary of the invention

[0019] The embodiments of the present invention provide a method for video human behavior recognition based on multi-dimensional spatiotemporal information excitation, which is used to extract significant spatiotemporal features to achieve more accurate and efficient video behavior recognition.

[0020] In order to achieve the above object, the present invention adopts the following technical solutions:

[0021] Step S1, constructing a video human action recognition dataset: using a frame extraction tool to generate an action frame image sequence, and dividing the action dataset into a training set, a validation set, and a test set according to the action category;

[0022] Step S2, constructing a video human behavior recognition model: using the video human behavior recognition model TemporalSegment Networks (TSN) model as the benchmark model, using the deep learning residual network ResNet50 as the backbone network, constructing a video human behavior recognition model including a multi-dimensional spatiotemporal feature enhancement module, a multi-scale motion difference attention module and an adaptive motion information aggregation module; wherein the video human behavior recognition model includes the following methods:

[0023] Step S201, constructing a multi-dimensional spatiotemporal feature enhancement module to calibrate the spatiotemporal features learned based on the multi-scale convolutional structure along different axis contexts;

[0024] Step S202, constructing a multi-scale motion difference attention module to extract motion information at different spatiotemporal scales;

[0025] Step S203, constructing an adaptive motion information aggregation module for adaptively aggregating the extracted multi-scale motion information;

[0026] Step S204: Aggregate spatiotemporal features and motion features for model training. The spatiotemporal features and motion features learned by the final model are accumulated and aggregated and input into a classifier with a fully connected layer structure to obtain the final action classification result.

[0027] Step S3, execute the model training process: input the divided action frame image sequence into the constructed video human behavior recognition model, repeat the above processing process to iteratively train the constructed video human behavior recognition model until the set number of iterations is reached, and obtain the trained video human behavior recognition model, and use the trained video human behavior recognition model to classify the human actions that need to be classified.

[0028] Preferably, in step S201, the multi-dimensional spatiotemporal feature enhancement module includes three branches, namely, a multi-scale channel-space excitation branch, a multi-scale channel-time excitation branch and a spatiotemporal dependency excitation branch. The three branches respectively apply aggregation operations along the time, space and channel dimensions to re-weight the input features from a multi-axis perspective to obtain a more discriminative spatiotemporal representation.

[0029] Specifically, the specific process of step S201 is:

[0030] Step S20101, construct a multi-scale channel-space excitation branch: use multiple time convolution operators to aggregate multi-scale temporal features, send them into the 2D convolution layer to generate an attention map, and superimpose it on the original feature map to weight the spatial information.

[0031] Step S20102, construct a multi-scale channel-time excitation branch: use multiple spatial convolution operators to aggregate multi-scale spatial features, send them into the 1D convolution layer to generate an attention map, and superimpose it on the original feature map to weight the temporal information.

[0032] Step S20103, construct a spatiotemporal dependent excitation branch: compress the channel to obtain the overall spatiotemporal tensor across channels, send it to the 3D convolutional layer to generate an attention map, and superimpose it on the original feature map to weight cross-channel information.

[0033] Step S20104, superimposing the weighted feature map with the original feature map to perform multi-dimensional spatiotemporal information excitation.

[0034] Preferably, in step S202, constructing a motion difference attention module includes a motion extraction module and a motion attention module:

[0035] Step S20201, the output feature map of each stage in the model is subjected to feature extraction of difference information of adjacent frames by a motion extraction module to obtain a rough motion representation;

[0036] In step S20202, the motion attention module uses global average pooling, convolution, and activation functions along the width and height of the feature map to simultaneously emphasize the spatial position information and channel information of the motion to extract a more refined action feature map.

[0037] Furthermore, the adaptive motion information aggregation module constructed in step S203 includes a motion feature alignment module and an adaptive aggregation module:

[0038] Step S20301, the motion feature alignment module uses a convolution operation to align the sizes of the motion feature maps at multiple scales obtained in step S20201 for feature fusion;

[0039] In step S20302, the multiple motion feature maps after feature alignment are subjected to channel splicing, convolution operation, and softmax activation function operation in the adaptive aggregation module to obtain the adaptive weight of each motion feature map, and the motion feature maps are weighted summed using the adaptive weights to obtain a multi-scale motion feature map.

[0040] Furthermore, in step S204, the spatiotemporal features and motion features are aggregated for model training. The spatiotemporal features and motion features learned by the final model are accumulated and aggregated and input into a classifier with a fully connected layer structure to obtain the final action classification result.

[0041] Furthermore, the model training process executed in step S3 is: inputting the model classification result into the cross entropy loss function (Cross Entropy Loss) to obtain the loss result, judging whether the model converges according to the loss result, and if converged, obtaining a trained model; otherwise, updating the model parameters according to the loss result gradient back propagation, and continuing to train the model until the model converges to obtain a trained video human behavior recognition model.

[0042] Compared with the prior art, the present invention has the following technical effects:

[0043] 1. The present invention does not need to destroy the original structure of the original video behavior recognition model;

[0044] 2. The present invention proposes a lightweight multi-dimensional spatiotemporal excitation module in the original model to emphasize significant spatiotemporal information along different dimensions.

[0045] 3. Based on the above technical effects, the present invention configures a multi-scale motion differential attention module for the model to capture motion information at different temporal and spatial scales, and uses dynamic weight generation technology to aggregate multi-scale motion information to extract richer motion information. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, relevant information can be obtained based on these accompanying drawings without paying any creative work.

[0047] Figure 1 An overall framework diagram of a video human behavior recognition model provided by an example of the present invention;

[0048] Figure 2 A framework diagram of a multi-dimensional spatiotemporal information excitation module provided by an example of the present invention;

[0049] Figure 3 A framework diagram of a multi-scale motion difference attention module provided by an example of the present invention;

[0050] Figure 4 A framework diagram of an adaptive motion information aggregation module provided by an example of the present invention;

[0051] Figure 5 A processing flow chart of a method for video human behavior recognition based on multi-dimensional spatiotemporal information excitation provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings.

[0053] Example:

[0054] This embodiment provides a method for video human behavior recognition based on multi-dimensional spatiotemporal information excitation, the method comprising the following steps:

[0055] Step S1, constructing a video human action recognition dataset: using a frame extraction tool to generate an action frame image sequence, and dividing the action dataset into a training set, a validation set, and a test set according to the action category;

[0056] Step S2, constructing a video human behavior recognition model: the overall framework of the model is as follows: Figure 1 As shown in the figure, the Temporal Segment Networks (TSN) model of video human behavior recognition is used as the benchmark model, and the deep learning residual network ResNet50 is used as the backbone network to construct a video human behavior recognition model including a multi-dimensional spatiotemporal feature enhancement module, a multi-scale motion difference attention module and an adaptive motion information aggregation module. The video human behavior recognition model includes the following methods:

[0057] Step S201, constructing a multi-dimensional spatiotemporal feature enhancement module to calibrate the spatiotemporal features learned based on the multi-scale convolutional structure along different axis contexts;

[0058] In step S201, the multi-dimensional spatiotemporal feature enhancement module includes three branches, namely, a multi-scale channel-space excitation branch, a multi-scale channel-time excitation branch, and a spatiotemporal dependency excitation branch. The three branches respectively apply aggregation operations along the time, space, and channel dimensions to re-weight the input features from a multi-axis perspective to obtain a more discriminative spatiotemporal representation.

[0059] Specifically, the specific process of step S201 is:

[0060] Step S20101, construct a multi-scale channel-space excitation branch: This branch considers the correlation between channels and space, and focuses on which actions are more important in which spatial positions. In order to capture the short, medium and long-term important temporal information ignored by the fixed-depth temporal convolution, multiple temporal convolution operators are used to capture the temporal features under different receptive fields. Multi-scale temporal features are aggregated along the time dimension and sent to the 2D convolution layer to generate a channel-space attention map, which is superimposed on the original feature map for feature weighting. Figure 2 As shown in (a), for the video 4D tensor F∈R C×T×H×W Considering the computational cost, we use 3D convolution with K=1 to reduce the dimension of the input features along the channel and obtain the reduced-dimensional feature input F r ∈RC / r×T×H×W The features are input into branches with N different temporal convolution kernels, and group convolution is used instead of traditional convolution to reduce the amount of computation and improve the model capacity. Temporal features of different depths and learnable parameters {α1, .., α i ,..,α N} are multiplied to control the importance of different time scales through gradient-based back propagation. The feature maps with different temporal receptive fields are weighted and added to capture rich temporal information ignored by the fixed temporal convolution. The above process can be expressed as:

[0061]

[0062] On this basis, average pooling is performed along the time dimension to aggregate multi-scale time information. The pooled features are input into a 3D convolution of K = 1×3×3 to generate a channel-space excitation descriptor. The channel is projected back to C and input into the Sigmoid function to rescale and generate a channel-space excitation map M. cs ∈R C×1×H×W , M is multiplied and superimposed with the original input tensor pixels to obtain the weighted feature tensor. The above operation can be expressed as:

[0063]

[0064] Where TP represents the pooling operation along the time axis. δ is the sigmoid activation function.

[0065] Step S20102, construct a multi-scale channel-time excitation branch: This branch considers the channel-time dependency and focuses on which actions change significantly in which time periods. Since the 2D convolutional neural network uses a single spatial convolution kernel and cannot handle complex and changeable scale changes, and human body movements have different visual structures at different spatial scales, different judgment results may appear when observing the same action at different visual scales. Therefore, considering the aggregation of spatial information at different scales, the multi-scale spatial information of the feature map is aggregated using adaptive global pooling and then forwarded to the convolution layer to generate a channel-time attention map and superimpose it on the original feature map for feature weighting. Figure 2 (b), the reduced features are input into different spatial convolution kernels and combined with the learnable parameters {β1,..,β j ,..,β N} multiplication captures rich spatial information. The obtained spatial features are pooled to aggregate multi-scale spatial context. The pooled features are input into K = 3 × 1 × 1 convolution to generate the channel-time excitation descriptor M ct ∈R C×T×1×1 , multiplied and superimposed with the original input feature pixels to obtain the weighted feature The above operation can be expressed as:

[0066]

[0067] Where SP represents pooling along the spatial axis to obtain the global spatial context.

[0068] Step S20103, constructing a spatiotemporal dependency excitation branch: This branch considers the time-space dependency relationship and focuses on which time period and which spatial position local spatiotemporal information is more important. The spatiotemporal information between frames is modeled simultaneously through 3D convolution to avoid the loss of some spatiotemporal information due to single-dimensional modeling. Figure 2 (c) Compress the channels to aggregate cross-channel information and obtain the overall spatiotemporal tensor F across channels st ∈R 1×T×H×W The features are then fed into a K = 3 × 3 × 3 convolution to extract effective local spatiotemporal information in order to fully capture spatiotemporal dependencies. The resulting spatiotemporal weight map M st ∈R 1×T×H×W Multiply and superimpose with the original input tensor pixels to obtain weighted features The above operation can be expressed as:

[0069] M st =δ(Conv 3×3×3 (CP(F st )))

[0070]

[0071] In the formula, CP represents cross-channel information pooling. Compared with traditional 3D convolution, cross-channel spatiotemporal modeling is not only more efficient in calculation, but also enables each channel to perceive the importance of spatiotemporal information.

[0072] Step S20104: superimpose the weighted feature map with the original feature map To carry out multi-dimensional spatiotemporal information stimulation.

[0073] Furthermore, in step S202, a motion difference attention module is constructed including a motion extraction module and a motion attention module:

[0074] Step S20201, construct a motion extraction module: Figure 3 As shown in the figure, the output feature maps of different layers in ResNet50 are subjected to feature extraction of the difference information of adjacent frames by the motion extraction module to obtain a rough motion representation:

[0075]

[0076] Where l represents the number of layers of the ResNet50 model. represents the feature map of the lth layer of the model after reducing the number of channels, D lRepresents the feature difference map of the lth layer of the model.

[0077] Step S20202, construct a motion attention module: transform the rough action representation D l Input to the motion attention module, global average pooling is used along the width and height of the feature map to model the spatial long-range dependency with precise motion feature position information:

[0078]

[0079] In the formula denote the motion difference map of the model layer l after adaptive global average pooling along the width and height dimensions, respectively, and w l ,h l They respectively represent the width and height of the motion difference map of the lth layer of the model.

[0080] Stitching along the spatial dimension The motion difference map and the intermediate feature map f are calculated using 1×1 convolution and nonlinear activation function:

[0081]

[0082] Where G[] represents feature map concatenation along the spatial dimension, Conv is a 1×1 convolution, represents a non-linear activation function.

[0083] Then the intermediate feature map f is split along the spatial dimension to obtain f h ,f w , use 1×1 convolution and sigmoid activation function to simultaneously emphasize the spatial position information and channel information of the motion, and obtain the attention weight vector g in the vertical and horizontal directions h ,g w :

[0084] g h =δ(Conv(f h )),g w =δ(Conv(f w ))

[0085] Where Conv is a 1×1 convolution and δ is a sigmoid activation function.

[0086] Multiply the attention weight vector with the motion difference map to get the motion difference attention map DA l =D l ·(g h +g w ) to extract more detailed motion features.

[0087] Furthermore, the adaptive motion information aggregation module constructed in step S203 includes a motion feature alignment module and an adaptive aggregation module:

[0088] Step S20301, constructing a motion feature alignment module: The motion feature alignment module uses multiple 1×1 convolution operations to align the size of the motion difference attention maps at multiple scales obtained in step S20201 for feature fusion. The specific formula is as follows:

[0089]

[0090] In the formula, Conv l Represents a 1×1 convolution applied at layer l of the model.

[0091] In this example, preferably, the motion difference attention maps generated in multiple model stages are aligned according to the scale of the motion difference attention map generated in the final model stage.

[0092] Step S20302, construct an adaptive aggregation module: Figure 4 As shown, multiple motion difference attention maps after feature alignment The adaptive weight of each motion difference attention map is obtained through channel splicing, convolution operation, and softmax activation function operation in the adaptive aggregation module:

[0093]

[0094] In the formula, w l Represents the weight vector of the motion feature map generated by the lth layer of the model. H represents the softmax activation function, Conv represents 1×1 convolution, and G represents the concatenation of motion difference feature maps along the channel.

[0095] Use adaptive weights to perform weighted summation on the motion feature map to obtain the final multi-scale motion feature map

[0096]

[0097] Step S204, aggregating spatiotemporal features and motion features (F CST +F MMD ) is used for model training. The spatiotemporal features and motion features learned by the final model are accumulated and aggregated and input into a classifier with a fully connected layer structure to obtain the final action classification result.

[0098] Step S3, executing the model training process is: inputting the model classification result into the cross entropy loss function (Cross Entropy Loss) to obtain the loss result, judging whether the model converges according to the loss result, if converged, obtaining a trained model; otherwise, updating the model parameters according to the loss result gradient back propagation, continuing to train the model until the model converges, and obtaining a trained video human behavior recognition model.

Claims

1. A video human behavior recognition method based on multi-dimensional spatiotemporal information excitation, characterized in that: Its workflow includes the following steps: Step S1, constructing a video human action recognition dataset: using a frame extraction tool to generate an action frame image sequence, and dividing the action dataset into a training set, a validation set, and a test set according to the action category; Step S2, constructing a video human behavior recognition model: using the video human behavior recognition model Temporal SegmentNetworks (TSN) model as a benchmark model, using the deep learning residual network ResNet50 as the backbone network, constructing a video human behavior recognition model including a multi-dimensional spatiotemporal feature enhancement module, a multi-scale motion difference attention module and an adaptive motion information aggregation module; the video human behavior recognition model includes the following methods: Step S201, constructing a multi-dimensional spatiotemporal feature enhancement module to calibrate the spatiotemporal features learned based on the multi-scale convolutional structure along different axis contexts; Step S202, constructing a multi-scale motion difference attention module to extract motion information at different spatiotemporal scales; Step S203, constructing an adaptive motion information aggregation module for adaptively aggregating multi-scale motion information; Step S204: Aggregate spatiotemporal features and motion features for model training. The spatiotemporal features and motion features learned by the final model are accumulated and aggregated and input into a classifier with a fully connected layer structure to obtain the final action classification result. Step S3: Execute the model training process: input the divided action frame image sequence into the constructed video human behavior recognition model, repeat the above processing process to iteratively train the constructed video human behavior recognition model until the set number of iterations is reached, and obtain the trained video human behavior recognition model, and use the trained video human behavior recognition model to classify the human actions that need to be classified.

2. The method for video human behavior recognition based on multi-dimensional spatiotemporal information excitation according to claim 1 is characterized in that In step S201, the multi-dimensional spatiotemporal feature enhancement module includes three branches, namely, a multi-scale channel-space excitation branch, a multi-scale channel-time excitation branch and a spatiotemporal dependency excitation branch. The three branches respectively apply aggregation operations along the time, space and channel dimensions to re-weight the input features from a multi-axis perspective to obtain a more discriminative spatiotemporal representation.

3. The method for video human behavior recognition based on multi-dimensional spatiotemporal information excitation according to claim 1 is characterized in that: The specific process of step S201 is: Step S20101, construct a multi-scale channel-space excitation branch: use multiple time convolution operators to aggregate multi-scale temporal features, send them into the 2D convolution layer to generate an attention map, and superimpose it on the original feature map to weight the spatial information. Step S20102, construct a multi-scale channel-time excitation branch: use multiple spatial convolution operators to aggregate multi-scale spatial features, send them into the 1D convolution layer to generate an attention map, and superimpose it on the original feature map to weight the temporal information. Step S20103, construct a spatiotemporal dependent excitation branch: compress the channel to obtain the overall spatiotemporal tensor across channels, send it to the 3D convolutional layer to generate an attention map, and superimpose it on the original feature map to weight cross-channel information. Step S20104, superimposing the weighted feature map with the original feature map to perform multi-view spatiotemporal information excitation.

4. The method for video human behavior recognition based on multi-dimensional spatiotemporal information excitation according to claim 1 is characterized in that: The construction of the motion difference attention module described in step S202 includes a motion extraction module and a motion attention module: Step S20201: The output feature map of each stage of the model is subjected to feature extraction of difference information of adjacent frames by a motion extraction module to obtain a rough motion representation; Step S20202: The motion attention module uses global average pooling, convolution, and sigmoid activation function along the width and height of the feature map to simultaneously emphasize the spatial position information and channel information of the motion to extract a more refined action feature map.

5. The method for video human behavior recognition based on multi-dimensional spatiotemporal information excitation according to claim 1 is characterized in that: The construction of the adaptive motion information aggregation module described in step S203 includes a motion feature alignment module and an adaptive aggregation module: Step S20301: the motion feature alignment module uses multiple convolution operations to align the sizes of the multiple motion feature maps of different scales obtained in step S20201 for feature fusion; Step S20302: After feature alignment, the multiple motion feature maps are subjected to channel splicing, convolution operation, and softmax activation function operation in the adaptive aggregation module to obtain the adaptive weight of each motion feature map, and the motion feature maps are weighted summed using the adaptive weights to obtain a multi-scale motion feature map. According to step S204, the spatiotemporal features and motion features are aggregated for model training. The spatiotemporal features and motion features learned by the final model are accumulated and aggregated and input into a classifier with a fully connected layer structure to obtain the final action classification result.

6. The method for video human behavior recognition based on multi-dimensional spatiotemporal information excitation according to claim 1 is characterized in that: The model training process executed in step S3 is as follows: the model classification result is input into the cross entropy loss function (CrossEntropy Loss) to obtain the loss result, and whether the model converges is determined according to the loss result. If converged, a trained model is obtained; otherwise, the model parameters are updated according to the gradient back propagation of the loss result, and the model is continued to be trained until the model converges to obtain a trained video human behavior recognition model.

Citation Information

Cited By

  • Automatic spontaneous development identification method based on enhanced spatial-temporal characteristic network

    CN119399566A

  • Network security situation assessment method, system and equipment

    CN119420527A