An action recognition method based on parallel attention and dual-stream weight adaptation

By fusing RGB and depth features in the hidden layer and generating a gating matrix, combined with the parallel attention mechanism, the problems of insufficient feature fusion and insufficient robustness in the existing technology are solved, and the accuracy and robustness of human action recognition are improved. sex.

CN114241598BActive Publication Date: 2024-10-15ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111371333.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2024-10-15
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

Existing human action recognition algorithms have single modal information in feature fusion, do not fully utilize the correlation and difference of RGB and depth features, and are susceptible to interference from contextual bias information, affecting robustness.

Method used

A method based on parallel attention and dual-stream weight adaptation is adopted to fuse RGB and depth features in the hidden layer, generate a gated matrix as a weight coordination factor, dynamically combine appearance and depth features, and use a three-dimensional parallel attention mechanism to enhance feature information extraction .

Benefits of technology

It improves the degree of feature fusion, enhances the accuracy and robustness of human action recognition, reduces background information interference, and increases attention to human motion information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114241598B_ABST
    Figure CN114241598B_ABST
Patent Text Reader

Abstract

The present invention discloses an action recognition method based on parallel attention and dual-stream weight adaptation, wherein a three-dimensional parallel attention convolutional network is used to extract sequence features from RGB sequences and depth sequences respectively, and a motion feature representation of the sequence is obtained; at the same time, the two sequences are fused in advance, and a three-dimensional parallel attention convolutional network is used to extract common features; the gating matrix G generated by the common features is used as a weight coordination factor to dynamically coordinate the fusion weights of RGB and depth features, and a fusion feature F with high distinguishability is obtained; finally, the fusion feature F is input into an action classifier after passing through a fully connected layer, and an action recognition result is output. The present invention extracts more reliable feature information in a parallel, synchronous and non-interfering manner to further improve the robustness of context action video recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of human action recognition, and in particular relates to an action recognition method based on parallel attention and dual-stream weight adaptation. Background Art

[0002] Human action recognition plays an important role in video understanding and is often used in human-computer interaction, intelligent monitoring, target detection and other fields. Although single-modality-based recognition algorithms have done a lot of research in capturing action spatiotemporal information, the singleness of its modal information limits the accuracy of the algorithm to a certain extent. Different modalities have the same high-level semantics, and after effective fusion, they can provide richer feature information than single modality.

[0003] Attention plays an important role in human perception. The human visual system tends to focus on some information in the image that assists judgment and ignores irrelevant information. Similarly, the attention mechanism can tell us where to focus and can also change the size of features. Therefore, the attention mechanism is often used in CNN networks to improve algorithm performance. However, the existing attention modules are mostly targeted at traditional 2D convolutional networks, without considering the attention generation in the time dimension, and are not comprehensive enough for 3D convolutional networks.

[0004] At the same time, with the development of artificial intelligence and the popularity of depth sensors, action recognition algorithms based on RGB-D have become one of the research directions that researchers focus on. As an important part of multimodal algorithms, existing feature fusion methods can be roughly divided into two categories: score averaging and direct feature fusion. On the one hand, existing methods based on score averaging fusion mostly treat RGB and depth as separate and unrelated channels. The final prediction result obtained by the score averaging strategy cannot fully utilize the correlation and difference between different modalities, and is easily affected by the biased action prediction of a single model. However, methods based on direct feature fusion mostly perform fusion operations in the fully connected layer at the later stage of the network. When performing fusion operations in the fully connected layer, strong contextual bias information cannot be filtered out, and it is easily disturbed by information such as scene categories and background motion in RGB images. At the same time, the algorithm tends to rely on RGB image information during training, while depth information will be ignored to a certain extent, which has a negative impact on the robustness of the algorithm. Summary of the invention

[0005] In view of the defects of the prior art, the technical problem to be solved by this application is to provide an action recognition method based on parallel attention and dual-stream weight adaptation, which aims to fuse RGB and depth features in the hidden layer in advance to obtain common features, and improve the degree of fusion between features to achieve better performance. Then, the common features are used to generate a gating matrix, which is used as a weight coordination factor to dynamically combine appearance and depth features so that the network can filter out unnecessary background information and focus more on human motion information. At the same time, the three-dimensional parallel attention mechanism will be used to infer the attention map in parallel along three independent dimensions, which will effectively enhance the performance of identifying similar actions by enhancing the key feature information in different actions.

