A small sample gesture recognition method based on visual and millimeter wave adaptive fusion

By employing a few-sample gesture recognition method that adaptively fuses vision and millimeter waves, and utilizing a meta-learning strategy and a multimodal adaptive fusion classification module, the problem of high computational resource consumption and poor environmental adaptability in user-defined gesture recognition is solved, achieving efficient and accurate recognition results.

CN119028022BActive Publication Date: 2026-11-27SICHUAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411222401.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2026-11-27
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

Existing gesture recognition methods require a large amount of data for training when faced with user-defined gestures, and multimodal fusion methods have failed to effectively adapt to performance differences in different environments, resulting in huge computational resource consumption and difficulty in quickly adapting to new tasks in environments with scarce computational resources.

Method used

A meta-learning strategy is used to train the feature extraction model. A few-sample gesture recognition method that integrates vision and millimeter wave adaptive fusion is used. A multimodal adaptive fusion classification module is used to automatically adjust the fusion weights according to different environments to generate an adaptive classifier without the need for fine-tuning backpropagation.

Benefits of technology

It achieves generalization ability in user-defined gesture recognition tasks, reduces computing resource consumption, quickly adapts to new tasks, and improves recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119028022B_ABST
    Figure CN119028022B_ABST
Patent Text Reader

Abstract

The present application relates to the field of gesture recognition, and particularly relates to a small sample gesture recognition method based on visual and millimeter wave adaptive fusion. The present application trains a feature extraction model through a meta-learning strategy, so that the model has a certain generalization ability for new tasks (i.e. user-defined gesture class recognition tasks). Meanwhile, the present application can generate an adaptive fusion classifier according to a new multi-modal gesture recognition task, without consuming the computing resources consumed by fine-tuning the classifier during back propagation, and only needs a small amount of resources of a storage medium to store the user-defined gesture feature prototype.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of gesture recognition, and in particular to a small-sample gesture recognition method based on adaptive fusion of vision and millimeter wave. Background Technology

[0002] Gesture recognition is a natural form of human-computer interaction, enriching interaction methods in fields such as smart homes, virtual reality, and mobile phone interaction. Traditional gesture recognition systems rely on expert analysis, manually defined gestures, and a large number of corresponding gesture features, which is time-consuming and labor-intensive. In recent years, with the development of deep learning, researchers can collect data and input it into pre-designed end-to-end deep learning algorithms to learn a good model. However, traditional deep learning methods rely on large amounts of data for training, which cannot meet the needs of users to customize gestures, and they face the problem of scene switching. The accuracy may decrease due to cross-domain data, that is, changes in the person performing the gesture, the scene, and the position.

[0003] To further explore the freedom of user-defined gestures and reduce the time and cost of data collection, many studies have applied few-shot learning methods to gesture recognition. However, current few-shot gesture recognition methods are mainly based on various unimodal studies, each with its own limitations. For example, radio frequency modalities such as millimeter wave and Wi-Fi cannot provide detailed information such as subtle gestures and hand shapes over long distances, and are susceptible to ghosting caused by reflections and noise from dynamic objects in the environment. Visual modalities such as RGB and skeletal models rely on visibility, and their accuracy decreases or even fails under conditions of strong light, low light, or occlusion. Theoretically, fusing data from two or more modalities can make the model more robust in different environments. However, research on fusing data from two or more modalities and applying it to few-shot gesture recognition still has a significant gap.

[0004] Traditional multimodal fusion methods are divided into early fusion and late fusion. Early fusion involves directly fusing modal features before inputting them into the classifier, which may lead to overfitting of the model to the training data. Late fusion, on the other hand, averages the decision results of each modality separately to obtain the final result, assuming that the two modalities contribute equally to the classification probability in any scenario. Neither of these methods considers that the performance of each modality in different scenarios may differ from or be imbalanced compared to the training data. Therefore, it is crucial to develop a strategy that can adaptively adjust the fusion weights in different environments.

[0005] Furthermore, current mainstream few-shot gesture recognition methods are typically based on transfer learning or gradient optimization-based meta-learning methods. When introducing new user-defined gestures, both methods require significant computational resources for gradient backpropagation to update parameters. Gesture recognition is often performed in environments with scarce computational resources. Therefore, it is crucial to propose a multimodal fusion algorithm that, after model training, can adapt to new tasks without fine-tuning backpropagation. Summary of the Invention

[0006] The purpose of this invention is to overcome the problem of the lack of a suitable multimodal gesture recognition method in the prior art, and to provide a small-sample gesture recognition method based on adaptive fusion of vision and millimeter wave.

[0007] To achieve the above-mentioned objectives, the present invention provides the following technical solution:

[0008] A few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave technology includes the following steps:

[0009] a: Collect several custom user gesture data, extract the feature vector of the user gesture data through a pre-trained feature extraction model, calculate the prototype vector of each gesture category, and store it as a multimodal adaptive fusion classification module;

