A human body behavior recognition method based on skeleton and medium

By using a dynamic topology adaptive graph convolutional neural network model, the problem that static topology structures in existing technologies cannot adapt to the diversity of human behavior is solved, and higher recognition accuracy and feature quality are achieved.

CN117912105BActive Publication Date: 2026-11-27UNIV OF CHINESE ACAD OF SCI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410023999.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-08
Publication Date
2026-11-27
Estimated Expiration
2044-01-08

AI Technical Summary

Technical Problem

Existing graph convolutional neural networks are based on statically learned graph topologies, which cannot adapt to the diversity of human behavior, resulting in insufficient recognition accuracy.

Method used

A dynamic topology adaptive graph convolutional neural network model is adopted. By constructing a dynamic topology adaptive graph convolutional neural network model, the complex topological structure of human skeleton nodes is learned, and the information of adjacent temporal frame nodes is dynamically aggregated to improve the performance of human behavior recognition.

Benefits of technology

It improves the accuracy of human behavior recognition and the modeling ability of the model, enhances the recognition performance of different actions, and improves the overall quality of features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117912105B_ABST
    Figure CN117912105B_ABST
Patent Text Reader

Abstract

The application relates to a human body behavior recognition method based on a skeleton, and comprises the following steps: (1) obtaining samples; (2) extracting original input features; (3) calculating a time sequence interframe independent topology structure and a channel independent topology structure according to the original input features of the samples; (4) calculating aggregated features under the time sequence interframe independent topology structure according to the original input features and the time sequence interframe independent topology structure; (5) calculating aggregated features under the channel independent topology structure according to the aggregated features under the time sequence interframe independent topology structure and the channel independent topology structure; (6) further aggregating feature information of front and rear frames according to the aggregated features under the channel independent topology structure to obtain final input features of the samples; (7) completing training of a dynamic topology adaptive graph convolutional neural network model; and (8) recognizing human body behaviors by using the trained model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer vision technology, and in particular to a skeleton-based method and medium for human behavior recognition. Background Technology

[0002] Human behavior recognition is a crucial task in computer vision. With the growth of data and advancements in hardware technology, human behavior recognition has been widely applied in real-world scenarios such as human-computer interaction, visual surveillance, and virtual reality. Deep learning-based behavior recognition methods have also been extensively studied. Common data modalities for behavior recognition include skeletal sequences and RGB video sequences. While RGB data provides rich appearance information, it is sensitive to changes in viewpoint, lighting, background, and human scale. Skeletal data, on the other hand, overcomes these shortcomings, providing simple yet rich information on human 3D movements. It is robust to changes in background and scale and can be easily obtained using low-cost depth cameras like Kinect or pose estimation algorithms. Therefore, skeletal data-based behavior recognition has received considerable attention in the field of computer vision.

[0003] With the development of behavior recognition technology based on skeletal data, the application of models has transitioned from early convolutional neural networks (CNNs) to graph convolutional neural networks (such as 2s-AGCN), achieving higher accuracy in the recognition of skeletal behaviors.

[0004] However, the inventors of this application discovered in their research that existing graph convolutional neural networks, based on static learning graph topology, cannot adapt to the diversity of actions. Therefore, a new dynamic network model is urgently needed to improve the accuracy of recognition tasks. Summary of the Invention

[0005] To address the aforementioned problems, the purpose of this invention is to provide a skeleton-based human behavior recognition method and medium. Based on sample data, an effective dynamic topology adaptive graph convolutional neural network model is constructed. This model can be applied to skeleton-based human behavior recognition tasks. Graph data is used to represent the complex topological structure of human skeleton nodes. The graph convolutional network dynamically learns the multidimensional topological structure of temporal and channel collaboration and aggregates effective information from adjacent temporal frame nodes to improve the model's ability to model and learn features of human skeleton action sequences, thereby enhancing the model's performance in skeleton-based human behavior recognition.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, this application provides a skeleton-based human behavior recognition method, the method comprising: (1) Obtain the original skeletal data of the sample; (2) Extract the original input features of the sample and input them into the dynamic topology adaptive graph convolutional neural network model to be trained; the original input features are skeletal data with set temporal dimension and number of channels; (3) Calculate the time-series frame-independent topology and the channel-independent topology based on the original input features of the samples; (4) Calculate the aggregated features under the independent topology between time frames based on the original input features and the independent topology between time frames; (5) Calculate the aggregation features under the independent topology structure between time frames and the independent topology structure of the channel; (6) Based on the aggregation features under the independent topology of the channel, further aggregate the feature information of the previous and next frames to obtain the final input features of the sample; (7) Based on the final input features of the samples and the preset classification labels, complete the training of the dynamic topology adaptive graph convolutional neural network model; (8) Use the trained dynamic topology adaptive graph convolutional neural network model to identify human behavior.

