Human skeleton action recognition method based on graph and hypergraph convolution composite neural network

By combining the graph and hypergraph convolutional composite neural network with the frame optimization learning module, the noise problem in skeletal action recognition is solved, the recognition accuracy and the ability to identify easily confused actions are improved, and more efficient human skeleton action recognition is achieved.

CN118629089APending Publication Date: 2024-09-10GUANGXI NORMAL UNIV
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410652740.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing skeletal action recognition methods are prone to introducing too much noise when processing human skeleton data, resulting in reduced model recognition capabilities and low accuracy, especially when faced with confusing actions, which are prone to misjudgment.

Method used

Using a method based on graph and hypergraph convolution composite neural network, through time channel aggregation convolution and spatiotemporal aggregation hypergraph convolution, combined with the frame optimization learning module, the low-order and high-order features in the skeleton data are captured, and the low-order and high-order features in the skeleton data are captured through weighted average and cross-entropy loss function to optimize the model to improve the recognition of confusing actions.

Benefits of technology

It effectively avoids the spatio-temporal imbalance problem in hypergraph convolution, improves the model's recognition ability and accuracy of action recognition of easily confused actions, reduces the impact of redundant frames, and enhances the ability to identify ambiguous actions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629089A
    Figure CN118629089A
Patent Text Reader

Abstract

The invention provides a human skeleton action recognition method based on a graph and hypergraph convolutional composite neural network, and belongs to the technical field of human skeleton action recognition, and the method comprises the following steps: obtaining an image data set required by skeleton action recognition training, and carrying out the graph modeling and hypergraph modeling of skeleton data, time channel aggregation convolution and space-time aggregation hypergraph convolution are constructed, a frame optimization learning module is used for processing low-order information in a skeleton data set and high-order information in skeleton data, scores predicted by each stream are integrated and subjected to weighted average, and a final recognition result is obtained. A space-time aggregation hypergraph convolution and frame optimization learning module is designed, the problem of space-time imbalance existing in hypergraph convolution is avoided, the modeling advantages of a graph and a hypergraph in local information and global information are utilized, redundant frames in a video source are filtered, and ambiguous actions are distinguished through comparative learning, so that the frame optimization learning efficiency is improved. And the identification capability of the model on easily-confused actions and the action identification precision are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of human motion recognition, and in particular to a human skeleton motion recognition method based on a graph and hypergraph convolutional composite neural network. Background Art

[0002] As one of the hottest research topics in recent years, human action recognition has been widely used in various fields such as video surveillance, virtual reality, and robotics. In complex scenes, skeleton data has better robustness than traditional RGB image sequences, depth image sequences, videos, and the fusion of these modes (such as RGB+optical flow). Skeleton data has great potential in action recognition because it can directly respond to the posture and motion state of the human body, and has far-reaching significance. Therefore, human action recognition based on skeleton data has become a hot topic in current deep learning research, attracting more and more researchers to explore and study it.

[0003] Although the existing graph convolutional neural network and hypergraph convolutional neural network methods have achieved good results in human skeleton data feature extraction. However, they still have some limitations, which are mainly manifested in the following aspects: 1. Although the existing graph convolutional neural network-based methods can well capture the spatiotemporal features of non-Euclidean graphs (such as human skeleton data) and can effectively extract the relationship between bone connections and joint movements. However, they often ignore the potential non-physical connection relationships between human joints, such as dynamic features such as the angle and speed of joint movements and the synergistic relationship of distant joints; although the existing hypergraph convolutional neural network-based methods can well extract high-order motion features in skeleton data, because the operation of hypergraph convolution depends on hyperedges, when facing topologically simple skeleton and joint information, it may introduce too much noise, resulting in a decrease in model recognition ability. 2. For action recognition, the importance of each frame in the video sequence is different, which means that there are a large number of redundant frames in the video source. These redundant frames as noise will greatly affect the accuracy of action recognition. However, most of the current methods do not consider the redundant frames in the video source enough, and do not distinguish and learn the confusing actions, which will lead to misjudgment of ambiguous actions. Therefore, it is necessary to design a human skeleton action recognition method based on graph and hypergraph convolutional composite neural network. Summary of the invention

[0004] The purpose of the present invention is to provide a human skeleton action recognition method based on a graph and hypergraph convolutional composite neural network, so as to solve the technical problem that the existing skeletal action recognition method introduces too much noise, resulting in a decrease in model recognition ability, low accuracy, and easy misjudgment. A composite network structure of a graph convolutional neural network combined with a hypergraph convolutional neural network is proposed, which makes full use of their respective advantages to effectively capture the low-order information in the skeleton data and the features in the high-order information. And through a frame optimization learning, the model's recognition ability for ambiguous actions is improved.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A method for human skeleton action recognition based on a graph and hypergraph convolutional composite neural network, the method comprising the following steps:

[0007] Step 1: Obtain the image dataset required for skeleton-based action recognition training;

[0008] Step 2: Perform graph modeling and hypergraph modeling on the skeleton data respectively;

[0009] Step 3: Construct temporal channel aggregation convolution and spatiotemporal aggregation hypergraph convolution, as well as frame optimization learning module;

