Dynamic gesture recognition method based on point cloud

By converting the depth image sequence of dynamic gestures into point clouds, using PointNet++, multi-head self-attention mechanism and offset attention to improve the feature extraction of the DGCNN module, and performing time-series modeling on the Transformer structure, the computational complexity in dynamic gesture recognition is solved. It solves the problem of sex and light interference, and improves the recognition accuracy and anti-interference ability.

CN118629087AActive Publication Date: 2024-09-10ZHEJIANG UNIV OF TECH

Patent Information

Application Number
CN202410406344.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-07
Publication Date
2024-09-10
Estimated Expiration
2044-04-07

AI Technical Summary

Technical Problem

Existing dynamic gesture recognition technology has problems such as high computational complexity, sensitivity to light background interference, and low ability to express skeleton features, making it difficult to improve recognition accuracy and reduce interference from the external environment.

Method used

Convert the depth image sequence of dynamic gestures into point clouds, extract global features through PointNet++ and multi-head self-attention mechanism, introduce offset attention to improve the DGCNN module to extract local features, and add the BiGRU module to the Transformer structure for timing modeling and fusion Multi-scale features are identified.

Benefits of technology

It achieves fine feature extraction and global feature capture of dynamic gestures, solves the problem of multi-scale feature learning, improves recognition accuracy and reduces external environment interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629087A
    Figure CN118629087A
Patent Text Reader

Abstract

The invention discloses a dynamic gesture recognition method based on point cloud, and belongs to the technical field of artificial intelligence and image recognition. The method comprises the following specific steps: 1, converting a depth image sequence of a gesture into a point cloud sequence; 2, inputting the gesture point cloud sequence into a Point Net + + module and a multi-head self-attention mechanism module to extract global features of a dynamic gesture; 3, inputting the gesture point cloud sequence into an improved DGCNN module to extract local features of the dynamic gesture; 4, fusing the global features and the local features of the dynamic gestures to form multi-scale features of the dynamic gestures; and 5, adding a BiGRU module on the structure of the Transform, and inputting the dynamic gesture multi-scale features obtained in the step 4 into the BiGRU module to obtain a final dynamic gesture recognition result. According to the method, a dynamic gesture depth image sequence is converted into a point cloud, then a double-flow neural network is introduced to extract local and global features of a dynamic gesture, time sequence modeling is carried out, and dynamic gesture recognition is achieved; the fine features of the dynamic gesture can be extracted, the global features of the dynamic gesture can be captured, and the multi-scale feature learning problem of the dynamic gesture is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence and image recognition technology, and in particular to a point cloud-based dynamic gesture recognition method. The method converts a dynamic gesture depth image sequence into a point cloud, then introduces a two-stream neural network to extract local and global features of the dynamic gesture, and performs time series modeling to achieve dynamic gesture recognition. Background Art

[0002] Gesture recognition is an important research field in computer vision and has been widely used in sign language translation, virtual reality, robot control, game control and other fields.

[0003] Gesture recognition can be divided into static gesture recognition and dynamic gesture recognition based on the form of movement. Static gestures usually do not involve any action, but rely on specific hand shapes and positions to convey information. They have obvious features and are relatively easy to recognize. However, dynamic gestures involve the direction, speed, shape and continuous action sequence of gestures, and need to consider both timing and spatial information, which brings great challenges to dynamic gesture recognition. Most of the early dynamic gesture recognition methods used special sensors. Although this can achieve a high recognition accuracy, the application scenarios have great limitations and limit the range of hand movement to a certain extent. At the same time, such sensor devices are usually expensive and difficult to deploy, and are not suitable for large-scale use. Due to the limitations of sensor-based dynamic gesture recognition systems in terms of cost, user comfort and ease of use, dynamic gesture recognition methods based on deep learning have attracted widespread attention from more and more researchers.

[0004] With the rapid development of artificial intelligence technology, most solutions to dynamic gesture recognition problems are based on video streams or skeleton-based methods.

