CN109446972B - Gait recognition model establishing method, recognition method and device based on electromyographic signals - Google Patents

Gait recognition model establishing method, recognition method and device based on electromyographic signals Download PDF

Info

Publication number
CN109446972B
CN109446972B CN201811241695.7A CN201811241695A CN109446972B CN 109446972 B CN109446972 B CN 109446972B CN 201811241695 A CN201811241695 A CN 201811241695A CN 109446972 B CN109446972 B CN 109446972B
Authority
CN
China
Prior art keywords
electromyographic
index
scat
indexes
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811241695.7A
Other languages
Chinese (zh)
Other versions
CN109446972A (en
Inventor
彭芳
张�成
彭威
周桥
胡涛
钟德宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China Zhongshan Institute
Original Assignee
University of Electronic Science and Technology of China Zhongshan Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Electronic Science and Technology of China Zhongshan Institute filed Critical University of Electronic Science and Technology of China Zhongshan Institute
Priority to CN201811241695.7A priority Critical patent/CN109446972B/en
Publication of CN109446972A publication Critical patent/CN109446972A/en
Application granted granted Critical
Publication of CN109446972B publication Critical patent/CN109446972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/02Preprocessing
    • G06F2218/04Denoising
    • G06F2218/06Denoising by applying a scale-space analysis, e.g. using wavelet analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/08Feature extraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/12Classification; Matching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The embodiment of the invention provides a gait recognition model establishing method, a gait recognition method and a gait recognition device based on electromyographic signals, wherein the model establishing method comprises the following steps: collecting electromyographic signals; denoising; adding class labels and extracting the following electromyographic signal characteristics: slope rate of change, Williason amplitude, logarithm of variance, waveform length, and feature DB 7-MAV; calculating DBI index and SCAT index and obtaining comprehensive evaluation result; and randomly dividing the comprehensive evaluation result serving as a sample into a training sample group and a testing sample group according to a preset proportion, inputting the training sample group and the testing sample group into the LightGBM model respectively for training and testing, adjusting parameters in the LightGBM model according to the training set error and the testing set error, repeatedly grouping, training, testing and adjusting the parameters until the error of the model testing result meets a data model of a preset standard, and storing the corresponding relation between the human gait type and the comprehensive evaluation result into the data model. The embodiment of the invention can efficiently and accurately establish the data model, and has high gait recognition rate and more reliable recognition result.

Description

Gait recognition model establishing method, recognition method and device based on electromyographic signals
Technical Field
The embodiment of the invention relates to the technical field of gait recognition, in particular to a gait recognition model establishing method, a gait recognition method and a gait recognition device based on electromyographic signals.
Background
Biometric identification technology has been widely used in a variety of specific applications as an emerging application technology. The walking gait of the person can be better analyzed and researched by effectively identifying the walking gait of the person, and reliable data support can be provided for aspects such as competitive sports, fitness exercise, bionic medical instrument research and the like.
At present, the technology in the aspect of walking gait recognition mainly aims at recognizing and analyzing lower limb gaits, wherein the lower limb gaits are postures and states of two legs of a human body in the walking process, and have the characteristics of periodicity, continuity, repeatability and the like. During the movement of the human body, the time from the landing of one heel to the landing of the other heel is a complete gait cycle, and can be divided into two periods according to whether the foot touches down or not: the foot touch is a support period (stance), the foot lift is a swing period (swing), and the foot lift can be further divided into six types of support initial period (Pre-stance), support middle period (Mid-stance), support Terminal period (Terminal-stance), swing initial period (Pre-swing), swing middle period (Mid-swing) and swing Terminal period (Terminal-swing), and the state of the lower limb is identified by collecting related signals. At present, more identification signals mainly comprise physical signals and electromyographic signals (EMG), the physical signals generally comprise pressure signals, image signals and the like, for example, the invention patent application No. 201310105338.9 in China identifies the gait of the lower limbs through the change of the pressure signals of the insoles, the cost is low, the structure is simple, but the acquisition process of the physical signals is all generated after the movement, and certain hysteresis exists, so the method has limitation. The generation of the electromyographic signals (EMG) occurs about 30ms to 80ms before the occurrence of the muscle activity, so that the generation of the electromyographic signals (EMG) has good advance and can predict the muscle activity of a human body, however, in the technical scheme disclosed in the patent application No. 201510014792.2 of Chinese invention, only the mean value and the variance of the absolute values of the electromyographic signals are adopted as characteristic values, and the reliability of the obtained result is relatively low.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a gait recognition model establishing method based on electromyographic signals, which can more efficiently and accurately establish a data model for recognizing walking gait of a person.
The embodiment of the invention further aims to solve the technical problem of providing a gait recognition model establishing device based on electromyographic signals, which can more efficiently and accurately establish a data model for recognizing walking gait of a person.
The embodiment of the invention further aims to solve the technical problem of providing a gait recognition method based on electromyographic signals, which can more accurately recognize walking gait of a person.
The embodiment of the invention further aims to solve the technical problem of providing a gait recognition device based on electromyographic signals, which can more accurately recognize walking gait of a person.
In order to solve the technical problem, the embodiment of the invention firstly adopts the following technical scheme: a gait recognition model building method based on electromyographic signals comprises the following steps:
collecting myoelectric signals on muscles playing a key role in lower limb movement on the thigh;
carrying out noise reduction processing on the collected electromyographic signals;
adding a class label representing the corresponding human gait type to the data of the electromyographic signals subjected to noise reduction processing, and then extracting the following electromyographic signal characteristics: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
respectively calculating DBI indexes and SCAT indexes of the extracted electromyographic signal characteristics, and adding the DBI indexes and the SCAT indexes corresponding to the electromyographic signal characteristics to obtain a sum which is used as a comprehensive evaluation result of the electromyographic signal characteristics;
randomly dividing the extracted electromyographic signal characteristics as samples into a training sample group and a testing sample group according to a preset proportion, inputting data of the training sample group into a LightGBM model for training, inputting data of the testing sample group into the LightGBM model for testing, adjusting parameters in the LightGBM model according to training set errors and testing set errors, repeatedly performing the steps of randomly regrouping the samples into the training sample group and the testing sample group, inputting the training sample group and the testing sample group into the LightGBM model for training and testing respectively, and adjusting the parameters in the LightGBM model until obtaining a data model with testing result errors meeting a preset standard, and storing the corresponding relation between the human gait type and the comprehensive evaluation result into the data model.
Further, the critical muscles include at least: the vastus lateralis, vastus medialis, rectus femoris and biceps femoris.
Furthermore, the amplitude of the collected electromyographic signals is within 0-10mv, and the effective frequency is within the range of 10Hz-500 Hz.
Further, the performing noise reduction processing on the collected electromyographic signals specifically includes:
carrying out comb filtering on the collected electromyographic signals to reduce the superposition effect of the signals and noise; and
the comb filtered signal is filtered through an IIR band filter of 10Hz-500 Hz.
Further, the electromyographic signal characteristics are respectively obtained by the following formulas: in the following formula, N represents the number of electromyographic signal samples, χiRepresents the ith electromyographic signal sample,
equation 1: rate of change of slope
Figure GDA0003129459180000021
Wherein f (χ) ═ 0, if χ is more than or equal to T; 1, otherwise, wherein T is an index threshold value representing muscle contraction level, and the value range is 4-6 mv;
equation 2: williason amplitude
Figure GDA0003129459180000031
Equation 3: logarithm of variance
Figure GDA0003129459180000032
Equation 4: length of wave form
Figure GDA0003129459180000033
Equation 5: wavelet decomposition to obtain decomposition coefficient
Figure GDA0003129459180000034
Wherein the content of the first and second substances,
Figure GDA0003129459180000035
is the wavelet basis, b is the transformation parameter, a is the transformation function, a takes the value a 2k, k [1, 2, 3 … 7];
Equation 6: feature(s)
Figure GDA0003129459180000036
Wherein k is 7.
Further, the DBI index is used for evaluating the overall separability, and the calculation method is as follows:
equation 7:
Figure GDA0003129459180000037
wherein, the lambda is 6, which represents six human gait types, SiAnd SjIs the distribution of the ith and jth clusters, which refer to the set of data characteristics of each human gait type, Di,jRepresents SiAnd SjThe distance between them;
the SCAT index is used for evaluating the separability between classes, and the calculation formula is as follows:
equation 8:
Figure GDA0003129459180000038
wherein S iswIs a covariance matrix of all classes, SBIs a covariance matrix between classes.
Further, the sum of the DBI index and the SCAT index corresponding to each electromyographic signal characteristic is larger than zero, the sum of the DBI index and the SCAT index of the slope change rate characteristic is smaller than 0.7, the sum of the DBI index and the SCAT index of the Williason amplitude characteristic is smaller than 1.3, the sum of the DBI index and the SCAT index of the logarithm of variance is smaller than 1.0, the sum of the DBI index and the SCAT index of the waveform length is smaller than 1.2, and the sum of the DBI index and the SCAT index of the characteristic DB7-MAV is smaller than 1.5.
On the other hand, an embodiment of the present invention further provides a gait recognition model establishing apparatus based on an electromyographic signal, including:
the signal acquisition module is used for acquiring myoelectric signals of muscles playing a key role in lower limb movement on the thigh;
the noise reduction module is used for carrying out noise reduction processing on the collected electromyographic signals;
the feature extraction module is used for adding a class label representing the corresponding human gait type to the data of the electromyographic signals subjected to noise reduction processing and then extracting the following electromyographic signal features: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
the index evaluation module is used for respectively calculating DBI indexes and SCAT indexes of the extracted electromyographic signal characteristics, and adding the DBI indexes and the SCAT indexes corresponding to the electromyographic signal characteristics to obtain a sum which is used as a comprehensive evaluation result of the electromyographic signal characteristics;
the training and testing module is used for randomly dividing the extracted electromyographic signal characteristics into a training sample group and a testing sample group according to a preset proportion by taking the extracted electromyographic signal characteristics as samples, inputting data of the training sample group into the LightGBM model for training, inputting data of the testing sample group into the LightGBM model for testing, adjusting parameters in the LightGBM model according to training set errors and testing set errors, repeating the steps of randomly grouping the samples into the training sample group and the testing sample group again, inputting the training sample group and the testing sample group into the LightGBM model for training and testing and adjusting the parameters in the LightGBM model respectively until a data model with a testing result error meeting a preset standard is obtained, and storing the corresponding relation between the human body gait type and the comprehensive evaluation result into the data model.
In another aspect, an embodiment of the present invention further provides a gait recognition method based on an electromyographic signal, including the following steps:
collecting myoelectric signals on muscles playing a key role in lower limb movement on the thigh;
carrying out noise reduction processing on the collected electromyographic signals;
extracting the following five electromyographic signal characteristics from the electromyographic signals subjected to noise reduction treatment: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and DB7-MAV characteristics, wherein the DB7-MAV characteristics are obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and performing MAV function operation on the decomposition coefficient C;
respectively calculating DBI indexes and SCAT indexes of the extracted electromyographic signal characteristics, and adding the DBI indexes and the SCAT indexes corresponding to the electromyographic signal characteristics to obtain a sum which is used as a comprehensive evaluation result of the electromyographic signal characteristics;
and determining the human body gait type corresponding to the comprehensive evaluation result from the data model which is pre-established according to the method.
In another aspect, an embodiment of the present invention further provides a gait recognition device based on an electromyographic signal, including:
the signal acquisition module is used for acquiring myoelectric signals of muscles playing a key role in lower limb movement on the thigh;
the noise reduction module is used for carrying out noise reduction processing on the collected electromyographic signals;
the feature extraction module is used for extracting the following electromyographic signal features from the electromyographic signals subjected to noise reduction processing: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
the index evaluation module is used for respectively calculating DBI indexes and SCAT indexes of the extracted electromyographic signal characteristics, and adding the DBI indexes and the SCAT indexes corresponding to the electromyographic signal characteristics to obtain a sum which is used as a comprehensive evaluation result of the electromyographic signal characteristics;
the operation module is used for determining the human gait type corresponding to the comprehensive evaluation result from a pre-established data model according to the comprehensive evaluation result; and
and the storage module is used for storing the pre-established data model.
By adopting the technical scheme, the embodiment of the invention at least has the following beneficial effects: according to the embodiment of the invention, through extracting the slope change rate, Williason amplitude, logarithm of variance, waveform length, characteristic DB7-MAV and other electromyographic signal characteristics of the electromyographic signals on the muscles playing a key role in lower limb movement and combining DBI indexes and SCAT indexes to carry out calculation and evaluation, a data model can be established more efficiently and accurately, and by applying the data model, when a human body walks at the speed of 3km/h, the gait recognition rate can reach 97.3%, and the recognition result is more reliable. Has great value in the fields of bionic legs, exoskeletons and the like. Meanwhile, the embodiment of the invention only needs to collect the myoelectric signals of muscles playing a key role in the lower limb movement on the thigh of the human body, and the collected signal data volume is relatively small, thereby being more convenient for practical operation.
Drawings
Fig. 1 is a schematic flow chart of an alternative embodiment of a gait recognition model establishing method based on electromyographic signals according to the invention.
Fig. 2 is a schematic block diagram of an alternative embodiment of the gait recognition model building device based on electromyographic signals according to the invention.
Fig. 3 is a schematic flow chart of an alternative embodiment of the gait recognition method based on electromyographic signals.
Fig. 4 is a schematic block diagram of an alternative embodiment of the gait recognition device based on electromyographic signals according to the invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples. It is to be understood that the following illustrative embodiments and description are only intended to illustrate the present invention, and are not intended to limit the present invention, and features of the embodiments and examples of the present invention may be combined with each other without conflict.
As shown in fig. 1, an alternative embodiment of the present invention provides a gait recognition model building method based on electromyographic signals, including the following steps:
step S11, collecting myoelectric signals of muscles playing a key role in lower limb movement on the thigh;
step S12, carrying out noise reduction processing on the collected electromyographic signals;
step S13, adding a class label representing the human gait type corresponding to the data of the electromyographic signals subjected to noise reduction processing, and then extracting the following electromyographic signal characteristics: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
step S14, calculating DBI index and SCAT index of each extracted electromyographic signal characteristic, and adding the DBI index and the SCAT index corresponding to each electromyographic signal characteristic to obtain a comprehensive evaluation result of the electromyographic signal characteristic;
step S15, randomly dividing each extracted electromyographic signal characteristic as a sample into a training sample group and a testing sample group according to a preset proportion, inputting the data of the training sample group into a LightGBM model for training, inputting the data of the testing sample group into the LightGBM model for testing, adjusting the parameters in the LightGBM model according to the training set errors and the testing set errors, repeatedly performing the steps of randomly regrouping the samples into the training sample group and the testing sample group, inputting the samples into the LightGBM model for training and testing and adjusting the parameters in the LightGBM model respectively until obtaining a data model with the testing result errors meeting a preset standard, and storing the corresponding relation between the human body gait type and the comprehensive evaluation result into the data model.
In a specific embodiment, the parameters in the LightGBM model are mainly as shown in table 1 below:
TABLE 1
Figure GDA0003129459180000061
The parameters can be adjusted as necessary after each round of training and testing, so that the finally obtained model can achieve the test error result.
In one embodiment, the correspondence between the various human gait types and the overall assessment result is as follows:
TABLE 2
Figure GDA0003129459180000071
In specific application, comprehensive evaluation results of all the characteristics are obtained through detection and calculation, and then the corresponding human gait types can be inquired and determined in the relation table shown in the table 2 through the data model.
According to the embodiment of the invention, through extracting the slope change rate, Williason amplitude, logarithm of variance, waveform length, characteristic DB7-MAV and other electromyographic signal characteristics of the electromyographic signals on the muscles playing a key role in lower limb movement and combining DBI indexes and SCAT indexes to carry out calculation and evaluation, a data model can be established more efficiently and accurately, and by applying the data model, when a human body walks at the speed of 3km/h, the gait recognition rate can reach 97.3%, and the recognition result is more reliable. Has great value in the fields of bionic legs, exoskeletons and the like. Meanwhile, the embodiment of the invention only needs to collect the myoelectric signals of muscles playing a key role in the lower limb movement on the thigh of the human body, and the collected signal data volume is relatively small, thereby being more convenient for practical operation.
In an alternative embodiment of the invention, said critical muscles comprise at least: the vastus lateralis, vastus medialis, rectus femoris and biceps femoris. In the embodiment, only a few myoelectric signals of muscles playing a key role in lower limb movement on the thigh of the human body are required to be acquired, the acquired signal data volume is relatively small, and gait change characteristics can be reflected more accurately.
In another optional embodiment of the invention, the collected electromyographic signals have an amplitude within 0-10mv and an effective frequency within a range of 10Hz-500 Hz. According to the embodiment of the invention, the gait change characteristics can be more accurately reflected by collecting the electromyographic signals within the numerical range, invalid operation caused by a large amount of invalid data is avoided, and the data processing efficiency and accuracy are improved.
In another optional embodiment of the present invention, the performing noise reduction processing on the collected electromyographic signals specifically includes: carrying out comb filtering on the collected electromyographic signals to reduce the superposition effect of the signals and noise; and
the comb filtered signal is filtered through an IIR band filter of 10Hz-500 Hz.
In the embodiment, the comb filtering is performed firstly, and then the IIR band filter is used for filtering, so that invalid interference data can be effectively filtered, and the accuracy of the established model is improved.
In yet another alternative embodiment of the present invention, the electromyographic signal characteristics are respectively obtained by the following formulas: in the following formula, N represents the number of electromyographic signal samples, χiRepresents the ith electromyographic signal sample,
equation 1: rate of change of slope
Figure GDA0003129459180000081
Wherein f (χ) ═ 0, if χ is more than or equal to T; 1, otherwise, wherein T is an index threshold value representing muscle contraction level, and the value range is 4-6 mv;
equation 2: williason amplitude
Figure GDA0003129459180000082
Equation 3: logarithm of variance
Figure GDA0003129459180000083
Equation 4: length of wave form
Figure GDA0003129459180000084
Equation 5: wavelet decomposition to obtain decomposition coefficient
Figure GDA0003129459180000085
Wherein the content of the first and second substances,
Figure GDA0003129459180000086
is the wavelet basis, b is the transformation parameter, a is the transformation function, a takes the value a 2k, k [1, 2, 3 … 7];
Equation 6: feature(s)
Figure GDA0003129459180000087
Wherein k is 7.
In the embodiment, each electromyographic signal characteristic is obtained through calculation by the formula, and the processing efficiency and the accuracy are high.
In another optional embodiment of the present invention, the DBI index is used to evaluate overall separability, and the calculation method is as follows:
equation 7:
Figure GDA0003129459180000088
wherein, the lambda is 6, which represents six human gait types, SiAnd SjIs the distribution of the ith and jth clusters, which refer to the set of data characteristics of each human gait type, Di,jRepresents SiAnd SjThe distance between them;
the SCAT index is used for evaluating the separability between classes, and the calculation formula is as follows:
equation 8:
Figure GDA0003129459180000089
wherein S iswIs a covariance matrix of all classes, SBIs a covariance matrix between classes.
According to the embodiment, the DBI index and the SCAT index can be calculated and obtained more accurately through the formula.
In another optional embodiment of the invention, the sum of the DBI index and the SCAT index corresponding to each electromyographic signal characteristic is greater than zero, the sum of the DBI index and the SCAT index corresponding to the slope rate characteristic is less than 0.7, the sum of the DBI index and the SCAT index corresponding to the Williason amplitude characteristic is less than 1.3, the sum of the DBI index and the SCAT index corresponding to the logarithm of variance is less than 1.0, the sum of the DBI index and the SCAT index corresponding to the waveform length is less than 1.2, and the sum of the DBI index and the SCAT index corresponding to the characteristic DB7-MAV is less than 1.5. In the embodiment, the range of the sum of the DBI index and the SCAT index is limited, and data outside the range can be excluded, so that the characteristics of the electromyographic signals can be more accurately reflected.
On the other hand, as shown in fig. 2, an embodiment of the present invention further provides a gait recognition model establishing apparatus based on an electromyographic signal, including:
the signal acquisition module 11 is used for acquiring myoelectric signals of muscles playing a key role in lower limb movement on the thigh;
the noise reduction module 12 is configured to perform noise reduction processing on the acquired electromyographic signals;
the feature extraction module 13 is configured to add a class tag representing a human gait type corresponding to the data of the electromyographic signal subjected to noise reduction processing, and then extract the following electromyographic signal features: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
the index evaluation module 14 is used for calculating the DBI index and the SCAT index of each extracted electromyographic signal characteristic respectively, and adding the DBI index and the SCAT index corresponding to each electromyographic signal characteristic to obtain a comprehensive evaluation result of the electromyographic signal characteristic;
the training and testing module 15 is configured to randomly divide the extracted electromyographic signal features into a training sample group and a testing sample group according to a predetermined ratio, input data of the training sample group into the LightGBM model for training, input data of the testing sample group into the LightGBM model for testing, adjust parameters in the LightGBM model according to a training set error and a testing set error, repeat the steps of re-randomly grouping the samples into the training sample group and the testing sample group, inputting the training sample group and the testing sample group into the LightGBM model for training and testing, and adjusting the parameters in the LightGBM model until a data model is obtained, where an error of a testing result meets a predetermined standard, and store a corresponding relationship between a human gait type and the comprehensive assessment result in the data model.
According to the embodiment of the invention, the slope change rate, Williason amplitude, logarithm of variance, waveform length, characteristic DB7-MAV and other electromyographic signal characteristics of the electromyographic signals on muscles playing a key role in lower limb movement are extracted through the signal acquisition module 10, the corresponding electromyographic signal characteristics are extracted through the characteristic extraction module 14 after the noise reduction module 12 reduces noise, calculation and evaluation are carried out through the index evaluation module 16 in combination with DBI indexes and SCAT indexes, and finally, the training and testing module 18 can more efficiently and accurately establish a data model through mass data training and testing, and by applying the data model, when a human body walks at the speed of 3km/h, the gait recognition rate can reach 97.3%, and the recognition result is more reliable. Has great value in the fields of bionic legs, exoskeletons and the like. Meanwhile, the embodiment of the invention only needs to collect the myoelectric signals of muscles playing a key role in the lower limb movement on the thigh of the human body, and the collected signal data volume is relatively small, thereby being more convenient for practical operation.
In another aspect, as shown in fig. 3, an embodiment of the present invention further provides a gait recognition method based on an electromyographic signal, including the following steps:
step S21, collecting myoelectric signals of muscles playing a key role in lower limb movement on the thigh;
step S22, carrying out noise reduction processing on the collected electromyographic signals;
step S23, extracting the following five electromyographic signal characteristics from the electromyographic signal subjected to noise reduction processing: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and DB7-MAV characteristics, wherein the DB7-MAV characteristics are obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and performing MAV function operation on the decomposition coefficient C;
step S24, calculating DBI index and SCAT index of each extracted electromyographic signal characteristic, and adding the DBI index and the SCAT index corresponding to each electromyographic signal characteristic to obtain a comprehensive evaluation result of the electromyographic signal characteristic;
and step S25, determining the human body gait type corresponding to the comprehensive evaluation result from the data model pre-established according to any one of the methods according to the comprehensive evaluation result.
According to the embodiment of the invention, the slope change rate, Williason amplitude, logarithm of variance, waveform length, characteristic DB7-MAV and other electromyographic signal characteristics of the electromyographic signals on the muscles playing a key role in lower limb movement are extracted, calculation evaluation is carried out by combining a DBI index and an SCAT index, finally, the gait type corresponding to comprehensive evaluation is obtained through a pre-established data model, the accuracy is high, the identification process is simple and easy to operate, when a human body walks at the speed of 3km/h, the gait identification rate can reach 97.3%, and the identification result is more reliable. Has great value in the fields of bionic legs, exoskeletons and the like. Meanwhile, the embodiment of the invention only needs to collect the myoelectric signals of muscles playing a key role in the lower limb movement on the thigh of the human body, and the collected signal data volume is relatively small, thereby being more convenient for practical operation.
In another aspect, as shown in fig. 4, an embodiment of the present invention further provides a gait recognition device based on electromyographic signals, including:
the signal acquisition module 21 is used for acquiring myoelectric signals of muscles playing a key role in lower limb movement on the thigh;
the noise reduction module 22 is configured to perform noise reduction processing on the acquired electromyographic signals;
the feature extraction module 23 is configured to extract the following electromyographic signal features from the electromyographic signals subjected to the noise reduction processing: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
the index evaluation module 24 is configured to calculate a DBI index and an SCAT index of each extracted electromyographic signal feature, and add the DBI index and the SCAT index corresponding to each electromyographic signal feature to obtain a sum, which is a comprehensive evaluation result of the electromyographic signal feature;
the operation module 25 is used for operating a pre-established data model and determining a gait type corresponding to a comprehensive evaluation result according to the comprehensive evaluation result; and
a storage module 26, configured to store the pre-established data model.
According to the embodiment of the invention, the slope change rate, Williason amplitude, logarithm of variance, waveform length, characteristic DB7-MAV and other electromyographic signal characteristics of the electromyographic signals on muscles playing a key role in lower limb movement are extracted through the signal acquisition module 21, the corresponding electromyographic signal characteristics are extracted through the characteristic extraction module 23 after noise reduction is carried out through the noise reduction module 22, calculation and evaluation are carried out through the index evaluation module 24 in combination with DBI indexes and SCAT indexes, finally, the pre-established data model is operated through the operation module 25, gait can be identified more efficiently and accurately, when a human body walks at the speed of 3km/h, the gait identification rate can reach 97.3%, and the identification result is more reliable. Has great value in the fields of bionic legs, exoskeletons and the like. Meanwhile, the embodiment of the invention only needs to collect the myoelectric signals of muscles playing a key role in the lower limb movement on the thigh of the human body, and the collected signal data volume is relatively small, thereby being more convenient for practical operation.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A gait recognition model building method based on electromyographic signals is characterized by comprising the following steps:
collecting myoelectric signals on muscles playing a key role in lower limb movement on the thigh;
carrying out noise reduction processing on the collected electromyographic signals;
adding a class label representing the corresponding human gait type to the data of the electromyographic signals subjected to noise reduction processing, and then extracting the following electromyographic signal characteristics: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
respectively calculating DBI indexes and SCAT indexes of the extracted electromyographic signal characteristics, and adding the DBI indexes and the SCAT indexes corresponding to the electromyographic signal characteristics to obtain a sum as a comprehensive evaluation result of the electromyographic signal characteristics, wherein the DBI indexes are used for evaluating the integral separability, and the calculating method comprises the following steps:
equation 7:
Figure FDA0003129459170000011
wherein, the lambda is 6, which represents six human gait types, SiAnd SjIs the distribution of the ith and jth clusters, which refer to the set of data characteristics of each human gait type, Di,jRepresents SiAnd SjThe distance between them;
the SCAT index is used for evaluating the separability between classes, and the calculation formula is as follows:
equation 8:
Figure FDA0003129459170000012
wherein S iswIs a covariance matrix of all classes, SBIs a covariance matrix between classes;
randomly dividing the extracted electromyographic signal characteristics as samples into a training sample group and a testing sample group according to a preset proportion, inputting data of the training sample group into a LightGBM model for training, inputting data of the testing sample group into the LightGBM model for testing, adjusting parameters in the LightGBM model according to training set errors and testing set errors, repeatedly performing the steps of randomly regrouping the samples into the training sample group and the testing sample group, inputting the training sample group and the testing sample group into the LightGBM model for training and testing respectively, and adjusting the parameters in the LightGBM model until obtaining a data model with testing result errors meeting a preset standard, and storing the corresponding relation between the human gait type and the comprehensive evaluation result into the data model.
2. A gait recognition model building method based on electromyographic signals according to claim 1, wherein said critical muscles include at least: the vastus lateralis, vastus medialis, rectus femoris and biceps femoris.
3. A gait recognition model building method according to claim 1 or 2, characterized in that the collected electromyographic signals have an amplitude within the range of 0-10mv and an effective frequency within the range of 10Hz-500 Hz.
4. The method for establishing a gait recognition model based on electromyographic signals according to claim 1, wherein the noise reduction processing of the collected electromyographic signals specifically comprises:
carrying out comb filtering on the collected electromyographic signals to reduce the superposition effect of the signals and noise; and
the comb filtered signal is filtered through an IIR band filter of 10Hz-500 Hz.
5. A gait recognition model building method based on electromyographic signals according to claim 1, wherein the electromyographic signal characteristics are respectively obtained by the following formulas: in the following formula, N represents the number of electromyographic signal samples, χiRepresents the ith electromyographic signal sample,
equation 1: rate of change of slope
Figure FDA0003129459170000021
Wherein f (χ) ═ 0, if χ is more than or equal to T; 1, otherwise, wherein T is an index threshold value representing muscle contraction level, and the value range is 4-6 mv;
equation 2: williason amplitude
Figure FDA0003129459170000022
Equation 3: logarithm of variance
Figure FDA0003129459170000023
Equation 4: length of wave form
Figure FDA0003129459170000024
Equation 5: wavelet decomposition to obtain decomposition coefficient
Figure FDA0003129459170000025
Wherein the content of the first and second substances,
Figure FDA0003129459170000026
is the wavelet basis, b is the transformation parameter, a is the transformation function, a takes the values of a 2k, k 1, 2, 3 … 7];
Equation 6: feature(s)
Figure FDA0003129459170000027
Wherein k is 7.
6. A gait recognition model establishing method based on electromyographic signals according to claim 1, wherein a sum of the DBI index and the SCAT index added for each electromyographic signal characteristic is greater than zero, and a sum of the DBI index and the SCAT index added for the slope rate characteristic is less than 0.7, a sum of the DBI index and the SCAT index added for the williamson amplitude characteristic is less than 1.3, a sum of the DBI index and the SCAT index added for the logarithm of variance is less than 1.0, a sum of the DBI index and the SCAT index added for the length of waveform is less than 1.2, and a sum of the DBI index and the SCAT index added for the characteristic DB7-MAV is less than 1.5.
7. A gait recognition model establishing device based on electromyographic signals is characterized by comprising the following components:
the signal acquisition module is used for acquiring myoelectric signals of muscles playing a key role in lower limb movement on the thigh;
the noise reduction module is used for carrying out noise reduction processing on the collected electromyographic signals;
the feature extraction module is used for adding a class label representing the corresponding human gait type to the data of the electromyographic signals subjected to noise reduction processing and then extracting the following electromyographic signal features: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
the index evaluation module is used for respectively calculating DBI indexes and SCAT indexes of the extracted electromyographic signal characteristics, and adding the DBI indexes and the SCAT indexes corresponding to each electromyographic signal characteristic to obtain a sum which is used as a comprehensive evaluation result of the electromyographic signal characteristic, wherein the DBI indexes are used for evaluating the integral separability, and the calculation method comprises the following steps:
equation 7:
Figure FDA0003129459170000031
wherein, the lambda is 6, which represents six human gait types, SiAnd SjIs the distribution of the ith and jth clusters, which refer to the set of data characteristics of each human gait type, Di,jRepresents SiAnd SjThe distance between them;
the SCAT index is used for evaluating the separability between classes, and the calculation formula is as follows:
equation 8:
Figure FDA0003129459170000032
wherein S iswIs a covariance matrix of all classes, SBIs a covariance matrix between classes;
the training and testing module is used for randomly dividing the extracted electromyographic signal characteristics into a training sample group and a testing sample group according to a preset proportion by taking the extracted electromyographic signal characteristics as samples, inputting data of the training sample group into the LightGBM model for training, inputting data of the testing sample group into the LightGBM model for testing, adjusting parameters in the LightGBM model according to training set errors and testing set errors, repeating the steps of randomly grouping the samples into the training sample group and the testing sample group again, inputting the training sample group and the testing sample group into the LightGBM model for training and testing and adjusting the parameters in the LightGBM model respectively until a data model with a testing result error meeting a preset standard is obtained, and storing the corresponding relation between the human body gait type and the comprehensive evaluation result into the data model.
8. A gait recognition method based on electromyographic signals is characterized by comprising the following steps:
collecting myoelectric signals on muscles playing a key role in lower limb movement on the thigh;
carrying out noise reduction processing on the collected electromyographic signals;
extracting the following five electromyographic signal characteristics from the electromyographic signals subjected to noise reduction treatment: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and DB7-MAV characteristics, wherein the DB7-MAV characteristics are obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and performing MAV function operation on the decomposition coefficient C;
respectively calculating DBI indexes and SCAT indexes of the extracted electromyographic signal characteristics, and adding the DBI indexes and the SCAT indexes corresponding to the electromyographic signal characteristics to obtain a sum as a comprehensive evaluation result of the electromyographic signal characteristics, wherein the DBI indexes are used for evaluating the integral separability, and the calculating method comprises the following steps:
equation 7:
Figure FDA0003129459170000041
wherein, the lambda is 6, which represents six human gait types, SiAnd SjIs the distribution of the ith and jth clusters, which refer to the set of data characteristics of each human gait type, Di,jRepresents SiAnd SjThe distance between them;
the SCAT index is used for evaluating the separability between classes, and the calculation formula is as follows:
equation 8:
Figure FDA0003129459170000042
wherein S iswIs a covariance matrix of all classes, SBIs a covariance matrix between classes;
determining the human body gait type corresponding to the comprehensive evaluation result from a data model pre-established according to the method of any one of claims 1 to 7 according to the comprehensive evaluation result.
9. A gait recognition device based on electromyographic signals, comprising:
the signal acquisition module is used for acquiring myoelectric signals of muscles playing a key role in lower limb movement on the thigh;
the noise reduction module is used for carrying out noise reduction processing on the collected electromyographic signals;
the feature extraction module is used for extracting the following electromyographic signal features from the electromyographic signals subjected to noise reduction processing: the system comprises a slope rate, a Williason amplitude, a variance logarithm, a waveform length and a characteristic DB7-MAV, wherein the characteristic DB7-MAV is a characteristic obtained by performing DB7 wavelet decomposition on electromyographic signals of a 50hz-100hz frequency band to obtain a decomposition coefficient C and then performing MAV function operation on the decomposition coefficient C;
the index evaluation module is used for respectively calculating DBI indexes and SCAT indexes of the extracted electromyographic signal characteristics, and adding the DBI indexes and the SCAT indexes corresponding to each electromyographic signal characteristic to obtain a sum which is used as a comprehensive evaluation result of the electromyographic signal characteristic, wherein the DBI indexes are used for evaluating the integral separability, and the calculation method comprises the following steps:
equation 7:
Figure FDA0003129459170000043
wherein, the lambda is 6, which represents six human gait types, SiAnd SjIs the distribution of the ith and jth clusters, which refer to the set of data characteristics of each human gait type, Di,jRepresents SiAnd SjThe distance between them;
the SCAT index is used for evaluating the separability between classes, and the calculation formula is as follows:
equation 8:
Figure FDA0003129459170000051
wherein S iswIs a covariance matrix of all classes, SBIs between classesA covariance matrix;
the operation module is used for determining the human gait type corresponding to the comprehensive evaluation result from a pre-established data model according to the comprehensive evaluation result; and
and the storage module is used for storing the pre-established data model.
CN201811241695.7A 2018-10-24 2018-10-24 Gait recognition model establishing method, recognition method and device based on electromyographic signals Active CN109446972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811241695.7A CN109446972B (en) 2018-10-24 2018-10-24 Gait recognition model establishing method, recognition method and device based on electromyographic signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811241695.7A CN109446972B (en) 2018-10-24 2018-10-24 Gait recognition model establishing method, recognition method and device based on electromyographic signals