[0006] To achieve the above purpose, the technical solution of this application is as follows:

[0007] An action recognition method based on parallel attention and dual-stream weight adaptation, comprising:

[0008] Select the RGB image and depth image in the original video data as input data, and perform data preprocessing to obtain the RGB image sequence and depth image sequence;

[0009] A three-dimensional parallel attention convolutional network is used to extract the RGB features Fa and depth features Fd corresponding to the RGB image sequence and the depth image sequence, as well as the common features Fc corresponding to the RGB image sequence and the depth image sequence;

[0010] Use the temporal convolution module to perform channel alignment operations on the RGB feature Fa and the depth feature Fd respectively, and obtain the RGB feature Fa′ and the depth feature Fd′ with the same number of channels;

[0011] The common features Fc are processed using a convolutional gating module to obtain a gating matrix G;

[0012] The gating matrix G and 1-G are used as weight coordination factors of RGB feature Fa′ and depth feature Fd′ respectively to obtain the final fusion feature F;

[0013] After passing through the fully connected layer, the fusion feature F is input into the action classifier and the action recognition result is output.

[0014] Furthermore, the RGB image and the depth image in the original video data are selected as input data, and data preprocessing is performed to obtain an RGB image sequence and a depth image sequence, including:

[0015] The RGB image frames and depth image frames in the original video data are selected by adopting the interval frame taking strategy;

[0016] Adjust the size of RGB image frames and depth image frames, perform multi-scale cropping and random horizontal flipping, and generate RGB image sequences and depth image sequences;

[0017] The interval frame taking strategy includes:

[0018] The total number of frames of the original video data is divided by the required number of frames to obtain an average interval, and a frame is randomly selected in each interval to form the required image frame;

[0019] The multi-scale cropping technology includes: randomly selecting the width and height of the cropping area within a certain range, and performing uniform scale cropping on the input data;

[0020] The random horizontal flipping technique includes: randomly determining whether to uniformly perform a horizontal flipping operation on the data.

[0021] Furthermore, the three-dimensional parallel attention convolutional network includes:

[0022] The first feature extraction module, the second feature extraction module, the third feature extraction module, the fourth feature extraction module and the fifth feature extraction module; the RGB image sequence passes through the first feature extraction module and the second feature extraction module in sequence, and outputs the RGB feature Fa; the depth image sequence passes through the third feature extraction module and the fourth feature extraction module in sequence, and outputs the depth feature Fd; the features output by the first feature extraction module and the third feature extraction module are added, and then input into the fifth feature extraction module, and the common feature Fc is output.

[0023] Furthermore, the first feature extraction module and the third feature extraction module respectively include the initial convolution layer and the first and second bottleneck layers of ResNet, and a three-dimensional parallel attention module is added before each bottleneck layer, and the output feature of each bottleneck layer is element-by-element added with the output of the three-dimensional parallel attention module before the bottleneck layer as the final output of the bottleneck layer;

[0024] The second feature extraction module, the fourth feature extraction module and the fifth feature extraction module shown include the third and fourth bottleneck layers of ResNet respectively, and a three-dimensional parallel attention module is added before each bottleneck layer. The output features of each bottleneck layer are added element by element with the output of the three-dimensional parallel attention module before the bottleneck layer as the final output of the bottleneck layer.

[0025] Furthermore, the three-dimensional parallel attention module includes a spatial attention feature extraction module, a temporal attention feature extraction module and a channel attention feature extraction module, which simultaneously extract attention maps along three independent dimensions of space, time and channel, respectively, and then multiply the obtained sub-attention map results with the input features to obtain the attention features of each dimension, and finally add them to the input feature map to obtain the attention features;

[0026] The spatial attention feature extraction module is used to obtain spatial average pooling features and spatial maximum pooling features through average pooling operations and maximum pooling operations respectively after fixing the time and channel dimensions of the input features, and then obtain a 3D spatial attention map through a 3D spatial convolution layer and a Sigmoid activation function;

