Skeleton point action recognition method based on multi-angle feature fusion

By introducing angle features (angular coding) into the skeletal action recognition model and combining static and velocity domain information, the problem of insufficient performance of existing models in distinguishing actions with similar motion trajectories is solved, achieving higher recognition accuracy and lower accuracy. Compute costs to support real-time recognition on edge devices.

CN118470803BActive Publication Date: 2024-09-03NANJING ZHIHENG INFORMATION TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410927071.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-03
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Existing skeletal action recognition models have poor performance in distinguishing actions with similar motion trajectories and are difficult to capture subtle differences between body parts, especially recognition difficulties caused by differences in body size, movement speed, or action execution.

Method used

A skeletal point action recognition method based on multi-angle feature fusion is proposed, which comprehensively captures the relative motion between body parts through angular features (angle encoding), and combines static and speed domain information to be used in graph convolutional neural networks to improve action recognition. Accuracy.

Benefits of technology

It achieves more accurate action recognition in the static and speed domains, improves the ability to distinguish actions with similar motion trajectories, reduces computing costs, and supports real-time action recognition on edge devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470803B
    Figure CN118470803B
Patent Text Reader

Abstract

The present invention proposes a skeleton point action recognition method based on multi-angle feature fusion, which belongs to the field of computer vision and artificial intelligence, and is convenient for extracting high-order spatial motion features. The proposed angle features comprehensively capture the relative motion between different body parts while maintaining robustness to subject changes. Experimental results show that the angle features are complementary to existing features, namely joint and skeleton representations. By incorporating the angle features into a simple action recognition graph convolutional neural network, new state-of-the-art accuracy is achieved on several benchmarks while maintaining lower computational cost, thereby supporting real-time action recognition on edge devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the fields of computer vision and artificial intelligence, and in particular relates to a skeleton point action recognition method based on multi-angle feature fusion. Background Art

[0002] Graph neural networks have begun to attract attention in skeleton recognition. In models based on graph convolutional networks, the skeleton is viewed as a graph with joints as nodes and bones as edges. Initially, only first-order features were used, representing the coordinates of the joints. Subsequently, a second-order feature was introduced: each bone was represented as the vector difference between the coordinates of a joint and the coordinates of its nearest neighbor. Experiments show that these second-order features improve recognition accuracy. An early application was ST-GCN, which aggregated joint features spatially using graph convolutions and convolved consecutive frames along the temporal axis. Subsequently, AS-GCN was proposed to further improve spatial feature aggregation through a learnable adjacency matrix instead of using the skeleton as a fixed graph. AGC-LSTM learns long-range temporal dependencies, uses LSTM as the backbone, and changes each gate operation from the original fully connected layer to a graph convolution layer to better utilize the skeleton topology information. 2S-AGCN has two main contributions: first, a learnable residual mask is applied to the adjacency matrix of the graph convolution to make the topology of the skeleton more flexible; second, a second-order feature, the coordinate difference between two adjacent joints, is proposed as the skeleton information. The classification accuracy is greatly improved by training with joint and skeleton features. In skeleton-based action recognition, more graph convolution techniques have been proposed, such as SGN, Shift-GCN, and DeCoup-GCN, which use self-attention, shift convolution, and graph-based dropout, respectively. Recently, MS-G3D has been proposed by Figure 3 3D convolution is used to aggregate features within a window of consecutive frames, achieving state-of-the-art results. However, 3D convolution takes a long time to run.

[0003] It is worth considering whether it is possible to design a neural network to implicitly learn angle features. However, such a design would be challenging for current graph convolutional networks for two main reasons: (1) The conflict between more layers and higher performance; graph convolutional networks are currently the best performing models for classifying skeleton-based actions. To model the relationships between all joints, graph networks require many layers. However, recent work has shown that performance may degrade when graph convolutional networks become deeper due to the over-smoothing problem. (2) Limitations of the adjacency matrix; recent graph networks for action recognition learn the relationships between nodes via an adjacency matrix, which only captures pairwise correlations, while angles are third-order relationships involving three related joints.