[0010] Step 4: Use the time channel aggregation graph convolutional neural network to process the low-order information in the skeleton data set, and use the space-time aggregation hypergraph convolutional neural network to process the high-order information in the skeleton data. Integrate the scores predicted by each flow and perform weighted average to obtain the final recognition result.

[0011] Furthermore, the specific process of step 1 is:

[0012] Get the NW-UCLA dataset, NTU RGB+D dataset, and NTU RGB+D 120 dataset. The NW-UCLA dataset is data extracted from 1494 videos with 10 actions. The training set comes from two Kinect cameras, and the test set comes from the remaining camera. The NTU RGB+D dataset is an action recognition dataset obtained from three different views using a Kinect v2 sensor. It contains 60 action categories. The evaluation benchmarks are: Cross-Subject (X-Subject) and Cross-View (X-View). The NTU RGB+D120 dataset is an enhanced version of the NTU RGB+D dataset. The number of action categories is increased to 120. Two partitioning criteria are used for evaluation. The two partitioning criteria are: Cross-Subject (X-Subject) and Cross-View (X-View).

[0013] Furthermore, the specific process of step 2 is:

[0014] Use graph method to represent skeleton data G = {V, E}, where V is the set of joints, E is the set of skeleton edges, and E can also be represented by the space subset E S and time subset E T Indicates that subset E S represents the connection of skeleton joints in each frame, E S ={(v ti , v tj )|(i, j)∈A}, where A is the set of naturally connected human joints, and the subset E T represents the dynamic changes of the same node in the continuous time frame, E T = {v ti , v (t+1)i}, where E T The edge represents the motion trajectory of joint i over time. If two joints are on the same edge, the value of the element corresponding to the two joints in A is equal to 1, otherwise it is equal to 0. The hypergraph method is used to represent the skeleton data G h = {V h ,ξ h , W h}, where V h represents the set of all joints in a frame, ξ h is a set of hyperedges, W h is the weight set of all hyperedges, and kNN is used to construct the time point hypergraph H S , use k-means to construct a spatial hypergraph H T , the elements in the incidence matrix H of the skeleton hypergraph are defined as:

[0015] Node v∈V h The degree is the number of hyperedges containing a node, expressed as: d(v) = ∑ e∈ξh W h (e)h(v, e), where W h (e) represents the weight of the hyperedge e, and the degree of the hyperedge e∈ξ h is the number of nodes that make up the hyperedge e, expressed as:

[0016] Furthermore, the specific process of time channel aggregation convolution in step 3 is:

[0017] The skeleton data is spatially modeled and temporally modeled in turn. In spatial modeling, three parallel TCA-GCs are used to extract the correlation between human joints, and the processing results are summed as output. In the temporal modeling part, several scale temporal modeling modules are used to model actions of different durations. The several scale temporal modeling modules contain four branches, each of which contains a 1×1 convolution to reduce the channel dimension. The first three branches contain two temporal convolutions with different extensions and a maximum pool of a 1×1 convolution.

[0018] TCA-GC uses spatiotemporal convolution to extract spatiotemporal information from skeleton actions: Where X in ∈R C×T×N is the input feature, Λ is the degree matrix of the node: ii =∑ j (A ij +I ij ), W is a weight matrix representing the weight vectors of several output channels superimposed on each other. The spatiotemporal graph convolution is performed by performing a 1×1 standard 2D convolution and concatenating the resulting tensor with a 2D normalized adjacency matrix This is achieved by using time-adaptive convolution instead of 1×1 convolution for temporal aggregation. In TAdaConv, a generator function is used to generate calibrated weights for convolution. In the generator function, a global frame descriptor g is first generated by global average pooling: g = GAP(X), where X = {X t-1 , X t , X t+1} represents the temporal context information of the skeleton sequence. The global descriptor g is added to the global representation through the linear mapping function (FC) to further obtain the global temporal information: Where g is the global average pooling result in the spatiotemporal dimension, r is the dimensionality reduction ratio, BM is batch normalization, and finally the calibration weight is obtained: The calibration weights are multiplied by the initial weights and then passed through the dimension reduction function to get the new time weights: where W0∈R C ′×C×1×1 is the initial weight, and the time weight is combined with the shared topology A in the time dimension k ∈R N×N Aggregate to get a new high-dimensional feature representation X in ∈R C′×T×N ;

[0019] Three parallel STA-HCs are used to extract spatial correlation and the results are added. Then, several scale temporal convolutions are used. The convolution kernel size of the temporal convolution module is fixed to 1×1. A larger receptive field is obtained by using different expansion rates. The extracted spatiotemporal features are connected to obtain the final output.

[0020] Furthermore, the specific process of spatiotemporal aggregation hypergraph convolution in step 3 is as follows;

[0021] Spatiotemporal aggregation hypergraph convolution uses hypergraph convolution to capture important high-level features in motion information flow: where X′ in ∈R C×T×V represents the input features, H represents the hypergraph constructed using kNN or k-means, and D v , D e Denote the diagonal matrices of node degree and hyperedge degree respectively, Θ denotes the parameter matrix learned during training. Like the temporal channel aggregation graph convolution, temporal adaptive convolution is used in the spatial modeling part of the hypergraph convolution.

[0022] Furthermore, in step 3:

