Cross-user myoelectricity mode recognition method integrating field self-adaption and field generalization

Through a deep learning network model based on category separation and domain alignment, the problem of low recognition accuracy and high training burden of myoelectric interface devices when used across users is solved, achieving robust recognition capabilities and no calibration with minimal calibration data. High-precision recognition in scenes improves the cross-user experience of the myoelectric interaction system.

CN118806300AActive Publication Date: 2024-10-22NORTHWESTERN POLYTECHNICAL UNIV
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410841036.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-22
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing myoelectric interface devices have low recognition accuracy and heavy training burden when used across users, making it difficult to meet the needs of multiple users for shared use. In particular, the recognition effect is poor when new users connect for the first time, resulting in poor user experience.

Method used

A deep learning network model (CSDAN) based on category separation and domain alignment is used to train a dual-modal new user action pattern classifier by constructing domain generalization sample pairs and domain adaptation sample pair data sets to achieve cross-user electromyographic pattern recognition. Reduce calibration data requirements and improve identification accuracy.

Benefits of technology

It provides robust cross-user recognition capabilities in domain adaptation scenarios that require at least one calibration data, and achieves leading recognition accuracy in domain generalization scenarios without calibration, reducing the burden of new user data collection and improving myoelectric interaction systems. of robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118806300A_ABST
    Figure CN118806300A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-user myoelectricity mode recognition method integrating domain self-adaption and domain generalization. The method comprises the steps that firstly, source domain user surface myoelectricity signals are collected, and a domain generalization sample pair data set is formed; the method comprises the following steps: firstly, constructing a deep learning network model (Class Separation and Domain Alignment Network, CSDAN) based on class separation and domain alignment, and then, constructing a deep learning network model (CSDAN) based on class separation and domain alignment; constructing a CSDAN model trained based on the field generalization sample pair data set and the field adaptation sample pair data set; and finally, constructing a bimodal new user action mode classifier, and carrying out mode recognition on the new user action mode. The cross-user myoelectricity mode recognition method has robustness on cross-user myoelectricity mode recognition in a field adaptation scene in which at least one piece of calibration data is needed, meanwhile, advanced cross-user myoelectricity mode recognition precision can be achieved in a completely non-calibration field generalization scene, and wide application of man-machine interface equipment in the fields of man-machine interaction, clinical rehabilitation and the like is promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of biomedical electrotechnology, and in particular relates to a cross-user electromyographic pattern recognition method integrating domain adaptation and domain generalization. Background Art

[0002] Surface electromyogram (sEMG) is a bioelectric signal generated when muscles are active. Since sEMG signals are generated ahead of human movements and reflect rich muscle activity information, the human body's movement intention can be reflected by decoding muscle activity information. Therefore, sEMG signals are often used as control instructions for prostheses and exoskeletons, bringing hope for motor function reconstruction. With the advancement of myoelectric pattern recognition technology (MPR), more movement intentions of delicate movements can be decoded from myoelectric signals, making sEMG signals not only useful for clinical rehabilitation, but also expected to be used in human-computer interaction as control instructions for human-computer interface devices. This makes myoelectric-driven human-computer interface devices show great potential in consumer electronics fields such as virtual reality and interactive games.

[0003] Unlike myoelectric prosthetic devices, which are usually used by a single user, human-machine interface devices usually need to be able to be used by multiple users. Currently, many researchers have developed myoelectrically driven human-machine interface devices, which perform well in laboratory test environments. However, in actual applications, due to the non-stationary random characteristics of electrophysiological signals, the recognition accuracy of the classifier trained based on the original user data is significantly reduced or even fails when used by a new user, resulting in the failure to meet the actual demand that the same interface device can be used by multiple users. In order to take over the use of the same myoelectric interface, new users usually need to re-collect myoelectric data of different actions and retrain the classifier. This training burden has led to the abandonment of myoelectric interface devices and hindered the development of myoelectric interaction methods.