[0027] The temporal attention feature extraction module is used to fix the spatial and channel dimensions of the input features, obtain the temporal average pooling features and the temporal maximum pooling features through average pooling operations and maximum pooling operations respectively, and then obtain the 3D temporal attention map through a 3D temporal convolution layer and a Sigmoid activation function;

[0028] The channel attention feature extraction module is used to fix the spatial and temporal dimensions of the input features, obtain channel average pooling features and channel maximum pooling features through average pooling operations and maximum pooling operations respectively, and then obtain a 3D channel attention map through a 3D channel convolution layer and a Sigmoid activation function.

[0029] Furthermore, the temporal convolution module includes: a convolution layer with a kernel size of 1, a batch normalization layer, a layer normalization layer and a ReLU activation function.

[0030] Furthermore, the convolution gating module includes a convolution layer with a kernel size of 1, a batch normalization layer, a ReLU activation function and a Sigmoid activation function.

[0031] Furthermore, the gate matrix G and 1-G are used as weight coordination factors of the RGB feature Fa′ and the depth feature Fd′ respectively to obtain the final fusion feature F, including:

[0032]

[0033] in, Represents element-by-element multiplication. Represents element-by-element addition.

[0034] Furthermore, the loss function of the network from the three-dimensional parallel attention convolutional network to the action classifier is:

[0035] L gate = -log(1-G)

[0036] L=L cls +λL gate

[0037] Among them, L cls represents the standard cross entropy loss, L gate represents the gate regularization loss, and λ is the weight coefficient of the regularization term.

[0038] This application proposes an action recognition method based on parallel attention and dual-stream weight adaptation, which utilizes specific features ignored by traditional common feature learning, and dynamically combines appearance and depth-specific feature information with a feature fusion component driven by common features to achieve robust human action recognition. While reducing the interference of ambiguous contextual information, the recognition ability of human action categories is improved. In addition, compared with the serial and staged attention mechanism, the three-dimensional parallel attention mechanism reasonably considers the impact that the order of attention modules may have on the model, and extracts more reliable feature information in a parallel, synchronous and non-interfering manner to further improve the robustness of contextual action video recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 Flowchart of the action recognition method based on parallel attention and dual-stream weight adaptation;

[0040] Figure 2 Schematic diagram of a three-dimensional parallel attention module;

[0041] Figure 3 This is a schematic diagram of a three-dimensional parallel attention convolutional network based on the ResNet-50 model;

[0042] Figure 4 Schematic diagram of the overall network for action recognition based on parallel attention and dual-stream weight adaptation. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] In one embodiment, Figure 1 As shown, an action recognition method based on parallel attention and dual-stream weight adaptation is provided, including:

[0045] Step S1: Select RGB images and depth images in the original video data as input data, and perform data preprocessing to obtain RGB image sequences and depth image sequences.

[0046] In this embodiment, in order to generate different training samples and reduce overfitting, the input video information needs to be preprocessed. This application performs the following preprocessing operations on the input video:

[0047] 1) Video frame selection.

[0048] The RGB image frames and depth image frames in the original video data are selected using an interval frame strategy. Generally speaking, the more picture frames input, the more time series information the network can extract, but too much data will increase the network computing burden. Therefore, in order to input more time series information to the network and reduce the amount of network computing, this application uses a frame rate of 1:4 to sample the RGB image frames and depth image frames.

[0049] The interval frame strategy includes: dividing the total number of frames of the original video data by the required number of frames T to obtain an average interval τ, and randomly selecting a frame in each interval to form a required image frame.

[0050] 2) Adjust data information: adjust the size of RGB image frames and depth image frames, perform multi-scale cropping and random horizontal flipping, and generate RGB image sequences and depth image sequences.

[0051] The size of the input data is uniformly adjusted to 256×340, and the sequence is processed using multi-scale cropping technology and random horizontal flipping technology to generate input sequences: RGB image sequence A and depth sequence D.