[0010] b: Obtain user gesture data to be recognized, extract the feature vector of the user gesture data to be recognized through the feature extraction model, and send it to the multimodal adaptive fusion classification module for matching to obtain the classification probability of the corresponding gesture category of the user gesture data to be recognized;

[0011] The feature extraction model includes the following training steps:

[0012] S1: Acquire several gesture samples to construct a multimodal gesture recognition dataset; the gesture samples include visual modal data and millimeter-wave modal data;

[0013] S2: Generate a gesture recognition task from the multimodal gesture recognition dataset based on a meta-learning training strategy;

[0014] S3: Complete the recognition task using a pre-built feature extraction model, and optimize the parameters of the feature extraction model based on the recognition task results.

[0015] As a preferred embodiment of the present invention, the gesture samples include visual modal data and millimeter-wave modal data of several gesture categories in various scenarios.

[0016] As a preferred embodiment of the present invention, S2 includes:

[0017] S21: Classify and label the dataset according to gesture categories, and divide the multimodal gesture recognition dataset into a test set, a validation set, and a training set according to a preset ratio;

[0018] S22: A meta-learning training strategy based on n-way k-shot, in each episode, randomly selects n classes from the training set;

[0019] S23: Randomly select k gesture samples from n classes as the support set, and use the remaining gesture samples as the query set to construct a recognition task; wherein, the goal of the recognition task is to classify gestures in the query set using the feature extraction model and the support set.

[0020] As a preferred embodiment of the present invention, step S3 includes the following steps:

[0021] S31: Extract features from the two modalities of each gesture sample in the training set;

[0022] S32: Calculate the prototype vector of each gesture category based on the support set, obtain the single-modal probability of each gesture sample corresponding to the gesture category through the prototype classifier, calculate the classification confidence of each modality based on the single-modal probability of each gesture sample, and assign the classification confidence to each corresponding modality to obtain the multimodal adaptive fusion classification module, extract the feature vector of the query set, input it into the multimodal adaptive fusion classification module, and generate the query set sample classification result;

[0023] S33: Calculate the loss value based on the classification results of the query set samples and the corresponding classification labels, and update the parameters of the feature extraction model through backpropagation.

[0024] As a preferred embodiment of the present invention, the feature extraction of visual modality data in S31 includes the following steps:

[0025] S311: Perform pixel padding and image scaling on the visual modal data to obtain a standardized image frame sequence;

[0026] The pixel filling method involves filling the image in the visual modality data into a square shape by filling it with zeros; the image scaling method involves scaling the filled image to a preset pixel size.

[0027] S312: Process the standardized image frame sequence using the star RGB algorithm to generate a star RGB image; the calculation formula is as follows:

[0028] I s =stack(M R M G M B )

[0029]

[0030] Among them, I s For a star RGB image, stack() is used for stacking channels, M R M G M B These are the sums of the inter-frame differences for the R, G, and B channels, respectively; M c The cumulative matrix is ​​obtained by summing the inter-frame differences in each channel C∈{R,G,B}, n C To standardize the total number of frames in an image frame sequence, I k =I k (i,j) is the RGB vector of the pixel at position (i,j) in the k-th frame, D(I k-1 ,I k )=D(I k-1 ,I k )(i,j) is I k-1 with I k Inter-frame differences; λ k (i,j) is I k-1 (i, j) and I k (i,j) is the quantized value of the color attribute change at pixel (i,j);

[0031] S313: Use the ResNet-18 visual feature extraction backbone network to extract image features from the star RGB image as a visual modality feature vector; its expression is:

[0032] v r =ResNet-18(I s )

[0033] in, From starRGB image I s The visual modal feature vector extracted from it.

[0034] As a preferred embodiment of the present invention, the feature extraction of millimeter-wave modal data in S31 includes the following steps:

[0035] S314: Perform min-max normalization on each attribute of each point in each frame of millimeter-wave modal data within one frame to generate a normalized millimeter-wave sequence;

[0036] S315: For each frame of the normalized millimeter-wave sequence, local spatial features are extracted by several convolutional modules and global spatial feature representation is obtained by max pooling. Then, global average max pooling is used to output the spatial feature vector.

[0037] Specifically, the processing expression for each convolutional module is as follows:

[0038] ConvBlock(f i )=MaxPool1D(ReLU(BatchNorm1D(Conv1D(f i kernel_size

[0039] =3,padding=1))))

[0040] Among them, f i For the i-th frame of the normalized millimeter-wave sequence, ConvBlock(f i ) is f i The local spatial features are represented by MaxPool1D (max pooling), ReLU (ReLU activation function), BatchNorm1D (batch normalization), and Conv1D (one-dimensional convolution).

[0041] S316: Extract the temporal features corresponding to the spatial feature vectors of the millimeter-wave modal data at different time steps using an LSTM network, and use the temporal features output at the last time step extracted by the LSTM network as the millimeter-wave modal feature vector.