[0004] However, existing methods perform poorly in distinguishing actions with similar motion trajectories. Since the joint coordinates in each frame are similar across these actions, it is difficult to determine the cause of slight differences between the coordinates. It could be due to different body sizes, motion speeds, or actually performing different actions. Summary of the invention

[0005] The present invention aims to propose a skeleton point action recognition method based on multi-angle feature fusion, which facilitates the extraction of high-order spatial motion features. The proposed angle features comprehensively capture the relative motion between different body parts while remaining robust to subject changes. Therefore, they are able to distinguish challenging actions with similar motion trajectories, which poses a problem for existing models. Our experimental results show that angle features are complementary to existing features, namely joint and skeleton representations. By incorporating our angle features into a simple action recognition graph convolutional neural network, we achieve new state-of-the-art accuracy on several benchmarks while maintaining a lower computational cost, thereby enabling real-time action recognition on edge devices.

[0006] In order to robustly capture the relative motion between body parts while remaining invariant to human subjects of different sizes, a third-order representation in the form of angles is proposed. The newly proposed feature is called angle encoding, which can be applied to both static and velocity domains of human joints. Therefore, the proposed encoding allows the model to recognize actions more accurately. Experimental results show that by fusing angle information into existing modern action recognition architectures, confusing actions can be classified more accurately, especially when the actions have very similar motion trajectories.

[0007] In order to solve the above technical problems, the specific technical scheme of the skeleton point action recognition method based on multi-angle feature fusion of the present invention is as follows:

[0008] The skeleton point action recognition method based on multi-angle feature fusion includes the following steps:

[0009] Step 1: Collect data sets; specifically, the data sets are divided into static data sets and dynamic data sets. The static data sets include human posture images, and the dynamic data sets include human action videos.

[0010] Step 2: Extract skeleton features; extract three types of features from images or videos: joints, bones, and angles; for skeleton features, if a joint has multiple adjacent nodes, use the joint closer to the center of the body for vector feature calculation; for angle features, use angle encoding to measure the angles between three body joints to describe the relative movement between body parts, and extract angle features for each joint; construct a feature tensor for each action , where R is a real number, C, T, V, and M correspond to the number of channels, frames, joint position information, and participants, respectively;

[0011] The angle code is calculated as follows:

[0012] Given three joint points , and , is the target joint point, which is used to calculate the angle feature of the target joint. and are the endpoints in the skeleton, Indicates from the joint point To point ( ), , Indicates joint points According to whether the input data is static or dynamic, two angle features are defined: static angle encoding and velocity angle encoding.

[0013] Assumptions yes and The angle between the joints The static angle encoding is defined as:

[0014] ,

[0015] The dynamic angle is encoded as the temporal difference of the angle features between consecutive frames, i.e.

[0016] ,

[0017] In the formula, For joints In frame The angular velocity at describes the dynamic change of the angle;

[0018] Step 3: Input the feature tensor into three serially connected spatiotemporal blocks, and then pass it to a global average pooling layer, a fully connected layer, and a softmax layer in turn to obtain the output structure for action recognition;

[0019] Step 4: Perform training and testing based on the data set to obtain the final output structure; a static data set is used to obtain static angle coding, and then training and testing are performed; a dynamic data set is used to obtain dynamic angle coding, and then training and testing are performed.

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

[0021] 1. A third-order representation in the form of angular encoding defined in static and velocity domains is proposed. The encoding captures the relative motion between body parts while maintaining invariance to different body sizes.

[0022] 2. Angular features can be easily fused into existing action recognition architectures to further improve the performance; experiments show that angular features provide complementary information relative to existing features, namely joint and skeleton representations.

[0023] 3. The model implemented using this method uses fewer training parameters and requires less inference time, so it will be better able to support real-time action recognition on edge devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a schematic diagram of the overall network architecture;

[0025] Figure 2 It is a schematic diagram of the angles defined locally;

[0026] Figure 3 It is an angle diagram facing the center; among them, (a) is a schematic diagram of a non-fixed axis, and (b) is a schematic diagram of a fixed axis;

