Gesture recognition method, device and storage medium based on electromyographic signal

By generating myoelectric pattern vectors and initial myoelectric distribution matrices, and combining them with the candidate distribution matrices in the myoelectric database for comparison calculations, the target collection position and gestures are determined, which solves the existing problems of low gesture recognition accuracy and increased device size. High accuracy of portable gesture recognition is achieved.

CN118519537BActive Publication Date: 2024-10-22ROUMAI MEDICAL (SHENZHEN) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969771.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-22
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The gesture recognition accuracy of existing gesture recognition methods is not high, and increasing the number of electrodes to improve the recognition accuracy will increase the size of the device, making it unsuitable for portable wearable application scenarios.

Method used

By collecting EMG signals, the EMG vector and the initial EMG distribution matrix are generated, and the candidate distribution matrix in the EMG database is used for comparison and calculation to determine the target acquisition location and gesture, thereby improving the accuracy of gesture recognition.

Benefits of technology

It improves the accuracy and precision of gesture recognition in portable wearable scenarios and avoids device volume problems caused by an increase in the number of electrodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519537B_ABST
    Figure CN118519537B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a gesture recognition method, device and storage medium based on electromyographic signals, which belongs to the field of gesture recognition technology. The method includes: collecting a first electromyographic signal group generated based on a predetermined gesture; generating a first electromyographic graph vector according to the first electromyographic signal group; obtaining a candidate electromyographic distribution matrix corresponding to the predetermined gesture from a preset electromyographic database to obtain an initial electromyographic distribution matrix; comparing and calculating the first electromyographic graph vector and the initial electromyographic distribution matrix to obtain a target acquisition position of the electromyographic signal acquisition device; collecting a second electromyographic signal group generated based on the gesture to be recognized; generating a second electromyographic graph vector according to the second electromyographic signal group; determining the gesture according to the second electromyographic graph vector, the target acquisition position and multiple candidate electromyographic distribution matrices in the electromyographic database to obtain a target gesture, and the target gesture is used as the recognition result of the gesture to be recognized. The embodiment of the present application can improve the accuracy of gesture recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of gesture recognition technology, and in particular to a gesture recognition method, device and storage medium based on electromyographic signals. Background Art

[0002] The myoelectric acquisition device is used to collect the myoelectric signals on the skin of the user's arm, and the myoelectric signals will change with the different gestures made by the user. By calculating the myoelectric signals, the user's gesture can be recognized. The gesture recognition accuracy of the current gesture recognition method is not high.

[0003] At present, the recognition accuracy can be improved by increasing the number of electrodes of the electromyography acquisition device to collect more electromyography signals, but this will increase the size of the electromyography acquisition device, making it inconvenient for users to wear and not suitable for portable wearable application scenarios.

[0004] Therefore, how to improve the accuracy of gesture recognition has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The main purpose of the embodiments of the present application is to propose a gesture recognition method, device and storage medium based on electromyographic signals, aiming to improve the accuracy of gesture recognition and being suitable for portable wearable scenarios.

[0006] To achieve the above object, a first aspect of an embodiment of the present application proposes a gesture recognition method based on electromyographic signals, the method comprising:

[0007] Collecting a first electromyographic signal group generated based on a predetermined gesture by an electromyographic signal collecting device;

[0008] generating a first electromyographic vector according to the first electromyographic signal group;

[0009] Acquire a candidate myoelectric distribution matrix corresponding to the predetermined gesture from a preset myoelectric database to obtain an initial myoelectric distribution matrix; wherein the candidate myoelectric distribution matrix corresponds to a candidate gesture, and the candidate myoelectric distribution matrix indicates the relationship between the myoelectric signal of the candidate gesture and the acquisition position; the initial myoelectric distribution matrix indicates the relationship between the myoelectric signal of the predetermined gesture and the acquisition position;

[0010] Compare and calculate the first electromyographic diagram vector and the initial electromyographic distribution matrix to obtain a target acquisition position of the electromyographic signal acquisition device;

[0011] Collecting a second myoelectric signal group generated based on the gesture to be recognized by the myoelectric signal acquisition device;

[0012] generating a second electromyographic vector according to the second electromyographic signal group;

[0013] Gesture determination is performed according to the second electromyogram vector, the target acquisition position and a plurality of candidate electromyogram distribution matrices in the electromyogram database to obtain a target gesture, and the target gesture serves as a recognition result of the gesture to be recognized.