[0004] Many studies have proposed myoelectric pattern recognition methods that are robust to new users, aiming to improve the performance of myoelectric interfaces when used across users. They mainly use domain adaptation and domain generalization methods in deep learning. Domain adaptation usually includes two implementation methods. One is the supervised domain adaptation method, which retrains new terminal users with a small amount of labeled data to achieve the purpose of adapting new users to the classifier. However, this supervised learning method still faces the challenge of a large training burden, so some studies tend to use another domain adaptation method, that is, to achieve it through unsupervised learning. Cote et al. can achieve terminal user adaptation in a completely unsupervised manner, by automatically collecting unlabeled data of different movement patterns of new users during use, so as to expand the training set and improve the recognition rate. Although this method does not require the deliberate collection of terminal user calibration data (usually real-time calibration during use), the user experience is still not greatly improved. Because in the early stage of the electromyographic device connecting to the terminal user, the amount of data of the new user is small, resulting in poor recognition effect, and it is still necessary to wait for a long period of data collection. Therefore, some studies believe that domain generalization can achieve no calibration at all, which really reduces the burden on users. Researchers expect that the model trained on the first n users can be directly applied to the n+1th user. However, such methods usually have little knowledge of end users, and there is little connection between the original user and the new user, so it is difficult to achieve a high recognition rate. In summary, although the method based on domain adaptation can improve the recognition rate of the electromyographic interface on new users, it still has a high training burden. The method based on domain generalization, although there is no calibration burden for new users, the recognition rate is usually low. How to ensure a high recognition rate while minimizing the calibration burden when used across users is a scientific problem to be solved, and it has huge application potential and commercial value. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art, the present invention provides a cross-user electromyographic pattern recognition method integrating domain adaptation and domain generalization. First, the surface electromyographic signals of the source domain users are collected and a domain generalization sample pair data set is formed; then a deep learning network model based on class separation and domain alignment (Class Separation and DomainAlignment Network, CSDAN) is constructed; next, the CSDAN model is trained based on the domain generalization sample pair data set and the domain adaptation sample pair data set; finally, a bimodal new user action pattern classifier is constructed, and pattern recognition is performed on the new user action pattern. The present invention is not only robust for cross-user electromyographic pattern recognition in a domain adaptation scenario that requires at least one calibration data, but also has leading cross-user electromyographic pattern recognition accuracy in a completely non-calibrated domain generalization scenario, promoting the wide application of human-computer interface devices in human-computer interaction, clinical rehabilitation and other fields.

[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0007] Step 1: Use the same high-density surface electromyography electrode to collect surface electromyography signals of n users when they perform pre-specified m actions, and obtain electromyography feature data with m action labels after data segmentation, activation segment signal extraction, and feature extraction preprocessing on the collected signals, thereby forming a source domain user data set; randomly select p data from the data of each action in the source domain user data set to obtain n×m×p electromyography data as representative data;

[0008] Select one electromyographic data from all the data and representative data of the source domain user dataset to form a data pair. If the two data action modes in the data pair are the same, the data pair is marked as "same", otherwise the data pair is marked as "different", thus forming a domain generalization sample pair dataset;

[0009] Step 2: Construct a deep learning network model based on category separation and domain alignment, namely the CSDAN model;

[0010] Step 2-1: The CSDAN model is a dual-branch structure, including: a shared dual-branch feature extraction module B, a classification module C, and a category separation and domain alignment module D;

[0011] The shared dual-branch feature extraction module B is composed of two feature extraction networks with the same parameters; each feature extraction network contains a network units, each network unit is composed of a convolution layer, an activation layer, and a batch normalization layer; the first a-1 network units are added with a maximum pooling layer after the batch normalization layer; the ath network unit is finally added with a flattening layer;

[0012] Step 2-2: Two feature extraction networks are connected to the classification module C and the category separation and domain alignment module D respectively;

[0013] The classification module C includes: a fully connected layer, a softmax activation layer and a classification cross entropy loss function;

[0014] The cross entropy loss function is constructed using formula (1):

[0015]

[0016] The category separation and domain alignment module D includes: category separation and domain alignment loss function;

[0017] Use formula (2) to construct the category separation and domain alignment loss function:

[0018]

[0019] In formula (1) and formula (2), N represents the number of electromyographic samples in the source domain user dataset, c1 is the number of action categories, and y ic is the one-hot encoded vector of the actual label of the i-th sample, p ic is the predicted probability of the action category obtained by the output of the softmax activation layer, that is, the predicted probability that the i-th sample belongs to the c-th category; represents the EMG sample of the i-th source domain user, represents the EMG sample of the i-th target domain user, represents the Euclidean distance of the i-th sample pair, Indicates the label of the i-th sample pair, “different” or “same”; m represents the boundary value; λ represents the weight of the loss function’s contribution to the model;