[0042] As a preferred embodiment of the present invention, step S32 includes the following steps:

[0043] S321: Calculate the single-modal prototype vector for each gesture category based on the support set, the expression of which is:

[0044]

[0045] in, Let S be the prototype vector of the c-th gesture category u modality in the support set. c Let k be the set of support sample vectors for the c-th gesture category in the n-way k-shot recognition task. For S c The feature vector of the i-th sample u mode;

[0046] S322: Obtain the unimodal probability of the gesture category corresponding to each gesture sample in the query set through the prototype classifier. The expression is as follows:

[0047]

[0048] in, for The single-modal probability of a gesture belonging to class c, For the j-th sample in the u-modal query set, To support the feature vector of the j-th sample u mode in the set, d(*,*) is used for Euclidean distance calculation, exp() is the natural exponential function, and l∈[1,n];

[0049] S323: Calculate the classification confidence score for each modality based on the unimodal probability of each gesture sample. The expression is as follows:

[0050]

[0051] in, For the classification confidence of mode u, w u w represents the deterministic weights of mode u. j Let be the weight of the j-th mode; This represents the probability that sample mode u belongs to class c, ∈ = 1 is the smoothing term, H() is the entropy calculation formula, and p u Here is the probability distribution for sample classification; n is the number of gesture categories;

[0052] S324: Assign the classification confidence scores to each corresponding modality to obtain a multimodal adaptive fusion classification module; the classification probability expression of the multimodal adaptive fusion classification module is:

[0053]

[0054] Among them, P f (c∣x j ) represents the output classification probability. and These are the normalized deterministic weights for millimeter wave and visual RGB, respectively. and These are millimeter-wave and visual RGB modalities, respectively, querying the feature vector v of the sample. j With the prototype μ of category c c The distance index between them, 1. Iterate through all categories, and exp() is the natural exponential function.

[0055] As a preferred embodiment of the present invention, the loss value in S33 includes single-modal loss and adaptive fusion probability loss, and its expression is:

[0056]

[0057] in, The loss value described in S33, It is obtained by performing cross-entropy calculation between the classification prediction probability output by the millimeter-wave mode and the true label. It is obtained by performing cross-entropy calculation between the classification prediction probability output by the visual RGB modality and the true label. It is obtained by performing cross-entropy calculation between the adaptive classification probability output by the fusion and the true label.

[0058] A small-sample gesture recognition device based on visual and millimeter-wave adaptive fusion includes at least one processor and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to perform any of the methods described above.

[0059] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0060] This invention trains a feature extraction model using a meta-learning strategy, enabling the model to generalize to new tasks (i.e., user-defined gesture recognition tasks). Furthermore, this invention can generate an adaptive fusion classifier based on new multimodal gesture recognition tasks without requiring fine-tuning the computational resources consumed during backpropagation of the classifier, and only requires minimal storage resources to store the user-defined gesture feature prototypes. Attached Figure Description

[0061] Figure 1 This is a small-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in Embodiment 1 of the present invention;

[0062] Figure 2 This is a multi-scenario illustration of a small-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in Embodiment 2 of the present invention;

[0063] Figure 3 This is a schematic diagram of the framework of the meta-learning strategy in a few-sample gesture recognition method based on visual and millimeter-wave adaptive fusion as described in Embodiment 2 of the present invention;

[0064] Figure 4 This is a schematic diagram of the data feature extraction process in a small-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in Embodiment 2 of the present invention;

[0065] Figure 5 This is a schematic diagram of the adaptive fusion classification process in a small sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in Embodiment 2 of the present invention;

[0066] Figure 6 This is a schematic diagram illustrating the 5-way 1-shot accuracy of a small-sample gesture recognition method based on adaptive fusion of vision and millimeter wave technology as described in Embodiment 2 of the present invention.

[0067] Figure 7 This is a schematic diagram illustrating the 5-way 5-shot accuracy in a small-sample gesture recognition method based on adaptive fusion of vision and millimeter wave technology as described in Embodiment 2 of the present invention.

[0068] Figure 8 This is a schematic diagram of the structure of a small-sample gesture recognition device based on the adaptive fusion of vision and millimeter wave, which utilizes the small-sample gesture recognition method based on the adaptive fusion of vision and millimeter wave described in Embodiment 1, as described in Embodiment 3 of the present invention. Detailed Implementation

[0069] The present invention will be further described in detail below with reference to experimental examples and specific embodiments. However, this should not be construed as limiting the scope of the above-mentioned subject matter of the present invention to the following embodiments; all technologies implemented based on the content of the present invention fall within the scope of the present invention.

[0070] Example 1

[0071] like Figure 1 As shown, a few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave technology includes the following steps:

[0072] a: Collect a number of custom user gesture data, extract feature vectors from the user gesture data through a pre-trained feature extraction model, calculate the prototype vector of each gesture category, and store it as a multimodal adaptive fusion classification module; wherein, the amount of user gesture data collected meets the minimum requirement (i.e., only a few samples are needed for each gesture category) to extract feature vectors, and the more data collected, the more accurate the extracted feature vectors will be.

