RFID gesture recognition method, computer device, product and storage medium

Through the twin network and template matching methods, the problem of performance decline of wireless sensing systems in different environments is solved, high-accuracy gesture recognition is achieved with a small number of training samples, and the deployment cost of wireless sensing systems and recognition model training time are reduced. Improved recognition accuracy and practicality.

CN115100733BActive Publication Date: 2024-09-13CENT SOUTH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210480019.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-05
Publication Date
2024-09-13
Estimated Expiration
2042-05-05

AI Technical Summary

Technical Problem

The performance of wireless sensing systems declines in different environments. The existing technology requires a large number of training samples or the data distribution of the source scene and the target scene is similar, making cross-scenario recognition difficult.

Method used

The twin network and template matching methods are used to obtain the phase sequence generated by the user's gesture for preprocessing and spectrogram conversion. The twin network is used to train the model, and gesture recognition is performed through template matching to reduce the need for training samples.

Benefits of technology

It achieves high-accuracy gesture recognition under a small number of new scene training samples, reduces the deployment cost of the wireless sensing system and the training time of the recognition model, and improves the recognition accuracy and practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115100733B
    Figure CN115100733B
Patent Text Reader

Abstract

The present invention discloses an RFID gesture recognition method, computer device, product and storage medium, which obtains the phase sequence generated by the user's gesture; preprocesses the phase sequence and identifies the gesture type; obtains the frequency spectrum of the preprocessed phase sequence; uses the frequency spectrum corresponding to each gesture as a training sample, pairs each training sample to obtain a twin network data set; uses the twin network data set to train the twin network to obtain an RFID gesture recognition model; pairs the gesture samples to be recognized with the identified gesture samples one by one, uses the paired data as the input of the RFID gesture recognition model, and uses the template matching method to recognize the gesture samples to be recognized. The method of the present invention can not only greatly reduce the training samples required for the recognition model and reduce the deployment cost of the wireless sensing system, but also achieves a high recognition accuracy and is highly practical.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless sensing technology, and in particular to an RFID gesture recognition method, a computer device, a product and a storage medium. Background Art

[0002] With the rapid development of wireless networks, wireless sensing technology has been widely used in people's lives. Wireless sensing technology is easy to deploy and low-cost, and can help users enjoy a better quality of life without the need for special equipment. However, wireless sensing technology often encounters a major problem in practical applications: due to the multipath effect of wireless signals, wireless signals are reflected by different reflectors in different environments, causing the collected wireless signals to change accordingly, causing the performance of wireless sensing systems in new environments to decline significantly, thus seriously hindering the application of wireless sensing systems in real life. This is called the cross-scenario problem of wireless sensing.

[0003] At present, there are two mainstream solutions to cross-scenario problems: re-collecting data for training in new scenarios, and using transfer learning to transfer knowledge from existing scenarios to reduce the number of training samples required for target scenarios. However, wireless sensing systems are very time-consuming and labor-intensive to collect data, requiring dozens or even hundreds of gestures to be collected for each type to achieve good results, and cannot be applied in practice; transfer learning requires that the data distribution of the source scene and the target scene is similar, otherwise harmful knowledge will be transferred, resulting in negative transfer, and sufficient data in the source scene is also required.

[0004] CN107633227B discloses a CSI-based fine-grained gesture recognition method and system, which uses a machine learning method to classify the extracted CSI features and classify the features into corresponding stroke sequences. However, such machine learning and deep learning-based methods require a large amount of data to train the model in order to obtain a more accurate decision boundary. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide an RFID gesture recognition method, a computer device, a product and a storage medium to address the deficiencies of the prior art, which can obtain a high accuracy rate of gesture classification with only a small number of training samples of new scenes.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: an RFID gesture recognition method, comprising the following steps:

[0007] S1, obtaining the phase sequence generated by the user's gesture;

[0008] S2, preprocessing the phase sequence, and identifying the gesture type corresponding to the gesture sample in the phase sequence;

[0009] S3, obtaining a spectrum diagram of the preprocessed phase sequence;

[0010] S4, taking the spectrum corresponding to each gesture as a training sample, pairing each training sample to obtain a twin network dataset;