[0014] In some embodiments, the initial myoelectric distribution matrix has a first number of columns and a second number of rows, and the target acquisition position includes a target row, a target column, and a target slope; the step of comparing and calculating the first electromyographic vector and the initial myoelectric distribution matrix to obtain the target acquisition position of the electromyographic signal acquisition device includes:

[0015] Calculate the first matching error corresponding to each row according to the first electromyographic graph vector and the elements of each row in the initial electromyographic distribution matrix, and take the row corresponding to the minimum first matching error as the target row;

[0016] Combining multiple slopes in a preset slope range with the first number of columns in pairs to obtain candidate combinations;

[0017] According to the first electromyographic graph vector, the target row and the elements of each row in the initial electromyographic distribution matrix, the second matching error corresponding to each candidate combination is calculated, and the candidate combination corresponding to the smallest second matching error is taken as the target combination, and the target combination includes the target column and the target slope.

[0018] In some embodiments, the candidate combination includes candidate columns and candidate slopes; and calculating the second matching error corresponding to each candidate combination according to the first electromyographic graph vector, the target row, and the elements of each column in the initial electromyographic distribution matrix includes:

[0019] Perform a modulo operation on the candidate column and the first number to obtain a matrix column coordinate formula;

[0020] Obtaining a row offset according to the candidate slope and the first number, and adding the row offset to the target row to obtain a matrix row coordinate formula;

[0021] Substitute the matrix row coordinate formula and the matrix column coordinate formula into the initial electromyographic distribution matrix to obtain matrix elements, and accumulate and sum the absolute values ​​of the differences between the elements of the first electromyographic graph vector and the matrix elements to obtain the second matching error corresponding to each candidate combination.

[0022] In some embodiments, the target row is determined by the following formula:

[0023] ,

[0024] ,

[0025] Indicates the first matching error corresponding to each row; represents the first electromyographic vector The i+1th element in ; represents the initial myoelectric distribution matrix, Represents the element in the i+1th column and y+1th row in the initial myoelectric distribution matrix; represents the i+1th column, ; Indicates OK, ; represents the target row; Indicates When reaching minimum The value of

[0026] The number of elements of the first electromyographic graph vector is the first number, the first number is X, and the second number is Y.

[0027] In some embodiments, the target column and the target slope are determined by the following formula:

[0028] ,

[0029] ,

[0030] represents the second matching error corresponding to each candidate combination; represents the candidate combination; Indicates List, ; represents the candidate slope, and the candidate slope is within the preset slope range Take the value in represents the first electromyographic vector The elements; represents the initial myoelectric distribution matrix; represents the remainder operation, Indicates that right Take the remainder; Indicates List, ; represents the target row; represents the target combination, represents the target column, represents the target slope; Indicates When reaching minimum The value of

[0031] in, The row offset of the candidate with slope k and column i+1 is defined as:

[0032] ,

[0033] Indicates rounding operation, and the operation result retains integer digits;

[0034] in, When Set to Y-1; When Set to 0.

[0035] In some embodiments, the step of performing gesture determination according to the second electromyography vector, the target acquisition position, and the plurality of candidate electromyography distribution matrices in the electromyography database to obtain a target gesture includes:

[0036] Calculating a gesture matching error according to the second electromyographic graph vector, the target acquisition position, and a plurality of candidate electromyographic distribution matrices in the electromyographic database;

[0037] The candidate myoelectric distribution matrix corresponding to the minimum gesture matching error is used as the target myoelectric distribution matrix, and the gesture corresponding to the target myoelectric distribution matrix is ​​used as the target gesture.

[0038] In some embodiments, the target gesture is determined by the following formula:

[0039] ,

[0040] ,

[0041] represents the gesture matching error, Represents the candidate myoelectric distribution matrix Corresponding candidate gestures; represents the second electromyographic vector The elements; Indicates that right Take the remainder; indicating the target gesture; Indicates When reaching minimum The value of

[0042] The number of elements of the second electromyographic graph vector is the first number, and the first number is X.

[0043] In some embodiments, after obtaining the target gesture and using the target gesture as the recognition result of the gesture to be recognized, the method further includes:

[0044] Compare and calculate the second electromyographic diagram vector and the target electromyographic distribution matrix, and update the target acquisition position;

[0045] According to the second electromyographic diagram vector and the target acquisition position, the target electromyographic distribution matrix is ​​updated to obtain an updated target electromyographic distribution matrix;

[0046] The updated target myoelectric distribution matrix is ​​stored in the myoelectric database to update the myoelectric database.

[0047] To achieve the above objectives, the second aspect of an embodiment of the present application proposes a gesture recognition device based on electromyographic signals, the device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the method described in the first aspect when executing the computer program.