[0007] In one implementation of this application, the computation-time frame-independent topology includes: Based on the original skeletal data of the sample, a corresponding graph structure is established, which includes a set of nodes of the human skeletal node sequence and a set of edges of the natural connecting edges of the human body composed of human skeletal nodes; and a normalized adjacency matrix representing the topological structure is calculated based on the edge set. Based on the distance variation of any pair of node features in the original input features of the sample along the temporal dimension, construct a basic topology. Based on the adjacency matrix, the basic topology is adjusted to obtain a temporally independent topology between frames.

[0008] In one implementation of this application, the features of any pair of nodes The formula for calculating distance along the time series dimension is:

[0009] in, and Representing the features and The formula for calculating a linear transformation is as follows:

[0010]

[0011] in, , This is the weight matrix; for The function represents taking the average value.

[0012] In one implementation of this application, the time-series frame-independent topology is denoted as... The calculation formula is as follows:

[0013] in, Let be the adjacency matrix. For learnable scalars, The topology is the basis for this.

[0014] In one implementation of this application, calculating the aggregated features under the temporally independent topology based on the original input features and the temporally independent topology includes: Original input features The number of channels is increased after linear transformation, and the calculation formula is as follows:

[0015] in, The input features are those after linear transformation. This is the weight matrix; The original input features are based on the independent topology between temporal frames. The aggregation is performed using the following formula:

[0016] in, These are features calculated based on the independent topology between temporal frames. for In the The topology matrix of the frame. for In the Frame characteristics.

[0017] In one implementation of this application, the aggregation features under the channel-independent topology are calculated based on the aggregation features under the time-series frame-independent topology and the channel-independent topology, including: Features Based on the independent topology between channels The aggregation is performed using the following formula:

[0018] in, Features calculated based on the independent topology between channels. for In the The topology matrix of each channel, for In the Features of each channel.

[0019] In one implementation of this application, the formula for calculating the feature information of the aggregated frames is as follows:

[0020] in, For the aggregated first Frame characteristics and The first Frame, First Frame characteristics.

[0021] In one implementation of this application, the final input features are further aggregated with time-series information via TCN.

[0022] In one implementation of this application, the final input features are obtained by several rounds of continuous aggregation processing from the original input features. Each continuous aggregation process includes: calculating the aggregated features under the independent topology structure between time frames, calculating the aggregated features under the independent topology structure of the channel, and aggregating the feature information of the frames before and after aggregation, as well as the temporal information.

[0023] In a second aspect, this application provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program, when running, controls the device where the computer-readable storage medium is located to execute the skeleton-based human behavior recognition method described in the first aspect.

[0024] The present invention has the following advantages due to the adoption of the above technical solutions: (1) This invention proposes a dynamic topology adaptive graph convolutional neural network model, which dynamically learns an adaptive topology structure based on human skeletal node data to improve the model's ability to model different actions and its recognition accuracy.

[0025] (2) This invention proposes a multi-dimensional topology learning method that combines temporal and channel learning. It learns independent topological structures in temporal and channel for different action samples, which increases the specificity of the topological structure and thus improves the recognition performance of the model.

[0026] (3) This invention proposes a feature optimization method for fusing information from adjacent temporal frame nodes, which enhances the temporal dependence of human action node sequences, extracts richer action features, and improves the overall quality of effective features.

[0027] (4) Applying this invention to skeleton-based human behavior recognition tasks can significantly improve the model’s recognition performance. Attached Figure Description