[0005] Video streams provide rich visual information and more comprehensive contextual understanding, and neural networks can capture a variety of features such as the shape and trajectory of gestures. However, such methods have problems such as high computational complexity and sensitivity to interference from lighting backgrounds. Skeleton-based gesture recognition methods have the advantages of strong anti-interference ability, low computational complexity, and high interpretability; however, such methods have the problem of low skeleton feature expression ability.

[0006] Therefore, how to improve the recognition accuracy of dynamic gestures and reduce the interference of the external environment is an urgent problem to be solved in current dynamic gesture recognition. Summary of the invention

[0007] In view of the problems existing in the prior art, the purpose of the present invention is to provide a point cloud-based dynamic gesture recognition method, which can not only extract the fine features of dynamic gestures, but also capture the global features of dynamic gestures, solve the multi-scale feature learning problem of dynamic gestures, and more accurately perform time series modeling of multi-scale features of gestures. Specifically, it includes the following steps:

[0008] Step 1: Obtain a depth image sequence of dynamic gestures from the Kinect camera and convert the depth image sequence of the gesture into a point cloud sequence;

[0009] Step 2: Input the gesture point cloud sequence into the PointNet++ module and the multi-head self-attention mechanism module to extract the global features of the dynamic gesture;

[0010] Step 3: Introduce the offset attention mechanism to improve the DGCNN module, and input the gesture point cloud sequence into the improved DGCNN module to extract the local features of the dynamic gesture.

[0011] Step 4: Fuse the global features and local features of dynamic gestures to form multi-scale features of dynamic gestures.

[0012] Step 5: Add the BiGRU module to the Transformer structure to construct the BiGRU-Transformer module, input the multi-scale gesture features obtained in step 4 into the module, and obtain the final dynamic gesture recognition result.

[0013] Furthermore, the specific process of step 1 is as follows:

[0014] Let depth(i,j) represent the depth value of the pixel at point (i,j) in the depth image. The calculation formula for converting the pixel value into the three-dimensional point cloud coordinates P(x,y,z) is as follows:

[0015]

[0016] where f x , f y and c x , c y are the focal length and optical center respectively, which are the parameters of the depth camera.

[0017] The clips are sampled uniformly along the time axis and at each sampled depth frame, the hand outline is extracted and converted into a 3D point cloud.

[0018] Furthermore, the specific process of step 2 is as follows:

[0019] The point cloud data of the gestures are sampled and grouped, and the PointNet structure is used to extract regional features.

[0020] The regional features are input into the multi-head attention mechanism layer to capture the intrinsic correlation between dynamic gestures and obtain local features.

[0021] Through the maximum pooling layer, local features are aggregated to represent the global features of dynamic gestures.

[0022] Furthermore, the specific process of step 3 is as follows:

[0023] DGCNN uses the KNN algorithm to construct a K nearest neighbor graph, which is expressed as Where d represents the dimension, indicating the three-dimensional information of the point, p 1 ,p 2 ,…,p n Represents the K nearest neighbor points of the center point of the KNN algorithm. The edge representation definition formula is as follows:

[0024] e ij =h θ (p i , P j )

[0025] where h θ :R d ×R d →R d′ , θ is a learnable parameter;

[0026] Re-characterize the center point and aggregate more neighborhood information. The calculation formula is as follows:

[0027] p′ i = j:(i,j)∈Ω h θ (p i ,p j )

[0028] Among them, □ represents the aggregation operation, Ω represents the point p i The set consisting of the rest of the points and the central point in the graph structure with centered.

[0029] The point cloud data of the gesture are processed by DGCNN and offset attention mechanism respectively to extract the local features of the gesture.

[0030] The calculation results of the two parts are superimposed to obtain richer feature representation.

[0031] One-dimensional convolution is used to reduce the dimension, and the nonlinear function ReLU is used to increase the nonlinear capacity. Data normalization is used to prevent internal covariate shift and gradient diffusion after operation, and the final output represents the local features of dynamic gestures.