[0023] The key frame selection process is formulated as a Markov decision process, which is divided into two parts in the model: selective frame temporal convolution and auxiliary feature refinement. Two convolutional layers Conv s and Covn c To reduce the features and time dimensions of each joint, and use the time dimension as a channel, use several layers of perceptrons with sigmoid activation function to generate the importance γ of the time frame, use top-k operation to obtain the index and importance score of the key frame, and select the corresponding frame features, then multiply the importance score by the selected features, and the original input feature map is also selectively pooled to obtain the final residual:

[0024]

[0025] Where top-k is a ranking selection operation set to retain the top 50% in the experiment, idx and imp represent the index and importance score of the key frame in the frame sequence, respectively. Finally, the selected frame features and residuals are added to obtain the output of the module: out =X tcn +X res ;

[0026] After filtering redundant frames and retaining key frames, the output of the modified cross-row convolution is cloned once with the output of the first and tenth layers of the model. The corresponding hidden features are refined by calculating the comparative learning cross entropy loss function containing weighted parameters. The model's learning of feature importance is adjusted to improve the recognition of blurred actions. Temporal pooling and spatial pooling are performed on the cloned layers, and then 1×1 convolution and flattening layers are performed on each clone to obtain the corresponding temporal and spatial features. The temporal and spatial features together constitute the action features. The obtained action features are distinguished. Given an action label j, if the sample is correctly predicted, it will be regarded as a true positive sample, that is, a credible sample, so as to be distinguished from the blurred samples. The features of the credible samples often have intra-class consistency. The features are collected through the exponential moving average (EMA) to update the global representation of the corresponding category.

[0027] Assumptions is the confidence sample set of action j in the batch, with a size of The EMA operation is defined as: Where P j is the prototype of action label j, F i is the feature extracted from sample i, α is the momentum term, which is set to 0.9;

[0028] During the training process, the prototype of the predicted action is used as the cluster center of action j, and based on this cluster center, the features of the newly acquired samples are continuously adjusted and optimized, so that each sample gradually approaches the cluster center to which it belongs and gradually moves away from the other cluster center. The distance between two feature vectors is defined as dis(·), which is realized by cosine distance: Where u, v represent 1D vectors, ||||2 represents the L2 norm;

[0029] For the action samples that are misclassified during the training process, a more detailed classification is performed. If the action sample is misclassified into another category, it is called a false negative. On the contrary, if the sample of another category is misclassified as the corresponding action, it is called a false positive. Assume is a set of FN and FP action samples, and its size is The average is calculated as:

[0030] in and represents the center representation of FN and FP samples of category j;

[0031] To calibrate the prediction of ambiguous samples, the confidence sample I of action j is used as an anchor point and auxiliary terms are calculated in the feature space. For FN samples that should be classified as action j, a compensation term is introduced

[0032]

[0033] By minimizing the compensation term FN samples are closer to the confidence samples in the feature space. When there are no FN samples or the cosine distance converges to 1, Reaching the minimum value 0, the model is encouraged to correct the ambiguous sample to action j;

[0034] On the other hand, for FP samples belonging to another category, a penalty term ψ is introduced i :

[0035]

[0036] Denotes the penalty term ψ i Penalize the distance between FP samples and confidence samples in the feature space. When there is no FP sample or the cosine distance converges to -1, ψ i Reaching the minimum value of 0 prevents the model from identifying ambiguous samples as action j;

[0037] Finally, taking sample i as the anchor point, the CL cross entropy loss function is defined as:

[0038]

[0039] Where P ik is the predicted probability score of sample i of category j. TP samples with weak confidence gain stronger supervision from ambiguous samples.

[0040] Furthermore, the specific process of step 4 is:

[0041] A fusion scheme with several streams is used to train different forms of 3D skeletons, including joint stream, bone stream, joint motion information stream, and bone motion information stream. The proposed composite neural network uses a temporal channel aggregated graph convolutional neural network to train joint and bone data, and a spatiotemporal aggregated hypergraph convolutional neural network to train joint motion stream and bone motion stream data. The subsequent integration of the solutions is then performed by weighted averaging each prediction score of the modality to obtain the final classification. The composite structure is used to extract and model topologically simple or complex skeleton data. The joint information stream is integrated into the skeleton data using local and global information in the skeleton data. Skeletal information flow Joint movement information flow and the predicted probability value of skeletal motion information flow Perform dynamic fusion and finally predict the label The calculation of is as follows: Where W j , W b , W jm , W bmare the learnable parameters of joint information flow, skeleton information flow, joint motion information flow, and dynamic fusion of skeleton motion information flow. The loss function of action recognition is the standard cross entropy loss, which is defined as: Where Y is the true label of the action.

[0042] The present invention has the following beneficial effects due to the adoption of the above technical solution:

[0043] The present invention avoids the spatiotemporal imbalance problem existing in hypergraph convolution and improves the model's recognition ability for easily confused actions by designing spatiotemporal aggregation hypergraph convolution and frame optimization learning modules. It utilizes the modeling advantages of graphs and hypergraphs in local and global information respectively, and improves the model's recognition ability for easily confused actions and the accuracy of action recognition by filtering redundant frames in video sources and distinguishing ambiguous actions through comparative learning. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of the structure of the composite neural network of the present invention;

[0045] Figure 2 It is a schematic diagram of the structure of the graph and hypergraph construction method of the present invention;

