Lung rehabilitation training method based on respiratory electromyographic signal feedback
Through a method based on respiratory electromyographic signal feedback, machine learning and deep learning technology are used to analyze and classify electromyographic signals, and dynamically adjust the pulmonary rehabilitation training plan, which solves the problem of lack of personalized and real-time feedback in traditional methods and improves the efficiency of training. and security.
Patent Information
- Application Number
- CN202410826526.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Traditional pulmonary rehabilitation training methods lack personalized and real-time feedback mechanisms and cannot effectively monitor and adjust training plans, resulting in low efficiency and insufficient safety.
A method based on respiratory EMG signal feedback is adopted to capture electrical activity in real time through the EMG signal acquisition system. Machine learning and deep learning algorithms are used for signal analysis and classification, and a real-time feedback system is established to dynamically adjust training difficulty and plans.
It realizes the generation and real-time feedback of personalized training programs, improves the scientificity and safety of training, and promotes the rapid recovery of patients.
Smart Images

Figure CN118675693A
Abstract
Description
Technical Field
[0001] The invention relates to a pulmonary rehabilitation training method, and in particular to a pulmonary rehabilitation training method based on respiratory myoelectric signal feedback. Background Art
[0002] The current training methods used for pulmonary rehabilitation mainly rely on traditional physical therapy techniques, including breathing exercises, muscle strength training, and aerobic exercise. Although these methods are effective to a certain extent, there are many deficiencies and disadvantages that limit their efficiency and effectiveness. First, traditional pulmonary rehabilitation training methods often lack sufficient personalization. These trainings are usually standardized programs developed based on a wide range of patient groups, ignoring the differences between individual patients in terms of disease severity, physical condition, and recovery speed. For example, COPD (chronic obstructive pulmonary disease) patients have significantly different rehabilitation needs from patients after lung cancer surgery, but traditional methods often adopt a "one-size-fits-all" training plan, which is not enough to provide optimal training for the specific needs of individuals. This may not only lead to poor rehabilitation effects, but also increase the risk of injury to patients. Secondly, traditional methods lack a real-time feedback mechanism during implementation. During pulmonary rehabilitation training, coaches or therapists cannot accurately grasp the patient's physiological responses, such as the specific movements of the lungs and muscles, in real time, and can only rely on observing the patient's subjective feedback to adjust the training plan. This method is not only inefficient, but also fails to ensure the safety and effectiveness of the training. For example, if patients experience discomfort during training, they may not be able to accurately describe the degree and nature of the discomfort, which makes it impossible for therapists to make appropriate adjustments. Finally, traditional pulmonary rehabilitation methods are also inadequate in monitoring and evaluating rehabilitation outcomes. These methods typically rely on regular medical assessments to track patient progress, which are often conducted at long intervals and fail to provide continuous progress monitoring. The lack of real-time or near-real-time progress tracking makes it difficult to adjust rehabilitation plans and fails to promptly reflect patient changes and needs, which may result in delayed rehabilitation or poor results. Summary of the invention
[0003] The purpose of the present invention is to provide a lung rehabilitation training method based on respiratory myoelectric signal feedback, so as to solve some of the disadvantages and shortcomings pointed out in the background technology.
[0004] The present invention solves the above-mentioned technical problems by adopting the following technical solutions: a pulmonary rehabilitation training method based on respiratory electromyographic signal feedback, comprising: firstly, capturing the electrical activity of respiratory-related muscles in real time through an electromyographic signal acquisition system, and optimizing the signal quality by using signal amplification, filtering and noise suppression technology;
[0005] Secondly, we use machine learning algorithms to perform time-frequency analysis on the electromyographic signals, extract the energy spectrum and waveform length features, and apply deep learning models including convolutional neural networks for training and classification to distinguish different types of breathing patterns.
[0006] Then, based on the classification results of the electromyographic signals, a real-time feedback system is established. The system displays the electromyographic signal strength and breathing quality in real time through the user interface, and adjusts the difficulty and duration of breathing training;
[0007] Finally, based on the user's electromyographic signal characteristics and historical data analysis, an artificial intelligence algorithm is used to generate a personalized pulmonary rehabilitation training plan, and the training plan is dynamically adjusted in combination with the user's physical condition and recovery progress.
[0008] Furthermore, the method for optimizing signal quality comprises the following steps:
[0009] S1. First, develop the myoelectric sensor control module and use the formula to capture the muscle activity related to breathing:
[0010]
[0011] To enhance signal selectivity, where x(t) represents the electromyographic signal at time t, and a, b, and c are adjustment parameters;
[0012] S2, then apply the intelligent signal processing algorithm based on machine learning, through the formula:
[0013]
[0014] Where x(t) is the preprocessed electromyographic signal, k(t) is the weight function adaptively adjusted based on the signal characteristics to classify the signal and distinguish different breathing patterns;
[0015] S3. Then, according to the classification results of the electromyographic signals, a real-time feedback system is constructed, using the formula:
[0016]
[0017] Dynamically adjust the training difficulty, where x is the current signal feature value, μ and λ n To optimize the pulmonary rehabilitation training program for training parameters.
[0018] Furthermore, the method for performing time-frequency analysis on the electromyographic signal includes:
[0019] S1. Use multi-scale time-frequency analysis to capture the dynamic changes of EMG signals at different time scales.
[0020] S2. The features of time domain, frequency domain and time-frequency domain are integrated to form a comprehensive feature vector through feature fusion technology, and a custom-developed deep learning model, especially a convolutional neural network optimized for electromyographic signal characteristics, is used for training and classification to distinguish different types of breathing patterns;
[0021] S3. By adjusting the network architecture in the deep learning model, including the configuration of convolutional layers, pooling layers, and fully connected layers, it is particularly adapted to the nonlinear and non-stationary characteristics of electromyographic signals and improves the accuracy of classifying different breathing patterns.
[0022] Furthermore, the multi-scale time-frequency analysis method includes:
[0023] First, a multi-scale waveform transform with a variable window size is used to capture the dynamic changes of the electromyographic signal at different time scales, which is suitable for analyzing the complexity of respiratory muscle activity and different breathing patterns. The transform is expressed by the formula:
[0024] T(x,τ,s)=∫x(t)·w(s(t-τ))e -iωt dt
[0025] Implementation, where x(t) represents the electromyographic signal, w is the window function, and s adjusts the window size to capture signals of different frequencies;
[0026] Then the analysis scale is adjusted through an adaptive algorithm to optimize the time-frequency accuracy of signal analysis, according to the formula:
[0027]
[0028] control, where f(τ) is a function that changes dynamically according to the signal characteristics;
[0029] Finally, the empirical mode decomposition and Hilbert-Huang transform technology are combined for advanced signal processing, through the formula:
[0030]
[0031] Extract the time-frequency features of the signal to provide real-time feedback and adjustments for different breathing training modes.
[0032] Furthermore, the custom developed deep learning model construction framework includes:
[0033] S1, designed by integrating the time domain, frequency domain and time-frequency domain features from the electromyographic signal, through the formula:
[0034]
[0035] to achieve, where They represent the transformation functions extracted from each domain, respectively, to handle the diversity of breathing patterns required in pulmonary rehabilitation;
[0036] S2. Training and classification are performed using a custom-developed convolutional neural network model optimized for EMG signal characteristics, which is implemented using the formula:
[0037]
[0038] The convolution operation captures subtle changes in the EMG signal and distinguishes different breathing patterns including deep breathing and rapid breathing; where x represents the input EMG signal; k n is the convolution kernel of the nth convolutional layer, which is used to extract specific features from the input signal; W nm is the convolution kernel k n The weight matrix under is used to further refine the features extracted from the signal; b n is a bias term used to adjust the bias of the convolution result; σ is an activation function used to introduce nonlinearity; the convolution operation * is used to apply the convolution kernel and weights to the signal x to extract features;
[0039] S3. Use multimodal learning strategies to improve the model's understanding of the multidimensional features of electromyographic signals, using the formula:
[0040]
[0041] To optimize the training effect, where f i (x) represents the different modal feature extraction functions applied to the signal x; C represents the convolutional neural network output of the deep learning model; σ i is the activation function for each modality i, used to process the output of different modalities; i ,μ i , are learning parameters that tune each modal contribution separately.
[0042] Furthermore, the network architecture is adjusted in the deep learning model:
[0043] S1. First, the convolution layer involves dynamically adjusting the filter size, using the formula:
[0044]
[0045] where θ n (s) represents the shape function of the nth convolution kernel, σ n The adaptive width parameter represents the dynamic adjustment of the filter size to capture the key features in the signal;
[0046] S2, then use the depth-separable convolution formula:
[0047]
[0048] Execute, where k mn is the depth convolution kernel, w n is the group weight matrix, b n It is a bias term that improves the efficiency of signal feature extraction and reduces computational complexity;
[0049] S3, then use the adaptive pooling layer through the formula:
[0050]
[0051] Carry out, where S i represents the i-th pooling area, μ i and σ i are adaptive parameters of the center and width of the pooling window to capture and retain key features;
[0052] S4. Finally, the dynamic fully connected layer is used using the formula:
[0053]
[0054] where φ is a dynamic activation function with parameter λ j ,w ji , and b j Dynamically adjust according to changes in input features to optimize the network's response and classification accuracy.
[0055] Furthermore, the real-time feedback system construction step includes:
[0056] First, we use advanced real-time data processing algorithms, through the formula:
[0057]
[0058] , where x(t) is the electromyographic signal, σ, ω, φ are dynamically adjusted parameters to capture the instantaneous features in the signal and generate real-time feedback;
[0059] Further, using the adaptive training algorithm, through the formula:
[0060]
[0061] Implementation, where α i , β i , γ i , i , δ i It is an adaptive parameter that dynamically adjusts the difficulty and duration of breathing training based on real-time analysis results.
[0062] Furthermore, the generating of the personalized pulmonary rehabilitation training program includes forming a comprehensive feature vector by combining the features of the time domain, the frequency domain and the time-frequency domain through a multi-dimensional feature extraction method, and the process uses the formula:
[0063]
[0064] Where T(x(t)) is the time domain feature, F(x(f)) is the frequency domain feature, H(x(t,f)) is the time-frequency domain feature, α(t), β(f), γ(t,f) are dynamic weight functions;
[0065] Then, a deep reinforcement learning algorithm is used to generate a personalized pulmonary rehabilitation training program based on the user's electromyographic signal characteristics and historical data, using the formula:
[0066]
[0067] Where Q(s,a) is the value function of state s and action a, r(s,a) is the reward function, and γ is the discount factor, which represents the weight of future rewards;
[0068] Then, the training plan is dynamically adjusted using an adaptive algorithm based on the user's physical condition and recovery progress, using the formula:
[0069]
[0070] Implementation, where α i (t), β i (t), γ i (t), λ i , δ i It is a dynamically adjusted parameter that controls the analysis and personalized adjustment of the user's real-time status and recovery progress through the comprehensive application of multi-dimensional feature extraction, deep reinforcement learning and adaptive algorithms.
[0071] Beneficial effects of the present invention:
[0072] 1. Personalized training program: By real-time monitoring and analysis of electromyographic signals, the present invention can generate a personalized training program for each patient. This program is dynamically adjusted according to the patient's current electromyographic activity and recovery progress, ensuring that the training is both appropriate and efficient.
[0073] 2. Real-time feedback and adjustment: By processing electromyographic signals through advanced algorithms, this method provides immediate feedback and automatically adjusts the intensity and duration of training based on the feedback results. This rapid response mechanism helps patients better control the training process and avoid overtraining and potential injuries.
[0074] 3. Enhance the scientificity and precision of training: Using deep learning and reinforcement learning techniques, the method is able to deeply analyze the complex patterns of electromyographic signals, thereby more accurately identifying different breathing patterns and needs. This improves the scientificity and targeting of the training program.
[0075] 4. Promote rapid recovery: By comprehensively using time domain, frequency domain and time-frequency domain analysis, this method can comprehensively evaluate the dynamic changes of electromyographic signals, so as to design the training program that best suits the patient's current condition. This highly targeted training can accelerate the recovery process. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 This is a flow chart of a lung rehabilitation training method based on respiratory electromyographic signal feedback according to the present invention.
[0077] Figure 2 The present invention is a flow chart of the method used for time-frequency analysis of electromyographic signals. DETAILED DESCRIPTION
[0078] The specific implementation modes of the present invention will be described in detail below in conjunction with the accompanying drawings.
[0079] A pulmonary rehabilitation training method based on respiratory electromyographic signal feedback mainly involves the use of an electromyographic signal acquisition system to monitor the electrical activity of respiratory-related muscles in real time. The electromyographic signal acquisition system in this process is equipped with special sensors. These sensors are attached to the user's specific respiratory muscle areas, such as the diaphragm and intercostal muscles, and can capture the electrical signals generated by breathing movements in real time. These signals are usually affected by electrical activity in other parts of the body, interference from electronic devices, or environmental noise, so signal quality needs to be optimized through signal amplification, filtering, and noise suppression techniques. Signal amplification is to enhance the strength of the electromyographic signal to a level that can be measured and analyzed; filtering technology is used to remove interference from non-target frequencies in the signal, such as high-frequency noise or low-frequency drift; noise suppression technology further removes random noise introduced by electrical equipment or other interference sources.
[0080] Following signal optimization, machine learning algorithms are then used to perform time-frequency analysis on the EMG signals, including using algorithms such as fast Fourier transform (FFT) to convert time series data into the frequency domain, thereby extracting energy spectrum features, which are measures of the intensity of the overall energy distribution of the signal at different frequencies. In addition, waveform length features are extracted, which are time-domain features that reflect signal complexity and are measured by calculating the cumulative length of the signal waveform. These features are critical for understanding the activity patterns of respiratory muscles and their changes. Next, deep learning models, especially convolutional neural networks (CNNs), are applied for training and classification. CNNs are very effective in processing data with spatial and temporal hierarchical structures, and can automatically detect and learn important features in the data without manual feature engineering. In this method, CNN uses features extracted from EMG signals to train the model to distinguish different types of breathing patterns, such as normal breathing, deep breathing, rapid breathing, etc. In this way, the system can automatically identify and classify the user's breathing status based on the changes in the EMG signals, providing accurate data support for subsequent personalized pulmonary rehabilitation training.
[0081] Then, a real-time feedback system is established based on the classification results of the EMG signals. The strength of the EMG signals and the quality of the user's breathing are displayed in real time through the user interface. The interface provides a visual presentation of real-time data, allowing users and rehabilitation experts to instantly understand the current status of respiratory activity. In addition, the system automatically adjusts the difficulty and duration of breathing training based on the analyzed EMG signal categories (such as normal breathing, deep breathing, or rapid breathing). This adjustment is dynamic and optimized based on real-time data and preset training goals to adapt to the user's rehabilitation progress and current physical condition. For example, if the system detects that the user's breathing pattern has become too rapid or difficult, it can automatically reduce the training intensity or increase the rest time, and vice versa.
[0082] Finally, based on the user's electromyographic signal characteristics and historical data analysis, an artificial intelligence algorithm is used to generate a personalized pulmonary rehabilitation training program. This method uses deep learning and pattern recognition technology to comprehensively analyze the user's electromyographic signals to identify their specific breathing patterns and any abnormalities or changing trends. The algorithm takes into account the user's historical training data, evaluates the training effect, and predicts the most suitable training path. In addition, the system dynamically adjusts the training plan based on the user's current physical condition and recovery progress. This includes adjusting the difficulty, frequency, and duration of the training to ensure that the training plan can challenge the user without exceeding his or her physical tolerance. The system continuously monitors the user's response and makes adjustments based on real-time feedback so that the training plan is always updated to meet the user's rehabilitation needs.
[0083] Embodiment 1:
[0084] In this example, a patient experiences respiratory function decline due to chronic obstructive pulmonary disease (COPD) and needs systematic pulmonary rehabilitation training. To this end, the medical team plans to use electromyographic signals to monitor and adjust the patient's training plan. This involves developing an electromyographic sensor control module and using a specific formula to capture muscle activity related to breathing.
[0085] 1. Development and configuration of myoelectric sensors:
[0086] First, a highly sensitive myoelectric sensor control module is developed. These sensors are configured around the patient's diaphragm and intercostal muscles to monitor breathing-related muscle activity in real time. The myoelectric signal x(t) will represent the intensity of myoelectric activity at time t.
[0087] 2. Signal processing formula:
[0088] The following formula is used for signal processing:
[0089]
[0090] Where x(t) is the EMG signal at time t, and a, b, and c are adjustment parameters. This formula is designed to enhance the selectivity of respiratory muscle activity signals.
[0091] 3. Parameter setting and example calculation:
[0092] The parameters a = 0.5, b = 0.3, c = 0.1 are set. These parameters are adjusted to optimize the signal capture effect.
[0093] Assume that the measured value of the electromyographic signal x(t) at a certain time t is 0.05 mV, and its acceleration (secondary derivative) at this point is -0.01 mV / s 2 .
[0094] Substituting these values into the formula for calculations simulates the effect of signal processing:
[0095]
[0096] This calculation will be estimated based on real-time data of the electromyographic signal to determine the degree of signal optimization and the timeliness of feedback.
[0097] By using this signal optimization method, the quality of the electromyographic signal can be effectively improved, thereby accurately capturing the muscle activity related to breathing. The enhanced signal selectivity helps the medical team better understand the patient's breathing pattern and muscle usage, and design more accurate and personalized rehabilitation training programs for the patient. In addition, real-time signal processing and feedback mechanisms can dynamically adjust the difficulty and duration of training to ensure that the training is both effective and in line with the patient's current physical condition.
[0098] The next step is to apply intelligent signal processing algorithms based on machine learning. Classification algorithms are used to distinguish different breathing patterns, such as normal breathing, deep breathing, rapid breathing, etc., to provide targeted training adjustments.
[0099] Using the algorithm formula:
[0100]
[0101] Here, x(t) represents the electromyographic signal after preliminary filtering and noise suppression, and k(t) is a dynamic weight function that is adaptively adjusted during the training process according to the characteristics of the signal.
[0102] Weight function setting:
[0103] Set in a certain time window T, the weight function k(t) is adaptively adjusted according to the variability of the EMG signal. For example, if the EMG signal shows high-frequency fluctuations at the beginning of training, k(t) is increased to enhance the influence of these parts, making it more sensitive to rapid changes. For specific values, k(t) can be set to vary in the range of 0.1 to 0.5 to adapt to different signal strengths and variations.
[0104] It is assumed that during the training period, a series of myoelectric signals x(t) have been collected by the myoelectric sensor, and these data show periodic enhancement and reduction in the time from t = 0 to t = T, corresponding to the pattern of deep breathing and rapid breathing. An integral operation is performed on this, and a dynamic weight is applied, for example, k(t) = 0.3 during the peak period of the myoelectric signal and k(t) = 0.1 during the low value period.
[0105] Calculation example: If the average value of x(t) is 0.05 mV and the entire T is 10 seconds, then (Simple calculation, actual value depends on the actual form and data of x(t) and k(t)).
[0106] Substitute this result into the classification function This value shows that according to the classification results of the electromyographic signal, the patient's current breathing pattern is of medium intensity, and the difficulty and duration of the breathing training can be adjusted accordingly.
[0107] The next step is to use the classification results to build a real-time feedback system that can dynamically adjust the difficulty of pulmonary rehabilitation training. This real-time feedback system uses mathematical formulas to dynamically adjust training parameters based on real-time signal feature values to optimize training plans and provide personalized training suggestions.
[0108] Construction of real-time feedback system:
[0109] System Utilization Formula:
[0110]
[0111] To adjust the training difficulty, where x is the current signal feature value, which represents the real-time measurement value of the electromyographic signal obtained through the above analysis, and μ and λ n It is a training parameter adjusted based on historical data and training feedback.
[0112] The setting μ is a preset target electromyographic signal strength, and its value is set according to the patient's health condition and rehabilitation goals, for example, 0.05 millivolts.
[0113] λ n is a weight coefficient used to adjust the influence of different order terms. For example, λ0 can be set to 0.5, λ1 to 0.3, and so on. Higher order terms can be gradually reduced, for example, λ2 = 0.1, and higher order terms can be set to approach zero.
[0114] It is assumed that at a specific training moment, the real-time signal characteristic value x is measured to be 0.06 mV.
[0115] Substituting these values into the formula for calculation:
[0116]
[0117] This calculation results in:
[0118] R(x)=0.5·1+0.3·0.01+0.1·0.00005=0.5+0.003+0.0000005≈0.503
[0119] This result provides an adjustment factor that is used to guide the adjustment of training difficulty, such as by adjusting the duration or intensity of breathing exercises. Through this real-time feedback system, the training difficulty can be dynamically adjusted according to the actual EMG signal strength and the patient's performance, ensuring that the training plan is always consistent with the patient's current ability and rehabilitation needs.
[0120] Embodiment 2:
[0121] In this embodiment, multi-scale time-frequency analysis is used to capture the dynamic changes of electromyographic signals at different time scales. This method is particularly suitable for analyzing the complexity of respiratory muscle activity and identifying different breathing patterns.
[0122] Implementation of multi-scale time-frequency analysis:
[0123] Multiscale time-frequency analysis is achieved by using a multiscale waveform transform with a variable window size. This transform uses an adjusted window function w that changes with the scale parameter s to adapt to the characteristics of the EMG signal x(t) at different time points τ and frequencies ω. By changing the window size s, the analysis can capture faster or slower varying signal parts more finely, suitable for different breathing patterns.
[0124] This method is implemented by the following formula:
[0125]
[0126] Where x(t) represents the electromyographic signal, w is the window function that varies according to the scale s, τ is the time offset, and ω is the frequency. This formula allows for local time-frequency analysis of the signal, which can reveal the detailed characteristics of the signal at a specific time and frequency.
[0127] Suppose that a series of electromyographic signal data is being analyzed, which represents the muscle activity of a COPD patient during pulmonary rehabilitation training. Assume that the window function w is selected as a Gaussian window, and the range of s can vary from 0.1 seconds to 1 second to adapt to different speeds of muscle contraction and relaxation.
[0128] A specific time τ = 2 s and a medium scale s = 0.5 s were selected for local analysis.
[0129] ω is calculated as the main frequency of muscle activity, which is set to 5 Hz.
[0130] The value of x(t) is set to 0.03 mV at t=2 s.
[0131] Substitute into the formula to calculate:
[0132] This calculation will give the time-frequency analysis results at τ = 2s and s = 0.5s, revealing the characteristics of the electromyographic signal at this specific moment and scale. Through this analysis, training experts can understand the patient's muscle electrical activity in detail at different stages of breathing training, so as to adjust the training plan to better suit the patient's actual situation, such as adjusting the frequency, intensity or duration of breathing training.
[0133] Next, the analysis scale is adjusted through an adaptive algorithm to optimize the time-frequency accuracy of the signal analysis. The system dynamically optimizes the analysis parameters based on the real-time characteristics of the EMG signal, thus ensuring maximum accuracy and relevance of the signal analysis.
[0134] The adaptive algorithm uses the formula:
[0135]
[0136] where T(x,τ,f(τ)) is the result of a multiscale waveform transformation at a time offset τ and a dynamically adjusted analysis frequency f(τ). This formula computes the ratio of the signal energy obtained by analyzing it with a specific adaptive frequency function f(τ) relative to the analysis at a standard time scale τ. By maximizing this ratio, the algorithm can find the optimal analysis scale and frequency to capture key signal features.
[0137] After the multi-scale waveform transformation of the electromyographic signal x(t), the measured data at a specific time offset τ shows that the signal exhibits different intensities at different frequency scales. The dynamic adjustment range of f(τ) is set to 0.1Hz to 10Hz, which reflects the change from slow to fast breathing mode.
[0138] Select the specific time τ=2s and calculate |T(x,2s,5Hz)| when f(τ)=5Hz. 2 Values and on the standard scale |T(x,2s,2s)| 2 The former is set to 0.04 units of energy and the latter is set to 0.02 units of energy.
[0139] Calculated according to the formula:
[0140]
[0141] This result shows that the energy obtained when analyzing the signal at a tuning frequency of 5 Hz is greater than when analyzing it on a standard time scale, indicating that this is a more efficient analysis frequency.
[0142] By implementing this adaptive algorithm, the system is able to automatically adjust the time scale and frequency of analysis according to the real-time performance and changes of the EMG signals.
[0143] Finally, the empirical mode decomposition (EMD) and Hilbert-Huang transform (HHT) technology are combined for advanced signal processing. This technology combination can effectively extract the time-frequency characteristics of the electromyographic signal and provide real-time feedback and adjust the training mode based on these characteristics.
[0144] Empirical Mode Decomposition and Hilbert-Huang Transform:
[0145] Empirical Mode Decomposition (EMD) is an analysis method suitable for nonlinear and non-stationary time series data. It first decomposes the data into multiple intrinsic mode functions (IMFs). Each IMF should have a clear physical meaning, such as a specific frequency range. Subsequently, the Hilbert transform is applied to each IMF to extract its instantaneous frequency and amplitude, thereby forming the time-frequency feature. Specifically, the formula:
[0146]
[0147] Describes how to combine the amplitude and phase of each IMF to reconstruct the time-frequency representation of the signal, where IMF n (t) is the nth eigenmode function, θ n (t) is the corresponding instantaneous phase.
[0148] After performing EMD on the electromyographic signal of a patient, three significant IMF components are obtained, corresponding to different breathing frequencies. Each IMF represents a specific breathing pattern (such as normal breathing, deep breathing, and rapid breathing).
[0149] The first IMF is set to represent the normal breathing mode, which is specifically expressed as: IMF1(t) = 0.05cos(2πt);
[0150] The second IMF represents deep breathing, IMF2(t) = 0.08cos(0.5πt);
[0151] The third IMF represents rapid breathing, IMF3(t)=0.03cos(4πt).
[0152] Substituting these IMFs into the Hilbert-Huang transform formula, the signal reconstruction value H(x) at each moment can be calculated to evaluate the current breathing pattern:
[0153] H(x)=0.05cos(2πt)+0.08cos(0.5πt)+0.03cos(4πt)
[0154] This formula can be used to evaluate the patient's respiratory status in real time and dynamically adjust the training intensity based on signal changes.
[0155] By applying empirical mode decomposition and Hilbert-Huang transform, the time-frequency characteristics of electromyographic signals can be accurately extracted, and targeted breathing training feedback and adjustments can be provided to patients accordingly.
[0156] Embodiment 3:
[0157] In this embodiment, feature fusion technology is used to integrate the features of time domain, frequency domain and time-frequency domain, and deep learning models developed for electromyographic signal characteristics are used for training and classification to identify different types of breathing patterns. It can accurately analyze and respond to subtle changes in the patient's muscle activity, thereby providing a personalized rehabilitation training plan.
[0158] Application of feature fusion technology:
[0159] Feature fusion technology is used to integrate multi-dimensional data from electromyographic signals. The intensity and frequency domain of myoelectric activity Signal frequency distribution and time-frequency domain The signal time-frequency analysis forms a comprehensive feature vector. These feature vectors are expressed by the formula:
[0160]
[0161] Calculation is performed, where α(x), β(x), and γ(x) are adjustment parameters used to balance the contribution of each domain, while δ controls the scale and smoothness of the entire expression to ensure that the information extracted from multiple data sources is effectively integrated.
[0162] Custom-developed deep learning model building framework:
[0163] A custom convolutional neural network is used to adapt to the characteristics of electromyographic signals. The architecture of the model takes into account the nonlinear and non-stationary characteristics of electromyographic signals. The network structure includes multiple convolutional layers, pooling layers, and fully connected layers. Each layer is optimized for the specific characteristics of electromyographic signals to improve the accuracy and efficiency of classification.
[0164] In the specific patient data processing, α(x)=0.3, β(x)=0.5, γ(x)=0.2, δ=2 are set. This setting is to emphasize the frequency domain characteristics, because in the analysis of electromyographic signals, frequency characteristics are often particularly important for distinguishing different types of breathing patterns. Through this set of parameters, the influence of the time and frequency characteristics of the signal can be balanced.
[0165] After the electromyographic signal data collected within a certain period of time is processed, According to the above formula and parameters, the calculation result of the integrated eigenvector will be:
[0166]
[0167] This calculation result will be used to train the deep learning model and further used to classify different breathing patterns.
[0168] The signals are trained and classified using a custom-developed convolutional neural network (CNN) optimized for the characteristics of EMG signals. This deep learning model combines advanced mathematics and machine learning techniques and is particularly suitable for processing and analyzing complex biological signals such as EMG signals.
[0169] Model Architecture:
[0170] The CNN model processes the input electromyographic signal x through stacked convolutional layers, each of which is designed to capture specific features in the signal. The model uses the formula:
[0171]
[0172] Among them, k n is the convolution kernel of the nth convolutional layer, which is used to extract specific features from the input signal; W nm is the convolution kernel k n The weight matrix under is used to further refine the features extracted from the signal; b n is a bias term used to adjust the bias of the convolution result; σ is an activation function used to introduce nonlinearity; the convolution operation * is used to apply the convolution kernel and weights to the signal x to extract features.
[0173] The network design is assumed to contain 3 convolutional layers, each containing a different number of convolutional kernels:
[0174] Layer 1: 5 convolution kernels, each of size 3×3, used to capture the primary features of the signal.
[0175] Layer 2: 10 convolution kernels, each of size 3×3, are used to capture more complex features.
[0176] Layer 3: 15 convolution kernels, each of size 3×3, for deep feature extraction.
[0177] Set the weight W of each convolution kernel nm The range is [-0.1, 0.1], bias b n The range is [-0.05, 0.05].
[0178] In the real-time analysis of the electromyographic signal x(t), the input x is a one-dimensional time series data. Through the convolution operation of each layer, the signal is converted into a series of feature maps, which are passed to the next layer after the activation function and further pooling operation. Finally, the output layer will classify the breathing mode (such as deep breathing or rapid breathing) based on the features extracted by the last layer.
[0179] In this way, complex patterns of EMG signals can be effectively decoded and classified, providing patients with customized training plans for their specific breathing conditions.
[0180] The multimodal learning strategy is further used to optimize the training effect, aiming to improve the deep learning model's understanding of the multi-dimensional characteristics of electromyographic signals and optimize the training effect through this understanding. The specific implementation plan includes using formulas to integrate the feature extraction and analysis results under different modalities, so as to adjust the training program more accurately.
[0181] The multimodal learning strategy is implemented by the following formula:
[0182]
[0183] Among them, f i(x) represents the different modal feature extraction functions applied to signal x, which involves analysis in the time domain, frequency domain, and time-frequency domain; C represents the deep learning model, namely the convolutional neural network, which is used to further process the output of these feature extractions; σ i is a specific activation function for each modality i, used to process the output of different modalities; i ,μ i , are learning parameters that adjust the importance, mean, and variance of each modal contribution.
[0184] Three modes are set to correspond to three different types of breathing pattern analysis:
[0185] λ1=0.5,λ2=0.3,λ3=0.2 adjust the contribution of each mode;
[0186] μ1=0.05,μ2=0.03,μ3=0.02 represent the target output expected for each mode;
[0187] represents the variance of each mode output;
[0188] The features extracted from the real-time EMG signal x by the three modalities are fed into the customized CNN model and output respectively:
[0189] C(f1(x))=0.048
[0190] C(f2(x))=0.032
[0191] C(f3(x))=0.018
[0192] Substitute these values into the formula of the multimodal learning strategy to calculate:
[0193]
[0194] This calculation helps optimize the training plan by combining the analysis results of different modalities, ensuring that the training program is adapted to the patient's specific needs and real-time performance.
[0195] Embodiment 4:
[0196] In this embodiment, the network architecture is adjusted in the deep learning model to specifically adapt to the nonlinear and non-stationary characteristics of the electromyographic signal and improve the classification accuracy of different breathing patterns. The convolution layer with dynamically adjusted filter size can effectively cope with the complex changes in the electromyographic signal.
[0197] Strategies for adjusting network architecture:
[0198] This adjustment of the deep learning model is mainly implemented by dynamically adjusting the convolutional layer of the filter size, so that the model can adapt more flexibly to the local characteristics of the signal. This adjustment uses the formula:
[0199]
[0200] Among them, θ n (s) represents the shape function of the nth convolution kernel, σ n is an adaptively adjusted width parameter, which indicates the dynamic adjustment of the filter size. This formula can adjust the filter response according to the local characteristics in the electromyographic signal, thereby capturing the key signal characteristics more accurately.
[0201] Assume that there are 10 different convolutional layers in the network, and the filter size of each layer is σ n It can be dynamically adjusted based on the frequency content of the signal. The filter size can be adjusted from 0.1 seconds to 1 second, which allows the network to capture everything from very fast breathing changes to relatively slow changes.
[0202] Assume that in a certain training instance, the EMG signal x(t) shows a rapid peak change within 2s. Set σ n is adjusted to 0.2s to capture this rapid change. n (s), if it is designed as a Gaussian function, it can be set:
[0203]
[0204] Then, use the above parameters and signal to perform the integration operation:
[0205]
[0206] This operation optimizes for rapidly changing peaks, allowing the network to more effectively identify and classify rapid breathing patterns. In this way, the deep learning model not only adapts to the complexity of the EMG signal, but also improves the accuracy of breathing pattern classification through precise temporal-spatial feature capture.
[0207] In order to further optimize the efficiency of signal processing and improve the accuracy of feature extraction, the deep separable convolution technology is used. The network can reduce the computational complexity while maintaining efficient feature extraction capabilities when processing complex electromyographic signals.
[0208] Depthwise separable convolution is performed in two steps: first, each input channel is processed by depthwise convolution, and then the outputs of these channels are combined by pointwise convolution (1x1 convolution). This step-by-step process greatly reduces the number of parameters and computational burden. The specific formula is:
[0209]
[0210] Among them, k mn is a deep convolution kernel, used to process the deep features of the signal; w n is the weight matrix corresponding to the nth channel, used to combine these features; b n is the bias term.
[0211] For example, there are 3 input channels and 2 depthwise convolution kernels per channel (M=2, N=3), and the size of each convolution kernel is set to 3×3:
[0212] Set each depth convolution kernel k mn The weights are randomly initialized in the range of [-0.1, 0.1].
[0213] Group weight matrix w n The weights for each channel are also randomly initialized in the range of [-0.1, 0.1].
[0214] Bias term b n The initial value is set to a small positive number such as 0.01 to avoid the nonlinear effect of the activation function near 0.
[0215] Assume that the input signal x is a real-time data stream obtained from the electromyography sensor, and its shape meets the network input requirements. After processing by depthwise separable convolution, the signal of each channel is analyzed and recombined independently to form a new feature map. For the example calculation:
[0216]
[0217] This calculation will generate different feature responses for each breathing pattern. For example, deep breathing and rapid breathing patterns will have significant differences in the feature map, which will help the model to more accurately classify and guide rehabilitation training. Through the application of this deep separable convolution technology, the pulmonary rehabilitation training method can process electromyographic signals more efficiently, while reducing hardware resource consumption and improving processing speed, making rehabilitation training more accurate and responsive.
[0218] An adaptive pooling layer is further used to optimize feature extraction. By dynamically adjusting the size and position of the pooling window, the key features in the signal can be captured and retained more accurately, which is particularly important when processing non-stationary and highly variable EMG signals.
[0219] The design of the adaptive pooling layer allows the size and position of the pooling window to be dynamically adjusted according to the characteristics of the signal, optimizing the local feature extraction of the signal. This is achieved through the following formula:
[0220]
[0221] Where Si represents the i-th pooling area, μ i and σ i are adaptive parameters of the center and width of the region, respectively. This method can adjust the pooling strategy according to the dynamic changes of the signal, so as to better retain useful information and remove irrelevant noise.
[0222] The network design is assumed to contain 5 pooling regions I=5, and the parameters of each region are dynamically adjusted according to the signal content. For example, μ i The value range of σ is between 0% and 100% of the signal length. i The value range is from 0.1 second to 1 second to adapt to different speeds of electromyographic activities.
[0223] Assume that at a certain moment, the electromyographic signal x(t) shows different activity intensities in five different areas, and the pooling window needs to be dynamically adjusted according to the center position and change speed of these activities. Set μ i are 1s, 2s, 3s, 4s, 5s, respectively, i All are set to 0.5s. Based on these parameters, the pooling result is calculated by applying the formula to each region:
[0224]
[0225] This calculation method can weight the peak value of the signal in each area, highlight important features, and reduce the impact of background noise. Through the application of this adaptive pooling strategy, the deep learning model can process complex electromyographic signals more effectively, especially when the signal exhibits significant time changes or nonlinear characteristics.
[0226] Finally, a dynamic fully connected layer is used to adjust the parameters of the network using a formula to cope with the complexity of the electromyographic signal. By dynamically adjusting the parameters and weights of the activation function, the model's response to changes in electromyographic signals can be optimized, thereby improving the accuracy and efficiency of classification.
[0227] The dynamic fully connected layer is designed to enable the network to adjust its parameters based on the characteristics of the input signal to better identify different breathing patterns. This is achieved through the following formula:
[0228]
[0229] Where φ is a dynamic activation function, which can be ReLU, sigmoid or other advanced functions. The specific choice depends on the characteristics of the signal; λ j ,w ji , and b j are dynamically adjusted parameters, including the weight and bias of each neuron.
[0230] Design a network, including, for example, 100 neurons (J=100), each neuron has 10 connection weights (I=10) for the input feature. For the specific values of the parameters:
[0231] λ j Varies in the range [0.1, 2.0], depending on the specific training task and desired output sensitivity.
[0232] w ji The value range of can be set to [-0.5, 0.5] to cover a wide range of input effects.
[0233] b j Typically in the range [-0.1, 0.1], used to fine-tune the output threshold.
[0234] Suppose the input feature vector x=0.05,-0.07,0.15,...,0.01 (a total of 10 input features) at a certain moment. For the first neuron, its weight and bias are initialized as:
[0235] w 1i =[0.1,-0.1,0.05,…,-0.05]
[0236] b1=0.05
[0237] λ1=1.5
[0238] Using ReLU as the activation function, the output of the neuron is calculated as:
[0239]
[0240] If φ is ReLU, that is, φ(z)=max(0,z), the output is 0.25.
[0241] In this way, the dynamic fully connected layers not only improve the model’s sensitivity to signal changes, but also enable it to more accurately classify and respond to different breathing patterns.
[0242] Embodiment 5:
[0243] In this embodiment, a real-time feedback system is constructed to instantly adjust the training plan to suit the patient's current condition. The system uses a real-time data processing algorithm and a mathematical formula to analyze the electromyographic signal and generate real-time feedback, which helps optimize the training effect and improve the patient's rehabilitation efficiency.
[0244] The following formula of real-time feedback system is used for real-time data processing:
[0245]
[0246] Where x(t) is the real-time measured electromyographic signal, σ, ω, and φ are dynamically adjusted parameters, representing the width of the filter window, the angular frequency and phase of the signal processing, respectively. These parameters can be adjusted according to the characteristics of the electromyographic signal and the required feedback sensitivity.
[0247] The value σ is set to 0.1 seconds, which can capture signal changes in a shorter time scale and is suitable for fast-response myoelectric activities.
[0248] Set ω to 2π×10, that is, the signal processing frequency is 10 Hz, which is a typical frequency setting that can capture common EMG signals related to breathing rate.
[0249] φ can be set to π / 4 to provide an initial phase, which helps to adjust the starting point of signal analysis.
[0250] Assume that at a certain time t=2s, the value of the myoelectric signal x(t) is 0.05mV. According to the formula, the following calculation can be performed:
[0251]
[0252] This integration will be performed in a local area of the signal, highlighting the signal characteristics at t = 2s. The actual calculation requires the use of numerical integration methods, which can be performed using computing software or dedicated algorithms. In this way, the real-time feedback system can provide accurate training feedback based on the instant changes in the electromyographic signal, thereby achieving highly personalized rehabilitation training.
[0253] The adaptive training algorithm can dynamically adjust the difficulty and duration of training according to the real-time analysis results of electromyographic signals, thus achieving highly personalized and precise training.
[0254] Design principles of adaptive training algorithms:
[0255] This algorithm uses advanced mathematical models to analyze EMG signals and adjust training parameters based on signal characteristics. The formula is as follows:
[0256]
[0257] Among them, x i (τ) is the real-time electromyographic signal, α i ,β i ,γ i ,λ i , and δ i These parameters are adjusted based on the real-time analysis of the electromyographic signal to optimize the training effect.
[0258] The system is set up with three adaptive parameter groups, each group handles different signal characteristics:
[0259] α i Adjust in the range [0.1,1.0] to affect the sensitivity of the signal derivative term.
[0260] β i Range,[0.01,0.1], determines the smoothness of the signal and the memory decay rate.
[0261] γ i Adjust the contribution of the periodic component in the range [0.05,0.5].
[0262] λ i Set to the range [1,10] to affect the frequency of the periodic function.
[0263] δ i Adjust in the range of [0,π] to adjust the phase difference.
[0264] Assume that at a certain time t, the electromyographic signal x i (τ) shows a specific activity pattern. To simplify the calculation, consider the signal pattern x1(τ) = 0.1sin(2πτ):
[0265]
[0266] This formula dynamically adjusts the training parameters by calculating and integrating the effects of signal attenuation and periodic changes respectively.
[0267] Embodiment 6:
[0268] In this embodiment, a personalized training program is generated, and an in-depth analysis of the patient's electromyographic signals is achieved by integrating multi-dimensional feature extraction in the time domain, frequency domain, and time-frequency domain. By applying mathematical formulas, this method can form a comprehensive feature vector to provide a customized training plan for each patient.
[0269] Multi-dimensional feature extraction method:
[0270] This method uses the following formula for multi-dimensional feature extraction:
[0271]
[0272] Where T(x(t)) represents the time domain features, F(x(f)) represents the frequency domain features, and H(x(t,f)) represents the time-frequency domain features. These features are extracted from the electromyographic signal and can reflect the basic and complex properties of the signal. The dynamic weight functions α(t), β(f), and γ(t,f) are used to adjust the influence of different features to optimize the weight distribution in the feature extraction process.
[0273] The value of σ is set to 0.5. This parameter controls the width of the Gaussian window and affects the local sensitivity of feature extraction.
[0274] τ can be considered as the central moment of the analysis. For real-time analysis, this can be the current time or an important time point.
[0275] The dynamic weights α(t), β(f), and γ(t, f) vary in the range of [0.1, 1.0] according to the specific application scenario and signal characteristics.
[0276] The electromyographic signal x(t) at a certain time t appears as a spike in the time domain, and the frequency domain shows that the main frequency is 10Hz. The time-frequency domain analysis reveals the change of signal energy over time:
[0277] T(x(t))=sin(2π·10·t);
[0278] F(x(f)) = δ(f-10) (δ is the Dirac function, indicating that the frequency has a peak at 10 Hz);
[0279] H(x(t,f)) is expressed as sin(2π·10·t)×δ(f-10);
[0280] Apply the formula to calculate the eigenvector:
[0281]
[0282] This integration focuses on the signal characteristics at time t = τ, providing detailed information about the current breathing pattern.
[0283] A deep reinforcement learning algorithm is used to generate a personalized training program. By evaluating the user's electromyographic signal characteristics and historical data, the training program is dynamically adjusted to maximize the rehabilitation effect. Deep reinforcement learning mainly optimizes long-term rewards by learning the best action strategy.
[0284] Implementation strategies for deep reinforcement learning:
[0285] The deep reinforcement learning model calculates the value of an action using the following formula:
[0286]
[0287] Where Q(s,a) is the value function for a given state s and action a; r(s,a) is the immediate reward obtained by performing action a in state s; γ is a discount factor used to adjust the impact of future rewards; s ′ and a ′ Represent the subsequent states and actions respectively.
[0288] γ is usually set between 0.9 and 0.99 to ensure that the model takes into account immediate rewards while not ignoring long-term benefits.
[0289] The reward function r(s,a) is designed according to the degree of improvement of the electromyographic signal and the rehabilitation goal. For example, if a training action can effectively alleviate symptoms or enhance muscle function, a positive reward should be given; conversely, if the action causes symptoms to worsen or is ineffective, a negative reward should be given.
[0290] In a certain training cycle, the user performed a specific breathing training action, and the electromyographic signal was monitored to show that the muscle activity increased, which indicated that the training effect was good:
[0291] The set state s represents the myoelectric state before training, and the action a is the breathing training action performed.
[0292] The immediate reward r(s,a)=5 indicates that this action has a significant positive effect on muscle recovery.
[0293] Set the discount factor γ = 0.95.
[0294] Set the model to predict that in the subsequent state s ′ The best move ′ The estimated value of Q(s ′ ,a ′ )=50.
[0295] Substituting these values into the reinforcement learning formula calculates the value of the current action:
[0296] Q(s,a)=5+0.95×50=52.5
[0297] This means that performing this breathing exercise has a high overall value in the current state.
[0298] Dynamically adjusting the training plan using an adaptive algorithm based on the user's physical condition and recovery progress involves real-time analysis of the user's electromyographic signals and adjusting the training intensity and mode based on the analysis results, thereby ensuring that the training plan is adapted to both the user's current health status and the needs of their recovery progress.
[0299] Implementation strategy of adaptive algorithm:
[0300] The adaptive training plan is implemented by the following formula:
[0301]
[0302] where x i (τ) represents the i-th dimension feature extracted from the user's electromyographic signal, α i (t),β i (t),γi (t),λ i , and δ i These are dynamically adjusted parameters that are adjusted according to the user's real-time physical condition and recovery progress.
[0303] The system monitoring and adjustment is set to include 5 different training parameters N=5.
[0304] Parameter adjustment range: α i (t) is between [0.1, 1.0], controlling the sensitivity of the derivative term; β i (t) is between [0.01, 0.1], adjusting the decay rate; γ i (t) is between [0.05, 0.5], adjusting the influence of the periodic term; λ i Adjust the frequency of the periodic function between [1,10]; δ i Between [0,π], controls the phase.
[0305] Set a specific training cycle, in which the user's electromyographic signal x i (τ) shows obvious periodicity or attenuation characteristics for each dimension i. Taking one dimension as an example, set α1(t) = 0.5, β1(t) = 0.05, γ1(t) = 0.3, λ1 = 5, δ1 = π / 4.
[0306] Using the above parameters, calculate:
[0307]
[0308] This formula will adjust the intensity and duration of training based on real-time data to ensure that training meets the user's specific recovery needs.
[0309] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A pulmonary rehabilitation training method based on respiratory electromyographic signal feedback, characterized in that The following steps are involved: First, the electrical activity of breathing-related muscles is captured in real time through the electromyographic signal acquisition system, and signal amplification, filtering and noise suppression techniques are used to optimize signal quality. Secondly, we use machine learning algorithms to perform time-frequency analysis on the electromyographic signals, extract the energy spectrum and waveform length features, and apply deep learning models including convolutional neural networks for training and classification to distinguish different types of breathing patterns. Then, based on the classification results of the electromyographic signals, a real-time feedback system is established. The system displays the electromyographic signal strength and breathing quality in real time through the user interface, and adjusts the difficulty and duration of breathing training; Finally, based on the user's electromyographic signal characteristics and historical data analysis, an artificial intelligence algorithm is used to generate a personalized pulmonary rehabilitation training plan, and the training plan is dynamically adjusted in combination with the user's physical condition and recovery progress.
2. A pulmonary rehabilitation training method based on respiratory myoelectric signal feedback according to claim 1, characterized in that The steps of the method for optimizing signal quality are as follows: S1. First, develop the myoelectric sensor control module and use the formula to capture the muscle activity related to breathing: To enhance signal selectivity, where x(t) represents the electromyographic signal at time t, and a, b, and c are adjustment parameters; S2, then apply the intelligent signal processing algorithm based on machine learning, through the formula: Where x(t) is the preprocessed electromyographic signal, k(t) is the weight function adaptively adjusted based on the signal characteristics to classify the signal and distinguish different breathing patterns; S3. Then, according to the classification results of the electromyographic signals, a real-time feedback system is constructed, using the formula: Dynamically adjust the training difficulty, where x is the current signal feature value, μ and λ n To optimize the pulmonary rehabilitation training program for training parameters.
3. A pulmonary rehabilitation training method based on respiratory myoelectric signal feedback according to claim 1, characterized in that The method for performing time-frequency analysis on the electromyographic signal comprises: S1. Use multi-scale time-frequency analysis to capture the dynamic changes of EMG signals at different time scales. S2. The features of time domain, frequency domain and time-frequency domain are integrated to form a comprehensive feature vector through feature fusion technology, and a custom-developed deep learning model, especially a convolutional neural network optimized for electromyographic signal characteristics, is used for training and classification to distinguish different types of breathing patterns; S3. By adjusting the network architecture in the deep learning model, including the configuration of convolutional layers, pooling layers, and fully connected layers, it is particularly adapted to the nonlinear and non-stationary characteristics of electromyographic signals and improves the accuracy of classifying different breathing patterns.
4. A pulmonary rehabilitation training method based on respiratory myoelectric signal feedback according to claim 3, characterized in that The multi-scale time-frequency analysis method includes: First, a multi-scale waveform transform with a variable window size is used to capture the dynamic changes of the electromyographic signal at different time scales, which is suitable for analyzing the complexity of respiratory muscle activity and different breathing patterns. The transform is expressed by the formula: T(x,τ,s)=∫x(t)·w(s(t-τ))e -iωt dt Implementation, where x(t) represents the electromyographic signal, w is the window function, and s adjusts the window size to capture signals of different frequencies; Then the analysis scale is adjusted through an adaptive algorithm to optimize the time-frequency accuracy of signal analysis, according to the formula: control, where f(τ) is a function that changes dynamically according to the signal characteristics; Finally, the empirical mode decomposition and Hilbert-Huang transform technology are combined for advanced signal processing, through the formula: Extract the time-frequency features of the signal to provide real-time feedback and adjustments for different breathing training modes.
5. A pulmonary rehabilitation training method based on respiratory myoelectric signal feedback according to claim 3, characterized in that The custom developed deep learning model building framework includes: S1, designed by integrating the time domain, frequency domain and time-frequency domain features from the electromyographic signal, through the formula: to achieve, where They represent the transformation functions extracted from each domain, respectively, to handle the diversity of breathing patterns required in pulmonary rehabilitation; S2. Training and classification are performed using a custom-developed convolutional neural network model optimized for EMG signal characteristics, which is implemented using the formula: The convolution operation captures subtle changes in the EMG signal and distinguishes different breathing patterns including deep breathing and rapid breathing; where x represents the input EMG signal; k n is the convolution kernel of the nth convolutional layer, which is used to extract specific features from the input signal; W nm is the convolution kernel k n The weight matrix under is used to further refine the features extracted from the signal; b n is a bias term used to adjust the bias of the convolution result; σ is an activation function used to introduce nonlinearity; the convolution operation * is used to apply the convolution kernel and weights to the signal x to extract features; S3. Use a multimodal learning strategy to improve the model's understanding of the multidimensional features of electromyographic signals, using the formula: To optimize the training effect, where f i (x) represents the different modal feature extraction functions applied to the signal x; C represents the convolutional neural network output of the deep learning model; σ i It is the activation function for each modality i, used to process the output of different modalities; are learning parameters that tune each modal contribution separately.
6. A pulmonary rehabilitation training method based on respiratory myoelectric signal feedback according to claim 3, characterized in that Method for adjusting the network architecture in the deep learning model: S1. First, the convolution layer involves dynamically adjusting the filter size, using the formula: where θ n (s) represents the shape function of the nth convolution kernel, σ n The adaptive width parameter represents the dynamic adjustment of the filter size to capture the key features in the signal; S2, then use the depth-separable convolution formula: Execute, where k mn is the depth convolution kernel, w n is the group weight matrix, b n It is a bias term that improves the efficiency of signal feature extraction and reduces computational complexity; S3, then use the adaptive pooling layer through the formula: Carry out, where S i represents the i-th pooling area, μ i and σ i are adaptive parameters of the center and width of the pooling window to capture and retain key features; S4. Finally, the dynamic fully connected layer is used using the formula: where φ is a dynamic activation function with parameter λ j ,w ji , and b j Dynamically adjust according to changes in input features to optimize the network's response and classification accuracy.
7. A pulmonary rehabilitation training method based on respiratory myoelectric signal feedback according to claim 1, characterized in that The real-time feedback system construction steps include: First, we use advanced real-time data processing algorithms, through the formula: , where x(t) is the electromyographic signal, σ, ω, φ are dynamically adjusted parameters to capture the instantaneous features in the signal and generate real-time feedback; Further, using the adaptive training algorithm, through the formula: Implementation, where α i , β i , γ i , i ,δ i It is an adaptive parameter that dynamically adjusts the difficulty and duration of breathing training based on real-time analysis results.
8. A pulmonary rehabilitation training method based on respiratory myoelectric signal feedback according to claim 1, characterized in that The generating of the personalized pulmonary rehabilitation training program includes forming a comprehensive feature vector by combining the features of the time domain, the frequency domain and the time-frequency domain through a multi-dimensional feature extraction method. The process uses the formula: Where T(x(t)) is the time domain feature, F(x(f)) is the frequency domain feature, H(x(t,f)) is the time-frequency domain feature, α(t), β(f), γ(t,f) are dynamic weight functions; Then, a deep reinforcement learning algorithm is used to generate a personalized pulmonary rehabilitation training program based on the user's electromyographic signal characteristics and historical data, using the formula: Where Q(s,a) is the value function of state s and action a, r(s,a) is the reward function, and γ is the discount factor, which represents the weight of future rewards; Then, the training plan is dynamically adjusted using an adaptive algorithm based on the user's physical condition and recovery progress, using the formula: Implementation, where α i (t), β i (t), γ i (t), λ i ,δ i It is a dynamically adjusted parameter that controls the analysis and personalized adjustment of the user's real-time status and recovery progress through the comprehensive application of multi-dimensional feature extraction, deep reinforcement learning and adaptive algorithms.
Citation Information
Patent Citations
Individual diaphragm rehabilitation training system based on surface myoelectricity
CN109999433A
Interactive rehabilitation system based on myoelectricity intelligent wearing
CN113871028A
Electromyographic signal action recognition method based on convolutional neural network
CN116340824A
Rehabilitation robot interaction behavior control method and system
CN116431004A
Rehabilitation training system based on dynamic adjustment
CN118098497A
Cited By
Rehabilitation exercise planning system based on computer assistance
CN119153028A
Respiratory rehabilitation training data management method and system based on artificial intelligence
CN119230060A
Postoperative care information management method and system based on neural network, and storage medium
CN119361169A
A postoperative nursing information management method, system and storage medium based on neural network
CN119361169B
Multi-parameter feedback regulation and control method for postoperative lung function rehabilitation training
CN120600320A