[0032] Furthermore, the specific process of step 4 is as follows:

[0033] The local features and global features of dynamic gestures are superimposed and represented as multi-scale features of dynamic gestures.

[0034] Furthermore, the specific process of step 5 is as follows:

[0035] In the Transformer structure, a bidirectional gated recurrent unit (BiGRU) is added to build a BiGRU-Transformer module, and the encoders of the BiGRU and Transformer are merged through a connection operation. The self-attention mechanism and the BiGRU model are combined to more accurately model the temporal sequence of gesture features.

[0036] The multi-scale features are output to the BiGRU-Transformer module to obtain the final dynamic gesture recognition results.

[0037] By adopting the above technology, compared with the prior art, the beneficial effects of the present invention are as follows:

[0038] The method of the present invention converts the dynamic gesture depth image sequence into a point cloud, then introduces a two-stream neural network to extract the local and global features of the dynamic gesture, and performs time series modeling to realize the recognition of dynamic gestures; it can extract the fine features of dynamic gestures, and at the same time capture the global features of dynamic gestures, solving the problem of multi-scale feature learning of dynamic gestures. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flow chart of the method of the present invention;

[0040] Figure 2 It is a schematic diagram of the SA-PointNet++ module of the present invention;

[0041] Figure 3 It is a schematic diagram of the OA-DGCNN module of the present invention;

[0042] Figure 4 Schematic diagram of the BiGRU-Transformer module of the present invention;

[0043] Figure 5 It is a schematic diagram of the overall network structure of the present invention. Specific implementation methods

[0045] 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 in conjunction with the accompanying drawings and embodiments of the specification. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0046] On the contrary, the present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention as defined by the claims. Further, in order to make the public have a better understanding of the present invention, some specific details are described in detail in the detailed description of the present invention below. Those skilled in the art can fully understand the present invention without the description of these details.

[0047] See also Figure 1-5 ,A point cloud based dynamic gesture recognition method includes the following steps.

[0048] Step 1: Obtain the depth image sequence of dynamic gestures from the Kinect camera and convert the depth image sequence of gestures into a point cloud sequence as follows:

[0049] Let depth(i,j) represent the depth value of the pixel at point (i,j) in the depth image. The calculation formula for converting the pixel value into the three-dimensional point cloud coordinates P(x,y,z) is as follows:

[0050]

[0051] where f x , f y and c x , c y are the focal length and optical center respectively, which are the parameters of the depth camera.

[0052] 32-frame clips are sampled uniformly along the time axis and in each sampled depth frame, the hand contour is extracted and converted into a 3D point cloud from which 512 points are sampled.

[0053] Step 2: Input the dynamic gesture point cloud sequence into the self-attention mechanism, and aggregate local and global information through the encoder in the self-attention mechanism layer. The calculation formula of the attention mechanism is as follows:

[0054]

[0055] Where Q represents the query vector, K represents the key vector, V represents the value vector, and softmax means normalizing the attention weights to convert them into probability distributions to ensure that the sum of the weights is 1. It is to scale the attention weights to avoid gradient explosion due to excessive similarity.

[0056] In order to obtain enough local features of gestures, this embodiment uses a multi-head attention mechanism to extract features, which extends the attention mechanism to multiple heads, thereby improving the model's attention to different features. The calculation formula of the multi-head attention mechanism is as follows:

[0057] MultiHead(Q,K,V)=Concat(head1,...,head h )W O

[0058] Where h represents the number of heads. In this embodiment, the selected value is 8. i represents the output of the i-th head, W O is the transformation matrix, the output of each head i The calculation of is shown in the following formula:

[0059] head i =Attention(QW i Q , KW i K , VW i V )

[0060] Where W i Q , W i K , W i V Represents the query, key, and value transformation attention coefficients of the i-th head.