[0046] Figure 3 It is a schematic diagram of the structure of the time channel aggregation graph convolution and the space-time aggregation hypergraph convolution of the present invention;

[0047] Figure 4 It is a schematic diagram of the overall structure of the frame optimization learning of the present invention;

[0048] Figure 5 It is a comparison chart of the convergence process of the present invention and the baseline method on the NTU RGB+D dataset;

[0049] Figure 6 It is the confusion matrix of the present invention on the NTU RGB+D dataset and the comparison diagram with the baseline method. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and preferred embodiments. However, it should be noted that many details listed in the specification are only for the purpose of enabling the reader to have a thorough understanding of one or more aspects of the present invention, and these aspects of the present invention can be implemented even without these specific details.

[0051] like Figure 1-6 As shown, a method for human skeleton action recognition based on a graph and hypergraph convolutional composite neural network comprises the following steps:

[0052] Step 1: Obtain the image datasets required for skeleton-based action recognition training. The NW-UCLA dataset, NTURGB+D dataset, and NTU RGB+D 120 dataset are used; NW-UCLA is extracted from 1494 videos with 10 actions. The training set comes from two Kinect cameras, and the test set comes from the remaining camera. NTU RGB+D is a large and widely used action recognition dataset obtained from three different views using the Kinectv2 sensor, containing 60 action categories. Evaluation benchmarks: Cross-Subject (X-Subject) and Cross-View (X-View). NTU RGB+D 120 is an enhanced version of the NTU RGB+D dataset, with the number of action categories increased to 120. Two split criteria are used for evaluation: Cross-Subject (X-Subject) and Cross-Setup (X-Set).

[0053] Step 2: Perform graph modeling and hypergraph modeling on the skeleton data. Use graph method to represent the skeleton data G = {V, E}, where V is the set of joints and E is the set of skeleton edges. E can also be represented by the spatial subset E S and time subset E T Indicates that subset E S represents the connection of skeleton joints in each frame, E S ={(v ti , v tj )|(i, j)∈A}, where A is a set of naturally connected human joints. Subset E T represents the dynamic changes of the same node in the continuous time frame, E T = {v ti , v (t+1)i}, where E T The edge represents the motion trajectory of joint i over time. Figure 2 As shown in (a), if two joints are on the same edge, the value of the element corresponding to the two joints in A is equal to 1, otherwise it is equal to 0 ( Figure 2 (a)) A hypergraph approach to represent the skeleton data G h = {V h ,ξ h , W h}, where V h represents the set of all joints in a frame, ξ h is a set of hyperedges, W h is the weight set of all hyperedges, and kNN is used to construct the time point hypergraph H S , use k-means to construct a spatial hypergraph H T .like Figure 2 As shown in (b), the elements in the incidence matrix H of the skeleton hypergraph are defined as: Node v∈V h The degree of a node is the number of hyperedges that contain the node, as shown below: d(v) = Σ e∈ξh W h (e)h(v, e). Where W h (e) represents the weight of the hyperedge e. The degree of the hyperedge e∈ξ h is the number of nodes that make up the hyperedge e, which is as follows:

[0054] Step 3: Construct the time channel aggregation convolution and spatiotemporal aggregation hypergraph convolution, as well as the frame optimization learning module. Perform spatial modeling and temporal modeling on the skeleton data in turn, such as Figure 3 (a). In the spatial modeling part, three parallel TCA-GCs are used to extract the correlation between human joints, and the processing results are summed as output. In the temporal modeling part, a multi-scale temporal modeling module is used to model actions of different durations. This module contains four branches, each of which contains a 1×1 convolution to reduce the channel dimension. The first three branches contain two temporal convolutions with different extensions and a maximum pool of 1×1 convolutions.

[0055] The details of TCA-GC are as follows Figure 3 (b) shows that spatiotemporal information is extracted from skeleton actions using spatiotemporal convolution: Where X in ∈R C×T×N is the input feature, Λ is the degree matrix of the node: ii =Σ j (A ij +I ij ), W is a weight matrix representing the weight vectors of multiple output channels superimposed. The spatiotemporal graph convolution is performed by performing a 1×1 standard 2D convolution and concatenating the resulting tensor with a 2D normalized adjacency matrix This is achieved by using time-adaptive convolution (TAdaConv) instead of 1×1 convolution for temporal aggregation. In TAdaConv, a generator function is used to generate calibrated weights for convolution. In the generator function, a global frame descriptor g is first generated by global average pooling (GAP): g = GAP(X), where X = {X t-1 , X t , X t+1} represents the temporal context information of the skeleton sequence. The global descriptor g is added to the global representation through the linear mapping function (FC) to further obtain the global temporal information:

[0056] Where g is the global average pooling result in the spatiotemporal dimension, r is the dimensionality reduction ratio, and BN is batch normalization. The final calibration weight is: The calibration weights are multiplied by the initial weights and then passed through the dimension reduction function to get the new time weights: where W0∈R C’×C×1×1 is the initial weight. The time weight is combined with the shared topology A in the time dimension k ∈R N×N Aggregate to get a new high-dimensional feature representation X in ∈R C′×T×N .

[0057] like Figure 3 As shown in (c), three parallel STA-HCs are first used to extract spatial correlation and their results are added. Then, multi-scale temporal convolution is used, and the convolution kernel size of the temporal convolution module is fixed to 1×1. A larger receptive field can be obtained by using different expansion rates. The extracted spatiotemporal features are connected to obtain the final output.