[0073] b: Obtain user gesture data to be recognized, extract the feature vector of the user gesture data to be recognized through the feature extraction model, and send it to the multimodal adaptive fusion classification module for matching to obtain the classification probability of the corresponding gesture category of the user gesture data to be recognized.

[0074] The feature extraction model includes the following training steps:

[0075] S1: Obtain several gesture samples and construct a multimodal gesture recognition dataset; the gesture samples include visual modal data and millimeter-wave modal data.

[0076] S2: Generate a recognition task from the multimodal gesture recognition dataset based on a meta-learning training strategy.

[0077] S3: Complete the recognition task using a pre-built feature extraction model, and optimize the parameters of the feature extraction model based on the recognition task results.

[0078] Example 2

[0079] This embodiment is a specific implementation of the few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in Embodiment 1, including the following steps:

[0080] S1: Acquire several gesture samples to construct a multimodal gesture recognition dataset; the gesture samples include visual modal data and millimeter-wave modal data. The gesture samples include visual modal data and millimeter-wave modal data of several gesture categories in multiple scenarios.

[0081] Furthermore, in this embodiment, the multimodal gesture recognition dataset is collected simultaneously using an RGB camera and a 4D millimeter-wave radar board (wherein, the RGB camera model is C270, and the radar board is IWR 6843ISK; other models can be used in specific implementations). For gesture samples x = (x r ,x m Its visual modal data consists of video clips, i.e., sequences of RGB image frames, denoted by x. r ={I1,I2,...,I n} indicates that, where I k This represents the k-th RGB frame in the RGB frame sequence of this gesture segment. The three-dimensional RGB vector with coordinates (i,j) of this RGB frame is represented by the symbol I. k (i,j) is used to represent the millimeter-wave mode, which is 4D millimeter-wave radar point cloud data, denoted by x. m ={f1,f2,...,f n} represents. Each frame f k It is an ordered set of points {p1, p2, ..., p} n}, where each point p i =(x,y,z,v) includes spatial coordinates x,y,z and Doppler velocity v, sorted in order of distance from the radar from nearest to farthest. To ensure consistency in model training, frames with more than 30 points are truncated to the nearest 30 points, and frames with fewer than 30 points are padded with 0s until they reach 30 points. The dataset used in this invention collects a total of 105 gesture classes, encompassing four scenarios: smoke, virtual reality interaction gestures, multi-person gestures, and close-range micro-gestures. Figure 2 As shown.

[0082] S2: Generate a recognition task from the multimodal gesture recognition dataset based on a meta-learning training strategy.

[0083] like Figure 3 As shown, the multimodal gesture recognition dataset collected in S1 is divided into three parts according to a set ratio: a test set, a validation set, and a training set. The class label spaces of these three subsets are disjoint. Based on an n-way k-shot meta-learning training strategy, in each episode, n classes are randomly selected from the training set, and then k samples are randomly selected from these n classes as the support set. The remaining samples are used as the query set to construct a task. The goal of this task is to use the model to classify the remaining query set using k labeled samples. The specific steps are as follows:

[0084] S21: Classify and label the dataset according to gesture categories, and divide the multimodal gesture recognition dataset into a test set, a validation set, and a training set according to a preset ratio.

[0085] S22: A meta-learning training strategy based on n-way k-shot, in each episode, randomly selects n classes from the training set.

[0086] S23: Randomly select k gesture samples from n classes as the support set, and use the remaining gesture samples as the query set to construct a recognition task; wherein, the goal of the recognition task is to classify gestures in the query set using the feature extraction model and the support set.

[0087] S3: Complete the recognition task using a pre-built feature extraction model, and optimize the parameters of the feature extraction model based on the recognition task results.

[0088] like Figure 3 As shown, the feature extraction model accepts a support set and a query set from a task, outputs the classification result of the query set, and uses the classification result to calculate the loss, thereby performing backpropagation to update the parameters of the model algorithm. The specific steps are as follows:

[0089] S31: Extract features from the two modalities of each gesture sample in the training set.

[0090] Feature extraction is performed on the two modalities of gesture sample x, such as... Figure 4 As shown, the data x includes both visual and millimeter-wave modalities. r ,x m Feature extraction. Further:

[0091] Feature extraction from visual modality data includes the following steps:

[0092] S311: Perform pixel padding and image scaling on the visual modal data to obtain a standardized image frame sequence;

[0093] The pixel filling method involves filling the image in the visual modality data into a square by filling it with zeros; the image scaling method involves scaling the filled image to a preset pixel size.

[0094] For example, if the image to be processed is 640*480 pixels in size, and the preset pixel size for scaling is 256*256, the steps are as follows: For the RGB image frame sequence x... r Each image in I kTo fill the image, use zeros to fill it from a pixel size of 640*480 to a size of 640*640, and then scale it to get a sequence of image frames scaled to a size of 256*256.