[0052] The multi-scale cropping technology includes: randomly selecting the width and height of the cropping area in the range of {256, 224, 192, 168}, and uniformly cropping the input data; and after cropping, the cropping area of ​​the RGB image is uniformly adjusted to 224×224, and the cropping area of ​​the depth image is adjusted to 56×56. In this way, not only scale jittering can be achieved, but also aspect ratio jittering can be achieved.

[0053] The random horizontal flipping technique includes: randomly deciding whether to perform a uniform horizontal flipping operation on the data. The random horizontal flipping operation is prone to negatively affect actions that require high directionality (for example, sign language actions). The action categories in the two benchmark datasets NTU RGB+D datasets used in this application do not require high directionality, and the use of this data augmentation operation helps to diversify the training samples.

[0054] Step S2: Use a three-dimensional parallel attention convolutional network to extract the RGB features Fa and depth features Fd corresponding to the RGB image sequence and the depth image sequence, as well as the common features Fc corresponding to the RGB image sequence and the depth image sequence.

[0055] like Figure 4As shown, the three-dimensional parallel attention convolutional network of this embodiment includes a first feature extraction module, a second feature extraction module, a third feature extraction module, a fourth feature extraction module and a fifth feature extraction module; the RGB image sequence passes through the first feature extraction module and the second feature extraction module in sequence, and outputs the RGB feature Fa; the depth image sequence passes through the third feature extraction module and the fourth feature extraction module in sequence, and outputs the depth feature Fd; the features output by the first feature extraction module and the third feature extraction module are added, and then input into the fifth feature extraction module, and the common feature Fc is output.

[0056] In a specific embodiment, the first feature extraction module and the third feature extraction module shown include the initial convolution layer and the first and second bottleneck layers of ResNet, respectively, and a three-dimensional parallel attention module is added before each bottleneck layer, and the output features of each bottleneck layer are added element by element with the output of the three-dimensional parallel attention module before the bottleneck layer as the final output of the bottleneck layer.

[0057] like Figure 3 As shown, the first feature extraction module uses the initial convolutional layer and the first and second bottleneck layers of ResNet-50, and a three-dimensional parallel attention module is added before each bottleneck layer.

[0058] The initial convolution layer includes a 7*7 convolution layer and a maximum pooling layer, and each bottleneck layer includes a 1*1 convolution layer, a 3*3 convolution layer and a 1*1 convolution layer.

[0059] Similarly, the third feature extraction module uses the initial convolutional layer and the first and second bottleneck layers of ResNet-18, and adds a three-dimensional parallel attention module before each bottleneck layer.

[0060] In a specific embodiment, the second feature extraction module, the fourth feature extraction module and the fifth feature extraction module respectively include the third and fourth bottleneck layers of ResNet, and a three-dimensional parallel attention module is added before each bottleneck layer, and the output features of each bottleneck layer are added element by element with the output of the three-dimensional parallel attention module before the bottleneck layer as the final output of the bottleneck layer.

[0061] In a specific embodiment, the second feature extraction module uses the third and fourth bottleneck layers of ResNet-50, and adds a three-dimensional parallel attention module before each bottleneck layer; the fourth feature extraction module uses the third and fourth bottleneck layers of ResNet-18, and adds a three-dimensional parallel attention module before each bottleneck layer. The fifth feature extraction module uses the third and fourth bottleneck layers of ResNet-50, and adds a three-dimensional parallel attention module before each bottleneck layer.

[0062] In this embodiment, the three-dimensional parallel attention module is as follows Figure 2 As shown, it includes a spatial attention feature extraction module, a temporal attention feature extraction module and a channel attention feature extraction module, which simultaneously extract attention maps along three independent dimensions of space, time and channel, respectively, and then multiply the obtained sub-attention map results with the input features to obtain the attention features of each dimension, and finally add them to the input feature map to obtain the attention features.

[0063] The spatial attention feature extraction module is used to fix the time and channel dimensions of the input features, and then obtain the spatial average pooling features through average pooling operation and maximum pooling operation respectively. And spatial maximum pooling features Then, a 3D spatial attention map is obtained through a 3D spatial convolution layer and a Sigmoid activation function;

