Gesture recognition method and device, storage medium and wearable equipment

By training the target gesture recognition model, the problem in the existing technology that the gesture recognition model is difficult to reuse between different users is solved, and more efficient recognition capabilities are achieved.

CN118567474APending Publication Date: 2024-08-30BEIJING GOERTEK TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410598442.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing gesture recognition models are difficult to reuse between different users, resulting in poor recognition capabilities.

Method used

By training the target gesture recognition model based on the signal similarity between the current user's historical EMG signals and the comprehensive EMG signals of different users, and using the model to identify the current user's EMG signals.

Benefits of technology

It realizes the reuse of gesture recognition models among different users and improves the recognition capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567474A
    Figure CN118567474A
Patent Text Reader

Abstract

The invention relates to the technical field of biological signal processing, and discloses a gesture recognition method and device, a storage medium and a wearable device.The method comprises the steps that based on the obtained signal similarity between historical electromyogram signals of a current user and comprehensive electromyogram signals of different users, a gesture recognition result is obtained based on the signal similarity between the historical electromyogram signals of the current user and the comprehensive electromyogram signals of the different users; training to obtain a target gesture recognition model corresponding to the current user; when gesture recognition is started, acquiring a gesture to be recognized made by a current user, and performing active section detection on an acquisition result to obtain a current electromyogram signal; and performing gesture recognition on the current electromyogram signal based on the target gesture recognition model. Compared with an existing gesture recognition model which is difficult to reuse, the target gesture recognition model corresponding to the current user can be obtained through training, gesture recognition is conducted on the current electromyogram signal of the current user through the target gesture recognition model, and therefore the gesture recognition model can be reused on different users, and the gesture recognition capacity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of biological signal processing technology, and in particular to a gesture recognition method, device, storage medium and wearable device. Background Art

[0002] Electromyography (EMG) signals are electrophysiological signals generated by muscle tissue during contraction, which reflect the level of muscle activity and the state of neuromuscular function. Currently, many gesture recognition systems use surface electromyography (sEMG) signals to recognize a variety of micro gestures.

[0003] In the prior art, gesture recognition is generally performed directly on the collected EMG signals through a trained gesture recognition model. However, due to differences in physical conditions, muscle strength, and movement habits of different users, the EMG signals generated when the same action is performed by different users are also different, which leads to serious non-reusability of the trained gesture recognition model. That is, the gesture recognition model trained on one user is difficult to reuse on other users, resulting in poor gesture recognition ability. Summary of the invention

[0004] The main purpose of the present application is to provide a gesture recognition method, apparatus, storage medium and wearable device, aiming to solve the technical problem that the existing gesture recognition model trained on one user is difficult to reuse on other users.

[0005] To achieve the above object, the present application provides a gesture recognition method, the method comprising:

[0006] Based on the acquired signal similarity between the historical electromyography signal of the current user and the comprehensive electromyography signals of different users, a target gesture recognition model corresponding to the current user is trained;

[0007] When the gesture recognition is started, the gesture to be recognized made by the current user is collected, and the activity segment detection is performed on the collected results to obtain the current electromyography signal;

[0008] Perform gesture recognition on the current electromyography signal based on the target gesture recognition model.

[0009] In one embodiment, the step of training a target gesture recognition model corresponding to the current user based on the acquired historical electromyography signal of the current user and the signal similarity between the comprehensive electromyography signals of different users includes:

[0010] Acquire a historical electromyogram signal of the current user, and determine a signal similarity between the historical electromyogram signal and comprehensive electromyogram signals of different users;

[0011] Selecting a label electromyogram signal corresponding to the current user from the comprehensive electromyogram signal based on the similarity of each signal;

[0012] An initial gesture recognition model is trained using the label electromyography signal and the historical electromyography signal to obtain a target gesture recognition model corresponding to the current user.

[0013] In one embodiment, the step of training the initial gesture recognition model by using the label electromyography signal and the historical electromyography signal to obtain the target gesture recognition model corresponding to the current user includes:

[0014] Performing feature extraction on the label electromyography signal to obtain a source domain intermediate feature vector, and performing feature extraction on the historical electromyography signal to obtain a target domain intermediate feature vector;

[0015] Determining a source domain gesture category probability based on the source domain intermediate feature vector, and determining a main target domain gesture category probability based on the target domain intermediate feature vector;

[0016] Constructing a round of training loss function according to the source domain intermediate feature vector, the target domain intermediate feature vector, the source domain gesture category probability and the main target domain gesture category probability;

[0017] The initial gesture recognition model is trained through the one-round training loss function to obtain a target gesture recognition model corresponding to the current user.

[0018] In one embodiment, the step of constructing a round of training loss function according to the source domain intermediate feature vector, the target domain intermediate feature vector, the source domain gesture category probability and the main target domain gesture category probability includes:

[0019] Constructing a joint maximum mean difference loss function according to the source domain intermediate feature vector and the target domain intermediate feature vector;

[0020] A first cross entropy loss function is constructed by using the source domain gesture category probability, and a minimum class confusion loss function is constructed by using the main target domain gesture category probability;

[0021] A round of training loss function is constructed based on the joint maximum mean difference loss function, the first cross entropy loss function and the minimum class confusion loss function.

[0022] In one embodiment, the joint maximum mean difference loss function is:

[0023]

[0024] Among them, S is the source domain, T is the target domain, and L JMMD (S, T) is the joint maximum mean difference loss function, n s is the number of source domains, n t is the number of target domains, k(,) is the kernel function, is the ith intermediate feature vector of the source domain, is the jth intermediate feature vector of the source domain, is the intermediate feature vector of the i-th target domain, is the jth intermediate feature vector of the target domain, L is the number of fully connected layers, and l is the current fully connected layer.

[0025] In one embodiment, the step of constructing a minimum class confusion loss function using the main target domain gesture category probability comprises:

[0026] Probability adjustment is performed on the main target domain gesture category probability, and re-weighting is performed on the adjusted main target domain gesture category probability;

[0027] The re-weighted main target domain gesture category probabilities are subjected to class correlation reduction operations, and the minimum class confusion loss function is constructed based on the operation results.

[0028] In one embodiment, the loss function for one round of training is:

[0029] Loss1=L CE (S)+αL JMMD (S,T)+βL MCC (T);

[0030] Among them, Loss1 is the loss function of the training round, L CE (S) is the first cross entropy loss function, L JMMD (S, T) is the joint maximum mean difference loss function, L MCC (T) is the minimum class confusion loss function, α is the first preset weight parameter, and β is the second preset weight parameter.

[0031] In one embodiment, the step of training the initial gesture recognition model through the one round of training loss function to obtain the target gesture recognition model corresponding to the current user includes:

[0032] Performing a confidence check on the main target domain gesture category probability to obtain a target domain pseudo label, and determining an auxiliary target domain gesture category probability based on the target domain intermediate feature vector;

[0033] Constructing a second cross entropy loss function according to the target domain pseudo label and the auxiliary target domain gesture category probability, and using the second cross entropy loss function as a second round training loss function;

[0034] The initial gesture recognition model is trained once using the one-round training loss function, and the trained initial gesture recognition model is trained twice using the two-round training loss function to obtain a target gesture recognition model corresponding to the current user.

[0035] In one embodiment, the two-round training loss function is:

[0036]

[0037] Among them, Loss2 is the loss function of the second round of training, T is the target domain, L CE (T) is the second cross entropy loss function, C is the number of gesture categories, y t1,i is the target domain pseudo label corresponding to the i-th gesture category, P t2,i is the auxiliary target domain gesture category probability corresponding to the i-th gesture category.

[0038] In one embodiment, after the step of performing gesture recognition on the current electromyography signal based on the target gesture recognition model, the method further includes:

[0039] Updating the historical electromyography signal of the current user based on the current electromyography signal;

[0040] Training the target gesture recognition model according to the signal similarity between the updated historical electromyography signal and the integrated electromyography signals of the different users;