[0048] To achieve the above-mentioned purpose, a third aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0049] The gesture recognition method, device and storage medium based on electromyographic signals proposed in the present application, when the user makes a predetermined gesture, collects a first electromyographic signal group generated based on the predetermined gesture to generate a first electromyographic graph vector, compares and calculates the first electromyographic graph vector and the initial electromyographic distribution matrix, obtains the target collection position, and thus initializes the position of the electromyographic signal collection device. In addition, the present application uses the initial electromyographic distribution matrix to indicate the relationship between the electromyographic signal of the predetermined gesture and the collection position. When the user makes a specific gesture to be recognized, collects a second electromyographic signal group generated based on the gesture to be recognized to generate a second electromyographic graph vector, determines the gesture based on the second electromyographic graph vector, the target collection position and multiple candidate electromyographic distribution matrices in the electromyographic database, and obtains the target gesture, thereby improving the accuracy of the gesture recognition method. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 is a flow chart of a gesture recognition method based on electromyographic signals provided in an embodiment of the present application;

[0051] Figure 2 This is a schematic diagram of a mapping relationship provided by an embodiment of the present application;

[0052] Figure 3 This is provided by an embodiment of the present application Figure 1 Flowchart of step 104 in;

[0053] Figure 4 The embodiment of this application provides Figure 1 Flow chart of step 107 in;

[0054] Figure 5 is a flowchart of a gesture recognition method based on electromyographic signals provided in another embodiment of the present application;

[0055] Figure 6 It is a process schematic diagram of an application example provided in an embodiment of the present application;

[0056] Figure 7 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0058] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0059] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0060] First, some nouns involved in this application are analyzed:

[0061] Electromyographic signal: It is the electrical signal accompanying muscle contraction. Since muscle movement generates electromyographic signal, and each specific gesture corresponds to a specific muscle movement, it is possible to identify a specific gesture by collecting electromyographic signal on the surface of the arm skin.

[0062] Myoelectric acquisition device: a device used to collect myoelectric signals. The number of channels of the myoelectric acquisition device reflects the number of myoelectric signals collected by the device.

[0063] The gesture recognition method based on electromyographic signals, device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the gesture recognition method based on electromyographic signals in the embodiments of the present application is described.

[0064] The gesture recognition method based on electromyographic signals provided in the embodiments of the present application can be applied to a terminal, a server, or software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop, a desktop computer, etc.; the server can be configured as an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the gesture recognition method based on electromyographic signals, etc., but is not limited to the above forms.

[0065] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0066] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0067] Figure 1This is an optional flow chart of a gesture recognition method based on electromyographic signals provided in an embodiment of the present application. The gesture recognition method based on electromyographic signals includes:

[0068] Step 101, collecting a first electromyographic signal group generated based on a predetermined gesture through an electromyographic signal collection device;

[0069] Step 102, generating a first electromyographic vector according to the first electromyographic signal group;

[0070] Step 103, obtaining a candidate myoelectric distribution matrix corresponding to a predetermined gesture from a preset myoelectric database to obtain an initial myoelectric distribution matrix; wherein the candidate myoelectric distribution matrix corresponds to a candidate gesture, and the candidate myoelectric distribution matrix indicates the relationship between the myoelectric signal of the candidate gesture and the acquisition position; the initial myoelectric distribution matrix indicates the relationship between the myoelectric signal of the predetermined gesture and the acquisition position;

[0071] Step 104, comparing and calculating the first electromyographic diagram vector and the initial electromyographic distribution matrix to obtain a target acquisition position of the electromyographic signal acquisition device;

[0072] Step 105, collecting a second myoelectric signal group generated based on the gesture to be recognized by using an electromyographic signal collection device;

[0073] Step 106, generating a second electromyographic vector according to the second electromyographic signal group;

[0074] Step 107 , determining the gesture according to the second electromyogram vector, the target acquisition position and multiple electromyography distribution matrices in the electromyography database, and obtaining a target gesture, which is used as a recognition result of the gesture to be recognized.

[0075] The beneficial effects of the embodiments of the present application include but are not limited to: when the user makes a predetermined gesture, the first electromyographic signal group generated based on the predetermined gesture is collected to generate a first electromyographic vector, the first electromyographic vector and the initial electromyographic distribution matrix are compared and calculated to obtain the target collection position, thereby initializing the position of the electromyographic signal collection device. In addition, the present application uses the initial electromyographic distribution matrix to indicate the relationship between the electromyographic signal of the predetermined gesture and the collection position, and when the user makes a specific gesture to be identified, the second electromyographic signal group generated based on the gesture to be identified is collected to generate a second electromyographic vector, and the gesture is determined according to the second electromyographic vector, the target collection position and multiple candidate electromyographic distribution matrices in the electromyographic database to obtain the target gesture, thereby improving the accuracy of the gesture recognition method.