Publications (2)

Publication Number Publication Date
CN109446972A CN109446972A (en) 2019-03-08
CN109446972B true CN109446972B (en) 2021-08-31

Family

ID=65548054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811241695.7A Active CN109446972B (en) 2018-10-24 2018-10-24 Gait recognition model establishing method, recognition method and device based on electromyographic signals

Country Status (1)

Country Link
CN (1) CN109446972B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110090005B (en) * 2019-05-30 2021-09-28 北京积水潭医院 Medical data processing device
CN110530662A (en) * 2019-09-05 2019-12-03 中南大学 A kind of train seat Comfort Evaluation method and system based on multi-source physiological signal
CN110672090A (en) * 2019-09-26 2020-01-10 深圳大学 Indoor and outdoor integrated positioning method and system based on electromyographic data
CN111860376B (en) * 2020-07-24 2023-10-31 北京博维航空设施管理有限公司 Contour fitting method and device for cabin door
CN112348698A (en) * 2020-10-30 2021-02-09 中核核电运行管理有限公司 Nuclear power plant group pile management method, device and system
CN116439693B (en) * 2023-05-18 2024-05-28 四川大学华西医院 Gait detection method and system based on FMG

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104107042A (en) * 2014-07-10 2014-10-22 杭州电子科技大学 Electromyographic signal gait recognition method based on particle swarm optimization and support vector machine
CN104537382A (en) * 2015-01-12 2015-04-22 杭州电子科技大学 Electromyographic signal gait recognition method for optimizing support vector machine based on genetic algorithm
CN105054927A (en) * 2015-07-16 2015-11-18 西安交通大学 Biological quantitative assessment method for active participation degree in lower limb rehabilitation system
CN105943206A (en) * 2016-06-01 2016-09-21 上海师范大学 Prosthetic hand control method based on MYO armlet
KR20170000451A (en) * 2015-06-23 2017-01-03 인하대학교 산학협력단 A Gait Phase Recognition method based on EMG Signal for Stairs Ascending and Stairs Descending
CN107440716A (en) * 2017-07-26 2017-12-08 电子科技大学 Human body lower limbs athletic performance classification discrimination method based on single channel electromyographic signal
KR101829356B1 (en) * 2016-11-23 2018-02-19 인하대학교산학협력단 An EMG Signal-Based Gait Phase Recognition Method Using a GPES library and ISMF
CN110046757A (en) * 2019-04-08 2019-07-23 中国人民解放军第四军医大学 Number of Outpatients forecasting system and prediction technique based on LightGBM algorithm

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104107042A (en) * 2014-07-10 2014-10-22 杭州电子科技大学 Electromyographic signal gait recognition method based on particle swarm optimization and support vector machine
CN104537382A (en) * 2015-01-12 2015-04-22 杭州电子科技大学 Electromyographic signal gait recognition method for optimizing support vector machine based on genetic algorithm
KR20170000451A (en) * 2015-06-23 2017-01-03 인하대학교 산학협력단 A Gait Phase Recognition method based on EMG Signal for Stairs Ascending and Stairs Descending
CN105054927A (en) * 2015-07-16 2015-11-18 西安交通大学 Biological quantitative assessment method for active participation degree in lower limb rehabilitation system
CN105943206A (en) * 2016-06-01 2016-09-21 上海师范大学 Prosthetic hand control method based on MYO armlet
KR101829356B1 (en) * 2016-11-23 2018-02-19 인하대학교산학협력단 An EMG Signal-Based Gait Phase Recognition Method Using a GPES library and ISMF
CN107440716A (en) * 2017-07-26 2017-12-08 电子科技大学 Human body lower limbs athletic performance classification discrimination method based on single channel electromyographic signal
CN110046757A (en) * 2019-04-08 2019-07-23 中国人民解放军第四军医大学 Number of Outpatients forecasting system and prediction technique based on LightGBM algorithm