[0041] When gesture recognition is started next time, gesture recognition is performed on the next gesture to be recognized made by the current user through the trained target gesture recognition model.

[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a gesture recognition device, the device comprising:

[0043] A model training module, used for training a target gesture recognition model corresponding to the current user based on the signal similarity between the acquired historical electromyography signal of the current user and the comprehensive electromyography signals of different users;

[0044] The gesture collection module is used to collect the gesture to be recognized made by the current user when the gesture recognition is started, and perform activity segment detection on the collection result to obtain the current electromyography signal;

[0045] A gesture recognition module is used to perform gesture recognition on the current electromyography signal based on the target gesture recognition model.

[0046] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, on which a gesture recognition program is stored, and when the gesture recognition program is executed by a processor, the gesture recognition method as described above is implemented.

[0047] In addition, to achieve the above-mentioned purpose, the present application also proposes a wearable device, which includes: a memory, a processor, and a gesture recognition program stored in the memory and executable on the processor, and when the gesture recognition program is executed by the processor, the gesture recognition method described above is implemented.

[0048] The present application provides a gesture recognition method, apparatus, storage medium and wearable device, the method comprising: training a target gesture recognition model corresponding to the current user based on the signal similarity between the acquired historical electromyogram signal of the current user and the comprehensive electromyogram signals of different users; when the gesture recognition is started, collecting the gesture to be recognized made by the current user, and performing activity segment detection on the collected result to obtain the current electromyogram signal; and performing gesture recognition on the current electromyogram signal based on the target gesture recognition model.

[0049] Since the present application can first train and obtain the target gesture recognition model corresponding to the current user based on the signal similarity between the historical electromyogram signal of the current user and the integrated electromyogram signals of different users, and then when the gesture recognition is started, the gesture to be recognized made by the current user is collected and the activity segment is detected to obtain the current electromyogram signal, and the current electromyogram signal is gesture recognized based on the target gesture recognition model corresponding to the current user. Compared with the existing gesture recognition model trained on one user, which is difficult to reuse on other users, the present application can train and obtain the target gesture recognition model corresponding to the current user based on the signal similarity between the integrated electromyogram signals of different users and the historical electromyogram signals of the current user, and then perform gesture recognition on the current electromyogram signal of the current user through the target gesture recognition model, so that the gesture recognition model can be reused on different users, improving the gesture recognition capability. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0052] Figure 1 A schematic diagram of the structure of a wearable device in the hardware operating environment involved in the embodiment of the present application;

[0053] Figure 2 This is a flow chart of the first embodiment of the gesture recognition method of the present application;

[0054] Figure 3 This is a schematic diagram of the preprocessing process in the first embodiment of the gesture recognition method of the present application;

[0055] Figure 4 This is a schematic diagram of the gesture recognition system framework in the first embodiment of the gesture recognition method of this application;

[0056] Figure 5 A schematic diagram of the process of constructing a multi-source domain data set in the first embodiment of the gesture recognition method of the present application;

[0057] Figure 6 This is a flow chart of unsupervised domain adaptive training in the first embodiment of the gesture recognition method of the present application;

[0058] Figure 7 This is a schematic diagram of the gesture recognition system framework in the first embodiment of the gesture recognition method of this application;

[0059] Figure 8 This is a flow chart of the second embodiment of the gesture recognition method of the present application;

[0060] Fig. 9 This is a schematic diagram of the architecture of a feature extractor in the second embodiment of the gesture recognition method of the present application;

[0061] Fig.10 This is a flowchart of a third embodiment of the gesture recognition method of the present application;

[0062] Fig.11 This is a comparison chart of the accuracy of gesture recognition achieved by this method and other methods;

[0063] Fig.12 Schematic diagram of the comparison of the accuracy of five-gesture classification and three-gesture classification between this method and the baseline method under 8 channels and 3 channels;

[0064] Fig.13 This is a structural block diagram of the first embodiment of the gesture recognition device of the present application.

[0065] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0066] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0067] Reference Figure 1 , Figure 1 A schematic diagram of the wearable device structure of the hardware operating environment involved in the embodiment of the present application.

[0068] like Figure 1 As shown, the wearable device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in this application. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable memory (Non-volatile Memory, NVM), such as a disk storage. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0069] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the wearable device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0070] like Figure 1 As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a gesture recognition program.

[0071] exist Figure 1 In the wearable device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the wearable device calls the gesture recognition program stored in the memory 1005 through the processor 1001, and executes the gesture recognition method provided in the embodiment of the present application.

[0072] It should be noted that electromyography (EMG) signals are electrophysiological signals generated by muscle tissue during contraction, which reflect the level of muscle activity and the state of neuromuscular function. Currently, many gesture recognition systems use surface electromyography (sEMG) signals to recognize a variety of micro gestures.

[0073] In the prior art, gesture recognition is generally performed directly on the collected EMG signals through a trained gesture recognition model. However, due to differences in physical conditions, muscle strength, and movement habits of different users, the EMG signals generated when the same action is performed by different users are also different, which leads to serious non-reusability of the trained gesture recognition model. That is, the gesture recognition model trained on one user is difficult to reuse on other users, resulting in poor gesture recognition ability.

[0074] In order to solve the above defects, this embodiment provides a gesture recognition method, which can first train a target gesture recognition model corresponding to the current user based on the signal similarity between the historical electromyogram signal of the current user and the comprehensive electromyogram signals of different users, and then when the gesture recognition is started, the gesture to be recognized made by the current user is collected and the activity segment is detected to obtain the current electromyogram signal, and the current electromyogram signal is gesture recognized based on the target gesture recognition model corresponding to the current user. Compared with the existing gesture recognition model trained on one user, which is difficult to reuse on other users, this embodiment can train the target gesture recognition model corresponding to the current user based on the signal similarity between the comprehensive electromyogram signals of different users and the historical electromyogram signal of the current user, and then perform gesture recognition on the current electromyogram signal of the current user through the target gesture recognition model, so that the gesture recognition model can be reused on different users, thereby improving the gesture recognition capability.

[0075] For ease of understanding, the following combination Figures 2 to 13 The gesture recognition method provided in the embodiment of the present application is specifically introduced.

[0076] Reference Figure 2 , Figure 2 This is a flow chart of the first embodiment of the gesture recognition method of the present application. The first embodiment of the gesture recognition method of the present application is proposed. Figure 2 As shown, in this embodiment, the specific method includes:

[0077] Step S10: Based on the acquired historical electromyography signal of the current user and the signal similarity between the comprehensive electromyography signals of different users, a target gesture recognition model corresponding to the current user is trained.

[0078] It is understandable that the method of this embodiment can be applied to a wearable device, wherein the wearable device can be an edge device such as a smart wristband or a smart bracelet that can be worn on a user, or other wearable devices, and this embodiment does not limit this. The execution subject of the method of this embodiment can adopt the above-mentioned wearable device (referred to as the device), and this device is used as an example to illustrate this embodiment and the following embodiments.

[0079] It should be noted that the above historical EMG signal is the EMG signal corresponding to the gesture to be recognized made by the current user before. The above gesture to be recognized can be any gesture that realizes human-computer interaction, and this embodiment does not limit this. In this embodiment, a number of sensors may be provided in the above device for collecting gestures to be recognized made by the user, and a target domain data queue may be provided in the above device for storing the collected EMG signals as the above historical EMG signals.

[0080] In actual use, when the user makes a gesture to be recognized, the above-mentioned device can collect it through the sensor, obtain an EMG signal about the gesture to be recognized as the collection result and store it in the above-mentioned target domain data queue.

[0081] Furthermore, considering that when the user makes the gesture to be recognized, there may be static segments and action segments in the collected signal, and when the gesture is subsequently recognized, it can be recognized only based on the action segments. Therefore, in order to reduce the subsequent calculation amount, the above-mentioned device can perform activity segment detection through a preset activity segment detection algorithm (for example, a threshold-based activity segment detection method) after obtaining the collection results, and filter out the signal corresponding to the action segment from the collection results as the above-mentioned current electromyography signal.

