Lower limb motion intention recognition method and device based on surface myoelectricity and GNN, terminal, medium and program product
By using graph neural networks to convert and train surface electromyographic signals in graph structures in lower limb exoskeleton robots, the problems of low accuracy and poor robustness of action recognition in the existing technology are solved, and higher accuracy of motion recognition is achieved. and robustness.
Patent Information
- Application Number
- CN202410672443.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
AI Technical Summary
Existing lower-limb exoskeleton robots based on surface electromyographic signals have problems with motion lag, poor recognition accuracy, and poor robustness in motion recognition, and cannot effectively utilize potential correlation information in muscle coordinated movements.
A method based on graph neural network (GNN) is used to preprocess and convert the multi-channel surface electromyographic signal data into a graph structure to construct a graph neural network model for movement intention recognition. Through the feature extraction layer, GCN graph convolution layer, Pooling layers and fully connected layers are trained to improve the recognition accuracy of motion intentions.
It improves the accuracy and robustness of motion recognition, can more effectively utilize the graph structure information in surface electromyographic signals, and improves the performance of lower limb exoskeleton robots in motion recognition.
Smart Images

Figure CN118568592A
Abstract
Description
Technical Field
[0001] The present application relates to the field of motion recognition technology, and in particular to a method, device, terminal, medium and program product for recognizing lower limb movement intention based on surface electromyography and GNN. Background Art
[0002] In recent years, with the development of information technology, robots have gradually become the mainstream solution for power-assisted machinery, and the development of robotics has had a profound impact on various fields of society. Among them, lower limb exoskeleton robots are one of the hot research directions in the field of robotics. With the development and application of bioelectric signals, especially surface electromyography signals, exoskeleton robots are widely used in medical rehabilitation and other fields.
[0003] Surface electromyographic signals represent the electrical potential of muscle cells when they are contracting or at rest. They can reflect muscle activity to a certain extent, have certain predictive properties, and have mature acquisition technology and rich information. They are an ideal data source for driving lower limb exoskeleton robots to move synchronously with the wearer, so that the lower limb exoskeleton robots can assist the wearer's activities. For example, in the field of medical rehabilitation, lower limb orthopedic robots can help patients with lower limb movement disorders walk independently, which helps their rehabilitation. In addition, the rise of artificial intelligence technology has provided an effective technical means for the recognition method based on surface electromyographic signals, making the lower limb exoskeleton robots driven by surface electromyographic signals practical.
[0004] However, the surface electromyography signal recognition technology in the prior art is based on artificial feature engineering, and its recognition performance is heavily dependent on the artificial selection and extraction of features. And although the models using deep learning, such as BP neural network, CNN neural network and other technologies, have overcome the defects of feature engineering and improved the performance of the recognition model. However, the muscle synergy theory in neurophysiology points out that any lower limb movement of the human body is completed by a group of muscles in coordination, and conventional neural network technology cannot utilize the potential correlation information between surface electromyography signal channels (i.e., between different muscles). In addition, due to the joint limitations of signal acquisition technology, recognition technology, hardware technology and other factors, the current lower limb exoskeleton robots driven by surface electromyography signals generally have problems such as delayed movement, poor recognition accuracy, and poor robustness, and may even cause harm to the wearer. Summary of the invention
[0005] In view of the shortcomings of the prior art mentioned above, the purpose of this application is to provide a method, device, terminal, medium and program product for lower limb movement intention recognition based on surface electromyography and GNN, so as to solve the problems in the above prior art.
[0006] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a lower limb movement intention recognition method based on surface electromyography and GNN, including: preprocessing the multi-channel surface electromyography signal data collected from multiple users when performing multiple lower limb continuous movements to obtain a multi-channel surface electromyography signal data set; performing graph structure conversion on each window signal data in the multi-channel surface electromyography signal data set to obtain a multi-channel surface electromyography signal graph structure data set; inputting the obtained multi-channel surface electromyography signal graph structure data set into a constructed graph neural network model for movement intention recognition for training, and evaluating the trained model so as to output the corresponding movement intention recognition result after inputting the multi-channel surface electromyography signal data of the user to be identified.
[0007] In some embodiments of the first aspect of the present application, the preprocessing method includes: filtering and regularizing the multi-channel surface electromyography signal data collected from multiple users when performing multiple continuous lower limb movements, respectively, to obtain multiple processed multi-channel surface electromyography signals; labeling the movement type of each processed multi-channel surface electromyography signal according to the type of lower limb movement; segmenting each multi-channel surface electromyography signal labeled with a movement type according to a set sliding window, to obtain corresponding multiple window signal data; outputting the multiple window signal data corresponding to each multi-channel surface electromyography signal labeled with a movement type as a multi-channel surface electromyography signal data set.
[0008] In some embodiments of the first aspect of the present application, the method of graph structure conversion includes: based on each window signal data in the multi-channel surface electromyography signal data set, calculating the graph structure adjacency matrix of each window signal data and obtaining the node feature data of each window signal data; constructing the graph structure of each window signal data according to the graph structure adjacency matrix and the node feature data of each window signal data.
[0009] In some embodiments of the first aspect of the present application, a graph neural network model constructed for motion intention recognition includes: a feature extraction layer, a GCN graph convolution layer, a pooling layer and a fully connected layer connected in sequence; wherein every two adjacent layers are connected by a PReLU activation function layer; the fully connected layer is also connected to a dropout layer and a softmax activation function layer; the feature extraction layer is used to process the node feature data of each node in the graph structure of each window signal data in the multi-channel surface electromyography signal graph structure data set to obtain a graph structure carrying embedded vector data for each window signal data; the GCN graph convolution layer is used to aggregate the embedded vector data of each node and its neighboring nodes in the graph structure carrying embedded vector data for each window signal data to obtain a graph structure carrying fused feature data for each window signal data; the pooling layer is used to aggregate the fused feature data of all nodes of the graph structure carrying fused feature data for each window signal data to obtain a graph representation vector for each window signal data; the fully connected layer is used to output the corresponding motion intention recognition result based on the graph representation vector of each window signal data.
[0010] In some embodiments of the first aspect of the present application, the feature extraction layer includes multiple parallel feature extraction sublayers; the GCN graph convolution layer includes multiple GCN sublayers; the pooling layer includes multiple pooling sublayers; wherein a PReLU activation function layer is arranged between two adjacent GCN sublayers; and a PReLU activation function layer is arranged between two adjacent pooling sublayers.
[0011] In some embodiments of the first aspect of the present application, the method for evaluating the trained model includes: inputting the acquired multi-channel surface electromyography signal structure test data set into the trained model to obtain the recognition results of the continuous movements of each lower limb; based on the recognition results of the continuous movements of each lower limb, calculating the recognition accuracy of each continuous movement of the lower limb and the average recognition accuracy of all continuous movements of the lower limbs; using the recognition accuracy of each continuous movement of the lower limb, the average recognition accuracy of all continuous movements of the lower limbs, AUC, F1, recognition speed and occupied memory to evaluate the trained model.
[0012] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a lower limb movement intention recognition device based on surface electromyography and GNN, including: a data acquisition module, used to preprocess the multi-channel surface electromyography signal data collected from multiple users when performing multiple lower limb continuous movements to obtain a multi-channel surface electromyography signal data set; a graph structure conversion module, connected to the data acquisition module, used to perform graph structure conversion on each window signal data in the multi-channel surface electromyography signal data set to obtain a multi-channel surface electromyography signal graph structure data set; a model training module, connected to the graph structure conversion module, used to input the obtained multi-channel surface electromyography signal graph structure data set into the constructed graph neural network model for movement intention recognition for training, and evaluate the trained model so as to output the corresponding movement intention recognition result after inputting the multi-channel surface electromyography signal data of the user to be identified.
[0013] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for identifying lower limb movement intention based on surface electromyography and GNN is implemented.
[0014] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer implements the lower limb movement intention recognition method based on surface electromyography and GNN.
[0015] To achieve the above-mentioned purpose and other related purposes, the fifth aspect of the present application provides a computer device / equipment / system / electronic terminal, including a memory, a processor and a computer program stored in the memory; the processor executes the computer program to implement the lower limb movement intention recognition method based on surface electromyography and GNN.
[0016] As described above, the method, device, terminal, medium and program product of lower limb movement intention recognition based on surface electromyography and GNN of the present application have the following beneficial effects:
[0017] The method of the present application improves the accuracy of motion recognition and has high robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Shown is a flow chart of a method for identifying lower limb movement intention based on surface electromyography and GNN in one embodiment of the present application.
[0019] Figure 2 Shown is a schematic diagram of a multi-channel surface electromyography signal before and after preprocessing in a specific embodiment of the present application.
[0020] Figure 3 Shown is a schematic diagram of the process of obtaining a graph structure in one embodiment of the present application.
[0021] Figure 4 Shown is a structural schematic diagram of a graph neural network model for motion intention recognition constructed in one embodiment of the present application.
[0022] Figure 5 Shown is a structural schematic diagram of a lower limb movement intention recognition device based on surface electromyography and GNN in one embodiment of the present application.
[0023] Figure 6 Shown is a schematic diagram of the structure of an electronic terminal in one embodiment of the present application. DETAILED DESCRIPTION
[0024] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0025] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0026] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0027] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.
[0028] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0029] <1> GNN (Graph Neural Network): GNN is a neural network architecture specifically designed to process graph structured data. The core idea of GNN is to use the nodes and edges in the graph structure to capture the complex relationships between nodes, thereby learning the representation of nodes.
[0030] <2> GCN (Graph Convolutional Network): GCN is short for Graph Convolutional Network, which is a deep learning model for graph structured data. GCN can effectively learn node features and capture topological information in the graph structure. GCN is usually used for tasks such as node classification, graph classification, and link prediction.
[0031] <3> Regularization: Regularization is a commonly used technique in machine learning to prevent overfitting and improve the generalization ability of the model. Regularization is achieved by adding an additional term to the loss function, which is usually related to the size of the model parameters.
[0032] <4> Normalization: Normalization is a common technique in data preprocessing, which aims to adjust the numerical range of data to a specific interval so that different features can be compared and processed fairly. Normalization helps improve the performance and convergence speed of machine learning algorithms.
[0033] <5> AUC (Area Under the Curve): AUC is a commonly used indicator for evaluating the performance of neural networks, especially in binary classification problems. The AUC value usually refers to the area under the ROC curve (Receiver Operating Characteristic Curve). The ROC curve is a performance metric that evaluates the performance of a classifier by plotting the relationship between the true positive rate (TPR) and the false positive rate (FPR). The true positive rate is also called the recall rate, which indicates the proportion of samples correctly predicted by the model as positive to the total number of actual positive samples; while the false positive rate indicates the proportion of negative samples that the model incorrectly predicts as positive.
[0034] The present application provides a method, device, terminal, medium and program product for lower limb movement intention recognition based on surface electromyography and GNN, the method comprising preprocessing the multi-channel surface electromyography signal data of multiple users when performing multiple lower limb continuous movements to obtain a multi-channel surface electromyography signal data set; performing graph structure conversion on each window signal data in the multi-channel surface electromyography signal data set to obtain a multi-channel surface electromyography signal graph structure data set; inputting the obtained multi-channel surface electromyography signal graph structure data set into the constructed graph neural network model for movement intention recognition for training, and evaluating the trained model to output the corresponding movement intention recognition result after inputting the multi-channel surface electromyography signal data of the user to be identified. The method of the present application improves the accuracy of movement recognition and has high robustness.
[0035] To facilitate understanding of the embodiments of the present application, first Figure 1 Detailed description. Figure 1 The flowchart of a method for recognizing lower limb movement intention based on surface electromyography and GNN in an embodiment of the present invention is shown. The method for recognizing lower limb movement intention based on surface electromyography and GNN in this embodiment mainly includes the following steps:
[0036] Step S101: pre-processing the collected multi-channel surface electromyography signal data of multiple users performing multiple lower limb continuous movements to obtain a multi-channel surface electromyography signal data set.
[0037] It should be noted that a set of multi-channel surface electromyography signal data is collected corresponding to each continuous movement of the lower limbs.
[0038] In a specific embodiment, surface electromyography sensors are respectively attached to multiple muscles of each user; when the user performs multiple lower limb continuous movements, multi-channel surface electromyography signal data of the user when performing each lower limb continuous movement is obtained through the multiple surface electromyography sensors.
[0039] In one embodiment, the types of muscles include: extensor digitorum longus, medial gastrocnemius, tibialis anterior, peroneus longus, vastus medialis, vastus lateralis, rectus femoris and biceps femoris; the types of lower limb continuous movements include: walking, jogging and climbing.
[0040] In order to better illustrate the process of collecting multi-channel surface electromyography signal data, a specific embodiment is now provided:
[0041] Embodiment 1: A method for collecting multi-channel surface electromyography signal data.
[0042] Three users were selected. Surface electromyography sensors were attached to the skin surface of each user's extensor digitorum longus, medial gastrocnemius, tibialis anterior, peroneus longus, vastus medialis, vastus lateralis, rectus femoris and biceps femoris. Each user was asked to perform three lower limb continuous movements: walking, jogging and uphill. Each continuous movement was repeated three times, each lasting 60 seconds. After each lower limb continuous movement was completed, the next lower limb continuous movement was performed after an interval of 5 minutes to avoid muscle fatigue. When each user performed each lower limb continuous movement, the 8-channel surface electromyography signals of the user when performing the lower limb continuous movement were collected through the 8 attached surface electromyography sensors (sampling frequency was 1000Hz).
[0043] In one embodiment, the preprocessing method includes: filtering and regularizing the multi-channel surface electromyography signal data collected from multiple users when performing multiple continuous lower limb movements, respectively, to obtain multiple processed multi-channel surface electromyography signals; labeling the movement type of each processed multi-channel surface electromyography signal according to the type of lower limb movement; segmenting each multi-channel surface electromyography signal labeled with a movement type according to a set sliding window, to obtain corresponding multiple window signal data; outputting the multiple window signal data corresponding to each multi-channel surface electromyography signal labeled with a movement type as a multi-channel surface electromyography signal data set.
[0044] In one embodiment, the filtering process includes Butterworth filtering and band-stop filtering.
[0045] In a specific embodiment, the multi-channel surface electromyography signal data collected from each user when performing each lower limb continuous movement are sequentially subjected to 20-450 Hz 4th-order Butterworth filtering, 50 Hz band-stop filtering, and regularization.
[0046] In a specific embodiment, the multi-channel surface electromyography signal before preprocessing is as follows: Figure 2 As shown in the left column, the processed multi-channel surface electromyography signal is Figure 2 The signals in the right column are shown.
[0047] In one embodiment, each window signal data has a corresponding motion type label.
[0048] In a specific embodiment, each multi-channel surface electromyographic signal with a motion type label is segmented using a sliding window with a fixed length of 500 sampling points and a step length of 50 sampling points to obtain corresponding multiple window signal data.
[0049] It should be noted that those skilled in the art can set the filter coefficient, window length and regularization method according to actual needs, and the present invention does not limit this.
[0050] Step S102: performing graph structure conversion on each window signal data in the multi-channel surface electromyography signal data set to obtain a multi-channel surface electromyography signal graph structure data set.
[0051] In one embodiment, the method of graph structure conversion includes: based on each window signal data in the multi-channel surface electromyography signal data set, calculating the graph structure adjacency matrix of each window signal data and obtaining the node feature data of each window signal data; constructing the graph structure of each window signal data according to the graph structure adjacency matrix and the node feature data of each window signal data.
[0052] The following will explain the graph structure conversion in detail with reference to the accompanying drawings:
[0053] like Figure 3 As shown, each window signal data is N-channel signal data, and the distance or correlation coefficient between each two channels is calculated without repetition to obtain an N×N matrix A. After multiplying the matrix A with the N×N weight matrix W, the result obtained after the multiplication is normalized to obtain the graph structure adjacency matrix of the window signal data.
[0054] The distance d and the correlation coefficient r can be calculated using the following formula 1 and formula 2:
[0055] d=‖XY‖2; (Formula 1)
[0056]
[0057] Among them, X and Y represent the channel signal data of any two channels, X and Y are sequences, X i Represented as elements in X, Y i Represented as elements in Y, is expressed as the average value of each element in X, It is represented as the average value of each element in Y, and n is represented as the number of elements in X and Y.
[0058] It should be noted that the weight matrix W is an unknown matrix. In the subsequent model training process, the specific value of the weight matrix W will be adjusted to obtain the optimal weight matrix W.
[0059] Further, since the number of channels of the window signal data is N, there are N nodes in the graph structure of the window signal data. Each node corresponds to a node feature data. Static features or dynamic features can be used as the node feature data of the node. The graph structure of the window signal data is constructed according to the node feature data of each node (the node feature data of each node of the window signal data constitutes the node feature data of the window signal data) and the graph structure adjacency matrix of the window signal data. It should be noted that the present invention does not limit the use of static features or dynamic features, and those skilled in the art can select static features or dynamic features as node feature data according to actual needs.
[0060] Among them, the static feature of each node is the channel signal data of the corresponding channel; the dynamic feature of each node is the data of the channel signal data of the corresponding channel after Embedding processing.
[0061] It should be noted that signal embedding usually refers to converting a signal (such as audio, video, text, etc.) into a dense vector representation. This representation can capture the key features of the signal and can be used in various machine learning and deep learning tasks such as classification, clustering, similarity measurement, etc.
[0062] Step S103: Input the obtained multi-channel surface electromyography signal graph structure data set into the constructed graph neural network model for motion intention recognition for training, and evaluate the trained model so as to output the corresponding motion intention recognition result after inputting the multi-channel surface electromyography signal data of the user to be identified.
[0063] In one embodiment, if Figure 4As shown, the constructed graph neural network model for motion intention recognition includes: a feature extraction layer, a GCN graph convolution layer, a pooling layer and a fully connected layer connected in sequence; wherein, every two adjacent layers are connected by a PReLU activation function layer; the fully connected layer is also connected to a dropout layer and a softmax activation function layer; the feature extraction layer is used to process the node feature data of each node in the graph structure of each window signal data in the multi-channel surface electromyography signal graph structure data set to obtain a graph structure carrying embedded vector data for each window signal data; the GCN graph convolution layer is used to aggregate the embedded vector data of each node and its neighboring nodes in the graph structure carrying embedded vector data for each window signal data to obtain a graph structure carrying fused feature data for each window signal data; the pooling layer is used to aggregate the fused feature data of all nodes of the graph structure carrying fused feature data for each window signal data to obtain a graph representation vector for each window signal data; the fully connected layer is used to output the corresponding motion intention recognition result based on the graph representation vector of each window signal data.
[0064] In one embodiment, the feature extraction layer includes multiple parallel feature extraction sublayers; the GCN graph convolution layer includes multiple GCN sublayers; the pooling layer includes multiple pooling sublayers; wherein a PReLU activation function layer is arranged between two adjacent GCN sublayers; and a PReLU activation function layer is arranged between two adjacent pooling sublayers.
[0065] It should be noted that the GCN graph convolution layer may include only one GCN sublayer, and the pooling layer may include only one pooling sublayer. Those skilled in the art may select the number of GCN sublayers included in the GCN graph convolution layer and the number of pooling sublayers included in the pooling layer according to actual needs, and the present invention does not limit this.
[0066] The following will take the graph structure of a window signal data as an example to explain in detail the constructed graph neural network model for motion intention recognition:
[0067] The feature extraction layer is composed of multiple parallel feature extraction sub-layers, which are used to process the node feature data of M nodes in the graph structure of the window signal data to obtain M embedded vector data of length P. The number of embedded vector data is equal to the number of nodes in the graph structure of the window signal data; each feature extraction sub-layer is used to process the node feature data of the corresponding node in the graph structure of the window signal data; M is a positive integer not less than 1.
[0068] The obtained M embedded vector data of length P are updated to corresponding nodes respectively, and a graph structure carrying embedded vector data of the window signal data is obtained.
[0069] It should be noted that the purpose of processing the node feature data using the feature extraction layer is to convert the node feature data into a form that can be processed by the model, making the features more prominent.
[0070] It should also be noted that those skilled in the art can set the specific value of P according to actual needs, and the present invention is not limited to this.
[0071] Furthermore, the GCN graph convolution layer is composed of multiple GCN sub-layers, which are used to aggregate the embedded vector data of each node in the graph structure carrying the embedded vector data of the window signal data and the embedded vector data of the neighboring nodes of the node to obtain the fused feature data of the node, and update the fused feature data of the node to the node. After the fused feature data of all nodes are obtained and updated in the above manner, a graph structure with fused feature data for each node is obtained.
[0072] Furthermore, the following formula 3 and formula 4 can be used to construct the GCN sublayer:
[0073]
[0074] Among them, H (l+1) represents the graph of the l+1th layer, σ represents the activation function, represents the degree matrix with node self-loops added, represents the adjacency matrix with node self-loops added, H (l+1) represents the graph of layer l, W (l) represents the learnable parameters of the lth layer, l is a positive integer and its maximum value is expressed as (the number of GCN sublayers of the GCN graph convolution layer - 1).
[0075] It should be noted that the final output of the GCN graph convolution layer is the graph of the last GCN sublayer of the GCN graph convolution layer, that is, the graph structure carrying the fusion features.
[0076] Furthermore, the pooling layer is composed of multiple pooling sub-layers, which are used to carry the graph structure H of the window signal data with fused feature data. input Aggregate the fusion feature data of all nodes to obtain the graph representation vector H of the window signal data final .
[0077] Furthermore, the pooling layer can be constructed using the following formula 5:
[0078] H final =P j (P j-1 (…P1(H input )); (Formula 5)
[0079] Among them, P i(i=1,2,…,j) represents the pooling layer.
[0080] Furthermore, a fully connected layer is constructed to output the corresponding motion intention recognition result based on the graph representation vector of each window signal data.
[0081] In a specific embodiment, the number of iterations epoch during training is set to 2000, the learning rate lr is set to 0.003, the weight decay is set to 0.0002, the optimizer is Adam, the loss function is cross entropy CrossEntropyLoss, and the training is accelerated using GPU.
[0082] In one embodiment, the method for evaluating the trained model includes: inputting the acquired multi-channel surface electromyography signal structure test data set into the trained model to obtain the recognition results of the continuous movements of each lower limb; based on the recognition results of the continuous movements of each lower limb, calculating the recognition accuracy of each continuous movement of the lower limb and the average recognition accuracy of all continuous movements of the lower limbs; using the recognition accuracy of each continuous movement of the lower limb, the average recognition accuracy of all continuous movements of the lower limbs, AUC, F1, recognition speed and occupied memory to evaluate the trained model.
[0083] The calculation of each evaluation indicator is explained in detail below:
[0084] The acquired multi-channel surface electromyography signal graph structure test data set is input into the trained model to obtain the recognition results of the continuous movements of each lower limb;
[0085] Furthermore, the recognition accuracy of each lower limb action is calculated using the following formula 6:
[0086] The recognition accuracy of each lower limb continuous movement = the number of correct recognitions of the lower limb continuous movement / the number of lower limb continuous movements in the test data set; (Formula 6)
[0087] Furthermore, the following formula 7 is used to calculate the average recognition accuracy of all lower limb continuous movements:
[0088]
[0089] Here, n is equal to the number of lower limb continuous movements in the test dataset.
[0090] Furthermore, the AUC is calculated using the following formula 8:
[0091]
[0092] Among them, M and N represent the number of positive samples and negative samples respectively. Represents the serial number of the i-th sample (the serial number is the number of all samples sorted from small to large), which means adding the serial numbers of all positive samples.
[0093] Furthermore, F1 is calculated using the following formulas 9 to 11:
[0094]
[0095] Furthermore, the recognition speed is calculated using the following formula 12:
[0096]
[0097] Furthermore, the psutil package is used to obtain the system memory size occupied during the test.
[0098] Finally, the trained model was evaluated using six indicators: recognition accuracy of each lower limb continuous movement, average recognition accuracy of all lower limb continuous movements, AUG, F1, recognition speed, and the size of system memory occupied.
[0099] Figure 5 is a schematic block diagram of a lower limb movement intention recognition device based on surface electromyography and GNN provided in an embodiment of the present application. Figure 5 As shown, the device 5 comprises:
[0100] A data acquisition module 51 is used to pre-process the collected multi-channel surface electromyography signal data of multiple users when performing multiple lower limb continuous movements to obtain a multi-channel surface electromyography signal data set;
[0101] A graph structure conversion module 52, connected to the data acquisition module 51, for performing a graph structure conversion on each window signal data in the multi-channel surface electromyography signal data set to obtain a multi-channel surface electromyography signal graph structure data set;
[0102] The model training module 53 is connected to the graph structure conversion module 52, and is used to input the obtained multi-channel surface electromyography signal graph structure data set into the constructed graph neural network model for motion intention recognition for training, and evaluate the trained model so as to output the corresponding motion intention recognition result after inputting the multi-channel surface electromyography signal data of the user to be identified.
[0103] It should be understood that the specific process of each module executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0104] It should also be understood that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0105] In one embodiment, the preprocessing method includes: filtering and regularizing the multi-channel surface electromyography signal data collected from multiple users when performing multiple continuous lower limb movements, respectively, to obtain multiple processed multi-channel surface electromyography signals; labeling the movement type of each processed multi-channel surface electromyography signal according to the type of lower limb movement; segmenting each multi-channel surface electromyography signal labeled with a movement type according to a set sliding window, to obtain corresponding multiple window signal data; outputting the multiple window signal data corresponding to each multi-channel surface electromyography signal labeled with a movement type as a multi-channel surface electromyography signal data set.
[0106] In one embodiment, the method of graph structure conversion includes: based on each window signal data in the multi-channel surface electromyography signal data set, calculating the graph structure adjacency matrix of each window signal data and obtaining the node feature data of each window signal data; constructing the graph structure of each window signal data according to the graph structure adjacency matrix and the node feature data of each window signal data.
[0107] In one embodiment, a graph neural network model constructed for motion intention recognition includes: a feature extraction layer, a GCN graph convolution layer, a pooling layer and a fully connected layer connected in sequence; wherein every two adjacent layers are connected by a PReLU activation function layer; the fully connected layer is also connected to a dropout layer and a softmax activation function layer; the feature extraction layer is used to process the node feature data of each node in the graph structure of each window signal data in the multi-channel surface electromyography signal graph structure data set to obtain a graph structure carrying embedded vector data for each window signal data; the GCN graph convolution layer is used to aggregate the embedded vector data of each node and its neighboring nodes in the graph structure carrying embedded vector data for each window signal data to obtain a graph structure carrying fused feature data for each window signal data; the pooling layer is used to aggregate the fused feature data of all nodes of the graph structure carrying fused feature data for each window signal data to obtain a graph representation vector for each window signal data; the fully connected layer is used to output the corresponding motion intention recognition result based on the graph representation vector of each window signal data.
[0108] In one embodiment, the feature extraction layer includes multiple parallel feature extraction sublayers; the GCN graph convolution layer includes multiple GCN sublayers; the pooling layer includes multiple pooling sublayers; wherein a PReLU activation function layer is arranged between two adjacent GCN sublayers; and a PReLU activation function layer is arranged between two adjacent pooling sublayers.
[0109] In one embodiment, the method for evaluating the trained model includes: inputting the acquired multi-channel surface electromyography signal structure test data set into the trained model to obtain the recognition results of the continuous movements of each lower limb; based on the recognition results of the continuous movements of each lower limb, calculating the recognition accuracy of each continuous movement of the lower limb and the average recognition accuracy of all continuous movements of the lower limbs; using the recognition accuracy of each continuous movement of the lower limb, the average recognition accuracy of all continuous movements of the lower limbs, AUC, F1, recognition speed and occupied memory to evaluate the trained model.
[0110] Figure 6 is a schematic block diagram of an electronic terminal provided in an embodiment of the present application. Figure 6 As shown, the electronic terminal includes: at least one processor 601, a memory 602, at least one network interface 603 and a user interface 605. The various components in the device are coupled together through a bus system 604. It can be understood that the bus system 604 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 604 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 6 In the specification, various buses are labeled as bus systems.
[0111] The user interface 605 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.
[0112] It is understood that the memory 602 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.
[0113] The memory 602 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic terminal 600. Examples of these data include: any executable program used to operate on the electronic terminal 600, such as an operating system 6021 and an application 6022; the operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 6022 can include various applications, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The XX method provided by the embodiment of the present invention can be included in the application 6022.
[0114] The method disclosed in the above embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 601 or the instruction in the form of software. The above processor 601 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 601 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor 601 may be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0115] In an exemplary embodiment, the electronic terminal 600 may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD) to execute the aforementioned method.
[0116] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, the computer executes Figure 1 The method in the illustrated embodiment.
[0117] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable storage medium, which stores a program code, and when the program code is run on a computer, the computer executes Figure 1 The method in the illustrated embodiment.
[0118] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0119] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0121] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0124] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When loading and executing computer program instructions (programs) on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVDs), or semiconductor media (e.g., solid state disks (SSDs), etc.).
[0125] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0126] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0127] In summary, the present application provides a method, device, terminal, medium and program product for lower limb movement intention recognition based on surface electromyography and GNN, the method comprising preprocessing the multi-channel surface electromyography signal data of multiple users when performing multiple lower limb continuous movements to obtain a multi-channel surface electromyography signal data set; performing graph structure conversion on each window signal data in the multi-channel surface electromyography signal data set to obtain a multi-channel surface electromyography signal graph structure data set; inputting the obtained multi-channel surface electromyography signal graph structure data set into the constructed graph neural network model for movement intention recognition for training, and evaluating the trained model to output the corresponding movement intention recognition result after inputting the multi-channel surface electromyography signal data of the user to be identified. The method of the present application improves the accuracy of movement recognition and has high robustness. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0128] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A method for lower limb movement intention recognition based on surface electromyography and GNN, characterized in that: include: Preprocessing the multi-channel surface electromyography signal data collected from multiple users when performing multiple lower limb continuous movements to obtain a multi-channel surface electromyography signal data set; Performing graph structure conversion on each window signal data in the multi-channel surface electromyography signal data set to obtain a multi-channel surface electromyography signal graph structure data set; The obtained multi-channel surface electromyography signal graph structure data set is input into the constructed graph neural network model for motion intention recognition for training, and the trained model is evaluated so as to output the corresponding motion intention recognition result after inputting the multi-channel surface electromyography signal data of the user to be identified.
2. The method for recognizing lower limb movement intention based on surface electromyography and GNN according to claim 1 is characterized in that: Preprocessing methods include: Performing filtering and regularization processing on the multi-channel surface electromyography signal data of multiple users when performing multiple lower limb continuous movements respectively, to obtain multiple processed multi-channel surface electromyography signals; According to the type of lower limb movement, each processed multi-channel surface electromyographic signal is labeled with the movement type; According to the set sliding window, each multi-channel surface electromyographic signal marked with the movement type is segmented to obtain corresponding multiple window signal data; The plurality of window signal data corresponding to each of the multi-channel surface electromyography signals marked with the motion type are output as a multi-channel surface electromyography signal data set.
3. The method for recognizing lower limb movement intention based on surface electromyography and GNN according to claim 2 is characterized in that: The methods of graph structure conversion include: Based on each window signal data in the multi-channel surface electromyography signal data set, a graph structure adjacency matrix of each window signal data is calculated and node feature data of each window signal data is obtained; The graph structure of each window signal data is constructed according to the graph structure adjacency matrix of each window signal data and the node feature data.
4. The method for recognizing lower limb movement intention based on surface electromyography and GNN according to claim 1, characterized in that: The graph neural network model constructed for motion intention recognition includes: The feature extraction layer, GCN graph convolution layer, pooling layer and fully connected layer are connected in sequence; Wherein, every two adjacent layers are connected through a PReLU activation function layer; the fully connected layer is also connected to a dropout layer and a softmax activation function layer; The feature extraction layer is used to process the node feature data of each node in the graph structure of each window signal data in the multi-channel surface electromyography signal graph structure data set to obtain the graph structure carrying embedded vector data for each window signal data; The GCN graph convolution layer is used to aggregate the embedded vector data of each node and its neighboring nodes in the graph structure carrying the embedded vector data of each window signal data to obtain the graph structure carrying the fused feature data of each window signal data; The pooling layer is used to aggregate the fused feature data of all nodes of the graph structure carrying the fused feature data of each window signal data to obtain a graph representation vector of each window signal data; The fully connected layer is used to output the corresponding motion intention recognition result based on the graph representation vector of each window signal data.
5. The method for recognizing lower limb movement intention based on surface electromyography and GNN according to claim 4 is characterized in that: The feature extraction layer includes multiple parallel feature extraction sub-layers; the GCN graph convolution layer includes multiple GCN sub-layers; The pooling layer includes multiple pooling sublayers; wherein a PReLU activation function layer is provided between two adjacent GCN sublayers; A PReLU activation function layer is set between two adjacent pooling sub-layers.
6. The method for recognizing lower limb movement intention based on surface electromyography and GNN according to claim 1, characterized in that: Ways to evaluate the trained model include: The acquired multi-channel surface electromyography signal test data set is input into the trained model to obtain the recognition results of the continuous movements of each lower limb; Based on the obtained recognition results of each lower limb continuous movement, the recognition accuracy of each lower limb continuous movement and the average recognition accuracy of all lower limb continuous movements are calculated; The trained model was evaluated using the recognition accuracy of each lower limb continuous movement, the average recognition accuracy of all lower limb continuous movements, AUC, F1, recognition speed, and memory usage.
7. A lower limb movement intention recognition device based on surface electromyography and GNN, characterized in that: include: A data acquisition module, used for preprocessing the collected multi-channel surface electromyography signal data of multiple users when performing multiple lower limb continuous movements to obtain a multi-channel surface electromyography signal data set; A graph structure conversion module, connected to the data acquisition module, for performing graph structure conversion on each window signal data in the multi-channel surface electromyography signal data set to obtain a multi-channel surface electromyography signal graph structure data set; The model training module is connected to the graph structure conversion module, and is used to input the obtained multi-channel surface electromyography signal graph structure data set into the constructed graph neural network model for motion intention recognition for training, and evaluate the trained model so as to output the corresponding motion intention recognition result after inputting the multi-channel surface electromyography signal data of the user to be identified.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. A computer program product, characterized in that The computer program product includes a computer program code, and when the computer program code is executed on a computer, the computer is enabled to implement the method according to any one of claims 1 to 6.
10. An electronic terminal comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the method according to any one of claims 1 to 6.
Citation Information
Cited By
Modularization-based lower limb multi-joint intention recognition method and system
CN119888448A
A modular lower limb multi-joint intention recognition method and system
CN119888448B
Method and device for recognizing oral movement, storage medium and electronic equipment
CN120763727A