[0095] S312: Process the standardized image frame sequence using the star RGB algorithm to generate a star RGB image.

[0096] To capture dynamic gesture information in RGB image frame sequences and filter out irrelevant background information, this invention will... r ={I1,I2,...,I n} Convert to a composite starRGB image I s This process involves dividing the video into three equal subsequences, each corresponding to an independent stage of the gesture, and then synthesizing a single-channel image M reflecting part of the gesture's dynamics using the subsequences. C This single-channel image is obtained by calculating the intensity differences between consecutive frame pairs. These differences are adjusted by a factor λ, which is calculated based on the angle between the RGB vectors of the corresponding pixels. Finally, the three single-channel images derived from the three subsequences are stacked to obtain a three-channel star RGB image. The steps and mathematical formulas for this conversion are as follows:

[0097] I s =stack(M R M G M B )

[0098]

[0099] Among them, I s For a star RGB image, stack() is used for channel stacking. R M G M B These are the sums of the inter-frame differences for the R, G, and B channels, respectively; M c The cumulative matrix is ​​obtained by summing the inter-frame differences in each channel C∈{R,G,B}, n C To standardize the total number of frames in an image frame sequence, I k =I k (i,j) is the RGB vector of the pixel at position (i,j) in the k-th frame, D(I k-1 ,I k )=D(I k-1 ,I k )(i,j) is I k-1 with I k Inter-frame differences; λ k (i,j) is Ik-1 (i, j) and I k (i,j) is the quantized value of the color attribute change at pixel (i,j).

[0100] Finally, the obtained star RGB image is standardized with a mean of 0.5 and a variance of 1, so that it can be directly input into the backbone network of the feature extraction model.

[0101] S313: Use the visual feature extraction backbone network ResNet-18 to extract image features from star RGB images as visual modality feature vectors.

[0102] Since star RGB images inherently encapsulate spatiotemporal information, they are suitable for direct analysis using mature foundational models in image classification. In the task of extracting features from star RGB images, this invention employs a pre-trained ResNet-18 model, which has been extensively trained on the ImageNet dataset. By removing the final classification layer, the ResNet-18 network outputs a 512-dimensional feature vector. The expression for this process is:

[0103] v r =ResNet-18(I s )

[0104] in, From star RGB image I s The visual modal feature vectors extracted from the data are thus effectively embedded into a suitable high-dimensional space, thus effectively embedding the spatiotemporal features of the gesture's visual modality.

[0105] Feature extraction from millimeter-wave modal data includes the following steps:

[0106] S314: Perform min-max normalization on each attribute of each point in each frame of millimeter-wave modal data within one frame to generate a normalized millimeter-wave sequence.