[0020] Step 3: Train the CSDAN model based on the domain generalization sample pair dataset and the domain adaptation sample pair dataset;

[0021] Step 3-1: If a domain generalization model is used, then train a domain generalization electromyographic pattern recognition classifier: input the domain generalization sample pair data set into the two input ends of the CSDAN model in batches, use the category separation and domain alignment module D to perform gradient descent training on the CSDAN model and update the model parameters, and train until the loss function converges to obtain a domain generalization cross-user electromyographic pattern recognition model;

[0022] Step 3-2: If a domain adaptation model is used, a domain adaptation sample pair dataset is constructed and a domain adaptation electromyographic pattern recognition model is trained;

[0023] Use electromyographic electrodes to collect calibrated electromyographic signals of m actions of the new user. According to step 1, the electromyographic signals of the new user are preprocessed and q data with action category labels are randomly selected from each action to obtain a new user calibration data set consisting of m×q electromyographic data. The source domain user data set and the new user calibration data set are used to form a domain adaptation sample pair data set according to step 1.

[0024] Input the domain adaptation sample pair dataset into the two input terminals of CSDAN in batches, and train the domain adaptation cross-user electromyography pattern recognition model according to step 3-1;

[0025] Step 4: Construct a bimodal new user action pattern classifier to perform pattern recognition on the new user action pattern; the new user, i.e. the n+1th user, is connected to the electromyography electrode and randomly performs one of the m actions;

[0026] Step 4-1: When using the domain generalization mode, the predicted signal is preprocessed according to step 1 to obtain the electromyographic feature data, and the electromyographic feature data is input into the two input ends of the CSDAN network respectively. The softmax layer of the classification module C obtains the probability distribution of the maximum corresponding category, and then makes a decision;

[0027] Step 4-2: When using the domain adaptation mode, update the data and model according to the process of step 3-2, and then obtain the prediction result of the action mode according to step 4-1.

[0028] Preferably, the number of myoelectric samples N=2400 and the number of action categories C=6 in the source domain user data set.

[0029] Preferably, the boundary value m=1; the loss function contribution weight λ to the model=0.25.

[0030] The beneficial effects of the present invention are as follows:

[0031] Compared with the prior art, the present invention is not only robust for cross-user EMG pattern recognition in a domain adaptation scenario that requires at least one calibration data, but also has leading cross-user EMG pattern recognition accuracy in a domain generalization scenario without any calibration, and there is no need to change the model structure after switching between domain adaptation and domain generalization scenarios.

[0032] 1. The dual-branch shared feature extraction module in step 2 of the present invention, in the absence of any new user data, improves the generalization ability of the model by learning the characteristic relationship between the electromyographic signals of different users and different action patterns in the source domain, and then directly applies it to new user pattern recognition; when calibration conditions are met, the characteristic relationship between new users and source domain users can be learned to improve the model's adaptability to new users, thereby realizing the integration of two cross-user pattern recognition methods, namely domain generalization and domain adaptation, without changing the model structure.

[0033] 2. Step 2 and step 3 of the present invention align the data distribution of different users and the same action category through category separation and domain alignment loss functions during the gradient descent process, and separate the data distribution between different categories, so as to improve the accuracy of the model in cross-user electromyographic pattern classification, thereby enhancing the robustness of the electromyographic interaction system when used across users.

[0034] 3. In step 4 of the present invention, the model is trained on source domain users to obtain a high degree of generalization ability, and can be used directly after new users access without the need for any new user data; when the conditions for new user label data are met, the model can be quickly updated, and each action category requires at least one electromyographic data, which can achieve leading recognition accuracy, while greatly reducing the amount of data required for new users and reducing the burden of re-collecting data when recognizing the electromyographic patterns of new users. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 2 This is a schematic diagram of the myoelectric signal acquisition device and electrode configuration of the present invention;

[0037] Figure 3 A structural diagram of a deep learning network model for category separation and domain alignment of the present invention;

[0038] Figure 4 This is the network structure diagram for extracting electromyographic signal features in the present invention. DETAILED DESCRIPTION