[0028] Figure 1 This is an algorithm flowchart of the skeleton-based human behavior recognition method of the present invention; Figure 2 This is the network structure diagram of the dynamic topology adaptive graph convolutional neural network model of the present invention; Figure 3 It is a visualization of the human skeletal movement sequence (handshake) on a single frame. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention are within the scope of protection of the present invention.

[0030] In one embodiment of this application, a skeleton-based human behavior recognition method is provided, characterized in that the method includes: (1) Obtain the original skeletal data of the sample; (2) Extract the original input features of the sample and input them into the dynamic topology adaptive graph convolutional neural network model to be trained; the original input features are skeletal data with set temporal dimension and number of channels; (3) Calculate the time-series frame-independent topology and the channel-independent topology based on the original input features of the samples; Specifically, based on the original skeletal data of the sample, a corresponding graph structure is established, which includes a set of nodes of the human skeletal node sequence and a set of edges of the natural connecting edges of the human body composed of human skeletal nodes; and a normalized adjacency matrix representing the topological structure is calculated based on the edge set.

[0031] The graph structure of the sample data is represented as follows ,in represents a point set, Represents an edge set. For the number of frames in the sequence, The number of nodes The edges that naturally connect the human body are represented as an adjacency matrix. After normalization, the calculation formula is as follows:

[0032] in, The normalized adjacency matrix, For degree matrix, This is the initially defined adjacency matrix.

[0033] Based on the distance variation of any pair of node features in the original input features of the sample along the temporal dimension, a basic topological structure is constructed.

[0034] Any pair of node features The formula for calculating distance along the time series dimension is:

[0035] in, and Representing the features and The formula for calculating a linear transformation is as follows:

[0036]

[0037] in, , This is the weight matrix; for The function represents taking the average value.

[0038] As a non-linear activation function, a non-linear transformation is added to the distance value without changing the feature dimension. The calculation formula is:

[0039] This step yields the topology. .

[0040] Based on the adjacency matrix, the basic topology is adjusted to obtain a temporally independent topology between frames.

[0041] The time-series independent topology is denoted as The calculation formula is as follows:

[0042] in, Let be the adjacency matrix. For learnable scalars, The topology is the basis for this.

[0043] (4) Calculate the aggregated features under the independent topology between time frames based on the original input features and the independent topology between time frames; Specifically, the original input features The number of channels is increased after linear transformation, and the calculation formula is as follows:

[0044] in, The input features are those after linear transformation. This is the weight matrix; The original input features are based on the independent topology between temporal frames. The aggregation is performed using the following formula:

[0045] in, These are features calculated based on the independent topology between temporal frames. for In the The topology matrix of the frame. for In the Frame characteristics.

[0046] (5) Calculate the aggregation features under the independent topology structure between time frames and the independent topology structure of the channel; Specifically, the features Based on the independent topology between channels The aggregation is performed using the following formula:

[0047] in, Features calculated based on the independent topology between channels. for In the The topology matrix of each channel, for In the Features of each channel.

[0048] (6) Based on the aggregation features under the independent topology of the channel, further aggregate the feature information of the previous and next frames to obtain the final input features of the sample; Specifically, the formula for calculating the feature information of the aggregated frames is as follows:

[0049] in, For the aggregated first Frame characteristics and The first Frame, First Frame characteristics.

[0050] Furthermore, the final input features are also aggregated with temporal information through TCN.

[0051] The final input features are obtained by several rounds of continuous aggregation processing from the original input features. Each continuous aggregation process includes: calculation of aggregated features under independent topological structures between time frames, calculation of aggregated features under independent topological structures of channels, aggregation of feature information of frames before and after aggregation, and aggregation of time information.

[0052] (7) Based on the final input features of the samples and the preset classification labels, complete the training of the dynamic topology adaptive graph convolutional neural network model; (8) Use the trained dynamic topology adaptive graph convolutional neural network model to identify human behavior.

[0053] The method of this application is illustrated below in a more detailed example.