[0107] For example, millimeter-wave modal data is x m ={f1,f2,…,f n The specific process is as follows: for each point in each frame, the four attributes x, y, z, v are normalized by min-max within one frame. This approach can minimize the influence of distance factors and scale each frame of the gesture to the same dimension, so that the model pays more attention to the motion state and shape changes of the gesture.

[0108] S315: Local spatial features are extracted sequentially through several convolutional modules and global spatial feature representation is obtained through max pooling. Then, global average max pooling is used to output the spatial feature vector.

[0109] Since the data output by the millimeter-wave radar panel is sorted from nearest to farthest distance, spatially close points are arranged adjacently in the tensor storage. One-dimensional convolutional layers can be used to extract local spatial features, with the following expression:

[0110] ConvBlock(f i )=MaxPool1D(ReLU(BatchNorm1D(Conv1D(f i kernel_size

[0111] =3,padding=1))))

[0112] Among them, f i For the i-th frame of the normalized millimeter-wave sequence, ConvBlock(f i ) is f i The local spatial features are represented by MaxPool1D (max pooling), ReLU (ReLU activation function), BatchNorm1D (batch normalization), and Conv1D (one-dimensional convolution).

[0113] In this embodiment, the Conv1D layer convolutional kernel size is 3 with padding of 1, used to detect local features of millimeter-wave point cloud frames. Subsequently, batch normalization (BatchNorm1D) is used to stabilize the training process, and the ReLU activation function introduces non-linearity to learn complex patterns. Then, feature downsampling is performed through a max-pooling layer (MaxPool1D) with a kernel size of 2 to focus on important features. The data is processed through four convolutional blocks with different channel depths (64, 128, 256, 512) to extract deep local spatial features. Finally, the output of each convolutional block is used to generate a 512-dimensional feature vector through global average pooling. Effectively summarize the spatial features of each frame.

[0114] S316: Extract the temporal features corresponding to the spatial feature vectors of the millimeter-wave modal data at different time steps using an LSTM network, and use the temporal features output at the last time step extracted by the LSTM network as the millimeter-wave modal feature vector.

[0115] To effectively capture the dynamic characteristics of gestures over time, this embodiment employs a Long Short-Term Memory (LSTM) network to analyze a series of spatial feature vectors. This LSTM network is specifically designed to process these 512-dimensional vectors, extracting temporal patterns reflecting the evolution of gestures. In the final time step of the LSTM processing, a 256-dimensional vector is output. This vector comprehensively reflects the spatial and temporal characteristics of the entire gesture sequence. At this point, the feature vector extraction for the millimeter-wave mode is complete.

[0116] After completing the feature extraction process for millimeter-wave and RGB modes, the feature vector representations of the support set and query set are simplified. Previously labeled as v m and v r The feature vectors are now uniformly represented as v u ,in This represents the mode of the i-th sample in mode u. After obtaining the feature vector, inputting the vector into the adaptive classification module will yield the classification probability.

[0117] This invention proposes a multimodal adaptive fusion algorithm based on prototype network algorithm and entropy measurement uncertainty. This algorithm enables the model to adjust modal weights according to different scenarios, thereby better adapting to new tasks and recognizing user-defined new gestures, even in scenarios with a small number of labeled multimodal (visual and millimeter-wave) samples as the support set.

[0118] S32: Calculate the prototype vector for each gesture category based on the support set. Obtain the unimodal probability of each gesture sample corresponding to its category through the prototype classifier. Calculate the classification confidence of each modality based on the unimodal probability of each gesture sample, and assign the classification confidence to each corresponding modality to obtain the multimodal adaptive fusion classification module. Extract the feature vector of the query set, input it into the multimodal adaptive fusion classification module, and generate the query set sample classification result. Figure 5 As shown, the specific steps are as follows:

[0119] S321: Calculate the prototype vector for each gesture category based on the support set, the expression of which is:

[0120]

[0121] in, Let S be the prototype vector of the c-th gesture category u modality in the support set. c Let k be the set of support sample vectors for the c-th gesture category in the n-way k-shot recognition task. For S c The feature vector of the i-th sample u mode is extracted using the method in S31.

[0122] S322: Obtain the unimodal probability of the gesture sample corresponding to the gesture category for each query set through the prototype classifier. The expression is as follows:

[0123]

[0124] in, for The probability of a single mode belonging to class c. To query the j-th sample, To support the feature vector of the j-th sample u mode in the set, the feature vector of this sample is extracted in the way in S31, where d(*,*) is the Euclidean distance calculation, exp() is the natural exponential function, l∈[1,n], which traverses the n classes in the n-wayk-shot task.

[0125] S323: Calculate the classification confidence of each modality based on the single modality probability of each gesture sample.

[0126] Modal deterministic weights are an important component in evaluating the effectiveness of each modality classification output for samples in the query set. For clarity and further analysis, the unimodal classification probability distribution provided by the classifier is represented as p. u This probability is determined by the output probability of the prototype-based classifier. The resulting probability distribution. The uncertainty, i.e., the entropy H, of the modal probability distribution is calculated using the following formula:

[0127]

[0128] Where H() is the formula for calculating the uncertainty of the modal probability distribution, i.e., the entropy; Let represent the probability that sample modality u belongs to the i-th class, and n be the number of gesture categories.

[0129] The deterministic weights for each mode are denoted as w. u To avoid extreme imbalances in weights, the reciprocal of the entropy is taken, and a smoothing term ∈ is used. This term is set to 1 and is calculated using the following formula:

[0130]

[0131] These weights are then normalized across all modes to ensure that their sum is one. The normalization formula is as follows:

[0132]

[0133] in, For the classification confidence of mode u, w j w represents the weight of the j-th mode; j This represents the initial weights calculated for each mode.

[0134] Normalized weights This represents the relative certainty of each modality's output. Higher weights indicate that the modality is more reliable, meaning it will have a stronger influence during the fusion process. This approach ensures that the fusion decision utilizes the most reliable data provided by each modality.

[0135] S324: Assign the classification confidence to each corresponding modality to obtain a multimodal adaptive fusion classification module.

[0136] During the inference phase, the instantaneous fusion strategy assigns greater weight to modalities with higher classification confidence. Conversely, it assigns smaller weights to modalities with lower classification confidence. Therefore, it normalizes the deterministic weights of millimeter-wave and visual RGB. and This is integrated into the softmax equation to calculate the combination probability. Specifically, the classification probability expression of the multimodal adaptive fusion classification module is:

[0137]

[0138] Among them, P f (c∣x j ) represents the output classification probability. and These are the normalized deterministic weights for millimeter wave and visual RGB, respectively. and The feature vector v of the query sample is obtained from millimeter-wave and visual RGB modalities, respectively. j With the prototype μ of category c c The distance index between them, 1. Iterate through all categories, and exp() is the natural exponential function.

[0139] This computational method ensures that the final classification considers the confidence level of each modality, thus achieving a robust inference that leverages reliable information provided by millimeter-wave and RGB data. Notably, the method employs Euclidean distance-based classification, eliminating the need to optimize any linear classifier parameters. Combined with this instantaneous fusion module, the method can quickly adapt to new tasks after model training, requiring no backpropagation resources and only a small amount of storage space to store the prototype vectors of user-defined gestures.

[0140] S33: Calculate the loss value based on the classification results of the query set samples and the corresponding classification labels, and update the parameters of the feature extraction model through backpropagation.

[0141] The loss value includes single-modal loss and adaptive fusion probability loss, expressed as:

[0142]

[0143] in, The loss value described in S33, It is obtained by performing cross-entropy calculation between the classification prediction probability output by the millimeter-wave mode and the true label. It is obtained by performing cross-entropy calculation between the classification prediction probability output by the visual RGB modality and the true label. It is obtained by performing cross-entropy calculation between the fused adaptive classification probability and the true label. Each sub-loss here is calculated using cross-entropy loss, and the calculated label is the one-hot hard-coded vector of the true class. For example... Figure 3 As shown, once the loss is obtained, backpropagation can be performed to update the parameters of the backbone network.

[0144] To test the effectiveness of the adaptive fusion algorithm, this embodiment validated the model's accuracy in four scenarios and compared it with millimeter-wave monomodal, visual RGB monomodal, early fusion, late fusion, and gated fusion methods. The test model employed a leave-one-scene strategy, reserving gestures from one scenario for the test set and using the remaining scenario data for training. This partitioning resulted in four different validation scenarios, such as... Figure 2 As shown in the diagram. The remaining dataset is divided into training and validation sets in a 0.7:0.15 ratio. The training set is used to train the model, the validation set is used to monitor for overfitting, and the test set is used to test the model's performance. The model is first trained on the training set for 45,000 tasks until convergence. Then, 5,000 tasks are randomly selected from the test set to calculate the average accuracy. The accuracy results are shown in the diagram. Figure 6 , 7 As shown.

[0145] As can be seen, in all scenarios, this invention achieves the highest accuracy in solving the classification task of five new gesture categories. Specifically, in the 5-way 5-shot task, the average accuracy is 89.84%, exceeding the second-best method's early fusion by 4.83%. In the 5-way 1-shot task, the average accuracy is 74.37%, exceeding the second-best method's early fusion by 4.41%.

[0146] Example 3

[0147] like Figure 8 As shown, a few-sample gesture recognition device based on adaptive fusion of vision and millimeter-wave technology includes at least one processor, a memory communicatively connected to the at least one processor, and at least one input / output interface communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor, which, when executed, enables the at least one processor to perform the few-sample gesture recognition method based on adaptive fusion of vision and millimeter-wave technology described in the foregoing embodiments. The input / output interface may include a display, keyboard, mouse, and USB interface for inputting and outputting data.

[0148] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0149] When the integrated units of this invention are implemented as software functional units and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0150] 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 within the protection scope of the present invention.