[0058] The details of spatiotemporal aggregation hypergraph convolution are as follows Figure 3 (d) shows that hypergraph convolution is used to capture important high-level features in the motion information flow: where X′ in ∈R C×T×V represents the input features, H represents the hypergraph constructed using kNN or k-means, and D v , D e denote the diagonal matrices of node degree and hyperedge degree, respectively, and Θ denotes the parameter matrix learned during training. Like the temporal channel aggregation graph convolution, temporal adaptive convolution (TAdaConv) is used in the spatial modeling part of the hypergraph convolution instead of the traditional 1×1 convolution for temporal aggregation.

[0059] In order to solve the interference caused by redundant frames in the video source and distinguish confusing actions, the key frame selection process is formulated as a Markov decision process, which can be divided into two parts in the model: selective frame time convolution and auxiliary feature refinement, such as Figure 4 (a) and Figure 4 (b) is shown by the dotted line. This method improves the traditional strided convolution layer and uses two convolution layers (i.e. Conv s and Conv c ) to reduce the feature and time dimensions of each joint, and use the time dimension as a channel, using a multilayer perceptron with a sigmoid activation function Generate the importance of the temporal frame γ. Use the top-k operation to obtain the index and importance score of the key frame and select the corresponding frame features. The importance score is then multiplied by the selected features to further highlight the important frames. The original input feature map is also optionally pooled to obtain the final residual:

[0060]

[0061] Where top-k is a ranking selection operation set to retain the top 50% in the experiment. idx and imp represent the index and importance score of the key frame in the frame sequence, respectively. Finally, the selected frame features and residuals are added to obtain the output of the module: X out =X tcn +X res .

[0062] After filtering redundant frames and retaining key frames, a more discriminative feature representation is learned. The output of the modified cross-row convolution is cloned once with the output of the first and tenth layers of the model. The corresponding hidden features are refined by calculating the comparative learning cross entropy loss function containing weighted parameters, and the model's learning of feature importance is adjusted to improve the recognition of blurred actions. Figure 4 As shown in (d), the above clones are subjected to temporal pooling and spatial pooling, and then a 1×1 convolution and flattening layer is performed on each clone to obtain the corresponding temporal and spatial features. These two features together constitute the action feature. Figure 4 As shown in (e), the action features obtained are distinguished, given the action label j. If the sample is predicted correctly, it is regarded as a true positive (TP) sample, that is, a confident sample, so as to distinguish it from the ambiguous samples. The features of these confident samples tend to have better intra-class consistency. These features are collected by exponential moving average (EMA) to update the global representation of the corresponding category

[0063] like Figure 4 As shown in (d), the above cloned values ​​are respectively subjected to temporal pooling and spatial pooling, and then each is passed through a 1×1 convolution and flattening layer to obtain the corresponding temporal features and spatial features. These spatial features and temporal features together constitute the action features. Figure 4 (e) The obtained action features are discriminated. Given an action label j, if a sample is correctly predicted, it is regarded as a true positive (TP) sample, that is, a confident sample, to distinguish it from ambiguous samples. Features from such confident samples tend to have better intra-class consistency. These features are collected through the exponential moving average (EMA) to update the global representation of the corresponding category. Assume is the set of confidence samples of action j in the batch, and its size is The EMA operation can be defined as: Where P j is the prototype of action label j, F i is the feature extracted from sample i, and α is the momentum term, which is set to 0.9.

[0064] During the training process, this method uses a clustering method and takes the prototype of the predicted action as the cluster center of action j. Based on this cluster center, the features of the newly acquired samples are continuously adjusted and optimized, so that each sample gradually approaches the cluster center to which it belongs and gradually moves away from other cluster centers. The distance between two feature vectors is defined as dis(·), which is realized by the cosine distance: Where u, v represent 1D vectors. ||||2 represents the L2 norm.

[0065] like Figure 4 As shown in (f), for the action samples that were misclassified in the previous training process, a more detailed classification is performed. If the action sample is misclassified into other categories, it is called a false negative (FN). On the contrary, if the samples of other categories are misclassified as the action, it is called a false positive (FP). Assume is the set of FN and FP action samples, and their size is The average is calculated as:

[0066] in and Represents the center representation of FN and FP samples of category j.

[0067] To calibrate the prediction of ambiguous samples, our method takes the confident sample j of action j as an anchor point and calculates auxiliary terms in the feature space. For those FN samples that should be classified as action j, a compensation term is introduced

[0068]

[0069] By minimizing the compensation term FN samples should be closer to the confident samples in the feature space. When there are no FN samples or the cosine distance converges to 1, reaches a minimum value of 0. This can encourage the model to correct these ambiguous samples to action j.

[0070] On the other hand, for those FP samples belonging to other categories, the penalty term ψ is introduced i :

[0071]

[0072] Similarly, the penalty term ψ i Penalizes the distance between FP samples and confidence samples in feature space. When there are no FP samples or the cosine distance converges to -1, ψ i reaches a minimum value of 0. This may prevent the model from recognizing these ambiguous samples as action j.

[0073] Finally, taking sample i as the anchor point, the CL cross entropy loss function is defined as:

[0074]