[0039] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0040] The present invention provides a cross-user electromyographic pattern recognition method integrating domain adaptation and domain generalization, so that the electromyographic interface can complete domain adaptation calibration under the condition of a small sample size to ensure the cross-user recognition rate, and can also reduce the user's calibration burden through domain generalization without switching model parameters, thereby improving the robustness to new user data.

[0041] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:

[0042] The invention discloses a method for cross-user electromyographic pattern recognition integrating domain adaptation and domain generalization, which comprises the following steps:

[0043] Step 1: Use the same high-density surface electromyography electrode to collect surface electromyography signals of n users when they perform pre-specified m actions, and perform data segmentation, activation segment signal extraction, and feature extraction preprocessing on the collected signals to obtain electromyography feature data with m action labels, thereby forming a source domain user data set; randomly select p data from the data of each action in the source domain user data set to obtain n×m×p electromyography data as representative data; n≥1, m≥1, p≥1;

[0044] Select one electromyographic data from all the data and representative data of the source domain user data set to form a data pair. If the two data action modes in the data pair are the same, the data pair is marked as "same", otherwise the data pair is marked as "different", thereby forming a domain generalization sample pair data set;

[0045] Step 2: Construct a deep learning network model based on class separation and domain alignment (Class Separation and Domain Alignment Network, CSDAN);

[0046] Step 2.1, the CSDAN model is a dual-branch structure, including: a shared dual-branch feature extraction module B, a classification module C, and a category separation and domain alignment module D;

[0047] The shared dual-branch feature extraction module B is composed of two feature extraction networks with the same parameters;

[0048] Each feature extraction network contains a network units, each of which consists of a convolutional layer, an activation layer, and a batch normalization layer; the first a-1 network units add a maximum pooling layer after the batch normalization layer; the ath network unit adds a flattening layer at the end;

[0049] Step 2.2, the two feature extraction networks are respectively connected to the classification module C and the category separation and domain alignment module D;

[0050] The category separation module C includes: a fully connected layer, a softmax activation layer and a classification cross entropy loss function;

[0051] Formula (1) is used to construct the cross entropy loss function:

[0052]

[0053] The category separation and domain alignment module D includes: category separation loss and domain alignment loss function;

[0054] Formula (2) is used to construct the category separation and domain alignment loss function:

[0055]

[0056] In formula (1) and formula (2), N represents the number of electromyographic samples y in the source domain user dataset ic is the one-hot encoded vector of the actual label of the i-th sample, p ic is the predicted probability of the action category obtained by the output of the softmax activation layer, that is, the predicted probability that the i-th sample belongs to the c-th category; represents the EMG sample of the i-th source domain user, represents the EMG sample of the i-th target domain user, represents the Euclidean distance of the i-th sample pair, Indicates the label of the i-th sample pair, “different” or “same”; m represents the boundary value; λ represents the weight of the loss function’s contribution to the model;

[0057] Step 3: training the CSDAN model based on the domain generalization sample pair dataset and the domain adaptation sample pair dataset;

[0058] Step 3.1, if a domain generalization model is used, then a domain generalization electromyographic pattern recognition classifier is trained: the domain generalization sample pair data set is input into two input ends of CSDAN in batches, and the category separation and domain alignment module D is used to perform gradient descent training on the CSDAN model and update the model parameters, and the training is performed until the loss function converges to obtain a domain generalization cross-user electromyographic pattern recognition model;

[0059] Step 3.2: If a domain adaptation model is used, a domain adaptation sample pair dataset is constructed and a domain adaptation electromyographic pattern recognition model is trained;

[0060] The electromyographic electrodes are used to collect calibration electromyographic signals of m actions of the new user, and after preprocessing the electromyographic signals of the new user according to step 1, q data with action category labels are randomly selected from each action to obtain a new user calibration data set consisting of m×q electromyographic data; the source domain user data set and the new user calibration data set are combined according to step 1 to form a domain adaptation sample pair data set;

[0061] Input the domain adaptation sample pair dataset into two input terminals of CSDAN in batches, and train the domain adaptation cross-user electromyographic pattern recognition model according to step 3.1;

[0062] Step 4: Build a bimodal new user action pattern classifier to perform pattern recognition on the new user action pattern; the new user (n+1th user) is connected to the electromyography electrode and randomly performs one of the m actions;