Claims

1. A few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave, characterized in that, Includes the following steps: a: Collect several custom user gesture data, extract the feature vector of the user gesture data through a pre-trained feature extraction model, calculate the prototype vector of each gesture category, obtain the single-modal probability through the prototype classifier, calculate the classification confidence of each modality based on the single-modal probability, and assign the classification confidence to each corresponding modality respectively, and store it as a multimodal adaptive fusion classification module. b: Obtain user gesture data to be recognized, extract the feature vector of the user gesture data to be recognized through the feature extraction model, and send it to the multimodal adaptive fusion classification module for matching to obtain the classification probability of the corresponding gesture category of the user gesture data to be recognized; The feature extraction model includes the following training steps: S1: Acquire several gesture samples to construct a multimodal gesture recognition dataset; the gesture samples include visual modal data and millimeter-wave modal data; S2: Generate a gesture recognition task from the multimodal gesture recognition dataset based on a meta-learning training strategy, wherein S2 includes: S21: Classify and label the dataset according to gesture categories, and divide the multimodal gesture recognition dataset into a test set, a validation set, and a training set according to a preset ratio. S22: A meta-learning training strategy based on n-way k-shot, in each episode, randomly selects n classes from the training set. S23: Randomly select k gesture samples from n classes as the support set, and use the remaining gesture samples as the query set to construct a recognition task; wherein, the goal of the recognition task is to classify gestures in the query set using the feature extraction model and the support set; S3: Complete the recognition task using a pre-built feature extraction model, and optimize the parameters of the feature extraction model based on the recognition task results, wherein S3 includes: S31: Extract features from the two modalities of each gesture sample in the training set; S32: Calculate the prototype vector of each gesture category based on the support set, obtain the single-modal probability of each gesture sample corresponding to the gesture category through the prototype classifier, calculate the classification confidence of each modality based on the single-modal probability of each gesture sample, and assign the classification confidence to each corresponding modality to obtain the multimodal adaptive fusion classification module, extract the feature vector of the query set, input it into the multimodal adaptive fusion classification module, and generate the query set sample classification result; S33: Calculate the loss value based on the classification results of the query set samples and the corresponding classification labels, and update the parameters of the feature extraction model through backpropagation.