[0075] Where P ik is the predicted probability score of sample i of category j. This means that TP samples with weaker confidence gain stronger supervision from those ambiguous samples.

[0076] Step 4: Use the time channel aggregation graph convolutional neural network to process the low-order information (joints, bones) in the skeleton data set, and use the space-time aggregation hypergraph convolutional neural network to process the high-order information (joint motion information flow, bone motion information flow) in the skeleton data. Integrate the predicted scores of each flow (joints, bones, joint motion information flow, bone motion information flow), and perform weighted average to obtain the final integration solution.

[0077] like Figure 1 As shown, a fusion scheme with multiple streams is used to train different forms of 3D skeletons, including joint stream, bone stream, joint motion information stream, and bone motion information stream. Figure 1 As shown in the figure, the proposed composite neural network uses a temporal channel aggregated graph convolutional neural network to train joint and skeleton data, and a spatiotemporal aggregated hypergraph convolutional neural network to train joint motion stream and skeleton motion stream data. Subsequent integration of the solutions is then performed by weighted averaging each prediction score of the modality to obtain the final classification. The composite structure proposed in this paper is used to extract and model information from skeleton data with simple or complex topology, which can make full use of local and global information in the skeleton data. Skeletal information flow Joint movement information flow and the predicted probability value of skeletal motion information flow Perform dynamic fusion. Final prediction label The calculation formula is as follows: Where W j , W b , W jm , W bm They are the learnable parameters of joint information flow, skeleton information flow, joint motion information flow, and dynamic fusion of skeleton motion information flow. The loss function of action recognition is the standard cross entropy loss, which can be defined as: Where Y is the true label of the action.

[0078] Experimental results and analysis

[0079] 1. Experimental conditions

[0080] In order to verify the effectiveness of the present invention in skeleton action recognition, tests were carried out on three public large-scale human skeleton datasets: NTU RGB+D, NTU RGB+D120 and NW-UCLA datasets.

[0081] This experiment uses the Ubuntu 18.06 operating system, Python programming language, and Pytorch deep learning framework. The hardware configuration is CPU: 16-core Intel(R) Xeon(R) Platinum 8350C CPU@2.60GHz and GPU: RTX 3090.

[0082] 2. Experimental results

[0083] The proposed method is compared with the state-of-the-art methods on NTU RGB+D, NTU RGB+D 120 and NW-UCLA datasets to demonstrate the competitiveness of the proposed method. The quantitative results are shown in Table 1. Note that most existing methods adopt a multi-stream fusion framework (joint, skeleton, motion flow information). In order to ensure the fairness of the experiment, the proposed method uses four fusion result streams, considering the joint, skeleton and motion data stream forms.

[0084] Table 1 Comparison of classification accuracy with the most advanced methods on three benchmarks (unit: %)

[0085]

[0086]

[0087] It is observed that our method outperforms most existing methods on these three datasets. On NTU RGB+D120, NTURGB+D’s X-View, and NW-UCLA datasets, our method achieves the best results. On NTU RGB+D’s X-View, our method achieves the state-of-the-art results with a reasonable gap to the best results, which fully demonstrates the significant advantage of our method. (Bold is the highest level)

[0088] When evaluating a model, we should consider not only the accuracy of the model but also the convergence speed of the model. In order to fully evaluate the model proposed in this paper, this method is experimented on the benchmark X-View of the NTU RGB+D dataset. Since this method is improved on the baseline model, such as Figure 5As shown, the convergence process of the baseline and the proposed method is compared. It can be seen that as the number of iterations increases, the recognition accuracy first rises rapidly and then slowly decreases. When the number of iterations reaches a certain value, all curves converge to the maximum value and then tend to stabilize. Before the 35th iteration, there may be some fluctuations in the recognition accuracy, but the overall trend is upward. At the 36th iteration, the recognition accuracy of all curves will be significantly improved. After this, the curves have almost no fluctuation amplitude. Comparing the curves of the two types of networks, the proposed method (blue curve) performs better in the X-View benchmark test, showing higher stability and accuracy compared to the baseline (orange curve).

[0089] In order to verify the effectiveness of this method for easily confusing action recognition, this method is experimentally analyzed on the single stream (joint) of the X-View benchmark of the NTU RGB+D dataset. Figure 6 (a) shows the confusion matrix of our method on the X-View benchmark, where the misclassified actions are mainly very similar actions or subtle manual work. It can be seen that the actions with recognition rates below 80% are mainly ("writing", "reading", "typing on the keyboard", "playing with mobile phones / tablets", "taking off shoes"). It can be seen that the actions with higher recognition errors are mainly those similar actions. Although the judgment of similar actions is still a big challenge in action recognition, our method still achieves better performance. At the same time, Figure 6 (b) shows the difference matrix between the proposed method and the baseline (the confusion matrix of the proposed method minus the confusion matrix of the baseline). It can be seen that the proposed method has a better recognition rate for most actions.

[0090] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A human skeleton action recognition method based on a graph and hypergraph convolutional composite neural network, characterized in that: The method comprises the following steps: Step 1: Obtain the image dataset required for skeleton-based action recognition training; Step 2: Perform graph modeling and hypergraph modeling on the skeleton data respectively; Step 3: Construct temporal channel aggregation convolution and spatiotemporal aggregation hypergraph convolution, as well as frame optimization learning module; Step 4: Use the time channel aggregation graph convolutional neural network to process the low-order information in the skeleton data set, and use the space-time aggregation hypergraph convolutional neural network to process the high-order information in the skeleton data. Integrate the scores predicted by each flow and perform weighted average to obtain the final recognition result.