[0011] S5. Using the twin network data set to train the twin network to obtain an RFID gesture recognition model;

[0012] S6. Pair the gesture samples to be recognized with the identified gesture samples one by one, use the paired data as the input of the RFID gesture recognition model, and recognize the gesture samples using a template matching method.

[0013] The present invention uses a twin network to input two gesture samples at the same time, judges the similarity between the samples, and uses a template matching method to classify them, thereby achieving high-precision small-sample gesture recognition. The present invention only requires a small number of training samples of new scenes to achieve high accuracy in gesture classification.

[0014] In step S2, the specific implementation process of preprocessing the phase sequence includes: using a Savitzky-Golay filter to filter the phase sequence to filter out environmental noise; and normalizing the filtered phase sequence using a Min-Max normalization method to obtain a preprocessed phase sequence.

[0015] In step S5, the twin network includes two neural networks with shared weights. Weight sharing means that two independent neural networks share a set of network weights. The advantage of weight sharing is that it reduces the number of network parameters, and at the same time, the two networks produce the same output for the same input, and there will be no situation where the same input has different outputs.

[0016] The two neural networks have the same structure; the neural network includes a first convolutional layer, a first maximum pooling layer, a second convolutional layer, a second maximum pooling layer and a fully connected layer connected in sequence. The convolutional layer can extract local features of the spectrum graph and expand the receptive field of the network to obtain highly recognizable features; the pooling layer can effectively reduce the number of network parameters and speed up network training; and finally the fully connected layer converts the two-dimensional features into one-dimensional features to facilitate the calculation of the similarity between features.

[0017] The loss function L(W) of the twin network is:

[0018]

[0019] Where W is the twin network parameter, N is the number of input logarithms, is the nth input, and are any two gesture samples, Yn for and Whether it is a label of the same type, if it is the same type, it is 0, otherwise it is 1; D(W,S n ) is the Euclidean distance of the two input features; m is the boundary constraint of the distance between samples of different classes, so that the distance between samples of different classes is limited to m. The advantage of this loss function is that when the input sample pairs belong to the same class (i.e., Y n =0), if and If the similarity between them is large, the loss function is also large, and vice versa; if they do not belong to the same category, then and The greater the similarity between samples, the smaller the loss function, and vice versa. Therefore, by optimizing the network through this loss function, the similarity of samples of the same type can be increased, and the similarity of samples of different types can be reduced, thereby improving the classification accuracy.

[0020] As an inventive concept, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory; the processor executes the computer program to implement the steps of the method of the present invention.

[0021] As an inventive concept, the present invention also provides a computer program product, including a computer program / instruction; when the computer program / instruction is executed by a processor, the steps of the method of the present invention are implemented.

[0022] As an inventive concept, the present invention also provides a computer-readable storage medium having a computer program / instruction stored thereon; the computer program / instruction, when executed by a processor, implements the steps of the method of the present invention.

[0023] Compared with the prior art, the present invention has the following beneficial effects: the RFID gesture recognition method based on small sample learning designed by the present invention obtains the phase value caused by the user's gesture through the RFID device, and expands the time domain feature vector to the time-frequency domain through short-time Fourier transform, and uses the twin network to recognize the user's gesture, thereby realizing high-accuracy RFID gesture recognition in the case of small samples. The method of the present invention can not only greatly reduce the training samples required for the recognition model and reduce the deployment cost of the wireless sensing system, but also achieves high recognition accuracy and is highly practical. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a flow chart of a method according to an embodiment of the present invention;

[0025] Figure 2 A schematic diagram of a twin network structure used in the method of the embodiment of the present invention;

[0026] Figure 3A gesture recognized by the method of an embodiment of the present invention;

[0027] Figure 4 Schematic diagram of comparison of results between the method of the embodiment of the present invention and four existing methods. DETAILED DESCRIPTION

[0028] The method of the embodiment of the present invention comprises the following steps:

[0029] S1. Use commercial RFID devices to obtain the phase sequence generated by user gestures.

[0030] S2. De-noise and normalize the phase sequence obtained in step 1, and identify the gesture type.