[0054] The dynamic topology adaptive graph convolutional neural network proposed in this invention comprises a 9-layer network. The algorithm flowchart of the network is shown below. Figure 1 See the network structure diagram. Figure 2 The features of the preprocessed original sample data are represented by high-dimensional tensors. A visualization of the action samples (handshake) is shown below. Figure 3 We design an initial adjacency matrix based on the natural human skeletal structure to represent node topological relationships. A multi-dimensional topology learning method, combining temporal and channel-based approaches, dynamically learns new topological structures based on the diversity of input features across channels and time. This is used to select more specific information during node information aggregation. A feature optimization method, fusing node information from adjacent temporal frames, is used to enhance features. This embodiment uses the large-scale NTU RGB+D action recognition dataset (NTU RGB+D: A Large Scale Dataset for 3D Human Activity Analysis), containing 60 types of actions, including 11 types of two-person interaction actions. It contains 56,880 action sequence samples, collected from 40 performers from different camera angles, covering a wide variety of actions with significant differences between them. The specific implementation steps are as follows: 1) In this embodiment, the input feature is a sequence of skeletal nodes, with one sequence corresponding to each action. Each frame has 3D position coordinates of 25 joints, represented by a shape of... The array representation is that before inputting into the network, each array is uniformly converted into a 64-dimensional vector according to the 25 node numbers, that is, 64 frames are selected.

[0055] 2) Using a predefined human skeletal graph structure, obtain the adjacency matrix of the initial representation graph topology. The normalized adjacency matrix is .

[0056] 3) The input features are fed into a dynamic topology adaptive graph convolutional neural network. First, the graph convolutional layer extracts the spatial information of the skeletal nodes. The temporal and channel-coordinated multidimensional topology learning method proposed in this invention is used to calculate the temporally independent topology between frames. For each pair of node features in the input, a linear transformation is performed to reduce the channel dimension and thus the number of parameters. The distance between two points is calculated along the temporal dimension, and these distance values ​​are activated using a nonlinear function to obtain an asymmetric multidimensional topology matrix. Based on this matrix, adjustments are made using an initially defined human skeleton adjacency matrix and a learnable parameter to obtain the temporally independent topology between frames.

[0057] 4) After linear transformation of the input features, node aggregation is performed based on the temporally independent inter-frame topology learned in 3) to obtain the output features under inter-frame topology independence. Then, these features are aggregated based on the dynamically learned inter-channel independent topology to obtain the output features under inter-channel topology independence.

[0058] 5) For the features calculated in 4), the feature optimization method of fusing adjacent time-series frame node information proposed in this invention is used to fuse the features of adjacent frame nodes, thereby improving the feature quality.

[0059] 6) The features calculated in 5) are then further processed by a convolutional neural network (TCN) with a kernel size of 9 in the time dimension and a kernel size of 1 in the node dimension to aggregate temporal information, thus completing the processing of one layer of network structure. After passing through 9 such networks, the softmax function is used to calculate the scores of 60 categories. The category corresponding to the label with the highest score is the classification result of the action sequence.

[0060] 7) In this embodiment, the hardware configuration for executing the algorithm is: CPU is AMD EPYC 7282, GPU is NVIDIA A100-PCIE-40GB; software configuration is: computer operating system is Ubuntu 18.04.6, CUDA version is 11.1, and the neural network framework used is PyTorch version 1.9.0. Parameters are set as follows: initial learning rate, momentum, and weight decay are 0.1, 0.9, and 0.0004 respectively; 75 training iterations; the first 5 iterations use a warmup strategy; the learning rate decays to 0.1 in the 35th and 55th iterations; batch size is 64; and the number of nodes per frame is 25. Other embodiments can adjust the parameters appropriately according to the size and scale of the selected dataset. After training is complete, the network weights are obtained. In the testing phase, the input action sequence to be predicted is classified.

[0061] In summary, the present invention can achieve human behavior recognition based on skeletal modalities through the above steps.

[0062] To verify the effectiveness and practicality of the method proposed in this invention, an example on the NTU RGB+D large-scale action recognition dataset is given below. This dataset has two testing standards: X-Sub (cross-subject) means that the training data comes from 20 performers and the test data comes from another 20 performers; X-View (cross-view) means that the training data is taken by cameras from two angles and the test data is taken by a camera from another angle. Table 1 shows the recognition results of the example on the test set under the two standards, and the metric is Accuracy (%).

[0063]