2. The method for human skeleton action recognition based on a graph and hypergraph convolutional composite neural network according to claim 1, characterized in that: The specific process of step 1 is: Get the NW-UCLA dataset, NTU RGB+D dataset, and NTU RGB+D 120 dataset. The NW-UCLA dataset is data extracted from 1494 videos with 10 actions. The training set comes from two Kinect cameras, and the test set comes from the remaining cameras. The NTU RGB+D dataset is an action recognition dataset obtained from three different views using a Kinect v2 sensor. It contains 60 action categories. The evaluation benchmarks are: Cross-Subject (X-Subject) and Cross-View (X-View). The NTU RGB+D 120 dataset is an enhanced version of the NTU RGB+D dataset. The number of action categories is increased to 120. Two partitioning criteria are used for evaluation. The two partitioning criteria are: Cross-Subject (X-Subject) and Cross-View (X-View).

3. The method for human skeleton action recognition based on a graph and hypergraph convolutional composite neural network according to claim 1, characterized in that: The specific process of step 2 is: Use graph method to represent skeleton data G = {V, E}, where V is the set of joints, E is the set of skeleton edges, and E can also be represented by the space subset E S and time subset E T Indicates that subset E S represents the connection of skeleton joints in each frame, E S ={(v ti , v tj )|(i, j)∈A}, where A is the set of naturally connected human joints, and the subset E T represents the dynamic changes of the same node in the continuous time frame, E T = {v ti , v (t+1)i }, where E T The edge represents the motion trajectory of joint i over time. If two joints are on the same edge, the value of the element corresponding to the two joints in A is equal to 1, otherwise it is equal to 0. The hypergraph method is used to represent the skeleton data G h = {V h ,ξ h ,W h }, where V h represents the set of all joints in a frame, ξ h is a set of hyperedges, W h is the weight set of all hyperedges, and kNN is used to construct the time point hypergraph H S , use k-means to construct a spatial hypergraph H T , the elements in the incidence matrix H of the skeleton hypergraph are defined as: Node v∈V h The degree of a node is the number of hyperedges that contain the node, expressed as: d(v) = ∑ e∈ξh W h (e)h(v, e), where W h (e) represents the weight of the hyperedge e, and the degree of the hyperedge e∈ξ h is the number of nodes that make up the hyperedge e, expressed as:

4. The method for human skeleton action recognition based on a graph and hypergraph convolutional composite neural network according to claim 1, characterized in that: The specific process of time channel aggregation convolution in step 3 is: The skeleton data is spatially modeled and temporally modeled in turn. In spatial modeling, three parallel TCA-GCs are used to extract the correlation between human joints, and the processing results are summed as output. In the temporal modeling part, several scale temporal modeling modules are used to model actions of different durations. The several scale temporal modeling modules contain four branches, each of which contains a 1×1 convolution to reduce the channel dimension. The first three branches contain two temporal convolutions with different extensions and a maximum pool of a 1×1 convolution. TCA-GC uses spatiotemporal convolution to extract spatiotemporal information from skeleton actions: Where X in ∈R C×T×N is the input feature, Λ is the degree matrix of the node: ii =∑ j (A ij +I ij ), W is a weight matrix representing the weight vectors of several output channels superimposed on each other. The spatiotemporal graph convolution is performed by performing a 1×1 standard 2D convolution and concatenating the resulting tensor with a 2D normalized adjacency matrix This is achieved by using time-adaptive convolution instead of 1×1 convolution for temporal aggregation. In TAdaConv, a generator function is used to generate calibrated weights for convolution. In the generator function, a global frame descriptor g is first generated by global average pooling: g = GAP(X), where X = {X t-1 , X t , X t+1 } represents the temporal context information of the skeleton sequence. The global descriptor g is added to the global representation through the linear mapping function (FC) to further obtain the global temporal information: Where g is the global average pooling result in the spatiotemporal dimension, r is the dimensionality reduction ratio, BN is batch normalization, and the final calibration weight is: Multiply the calibration weights by the initial weights and then pass them through the dimension reduction function to get the new time weights: where W0∈R C ′×C×1×1 is the initial weight, and the time weight is combined with the shared topology A in the time dimension k ∈R N×N Aggregate to get a new high-dimensional feature representation X in ∈R C′×T×N ; Three parallel STA-HCs are used to extract spatial correlation and the results are added. Then, several scale temporal convolutions are used. The convolution kernel size of the temporal convolution module is fixed to 1×1. A larger receptive field is obtained by using different expansion rates. The extracted spatiotemporal features are connected to obtain the final output.

5. The method for human skeleton action recognition based on a graph and hypergraph convolutional composite neural network according to claim 4, characterized in that: The specific process of spatiotemporal aggregation hypergraph convolution in step 3 is: Spatiotemporal aggregation hypergraph convolution uses hypergraph convolution to capture important high-level features in motion information flow: where X′ in ∈R C×T×V represents the input features, H represents the hypergraph constructed using kNN or k-means, and D v , D e Denote the diagonal matrices of node degree and hyperedge degree respectively, Θ denotes the parameter matrix learned during training. Like the temporal channel aggregation graph convolution, temporal adaptive convolution is used in the spatial modeling part of the hypergraph convolution.