[0031] S3. Use short-time Fourier transform to transform the phase sequence obtained in step 2 to obtain the corresponding spectrum diagram.

[0032] S4. Use the spectrum corresponding to each gesture obtained in step 3 as a training sample, pair each training sample one by one to form a data pair, and obtain the data set of the twin network. Input the obtained data pair into the network for training to obtain the RFID gesture recognition model.

[0033] S5. Pair the gesture data to be recognized with the identified gesture data one by one, input them into the RFID gesture recognition model obtained in step S4, and recognize the gesture data using a template matching method.

[0034] The step S1 of obtaining the phase sequence generated by the user's gesture specifically involves collecting the phase data generated by the user's gesture through an Impinj Speedway R420 reader, a circularly polarized Laird S9028PCL antenna, and a Monza AZ-8654 passive RFID tag.

[0035] Step S2 is to denoise and normalize the phase sequence obtained in step 1. Specifically, the steps are as follows: using a Savitzky-Golay filter to filter the original phase data obtained in step S1 to filter out environmental noise; using the Min-Max normalization method to normalize the filtered phase sequence to make the signal fluctuation caused by the gesture more obvious.

[0036] In step S3, the denoised phase data obtained in step S2 is converted into a spectrum using short-time Fourier transform, which expands the data from the time domain to the time-frequency domain, thereby increasing the dimension of the feature. At the same time, the input of the twin network is generated using a data set generation strategy based on full permutation, specifically, for each gesture training sample, it is paired with other gesture training samples one by one to form a binary group, and the binary group constitutes the twin network input set.

[0037] In step S4, the spectrum obtained in step S3 is used to pair each training sample one by one. Specifically, each gesture training sample is paired with other gesture training samples one by one to form a tuple, and the tuple constitutes the twin network input set. The data is input into the network for training to obtain an RFID gesture recognition model.

[0038] Step S5 uses the RFID recognition model obtained in step S4 to pair the gesture samples to be recognized with the identified gesture samples one by one, input them into the RFID recognition model to obtain the corresponding feature vector, calculate the Euclidean distance between the feature vectors of the gesture samples to be recognized and the identified gesture samples, and classify the samples to be recognized into the category corresponding to the identified gesture samples with the shortest distance, that is, use the template matching method to recognize the gesture data.

[0039] The twin network is a network composed of two sub-neural networks with shared weights. The two sub-network structures can be the same or different. The twin network composed of different sub-networks is also called a pseudo-twin network, which is used to process two inputs with large differences. The present invention uses a twin network with two sub-networks of the same structure, specifically including two layers of two-dimensional convolutional layers, three layers of fully connected layers, and one layer of maximum pooling layer. The loss function of the training of the present invention uses a contrast loss function, which can make the intra-class distance of the same sample smaller and the inter-class distance between different samples larger. The contrast function is specifically:

[0040]

[0041] Where W is the twin network parameter, N is the number of input pairs, is the nth input. n for and Whether it is a label of the same type, if it is the same type, it is 0, otherwise it is 1. D(W,S n ) is the Euclidean distance between the two input features.

[0042] like Figure 1 The method flow chart of the method of the present invention is shown in FIG. The RFID gesture recognition method based on small sample learning provided by the present invention comprises the following steps:

[0043] S1. Use commercial RFID equipment to obtain the phase sequence generated by the user's gesture. Specifically, the phase data generated by the user's gesture is collected through the Impinj Speedway R420 reader, the circularly polarized Laird S9028PCL antenna and the Monza AZ-8654 passive RFID tag.

[0044] S2. De-noise and normalize the phase sequence obtained in step 1, and identify the gesture type. The specific steps are: use the Savitzky-Golay filter to filter the original phase data obtained in step S1 to filter the environmental noise; use the Min-Max normalization method to normalize the filtered phase sequence, so that the signal fluctuation caused by the gesture is more obvious. Finally, manually mark the collected data with gesture labels for recognition.

[0045] S3. Use short-time Fourier transform to transform the phase sequence obtained in step S2 to obtain a corresponding spectrum diagram.

[0046] S4. Use the spectrum obtained in step 3 to pair each training sample one by one to obtain the data set of the twin network. Input the data into the network for training to obtain the RFID gesture recognition model.