[0027] Figure 4 is an angle diagram based on pairs; where (a) is the angle between the target joint and the hand, (b) is the angle between the target joint and the elbow, (c) is the angle between the target joint and the knee, and (d) is the angle between the target joint and the foot;

[0028] Figure 5 It is an angle diagram based on fingers; among them, (a) is the angle of the left finger as the anchor endpoint, and (b) is the angle of the right finger as the anchor endpoint;

[0029] Figure 6 Construct graphs for space-time blocks;

[0030] Figure 7 Graph of the spatial multi-scale convolution module;

[0031] Figure 8 Diagram of the temporal multi-scale convolution module. DETAILED DESCRIPTION

[0032] In order to better understand the purpose, structure and function of the present invention, the following is a further detailed description of a skeleton point action recognition method based on multi-angle feature fusion of the present invention in conjunction with the accompanying drawings.

[0033] To extend the ability of graph convolutional networks to extract body structure information, we propose a skeleton point action recognition method based on multi-angle feature fusion, which contains a third-order representation in the form of angle features. The proposed angle features comprehensively capture the relative motion between different body parts while remaining robust to subject changes. The angle features are complementary to existing features, namely joint and skeleton representations. By incorporating our angle features into a simple action recognition graph convolutional neural network, we achieve new state-of-the-art accuracy on several benchmarks while maintaining lower computational cost, thus enabling real-time action recognition on edge devices.

[0034] The overall network architecture of the skeleton point action recognition method based on multi-angle feature fusion is as follows: Figure 1 As shown in the figure, three different features are first extracted from the skeleton, corresponding to joints, bones and angles, and then input into a stack of three spatiotemporal blocks, with different step sizes of 1, 2, and 2 respectively; then they are passed to a global average pooling, a fully connected layer, and a softmax layer in turn to obtain the final output structure for action recognition. A simplified version of a known multi-scale graph convolutional network MS-G3D is used as the backbone architecture of our model. For simplicity, we delete their heavy Figure 3 dimensional convolution module, which trades off performance gain and computational cost.

[0035] Specifically, three types of features, joints, bones, and angles, are extracted from each action video; for bone features, if a joint has multiple adjacent nodes, we select the joint that is closer to the body center (hip joint), for example, given an elbow joint, we use the vector from the elbow to the shoulder instead of the vector from the elbow to the wrist; for angle features, we propose to use third-order features to measure the angles between three body joints to describe the relative motion between body parts, called angle encoding; we extract angle features for each joint; finally, for each action, we construct a feature tensor, where R is a real number, and C, T, V, and M correspond to the number of channels, the number of frames, the joint position information, and the number of participants, respectively.

[0036] The angle code is calculated as follows:

[0037] Given three joint points , and , is the target joint point, which is used to calculate the angle feature of the target joint. and are the endpoints in the skeleton, Indicates from the joint point To point ( ), , Indicates joint points According to whether the input data is static or dynamic, two angle features are defined: static angle encoding and velocity angle encoding.

[0038] (1) Static angle coding

[0039] Assumptions yes and The angle between the joints The static angle encoding is defined as:

[0040]

[0041] Notice, and No need to be The eigenvalues ​​increase monotonically from 0 to π radians. Compared with the first-order features representing joint coordinates and the second-order features representing bone lengths and directions, these third-order features focus more on motion and are invariant to the scale of human subjects.

[0042] (2) Dynamic angle encoding

[0043] The dynamic angle is encoded as the temporal difference of the angle features between consecutive frames, i.e.

[0044] ,

[0045] In the formula, For joints In frame The angular velocity at describes the dynamic change of the angle;

[0046] However, when we try to exploit these angular features, we face computational challenges: if we use all possible angles, i.e. , and All possible combinations of , where N and T represent the number of joints and frames, respectively. Therefore, we classify the angles so that they help distinguish actions without greatly increasing the computational cost.

[0047] According to the angle characteristics between joints and bones, the angles are divided into four categories, namely locally defined angles, center-facing angles, pair-based angles, and finger-based angles, which will be explained below.