2. The few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in claim 1, characterized in that, The gesture samples include visual modal data and millimeter-wave modal data of several gesture categories in various scenarios.

3. The few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in claim 1, characterized in that, The feature extraction of visual modality data in S31 includes the following steps: S311: Perform pixel padding and image scaling on the visual modal data to obtain a standardized image frame sequence; The pixel filling method involves filling the image in the visual modality data into a square by filling it with zeros; the image scaling method involves scaling the filled image to a preset pixel size. S312: Process the standardized image frame sequence using the star RGB algorithm to generate a star RGB image; the calculation formula is as follows: in, For a star RGB image, stack() is used for stacking channels. These are the sums of the inter-frame differences for the R, G, and B channels, respectively. It is a cumulative matrix obtained by summing the inter-frame differences in each channel C∈{R, G, B}, where nC is the total number of frames in the normalized image frame sequence. Let be the RGB vector of the pixel at position (i, j) in the k-th frame. for and Inter-frame differences; for and The quantized value of the color attribute change at pixel (i,j); S313: Use the ResNet-18 visual feature extraction backbone network to extract image features from the star RGB image as a visual modality feature vector; its expression is: in, From star RGB image The visual modal feature vector extracted from it.

4. The few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in claim 1, characterized in that, The feature extraction of the millimeter-wave modal data in S31 includes the following steps: S314: Perform min-max normalization on each attribute of each point in each frame of millimeter-wave modal data within one frame to generate a normalized millimeter-wave sequence; S315: For each frame of the normalized millimeter-wave sequence, local spatial features are extracted by several convolutional modules and global spatial feature representation is obtained by max pooling. Then, global average max pooling is used to output the spatial feature vector. Specifically, the processing expression for each convolutional module is as follows: in, For the i-th frame of the normalized millimeter-wave sequence, for The local spatial features are processed by MaxPool1D (max pooling), ReLU (ReLU activation function), BatchNorm1D (batch normalization), and Conv1D (one-dimensional convolution). S316: Extract the temporal features corresponding to the spatial feature vectors of the millimeter-wave modal data at different time steps using an LSTM network, and use the temporal features output at the last time step extracted by the LSTM network as the millimeter-wave modal feature vector.

5. The few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in claim 1, characterized in that, S32 includes the following steps: S321: Calculate the single-modal prototype vector for each gesture category based on the support set, the expression of which is: in, Let S be the prototype vector of the c-th gesture category u modality in the support set. c Let k be the set of support sample vectors for the c-th gesture category in the n-way k-shot recognition task. Let be the feature vector of the i-th sample u mode in Sc; S322: Obtain the unimodal probability of the gesture category corresponding to each gesture sample in the query set through the prototype classifier. The expression is as follows: in, for The single-modal probability of a gesture belonging to class c, For the j-th sample in the u-modal query set, To support the feature vector of the j-th sample u mode in the set, d( , ) is the Euclidean distance calculation, exp() is the natural exponential function, l∈[1,n]; S323: Calculate the classification confidence score for each modality based on the unimodal probability of each gesture sample. The expression is as follows: in, The classification confidence score for mode u. For the deterministic weights of mode u, Let be the weight of the j-th mode; This represents the probability that sample mode u belongs to class c. =1 represents the smoothing term, and H() is the entropy calculation formula. Here is the probability distribution for sample classification; n is the number of gesture categories; S324: Assign the classification confidence scores to each corresponding modality to obtain a multimodal adaptive fusion classification module; the classification probability expression of the multimodal adaptive fusion classification module is: Wherein, Pf(c∣x j ) represents the output classification probability. and These are the normalized deterministic weights for millimeter wave and visual RGB, respectively. and These are millimeter-wave and visual RGB modalities, respectively, querying the feature vector of the sample. With the prototype of category c The distance index between them is l, which iterates through all categories, and exp() is the natural exponential function.

6. The few-sample gesture recognition method based on adaptive fusion of vision and millimeter wave as described in claim 1, characterized in that, The loss value mentioned in S33 includes single-modal loss and adaptive fusion probability loss, expressed as: in, The loss value described in S33, It is obtained by performing cross-entropy calculation between the classification prediction probability output by the millimeter-wave mode and the true label. It is obtained by performing cross-entropy calculation between the classification prediction probability output by the visual RGB modality and the true label. It is obtained by performing cross-entropy calculation between the adaptive classification probability output by the fusion and the true label.

7. A small-sample gesture recognition device based on adaptive fusion of vision and millimeter wave, characterized in that, It includes at least one processor and a memory communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Few-sample human body action recognition method based on multi-dimensional feature fusion

    CN115937977A

  • Dual-target position and gesture recognition method based on neural network and millimeter wave radar

    CN117612260A