Muscle relaxation signal identification method and wireless muscle relaxation monitor
Through the muscle relaxation signal identification method and wireless muscle relaxation monitor based on gradient boosting decision tree, the problem of insufficient sensitivity and flexibility of the existing muscle relaxation monitoring method is solved, wireless data transmission and efficient monitoring are realized, and it is adapted to modern surgical technology. needs.
Patent Information
- Application Number
- CN202411128672.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-08-16
AI Technical Summary
Existing muscle relaxation monitoring methods are insufficiently sensitive and scientific, and the wired design of the equipment limits the flexibility and efficiency of anesthesiologists in the operating room.
The muscle relaxation signal identification method based on the gradient boosting decision tree is adopted. By collecting and extracting the time domain and nonlinear characteristics of the muscle relaxation signal, combined with the ReliefF algorithm and the K nearest neighbor algorithm, a gradient boosting decision tree model is constructed to realize the wireless muscle relaxation monitor. Wireless data transmission reduces line complexity.
It realizes muscle relaxation monitoring without movement acceleration and limb abduction, adapts to modern surgical technology, breaks the traditional wired connection, improves monitoring flexibility and efficiency, and reduces the constraints caused by data lines.
Smart Images

Figure CN118643399A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of muscle relaxation monitoring, and in particular to a muscle relaxation signal recognition method based on a gradient boosting decision tree and a wireless muscle relaxation monitor. Background Art
[0002] Postoperative residual muscle relaxation is a series of adverse reactions caused by the incomplete recovery of the patient's muscle strength due to the residual muscle relaxants or their metabolites in the body during the anesthesia recovery period. This may affect the patient's postoperative recovery and early rehabilitation. In more serious cases, pulmonary complications may occur, and even lead to death. Studies have shown that the use of intraoperative quantitative monitoring can significantly reduce the incidence of postoperative residual muscle relaxation. At present, the most commonly used muscle relaxation monitoring method in routine clinical and research is based on accelerography. Accelerography is the current clinical standard for muscle relaxation monitoring and must be calibrated before use. The monitoring site must be free and free of interference. The monitoring is performed on the arm and cannot be moved. When moving to the intensive care unit, a pallet is sometimes required to carry the arm to the intensive care unit. The monitoring range fluctuates greatly and can be greater than 100%. Its sensitivity and scientificity are not perfect. At the same time, all connector terminals of existing muscle relaxation monitoring equipment are wired designs, and the lines are complicated. When using the equipment for muscle relaxation monitoring, anesthesiologists also need to consider how to place each instrument to make the surgical operation more convenient, which seriously affects the flexibility and efficiency of anesthesiologists in the operating room. Summary of the invention
[0003] The present invention aims at the technical problems existing in the prior art and provides a muscle relaxation signal recognition method based on a gradient boosting decision tree and a wireless muscle relaxation monitor.
[0004] The technical solution of the present invention to solve the above technical problems is as follows: In a first aspect, the present invention provides a method for identifying a muscle relaxation signal, comprising: Collecting multiple muscle relaxation signals, wherein the muscle relaxation signals are signal sequences of fixed duration, each muscle relaxation signal contains N time points, and manually distinguishing and labeling the state type of each muscle relaxation signal, each muscle relaxation signal corresponds to a state type label; Extracting multiple time domain features and nonlinear features of each muscle relaxation signal; constructing a label-feature table, in which each row of data is a feature value of a corresponding muscle relaxation signal, and each row corresponds to a label and each column corresponds to a feature according to manual discrimination and labeling results; Calculate the relevance weight value of each feature in the label-feature table using the ReliefF algorithm, and sort the importance of each feature according to the relevance weight value; Selecting the column data in the label-feature table in descending order of importance to construct a feature vector, using it as the input of the gradient boosting decision tree model for model training, and selecting the optimal feature subset according to the training results; The muscle relaxation signal to be identified is obtained and the features corresponding to the optimal feature subset are extracted to construct a feature vector, which is sent to a trained gradient boosting decision tree model to identify the state type of the muscle relaxation signal.
[0005] Furthermore, the collecting of multiple muscle relaxation signals includes: Acquire the original muscle relaxation signal, and downsample the original muscle relaxation signal; The downsampled muscle relaxation signal is intercepted into a signal sequence of fixed length; The signal sequence is manually identified and labeled with state types, and the state type labels include complete relaxation, deep relaxation, moderate relaxation, shallow relaxation, minimal relaxation, and complete recovery.
[0006] Furthermore, the multiple time domain features and nonlinear features include absolute standard deviation of difference, slope change rate, Wilson amplitude, waveform length, integrated electromyography and approximate entropy.
[0007] Furthermore, the absolute standard deviation of the difference is extracted according to the following formula: (1); The slope change rate is extracted according to the following formula: (2); ; The Wilson amplitude is extracted according to the following formula: (3); ; The waveform length is extracted according to the following formula: (4); The integrated electromyography is extracted according to the following formula: (5); In formulas (1) to (5), x i Represents the amplitude of the current muscle relaxation signal at the i-th time point.
[0008] Furthermore, the method for extracting approximate entropy includes: The amplitude sequence based on time points in a certain data segment is recorded as {x(i)|1≤i≤N}; Based on the amplitude sequence {x(i)|1≤i≤N}, N-m+1 m-dimensional vectors X are reconstructed by the following formula m (i) X m (i)={x(i),x(i+1),...,x(i+m-1)|i=1,2,...,N-m+1}, where m represents the embedding size; make Represents vector X m (j) and vector X m (i) The probability that the distance between them is less than the predetermined value r is: , i,j=1,2,...,N-m+1; in, represents the Heaviside function, Represents vector X m (j) and vector X m (i) The distance between them is defined as: , k=0,1,...,m; Defining parameter values : ; Reconstruct the m+1 dimensional vector X m+1 (i); Calculating approximate entropy .
[0009] Furthermore, the ReliefF algorithm is used to calculate the relevance weight value of each feature in the label-feature table, and the importance of each feature is sorted according to the relevance weight value, including: S601, select a sample R from all samples, and extract samples with the same label value as sample R from the label-feature table according to the label value, and record them as the homogeneous sample set, and the other samples are the heterogeneous sample set; S602, using the K nearest neighbor algorithm, respectively extracting k nearest neighbor samples from the same sample set and the different sample set corresponding to the sample R, and denoting them as Hj and Mj(C), respectively, where j ranges from 1 to k, and C represents the label category; S603, constructing and initializing a weight vector W, wherein the dimension of the weight vector W is the same as the number of features of the sample, and the elements in the weight vector W correspond one-to-one to each feature of the sample; S604, select a feature A of sample R, and calculate and update the corresponding element value in the weight vector W according to the difference between the feature A of sample R and samples Hj and Mj(C); S605, repeating step S604 until all element values in the weight vector W are updated; S606, sorting the features in the label-feature table according to the values of the elements in the weight vector W.
[0010] Furthermore, the column data in the label-feature table are selected in order from the largest to the smallest importance to construct a feature vector, which is used as the input of the gradient boosting decision tree model for model training, and the optimal feature subset is selected according to the training result, including: S701, extracting the column data in the label-feature table corresponding to the most important feature, and constructing a feature vector; S702, using a K-fold cross validation method to send the feature vector into a gradient boosting decision tree model to obtain a classification accuracy based on the current feature; S703, select the corresponding column data in the label-feature table in order from large to small importance and add them to the feature vector to construct a new feature vector; and repeat steps S702 and S703. When the classification accuracy decreases, the newly added column data in the new feature vector is removed, and the features corresponding to the remaining column data in the feature vector are used as the optimal feature subset, and the gradient boosting decision tree model corresponding to the feature vector after removing the newly added column data is used as the trained gradient boosting decision tree model.
[0011] In a second aspect, the present invention provides a wireless muscle relaxation monitor, comprising: a front-end data acquisition module and a back-end data processing module; The front-end data acquisition module includes an electrical stimulation module, an electromyography acquisition module, a microcontroller and a communication module; the electrical stimulation module outputs different electrical pulse signals according to a set mode, the electromyography acquisition module collects muscle relaxation signals generated after the muscle is stimulated by the electrical pulse signal and performs preprocessing, and the microcontroller reads the preprocessed muscle relaxation signals and sends them to the back-end data processing module through the communication module in a wireless communication manner; The back-end processing module uses the muscle relaxation signal recognition method described in the first aspect of the present invention to recognize the state type of the muscle relaxation signal.
[0012] In a third aspect, the present invention provides an electronic device, comprising: Memory for storing computer software programs; The processor is used to read and execute the computer software program, thereby implementing the muscle relaxation signal recognition method described in the first aspect of the present invention.
[0013] In a fourth aspect, the present invention provides a non-transitory computer-readable storage medium, wherein the storage medium stores a computer software program, and when the computer software program is executed by a processor, the muscle relaxation signal recognition method described in the first aspect of the present invention is implemented.
[0014] The beneficial effects of the present invention are as follows: the muscle relaxation signal recognition method provided by the present invention does not require the measurement of the movement acceleration of the limbs, nor does it require specific limb abduction movements, and can adapt to the requirements of modern surgical techniques such as various surgical positions and laparoscopic surgery, bringing more possibilities and progress to the medical field. The wireless muscle relaxation monitor provided by the present invention breaks the traditional wired connection method, and adopts a stable and reliable wireless transmission technology to directly transmit the muscle relaxation data collected by the muscle relaxation probe to the host for processing and display, reducing the number of lines and eliminating the constraints and confusion caused by the data line. The anesthesiologist can flexibly adjust the position of the host according to the specific situation, and is no longer limited by space. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of a muscle relaxation signal recognition method according to an embodiment of the present invention; Figure 2 A schematic diagram of the structure of a wireless muscle relaxation monitor provided by an embodiment of the present invention; Figure 3 A schematic diagram of an electronic device according to an embodiment of the present invention; Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0017] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0018] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0019] like Figure 1 As shown, the embodiment of the present invention provides a method for identifying a muscle relaxation signal, comprising the following steps: S1, collecting multiple muscle relaxation signals, wherein the muscle relaxation signal is a signal sequence of fixed duration, each muscle relaxation signal contains N time points, and manually distinguishing and labeling the state type of each muscle relaxation signal, each muscle relaxation signal corresponds to a state type label.
[0020] In the present embodiment, the muscle relaxation signal obtained is a plurality of muscle relaxation signals collected according to the discharge time of the stimulation electrode and the electrical stimulation mode. After obtaining the original muscle relaxation signal, it is necessary to downsample the original muscle relaxation signal to 500HZ to reduce the amount of data and computational complexity. Then the signal sequence of fixed duration is intercepted to the muscle relaxation signal after downsampling. In the present embodiment, the muscle relaxation signal after downsampling is intercepted according to the discharge time of the stimulation electrode. The signal sequence of 2.2s length is included in each signal sequence. Then the signal sequence is manually distinguished and marked according to clinical standards for state type, and the state type label includes complete relaxation, deep relaxation, moderate relaxation, shallow relaxation, minimum relaxation, and recovery is complete.
[0021] S2, extracting multiple time domain features and nonlinear features of the muscle relaxation signal; constructing a label-feature table, in which each row of data corresponds to each characteristic value of a corresponding muscle relaxation signal, and each row corresponds to a label and each column corresponds to a feature according to manual judgment and labeling results.
[0022] Time domain feature extraction is the process of extracting feature information from the time statistical characteristics of the signal. It regards the signal as a time series and extracts useful components based on the amplitude, distribution, and change trend of the signal. This method is easy to implement, simple to calculate, and has good real-time performance and intuitive physical meaning. Therefore, it is widely used in electromyography recognition research. We selected five time domain features: Difference Absolute Standard Deviation Value (DASDV), Slope Sign Change (SSC), Wilson Amplitude (WAMP), Waveform Length (WL), and Integrated Electromyography (IEMG).
[0023] The absolute standard deviation of the difference represents the difference in absolute standard deviation between adjacent samples, and DASDV is extracted according to formula (1): (1).
[0024] The slope change rate SSC is a method of expressing signal frequency information, which indicates the number of changes between the positive slope and the negative slope. It can not only reflect the change of the electromyographic amplitude, but also avoid the background noise in the electromyographic signal. SSC is extracted according to formula (2): (2); .
[0025] For myoelectric signals, the threshold here is usually selected between 50μV and 100 mV, which depends on the setting of the instrument gain value and the level of background noise. In this embodiment, we use a threshold of 100mV for selection.
[0026] The Wilson amplitude WAMP is similar to the number of zero crossings. It can measure the frequency information of the electromyographic signal to a certain extent. It is also related to the activation of MUAP and muscle strength. It is defined as the number of times the difference in the electromyographic signal amplitude between two adjacent sampling points exceeds the preset threshold. WAMP is extracted according to formula (3): (3); ; In this embodiment, we use a threshold of 100mV for selection.
[0027] The waveform length WL is a measure of the complexity of the electromyographic signal, which represents the cumulative length of the signal waveform over a period of time. WL is extracted according to formula (4): (4); The integrated electromyography (IEMG) is an indicator for measuring the intensity of muscle activity. It is obtained by integrating the surface electromyography signal and represents the total electrical activity generated by the muscle within a certain period of time. The IEMG is extracted according to formula (5): (5); In formulas (1) to (5), x i Represents the amplitude of the current muscle relaxation signal at the i-th time point, and N is 1100.
[0028] Linear features are calculated by linear superposition, which is equivalent to only regular mapping. This process increases the representation ability of features, but the action potential sequence emitted by multiple motor units in the surface electromyography signal is presented on the skin surface as the result of comprehensive superposition of time and space, which is unstable. Various entropy eigenvalues in nonlinearity are a measure of the complexity of unstable time series. The core idea is to detect the probability of new subsequences in the time series. Compared with time domain features, entropy eigenvalues analyze surface electromyography signals from a deeper level. Commonly used eigenvalues of this type include fuzzy entropy, sample entropy, approximate entropy, etc. This scheme uses approximate entropy as a nonlinear feature.
[0029] Approximate entropy is a nonlinear dynamic parameter used to quantify the regularity and unpredictability of time series fluctuations. It uses a non-negative number to represent the complexity of the time series, reflecting the possibility of new information in the time series. The more complex the time series, the larger the corresponding approximate entropy. The calculation process of approximate entropy involves reconstructing the signal into the phase space. When the embedded dimension of the phase space increases from m to m+1, the approximate entropy estimates the growth rate of the number of phase space patterns within a predetermined value r. A finite length signal of length N is in the time series x(i) (1≤i≤N) (in this scheme, N is 1100), and N-m+1 vectors X are reconstructed by the following formula m (i).
[0030] Specifically, the method for extracting approximate entropy includes: The amplitude sequence based on time points in a certain data segment is recorded as {x(i)|1≤i≤N}; Based on the amplitude sequence {x(i)|1≤i≤N}, N-m+1 m-dimensional vectors X are reconstructed by the following formula m (i) X m (i)={x(i),x(i+1),...,x(i+m-1)|i=1,2,...,N-m+1}, where m represents the embedding size; make Represents vector X m (j) and vector X m (i) The probability that the distance between them is less than the predetermined value r is: , i,j=1,2,...,N-m+1; in, represents the Heaviside function, Represents vector X m (j) and vector X m (i) The distance between them is defined as: , k=0,1,...,m; Defining parameter values : ; Reconstruct the m+1 dimensional vector X m+1 (i); Calculating approximate entropy .
[0031] For the extraction of the feature of approximate entropy, this scheme adopts r as 0.15 of the standard deviation of the electromyographic signal and m as 2, so an approximate entropy value can be extracted from the electromyographic signal at a time point of 1100.
[0032] S3, using the ReliefF algorithm to calculate the relevance weight value of each feature in the label-feature table, and rank the importance of each feature according to the relevance weight value.
[0033] Specifically, it includes the following sub-steps: S601, select a sample R from all samples, and extract samples with the same label value as sample R from the label-feature table according to the label value, and record them as the homogeneous sample set, and the other samples are the heterogeneous sample set; S602, using the K nearest neighbor algorithm, extract k nearest neighbor samples from the same sample set and the different sample set corresponding to the sample R, and record them as Hj and Mj(C), respectively, where j ranges from 1 to k, and C represents the label category; S603, constructing and initializing a weight vector W, wherein the dimension of the weight vector W is the same as the number of features of the sample, and the elements in the weight vector W correspond one-to-one to each feature of the sample; S604, select a feature A of sample R, and calculate and update the corresponding element value in the weight vector W according to the difference between the feature A of sample R and samples Hj and Mj(C); S605, repeating step S604 until all element values in the weight vector W are updated; S606, sorting the features in the label-feature table according to the values of the elements in the weight vector W.
[0034] In practical applications, steps S601 to S606 may be repeated multiple times. Theoretically, the more times the steps are repeated, the more reliable the values of the elements in the weight vector W calculated in the end are. In this embodiment, steps S601 to S606 are repeated 20 times, and the K nearest neighbor algorithm is used to extract 6 nearest neighbor samples from the same sample set and the different sample set corresponding to the sample R. Specifically, The corresponding element value in the weight vector W is calculated according to the following formula: ; In the above formula, Ri represents the sample selected during the i-th repetition, A represents the feature, m represents the number of repetitions, Hj represents the nearest neighbor sample of the same type as Ri, M represents the nearest neighbor sample of a different type from Ri, P(C) represents the distribution probability of the class, and class(Ri) represents the category to which Ri belongs. For the six continuous feature variables in this example, the function diff is used to calculate the feature difference between two different samples. ; Among them, I1 and I2 are two samples, value(A,I1) refers to the value corresponding to feature A of sample I1; max(A) and min(A) represent the maximum and minimum values of feature A in all samples respectively.
[0035] S4, selecting column data in the label-feature table in descending order of importance to construct a feature vector, using the feature vector as input of a gradient boosting decision tree model for model training, and selecting an optimal feature subset based on the training results.
[0036] Specifically, step S4 includes the following sub-steps: S701, extracting the column data in the label-feature table corresponding to the most important feature, and constructing a feature vector; S702, using a K-fold cross validation method to send the feature vector into a gradient boosting decision tree model to obtain a classification accuracy based on the current feature; S703, select the corresponding column data in the label-feature table in order from large to small importance and add them to the feature vector to construct a new feature vector; and repeat steps S702 and S703. When the classification accuracy decreases, the newly added column data in the new feature vector is removed, and the features corresponding to the remaining column data in the feature vector are used as the optimal feature subset, and the gradient boosting decision tree model corresponding to the feature vector after removing the newly added column data is used as the trained gradient boosting decision tree model.
[0037] Assume that, according to the calculation and sorting of step S3, the importance ranking results of the six features are approximate entropy, absolute standard deviation of difference, slope change rate, Wilson amplitude, waveform length, and integrated electromyography. Then we first extract the column data corresponding to the approximate entropy and construct feature vector 1. Use the K-fold cross-validation method to send feature vector 1 into the gradient boosting decision tree model to obtain the classification accuracy based on approximate entropy. Then extract the column data corresponding to the absolute standard deviation of difference, add it to feature vector 1, form feature vector 2, use the K-fold cross-validation method to send feature vector 2 into the gradient boosting decision tree model, and obtain the classification accuracy based on (approximate entropy + absolute standard deviation of difference). Then extract the column data corresponding to the slope change rate, add it to feature vector 2, form feature vector 3, use the K-fold cross-validation method to send feature vector 3 into the gradient boosting decision tree model, and obtain the classification accuracy based on (approximate entropy + absolute standard deviation of difference + slope change rate). Until all the column data corresponding to the features are involved in the above calculation, the classification accuracy corresponding to each feature vector is compared. When the classification accuracy decreases after adding the column data corresponding to a feature, the feature corresponding to the feature vector before adding the feature is used as the optimal feature subset. For example, when the column data corresponding to the waveform length is added to the feature vector, the classification accuracy based on (approximate entropy + absolute standard deviation of difference + slope change rate + Wilson amplitude + waveform length) is significantly reduced, and the four features of approximate entropy, absolute standard deviation of difference, slope change rate, and Wilson amplitude are used as the optimal feature subset.
[0038] S5, obtaining the muscle relaxation signal to be identified and extracting the features corresponding to the optimal feature subset to construct a feature vector, and sending it to the trained gradient boosting decision tree model to identify the state type of the muscle relaxation signal.
[0039] For example, according to step S4, we extracted four features, namely, approximate entropy, absolute standard deviation of difference, slope change rate, and Wilson amplitude, as the optimal feature subset. At this time, when extracting the features of the muscle relaxation signal to be identified, it is necessary to extract four eigenvalues, namely, approximate entropy, absolute standard deviation of difference, slope change rate, and Wilson amplitude, and then use the four eigenvalues to construct a feature vector and send it to the trained gradient boosting decision tree model to identify the state type of the muscle relaxation signal.
[0040] like Figure 2 As shown, an embodiment of the present invention provides a wireless muscle relaxation monitor, including: a front-end data acquisition module and a back-end data processing module; The front-end data acquisition module includes an electrical stimulation module, an electromyography acquisition module, a microcontroller and a communication module; the electrical stimulation module outputs different electrical pulse signals according to a set mode, the electromyography acquisition module collects muscle relaxation signals generated after the muscle is stimulated by the electrical pulse signal and performs preprocessing, and the microcontroller reads the preprocessed muscle relaxation signals and sends them to the back-end data processing module through the communication module in a wireless communication manner. In this embodiment, the communication module adopts a Bluetooth module.
[0041] The electrical stimulation module includes a pulse voltage modulation circuit and a constant current output circuit. The output amplitude of the pulse voltage modulation circuit uses the controller's digital-to-analog conversion module to generate a stimulation pulse drive signal. The constant current output circuit uses a voltage-controlled constant current implementation method, which is composed of an operational amplifier and a field effect transistor, and outputs a current pulse signal to the outside. The electromyography acquisition module is composed of a preprocessing circuit, an ADS1298 analog-to-digital conversion circuit, and a right leg drive circuit. The microcontroller reads the electromyography data and uses the serial port to send the electromyography to the Bluetooth transmission buffer. The Bluetooth module meets the performance requirements of the RF module for low power consumption and long-distance communication.
[0042] The back-end processing module extracts features corresponding to the muscle relaxation signal to be identified to construct a feature vector, and uses the trained gradient boosting decision tree model to identify the state type of the muscle relaxation signal.
[0043] See also Figure 3 , Figure 3 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention provides an electronic device 500, including a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 511, the following steps are implemented: S1, collecting multiple muscle relaxation signals, wherein the muscle relaxation signals are signal sequences of fixed duration, each muscle relaxation signal contains N time points, and manually distinguishing and labeling the state type of each muscle relaxation signal, each muscle relaxation signal corresponds to a state type label; S2, extracting multiple time domain features and nonlinear features of the muscle relaxation signal; constructing a label-feature table, in which each row of data is a corresponding feature value of a muscle relaxation signal, and each row corresponds to a label and each column corresponds to a feature according to manual discrimination and labeling results; S3, using the ReliefF algorithm to calculate the relevance weight value of each feature in the label-feature table, and sorting the importance of each feature according to the relevance weight value; S4, selecting column data in the label-feature table in descending order of importance to construct a feature vector, using the feature vector as input of a gradient boosting decision tree model for model training, and selecting an optimal feature subset according to the training result; S5, obtaining the muscle relaxation signal to be identified and extracting the features corresponding to the optimal feature subset to construct a feature vector, and sending it to the trained gradient boosting decision tree model to identify the state type of the muscle relaxation signal.
[0044] See also Figure 4 , Figure 4 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 4 As shown, this embodiment provides a computer-readable storage medium 600, on which a computer program 611 is stored. When the computer program 611 is executed by a processor, the following steps are implemented: S1, collecting multiple muscle relaxation signals, wherein the muscle relaxation signals are signal sequences of fixed duration, each muscle relaxation signal contains N time points, and manually distinguishing and labeling the state type of each muscle relaxation signal, each muscle relaxation signal corresponds to a state type label; S2, extracting multiple time domain features and nonlinear features of the muscle relaxation signal; constructing a label-feature table, in which each row of data is a corresponding feature value of a muscle relaxation signal, and each row corresponds to a label and each column corresponds to a feature according to manual discrimination and labeling results; S3, using the ReliefF algorithm to calculate the relevance weight value of each feature in the label-feature table, and sorting the importance of each feature according to the relevance weight value; S4, selecting column data in the label-feature table in descending order of importance to construct a feature vector, using the feature vector as input of a gradient boosting decision tree model for model training, and selecting an optimal feature subset according to the training result; S5, obtaining the muscle relaxation signal to be identified and extracting the features corresponding to the optimal feature subset to construct a feature vector, and sending it to the trained gradient boosting decision tree model to identify the state type of the muscle relaxation signal.
[0045] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0046] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0047] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0048] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0049] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0050] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0051] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for identifying muscle relaxation signals, characterized in that: include: Collecting multiple muscle relaxation signals, wherein the muscle relaxation signals are signal sequences of fixed duration, each muscle relaxation signal contains N time points, and manually distinguishing and labeling the state type of each muscle relaxation signal, each muscle relaxation signal corresponds to a state type label; Extracting multiple time domain features and nonlinear features of each of the muscle relaxation signals; Constructing a label-feature table, in which each row of data is a feature value of a corresponding muscle relaxation signal, and according to manual discrimination and labeling results, each row corresponds to a label, and each column corresponds to a feature; Calculate the relevance weight value of each feature in the label-feature table using the ReliefF algorithm, and sort the importance of each feature according to the relevance weight value; Selecting the column data in the label-feature table in descending order of importance to construct a feature vector, using it as the input of the gradient boosting decision tree model for model training, and selecting the optimal feature subset according to the training results; The muscle relaxation signal to be identified is obtained and the features corresponding to the optimal feature subset are extracted to construct a feature vector, which is sent to a trained gradient boosting decision tree model to identify the state type of the muscle relaxation signal.
2. The method according to claim 1, characterized in that The collecting of multiple muscle relaxation signals comprises: Acquire the original muscle relaxation signal, and downsample the original muscle relaxation signal; The downsampled muscle relaxation signal is intercepted into a signal sequence of fixed length; The signal sequence is manually identified and labeled with state types, and the state type labels include complete relaxation, deep relaxation, moderate relaxation, shallow relaxation, minimal relaxation, and complete recovery.
3. The method according to claim 1, characterized in that The multiple time domain features and nonlinear features include absolute standard deviation of difference, slope change rate, Wilson amplitude, waveform length, integrated electromyography and approximate entropy.
4. The method according to claim 3, characterized in that The absolute standard deviation of the difference is extracted according to the following formula: (1); The slope change rate is extracted according to the following formula: (2); ; The Wilson amplitude is extracted according to the following formula: (3); ; The waveform length is extracted according to the following formula: (4); The integrated electromyography is extracted according to the following formula: (5); In formulas (1) to (5), x i Represents the amplitude of the current muscle relaxation signal at the i-th time point.
5. The method according to claim 3, characterized in that: The method for extracting approximate entropy comprises: The amplitude sequence based on time points in a certain data segment is recorded as {x(i)|1≤i≤N}; Based on the amplitude sequence {x(i)|1≤i≤N}, N-m+1 m-dimensional vectors X are reconstructed by the following formula m (i) X m (i)={x(i),x(i+1),...,x(i+m-1)|i=1,2,...,N-m+1}, where m represents the embedding size; make Represents vector X m (j) and vector X m (i) The probability that the distance between them is less than the predetermined value r is: ,i,j=1,2,...,N-m+1; in, represents the Heaviside function, Represents vector X m (j) and vector X m (i) The distance between them is defined as: ,k=0,1,...,m; Defining parameter values : ; Reconstruct the m+1 dimensional vector X m+1 (i); Calculating approximate entropy .
6. The method according to claim 1, characterized in that The method of calculating the relevance weight value of each feature in the label-feature table by using the ReliefF algorithm and ranking the importance of each feature according to the relevance weight value includes: S601, select a sample R from all samples, and extract samples with the same label value as sample R from the label-feature table according to the label value, and record them as the homogeneous sample set, and the other samples are the heterogeneous sample set; S602, using the K nearest neighbor algorithm, respectively extracting k nearest neighbor samples from the same sample set and the different sample set corresponding to the sample R, and denoting them as Hj and Mj(C), respectively, where j ranges from 1 to k, and C represents the label category; S603, constructing and initializing a weight vector W, wherein the dimension of the weight vector W is the same as the number of features of the sample, and the elements in the weight vector W correspond one-to-one to each feature of the sample; S604, select a feature A of sample R, and calculate and update the corresponding element value in the weight vector W according to the difference between the feature A of sample R and samples Hj and Mj(C); S605, repeating step S604 until all element values in the weight vector W are updated; S606, sorting the features in the label-feature table according to the value of each element in the weight vector W.
7. The method according to claim 1, characterized in that The column data in the label-feature table are selected in descending order of importance to construct a feature vector, which is used as the input of the gradient boosting decision tree model for model training, and the optimal feature subset is selected according to the training results, including: S701, extracting the column data in the label-feature table corresponding to the most important feature, and constructing a feature vector; S702, using a K-fold cross validation method to send the feature vector into a gradient boosting decision tree model to obtain a classification accuracy based on the current feature; S703, select the corresponding column data in the label-feature table in order from large to small importance and add them to the feature vector to construct a new feature vector; and repeat steps S702 and S703. When the classification accuracy decreases, the newly added column data in the new feature vector is removed, and the features corresponding to the remaining column data in the feature vector are used as the optimal feature subset, and the gradient boosting decision tree model corresponding to the feature vector after removing the newly added column data is used as the trained gradient boosting decision tree model.
8. A wireless muscle relaxation monitor, characterized in that: include: Front-end data acquisition module and back-end data processing module; The front-end data acquisition module includes an electrical stimulation module, an electromyography acquisition module, a microcontroller and a communication module; The electrical stimulation module outputs different electrical pulse signals according to the set mode, the electromyography acquisition module acquires the muscle relaxation signal generated after the muscle is stimulated by the electrical pulse signal and performs preprocessing, and the microcontroller reads the preprocessed muscle relaxation signal and sends it to the back-end data processing module through the communication module in a wireless communication manner; The back-end processing module uses the muscle relaxation signal recognition method described in any one of claims 1-7 to identify the state type of the muscle relaxation signal.
9. An electronic device, characterized in that: include: Memory for storing computer software programs; A processor is used to read and execute the computer software program, thereby implementing the muscle relaxation signal recognition method described in any one of claims 1-7.
10. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores a computer software program, and when the computer software program is executed by the processor, the muscle relaxation signal recognition method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Respirator triggering method based on surface diaphragm myoelectricity
CN118022119A
Method and apparatus for measuring animal's condition by acquiring and analyzing its biological signals
US20030166996A1
Classification system of epileptic EEG signals based on non-linear dynamics features
US20210000426A1
Tri-axial seismocardiography devices and methods
US20220125330A1
Model with usage data compensation
US20230177111A1