[0061] like Figure 2 As shown in the figure, the point cloud data of the gesture is sampled and grouped, and the PointNet structure is used to extract regional features. The features are then input into the multi-head attention mechanism layer to capture the intrinsic correlation between dynamic gestures and obtain local features. Finally, the local features are aggregated through the maximum pooling layer to represent the global features of the dynamic gesture.

[0062] Step 3: Input the gesture point cloud sequence into the improved DGCNN module to extract the local features of the dynamic gesture. The details are as follows:

[0063] DGCNN uses the KNN algorithm to construct a K nearest neighbor graph, which is expressed as Where d represents the dimension, which is 3 in the initial state, indicating the three-dimensional information of the point. The edge representation definition formula is as follows:

[0064] e ij =h θ (p i , p j )

[0065] where h θ : R d ×R d →R d′ , θ is a learnable parameter;

[0066] Re-characterize the center point and aggregate more neighborhood information. The calculation formula is as follows:

[0067] p′ i = j:(i,j)∈Ω h θ (p i , p j )

[0068] Among them, □ represents the aggregation operation, Ω represents the point p i The set consisting of the rest of the points and the central point in the graph structure with centered.

[0069] If only DGCNN is used to process the gesture point cloud sequence, a large rigid transformation (rotation, translation, etc.) of the point cloud will cause the relationship between local features to change, thereby affecting the local feature extraction of DGCNN. To this end, this embodiment introduces an offset attention mechanism to solve this problem. It is a variant of the self-attention mechanism. The offset between the input of the self-attention mechanism module and the attention feature is used to replace the attention feature. The use of the offset is conducive to alleviating the impact of rigid transformation.

[0070] like Figure 3 As shown in the figure, the point cloud data of the gesture is processed by DGCNN and the offset attention mechanism respectively to extract the local features of the gesture. The calculation results of the two parts are superimposed to obtain a richer feature representation. Then one-dimensional convolution is used to reduce the dimension, and the nonlinear function ReLU is used to increase the nonlinear capacity. Data normalization is used to prevent internal covariate shift and gradient diffusion after the operation. The final output represents the local features of the dynamic gesture.

[0071] Step 4: Fuse the global features and local features of dynamic gestures to form multi-scale features of dynamic gestures.

[0072] Specifically, the local features and global features of the dynamic gesture are superimposed and represented as multi-scale features of the dynamic gesture.

[0073] Step 5: Add the BiGRU module to the Transformer structure to construct the BiGRU-Transformer module. Input the multi-scale gesture features obtained in step 4 into this module to obtain the final dynamic gesture recognition result.

[0074] like Figure 4 As shown in the figure, a bidirectional gated recurrent unit (BiGRU) is added to the Transformer structure, and the BiGRU and Transformer encoders are merged through a connection operation. The self-attention mechanism and the BiGRU model are combined to more accurately model the temporal sequence of gesture features.

[0075] Using Transformer and BiGRU to model the multi-scale feature sequence of gestures can make full use of their respective advantages, capture the representation information of different temporal dependencies, improve the model's perception ability between gesture frames, achieve effective fusion of global and local information, and better understand the context.

[0076] The multi-scale features are output to the BiGRU-Transformer module to obtain the final dynamic gesture recognition results.

[0077] like Figure 5 As shown in the figure, the overall network structure of dynamic gesture recognition in this embodiment first converts each frame of the gesture depth image sequence into point cloud data, which are input into the SA-PointNet++ module and the OA-DGCNN module respectively to extract global features and local features. Subsequently, these features are fused into multi-scale features and input into the BiGRU-Transformer model to model the dynamic gesture feature sequence, and finally processed through the fully connected layer to obtain the final gesture recognition result.

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

Claims