[0082] Furthermore, considering that there may be interference such as noise in the collection results, the above-mentioned device may perform preprocessing operations on the collection results after obtaining the collection results, wherein the preprocessing operations may include but are not limited to outlier repair and filtering operations.

[0083] Specifically, refer to Figure 3 , Figure 3 This is a schematic diagram of the preprocessing process in the first embodiment of the gesture recognition method of this application. Figure 3 As shown in the figure, due to factors such as poor contact or external disturbance of the sensor, there may be abnormally high and abnormally low sampling points in the acquisition results, and then the above-mentioned device can determine whether the signal amplitude of each sampling point is higher than the corresponding preset threshold or lower than the corresponding preset threshold. If so, it can be determined as abnormal, and then it can be repaired by using the mean difference method (i.e. Figure 3 outlier detection fix);

[0084] After the repair is completed, in order to eliminate the noise interference of other frequency bands, the above device can use a bandpass filter and set a preset frequency band, and then filter the repaired acquisition results through the bandpass filter to filter out the noise interference of other frequency bands except the preset frequency band to complete the filtering operation. The above preset frequency band can be selected from 20-500Hz (i.e. Figure 3 Of course, it can also be other frequency bands, which is not limited in this embodiment.

[0085] After filtering is completed, the above device can detect the active segment (i.e. Figure 3 At the same time, in order to facilitate subsequent processing, the above-mentioned device can extract features by mathematical statistics after performing activity segment detection (i.e. Figure 3 Feature extraction) extracts the time domain and frequency domain features of the current electromyography signal, which may specifically include but are not limited to at least one of the root mean square, average absolute value, zero crossing rate or wavelength of the current electromyography signal, and this embodiment is not limited to this.

[0086] In a specific implementation, the above-mentioned device can collect each gesture to be recognized made by the current user before, and perform operations such as outlier repair, filtering, and activity segment detection on the collected results to obtain historical electromyography signals.

[0087] It should be understood that the above-mentioned comprehensive electromyography signal can be the electromyography signal corresponding to different users making gestures collected in advance by the above-mentioned device; since this embodiment subsequently adopts the unsupervised domain adaptive training method in transfer learning, where transfer learning is to transfer the knowledge learned in one field (source domain) to another field (target domain) for application, it is necessary to pre-construct a multi-source domain data set as a reference for training the gesture recognition model corresponding to the current user, and the above-mentioned comprehensive electromyography signal can be stored in the above-mentioned multi-source domain data set.

[0088] It should also be noted that the target gesture recognition model can be a model obtained after training the initial gesture recognition model, wherein the initial gesture recognition model can be a pre-built untrained gesture recognition model, but in order to make the trained gesture recognition model more and more effective, the initial gesture recognition model in this embodiment can be a model obtained in the last training. Therefore, the above-mentioned device can directly train the gesture recognition model used last time to obtain the target gesture recognition model. The specific training process is the above-mentioned step S10, including:

[0089] Step S11: Acquire the historical electromyogram signal of the current user, and determine the signal similarity between the historical electromyogram signal and the comprehensive electromyogram signals of different users.

[0090] In order to make the historical electromyogram signals stored in the target domain data queue consistent with the latest status of the current user, exemplarily, when the above-mentioned device collects the electromyogram signal of the current user, the obtained electromyogram signal can be stored in the target domain data queue, and it is determined whether the number of signals stored in the target data queue reaches the preset storage upper limit; if not, the latest electromyogram signal can be stored at the tail of the target domain data queue; if reached, the electromyogram signal at the head of the target domain data queue can be deleted, that is, the electromyogram signal with the longest time span from the latest electromyogram signal can be deleted, and the latest electromyogram signal can be stored at the tail of the target domain data queue as the above-mentioned historical electromyogram signal.

[0091] It should be emphasized that the above-mentioned device can store each electromyography signal obtained into the target domain data queue in the above-mentioned manner, so that the data stored in the target domain data queue conforms to the latest status of the current user.

[0092] It should be understood that when the above device performs the training process, the signal similarity between the historical electromyogram signal and the integrated electromyogram signal of different users can be determined first; for the integrated electromyogram signal, refer to Figure 4 and Figure 5 , Figure 4 This is a schematic diagram of the gesture recognition system framework in the first embodiment of the gesture recognition method of this application. Figure 5 FIG. 1 is a flow chart of constructing a multi-source domain data set in the first embodiment of the gesture recognition method of the present application. Figure 4 and Figure 5 As shown, the above device can recruit N subjects in advance according to the needs of gesture recognition to collect corresponding gesture actions (i.e. Figure 4 Recruit multiple subjects to collect labeled gesture data; that is, Figure 5 In the source domain multi-person dataset (according to the gesture action requirements, a labeled dataset of N people is collected), in order to improve the quality of subsequent training, the subjects can try to cover users of different age groups, different genders, and different elevated weights, and the number of subjects can be as large as possible. Then, the electromyography signal collected from each subject can be used to generate a corresponding source domain dataset, and then N subjects can generate N source domain datasets, and then the N source domain datasets together constitute the above-mentioned multi-source domain data set.

[0093] Furthermore, in order to improve the quality of the source domain data set, in this embodiment, each source domain data set may be preprocessed, which may include but is not limited to bandpass filtering, data cleaning, and feature extraction operations (i.e. Figure 5 The data is processed (filtering, cleaning, feature extraction, etc. of the data set) to obtain a standardized source domain data set. The specific preprocessing process is not limited in this embodiment.

[0094] Then the above device can perform quality assessment on each source domain data set. This is because the source domain data set is used as a reference for gesture recognition model learning, and its data quality may greatly affect the transfer learning effect on the target domain. In this embodiment, the above quality assessment may include checking at least one of the quality, signal-to-noise ratio, signal fluctuation, and loss rate of the electromyography signal; specifically, a corresponding quality assessment parameter threshold may be set for each item; if the relevant parameters of the data in the source domain data set meet the corresponding quality assessment parameter threshold, it can be indicated that the data meets the quality assessment requirements and is retained; if not, the data is removed (i.e. Figure 5 Data quality identification (identify the quality of the data set collected by each person and remove low-quality data sets)).

[0095] In addition, it should be emphasized that this embodiment can also perform self-tests on the source domain data set of each subject, specifically, the effect of gesture recognition classification of the data in the source domain data set of the subject can be verified by K-fold cross-validation. If the accuracy of the data self-test is lower than a certain threshold, the data will also be judged as unqualified and need to be removed.

[0096] After the self-test, the remaining source domain datasets can be stored to obtain multi-source domain datasets. Of course, if the training process is completed for the server, the remaining source domain datasets after the self-test can be uploaded to the server (i.e. Figure 4 Cloud storage, source domain dataset: labeled data of multiple reference users; that is, Figure 5 Cloud storage (upload the labeled dataset that meets the standards to the cloud storage to form a multi-source domain dataset).

[0097] After obtaining the multi-source domain data set, the signal similarity between the historical electromyography signal of the current user and the integrated electromyography signal therein may be calculated, wherein the signal similarity may be determined by using a Maximum Mean Discrepancy (MMD) method.

[0098] Reference Figure 6 , Figure 6 Schematic diagram of the process of unsupervised domain adaptive training in the first embodiment of the gesture recognition method of the present application. Figure 6 As shown, the comprehensive electromyographic signal (source domain) in the multi-source domain data set can be determined (i.e. Figure 6 The source domain dataset in the front of the cloud) and the historical EMG signal of the current user (target domain) (i.e. Figure 6 The signal similarity (domain difference) between the target domain unlabeled dataset (i.e. Figure 4 and Figure 6 MMD domain similarity comparison).

[0099] In this embodiment, different kernel functions can be used to define the distribution distance between the comprehensive electromyography signal and the historical electromyography signal through the above-mentioned MMD method to measure the distribution difference between the two, which can be specifically achieved by the following formula 1:

[0100]

[0101] Among them, the above S is the source domain (i.e. the above comprehensive EMG signal), T is the target domain (i.e. the above historical EMG signal), and D mmd (S, T) is the signal similarity between the source domain and the target domain, n s is the number of source domains, n t is the number of target domains, k(,) is the kernel function, which can be Gaussian kernel function or exponential kernel function, is the i-th intermediate vector in the source domain, is the jth intermediate vector in the source domain, is the i-th intermediate vector in the target domain, is the jth intermediate vector in the target domain. In this embodiment, calculations are all performed based on vectors, that is, the signals in the source domain and the target domain are first converted into vectors and then calculated.

[0102] Step S12: selecting a label electromyogram signal corresponding to the current user from the comprehensive electromyogram signal based on the similarity of each signal.

[0103] The above-mentioned label electromyogram signal can be a signal in the comprehensive electromyogram signal that is similar to the historical electromyogram signal of the current user. It should be noted that D mmd = 0, the larger the distribution difference between the source domain and the target domain, the larger the mmd After obtaining the signal similarity between the source domain and the target domain through the above formula 1, in order to avoid a large gap between the source domain and the target domain, this embodiment can adopt a threshold setting strategy, that is, when the signal similarity is lower than a certain preset threshold, the target domain can be judged to be suitable, and the comprehensive electromyography signal in the target domain is used as the label electromyography signal of the current user. The specific preset threshold is not limited in this embodiment;

[0104] As another implementation method, this embodiment can also sort the similarities of each signal from small to large or from large to small, and select K target domains in order from small to large, and use the comprehensive electromyography signals in these target domains as the label electromyography signals of the current user. The specific value of K is not limited in this embodiment.

[0105] Step S13: training the initial gesture recognition model using the label electromyography signal and the historical electromyography signal to obtain a target gesture recognition model corresponding to the current user.

[0106] After obtaining the label EMG signal, the calibrated source domain dataset of the current user (i.e. Figure 4 The source domain has labeled data; that is, Figure 6 The labeled EMG signal in the calibrated source domain dataset can be considered as the EMG signal that best matches the current user among all the comprehensive EMG signals. Figure 4 There is no labeled data in the target domain; that is, Figure 6 The target domain unlabeled dataset) and the labeled EMG signal in the calibrated source domain dataset are used to train the current initial gesture recognition model of the device (i.e. Figure 4 Unsupervised adaptive algorithm in the algorithm), obtain the target gesture recognition model, and then use the target gesture recognition model to perform gesture recognition on the current electromyography signal.

[0107] It should be understood that the above device can train the initial gesture recognition model according to the electromyography signal in the target domain data queue by the device itself, but because the processing capacity of the device itself may be limited, the above device can also upload the target domain data queue to the server (i.e. Figure 4 and Figure 5 The training operation is completed by the server, that is, the server stores the initial gesture recognition model, the initial gesture recognition model is trained by the server, and the target gesture recognition model obtained after the training is transmitted back to the above-mentioned device. This embodiment uses the above-mentioned device to complete the training for illustration, but is not limited to this.

[0108] As another implementation manner, the server may transmit the model parameters corresponding to the target gesture recognition model obtained after training back to the above device to update the gesture recognition model stored in the above device.

[0109] Step S20: When the gesture recognition is started, the gesture to be recognized made by the current user is collected, and the activity segment detection is performed on the collected results to obtain the current electromyography signal.

[0110] It should be noted that when performing this gesture recognition, the above-mentioned device can collect the gesture to be recognized made by the current user, and pre-process the collected results using the above-mentioned preprocessing method, and then perform activity segment detection to obtain the current electromyography signal corresponding to the gesture to be recognized.

[0111] Step S30: performing gesture recognition on the current electromyography signal based on the target gesture recognition model.

[0112] It is understandable that since the target gesture recognition model at this time is obtained based on the historical EMG signal of the current user and the comprehensive EMG signal training of different users, when the current EMG signal is gesture recognized by the target gesture recognition model, the gesture recognition model can be reused on the current user to improve the gesture recognition capability.

[0113] Furthermore, in order to make the target gesture recognition model more and more consistent with the user, in this embodiment, after the above step S30, it also includes:

[0114] Step S40: updating the historical electromyography signal of the current user based on the current electromyography signal.

[0115] It should be noted that, after obtaining the current electromyography signal of the current user, the above-mentioned device can also store it in the target domain data queue to update the historical electromyography signal stored therein.

[0116] For ease of understanding, refer to Figure 4 and Figure 7 , Figure 7 Schematic diagram of the gesture recognition system framework in the first embodiment of the gesture recognition method of the present application. Figure 4 and Figure 7 As shown, after the above device collects the electromyography signal of the current user, while performing gesture recognition on the electromyography signal through the currently stored gesture recognition model, it can also store it in the target domain data queue (i.e. Figure 4 In the edge device, the target domain data queue: stores local recent user action data; that is, Figure 7 Get user action data, input and update the target domain data queue), and upload it to the server (i.e. Figure 7 Upload the queue data to the cloud), and clear the target domain data queue after uploading for next storage.

[0117] Furthermore, considering that uploading a new target domain data queue to the server for training once it is obtained may not result in a very obvious effect, in this embodiment, the device can adjust the upload frequency of the target domain data queue according to the current user's usage (i.e. Figure 4 Regularly upload according to user usage; that is, Figure 7 According to user usage, queue data is uploaded to the cloud regularly);

[0118] For example, if the current user is using the device for the first time, the recognition capability of the initial gesture recognition model previously stored in the device is poor, and the device may set a higher upload frequency, for example, the current user uploads the latest target domain data queue after every 10 to 20 actions, so that the server can perform training according to the received target domain data queue (i.e. Figure 7The cloud performs unsupervised domain adaptive training and updates the model parameters), and transmits the trained target gesture recognition model or the corresponding model parameters back to the above device to update the current gesture recognition model in the device (i.e. Figure 7 After the current user has used the device for a period of time, the device can be used stably, thereby reducing the frequency of uploading. For example, the latest target domain data queue is uploaded to the server every 1 to 2 weeks, and the server then returns the trained target gesture recognition model or model parameters to update the current gesture recognition model in the device.

[0119] Step S50: training the target gesture recognition model according to the signal similarity between the updated historical electromyogram signal and the integrated electromyogram signals of different users.

[0120] Then, the above method can be used to take the updated historical EMG signal as the target domain, calculate the signal similarity with the source domain, obtain a new label EMG signal, and train the target gesture recognition model. The new label EMG signal can better match the latest status of the current user.

[0121] In the above manner, when the server receives the latest target domain data queue, it can train the current target gesture recognition model, obtain the trained gesture recognition model, and transmit it back to the above device as the latest target gesture recognition model. The device can then update the currently stored gesture recognition model through the received target gesture recognition model. This can make the gesture recognition model in the device more and more adapted to the current user (i.e., the current user) (i.e., Figure 4 Update the model parameters of edge devices in the process to achieve better performance with more use).

[0122] Similarly, if the training is completed by the above-mentioned device itself, the above-mentioned upload frequency can be used as the training frequency of the device. When the user uses it for the first time, the training frequency of the currently stored gesture recognition model can be set higher through the latest target domain data queue. When the user's use is stable, the training frequency can be set lower. The specific frequency can be set according to the actual situation, and this embodiment does not limit this.

[0123] Step S60: When the gesture recognition is started next time, the next gesture to be recognized made by the current user is gesture recognized by using the trained target gesture recognition model.

[0124] It is understandable that the next gesture to be recognized is the next gesture to be recognized by the current user. After obtaining the updated target gesture recognition model, when the next gesture recognition is started, the next gesture to be recognized by the user can be directly recognized by the trained target gesture recognition model. Since the selected label electromyogram signal is more and more consistent with the current user, the recognition accuracy of the trained target gesture recognition model can be made higher and higher with accumulation.

[0125] It should also be emphasized that, since the present embodiment selects a part of the comprehensive electromyographic signal as the label electromyographic signal for training, the gesture recognition model can be trained with a smaller number of parameters without affecting the accuracy.

[0126] This embodiment can first train a target gesture recognition model corresponding to the current user based on the signal similarity between the historical electromyogram signal of the current user and the integrated electromyogram signals of different users, and then when the gesture recognition is started, the gesture to be recognized made by the current user is collected and the activity segment is detected to obtain the current electromyogram signal, and the current electromyogram signal is gesture recognized based on the target gesture recognition model corresponding to the current user. Compared with the existing gesture recognition model trained on one user, which is difficult to reuse on other users, this embodiment can train a target gesture recognition model corresponding to the current user based on the signal similarity between the integrated electromyogram signals of different users and the historical electromyogram signal of the current user, and then perform gesture recognition on the current electromyogram signal of the current user through the target gesture recognition model, so that the gesture recognition model can be reused on different users, improving the gesture recognition capability.

[0127] At the same time, after performing gesture recognition on the current EMG signal, the above-mentioned device can also update the historical EMG signal based on the current EMG signal, and reselect the EMG signal that meets the requirements from the comprehensive EMG signal based on the updated historical EMG signal to update the label EMG signal, and then train the target gesture recognition model currently stored in the device through the updated label EMG signal and the updated historical EMG signal, and then when the gesture to be recognized is subsequently collected, the gesture recognition can be directly performed through the trained target gesture recognition model, so that the accuracy of subsequent gesture recognition is getting higher and higher, and rapid adaptation without user perception is achieved.

[0128] In addition, systems such as prosthetic limbs, which are also based on EMG signals, are usually dedicated to one person and can be used across users through the above solution.

[0129] Reference Figure 8 , Figure 8This is a flow chart of the second embodiment of the gesture recognition method of the present application. Based on the above-mentioned first embodiment, the second embodiment of the gesture recognition method of the present application is proposed.

[0130] like Figure 8 As shown, in this embodiment, in order to implement unsupervised adaptive training, the above step S13 includes:

[0131] Step S131: extract features from the label electromyography signal to obtain a source domain intermediate feature vector, and extract features from the historical electromyography signal to obtain a target domain intermediate feature vector.

[0132] Continue to combine Figure 6 To illustrate, in this embodiment, after obtaining the label electromyography signal, the above-mentioned device can respectively extract features of the label electromyography signal and the historical electromyography signal, specifically, respectively through a feature extractor with a shared parameter (i.e. Figure 6 The feature extractor in Figure 6 The feature extractors used for the source domain and target domain data share parameters during the training process), and the intermediate feature vectors of the source domain and the intermediate feature vectors of the target domain can be obtained respectively.

[0133] Specifically, the architecture of the feature extractor can be referred to Fig. 9 , Fig. 9 FIG. 1 is a schematic diagram of the architecture of a feature extractor in the second embodiment of the gesture recognition method of the present application. Fig. 9 As shown in the figure, both the label EMG signal and the historical EMG signal can be used as EMG action data (i.e. Fig. 9 Multi-channel EMG motion data), reshape it (i.e. Fig. 9 Reshape) to adjust the vector dimension, and then pass through the convolution structure with x channels and n convolution kernels (i.e. Fig. 9 In this convolution structure, the convolutional layers can be sequentially passed through two-dimensional convolutional layers (i.e. Fig. 9 Conv2D), two-dimensional pooling layer (i.e. Fig. 9 Pool2D), batch normalization (i.e. Fig. 9 BatchNormalization) and activation function (i.e. Fig. 9 ReLU), and then output to the flattening layer (i.e. Fig. 9 Flatten) flattens the multi-dimensional feature map into a one-dimensional vector;

[0134] At the same time, the EMG motion data can be used for feature calculation (i.e. Fig. 9Features Calculation) calculates the corresponding time domain and frequency domain features. Specific features may include but are not limited to zero-crossing rate and wavelength, and then through the dimension x of the feature vector, the number of neurons in the output layer is n, and the fully connected network (i.e. Fig. 9 In the fully connected network, three fully connected layers can be set (i.e. Fig. 9 (Fully Connection);

[0135] The outputs of the flattened layer and the fully connected layer can then be concatenated together (i.e. Fig. 9 Concate), and finally get the intermediate feature vector Z of the source domain s1 Or the target domain intermediate vector Z t1 (Right now Fig. 9 eigenvector z).

[0136] After obtaining the source domain feature vector Z s1 And the target domain feature vector Z t1 Then continue to combine Figure 6 , the source domain feature vector and the target domain feature vector can be respectively passed through N fully connected network layers with shared parameters (i.e. Figure 6 FC1...FCn; that is Figure 7 FC1-FCn share parameters during training) and obtain N groups of different source domain intermediate feature vectors Z s2 ...Z sn And N different sets of target domain intermediate feature vectors Z t2 ...Z tn .

[0137] Step S132: Determine the source domain gesture category probability based on the source domain intermediate feature vector, and determine the main target domain gesture category probability based on the target domain intermediate feature vector.

[0138] In obtaining the intermediate eigenvector Z in the source domain sn And the target domain intermediate feature vector Z tn After that, the corresponding source domain gesture category probability and the main target domain gesture category probability (i.e. Figure 6 The output layer a in the training process shares parameters), where the source domain gesture category probability is the probability of each type of gesture category corresponding to the label EMG signal, the probability of the gesture category in the main target domain is the probability of each type of gesture category corresponding to the historical EMG signal; specifically, the source domain intermediate feature vector Z sn Through the output layer a (i.e. Figure 6 The output layer a) obtains the source domain gesture category probability The intermediate feature vector Z of the target domain tnIt can also be achieved through the output layer a (i.e. Figure 6 The output layer a) obtains the probability of gesture category in the main target domain

[0139]

[0140] Step S133: construct a round of training loss function according to the source domain intermediate feature vector, the target domain intermediate feature vector, the source domain gesture category probability and the main target domain gesture category probability.

[0141] It is understandable that the above-mentioned one-round training loss function may be a loss function required for training the initial gesture recognition model. In this embodiment, the above-mentioned device may use the joint maximum mean difference (Joint Maximum Mean Discrepancy, JMMD) to align the joint distribution of the specific feature extraction layer between the source domain and the target domain; and use the minimum class confusion strategy (Minimum Class Confusion, MCC) to correct the prediction results of the target domain data to reduce the confusion of similar categories. The specific process is that the above-mentioned step S133 includes:

[0142] Step S1331: construct a joint maximum mean difference loss function based on the source domain intermediate feature vector and the target domain intermediate feature vector.

[0143] Continue as Figure 6 As shown in the figure, after obtaining N groups of source domain intermediate feature vectors and N groups of target domain intermediate feature vectors, the joint distribution of domain features can be obtained by calculating the outer product of the output features of multiple network layers, thereby achieving unsupervised adaptation. Compared with MMD, JMMD can achieve a more stable domain alignment effect and more stable performance. The construction process can be implemented according to the following formula 2:

[0144]

[0145] Among them, S is the source domain, T is the target domain, and L JMMD (S, T) is the above joint maximum mean difference loss function (i.e. Figure 6 JMMD), n s is the number of source domains, n t is the number of target domains, k(,) is the kernel function, which can be Gaussian kernel function or exponential kernel function, is the i-th intermediate vector in the source domain (i.e., the i-th source domain intermediate feature vector), is the jth intermediate vector in the source domain (i.e., the jth source domain intermediate feature vector), is the i-th intermediate vector in the target domain (i.e., the i-th target domain intermediate feature vector), is the jth intermediate vector in the target domain (i.e., the jth target domain intermediate feature vector), L is the number of fully connected layers, and l is the current fully connected layer.

[0146] Step S1332: construct a first cross entropy loss function through the source domain gesture category probability, and construct a minimum class confusion loss function through the main target domain gesture category probability.

[0147] Continue as Figure 6 As shown, the above device can also recognize gestures according to the source domain probability Construct the first cross entropy loss function (i.e. Figure 6 Specifically, the above device can be based on the source domain gesture recognition probability and the correct gesture type corresponding to the label EMG signal (i.e. Figure 6 Source domain data label y s ) is calculated together to represent the learning effect of the model on the source domain, which can be implemented according to the following formula 3:

[0148]

[0149] Among them, L CE (S) is the first cross entropy loss function, S is the source domain, C is the number of gesture recognition categories, y si is the source domain data label corresponding to the i-th gesture category, P i is the source domain gesture category probability corresponding to the i-th gesture category.

[0150] It should be emphasized that since the target domain data has no labels, the cross entropy cannot be directly calculated. Therefore, in this embodiment, the minimum class confusion strategy can be used for the target domain gesture category probability, and the output result of the target domain data can be corrected to reduce the confusion of similar classes. The specific process is the above-mentioned step of constructing the minimum class confusion loss function through the main target domain gesture category probability, including:

[0151] The probability of gesture categories in the main target domain is probability adjusted, and the adjusted probability of gesture categories in the main target domain is re-weighted; the class correlation reduction operation is performed on the re-weighted probability of gesture categories in the main target domain, and a minimum class confusion loss function is constructed based on the operation results.

[0152] It should be understood that the probability of gesture category in the main target domain can be Probability adjustment is performed to reduce the negative impact of overconfidence prediction in the target domain. The specific process can be achieved according to the following formula 4:

[0153]

[0154] in, is the probability of the main target domain gesture category predicted as the current gesture category j for the adjusted i-th sample (i.e., the historical EMG signal in the target domain), P i,j is to adjust the probability of the main target domain gesture category that the previous i-th sample is predicted to be the current gesture category j, t is the readjustment coefficient, which can be set according to the actual situation, C is the number of gesture recognition categories, P i,′ The probability of the gesture category in the main target domain predicted as the j′th gesture category for the first i-th sample.

[0155] After the probability is adjusted by the above formula 4, the adjusted probability of the gesture category in the main target domain can be re-weighted to strengthen the weight of the class association of the samples with relatively certain predictions, which can be specifically achieved by the following formula 5:

[0156]

[0157] Among them, W i is the importance weight of the i-th sample after reweighting, B is the number of all samples in one training, H() is the entropy formula, is the probability of the gesture category in the main target domain of the current i-th sample after adjustment, is the probability of the gesture category in the main target domain of the i′th sample after adjustment.

[0158] After reweighting by the above formula 5, the class association between all gesture categories can be minimized by minimizing the class confusion strategy, thereby reducing the occurrence of class confusion and obtaining the minimum class confusion loss function (i.e. Figure 6 MCC), which can be specifically realized by the following formula 6:

[0159]

[0160] Among them, L MCC (T) is the minimum class confusion loss function, T is the target domain, C is the number of gesture recognition categories, is the probability of the main target domain gesture category corresponding to the j-th gesture category, is the probability of the gesture category in the main target domain corresponding to the j′th gesture category.

[0161] Step S1333: construct a round of training loss function based on the joint maximum mean difference loss function, the first cross entropy loss function and the minimum class confusion loss function.

[0162] After obtaining the above joint maximum mean difference loss function L JMMD (S, T), the first cross entropy loss function L CE (S) and the minimum class confusion loss function L MCC(T), a round of training loss function can be constructed to update the gradient. It can be obtained by the following formula 7:

[0163] Loss1=L CE (S)+αL JMMD (S,T)+βL MCC (T) Formula 7;

[0164] Among them, Loss1 is the loss function of the above-mentioned round of training, α is the first preset weight parameter, and β is the second preset weight parameter, which can be set according to actual conditions.

[0165] Step S134: training the initial gesture recognition model through a round of training loss function to obtain a target gesture recognition model corresponding to the current user.

[0166] After obtaining a round of training loss function Loss1, the initial gesture recognition model can be trained by this round of training loss function (i.e. Figure 6 In the first round of training), the network parameters are aligned with the target domain and the output results are corrected, so that the network parameters can obtain relatively accurate prediction results on the target domain data.

[0167] This embodiment uses the joint maximum mean difference to align the joint distribution of specific feature extraction layers between the source domain and the target domain, and uses the minimization class confusion strategy to correct the prediction results of the target domain data, reducing the confusion of similar categories, thereby further improving the cross-user migration capability.

[0168] Reference Fig.10 , Fig.10 This is a flow chart of a third embodiment of a gesture recognition method of the present application. Based on the above embodiments, a third embodiment of a gesture recognition method of the present application is proposed.

[0169] like Fig.10 As shown, in this embodiment, in order to further improve the recognition ability of the model, in this embodiment, the model can also be trained for two rounds. The specific process is the above step S134, including:

[0170] Step S1341: Perform a confidence check on the main target domain gesture category probability, obtain the target domain pseudo label, and determine the auxiliary target domain gesture category probability based on the target domain intermediate feature vector.

[0171] It should be noted that the two rounds of training in this embodiment and the pseudo labels obtained through the main target domain gesture category probability strengthen the recognition ability of the network in the target domain. First, the confidence test of the main target domain gesture category probability can be performed, such as Figure 6 As shown, samples with higher confidence can be retained (i.e. Figure 6 ), and obtain the target domain pseudo label, denoted as (Right now Figure 6 The specific confidence test method can be a method of calculating the entropy value, that is, calculating the entropy value of the gesture category probability in the main target domain, and selecting samples with lower entropy values ​​(that is, low uncertainty) as the above-mentioned target domain pseudo labels. The specific number of selections is not limited in this embodiment.

[0172] In determining the target domain pseudo label After that, the intermediate feature vector of the target domain can be passed through another output layer (i.e. Figure 6 The output layer b in the output layer b) has different parameters from those of the output layer a. After the output layer b, an auxiliary target domain gesture category probability can be obtained, denoted as The auxiliary target domain gesture category probability may be another probability of each type of gesture category corresponding to the historical electromyography signal.

[0173] Step S1342: construct a second cross entropy loss function according to the target domain pseudo-label and the auxiliary target domain gesture category probability, and use the second cross entropy loss function as the second round training loss function.

[0174] In determining the target domain pseudo label And the auxiliary target domain gesture category probability After that, the second cross entropy loss function can be constructed (i.e. Figure 6 CE), which can be specifically realized by the following formula 8:

[0175]

[0176] Among them, L CE (T) is the second cross entropy loss function, T is the target domain, C is the number of gesture recognition categories, y t1, is the target domain pseudo label corresponding to the i-th gesture category, P t2, is the auxiliary target domain gesture category probability corresponding to the i-th gesture category.

[0177] Step S1343: performing one round of training on the initial gesture recognition model using a one-round training loss function, and performing two rounds of training on the trained initial gesture recognition model using a two-round training loss function to obtain a target gesture recognition model corresponding to the current user.

[0178] After obtaining the second cross entropy loss function, the function can be used as the above two-round training loss function; if the two-round training loss function is recorded as Loss2, then Loss2 = L CE (T).

[0179] Then, during training, Figure 6 As shown, we can first train the update gradient through a round of training loss function Loss1 (i.e. Figure 6In the first round of training), the gradient is updated again through the second round of training loss function Loss2 (i.e. Figure 6 Thereby strengthening the recognition ability of target domain data and further improving the accuracy of gesture recognition.

[0180] Further, refer to Fig.11 , Fig.11 This is a comparison chart of the accuracy of gesture recognition achieved by this method and other methods. Fig.11 As shown, if the gesture recognition method of this solution is recorded as proposed, other methods may include:

[0181] 1. Baseline Fig.11 Baseline): The baseline method can be a method that directly trains and tests the model on the target domain without using any specific domain adaptation technology;

[0182] 2. Adversarial Discriminative Domain Adaptation (ADDA) (i.e. Fig.11 ADDA): learns adversarial feature representations through adversarial training to reduce the distribution difference between the source domain and the target domain;

[0183] 3. Adaptive Feature Normalization (AFN) Fig.11 Middle AFN): A method to reduce the difference between domains by adjusting the normalization method of features;

[0184] 4. Balanced Sampling and Prediction (BSP) (i.e. Fig.11 BSP): A method to reduce the bias between domains by balancing the source and target domain samples.

[0185] 5. Conditional Domain Adaptation Network (CDAN) Fig.11 CDAN): A method for learning targeted feature representations by introducing conditions in feature space and prediction space;

[0186] 6. Domain Adaptation Network (DAN) Fig.11 DAN): A method designed to learn feature representations with good generalization performance;

[0187] 7. Domain-Adversarial Neural Network (DANN) Fig.11 DANN): A method for learning domain-invariant feature representations through adversarial training;

[0188] 8. Joint Adaptation Network (JAN) Fig.11 JAN): A method that simultaneously considers the inter-domain differences between multiple source domains and target domains;

[0189] 9. Minimum Class Confusion (MCC) Fig.11 MCC);

[0190] 10. Maximum Classifier Discrepancy (MDD) Fig.11 MDD): a measure of the difference between domains;

[0191] 11. Dual-Subspace Adversarial Domain Adaptation Network (DSDAN) Fig.11 DSDAN): A method to reduce the difference between domains by learning a dual subspace between the source domain and the target domain;

[0192] 12. Combine the adaptive network with the strategy of minimizing class confusion (i.e. Fig.11 JAN+MCC).

[0193] The experiment was conducted on the data of 20 subjects. The data of 19 subjects were used to construct the source domain data each time, and the data of the remaining subject was used to conduct unsupervised domain adaptation experiments. The recorded results are the average results of 20 repetitions. In order to ensure the prerequisites of the experiment, sufficient samples of subjects can be used, and at the same time, it is ensured that there are differences in gestures, usage habits, height, weight, gender, age, etc. between the subjects.

[0194] according to Fig.11It can be seen that the gesture recognition accuracies of baseline, ADDA, AFN, BSP, CDAN, DAN, DANN, JAN, MCC, MDD, DSDAN, JAN+MCC and proposed are 55.53%, 56.52%, 54.15%, 57.71%, 53.36%, 62.45%, 53.75%, 66.21%, 66.01%, 61.26%, 67.79%, 69.37% and 75.89% respectively.

[0195] According to the above data, it is not difficult to see that the accuracy of proposed is higher than that of other methods.

[0196] Further, refer to Fig.12 , Fig.12 The following is a comparison diagram of the accuracy of five-gesture classification and three-gesture classification between this method and the baseline method under 8 channels and 3 channels. Fig.12 As shown in Figure 2, when using 8-channel EMG (i.e., 8 electromyography signals) to classify five gestures (i.e., five gestures), the baseline (i.e., Fig.12 The accuracy of the baseline method is 53.56%, and the accuracy of the proposed method is 69.98%; when using 8-channel EMG for three-gesture classification (i.e., three gestures), the accuracy of the baseline method is 81.16%, and the accuracy of the proposed method is 90.51%; when using 3-channel EMG (i.e., 3 electromyography signals) for three-gesture classification, the accuracy of the baseline method is 80.56%, and the accuracy of the proposed method is 86.85%.

[0197] According to the above data, it is not difficult to see that the proposed accuracy is higher than the baseline method.

[0198] In addition, an embodiment of the present application further provides a storage medium, on which a gesture recognition program is stored. When the gesture recognition program is executed by a processor, the gesture recognition method described above is implemented.

[0199] In addition, refer to Fig.13 , Fig.13 : is a structural block diagram of the first embodiment of the gesture recognition device of the present application; Fig.13 As shown, the embodiment of the present application also provides a gesture recognition device, which includes:

[0200] The model training module 131 is used to train a target gesture recognition model corresponding to the current user based on the acquired historical electromyography signal of the current user and the signal similarity between the comprehensive electromyography signals of different users;

[0201] The gesture collection module 132 is used to collect the gestures to be recognized made by the current user when the gesture recognition is started, and perform activity segment detection on the collected results to obtain the current electromyography signal;

[0202] The gesture recognition module 133 is used to perform gesture recognition on the current electromyography signal based on the target gesture recognition model.

[0203] This embodiment can first train a target gesture recognition model corresponding to the current user based on the signal similarity between the historical electromyogram signal of the current user and the integrated electromyogram signals of different users, and then when the gesture recognition is started, the gesture to be recognized made by the current user is collected and the activity segment is detected to obtain the current electromyogram signal, and the current electromyogram signal is gesture recognized based on the target gesture recognition model corresponding to the current user. Compared with the existing gesture recognition model trained on one user, which is difficult to reuse on other users, this embodiment can train a target gesture recognition model corresponding to the current user based on the signal similarity between the integrated electromyogram signals of different users and the historical electromyogram signal of the current user, and then perform gesture recognition on the current electromyogram signal of the current user through the target gesture recognition model, so that the gesture recognition model can be reused on different users, improving the gesture recognition capability.

[0204] As an implementation method, the model training module 131 is also used to obtain the historical electromyography signal of the current user, and determine the signal similarity between the historical electromyography signal and the comprehensive electromyography signals of different users; select the label electromyography signal corresponding to the current user from the comprehensive electromyography signal based on the similarity of each signal; train the initial gesture recognition model through the label electromyography signal and the historical electromyography signal to obtain the target gesture recognition model corresponding to the current user.

[0205] As an implementation mode, the gesture recognition module 133 is also used to update the historical electromyography signal of the current user based on the current electromyography signal; train the target gesture recognition model according to the signal similarity between the updated historical electromyography signal and the comprehensive electromyography signals of different users; when the next gesture recognition is started, the next gesture to be recognized by the current user is gesture recognized through the trained target gesture recognition model.

[0206] Based on the above-mentioned first embodiment of the gesture recognition device of the present application, a second embodiment of the gesture recognition device of the present application is proposed.

[0207] In this embodiment, the model training module 131 is also used to perform feature extraction on the label electromyography signal to obtain the source domain intermediate feature vector, and to perform feature extraction on the historical electromyography signal to obtain the target domain intermediate feature vector; determine the source domain gesture category probability based on the source domain intermediate feature vector, and determine the main target domain gesture category probability based on the target domain intermediate feature vector; construct a round of training loss function according to the source domain intermediate feature vector, the target domain intermediate feature vector, the source domain gesture category probability and the main target domain gesture category probability; train the initial gesture recognition model through the one-round training loss function to obtain the target gesture recognition model corresponding to the current user.

[0208] As another implementation method, the model training module 131 is also used to construct a joint maximum mean difference loss function based on the intermediate feature vector of the source domain and the intermediate feature vector of the target domain; construct a first cross entropy loss function through the source domain gesture category probability, and construct a minimum class confusion loss function through the main target domain gesture category probability; construct a round of training loss function based on the joint maximum mean difference loss function, the first cross entropy loss function and the minimum class confusion loss function.

[0209] As another implementation, the joint maximum mean difference loss function is:

[0210] Among them, S is the source domain, T is the target domain, and L JMMD (S,T) is the joint maximum mean difference loss function, n s is the number of source domains, n t is the number of target domains, k(,) is the kernel function, is the intermediate feature vector of the i-th source domain, is the jth source domain intermediate feature vector, is the intermediate feature vector of the i-th target domain, is the jth target domain intermediate feature vector, L is the number of fully connected layers, and l is the current fully connected layer

[0211] As another implementation method, the model training module 131 is also used to probabilistically adjust the main target domain gesture category probability and re-weight the adjusted main target domain gesture category probability; perform a class correlation reduction operation on the re-weighted main target domain gesture category probability, and construct a minimum class confusion loss function based on the operation results.

[0212] As another implementation, the loss function for one round of training is: Loss1 = L CE (S)+αL JMMD (S,T)+βL MCC (T); where Loss1 is the loss function for one round of training, L CE(S) is the first cross entropy loss function, L JMMD (S,T) is the joint maximum mean difference loss function, L MCC (T) is the minimum class confusion loss function, α is the first preset weight parameter, and β is the second preset weight parameter

[0213] Based on the above-mentioned embodiments of the gesture recognition device of the present application, a third embodiment of the gesture recognition device of the present application is proposed.

[0214] In this embodiment, the model training module 131 is also used to perform a confidence check on the main target domain gesture category probability, obtain a target domain pseudo-label, and determine the auxiliary target domain gesture category probability based on the target domain intermediate feature vector; construct a second cross entropy loss function according to the target domain pseudo-label and the auxiliary target domain gesture category probability, and use the second cross entropy loss function as the second-round training loss function; perform one round of training on the initial gesture recognition model through the one-round training loss function, and perform two rounds of training on the trained initial gesture recognition model through the two-round training loss function to obtain the target gesture recognition model corresponding to the current user.

[0215] As another implementation, the loss function for the second round of training is: Loss2 = L CE (T) = -∑ i∈C y t1,i log(P t2, ), where Loss2 is the loss function for the second round of training, T is the target domain, and L CE (T) is the second cross entropy loss function, C is the number of gesture categories, y t1, is the target domain pseudo label corresponding to the i-th gesture category, P t2,i is the probability of the auxiliary target domain gesture category corresponding to the i-th gesture category

[0216] Other embodiments or specific implementations of the gesture recognition device described in the present application can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0217] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0218] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0219] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0220] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A gesture recognition method, characterized in that: The method comprises: Based on the acquired signal similarity between the historical electromyography signal of the current user and the comprehensive electromyography signals of different users, a target gesture recognition model corresponding to the current user is trained; When the gesture recognition is started, the gesture to be recognized made by the current user is collected, and the activity segment detection is performed on the collected results to obtain the current electromyography signal; Perform gesture recognition on the current electromyography signal based on the target gesture recognition model.

2. The method according to claim 1, characterized in that The step of training a target gesture recognition model corresponding to the current user based on the acquired historical electromyography signal of the current user and the signal similarity between the comprehensive electromyography signals of different users includes: Acquire a historical electromyogram signal of the current user, and determine a signal similarity between the historical electromyogram signal and comprehensive electromyogram signals of different users; Selecting a label electromyogram signal corresponding to the current user from the comprehensive electromyogram signal based on the similarity of each signal; An initial gesture recognition model is trained using the label electromyography signal and the historical electromyography signal to obtain a target gesture recognition model corresponding to the current user.

3. The method according to claim 2, characterized in that The step of training the initial gesture recognition model by using the label electromyography signal and the historical electromyography signal to obtain the target gesture recognition model corresponding to the current user includes: Performing feature extraction on the label electromyography signal to obtain a source domain intermediate feature vector, and performing feature extraction on the historical electromyography signal to obtain a target domain intermediate feature vector; Determining a source domain gesture category probability based on the source domain intermediate feature vector, and determining a main target domain gesture category probability based on the target domain intermediate feature vector; Constructing a round of training loss function according to the source domain intermediate feature vector, the target domain intermediate feature vector, the source domain gesture category probability and the main target domain gesture category probability; The initial gesture recognition model is trained through the one-round training loss function to obtain a target gesture recognition model corresponding to the current user.

4. The method according to claim 3, characterized in that The step of constructing a round of training loss function according to the source domain intermediate feature vector, the target domain intermediate feature vector, the source domain gesture category probability and the main target domain gesture category probability comprises: Constructing a joint maximum mean difference loss function according to the source domain intermediate feature vector and the target domain intermediate feature vector; A first cross entropy loss function is constructed by using the source domain gesture category probability, and a minimum class confusion loss function is constructed by using the main target domain gesture category probability; A round of training loss function is constructed based on the joint maximum mean difference loss function, the first cross entropy loss function and the minimum class confusion loss function.

5. The method according to claim 4, characterized in that The joint maximum mean difference loss function is: Among them, S is the source domain, T is the target domain, and L JMMD (S, T) is the joint maximum mean difference loss function, n s is the number of source domains, n t is the number of target domains, k(,) is the kernel function, is the ith intermediate feature vector of the source domain, is the jth intermediate feature vector of the source domain, is the intermediate feature vector of the i-th target domain, is the jth intermediate feature vector of the target domain, L is the number of fully connected layers, and l is the current fully connected layer.

6. The method according to claim 5, characterized in that The step of constructing a minimum class confusion loss function through the main target domain gesture category probability comprises: Probability adjustment is performed on the main target domain gesture category probability, and re-weighting is performed on the adjusted main target domain gesture category probability; The re-weighted main target domain gesture category probabilities are subjected to class correlation reduction operations, and the minimum class confusion loss function is constructed based on the operation results.

7. The method according to claim 4, characterized in that The loss function for one round of training is: Loss1=L CE (S)+αL JMMD (S,T)+βL MCC (T); Among them, Loss1 is the loss function of the training round, L CE (S) is the first cross entropy loss function, L JMMD (S, T) is the joint maximum mean difference loss function, L MCC (T) is the minimum class confusion loss function, α is the first preset weight parameter, and β is the second preset weight parameter.

8. The method according to claim 3, characterized in that The step of training the initial gesture recognition model through the one-round training loss function to obtain the target gesture recognition model corresponding to the current user includes: Performing a confidence check on the main target domain gesture category probability to obtain a target domain pseudo label, and determining an auxiliary target domain gesture category probability based on the target domain intermediate feature vector; Constructing a second cross entropy loss function according to the target domain pseudo label and the auxiliary target domain gesture category probability, and using the second cross entropy loss function as a second round training loss function; The initial gesture recognition model is trained once using the one-round training loss function, and the trained initial gesture recognition model is trained twice using the two-round training loss function to obtain a target gesture recognition model corresponding to the current user.

9. The method according to claim 8, characterized in that The loss function of the second round of training is: Among them, Loss2 is the loss function of the second round of training, T is the target domain, L CE (T) is the second cross entropy loss function, C is the number of gesture categories, y t1,i is the target domain pseudo label corresponding to the i-th gesture category, P t2,i is the auxiliary target domain gesture category probability corresponding to the i-th gesture category.

10. The method according to any one of claims 1 to 9, characterized in that After the step of performing gesture recognition on the current electromyography signal based on the target gesture recognition model, the method further includes: Updating the historical electromyography signal of the current user based on the current electromyography signal; Training the target gesture recognition model according to the signal similarity between the updated historical electromyography signal and the integrated electromyography signals of the different users; When gesture recognition is started next time, gesture recognition is performed on the next gesture to be recognized made by the current user through the trained target gesture recognition model.

11. A gesture recognition device, characterized in that: The device comprises: A model training module, used for training a target gesture recognition model corresponding to the current user based on the signal similarity between the acquired historical electromyography signal of the current user and the comprehensive electromyography signals of different users; The gesture collection module is used to collect the gesture to be recognized made by the current user when the gesture recognition is started, and perform activity segment detection on the collection result to obtain the current electromyography signal; A gesture recognition module is used to perform gesture recognition on the current electromyography signal based on the target gesture recognition model.

12. A storage medium, characterized in that: The storage medium stores a gesture recognition program, and when the gesture recognition program is executed by the processor, the gesture recognition method according to any one of claims 1 to 10 is implemented.

13. A wearable device, characterized in that: The wearable device comprises: a memory, a processor, and a gesture recognition program stored in the memory and executable on the processor, wherein the gesture recognition program implements the gesture recognition method according to any one of claims 1 to 10 when executed by the processor.

Citation Information

Cited By

  • Gesture recognition method and device, storage medium and wearable equipment

    CN118820937A

  • Gesture recognition method, device, storage medium and wearable device

    CN118820937B