[0064] The temporal attention feature extraction module is used to fix the spatial and channel dimensions of the input features and obtain the temporal average pooling features through average pooling operations and maximum pooling operations respectively. And the temporal maximum pooling feature Then, a 3D temporal attention map is obtained through a 3D temporal convolution layer and a Sigmoid activation function;

[0065] The channel attention feature extraction module is used to fix the spatial and temporal dimensions of the input features and obtain the channel average pooling features through average pooling operations and maximum pooling operations respectively. And channel maximum pooling features Then, the 3D channel attention map is obtained through the 3D channel convolution layer and the Sigmoid activation function.

[0066] The generation formula of the three-dimensional attention map is as follows:

[0067] A s =σ(g s ([AvgPool(f in );MaxPool(f in )}))

[0068] A t =σ(g t ([AvgPool(f in );MaxPool(f on )]))

[0069] A c =σ(g c ([AvgPool(f in );MaxPool(f in )]))

[0070] Among them, f in represents input features, AvgPool represents average pooling, and MaxPool represents maximum pooling. s , g t , g c Respectively represent the 3D convolution operations for space, time, and channel dimensions. σ represents the Sigmoid activation function. A s , A t , A c They are represented as 3D attention maps calculated in spatial, temporal, and channel dimensions respectively.

[0071] like Figure 2 As shown, the present application performs average pooling and maximum pooling operations on the spatial attention input, followed by a 3D spatial convolution layer and a Sigmoid activation function, and multiplies the input features to obtain 3D spatial attention features; performs average pooling and maximum pooling operations on the temporal attention input, followed by a 3D temporal convolution layer and a Sigmoid activation function, and multiplies the input features to obtain 3D temporal attention features; performs average pooling and maximum pooling operations on the channel attention input, followed by a 3D channel convolution layer and a Sigmoid activation function, and multiplies the input features to obtain 3D channel attention features. The spatial attention features, temporal attention features, channel attention features, and input features are fused together by an addition operation to obtain the final output attention features.

[0072] The specific formula is as follows:

[0073]

[0074]

[0075]

[0076]

[0077]

[0078] in, Represent the output features of the spatial, temporal, and channel attention modules respectively. represents the output feature containing three-dimensional parallel attention, f out Represents the final output attention feature after passing through the entire three-dimensional parallel attention convolutional network. Represents element-by-element multiplication. Represents element-by-element addition.

[0079] This application is based on the overall action recognition network of parallel attention and dual-stream weight adaptation. Figure 4As shown, the RGB sequence uses PA-CN 1-A (first feature extraction module) and PA-CN 2-A module (second feature extraction module) to extract sequence features, and obtains the dual-stream spatiotemporal sequence RGB feature Fa. The PA-CN 1-A module includes the initial convolution layer and the first and second bottleneck layers in the three-dimensional parallel attention convolution network based on the ResNet-50 model; the PA-CN 2-A module includes the third and fourth bottleneck layers in the three-dimensional parallel attention convolution network based on the ResNet-50 model. The depth sequence uses PA-CN 1-D (third feature extraction module) and PA-CN 2-D module (fourth feature extraction module) to extract sequence features, and obtains the dual-stream spatiotemporal sequence depth feature Fd. The PA-CN 1-D module includes the initial convolution layer and the first and second bottleneck layers in the three-dimensional parallel attention convolution network based on the ResNet-18 model; the PA-CN 2-D module includes the third and fourth bottleneck layers in the three-dimensional parallel attention convolution network based on the ResNet-18 model.

[0080] like Figure 4 As shown, this embodiment performs cross-modal interaction between the RGB sequence passing through PA-CN 1-A and the depth sequence passing through PA-CN 1-D, transfers information between the RGB and depth modalities, and obtains a common sequence. The common sequence PA-CN 2-C module (the fifth feature extraction module) extracts sequence features and obtains the common features Fc of the dual-stream spatiotemporal sequences. The PA-CN 2-C module includes the third and fourth bottleneck layers in the three-dimensional parallel attention convolutional network based on the ResNet-50 model.

[0081] Using Φ to represent the PA-CN network, the generation of the three features can be expressed as follows:

[0082]

[0083]

[0084]

