A method and system for processing diaphragm electromyographic signals
By preprocessing and feature extraction of diaphragm EMG signals, combined with multi-layer perceptron and long short-term memory network model, the problems of unstable signal quality and noise interference in traditional EMG signal processing are solved, and the recognition of EMG signals is improved. Accuracy and interpretability of respiratory behavior predictions.
Patent Information
- Application Number
- CN202410876612.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Traditional myoelectric signal processing methods have problems such as unstable signal quality, serious noise interference, and low recognition accuracy. They cannot effectively solve the problems of excessive noise and signal separation, and lack fusion analysis of multi-type features.
Preprocessing operations are used to obtain diaphragm surface electromyographic signals, including signal filtering, electromyographic independent component analysis, mutation point processing and data segmentation, to extract time domain, frequency domain, time-frequency domain and nonlinear features, combined with multi-layer perceptron and The long short-term memory network model performs action recognition and breathing behavior prediction, outputs action labels and risk alerts, and performs visual processing.
It improves the recognition accuracy of electromyographic signals, effectively removes noise in electromyographic signals, enhances the interpretability of prediction of diaphragm respiratory behavior, and improves the recognition accuracy and computing efficiency of the model.
Smart Images

Figure CN118402801B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of biomedical signal processing, and in particular to a method and system for processing diaphragm electromyographic signals. Background Art
[0002] The diaphragm is an important muscle that controls respiratory function. When the diaphragm is damaged, the muscle function status needs to be accurately evaluated. In traditional methods, physicians usually conduct empirical evaluations of the muscle function status, and the evaluation results often lack objectivity. By processing the muscle's electromyographic signals, objective evaluation results can be obtained. Currently, in clinical diagnosis, invasive probes are generally used to insert into the muscles to obtain electromyographic signals. The advantage of this method is that it has little interference, but it is more harmful to the patient. Surface electromyographic signals are bioelectric signals emitted when neuromuscular activity is recorded from the surface of human skin through electrodes. They are non-invasive, simple to operate, and easy for patients to receive.
[0003] The electromyographic signal is formed by the superposition of the action potentials of numerous muscle fiber motor units. The contraction of a large number of muscle fibers generates muscle force. The electromyographic signal is the electrical signal accompanying muscle contraction. The surface electromyographic signal is mainly the combined effect of the electromyographic signal of the superficial muscle and the potential change on the nerve trunk. It has different degrees of correlation with the activity state and functional state of the muscle, and can reflect different muscle functional states to a certain extent.
[0004] Traditional electromyographic signal processing methods have some limitations, such as unstable signal quality, severe noise interference, low recognition accuracy, and inability to predict diseases. Although the commonly used filters in the prior art can improve the signal quality to a certain extent, they still fail to effectively solve the problems of excessive noise and signal separation. The prior art implements the analysis of multiple types of features, but does not integrate multiple types of features for analysis, and the recognition accuracy needs to be improved. Summary of the invention
[0005] A method for processing diaphragm electromyographic signals, comprising:
[0006] S1. Acquire the surface electromyographic signal of the diaphragm, each surface electromyographic signal of the diaphragm includes a surface electromyographic signal of the end of the sternum and a surface electromyographic signal of the lower edge of the ribs;
[0007] S2. performing a preprocessing operation on the diaphragm surface electromyographic signal to obtain the diaphragm electromyographic signal to be analyzed, the preprocessing operation including signal filtering, electromyographic independent component analysis, mutation point processing and data segmentation;
[0008] S3. Acquire the characteristics of the diaphragm EMG signal to be analyzed, wherein the characteristics of the diaphragm EMG signal to be analyzed include time domain characteristics, frequency domain characteristics, time-frequency domain characteristics and nonlinear characteristics;
[0009] S4. Combining the diaphragm electromyographic signal features of the surface electromyographic signal at the end of the sternum and the surface electromyographic signal at the lower edge of the ribs into diaphragm electromyographic feature data to be analyzed; sending the diaphragm electromyographic feature data to be analyzed into the diaphragm electromyographic signal analysis model to perform diaphragm movement recognition and respiratory behavior prediction, and outputting the diaphragm movement label and the respiratory behavior label;
[0010] S5. Process the output diaphragm action labels and respiratory behavior labels, and output risk alerts;
[0011] S6. Visualize the diaphragm action labels, respiratory behavior labels, and risk alerts, and output visualization results.
[0012] As a preferred technical solution of the present invention, it also includes establishing a diaphragm electromyographic signal analysis model, and the specific steps are:
[0013] A1. Obtain several diaphragm surface electromyographic signals, each of which includes a sternal end surface electromyographic signal and a rib lower edge surface electromyographic signal, pre-process each diaphragm surface electromyographic signal and annotate the diaphragm movement label and respiratory behavior label to obtain an analysis electromyographic feature sample; form all the analysis electromyographic feature samples into an electromyographic signal recognition data set, and divide the electromyographic signal recognition data set into an electromyographic signal recognition training set and an electromyographic signal recognition test set;
[0014] A2. Pre-train an electromyographic signal recognition model based on a multi-layer perceptron, extract the weight matrix and bias of each layer of the electromyographic signal recognition model; establish an initial diaphragm electromyographic feature recognition model based on a long short-term memory network, set an additional fully connected layer to ensure that the output dimension of the electromyographic signal recognition model is consistent with the input dimension of the initial diaphragm electromyographic feature recognition model; assign the weight matrix and bias of each layer of the electromyographic signal recognition model to the weight parameter of the corresponding layer of the initial diaphragm electromyographic feature recognition model;
[0015] A3. Send the electromyographic signal recognition training set to the initial diaphragm electromyographic feature recognition model for training, with the diaphragm movement label and the respiratory behavior label as the target, to obtain the training diaphragm electromyographic feature recognition model;
[0016] A4. Send the EMG signal recognition test set to the trained diaphragm EMG feature recognition model for accuracy evaluation, and take the diaphragm movement label and breathing behavior label as the target to obtain the test accuracy; if the test accuracy is within the error standard range, the trained diaphragm EMG feature recognition model is used as the diaphragm EMG signal analysis model; if the test accuracy exceeds the error standard range, adjust the hyperparameters of the trained diaphragm EMG feature recognition model and repeat steps A3-A4.
[0017] As a preferred technical solution of the present invention, a myoelectric signal recognition model based on a multi-layer perceptron is pre-trained, and the specific steps are as follows:
[0018] B1. Establish an initial electromyographic signal recognition model with two hidden layers based on the multi-layer perceptron;
[0019] B2. Extract the analyzed electromyographic feature samples from part of the electromyographic signal recognition data set, and add new analyzed electromyographic feature samples to form a pre-trained electromyographic feature data set, and divide the pre-trained electromyographic feature data set into a pre-trained electromyographic feature training set and a pre-trained electromyographic feature test set;
[0020] B3. Send the pre-trained electromyographic feature training set to the initial electromyographic signal recognition model for training, with the diaphragm action label as the target, to obtain a training electromyographic signal recognition model;
[0021] B4. Send the pre-trained EMG feature test set to the trained EMG signal recognition model for accuracy evaluation. Taking the diaphragm movement label as the target, adjust the hyperparameters of the trained EMG signal recognition model to obtain the EMG signal recognition model.
[0022] As a preferred technical solution of the present invention, the preprocessing operation includes signal filtering, independent analysis of myoelectric components, mutation point processing and data segmentation, and the specific steps are:
[0023] C1. Filter the diaphragm surface electromyographic signal, use a bandpass filter to filter out the ultra-high frequency signal noise and ultra-low frequency signal noise in the diaphragm surface electromyographic signal according to the effective frequency of the diaphragm surface electromyographic signal, and use a notch filter to filter out the power frequency signal noise in the diaphragm surface electromyographic signal according to the power supply frequency to obtain a first preprocessed electromyographic signal;
[0024] C2. Performing myoelectric independent component analysis on the first preprocessed electromyographic signal to obtain a second preprocessed electromyographic signal;
[0025] C3. Perform mutation point processing on the second preprocessed electromyographic signal, perform point-by-point detection on the second preprocessed electromyographic signal, detect whether there is a point in the second preprocessed electromyographic signal that exceeds the set maximum electromyographic threshold, and call the detected point an amplitude mutation point. Perform 5-point smoothing on the amplitude mutation point to obtain a third preprocessed electromyographic signal;
[0026] C4. Perform signal segmentation on the third preprocessed electromyographic signal, and perform data segmentation on the third preprocessed electromyographic signal using data framing to obtain the diaphragm electromyographic signal to be analyzed.
[0027] As a preferred technical solution of the present invention, the specific steps of electromyographic independent component analysis are: using the FastICA algorithm to perform electromyographic independent component analysis, selecting the independent components of the electromyographic independent component analysis as electromyographic signals and electrocardiographic signals; randomly initializing the initial independent component vectors of the electromyographic signals and electrocardiographic signals, using negative entropy to measure the maximum independence of the initial independent component vectors, and cyclically iteratively optimizing the initial independent component vectors to obtain the final optimization results of independent electromyographic components and independent electrocardiographic components; repeating the above steps to obtain 3 groups of independent electromyographic components and independent electrocardiographic components, performing electrocardiographic signal evaluation on the independent electrocardiographic components, and selecting the independent electromyographic component combination corresponding to the independent electrocardiographic component with the highest score as the second preprocessed electromyographic signal.
[0028] As a preferred technical solution of the present invention, the electromyographic signal characteristics of the diaphragm electromyographic signal to be analyzed are obtained, and the specific steps are:
[0029] D1. Obtaining the time domain characteristics of the diaphragm electromyographic signal to be analyzed, including the root mean square value and waveform length of the diaphragm electromyographic signal to be analyzed;
[0030] D2. Obtaining frequency domain characteristics of the diaphragm electromyographic signal to be analyzed, including the mean frequency and median frequency of the diaphragm electromyographic signal to be analyzed;
[0031] D3. Obtaining the time-frequency domain characteristics of the diaphragm electromyographic signal to be analyzed, including the energy and variance of four wavelet packet coefficients of the diaphragm electromyographic signal to be analyzed;
[0032] D4. Obtain the nonlinear characteristics of the diaphragm electromyographic signal to be analyzed, including the sample entropy and Lyapunov coefficient of the diaphragm electromyographic signal to be analyzed.
[0033] As a preferred technical solution of the present invention, the time-frequency domain characteristics of the diaphragm electromyographic signal to be analyzed are obtained, and the specific steps are as follows:
[0034] E1. Use db2 wavelet packet basis function to perform wavelet packet transform;
[0035] E2. performing wavelet packet decomposition on the diaphragm electromyographic signal to be analyzed to obtain two signal segments, including a high-frequency signal portion and a low-frequency signal portion of the diaphragm electromyographic signal to be analyzed;
[0036] E3. Continue to perform wavelet packet decomposition on the high-frequency signal part and the low-frequency signal part of the diaphragm electromyography signal to be analyzed to obtain 4 segments of signals, including the high-frequency part and the low-frequency part of the high-frequency signal part of the diaphragm electromyography signal to be analyzed, and the high-frequency part and the low-frequency part of the low-frequency signal part of the diaphragm electromyography signal to be analyzed;
[0037] E4. Repeat step E3 twice to obtain 16 segments of diaphragm EMG signals to be analyzed;
[0038] E5. Select the 4 signal segments with the highest energy values among the 16 signal segments as the 4 wavelet packet coefficients of the diaphragm electromyographic signals to be analyzed, and calculate the energy and variance of the 4 wavelet packet coefficients.
[0039] As a preferred technical solution of the present invention, the output diaphragm action labels and respiratory behavior labels are processed to output a risk alarm. The specific steps are as follows:
[0040] F1. Risk alerts are divided into yellow risk alerts and red risk alerts;
[0041] F2. Output corresponding yellow risk alarm and red risk alarm according to diaphragm movement and breathing behavior.
[0042] A diaphragm electromyographic signal processing system, comprising:
[0043] A data acquisition module is used to obtain diaphragm surface electromyographic signals, each diaphragm surface electromyographic signal includes a sternum end surface electromyographic signal and a rib lower edge surface electromyographic signal;
[0044] A data preprocessing module is used to perform preprocessing operations on the diaphragm surface electromyographic signals to obtain the diaphragm electromyographic signals to be analyzed, and the preprocessing operations include signal filtering, electromyographic independent component analysis, mutation point processing and data segmentation;
[0045] A feature extraction module is used to obtain the features of the diaphragm electromyographic signal to be analyzed, wherein the features of the diaphragm electromyographic signal to be analyzed include time domain features, frequency domain features, time-frequency domain features and nonlinear features;
[0046] The electromyographic signal feature recognition module is used to combine the electromyographic signal features of the diaphragm to be analyzed of the surface electromyographic signal of the sternum end and the surface electromyographic signal of the lower edge of the ribs into the electromyographic feature data of the diaphragm to be analyzed; the electromyographic feature data of the diaphragm to be analyzed is sent to the diaphragm electromyographic signal analysis model to perform diaphragm movement recognition and respiratory behavior prediction, and output a diaphragm movement label and a respiratory behavior label;
[0047] A comprehensive suggestion module is used to process the output diaphragm action labels and respiratory behavior labels and output risk alerts;
[0048] The visualization interaction module is used to visualize the diaphragm action labels, respiratory behavior labels and risk alarms and output visualization results.
[0049] The present invention has the following advantages:
[0050] 1. The present invention obtains multiple types of features of diaphragm electromyographic signals, such as the root mean square value and waveform length in the time domain features, and the mean frequency and median frequency in the frequency domain features; uses a pre-trained model based on a multi-layer perceptron to obtain the action feature weights of multiple types of features, and integrates a diaphragm electromyographic signal analysis model based on a long short-term memory network to perform action recognition and respiratory behavior prediction, effectively combining the feature weights of the two models and improving the recognition accuracy of electromyographic signals; through an improved independent component analysis method, electrocardiographic signals of multiple groups of independent electrocardiographic components are evaluated, and the independent electromyographic components corresponding to the independent electrocardiographic components with the highest scores are obtained, thereby removing the mixed electrocardiographic signals in the electromyographic signals and solving the noise problem of the electromyographic signals.
[0051] 2. The present invention obtains the wavelet packet coefficients of the diaphragm electromyographic signal and selects the coefficients with larger energy values in the wavelet packet coefficients, thereby avoiding excessive characteristic coefficients that reduce the calculation efficiency and retaining the characteristic coefficients with high information density in the time-frequency domain characteristics.
[0052] 3. The present invention adopts dual-label classification for the diaphragm electromyographic signal recognition model, so that the model combines diaphragm movement and respiratory behavior for analysis, which effectively improves the interpretability of the model for predicting diaphragm respiratory behavior. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 The present invention is a schematic diagram of the structure of a diaphragm electromyographic signal processing system used in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to enable persons skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0055] Embodiment 1, a method for processing diaphragm electromyographic signals, comprising:
[0056] S1. Acquire the surface electromyographic signal of the diaphragm, each surface electromyographic signal of the diaphragm includes a surface electromyographic signal of the end of the sternum and a surface electromyographic signal of the lower edge of the ribs;
[0057] The acquired diaphragm surface electromyographic signals include electromyographic signals from two sources, namely, surface electromyographic signals from the end of the sternum and surface electromyographic signals from the lower edge of the ribs. The surface electromyographic signals from the end of the sternum are acquired by placing a sEMG sensor from the protruding part of the end of the sternum to the position behind the xiphoid process; the surface electromyographic signals from the lower edge of the ribs are acquired by placing a sEMG sensor at the lower edge of the ribs, at the 8th to 9th ribs on the right side of the human body. The combined analysis of the diaphragm surface electromyographic signals from the two sources can obtain more accurate recognition results.
[0058] S2. performing a preprocessing operation on the diaphragm surface electromyographic signal to obtain the diaphragm electromyographic signal to be analyzed, the preprocessing operation including signal filtering, electromyographic independent component analysis, mutation point processing and data segmentation;
[0059] Since the electromyographic signals are obtained from the skin surface, they are easily disturbed by the environment, and the electromyographic signals are easily mixed with electrocardiographic signals, so the data needs to be carefully preprocessed;
[0060] The specific steps of preprocessing the diaphragm surface electromyographic signal in step S2 are:
[0061] C1. Filter the diaphragm surface electromyographic signal, use a bandpass filter to filter out the ultra-high frequency signal noise and ultra-low frequency signal noise in the diaphragm surface electromyographic signal according to the effective frequency of the diaphragm surface electromyographic signal, and use a notch filter to filter out the power frequency signal noise in the diaphragm surface electromyographic signal according to the power supply frequency to obtain a first preprocessed electromyographic signal;
[0062] The effective frequency range of surface electromyography signal is 0~500hz, mainly concentrated in 50~150hz. The range of bandpass filter is generally set to be lower than 10hz, and the signal higher than 400hz is filtered. According to the power supply frequency, notch filter needs to be set. The notch filter is preset to 50hz, and other fixed frequencies can be selected in the interactive interface.
[0063] C2. Performing myoelectric independent component analysis on the first preprocessed electromyographic signal to obtain a second preprocessed electromyographic signal;
[0064] The specific steps of the electromyography independent component analysis are: use the FastICA algorithm to perform electromyography independent component analysis, select the independent components of the electromyography independent component analysis as electromyography signals and electrocardiogram signals; randomly initialize the initial independent component vectors of the electromyography signals and electrocardiogram signals, use negative entropy to measure the maximum independence of the initial independent component vectors, and iteratively optimize the initial independent component vectors in a loop to obtain the final optimization results of independent electromyography components and independent electrocardiogram components; repeat the above steps to obtain 3 groups of independent electromyography components and independent electrocardiogram components, evaluate the electrocardiogram signals of the independent electrocardiogram components, and select the independent electromyography component corresponding to the independent electrocardiogram component with the highest score to combine the second preprocessed electromyography signal;
[0065] The method for evaluating the ECG signal is to calculate the R wave amplitude, QRS complex width, and T wave morphology of the independent ECG components, obtain the scores of the three calculations, and perform weighted accumulation to obtain the final ECG signal evaluation score;
[0066] C3. Perform mutation point processing on the second preprocessed electromyographic signal, perform point-by-point detection on the second preprocessed electromyographic signal, detect whether there is a point in the second preprocessed electromyographic signal that exceeds the set maximum electromyographic threshold, and call the detected point an amplitude mutation point. Perform 5-point smoothing on the amplitude mutation point, replace the data of the amplitude mutation point with the average data of the adjacent 4 points before and after, and obtain a third preprocessed electromyographic signal;
[0067] C4. Perform signal segmentation on the third preprocessed EMG signal, and perform data segmentation on the third preprocessed EMG signal using data framing to obtain the diaphragm EMG signal to be analyzed;
[0068] The data is framed, with a frame length of 300 points and an overlap of 150 points.
[0069] S3. Acquire the characteristics of the diaphragm EMG signal to be analyzed, wherein the characteristics of the diaphragm EMG signal to be analyzed include time domain characteristics, frequency domain characteristics, time-frequency domain characteristics and nonlinear characteristics;
[0070] In step S3, the characteristics of the diaphragm electromyographic signal to be analyzed are obtained, and the specific steps are as follows:
[0071] D1. Obtaining the time domain characteristics of the diaphragm electromyographic signal to be analyzed, including the root mean square value and waveform length of the diaphragm electromyographic signal to be analyzed; the time domain characteristics can reflect the strength and degree of change of the signal;
[0072] D2. Obtaining frequency domain features of the diaphragm electromyographic signal to be analyzed, including the mean frequency and median frequency of the diaphragm electromyographic signal to be analyzed; the frequency domain features can reflect the frequency distribution of the signal;
[0073] D3. Obtain the time-frequency domain features of the diaphragm electromyographic signal to be analyzed, including the energy and variance of the four wavelet packet coefficients of the diaphragm electromyographic signal to be analyzed; the time-frequency domain features can analyze the characteristics of the signal in both time and frequency dimensions;
[0074] D4. Obtain the nonlinear characteristics of the diaphragm electromyographic signal to be analyzed, including the sample entropy and Lyapunov coefficient of the diaphragm electromyographic signal to be analyzed; the nonlinear characteristics can reflect the complexity and dynamics of the signal.
[0075] In step D3, the time domain characteristics of the diaphragm electromyographic signal to be analyzed are obtained, and the specific steps are as follows:
[0076] E1. Use db2 wavelet packet basis function to perform wavelet packet transform; the db series in the wavelet packet basis function is most similar to the surface electromyographic signal, so the most concise db2 wavelet packet basis is selected for wavelet packet decomposition;
[0077] E2. performing wavelet packet decomposition on the diaphragm electromyographic signal to be analyzed to obtain two signal segments, including a high-frequency signal portion and a low-frequency signal portion of the diaphragm electromyographic signal to be analyzed;
[0078] E3. Continue to perform wavelet packet decomposition on the high-frequency signal part and the low-frequency signal part of the diaphragm electromyography signal to be analyzed to obtain 4 segments of signals, including the high-frequency part and the low-frequency part of the high-frequency signal part of the diaphragm electromyography signal to be analyzed, and the high-frequency part and the low-frequency part of the low-frequency signal part of the diaphragm electromyography signal to be analyzed;
[0079] E4. Repeat step E3 twice to obtain 16 segments of diaphragm EMG signals to be analyzed;
[0080] E5. Select the 4 signal segments with the highest energy values among the 16 signal segments as the 4 wavelet packet coefficients of the diaphragm electromyographic signals to be analyzed, and calculate the energy and variance of the 4 wavelet packet coefficients.
[0081] S4. Combining the diaphragm electromyographic signal features of the surface electromyographic signal at the end of the sternum and the surface electromyographic signal at the lower edge of the ribs into diaphragm electromyographic feature data to be analyzed; sending the diaphragm electromyographic feature data to be analyzed into the diaphragm electromyographic signal analysis model to perform diaphragm movement recognition and respiratory behavior prediction, and outputting the diaphragm movement label and the respiratory behavior label;
[0082] Diaphragmatic action labels include static state, spasm, contraction, and relaxation; respiratory behavior labels include exhalation, inspiration, forced breathing, and disordered breathing;
[0083] Establish a diaphragm electromyography signal analysis model. The specific steps are as follows:
[0084] A1. Obtain several diaphragm surface electromyographic signals, each of which includes a sternal end surface electromyographic signal and a rib lower edge surface electromyographic signal, pre-process each diaphragm surface electromyographic signal and annotate the diaphragm movement label and respiratory behavior label to obtain an analysis electromyographic feature sample; form all the analysis electromyographic feature samples into an electromyographic signal recognition data set, and divide the electromyographic signal recognition data set into an electromyographic signal recognition training set and an electromyographic signal recognition test set;
[0085] A2. Pre-train an electromyographic signal recognition model based on a multi-layer perceptron, extract the weight matrix and bias of each layer of the electromyographic signal recognition model; establish an initial diaphragm electromyographic feature recognition model based on a long short-term memory network, set an additional fully connected layer to ensure that the output dimension of the electromyographic signal recognition model is consistent with the input dimension of the initial diaphragm electromyographic feature recognition model; assign the weight matrix and bias of each layer of the electromyographic signal recognition model to the weight parameter of the corresponding layer of the initial diaphragm electromyographic feature recognition model;
[0086] A3. Send the electromyographic signal recognition training set to the initial diaphragm electromyographic feature recognition model for training, with the diaphragm movement label and the respiratory behavior label as the target, to obtain the training diaphragm electromyographic feature recognition model;
[0087] A4. Send the EMG signal recognition test set to the trained diaphragm EMG feature recognition model for accuracy evaluation, and take the diaphragm movement label and breathing behavior label as the target to obtain the test accuracy; if the test accuracy is within the error standard range, the trained diaphragm EMG feature recognition model is used as the diaphragm EMG signal analysis model; if the test accuracy exceeds the error standard range, adjust the hyperparameters of the trained diaphragm EMG feature recognition model and repeat steps A3-A4.
[0088] The training framework is PyTorch, which uses dynamic computational graphs and is more suitable for processing variable-length signals such as electromyographic signals.
[0089] Since electromyographic signals are a type of time series data, the use of long short-term memory networks as the basis for establishing an initial diaphragm electromyographic feature recognition model can improve the processing capability of electromyographic signals.
[0090] The weight matrix is obtained in PyTorch through the weight parameter tensor attribute of the model layer;
[0091] The weight parameters of the initial diaphragm electromyographic feature recognition model include the weight from input to hidden layer, the conversion weight of hidden layer state and the weight from hidden layer to output layer;
[0092] The hidden layer of the initial diaphragm electromyography feature recognition model is set to three layers, of which the weight parameters of the first two layers are obtained through the pre-trained electromyography signal recognition model based on the multi-layer perceptron, and the weight parameters of the third layer are obtained through training; the first two layers can learn the feature weights of the pre-trained model for the action, and the third layer obtains the relationship between the respiratory behavior label and the feature through model training, and this can strengthen the correlation between the respiratory behavior label and the diaphragm action label.
[0093] The initial diaphragm electromyography feature recognition model uses the Swish activation function, which has a good performance in dealing with long-term dependency problems and can solve the gradient vanishing and gradient exploding problems of the diaphragm electromyography feature recognition model.
[0094] Pre-train an EMG signal recognition model based on a multi-layer perceptron. The specific steps are as follows:
[0095] B1. Establish an initial electromyographic signal recognition model with two hidden layers based on the multi-layer perceptron;
[0096] B2. Extract the analyzed electromyographic feature samples from part of the electromyographic signal recognition data set, and add new analyzed electromyographic feature samples to form a pre-trained electromyographic feature data set, and divide the pre-trained electromyographic feature data set into a pre-trained electromyographic feature training set and a pre-trained electromyographic feature test set;
[0097] B3. Send the pre-trained electromyographic feature training set to the initial electromyographic signal recognition model for training, with the diaphragm action label as the target, to obtain a training electromyographic signal recognition model;
[0098] B4. Send the pre-trained EMG feature test set to the trained EMG signal recognition model for accuracy evaluation. Taking the diaphragm movement label as the target, adjust the hyperparameters of the trained EMG signal recognition model to obtain the EMG signal recognition model.
[0099] Feature fusion at the model level uses different numbers of hidden layers and uses different data sets to train the pre-trained model to prevent overfitting of the model; and ensures that the features obtained by the pre-trained model have a strong correlation with the diaphragm electromyography feature recognition model;
[0100] The multi-layer perceptron has distinct layers, and the multi-layer perceptron can be used to quickly obtain an effective weight matrix;
[0101] Pre-training only trains the diaphragm action labels to improve the accuracy of the pre-training model in action recognition;
[0102] S5. The specific steps of processing the output diaphragm action label and respiratory behavior label and outputting risk alarm are as follows:
[0103] F1. Risk alerts are divided into yellow risk alerts and red risk alerts;
[0104] F2. Output corresponding yellow risk alarm and red risk alarm according to diaphragm movement and breathing behavior;
[0105] The preset risk alarm triggering conditions are: a yellow risk alarm is output when the diaphragm movement is spasmodic, and a red risk alarm is output when the breathing behavior is compressed breathing and breathing disorder; the risk alarm triggering conditions can be set through the interactive interface;
[0106] S6. Visualize the diaphragm action labels, respiratory behavior labels, and risk alerts, and output visualization results.
[0107] Example 2, a diaphragm electromyographic signal processing system, see Figure 1 As shown, including:
[0108] A data acquisition module is used to obtain diaphragm surface electromyographic signals, each diaphragm surface electromyographic signal includes a sternum end surface electromyographic signal and a rib lower edge surface electromyographic signal;
[0109] A data preprocessing module is used to perform preprocessing operations on the diaphragm surface electromyographic signals to obtain the diaphragm electromyographic signals to be analyzed, and the preprocessing operations include signal filtering, electromyographic independent component analysis, mutation point processing and data segmentation;
[0110] A feature extraction module is used to obtain the features of the diaphragm electromyographic signal to be analyzed, wherein the features of the diaphragm electromyographic signal to be analyzed include time domain features, frequency domain features, time-frequency domain features and nonlinear features;
[0111] The electromyographic signal feature recognition module is used to combine the electromyographic signal features of the diaphragm to be analyzed of the surface electromyographic signal of the sternum end and the surface electromyographic signal of the lower edge of the ribs into the electromyographic feature data of the diaphragm to be analyzed; the electromyographic feature data of the diaphragm to be analyzed is sent to the diaphragm electromyographic signal analysis model to perform diaphragm movement recognition and respiratory behavior prediction, and output a diaphragm movement label and a respiratory behavior label;
[0112] A comprehensive suggestion module is used to process the output diaphragm action labels and respiratory behavior labels and output risk alerts;
[0113] The visualization interaction module is used to visualize the diaphragm action labels, respiratory behavior labels and risk alarms and output visualization results.
[0114] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all such improvements and changes should fall within the scope of protection of the appended claims of the present invention. Parts not described in detail in this specification belong to the prior art known to those skilled in the art.
Claims
1. A method for processing diaphragm electromyographic signals, It is characterized in that include: S1. Acquire the surface electromyographic signal of the diaphragm, each surface electromyographic signal of the diaphragm includes a surface electromyographic signal of the end of the sternum and a surface electromyographic signal of the lower edge of the ribs; S2. performing a preprocessing operation on the diaphragm surface electromyographic signal to obtain the diaphragm electromyographic signal to be analyzed, the preprocessing operation including signal filtering, electromyographic independent component analysis, mutation point processing and data segmentation; S3. Acquire the characteristics of the diaphragm EMG signal to be analyzed, wherein the characteristics of the diaphragm EMG signal to be analyzed include time domain characteristics, frequency domain characteristics, time-frequency domain characteristics and nonlinear characteristics; S4. Combining the diaphragm electromyographic signal features to be analyzed of the surface electromyographic signal of the sternum end and the surface electromyographic signal of the lower edge of the ribs into diaphragm electromyographic feature data to be analyzed; The diaphragm electromyography feature data to be analyzed is sent to the diaphragm electromyography signal analysis model to perform diaphragm movement recognition and respiratory behavior prediction, and the diaphragm movement label and respiratory behavior label are output; In step S4, a diaphragm electromyographic signal analysis model is established, and the specific steps are as follows: A1. Obtain several diaphragm surface electromyographic signals, each of which includes a sternal end surface electromyographic signal and a rib lower edge surface electromyographic signal, pre-process each diaphragm surface electromyographic signal and annotate the diaphragm movement label and respiratory behavior label to obtain an analysis electromyographic feature sample; All analyzed electromyographic feature samples are combined into an electromyographic signal recognition data set, and the electromyographic signal recognition data set is divided into an electromyographic signal recognition training set and an electromyographic signal recognition test set; A2. Pre-train an electromyographic signal recognition model based on a multi-layer perceptron, extract the weight matrix and bias of each layer of the electromyographic signal recognition model; establish an initial diaphragm electromyographic feature recognition model based on a long short-term memory network, set an additional fully connected layer to ensure that the output dimension of the electromyographic signal recognition model is consistent with the input dimension of the initial diaphragm electromyographic feature recognition model; assign the weight matrix and bias of each layer of the electromyographic signal recognition model to the weight parameter of the corresponding layer of the initial diaphragm electromyographic feature recognition model; A3. Send the electromyographic signal recognition training set to the initial diaphragm electromyographic feature recognition model for training, with the diaphragm movement label and the respiratory behavior label as the target, to obtain the training diaphragm electromyographic feature recognition model; A4. Send the electromyographic signal recognition test set to the training diaphragm electromyographic feature recognition model for accuracy evaluation, taking the diaphragm movement label and the respiratory behavior label as the target, and obtain the test accuracy; If the test accuracy is within the error standard range, the trained diaphragm electromyography feature recognition model is used as the diaphragm electromyography signal analysis model; if the test accuracy exceeds the error standard range, the hyperparameters of the trained diaphragm electromyography feature recognition model are adjusted, and steps A3 to A4 are repeated; In step A2, a myoelectric signal recognition model based on a multi-layer perceptron is pre-trained. The specific steps are as follows: B1. Establish an initial electromyographic signal recognition model with two hidden layers based on the multi-layer perceptron; B2. Extract the analyzed electromyographic feature samples from part of the electromyographic signal recognition data set, and add new analyzed electromyographic feature samples to form a pre-trained electromyographic feature data set, and divide the pre-trained electromyographic feature data set into a pre-trained electromyographic feature training set and a pre-trained electromyographic feature test set; B3. Send the pre-trained electromyographic feature training set to the initial electromyographic signal recognition model for training, with the diaphragm action label as the target, to obtain a training electromyographic signal recognition model; B4. Send the pre-trained electromyographic feature test set to the training electromyographic signal recognition model for accuracy evaluation, adjust the hyperparameters of the training electromyographic signal recognition model with the diaphragm action label as the target, and obtain the electromyographic signal recognition model; S5. Process the output diaphragm action labels and respiratory behavior labels, and output risk alerts; S6. Visualize the diaphragm action labels, respiratory behavior labels, and risk alerts, and output visualization results.
2. A method for processing diaphragm electromyographic signals according to claim 1, It is characterized in that The preprocessing operations include signal filtering, independent analysis of electromyographic components, mutation point processing and data segmentation. The specific steps are as follows: C1. Filter the diaphragm surface electromyographic signal, use a bandpass filter to filter out the ultra-high frequency signal noise and ultra-low frequency signal noise in the diaphragm surface electromyographic signal according to the effective frequency of the diaphragm surface electromyographic signal, and use a notch filter to filter out the power frequency signal noise in the diaphragm surface electromyographic signal according to the power supply frequency to obtain a first preprocessed electromyographic signal; C2. Performing myoelectric independent component analysis on the first preprocessed electromyographic signal to obtain a second preprocessed electromyographic signal; C3. Perform mutation point processing on the second preprocessed electromyographic signal, perform point-by-point detection on the second preprocessed electromyographic signal, detect whether there is a point in the second preprocessed electromyographic signal that exceeds the set maximum electromyographic threshold, and call the detected point an amplitude mutation point. Perform 5-point smoothing on the amplitude mutation point to obtain a third preprocessed electromyographic signal; C4. Perform signal segmentation on the third preprocessed electromyographic signal, and perform data segmentation on the third preprocessed electromyographic signal using data framing to obtain the diaphragm electromyographic signal to be analyzed.
3. A method for processing diaphragm electromyographic signals according to claim 2, It is characterized in that The specific steps of EMG independent component analysis are: use FastICA algorithm to perform EMG independent component analysis, select the independent components of EMG independent component analysis as EMG signal and ECG signal; randomly initialize the initial independent component vectors of EMG signal and ECG signal, use negative entropy to measure the maximum independence of the initial independent component vectors, iteratively optimize the initial independent component vectors, and obtain the final optimization results as independent EMG components and independent ECG components; repeat the above steps to obtain 3 groups of independent EMG components and independent ECG components, evaluate the ECG signals of the independent ECG components, and select the independent EMG component combination corresponding to the independent ECG component with the highest score as the second preprocessed EMG signal.
4. The method for processing diaphragm electromyographic signals according to claim 1, It is characterized in that The specific steps of obtaining the electromyographic signal characteristics to be analyzed of the diaphragm electromyographic signal to be analyzed are as follows: D1. Obtaining the time domain characteristics of the diaphragm electromyographic signal to be analyzed, including the root mean square value and waveform length of the diaphragm electromyographic signal to be analyzed; D2. Obtaining frequency domain characteristics of the diaphragm electromyographic signal to be analyzed, including the mean frequency and median frequency of the diaphragm electromyographic signal to be analyzed; D3. Obtaining the time-frequency domain characteristics of the diaphragm electromyographic signal to be analyzed, including the energy and variance of four wavelet packet coefficients of the diaphragm electromyographic signal to be analyzed; D4. Obtain the nonlinear characteristics of the diaphragm electromyographic signal to be analyzed, including the sample entropy and Lyapunov coefficient of the diaphragm electromyographic signal to be analyzed.
5. A method for processing diaphragm electromyographic signals according to claim 4, It is characterized in that The time-frequency domain characteristics of the diaphragm electromyographic signal to be analyzed are obtained. The specific steps are as follows: E1. Use db2 wavelet packet basis function to perform wavelet packet transform; E2. performing wavelet packet decomposition on the diaphragm electromyographic signal to be analyzed to obtain two signal segments, including a high-frequency signal portion and a low-frequency signal portion of the diaphragm electromyographic signal to be analyzed; E3. Continue to perform wavelet packet decomposition on the high-frequency signal part and the low-frequency signal part of the diaphragm electromyography signal to be analyzed to obtain 4 segments of signals, including the high-frequency part and the low-frequency part of the high-frequency signal part of the diaphragm electromyography signal to be analyzed, and the high-frequency part and the low-frequency part of the low-frequency signal part of the diaphragm electromyography signal to be analyzed; E4. Repeat step E3 twice to obtain 16 segments of diaphragm EMG signals to be analyzed; E5. Select the 4 signal segments with the highest energy values among the 16 signal segments as the 4 wavelet packet coefficients of the diaphragm electromyographic signals to be analyzed, and calculate the energy and variance of the 4 wavelet packet coefficients.
6. The method for processing diaphragm electromyographic signals according to claim 1, It is characterized in that The output diaphragm action labels and respiratory behavior labels are processed to output risk alerts. The specific steps are as follows: F1. Risk alerts are divided into yellow risk alerts and red risk alerts; F2. Output corresponding yellow risk alarm and red risk alarm according to diaphragm movement and breathing behavior.
7. A diaphragm electromyographic signal processing system, It is characterized in that The system applies a method for processing diaphragm electromyographic signals according to any one of claims 1 to 6, comprising: A data acquisition module is used to obtain diaphragm surface electromyographic signals, each diaphragm surface electromyographic signal includes a sternum end surface electromyographic signal and a rib lower edge surface electromyographic signal; A data preprocessing module is used to perform preprocessing operations on the diaphragm surface electromyographic signals to obtain the diaphragm electromyographic signals to be analyzed, and the preprocessing operations include signal filtering, electromyographic independent component analysis, mutation point processing and data segmentation; A feature extraction module is used to obtain the features of the diaphragm electromyographic signal to be analyzed, wherein the features of the diaphragm electromyographic signal to be analyzed include time domain features, frequency domain features, time-frequency domain features and nonlinear features; The electromyographic signal feature recognition module is used to combine the electromyographic signal features of the diaphragm to be analyzed of the surface electromyographic signal of the sternum end and the surface electromyographic signal of the lower edge of the ribs into the electromyographic feature data of the diaphragm to be analyzed; the electromyographic feature data of the diaphragm to be analyzed is sent to the diaphragm electromyographic signal analysis model to perform diaphragm movement recognition and respiratory behavior prediction, and output a diaphragm movement label and a respiratory behavior label; A comprehensive suggestion module is used to process the output diaphragm action labels and respiratory behavior labels and output risk alerts; The visualization interaction module is used to visualize the diaphragm action labels, respiratory behavior labels and risk alarms and output visualization results.
Citation Information
Patent Citations
Respiratory triggered parasternal electromyographic recording in neurostimulators
CN109562263A
Upper limb movement recognition method and system based on surface electromyogram signals
CN112036357A
Crop information prediction method based on weighted PCA, m-PSO algorithm and ANN hybrid model
CN113256001A
Arrhythmia classification algorithm of C-LSTM for physiological parameter monitoring
CN113397555A
Wearable muscle threshold monitoring system based on myoelectricity
CN113855053A