[0063] Step 4.1: When using the domain generalization mode, the prediction signal is preprocessed according to step 1 to obtain the electromyographic feature data, and the electromyographic feature data is input into the two input ends of the CSDAN network respectively. The softmax layer of the classification module C obtains the probability distribution of the maximum corresponding category, and then makes a decision;

[0064] Step 4.2: When using the domain adaptation mode, update the data and model according to the process of step 3.2, and then obtain the prediction result of the action mode according to step 4.1.

[0065] Example:

[0066] In this embodiment, a deep model and loss function that can be both domain-adaptive and domain-generalized are proposed, and a dual-modal training method for the model is proposed, such as Figure 1 As shown, it includes the following steps:

[0067] Step 1: Use the same high-density surface electromyography electrode to collect surface electromyography signals of n users when they perform pre-specified m actions, and perform data segmentation, activation segment signal extraction, and feature extraction preprocessing on the collected signals to obtain electromyography feature data with m action labels, thereby forming a source domain user data set; randomly select p data from the data of each action in the source domain user data set to obtain n×m×p electromyography data as representative data; n≥1, m≥1, p≥1;

[0068] Select one electromyographic data from all the data and representative data of the source domain user dataset to form a data pair. If the two data action modes in the data pair are the same, the data pair is marked as "same", otherwise the data pair is marked as "different", thus forming a domain generalization sample pair dataset;

[0069] Step 1.1, for example, the high-density surface electromyography electrode adopts a 10×10 channel electrode configuration to collect surface electromyography signals of the finger extensor muscles of the forearms of 7 subjects. During the collection process, the subjects are required to perform 6 gestures (m1-m6). The collection process is as follows: Figure 2 shown.

[0070] Step 1.2: Segment the collected signal using a data window with a window length of 128 ms and a step length of 64 ms for sliding segmentation.

[0071] Step 1.3: Extract the activation segment signal from the data window. That is, if the area under the signal in three consecutive data windows is larger than the area during the rest period, it is considered as the activation segment signal.

[0072] Step 1.4: Extract three myoelectric features from the activation segment signal, namely the time domain feature of wavelength, and the two frequency domain features of median frequency and average frequency, to generate myoelectric feature data.

[0073] Step 1.5: Label each feature data with a label representing the action mode to form a source domain user data set; randomly select one data from the data of each action in the source domain user data set to obtain 54 (i.e., 9×6×1) electromyographic data as representative data.

[0074] Step 1.6: Select one electromyographic data from all the data in the source domain user dataset and the representative data to form a data pair. If the two data action modes in the data pair are the same, the data pair is marked as "same", otherwise the data pair is marked as "different", thus forming a domain generalization sample pair dataset.

[0075] Step 2: Construct a deep learning network model based on class separation and domain alignment (Class Separation and Domain Alignment Network, CSDAN);

[0076] Step 2.1, the CSDAN model has a dual-branch structure, such as Figure 3 As shown, it includes: a shared dual-branch feature extraction module B, a classification module C, and a category separation and domain alignment module D;

[0077] The shared dual-branch feature extraction module B is composed of two feature extraction networks with the same parameters;

[0078] In this embodiment, each feature extraction network includes two network units, such as Figure 4 As shown in the figure, each network unit consists of a convolution layer, an activation layer, and a batch normalization layer; the first network unit adds a maximum pooling layer after the batch normalization layer; the second network unit adds a flattening layer at the end;

[0079] Step 2.2, two feature extraction networks are connected to the classification module C and the category separation and domain alignment module D respectively;

[0080] The category separation module C includes: a fully connected layer, a softmax activation layer, and a classification cross entropy loss function;

[0081] Use formula (1) to construct the classification cross entropy loss function:

[0082]

[0083] The category separation and domain alignment module D includes: category separation loss and domain alignment loss function;

[0084] Formula (2) is used to construct the category separation and domain alignment loss function:

[0085]

[0086] In this embodiment, in formula (1) and formula (2), the number of myoelectric samples in the source domain user data set is N=2400, the number of action categories is C=6, and y ic is the one-hot encoding vector of the actual label of the i-th sample, and the action category prediction probability p obtained by the softmax activation layer output ic The value range is a decimal between 0 and 1, that is, the predicted probability that the i-th sample belongs to the C-th class; represents the EMG sample of the i-th source domain user, represents the EMG sample of the i-th target domain user, Represents the Euclidean distance of the i-th sample pair, and the calculation formula is:

[0087]

[0088] The label of the i-th sample pair representing “different” or “same”; the boundary value m = 1; the contribution weight of the loss function to the model λ = 0.25;

[0089] Step 3: Train the CSDAN model based on the domain generalization sample pair dataset and the domain adaptation sample pair dataset;

[0090] Step 3.1: If a domain generalization model is used, then train a domain generalization electromyographic pattern recognition classifier: input the domain generalization sample pair data set into the two input ends of CSDAN in batches, use the category separation and domain alignment module D to perform gradient descent training on the CSDAN model and update the model parameters, and train until the loss function converges to obtain a domain generalization cross-user electromyographic pattern recognition model;

[0091] In this embodiment, the model uses the Adam optimizer during training, the learning rate is set to 0.001, the batch size is set to 256, and the number of iterations is set to 80.

[0092] Step 3.2: If a domain adaptation model is used, a domain adaptation sample pair dataset is constructed and a domain adaptation electromyographic pattern recognition model is trained;

[0093] Exemplarily, electromyographic electrodes are used to collect calibration electromyographic signals of six actions of the new user, and after preprocessing the electromyographic signals of the new user according to step 1, one data with an action category label is randomly selected from each action to obtain a new user calibration data set consisting of six electromyographic data; the source domain user data set and the new user calibration data set are combined according to step 1 to form a domain adaptation sample pair data set;

[0094] The domain adaptation sample pair dataset is input into the two input terminals of CSDAN in batches, and the domain adaptation cross-user electromyographic pattern recognition model is obtained by training according to step 3.1;

[0095] Step 4: construct a dual-modal new user motion pattern classifier and perform pattern recognition on the new user motion pattern; the new user (the 9th user in this embodiment) is connected to the electromyographic electrode and randomly performs one of m motions, where m=6 in this embodiment;

[0096] Step 4.1: When using the domain generalization mode, the prediction signal is preprocessed according to step 1 to obtain the electromyographic feature data, and the electromyographic feature data is input into the two input ends of the CSDAN network respectively. The softmax layer of the classification module C obtains the probability distribution of the maximum corresponding category, and then makes a decision;

[0097] Step 4.2: When using the domain adaptation mode, update the data and model according to the process of step 3.2, and then measure the prediction result of the action mode according to step 4.1.

[0098] In order to evaluate the performance of the above-mentioned scheme in the present invention, a non-deep learning method, a deep learning method and the method of the present invention are used to conduct a performance comparison evaluation, and the evaluation content involves the cross-user electromyographic pattern recognition rate and the required amount of calibration data.

[0099] Among the comparative methods, TCA analyzes the migration components between different domains to achieve the alignment of distribution distances. BDA and WBDA align the marginal distribution and conditional distribution while analyzing the domain components to further improve the robustness of the model in the face of category imbalance. CNN directly migrates the user features of the source domain to the target domain for use by learning. This method serves as the baseline level in the comparative method. DANN distinguishes domains by training the discriminator and trains the generator to deceive the discriminator to learn domain-invariant feature representation.

[0100] Table 1 Comparison of recognition rates (%) of myoelectric pattern methods across users

[0101]

[0102] For example, in Table 1, user 1 to user 8 are used as target domain users for testing model performance, and the electromyographic data of the other 7 users constitute the source domain user data set for model training. From the comparison of electromyographic pattern recognition rates in Table 1, it can be seen that not only the recognition rate of the present invention is significantly better than other methods, but also the amount of data used for new user calibration is significantly reduced, especially the domain generalization method, which does not require calibration process and calibration data at all, greatly reducing the user calibration burden.

Claims