[0048] Locally defined angles; e.g. Figure 2As shown, locally defined angles are measured between a joint and its neighboring joints, where the black dots represent the angle feature of the target joint, which corresponds to the root of an angle, and the dashed lines represent the two sides of an angle. If the target joint has only one neighboring joint, its angle feature is set to zero. When a joint has more than two neighboring joints, the two most active ones are selected. For example, we use two shoulders instead of the head and abdomen as neck joints because the latter rarely move. These angles can capture the relative motion between two bones.

[0049] Angle towards the center; e.g. Figure 3 As shown in, given a target joint, we use two angles with the center as the direction: ① Neck-target-pelvis, called the non-fixed axis, such as Figure 3 As shown in (a) in the figure; ② Neck-pelvis-target, called the fixed axis, such as Figure 3 As shown in (b) in the figure. The center guidance angle measures the angular distance between the target joint and the two body center joints representing the neck and pelvis. Among them, the black dot represents the angle feature of the target joint, which corresponds to the root of an angle. The cross points are the fixed endpoints of the angle, and the dotted lines represent the two sides of an angle. For the joints representing the neck and pelvis, we set their angle features to 0. The center guidance angle measures the relative position between the target joint and the body center joint. For example, given the elbow joint as the target joint horizontally away from the body center, the non-fixed axis angle decreases, while the fixed axis angle increases.

[0050] Based on the angle of Figure 4 As shown in , the pair-based angle measurement is the angle between the target joint and four pairs of endpoints: hand, elbow, knee and foot, respectively. Figure 4 As shown in (a), (b), (c), and (d), the black dots represent the angle features of the target joint, which corresponds to the root of an angle. The cross points are the fixed endpoints of the angle, and the dotted lines represent the two sides of an angle. If the target joint is one of the endpoints, we set the feature value to zero. We choose these four pairs because of their importance in performing actions. Paired angles are beneficial for identifying object-related actions. For example, when a person holds a box, the angle between the target joint and the hand can indicate the size of the box.

[0051] Based on the angle of the finger; e.g. Figure 5 As shown in the figure, two joints corresponding to the fingers are selected as the anchor endpoints of an angle, where the black dot represents the angle feature of the target joint, which corresponds to the root of an angle; the cross point is the fixed endpoint of the angle; the dotted line represents the two sides of an angle, and the fingers actively participate in human actions. Figure 5 (a) is the angle of the left finger as the anchor endpoint. Figure 5(b) in the figure shows the angle of the right finger as the anchor endpoint. When each hand skeleton has finger joints, we include more detailed finger angles to merge them. The finger-based angles can indirectly describe the gesture. For example, the angle with the wrist as the root and the hand tip and thumb as the two endpoints can reflect the degree of hand opening.

[0052] After the network performs feature extraction, we extract 7 or 9 angle features for each joint (7 corresponds to no finger-based angle, 9 corresponds to finger-based angle), forming 7 or 9 feature channels.

[0053] Specifically, each spatiotemporal block consists of a spatial multi-scale graph convolution module and three temporal multi-scale convolution modules, such as Figure 6 As shown in , the features are sequentially passed through the spatial multi-scale graph convolution module and three serially connected temporal multi-scale convolution modules. The step sizes corresponding to the temporal multi-scale convolution modules are different, namely 1, 2, and 2. The spatial multi-scale convolution module is composed of a parallel combination of graph convolution layers, and K parallel graph convolution layers are used to extract structural skeleton information, as shown in Figure 7 As shown in Figure 2, the temporal multi-scale convolution module consists of 7 parallel temporal convolution branches, as shown in Figure 2. Figure 8 shown.

[0054] Specifically, the output of the graph convolution in the spatial multi-scale convolution module is obtained by applying a dynamic adjacency matrix and a learnable mask The mask is summed up; to create graph convolutional layers with receptive fields of different sizes, we directly use the power of the adjacency matrix instead of It aggregates multi-hop neighbor information itself, so Indicates that there is a path between joints i and j in k hops, feeding the input data into k graph convolution branches with different receptive fields, k no longer than the longest path in the skeleton graph. Using the skeleton as a fixed graph cannot capture non-physical dependencies between joints, for example, two hands may always perform actions together while they are not physically connected in the skeleton. To infer the latent dependencies between joints, we apply a learnable mask to the adjacency matrix.