[0076] It should be noted that in order to improve the accuracy of gesture recognition, the current electromyographic acquisition device can collect high-density electromyographic signals by increasing the number of electrodes. However, the increase in the number of electrodes will make the device bulky and large in size. In addition, some electromyographic acquisition devices have distributed electrodes. In order to obtain high-resolution electromyographic signal distribution, multiple electrodes often need to be distributed and attached to different parts of the hand to control hand movements, which is not convenient for users to wear. In this regard, the gesture recognition method based on electromyographic signals provided in the embodiment of the present application determines the collection position of the device by generating an electromyographic wire diagram vector, and determines the gesture based on multiple candidate electromyographic distribution matrices in the electromyographic database. It is suitable for portable wearable application scenarios, and can improve the accuracy and precision of gesture recognition and identify the user's gesture.

[0077] Specifically, the unit of myoelectric signal is V (volt) or dB (decibel).

[0078] In step 102 of some embodiments, generating a first electromyogram vector according to a first electromyogram signal includes: performing interpolation and fitting calculations on the first electromyogram signal according to a first number to generate the first electromyogram vector; wherein the first electromyogram vector includes a first number of elements.

[0079] In step 106 of some embodiments, generating a second electromyogram vector according to the second electromyogram signal group includes: performing interpolation and fitting calculations on the second electromyogram signal according to the first number to generate the second electromyogram vector; wherein the second electromyogram vector includes the first number of elements.

[0080] It should be noted that different electromyographic signal acquisition devices may have different numbers of acquisition channels, and the number of collected electromyographic signals is also different. The advantage of this embodiment is that the electromyographic signals (including the first electromyographic signal and the second electromyographic signal) are interpolated and fitted to obtain electromyographic graph vectors (including the first electromyographic graph vector and the second electromyographic graph vector), and the elements in the electromyographic graph vector are the same as the number of columns of the electromyographic distribution matrix (including the candidate electromyographic distribution matrix and the initial electromyographic distribution matrix). Therefore, the number of elements in the electromyographic graph vector is independent of the number of acquisition channels of the electromyographic signal acquisition device, thereby avoiding the recognition deviation caused by the difference in the number of acquisition channels and improving the versatility and reliability of the method.

[0081] See also Figure 2In some embodiments, each element of the electromyographic distribution matrix corresponds to an electromyographic signal collected from an area of ​​the arm skin. Specifically, before step 101, the arm skin is pre-projected onto the side surface of a cylinder in equal proportions, each square on the side surface of the cylinder is of equal size, and each square corresponds to an area on the arm skin one by one. Within a preset period of time after the user makes a specific gesture, the electromyographic signal in each square is collected by the electromyographic signal acquisition device, and the electromyographic distribution matrix is ​​established based on the electromyographic signal. Multiple electromyographic distribution matrices are stored in a database to obtain an electromyographic database.

[0082] It should be noted that Figure 2 The side surface of the middle cylinder has a two-dimensional coordinate system, in which the X-axis corresponds to the column of the myoelectric distribution matrix, and the Y-axis corresponds to the row of the myoelectric distribution matrix.

[0083] In some embodiments, the process of establishing a preset electromyographic database can be specifically to obtain a large amount of electromyographic signal data by testing different users, and then establish an electromyographic database based on the data. Specifically, the electromyographic distribution matrix calculated when different users make the same gesture can be averaged, and the averaged electromyographic distribution matrix can be saved in the electromyographic database. In addition, for gestures made by specific users, after collecting electromyographic signals and generating electromyographic graph vectors, the electromyographic graph vectors and the original electromyographic distribution matrix in the electromyographic database can be weighted calculated to update the electromyographic database corresponding to the gesture, thereby adding user data to the electromyographic database to improve the pertinence of this method.

[0084] It should be noted that each electromyographic distribution matrix in the electromyographic database has a first number of columns and a second number of rows, and the first number and the second number can be used to represent the grid resolution of the electromyographic signal distribution in the side surface of the cylinder.

[0085] See also Figure 3 In some embodiments, the initial myoelectric distribution matrix has a first number of columns and a second number of rows. The target acquisition position includes a target row, a target column, and a target slope. Step 104 includes:

[0086] Step 201, calculating the first matching error corresponding to each row according to the first electromyogram vector and the elements of each row in the initial electromyogram distribution matrix, and taking the row corresponding to the smallest first matching error as the target row;

[0087] Step 202, combining a plurality of slopes in a preset slope range with a first number of columns in pairs to obtain candidate combinations;

[0088] Step 203, calculate the second matching error corresponding to each candidate combination according to the first electromyogram vector, the target row and the elements of each column in the initial electromyogram distribution matrix, and take the candidate combination corresponding to the smallest second matching error as the target combination, wherein the target combination includes a target column and a target slope.

[0089] The advantage of this embodiment is that the target acquisition position of the electromyographic signal acquisition device is accurately defined by the target row, target column and target slope, and after the target row is calculated, the target column and target slope are calculated based on the target row, the first electromyographic diagram vector, and the elements of each column in the initial electromyographic distribution matrix, thereby improving the accuracy of the method.

[0090] In step 201 of some embodiments, elements of each row in the initial myoelectric distribution matrix are obtained by traversing each row in the initial myoelectric distribution matrix.

[0091] In step 202 of some embodiments, each column in the initial myoelectric distribution matrix is ​​traversed to obtain elements of each column in the initial myoelectric distribution matrix, and a slope is selected within a preset slope range to obtain a candidate combination.

[0092] Specifically, the electromyographic signal acquisition device can be an electromyographic bracelet. The electromyographic signal can also be acquired by other devices, but is not limited thereto. The electromyographic bracelet can be located at different positions on the user's arm, for example, parallel to the wrist.

[0093] It should be noted that the target slope is used to represent the slope corresponding to the collection position of the myoelectric wristband in the myoelectric distribution matrix.

[0094] In some embodiments, the candidate combination includes candidate columns and candidate slopes; and calculating the second matching error corresponding to each candidate combination according to the first electromyographic graph vector, the target row, and the elements of each column in the initial electromyographic distribution matrix includes:

[0095] Perform a modulo operation on the candidate column and the first number to obtain a matrix column coordinate formula;

[0096] Obtaining a row offset according to the candidate slope and the first number, and adding the row offset to the target row to obtain a matrix row coordinate formula;

[0097] Substitute the matrix row coordinate formula and the matrix column coordinate formula into the initial electromyographic distribution matrix to obtain matrix elements, and accumulate and sum the absolute values ​​of the differences between the elements of the first electromyographic vector and the matrix elements to obtain the second matching error corresponding to each candidate combination.

[0098] The advantage of this embodiment is that the target acquisition position of the electromyographic signal acquisition device is accurately defined by the target row, target column and target slope, and after the target row is calculated, the target column and target slope are calculated based on the target row, the first electromyographic diagram vector, and the elements of each column in the initial electromyographic distribution matrix, thereby improving the accuracy of the method.

[0099] In some embodiments, the target row is determined by the following formula:

[0100] Formula (1),

[0101] Formula (2),

[0102] Indicates the first matching error corresponding to each row; Represents the first myoelectric electrogram vector The i+1th element in ; represents the initial EMG distribution matrix, Represents the element in the i+1th column and y+1th row in the initial myoelectric distribution matrix; represents the i+1th column, ; Indicates OK, ; Indicates the target row; Indicates When reaching minimum The value of

[0103] The number of elements of the first electromyographic graph vector is a first number, the first number is X, and the second number is Y.

[0104] The advantage of this embodiment is that the target row can be accurately calculated by formula (1) and formula (2), and the number of elements of the first electromyographic graph vector is equal to the number of columns of the initial electromyographic distribution matrix, which is convenient for calculation.

[0105] In some embodiments, the target column and target slope are determined by the following formula:

[0106] Formula (3),

[0107] Formula (4),