[0064] Table 1 As shown in Table 1, the dynamic topology adaptive graph convolutional neural network, the multi-dimensional topology learning method combining temporal and channel collaboration, and the feature optimization method that fuses information from adjacent temporal frame nodes proposed in this invention outperform other models on the NTU RGB+D large-scale human motion dataset in the skeleton-based human motion recognition task, proving the effectiveness of this invention. The method proposed in this invention can also be flexibly applied to other datasets.

[0065] In this application embodiment, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a computer device, implements the method described in this application embodiment.

[0066] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0067] In the embodiments provided by this invention, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units through some interfaces, and may be electrical, mechanical, or other forms.

[0068] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0069] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A skeleton-based human behavior recognition method, characterized in that, The method includes: (1) Obtain the original skeletal data of the sample; (2) Extract the original input features of the sample and input them into the dynamic topology adaptive graph convolutional neural network model to be trained; the original input features are skeletal data with set temporal dimension and number of channels; (3) Calculate the time-series frame-independent topology and the channel-independent topology based on the original input features of the samples; The computation time-series frame-independent topology includes: Based on the original skeletal data of the sample, a corresponding graph structure is established, which includes a set of nodes of the human skeletal node sequence and a set of edges of the natural connecting edges of the human body composed of human skeletal nodes; and a normalized adjacency matrix representing the topological structure is calculated based on the edge set. Based on the distance variation of any pair of node features in the original input features of the sample along the temporal dimension, construct a basic topology. Based on the adjacency matrix, the basic topology is adjusted to obtain a temporally independent topology between frames; (4) Calculate the aggregated features under the independent topology between time frames based on the original input features and the independent topology between time frames; (5) Calculate the aggregation features under the independent topology structure between time frames and the independent topology structure of the channel; (6) Based on the aggregation features under the independent topology of the channel, further aggregate the feature information of the previous and next frames to obtain the final input features of the sample; (7) Based on the final input features of the samples and the preset classification labels, complete the training of the dynamic topology adaptive graph convolutional neural network model; (8) Use the trained dynamic topology adaptive graph convolutional neural network model to identify human behavior.

2. The skeleton-based human behavior recognition method according to claim 1, characterized in that, The features of any pair of nodes The formula for calculating distance along the time series dimension is: in, and Representing the features and The formula for calculating a linear transformation is as follows: in, , This is the weight matrix; for The function represents taking the average value.

3. The skeleton-based human behavior recognition method according to claim 2, characterized in that, The independent topology between time-series frames is denoted as The calculation formula is as follows: in, Let be the adjacency matrix. For learnable scalars, The topology is the basis for this.

4. The skeleton-based human behavior recognition method according to claim 3, characterized in that, The step of calculating aggregated features under the temporally independent topology based on the original input features and the temporally independent topology includes: Original input features The number of channels is increased after linear transformation, and the calculation formula is as follows: in, The input features are those after linear transformation. This is the weight matrix; The original input features are based on the independent topology between temporal frames. The aggregation is performed using the following formula: in, These are features calculated based on the independent topology between temporal frames. for In the The topology matrix of the frame. for In the Frame characteristics.

5. The skeleton-based human behavior recognition method according to claim 4, characterized in that, Based on the aggregation features under the time-series frame-independent topology and the channel-independent topology, the aggregation features under the channel-independent topology are calculated, including: Features Based on the independent topology between channels The aggregation is performed using the following formula: in, Features calculated based on the independent topology between channels. for In the The topology matrix of each channel, for In the Features of each channel.

6. The skeleton-based human behavior recognition method according to claim 5, characterized in that, The formula for calculating the feature information of the aggregated frames is as follows: in, For the aggregated first Frame characteristics and The first Frame, First Frame characteristics.

7. The skeleton-based human behavior recognition method according to claim 6, characterized in that, The final input features are also aggregated with time-series information via TCN.

8. The skeleton-based human behavior recognition method according to claim 7, characterized in that, The final input features are obtained by several rounds of continuous aggregation processing from the original input features. Each continuous aggregation process includes: calculation of aggregated features under independent topological structures between time frames, calculation of aggregated features under independent topological structures of channels, aggregation of feature information of frames before and after aggregation, and aggregation of time information.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed, controls the device containing the computer-readable storage medium to perform the skeleton-based human behavior recognition method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Video target detection method based on multi-layer feature fusion

    CN110427839A