[0055] Each branch of the temporal multi-scale convolution module is Convolution starts with aggregating features between different channels. The functions of different branches diverge as the input is passed forward and can be divided into four groups. The first group is used to extract multi-scale temporal features. This group includes 4 branches, each branch in After convolution, 4 The temporal convolution of , applies 4 different dilation methods to obtain multi-scale temporal receptive fields; the second group is the processing characteristics within the current frame, this group has only one convolution to concentrate features within a single frame; the third group emphasizes the most salient information in consecutive frames. After convolution, The maximum pooling layer of , to draw the most important features; the fourth group holds the gradient; contains a residual path, only one Convolution is performed to maintain the gradient during back-propagation; the outputs of the first, second, and third groups are combined and added to the output of the fourth group to obtain the final output.

[0056] We train deep learning models on four NVIDIA 2080-Tigpus and use PyTorch as our deep learning framework to conduct experiments on the skeleton point action recognition method based on multi-angle feature fusion. In addition, we apply stochastic gradient descent with momentum of 0.9 as the optimizer. The training epochs for NTU60 and NTU120 are set to 55 and 60, respectively, and the learning rate decays to 0.1 of the original value at epochs 35, 45, and 55. The training loss function is cross entropy.

[0057] We studied the impact of concatenating the angle feature with other features. We first obtained the accuracy of three models trained with three feature types, namely joints, skeletons, and the concatenation of both as a baseline. Then, the angle feature was concatenated to all three features to compare the performance. The accuracy was evaluated using two data streams, namely the static data stream and the velocity data stream. It can be seen that all feature types in both data streams gain accuracy gains by incorporating the angle feature. For the static stream, concatenating the angle feature with the concatenation of joint and skeleton features leads to the most significant enhancement. For the velocity stream, although the accuracy is lower than the static accuracy, the improvement of the angle feature is greater. In summary, the highest accuracy is achieved by concatenating all three features using the static data stream.

[0058] The network performance when only angle encoding is provided, i.e. without using joint and bone features, can be obtained. Training with angle encoding only even outperforms using joint features, which indicates the completeness of angle encoding in describing the trajectory of human skeletal motion.

[0059] An ablation study of different types of angle encodings is performed to improve the accuracy of recognizing skeleton-based actions. A baseline accuracy is obtained using only the joint features. Then, different types of angle encodings are concatenated with the joint features to evaluate the effectiveness of each encoding type.

[0060] Center-oriented angle encoding improves accuracy. Since center-oriented angle encoding reflects the distance from the joint to the center of the body, the results show that knowing such distance is very beneficial for recognizing skeleton-based actions. This is consistent with our daily experience. For example, when people make a "victory" sign, they usually move their hands away from the center of the body.

[0061] Compared with the static joint coordinates, the angle encoding improves the accuracy of the velocity input features. This difference suggests that the angle encoding provides more additional information in capturing the dynamic motion trajectory of the action than describing the spatial structure information.

[0062] The local definition-based angle encoding only slightly improves the accuracy of using static features, but greatly improves the accuracy of using velocity input features. We speculate that this is because the movements of arms and legs involve a lot of dynamics. Therefore, when using velocity input, the angle encoding provides complementary dynamic information for these movements.

[0063] This paper fuses third-order spatial features in the form of angle encoding into modern architectures to robustly capture the relationship between joints and body parts. Existing skeleton-based action recognition models usually adopt joint and bone representations of the human skeleton to extract and analyze motion patterns. However, a wide range of models are still confused by actions with similar motion trajectories. Combining our designed high-order features with current models effectively solves the above problems. By simply concatenating the new angle representation with the original features without modifying the network, we achieve state-of-the-art accuracy in two basic spatiotemporal graph convolutional network benchmarks while using a small number of parameters and fast running time.

[0064] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.

Claims