[0108] represents the second matching error corresponding to each candidate combination; represents a candidate combination; Indicates List, ; Represents a candidate slope, which is within the preset slope range ( Take the value in Represents the first myoelectric electrogram vector The elements; represents the initial EMG distribution matrix; represents the remainder operation, Indicates that right Take the remainder; Indicates List, ; Indicates the target row; represents the target combination, represents the target column, represents the target slope; Indicates When reaching minimum The value of

[0109] in, The row offset of the candidate with slope k and column i+1 is defined as:

[0110] Formula (5),

[0111] Indicates rounding operation, and the operation result retains integer digits;

[0112] in, When Set to Y-1; When Set to 0.

[0113] The advantage of this embodiment is that, through formula (3), formula (4) and formula (5), after the target row is calculated, the target column and the target slope are further accurately calculated to obtain the target acquisition position.

[0114] It should be noted that when the row coordinate exceeds the limit, it is considered according to the limit value, for example Consider it as Y-1. Consider it as 0.

[0115] It should be noted that due to the The column represents the lateral position of the myoelectric bracelet on the arm, and the myoelectric bracelet is a ring-shaped structure connected end to end, so it is necessary to convert the lateral position data of the myoelectric bracelet through modulo operation, so as to further calculate the target slope.

[0116] Specifically, Can indicate the The candidate slopes are When The offset in direction.

[0117] See also Figure 4 In some embodiments, step 107 includes:

[0118] Step 301, calculating a gesture matching error according to a second electromyogram vector, a target acquisition position, and a plurality of candidate electromyogram distribution matrices in an electromyogram database;

[0119] Step 302: The candidate myoelectric distribution matrix corresponding to the minimum gesture matching error is used as the target myoelectric distribution matrix, and the gesture corresponding to the target myoelectric distribution matrix is ​​used as the target gesture.

[0120] The advantage of this embodiment is that when the user makes a specific gesture to be recognized, the gesture matching error is calculated based on the second electromyogram vector, the target acquisition position and multiple candidate electromyogram distribution matrices in the electromyography database to obtain the target gesture, thereby improving the accuracy of the gesture recognition method.

[0121] In some embodiments, the target gesture is determined by the following formula:

[0122] Formula (6),

[0123] Formula (7),

[0124] represents the gesture matching error, Represents the candidate EMG distribution matrix Corresponding candidate gestures; Represents the second myoelectric graph vector The elements; Indicates that right Take the remainder; Indicates the target gesture; Indicates When reaching minimum The value of

[0125] The number of elements of the second electromyographic graph vector is a first number, and the first number is X.

[0126] The advantage of this embodiment is that the gesture matching error is calculated by formula (6) and formula (7), thereby obtaining the target gesture, thereby improving the accuracy of the gesture recognition method.

[0127] It should be noted that the candidate EMG distribution matrix It is obtained by traversing multiple candidate EMG distribution matrices in the EMG database.

[0128] It should be noted that in formula (6) The definition of is shown in formula (5).

[0129] See also Figure 5 In some embodiments, after step 107, the gesture recognition method based on electromyographic signals further includes:

[0130] Step 401, compare and calculate the second electromyographic vector and the target electromyographic distribution matrix, and update the target acquisition position;

[0131] Step 402, updating the target electromyographic distribution matrix according to the second electromyographic vector and the target acquisition position to obtain an updated target electromyographic distribution matrix;

[0132] Step 403: Store the updated target myoelectric distribution matrix into the myoelectric database to update the myoelectric database.

[0133] The advantage of this embodiment is that, considering that the electromyographic signal acquisition device may change position during use due to factors such as the user's movement, the target acquisition position is calibrated and updated, that is, the position of the electromyographic signal acquisition device is updated. In addition, after collecting the second electromyographic signal to generate the second electromyographic electrogram vector, the second electromyographic electrogram vector is used to update the target electromyographic distribution matrix, so that the target electromyographic distribution matrix can more accurately reflect the electromyographic signals generated by the user when making the target gesture, and the database is trained for different users, thereby improving the accuracy and pertinence of this method. In summary, this application improves the reliability and accuracy of the gesture recognition method.

[0134] In step 401 of some embodiments, the method for updating the target acquisition position can refer to step 201 and step 202, and the specific calculation process can refer to formula (1), formula (2), formula (3), formula (4) and formula (5), which will not be repeated here.

[0135] In step 402 of some embodiments, the target electromyographic distribution matrix is ​​updated according to the second electromyographic diagram vector and the target acquisition position to obtain an updated target electromyographic distribution matrix, and the corresponding formula is:

[0136] Formula (8),

[0137] is the target EMG distribution matrix; is the preset weight value; is the second myoelectrical electrogram vector The elements in ; among them, Represents the coordinates of the target matrix element, defined as:

[0138] Formula (9),

[0139] It should be noted that the values ​​of the elements in the myoelectric distribution matrix can be any values ​​in the interval [0,1]. Specifically, by normalizing the myoelectric signals and storing the normalized myoelectric signals in the myoelectric distribution matrix, the influence of the difference in the value range of different myoelectric signals on the calculation is eliminated.

[0140] It should be noted that the preset weight value can be expressed in percentage form.

[0141] It should be noted that in formula (9) The definition of is shown in formula (5).

[0142] See also Figure 6 In an application example, an 8-channel myoelectric bracelet is used as the myoelectric acquisition device, and the candidate myoelectric distribution matrices in the database are all matrices of 19 rows and 14 columns.

[0143] When the user makes a predetermined gesture, the electromyographic signal is collected through the electromyographic bracelet to obtain a first electromyographic signal group containing 8 electromyographic signals, and a first electromyographic electrogram vector is generated according to the first electromyographic signal group. A candidate electromyographic distribution matrix corresponding to the predetermined gesture is obtained from a preset electromyographic database to obtain an initial electromyographic distribution matrix, and the first electromyographic electrogram vector and the initial electromyographic distribution matrix are compared and calculated to obtain the target collection position of the electromyographic signal collection device.

[0144] It should be noted that Figure 6 The solid line portion of the electromyogram in is generated based on the first electromyogram vector and is the first electromyogram.

[0145] It should be noted that Figure 6 The myoelectric distribution map in is generated according to the initial myoelectric distribution matrix, and the myoelectric distribution map represents the value of the myoelectric signal by grayscale. Black can represent 0, white can represent 1, or vice versa, which is not limited in this embodiment.

[0146] It should be noted that in the EMG distribution map generated according to the initial EMG distribution matrix, the target acquisition position can be represented as an arrangement of multiple matrix element positions of the initial EMG distribution matrix, and each matrix element position in the target acquisition position is adjacent to the previous matrix element position and the next matrix element position (including up and down, left and right, and diagonally adjacent). The number of elements in the target acquisition position is equal to the number of columns of the initial EMG distribution matrix. For example, Figure 6The matrix subscripts in start from (0, 0). The target acquisition position can be expressed as the 14 matrix element subscripts of the initial EMG distribution matrix, specifically {(2,0), (3,1), (3,2), (3,3), (3,4), (4,5), (4,6), (4,7), (4,8), (3,9), (3,10), (3,11), (3,12), (2,13)}.

[0147] It should be noted that according to the target acquisition position and the initial myoelectric distribution matrix, the target electromyographic graph (i.e. Figure 6 By comparing the target EMG and the first EMG, the matching error can be intuitively obtained.

[0148] The embodiment of the present application also provides a gesture recognition device based on electromyographic signals, the device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned gesture recognition method based on electromyographic signals when executing the computer program. The device can include any intelligent terminal such as a tablet computer and a car computer.

[0149] It should be noted that the specific implementation of the device is basically the same as the specific embodiment of the above-mentioned gesture recognition method based on electromyographic signals, and will not be repeated here.

[0150] See also Figure 7 , Figure 7 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0151] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0152] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the gesture recognition method based on electromyographic signals in the embodiments of this application;