6. The method for human skeleton action recognition based on a graph and hypergraph convolutional composite neural network according to claim 5, characterized in that: In step 3: The key frame selection process is formulated as a Markov decision process, which is divided into two parts in the model: selective frame temporal convolution and auxiliary feature refinement. Two convolutional layers Conv s and Conv c To reduce the features and time dimensions of each joint, and use the time dimension as a channel, use several layers of perceptrons with sigmoid activation function to generate the importance γ of the time frame, use top-k operation to obtain the index and importance score of the key frame, and select the corresponding frame features, then multiply the importance score by the selected features, and the original input feature map is also selectively pooled to obtain the final residual: Where top-k is a ranking selection operation set to retain the top 50% in the experiment, idx and imp represent the index and importance score of the key frame in the frame sequence, respectively. Finally, the selected frame features and residuals are added to obtain the output of the module: out =X tcn +X res ; After filtering redundant frames and retaining key frames, the output of the modified cross-row convolution is cloned once with the output of the first and tenth layers of the model. The corresponding hidden features are refined by calculating the comparative learning cross entropy loss function containing weighted parameters. The model's learning of feature importance is adjusted to improve the recognition of blurred actions. Temporal pooling and spatial pooling are performed on the cloned layers, and then 1×1 convolution and flattening layers are performed on each clone to obtain the corresponding temporal and spatial features. The temporal and spatial features together constitute the action features. The obtained action features are distinguished. Given an action label j, if the sample is correctly predicted, it will be regarded as a true positive sample, that is, a credible sample, so as to be distinguished from the blurred samples. The features of the credible samples often have intra-class consistency. The features are collected by exponential moving average, and the global representation of the corresponding category is updated. Assumptions is the confidence sample set of action j in the batch, with a size of The EMA operation is defined as: Where P j is the prototype of action label j, F i is the feature extracted from sample i, α is the momentum term, which is set to 0.9; During the training process, the prototype of the predicted action is used as the cluster center of action j, and based on this cluster center, the features of the newly acquired samples are continuously adjusted and optimized, so that each sample gradually approaches the cluster center to which it belongs and gradually moves away from the other cluster center. The distance between two feature vectors is defined as dis(·), which is realized by cosine distance: Where u, v represent 1D vectors, || ||2 represents the L2 norm; For the action samples that are misclassified during the training process, a more detailed classification is performed. If the action sample is misclassified into another category, it is called a false negative. On the contrary, if the sample of another category is misclassified as the corresponding action, it is called a false positive. Assume is a set of FN and FP action samples, and its size is The average is calculated as: in and represents the center representation of FN and FP samples of category j; To calibrate the prediction of ambiguous samples, the confidence sample I of action j is used as an anchor point and auxiliary terms are calculated in the feature space. For FN samples that should be classified as action j, a compensation term is introduced By minimizing the compensation term FN samples are closer to the confidence samples in the feature space. When there are no FN samples or the cosine distance converges to 1, Reaching the minimum value 0, the model is encouraged to correct the ambiguous sample to action j; On the other hand, for FP samples belonging to another category, a penalty term ψ is introduced i : Denotes the penalty term ψ i Penalize the distance between FP samples and confidence samples in the feature space. When there is no FP sample or the cosine distance converges to -1, ψ i Reaching the minimum value of 0 prevents the model from identifying ambiguous samples as action j; Finally, taking sample i as the anchor point, the CL cross entropy loss function is defined as: Where P ik is the predicted probability score of sample i of category j. TP samples with weak confidence gain stronger supervision from ambiguous samples.

7. The method for human skeleton action recognition based on a graph and hypergraph convolutional composite neural network according to claim 4, characterized in that: The specific process of step 4 is: A fusion scheme with several streams is used to train different forms of 3D skeletons, including joint stream, bone stream, joint motion information stream, and bone motion information stream. The proposed composite neural network uses a temporal channel aggregated graph convolutional neural network to train joint and bone data, and a spatiotemporal aggregated hypergraph convolutional neural network to train joint motion stream and bone motion stream data. The subsequent integration of the solutions is then performed by weighted averaging each prediction score of the modality to obtain the final classification. The composite structure is used to extract and model topologically simple or complex skeleton data. The joint information stream is integrated into the skeleton data using local and global information in the skeleton data. Skeletal information flow Joint movement information flow and the predicted probability value of skeletal motion information flow Perform dynamic fusion and finally predict the label The calculation of is as follows: Where W j , W b , W jm , W bm are the learnable parameters of joint information flow, skeleton information flow, joint motion information flow, and dynamic fusion of skeleton motion information flow. The loss function of action recognition is the standard cross entropy loss, which is defined as: Where Y is the true label of the action.

Citation Information

Cited By

  • Skeleton action recognition method based on prototype strategy in combination with multi-channel space-time diagram convolutional network

    CN119694001A

  • Character gait recognition method based on dynamic space-time diagram convolutional neural network

    CN119723667A

  • Transient voltage stability evaluation method based on unbalanced residual information learning

    CN119891358A

  • Human body behavior recognition method and system

    CN120472527A