1. A skeleton point action recognition method based on multi-angle feature fusion, characterized in that: The following steps are involved: Step 1: Collect data sets; specifically, the data sets are divided into static data sets and dynamic data sets. The static data sets include human posture images, and the dynamic data sets include human action videos. Step 2: Extract skeleton features; Extract three types of features from images or videos: joints, bones, and angles; for bone features, if a joint has multiple adjacent nodes, use the joint closer to the center of the body for vector feature calculation; for angle features, use angle encoding to measure the angles between three body joints to describe the relative motion between body parts, and extract angle features for each joint; construct a feature tensor x∈R for each action C×T×V×M , where R is a real number, C, T, V, and M correspond to the number of channels, frames, joint position information, and participants, respectively; The angle code is calculated as follows: Given three joint points u, ω1 and ω2, u is the target joint point used to calculate the angle feature of the target joint, ω1 and ω2 are the endpoints in the skeleton, Represents the distance from joint point u to point ω i , a vector with i=1,2, (x k ,y k ,z k ) represents the coordinates of the joint point k, k = u, ω1 or ω2, and two angle features are defined according to whether the input data is static or dynamic: static angle encoding and speed angle encoding; Assume that θ is and The angle between them, the static angle encoding of joint u is defined as: The dynamic angle is encoded as the temporal difference of the angle features between consecutive frames, i.e. In the formula, is the angular velocity of joint u at frame t+1, which describes the dynamic change of the angle; According to the angle characteristics between joints and bones, the angles are divided into four categories, namely, locally defined angles, center-oriented angles, pair-based angles, and finger-based angles; Specifically, the locally defined angle is measured between a joint and its neighboring joints. If the target joint has only one neighboring joint, its angle feature is set to zero; When a joint has more than two adjacent joints, the two most active joints are selected; The angular distance between the target joint and the body center joint is used as the angle facing the center. Given a target joint, two angles with the center as the direction are used: ① neck-target-pelvis, called the non-fixed axis, and ② neck-pelvis-target, called the fixed axis. For the target joints representing the neck and pelvis, the angle facing the center is 0. The angles between the target joint and the four pairs of endpoints are used as pair-based angles, where the four pairs of endpoints are specifically the hand, elbow, knee, and foot; The angle between the target joint and two fingers is used as the finger-based angle; wherein the fingers actively participate in the human action; Step 3: Input the feature tensor into three serially connected spatiotemporal blocks, and then pass it to a global average pooling layer, a fully connected layer, and a softmax layer in turn to obtain the output structure for action recognition; The spatiotemporal block includes a spatial multiscale graph convolution module and three temporal multiscale convolution modules, and the features are sequentially passed through the spatial multiscale graph convolution module and three serially connected temporal multiscale convolution modules; wherein the spatial multiscale convolution module is composed of a parallel combination of graph convolution layers, and K parallel graph convolution layers are used to extract structural skeleton information; the temporal multiscale convolution module includes 7 parallel temporal convolution branches; Each branch of the temporal multi-scale convolution module starts with a 1×1 convolution and is specifically divided into four groups; the first group includes 4 branches, each of which undergoes 4 3×1 temporal convolutions after the 1×1 convolution, and 4 different dilation methods are applied to obtain a multi-scale temporal receptive field; The second group has only one 1×1 convolution; the third group has a 3×1 maximum pooling layer after the 1×1 convolution; the fourth group has only one 1×1 convolution; the outputs of the first, second, and third groups are combined and added to the output of the fourth group to obtain the final output; Step 4: Perform training and testing based on the data set to obtain the final output structure; a static data set is used to obtain static angle coding, and then training and testing are performed; a dynamic data set is used to obtain dynamic angle coding, and then training and testing are performed.

2. The method for skeleton point action recognition based on multi-angle feature fusion according to claim 1, characterized in that: 7 or 9 angle features are extracted for each joint to form 7 or 9 feature channels, where 7 corresponds to no finger-based angles and 9 corresponds to finger-based angles.

3. The method for skeleton point action recognition based on multi-angle feature fusion according to claim 2 is characterized in that: The output of a graph convolution layer in the spatial multi-scale convolution module is obtained by applying a dynamic adjacency matrix A k and a learnable mask The mask is summed up; k represents the kth graphic convolution layer.