[0153] Input / output interface 903, used to implement information input and output;

[0154] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0155] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0156] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0157] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned gesture recognition method based on electromyographic signals is implemented.

[0158] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0159] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0160] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0161] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0162] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0163] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0164] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after 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 mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0165] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. 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.

[0166] The units described above 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.

[0167] 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0168] If the integrated unit 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 is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of 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 programs.

[0169] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A gesture recognition method based on electromyographic signals, characterized in that: The method comprises: Collecting a first electromyographic signal group generated based on a predetermined gesture by an electromyographic signal collecting device; Performing interpolation and fitting calculations on the first electromyographic signal group to generate a first electromyographic graph vector; A candidate electromyographic distribution matrix corresponding to the predetermined gesture is obtained from a preset electromyographic database to obtain an initial electromyographic distribution matrix; wherein the candidate electromyographic distribution matrix corresponds to a candidate gesture, and the candidate electromyographic distribution matrix indicates the relationship between the electromyographic signal of the candidate gesture and the acquisition position; the initial electromyographic distribution matrix indicates the relationship between the electromyographic signal of the predetermined gesture and the acquisition position, and the number of elements of the first electromyographic diagram vector is equal to the number of columns of the initial electromyographic distribution matrix; the initial electromyographic distribution matrix has a first number of columns and a second number of rows; Calculate the first matching error corresponding to each row according to the first electromyographic graph vector and the elements of each row in the initial electromyographic distribution matrix, and take the row corresponding to the smallest first matching error as the target row; Combining multiple slopes in a preset slope range with the first number of columns in pairs to obtain candidate combinations; Calculate the second matching error corresponding to each candidate combination according to the first electromyographic graph vector, the target row and the elements of each column in the initial electromyographic distribution matrix, and take the candidate combination corresponding to the smallest second matching error as the target combination, wherein the target combination includes a target column and a target slope; Determine a target acquisition position according to the target row, the target column and the target slope; wherein the target acquisition position includes the target row, the target column and the target slope; Collecting a second myoelectric signal group generated based on the gesture to be recognized by the myoelectric signal acquisition device; Performing interpolation and fitting calculations on the second electromyographic signal group to generate a second electromyographic graph vector; wherein the number of elements of the second electromyographic graph vector is equal to the number of columns of the initial electromyographic distribution matrix; Gesture determination is performed according to the second electromyogram vector, the target acquisition position and a plurality of candidate electromyogram distribution matrices in the electromyogram database to obtain a target gesture, and the target gesture serves as a recognition result of the gesture to be recognized.