Also Published As

Publication number Publication date
CN109446972A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109446972B (en) Gait recognition model establishing method, recognition method and device based on electromyographic signals
Khushaba et al. A framework of temporal-spatial descriptors-based feature extraction for improved myoelectric pattern recognition
CN110537922B (en) Human body walking process lower limb movement identification method and system based on deep learning
CN107137071A (en) It is a kind of to analyze the method that heart impact signal is used for calculating short-term heart beat value
CN108681685A (en) A kind of body work intension recognizing method based on human body surface myoelectric signal
Samuel et al. Examining the effect of subjects' mobility on upper-limb motion identification based on EMG-pattern recognition
Oweis et al. ANN-based EMG classification for myoelectric control
CN113261981A (en) Quantitative assessment method and system for upper limb spasm based on surface myoelectric signal
Samuel et al. A novel time-domain descriptor for improved prediction of upper limb movement intent in EMG-PR system
Akben Low-cost and easy-to-use grasp classification, using a simple 2-channel surface electromyography (sEMG)
Dzitac et al. Identification of ERD using fuzzy inference systems for brain-computer interface
Veer A flexible approach for segregating physiological signals
Nurhanim et al. EMG signals classification on human activity recognition using machine learning algorithm
Anantamek et al. Recognition of yoga poses using EMG signals from lower limb muscles
CN113609975A (en) Modeling method for tremor detection, hand tremor detection device and method
Iadarola et al. A new method for sEMG envelope detection from reduced measurements
CN116831874A (en) Lower limb rehabilitation device control method based on electromyographic signals
CN112036357A (en) Upper limb action recognition method and system based on surface electromyogram signal
Veer et al. Analysis and recognition of operations using SEMG from upper arm muscles
Benazzouz et al. Knee pathology diagnosis based on muscle activation intervals detection and the relationship between knee flexion and surface EMG
Veer Spectral and mathematical evaluation of electromyography signals for clinical use
Mobarak et al. Hand movement classification using transient state analysis of surface multichannel EMG signal
Li et al. sEMG based joint angle estimation of lower limbs using LS-SVM
KR20220158462A (en) EMG signal-based recognition information extraction system and EMG signal-based recognition information extraction method using the same
Al-Assaf et al. Surface myoelectric signal classification for prostheses control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190308

Assignee: GUANGDONG TRANSTEK MEDICAL ELECTRONICS Co.,Ltd.

Assignor: University OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA, ZHONGSHAN INSTITUTE

Contract record no.: X2023980048194

Denomination of invention: Establishment method, recognition method and device of gait recognition model based on electromyographic signals

Granted publication date: 20210831

License type: Exclusive License

Record date: 20231124