[0085] Step S3: Use the temporal convolution module to perform channel alignment operations on the RGB feature Fa and the depth feature Fd respectively to obtain the RGB feature Fa′ and the depth feature Fd′ with the same number of channels.

[0086] In this embodiment, the temporal convolution module TCB is used to perform channel alignment operations on the RGB feature Fa and the depth feature Fd respectively, so as to obtain the RGB feature Fa′ and the depth feature Fd′ with the same number of channels;

[0087] The temporal convolution module TCB includes: a convolution layer with a kernel size of 1, a batch normalization layer, a layer normalization layer and a ReLU activation function.

[0088] like Figure 4 As shown, the temporal convolution module TCB-A is used to operate the RGB feature Fa to obtain the RGB feature Fa′; the temporal convolution module TCB-D is used to operate the depth feature Fd to obtain the depth feature Fd′.

[0089] Step S4: Use the convolution gating module to process the common feature Fc to obtain the gating matrix G.

[0090] In this embodiment, the common features are passed through a convolution gating module to obtain a gating matrix G. The gating matrix G is obtained by a subtraction operation to obtain 1-G.

[0091] The convolution gating module CGB includes: a convolution layer with a kernel size of 1, a batch normalization layer, a ReLU activation function and a Sigmoid activation function.

[0092] Step S5: Use the gating matrix G and 1-G as weight coordination factors of the RGB feature Fa′ and the depth feature Fd′ respectively to obtain the final fusion feature F.

[0093] This application uses the gating matrix G generated by common features as a weight coordination factor to dynamically coordinate the fusion weights of RGB and depth features to obtain a fusion feature F with high distinguishability.

[0094] In this embodiment, the dynamic coordination of RGB and depth feature fusion weights includes: the gating matrix G and 1- are used as weight coordination factors of the RGB feature Fa′ and the depth feature Fd′ respectively, and the final fusion feature F is obtained, and its formula is:

[0095]

[0096] Step S6: After passing through the fully connected layer, the fused feature F is input into the action classifier, and the action recognition result is output.

[0097] like Figure 4 As shown in the figure, the fusion feature F passes through the fully connected layer FC and is then input into the action classifier (Classification) to obtain the action recognition result, that is, calculate and output the target category and its corresponding probability.

[0098] In a specific embodiment, a three-dimensional parallel attention convolutional network to an action classifier network is formed as follows: Figure 4The overall action recognition network based on parallel attention and dual-stream weight adaptation is shown. This network can be used for action recognition in this application after training. In the process of training this network, the loss function used is:

[0099] L gate = -log(1-G)

[0100] L=L cls +λL gate

[0101] Among them, L cls represents the standard cross entropy loss; L gate represents the gate regularization loss, and λ is the weight coefficient of the regularization term.

[0102] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An action recognition method based on parallel attention and dual-stream weight adaptation, It is characterized in that The action recognition method based on parallel attention and dual-stream weight adaptation includes: Select the RGB image and depth image in the original video data as input data, and perform data preprocessing to obtain the RGB image sequence and depth image sequence; A three-dimensional parallel attention convolutional network is used to extract the RGB features Fa and depth features Fd corresponding to the RGB image sequence and the depth image sequence, as well as the common features Fc corresponding to the RGB image sequence and the depth image sequence; Use the temporal convolution module to perform channel alignment operations on the RGB feature Fa and the depth feature Fd respectively, and obtain the RGB feature Fa′ and the depth feature Fd′ with the same number of channels; The common features Fc are processed using a convolutional gating module to obtain a gating matrix G; The gating matrix G and 1-G are used as weight coordination factors of RGB feature Fa′ and depth feature Fd′ respectively to obtain the final fusion feature F; After passing through the fully connected layer, the fusion feature F is input into the action classifier and the action recognition result is output; The three-dimensional parallel attention convolutional network includes: The first feature extraction module, the second feature extraction module, the third feature extraction module, the fourth feature extraction module and the fifth feature extraction module; the RGB image sequence passes through the first feature extraction module and the second feature extraction module in sequence, and outputs the RGB feature Fa; the depth image sequence passes through the third feature extraction module and the fourth feature extraction module in sequence, and outputs the depth feature Fd; the features output by the first feature extraction module and the third feature extraction module are added, and then input into the fifth feature extraction module, and the common feature Fc is output; The convolution gating module includes a convolution layer with a kernel size of 1, a batch normalization layer, a ReLU activation function, and a Sigmoid activation function.