[0047] S5. Pair the gesture data to be recognized with the identified gesture data one by one, input them into the RFID gesture recognition model obtained in step S4, and recognize the gesture data using a template matching method.

[0048] The present invention is further described in detail below with reference to a practical case:

[0049] First, the user makes a gesture in the environment where the present invention is deployed, and the phase data generated by the user's gesture is collected through the Impinj Speedway R420 reader, the circularly polarized Laird S9028PCL antenna and the Monza AZ-8654 passive RFID tag. The present invention intends to recognize 18 common gestures, such as Figure 3 As shown:

[0050] Then, the collected raw phase data is filtered using a Savitzky-Golay filter, and the phase sequence is normalized to the [0,1] interval using the Min-Max normalization method, making the fluctuations caused by the user's gesture more obvious.

[0051] Then, the processed phase values ​​are converted into a spectrum using short-time Fourier transform. A window function is set at a specific position to traverse the phase sequence, and the phase sequence in the window function is Fourier transformed; after traversing a window function, the window function moves backward and continues to perform Fourier transform on the phase sequence in the window function until the entire phase sequence is traversed to obtain the final spectrum.

[0052] Next, for each training sample, pair it with other samples to obtain the input set of the twin network, and send the input set to the twin network for training using contrast loss.

[0053] Finally, for the sample to be tested, pair it with the training sample, input the obtained data set into the trained twin network to obtain the corresponding feature vector. Calculate the Euclidean distance between the feature vector of the sample to be tested and the feature vector of the training sample, and classify the sample to be tested into the category with the shortest average distance.

[0054] The RFID gesture recognition method based on small sample learning proposed in the present invention finally achieved an 88% recognition accuracy rate with one training sample, which is better than other gesture recognition methods. Figure 4 Compared with the traditional method of re-collecting data to train the model, the accuracy of the method of the present invention increased by 45 percentage points; compared with the gesture recognition method based on transfer learning commonly used in recent years, the accuracy of the method of the present invention increased by 34 percentage points.

[0055] It can be seen from actual cases that the method of the present invention can effectively reduce the amount of training samples required for the wireless sensing system, while the system can achieve higher recognition accuracy, high reliability, good practicality and effectiveness.

Claims

1. A RFID gesture recognition method, It is characterized in that The following steps are involved: S1, obtaining the phase sequence generated by the user's gesture; S2, preprocessing the phase sequence and identifying the gesture type; S3, obtaining a spectrum diagram of the preprocessed phase sequence; S4, taking the spectrum corresponding to each gesture as a training sample, pairing each training sample to obtain a twin network dataset; S5. Using the twin network data set to train the twin network to obtain an RFID gesture recognition model; S6, pairing the gesture samples to be recognized with the identified training samples one by one, using the paired data as the input of the RFID gesture recognition model, and recognizing the gesture samples by using a template matching method; The loss function L(W) of the twin network is: Where W is the twin network parameter, N is the number of input logarithms, is the nth input, and are any two gesture samples, Y n for and Whether it is a label of the same type, if it is the same type, it is 0, otherwise it is 1; D(W,S n ) is the Euclidean distance between two input features; m is the boundary constraint of the distance between gesture samples of different categories, so that the distance between samples of different categories is limited to m.

2. The RFID gesture recognition method according to claim 1, It is characterized in that In step S2, the specific implementation process of preprocessing the phase sequence includes: using a Savitzky-Golay filter to filter the phase sequence to filter out environmental noise; and normalizing the filtered phase sequence using a Min-Max normalization method to obtain a preprocessed phase sequence.

3. The RFID gesture recognition method according to claim 1, It is characterized in that In step S5, the twin network includes two weight-sharing neural networks.

4. The RFID gesture recognition method according to claim 3, It is characterized in that The two neural networks have the same structure; the neural network includes a first convolutional layer, a first maximum pooling layer, a second convolutional layer, a second maximum pooling layer and a fully connected layer which are connected in sequence.

5. A computer device comprising a memory, a processor and a computer program stored in the memory; It is characterized in that The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 4.

6. A computer program product comprising a computer program / instructions; It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program / instructions stored thereon; It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.