2. The method for gesture recognition based on electromyographic signals according to claim 1, characterized in that: The candidate combination includes candidate columns and candidate slopes; and calculating the second matching error corresponding to each candidate combination according to the first electromyographic graph vector, the target row, and the elements of each column in the initial electromyographic distribution matrix includes: Perform a modulo operation on the candidate column and the first number to obtain a matrix column coordinate formula; Obtaining a row offset according to the candidate slope and the first number, and adding the row offset to the target row to obtain a matrix row coordinate formula; Substitute the matrix row coordinate formula and the matrix column coordinate formula into the initial electromyographic distribution matrix to obtain matrix elements, and accumulate and sum the absolute values ​​of the differences between the elements of the first electromyographic graph vector and the matrix elements to obtain the second matching error corresponding to each candidate combination.

3. The method for gesture recognition based on electromyographic signals according to claim 1, characterized in that: The target row is determined by the following formula: , , Indicates the first matching error corresponding to each row; represents the first electromyographic vector The i+1th element in ; represents the initial myoelectric distribution matrix, Represents the element in the i+1th column and y+1th row in the initial myoelectric distribution matrix; represents the i+1th column, ; Indicates OK, ; represents the target row; Indicates When reaching minimum The value of The number of elements of the first electromyographic graph vector is the first number, the first number is X, and the second number is Y.

4. The method for gesture recognition based on electromyographic signals according to claim 2, characterized in that: The target column and the target slope are determined by the following formula: , , represents the second matching error corresponding to each candidate combination; represents the candidate combination; Indicates List, ; represents the candidate slope, and the candidate slope is within the preset slope range Take the value in represents the first electromyographic vector The elements; represents the initial myoelectric distribution matrix; represents the remainder operation, Indicates that right Take the remainder; Indicates List, ; represents the target row; represents the target combination, represents the target column, represents the target slope; Indicates When reaching minimum The value of in, The row offset of the candidate with slope k and column i+1 is defined as: , Indicates rounding operation, and the operation result retains integer digits; in, When Set to Y-1; When is set to 0; Y represents the second number, that is, the number of rows of the initial myoelectric distribution matrix.

5. The method for gesture recognition based on electromyographic signals according to claim 4, characterized in that: The step of determining a gesture according to the second electromyogram vector, the target acquisition position, and the plurality of candidate electromyogram distribution matrices in the electromyogram database to obtain a target gesture includes: Calculating a gesture matching error according to the second electromyogram vector, the target acquisition position, and a plurality of candidate electromyogram distribution matrices in the electromyogram database; The candidate myoelectric distribution matrix corresponding to the minimum gesture matching error is used as the target myoelectric distribution matrix, and the gesture corresponding to the target myoelectric distribution matrix is ​​used as the target gesture.

6. The method for gesture recognition based on electromyographic signals according to claim 5, characterized in that: The target gesture is determined by the following formula: , , represents the gesture matching error, Represents the candidate myoelectric distribution matrix Corresponding candidate gestures; represents the second electromyographic vector The elements; Indicates that right Take the remainder; indicating the target gesture; Indicates When reaching minimum The value of The number of elements of the second electromyographic graph vector is the first number, and the first number is X.

7. The method for gesture recognition based on electromyographic signals according to claim 5, characterized in that: After obtaining the target gesture and using the target gesture as the recognition result of the gesture to be recognized, the method further includes: Compare and calculate the second electromyographic diagram vector and the target electromyographic distribution matrix, and update the target acquisition position; According to the second electromyographic diagram vector and the target acquisition position, the target electromyographic distribution matrix is ​​updated to obtain an updated target electromyographic distribution matrix; The updated target myoelectric distribution matrix is ​​stored in the myoelectric database to update the myoelectric database.

8. A gesture recognition device based on electromyographic signals, characterized in that: The device includes a memory and a processor, the memory stores a computer program, and the processor implements the gesture recognition method based on electromyographic signals as described in any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the gesture recognition method based on electromyographic signals according to any one of claims 1 to 7 is implemented.