2. The action recognition method based on parallel attention and dual-stream weight adaptation according to claim 1, It is characterized in that The method selects the RGB image and the depth image in the original video data as input data, and performs data preprocessing to obtain the RGB image sequence and the depth image sequence, including: The RGB image frames and depth image frames in the original video data are selected by adopting the interval frame taking strategy; Adjust the size of RGB image frames and depth image frames, perform multi-scale cropping and random horizontal flipping, and generate RGB image sequences and depth image sequences; The interval frame taking strategy includes: The total number of frames of the original video data is divided by the required number of frames to obtain an average interval, and a frame is randomly selected in each interval to form the required image frame; The multi-scale cropping technology includes: randomly selecting the width and height of the cropping area within a certain range, and performing uniform scale cropping on the input data; The random horizontal flipping technique includes: randomly determining whether to uniformly perform a horizontal flipping operation on the data.

3. The action recognition method based on parallel attention and dual-stream weight adaptation according to claim 1, It is characterized in that The first feature extraction module and the third feature extraction module shown include the initial convolution layer and the first and second bottleneck layers of ResNet respectively, and a three-dimensional parallel attention module is added before each bottleneck layer, and the output feature of each bottleneck layer is added element by element with the output of the three-dimensional parallel attention module before the bottleneck layer as the final output of the bottleneck layer; The second feature extraction module, the fourth feature extraction module and the fifth feature extraction module shown include the third and fourth bottleneck layers of ResNet respectively, and a three-dimensional parallel attention module is added before each bottleneck layer. The output features of each bottleneck layer are added element by element with the output of the three-dimensional parallel attention module before the bottleneck layer as the final output of the bottleneck layer.

4. The action recognition method based on parallel attention and dual-stream weight adaptation according to claim 3, It is characterized in that The three-dimensional parallel attention module includes a spatial attention feature extraction module, a temporal attention feature extraction module and a channel attention feature extraction module, which simultaneously extract attention maps along three independent dimensions of space, time and channel, respectively, and then multiply the obtained sub-attention map results with the input features to obtain the attention features of each dimension, and finally add them to the input feature map to obtain the attention features; The spatial attention feature extraction module is used to obtain spatial average pooling features and spatial maximum pooling features through average pooling operations and maximum pooling operations respectively after fixing the time and channel dimensions of the input features, and then obtain a 3D spatial attention map through a 3D spatial convolution layer and a Sigmoid activation function; The temporal attention feature extraction module is used to fix the spatial and channel dimensions of the input features, obtain the temporal average pooling features and the temporal maximum pooling features through average pooling operations and maximum pooling operations respectively, and then obtain the 3D temporal attention map through a 3D temporal convolution layer and a Sigmoid activation function; The channel attention feature extraction module is used to fix the spatial and temporal dimensions of the input features, obtain channel average pooling features and channel maximum pooling features through average pooling operations and maximum pooling operations respectively, and then obtain a 3D channel attention map through a 3D channel convolution layer and a Sigmoid activation function.

5. The action recognition method based on parallel attention and dual-stream weight adaptation according to claim 1, It is characterized in that The temporal convolution module includes: a convolution layer with a kernel size of 1, a batch normalization layer, a layer normalization layer and a ReLU activation function.

6. The action recognition method based on parallel attention and dual-stream weight adaptation according to claim 1, It is characterized in that The gate matrix G and 1-G are used as weight coordination factors of the RGB feature Fa′ and the depth feature Fd′ respectively to obtain the final fusion feature F, including: in, Represents element-by-element multiplication calculation, Represents element-by-element addition.

7. The action recognition method based on parallel attention and dual-stream weight adaptation according to claim 1, It is characterized in that The loss function of the network from the three-dimensional parallel attention convolutional network to the action classifier is: Among them, L cls represents the standard cross entropy loss, L gate represents the gate regularization loss, and λ is the weight coefficient of the regularization term.