1. A cross-user electromyographic pattern recognition method integrating domain adaptation and domain generalization, It is characterized in that The steps include: Step 1: Use the same high-density surface electromyography electrode to collect surface electromyography signals of n users when they perform m pre-specified actions. After data segmentation, activation segment signal extraction, and feature extraction preprocessing, the collected signals are obtained to obtain electromyography feature data with m action labels, thereby forming a source domain user dataset; Randomly select p data from the data of each action in the source domain user dataset to obtain n×m×p electromyographic data as representative data; Select one electromyographic data from all the data and representative data in the source domain user dataset to form a data pair. If the two data action modes in the data pair are the same, the data pair is marked as "same", otherwise the data pair is marked as "different", thus forming a domain generalization sample pair dataset; Step 2: Construct a deep learning network model based on category separation and domain alignment, namely the CSDAN model; Step 2-1: The CSDAN model is a dual-branch structure, including: a shared dual-branch feature extraction module B, a classification module C, and a category separation and domain alignment module D; The shared dual-branch feature extraction module B is composed of two feature extraction networks with the same parameters; each feature extraction network contains a network units, each network unit is composed of a convolution layer, an activation layer, and a batch normalization layer; the first a-1 network units are added with a maximum pooling layer after the batch normalization layer; the ath network unit is finally added with a flattening layer; Step 2-2: Two feature extraction networks are connected to the classification module C and the category separation and domain alignment module D respectively; The classification module C includes: a fully connected layer, a softmax activation layer and a classification cross entropy loss function; The cross entropy loss function is constructed using formula (1): The category separation and domain alignment module D includes: category separation and domain alignment loss function; Use formula (2) to construct the category separation and domain alignment loss function: In formula (1) and formula (2), N represents the number of EMG samples in the source domain user dataset, c 1 is the number of action categories, y ic is the one-hot encoded vector of the actual label of the i-th sample, p ic is the predicted probability of the action category obtained by the output of the softmax activation layer, that is, the predicted probability that the i-th sample belongs to the c-th category; represents the EMG sample of the i-th source domain user, represents the EMG sample of the i-th target domain user, represents the Euclidean distance of the i-th sample pair, Indicates the label of the i-th sample pair, "different" or "same"; m represents the boundary value; λ represents the weight of the loss function's contribution to the model; Step 3: Train the CSDAN model based on the domain generalization sample pair dataset and the domain adaptation sample pair dataset; Step 3-1: If a domain generalization model is used, then train a domain generalization electromyographic pattern recognition classifier: input the domain generalization sample pair data set into the two input ends of the CSDAN model in batches, use the category separation and domain alignment module D to perform gradient descent training on the CSDAN model and update the model parameters, and train until the loss function converges to obtain a domain generalization cross-user electromyographic pattern recognition model; Step 3-2: If a domain adaptation model is used, a domain adaptation sample pair dataset is constructed and a domain adaptation electromyographic pattern recognition model is trained; Use electromyographic electrodes to collect calibrated electromyographic signals of m actions of the new user. According to step 1, the electromyographic signals of the new user are preprocessed and q data with action category labels are randomly selected from each action to obtain a new user calibration data set consisting of m×q electromyographic data. The source domain user data set and the new user calibration data set are used to form a domain adaptation sample pair data set according to step 1. Input the domain adaptation sample pair dataset into the two input terminals of CSDAN in batches, and train the domain adaptation cross-user electromyography pattern recognition model according to step 3-1; Step 4: Construct a bimodal new user action pattern classifier to perform pattern recognition on the new user action pattern; the new user, i.e. the n+1th user, is connected to the electromyography electrode and randomly performs one of the m actions; Step 4-1: When using the domain generalization mode, the predicted signal is preprocessed according to step 1 to obtain the electromyographic feature data, and the electromyographic feature data is input into the two input ends of the CSDAN network respectively. The softmax layer of the classification module C obtains the probability distribution of the maximum corresponding category, and then makes a decision; Step 4-2: When using the domain adaptation mode, update the data and model according to the process of step 3-2, and then obtain the prediction result of the action mode according to step 4-1.

2. A cross-user electromyographic pattern recognition method integrating domain adaptation and domain generalization according to claim 1, It is characterized in that The source domain user data set contains N=2400 electromyographic samples and C=6 action categories.

3. The cross-user electromyographic pattern recognition method integrating domain adaptation and domain generalization according to claim 1, It is characterized in that The boundary value m=1; the loss function contribution weight to the model λ=0.25.

Citation Information

Patent Citations

  • Cross-user myoelectricity mode classification method

    CN114548165A

  • A Two-Step Domain-Adaptive Cross-User EMG Pattern Recognition Method Based on a Teacher-Student Model

    CN114936583A

  • Cross-user myoelectricity mode recognition method capable of reducing user burden

    CN115630324A

  • Multi-mode tested upper limb crossing action recognition model and construction method and application method thereof

    CN115826767A

  • Cross-user hand joint angle estimation method and system and computer equipment

    CN115966015A