Auxiliary training and skeleton action recognition method based on time-space mask reconstruction mechanism
The training method assisted by temporal and spatial mask reconstruction mechanism enhances the spatiotemporal dependency modeling ability of graph convolutional networks in skeleton action recognition, improves recognition accuracy and reduces parameter requirements, and is suitable for action recognition in human-computer interaction and video surveillance.
Patent Information
- Application Number
- CN202410808511.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Graph convolutional networks struggle to effectively capture the structural and temporal context information of skeletons in skeleton action recognition, especially when distinguishing similar actions due to a lack of representation of spatiotemporal dependencies.
An auxiliary training method based on temporal and spatial mask reconstruction mechanism is adopted. The skeleton data is processed by spatiotemporal graph convolutional network and self-supervised training is carried out by multilayer perceptron. The reconstruction loss is calculated to enhance the model's ability to model spatiotemporal dependencies.
It improves the accuracy of graph convolutional networks in skeleton action recognition, reduces the dependence on label data, enhances model performance, and reduces network parameter requirements.
Smart Images

Figure CN118747912B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision artificial intelligence recognition technology, and in particular to an auxiliary training method and a skeleton action recognition method based on a temporal and spatial mask reconstruction mechanism. Background Technology
[0002] Human action recognition plays a crucial role in video understanding and human-computer interaction, and has received increasing attention in recent years. Today, thanks to advanced sensor technologies and human pose estimation algorithms, acquiring the 3D skeleton of the human body has become much easier. Skeleton data is a compact and robust representation, unaffected by viewpoint changes and cluttered backgrounds, making it well-suited for action recognition tasks. A typical approach to action recognition using skeleton data is to construct Graph Convolutional Networks (GCNs). The joints and bones in the human body naturally form graphs, making GCNs a perfect tool for extracting skeletal topological features. GCN-based methods are becoming increasingly popular, offering advantages such as lightweight design and high computational efficiency compared to models that process video frames.
[0003] However, using skeletons to identify movements has some limitations. A major problem is that skeleton representations lack important interaction objects and contextual information to distinguish similar movements. One of the main challenges in identifying similar movements is extracting the spatiotemporal dependencies between observed movements to make the feature representations more discriminative. These dependencies arise from the complex interactions between different joints and the temporal dynamics of movement. Therefore, developing effective methods to capture these dependencies is crucial for more accurate human motion prediction. Summary of the Invention
[0004] The purpose of this invention is to overcome the limitations of graph convolutional networks in acquiring structural and temporal context information of skeletons and to provide an auxiliary training and skeleton action recognition method based on temporal and spatial mask reconstruction mechanism.
[0005] The objective of this invention can be achieved through the following technical solutions:
[0006] As a first aspect of the present invention, an auxiliary training method based on a temporal and spatial mask reconstruction mechanism is provided, comprising the following steps:
[0007] S1. Collect data about human skeleton sequences from video sequences, and use the three-dimensional coordinate data of skeleton nodes to form a training dataset;
[0008] S2. Use a spatiotemporal graph convolutional network to process the skeleton training dataset and obtain feature representations of the skeleton nodes;
[0009] S3. Perform random masking on the time dimension of the feature representation of the skeleton node, aggregate the unmasked feature representation, use a multilayer perceptron to reconstruct the aggregated features to generate predicted node coordinates, and calculate the mean absolute error between the reconstructed node coordinates and the original coordinates as the time masking reconstruction loss.
[0010] S4. Perform random masking on the spatial dimension of the feature representation of the skeleton node, aggregate the unmasked feature representation, use a multilayer perceptron to reconstruct the aggregated features to generate predicted node coordinates, and calculate the mean absolute error between the reconstructed node coordinates and the original coordinates as the spatial masking reconstruction loss.
[0011] S5. Perform self-supervised training on the graph convolutional network model based on the temporal mask reconstruction loss and spatial mask reconstruction loss, iterating until convergence to complete the training.
[0012] As a preferred technical solution, the spatiotemporal graph convolutional network in step S2 specifically includes multiple sequentially connected TGN blocks, and also includes a global average pooling layer and a fully connected classifier connected to the TGN blocks. Each TGN block includes a sequentially connected temporal convolutional network and a graph convolutional network, and multiple TGN blocks form a feature extraction layer; the feature representation of the skeleton nodes is obtained through the feature extraction layer. The feature representation size of each sample is T×V×C; where C is the feature vector dimension of a node, that is, each skeleton node in each skeleton graph is represented as a C-dimensional feature vector.
[0013] As a preferred technical solution, step S3 specifically includes:
[0014] The feature representation of the skeleton sequence is input into the temporal mask reconstruction channel. For each node, several time frames are randomly selected in the temporal dimension for masking. The temporal masking expression is as follows:
[0015]
[0016] In the formula, T represents the number of continuous skeleton maps contained in the sample, and b is the number of masks. u represents the feature representation of the t-th frame image in the skeleton sequence graph with respect to the i-th node. t It is the binary mask value applied to the t-th frame time in the sequence of the i-th node:
[0017]
[0018] After masking and summation / averaging, the aggregated feature g is obtained. i ;
[0019] Aggregate feature g i Input to multilayer perceptron ft The predicted T three-dimensional coordinates of the i-th node are obtained.
[0020]
[0021] In the formula, Will The reconstructed skeleton sequence is obtained by piecing together the nodes in order.
[0022] Calculate the reconstructed node coordinates Compared with the original coordinates X i The mean absolute error between them is used as the time mask reconstruction loss L T :
[0023]
[0024] In the formula, N is the number of samples in a training batch. Represents the original node coordinates of the i-th sample.
[0025] As a preferred technical solution, step S4 specifically includes:
[0026] The feature representation of the skeleton sequence is input into the spatial mask reconstruction channel. Several nodes are randomly selected in each frame for masking. The spatial mask processing expression is as follows:
[0027]
[0028] In the formula, This represents the feature representation of the t-th frame image in the skeleton sequence graph with respect to the i-th node, where a is the number of selected mask nodes, and m... i It is applied to the representation of the i-th node. The binary mask value on:
[0029]
[0030] After masking, summation, and aggregation, the aggregated feature s is obtained. t ;
[0031] Aggregate features s t Input to multilayer perceptron f s The predicted coordinates of the V nodes in the t-th frame are obtained.
[0032]
[0033] In the formula, Will The reconstructed skeleton sequence was obtained by assembling the pieces in chronological order.
[0034]
[0035] Calculate the reconstructed node coordinates Compared with the original coordinates X i The mean absolute error between them is used as the spatial mask reconstruction loss:
[0036]
[0037] In the formula, N is the number of samples in a training batch. This represents the true coordinates of the i-th skeleton sequence in the training batch.
[0038] As a preferred technical solution, the auxiliary training method in step S5 adopts a self-supervised training method, based on the original coordinates of the skeleton nodes, with a training loss L:
[0039] L = L s +L T
[0040] In the formula, L s It is the spatial mask reconstruction loss, L T It is a loss due to time mask reconstruction.
[0041] As a second aspect of the present invention, a skeleton action recognition method is provided. The skeleton action recognition method employs a graph convolutional network model for skeleton action recognition. The graph convolutional network model is trained using the auxiliary training method based on the time-space mask reconstruction mechanism described above. The specific steps are as follows:
[0042] Spatiotemporal graph convolutional networks are used to process the skeleton training dataset, which consists of the 3D coordinate data of the skeleton nodes, to obtain feature representations of the skeleton nodes.
[0043] Random masking is performed on the temporal dimension of the feature representation of the skeleton node, the unmasked feature representation is aggregated, and the aggregated feature representation is reconstructed using a multilayer perceptron to generate the predicted node coordinates. The mean absolute error between the reconstructed node coordinates and the original coordinates is calculated as the temporal mask reconstruction loss.
[0044] Random masking is performed on the spatial dimension of the feature representation of the skeleton node, the unmasked feature representation is aggregated, and the aggregated feature representation is reconstructed using a multilayer perceptron to generate the predicted node coordinates. The mean absolute error between the reconstructed node coordinates and the original coordinates is calculated as the spatial mask reconstruction loss.
[0045] The graph convolutional network model is self-supervised and trained using temporal mask reconstruction loss and spatial mask reconstruction loss, iterating until convergence to complete the training.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] 1) This invention provides an on-demand auxiliary training method that enhances the ability of graph convolutional networks to model skeleton structures and node dynamics through a spatiotemporal mask reconstruction mechanism. This method is applicable to graph convolutional network-based architectures and has broad applicability.
[0048] 2) This invention trains a self-supervised training method by calculating the error between the reconstructed coordinates and the original skeleton coordinates through a supervised graph convolutional network. It does not require data category labels.
[0049] 3) This invention can achieve the reconstruction function with a simple multilayer perceptron, requiring fewer network parameters. It improves the accuracy of the model and enhances the performance of the model by adding a small number of parameters. Attached Figure Description
[0050] Figure 1 This is a flowchart of the auxiliary training method based on the time-space mask reconstruction mechanism of the present invention. Detailed Implementation
[0051] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures. However, the scope of protection of the present invention is not limited to the following embodiments.
[0052] Example 1
[0053] Step S1. Collect data on human skeleton sequences from video sequences, and assemble the 3D coordinate data of the skeleton nodes into a training dataset. This embodiment selects the existing NW-UCLA Action Recognition Dataset (Northwestern-UCLA Multiview Action 3D Dataset). This dataset uses three depth cameras to obtain 3D skeleton data with 20 nodes each, containing a total of 10 action categories. Each data sample selects 64 consecutive skeleton images to represent one action, i.e., 64 time frames. The size of each data point in the NW-UCLA dataset training set is 64×20×3.
[0054] Step S2. Collect data about the human skeleton sequence from the video sequence, and form a training dataset from the 3D coordinate data of the skeleton nodes. Input the training set into the existing STGCN model (Spatial Temporal Graph Convolutional Networks). The feature extraction layer of the STGCN model consists of 10 TGN blocks concatenated. Each TGN block includes a temporal convolutional network and a graph convolutional network. The training data passes through the feature extraction layer to obtain the feature representation H = (h...1 ,…,h 64 )∈R 64×20×256 Each skeleton diagram h = (h1, ..., h 20 )∈R 20×256 That is, each skeleton node is represented as a 256-dimensional feature vector.
[0055] Step S3. Perform random masking on the temporal dimension of the feature representation of the skeleton nodes, aggregate the unmasked feature representations, use a multilayer perceptron to reconstruct the predicted node coordinates from the aggregated features, and calculate the mean absolute error between the reconstructed node coordinates and the original coordinates as the temporal mask reconstruction loss; input the feature representations into the temporal mask reconstruction module. The specific implementation method is as follows:
[0056] The feature representation of the skeleton sequence is input into the temporal mask reconstruction channel. For each node, several time frames are randomly selected in the temporal dimension for masking. The temporal masking expression is as follows:
[0057]
[0058] In the formula, b = 10 is the number of masks, u t It is the binary mask value (0 indicates masking, 1 indicates no masking) applied to the sequence of the i-th node at the t-th frame time. After masking and summation / averaging, the aggregated feature g is obtained. i ;
[0059] Furthermore, the aggregated features are input into the multilayer perceptron f. t f t With only one hidden layer, the predicted 64 3D coordinates of the i-th node are obtained.
[0060]
[0061] In the formula, Will The reconstructed skeleton sequence is obtained by piecing together the nodes in order.
[0062]
[0063] Further, the reconstructed node coordinates are calculated. Compared with the original coordinates X i The average absolute error between them is called the temporal mask reconstruction loss L. T :
[0064]
[0065] In the formula, N is the number of samples in a training batch. Represents the original node coordinates of the i-th sample.
[0066] Step S4. Perform random masking on the spatial dimension of the feature representation of the skeleton node, aggregate the unmasked feature representation, use a multilayer perceptron to reconstruct the predicted node coordinates from the aggregated features, calculate the mean absolute error between the reconstructed node coordinates and the original coordinates as the spatial mask reconstruction loss, and input the feature representation into the spatial mask reconstruction module. The specific implementation method is as follows:
[0067] The feature representation of the skeleton sequence is input into the spatial mask reconstruction channel. Several nodes are randomly selected in each frame for masking. The spatial mask processing expression is as follows:
[0068]
[0069] In the formula, This represents the feature representation of the t-th frame image in the skeleton sequence diagram with respect to the ith node, where a = 2 is the number of selected mask nodes, and m i It is applied to the representation of the i-th node. The binary mask value (i.e., 0 indicates masking, 1 indicates no masking), After masking, summation, and aggregation, the aggregated feature s is obtained. t ;
[0070] Furthermore, the aggregated features are input into the multilayer perceptron f. s f s With only one hidden layer, the predicted coordinates of the V nodes in the t-th frame are obtained.
[0071]
[0072] In the formula, Will The reconstructed skeleton sequence was obtained by assembling the pieces in chronological order.
[0073]
[0074] Further, the reconstructed node coordinates are calculated. Compared with the original coordinates X i The average absolute error between the two is called the spatial mask reconstruction loss.
[0075]
[0076] In the formula, N is the number of samples in a training batch. This represents the true coordinates of the i-th skeleton sequence in the training batch.
[0077] Step S5. Perform self-supervised training on the graph convolutional network model based on the temporal mask reconstruction loss and spatial mask reconstruction loss, iterating until convergence to complete the training. The training loss function L is calculated as follows:
[0078] L = L s +L T
[0079] In the formula, L s It is the spatial mask reconstruction loss, L T This is the temporal mask reconstruction loss. The parameters in the graph convolutional network are optimized based on the loss, iterating until convergence. The parameters of the graph convolutional network are then fixed, thus completing the training of the graph convolutional network.
[0080] This invention addresses the limitation of graph convolutional networks in effectively capturing spatiotemporal dependencies in skeleton sequences. It designs a temporal and spatial mask reconstruction mechanism to learn more discriminative information from samples, thereby enhancing the model's discriminative power. The graph convolutional network model obtained through this method can effectively improve the accuracy of action recognition and can be specifically applied to:
[0081] A. Application in video surveillance of large public places: The model trained by this method can be used to perform action recognition of pedestrians in the surveillance network and analyze abnormal behavior of pedestrians in the surveillance.
[0082] B. Application in human-computer interaction: The model trained using this method can be used to recognize human actions in front of a camera and then perform corresponding command control.
[0083] Example 2
[0084] As a second embodiment of the present invention, this embodiment also provides a skeleton action recognition method, which performs skeleton action recognition based on a graph convolutional network model. The graph convolutional network model employs the auxiliary training based on the temporal and spatial mask reconstruction mechanism described in the above embodiment, and the specific steps include:
[0085] Spatiotemporal graph convolutional networks are used to process the skeleton training dataset, which consists of the 3D coordinate data of the skeleton nodes, to obtain feature representations of the skeleton nodes.
[0086] Random masking is performed on the temporal dimension of the feature representation of the skeleton node, the unmasked feature representation is aggregated, and the aggregated feature representation is reconstructed using a multilayer perceptron to generate the predicted node coordinates. The mean absolute error between the reconstructed node coordinates and the original coordinates is calculated as the temporal mask reconstruction loss.
[0087] Random masking is performed on the spatial dimension of the feature representation of the skeleton node, the unmasked feature representation is aggregated, and the aggregated feature representation is reconstructed using a multilayer perceptron to generate the predicted node coordinates. The mean absolute error between the reconstructed node coordinates and the original coordinates is calculated as the spatial mask reconstruction loss.
[0088] The graph convolutional network model is self-supervised and trained using temporal mask reconstruction loss and spatial mask reconstruction loss, iterating until convergence to complete the training.
[0089] Furthermore, the temporal mask reconstruction loss is calculated as follows:
[0090] The feature representation of the skeleton sequence is input into the temporal mask reconstruction channel. For each node, several time frames are randomly selected in the temporal dimension for masking. The temporal masking expression is as follows:
[0091]
[0092] In the formula, b is the number of masks, and u t It is the binary mask value (0 indicates masking, 1 indicates no masking) applied to the sequence of the i-th node at the t-th frame time. After masking and summation / averaging, the aggregated feature g is obtained. i ;
[0093] Furthermore, the aggregated features are input into the multilayer perceptron f. t The predicted T three-dimensional coordinates of the i-th node are obtained.
[0094]
[0095] In the formula, Will The reconstructed skeleton sequence is obtained by piecing together the nodes in order.
[0096] Further, the reconstructed node coordinates are calculated. Compared with the original coordinates X i The average absolute error between them is called the temporal mask reconstruction loss L. T :
[0097]
[0098] In the formula, N is the number of samples in a training batch. Represents the original node coordinates of the i-th sample.
[0099] Furthermore, the spatial mask reconstruction loss is calculated as follows:
[0100] The feature representation of the skeleton sequence is input into the spatial mask reconstruction channel. Several nodes are randomly selected in each frame for masking. The spatial mask processing expression is as follows:
[0101]
[0102] In the formula, This represents the feature representation of the t-th frame image in the skeleton sequence graph with respect to the i-th node, where a is the number of selected mask nodes, and m... i It is applied to the representation of the i-th node. The binary mask value (i.e., 0 indicates masking, 1 indicates no masking), After masking, summation, and aggregation, the aggregated feature s is obtained. t ;
[0103] Furthermore, the aggregated features are input into the multilayer perceptron f. s The predicted coordinates of the V nodes in the t-th frame are obtained.
[0104]
[0105] In the formula, Will The reconstructed skeleton sequence was obtained by assembling the pieces in chronological order.
[0106]
[0107] Further, the reconstructed node coordinates are calculated. Compared with the original coordinates X i The average absolute error between the two is called the spatial mask reconstruction loss.
[0108]
[0109] In the formula, N is the number of samples in a training batch. This represents the true coordinates of the i-th skeleton sequence in the training batch.
[0110] Using the node's own original coordinates as training supervision information, no data labels are needed, and the training loss L is:
[0111] L = L s +L T
[0112] In the formula, L s It is the spatial mask reconstruction loss, L T This is a loss due to time mask reconstruction;
[0113] The preferred embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make numerous modifications and variations based on the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experimentation on the basis of existing technology should be within the scope of protection defined by the claims.
Claims
1. An auxiliary training method based on a time-space mask reconstruction mechanism, characterized in that, Includes the following steps: S1. Collect data about human skeleton sequences from video sequences, and use the three-dimensional coordinate data of skeleton nodes to form a training dataset; S2. Use a spatiotemporal graph convolutional network to process the skeleton training dataset and obtain feature representations of the skeleton nodes; the spatiotemporal graph convolutional network specifically includes multiple TGN blocks connected in sequence, and also includes a global average pooling layer and a fully connected classifier connected to the TGN blocks. Each TGN block includes a temporal convolutional network and a graph convolutional network connected in sequence, and multiple TGN blocks form a feature extraction layer. The feature representation of the skeleton node is obtained through the feature extraction layer. The feature representation size for each sample is ;in It is the feature vector dimension of a node, that is, each skeleton node in each skeleton graph is represented as... 3D eigenvectors; S3. Perform random masking on the temporal dimension of the feature representations of the skeleton nodes, aggregate the unmasked feature representations, and use a multilayer perceptron to reconstruct the predicted node coordinates from the aggregated features. Calculate the mean absolute error between the reconstructed node coordinates and the original coordinates as the temporal masking reconstruction loss, specifically including: The feature representation of the skeleton sequence is input into the temporal mask reconstruction channel. For each node, several time frames are randomly selected in the temporal dimension for masking. The temporal masking expression is as follows: In the formula, This indicates the number of continuous skeleton graphs contained in the sample. It is the number of masks. Represents the first in the skeleton sequence diagram The frame image about the first Feature representation graph of each node It is applied to the first The sequence of the nth node Binary mask values for frame time: The aggregated features are obtained after masking and summation / averaging. ; Aggregation features Input to multilayer perceptron The predicted number was obtained. Nodes Three-dimensional coordinates : In the formula, , ,Will The reconstructed skeleton sequence is obtained by piecing together the nodes in order. ; Calculate the reconstructed node coordinates Compared with the original coordinates The mean absolute error between them is used as the time mask reconstruction loss. : In the formula, This is the number of samples in a training batch. Indicates the first The original coordinates of each sample; S4. Perform random masking on the spatial dimension of the feature representation of the skeleton nodes, aggregate the unmasked feature representations, and use a multilayer perceptron to reconstruct the predicted node coordinates from the aggregated features. Calculate the mean absolute error between the reconstructed node coordinates and the original coordinates as the spatial masking reconstruction loss, as detailed below: The feature representation of the skeleton sequence is input into the spatial mask reconstruction channel. Several nodes are randomly selected in each frame for masking. The spatial mask processing expression is as follows: In the formula, Represents the first in the skeleton sequence diagram The frame image about the first Feature representation graph of each node This refers to selecting the number of mask nodes. It is applied to the first Each node represents The binary mask value on: The aggregated features are obtained by masking, summing, and aggregation. ; Aggregation features Input to multilayer perceptron The predicted number was obtained. Frames Node coordinates : In the formula, , ,Will The reconstructed skeleton sequence was obtained by assembling the pieces in chronological order. ; Calculate the reconstructed node coordinates Compared with the original coordinates The mean absolute error between them is used as the spatial mask reconstruction loss: In the formula, N This is the number of samples in a training batch. Indicates the first The original coordinates of each sample; S5. Perform self-supervised training on the graph convolutional network model based on the temporal mask reconstruction loss and spatial mask reconstruction loss, iterating until convergence to complete the training.
2. The auxiliary training method based on the time-space mask reconstruction mechanism according to claim 1, characterized in that, The auxiliary training method in step S5 employs a self-supervised training approach, based on the original coordinates of the skeleton nodes, with a training loss... : In the formula, It is the spatial mask reconstruction loss. It is a loss due to time mask reconstruction.
3. A skeleton action recognition method, wherein the skeleton action recognition method uses a graph convolutional network model for skeleton action recognition, characterized in that, The graph convolutional network model is trained using the time-space mask reconstruction mechanism-assisted training method as described in any one of claims 1-2. The specific steps are as follows: Spatiotemporal graph convolutional networks are used to process the skeleton training dataset, which consists of the 3D coordinate data of the skeleton nodes, to obtain feature representations of the skeleton nodes. Random masking is performed on the temporal dimension of the feature representation of the skeleton node, the unmasked feature representation is aggregated, and the aggregated feature representation is reconstructed using a multilayer perceptron to generate the predicted node coordinates. The mean absolute error between the reconstructed node coordinates and the original coordinates is calculated as the temporal mask reconstruction loss. Random masking is performed on the spatial dimension of the feature representation of the skeleton node, the unmasked feature representation is aggregated, and the aggregated feature representation is reconstructed using a multilayer perceptron to generate the predicted node coordinates. The mean absolute error between the reconstructed node coordinates and the original coordinates is calculated as the spatial mask reconstruction loss. The graph convolutional network model is self-supervised and trained using temporal mask reconstruction loss and spatial mask reconstruction loss, iterating until convergence to complete the training.
4. The skeleton motion recognition method according to claim 3, characterized in that, The spatiotemporal graph convolutional network specifically includes multiple TGN blocks connected in sequence, as well as a global average pooling layer and a fully connected classifier connected to the TGN blocks. Each TGN block includes a temporal convolutional network and a graph convolutional network connected in sequence, and multiple TGN blocks form a feature extraction layer. The feature representation of the skeleton node is obtained through the feature extraction layer. The feature representation size for each sample is ;in It is the feature vector dimension of a node, that is, each skeleton node in each skeleton graph is represented as... 3D eigenvectors.
5. The skeleton motion recognition method according to claim 3, characterized in that, The temporal mask reconstruction loss is calculated as follows: The feature representation of the skeleton sequence is input into the temporal mask reconstruction channel. For each node, several time frames are randomly selected in the temporal dimension for masking. The temporal masking expression is as follows: In the formula, This indicates the number of continuous skeleton graphs contained in the sample. It is the number of masks. Represents the first in the skeleton sequence diagram The frame image about the first Feature representation graph of each node It is applied to the first The sequence of the nth node Binary mask values for frame time: The aggregated features are obtained after masking and summation / averaging. ; Aggregation features Input to multilayer perceptron The predicted number was obtained. Nodes Three-dimensional coordinates : In the formula, , ,Will The reconstructed skeleton sequence is obtained by piecing together the nodes in order. ; Calculate the reconstructed node coordinates Compared with the original coordinates The mean absolute error between them is used as the time mask reconstruction loss. : In the formula, This is the number of samples in a training batch. Indicates the first The original coordinates of each sample.
6. The skeleton motion recognition method according to claim 3, characterized in that, The spatial mask reconstruction loss is calculated as follows: The feature representation of the skeleton sequence is input into the spatial mask reconstruction channel. Several nodes are randomly selected in each frame for masking. The spatial mask processing expression is as follows: In the formula, Represents the first in the skeleton sequence diagram The frame image about the first Feature representation graph of each node This refers to selecting the number of mask nodes. It is applied to the first Each node represents The binary mask value on: The aggregated features are obtained by masking, summing, and aggregation. ; Aggregation features Input to multilayer perceptron The predicted number was obtained. Frames Node coordinates : In the formula, , ,Will The reconstructed skeleton sequence was obtained by assembling the pieces in chronological order. ; Calculate the reconstructed node coordinates Compared with the original coordinates The mean absolute error between them is used as the spatial mask reconstruction loss: In the formula, N This is the number of samples in a training batch. Indicates the first in the training batch The true coordinates of the skeleton sequence.
7. The skeleton motion recognition method according to claim 3, characterized in that, The graph convolutional network model training described above employs a self-supervised training method, based on the original coordinates of the skeleton nodes, and the training loss... as follows: In the formula, It is the spatial mask reconstruction loss. It is a loss due to time mask reconstruction.