1. A point cloud-based dynamic gesture recognition method, characterized in that: The specific steps include: Step 1: Obtain a depth image sequence of a dynamic gesture and convert the depth image sequence of the gesture into a point cloud sequence; Step 2: Input the gesture point cloud sequence into the PointNet++ module and the multi-head self-attention mechanism module to extract the global features of the dynamic gesture; Step 3: Introduce the offset attention mechanism to improve the DGCNN module, and input the gesture point cloud sequence into the improved DGCNN module to extract the local features of the dynamic gesture; Step 4: Fuse the global features and local features of the dynamic gesture to form multi-scale features of the dynamic gesture; Step 5: Add the BiGRU module to the Transformer structure to construct the BiGRU-Transformer module, input the multi-scale features of dynamic gestures obtained in step 4 into the module, and obtain the final dynamic gesture recognition result.

2. The point cloud-based dynamic gesture recognition method according to claim 1, characterized in that: In step 1, the specific process of converting the depth image sequence of the gesture into a point cloud sequence is as follows: 1.1) Let depth(i,j) represent the depth value of the pixel at point (i,j) in the depth image. The calculation formula for converting the pixel value into the three-dimensional point cloud coordinates P(x,y,z) is as follows: where f x , f y and c x , c y are focal length and optical center, respectively, which are parameters of the depth camera; 1.2) Sample clips uniformly along the time axis and in each sampled depth frame, extract the hand contour and convert it into a 3D point cloud.

3. The point cloud-based dynamic gesture recognition method according to claim 2, characterized in that: The specific process of step 2 is as follows: 2.1) Use PointNet++ structure to extract regional features from point cloud data; 2.2) Input the regional features into the multi-head attention mechanism module to capture the intrinsic correlation between dynamic gestures and obtain local features; 2.3) Through the maximum pooling layer, the local features are aggregated to represent the global features of the dynamic gesture.

4. The point cloud-based dynamic gesture recognition method according to claim 3, characterized in that: The specific process of step 3 is as follows: 3.1) The DGCNN module uses the KNN algorithm to construct a K nearest neighbor graph, which is expressed as: Where d represents the dimension, which represents the three-dimensional information of the point, p1, p2, ..., p n Represents the K nearest neighbor points of the center point of the KNN algorithm; the edge representation definition formula is as follows: e ij =h θ (p i ,p j ) where h θ :R d ×R d →R d′ , θ is a learnable parameter; 3.2) Re-characterize the center point, and the calculation formula is as follows: Among them, □ represents the aggregation operation, Ω represents the point p i The set of other points in the graph structure with the center point as the center; 3.3) The point cloud data of the dynamic gesture is processed by the DGCNN module and the offset attention mechanism module respectively to extract the local features of the dynamic gesture; 3.4) Superimposing the calculation results of the local features of the dynamic gestures extracted separately to obtain a richer feature representation; 3.5) Use one-dimensional convolution to reduce the dimension, and the nonlinear function ReLU to increase the nonlinear capacity; use data normalization to prevent internal covariate shift and gradient diffusion after the operation, and the final output represents the local features of the dynamic gesture.

5. The point cloud-based dynamic gesture recognition method according to claim 4, characterized in that: The specific process of step 5 is as follows: 5.1) Add a bidirectional gated recurrent unit BiGRU to the Transformer structure to build a BiGRU-Transformer module, and merge the encoders of BiGRU and Transformer through the connection operation, combining the self-attention mechanism with the BiGRU model to more accurately model the temporal sequence of gesture features; 5.2) Output the multi-scale features to the BiGRU-Transformer module to obtain the final dynamic gesture recognition results.

Citation Information

Patent Citations

  • Three-dimensional modeling method based on multi-feature fusion point cloud segmentation

    CN114612660A

  • Dynamic gesture recognition method and system based on hand key point and transformer

    CN114898457A

  • Gesture recognition method and system based on depth camera and contour extraction

    CN116311492A

  • Classroom teaching gesture recognition method based on chessboard self-attention mechanism

    CN117079341A

Cited By

  • Point cloud gesture recognition method based on extended Point LSTM model

    CN120689929A

  • Gesture recognition method and device and storage medium

    CN120997880A

  • Gesture recognition methods, devices and storage media

    CN120997880B