Method and system for controlling upper limb rehabilitation robot based on dynamic feedback of electromyographic signals
Through the upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals, using seven-degree-of-freedom robotic arms and fractional-order impedance control, the problems of high cost and low efficiency in traditional rehabilitation methods are solved, and high-precision and efficient rehabilitation training effects are achieved.
Patent Information
- Application Number
- CN202410769240.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional one-on-one upper limb rehabilitation has problems such as high cost, continuous attention from professionals, long queue time, fatigue of the rehabilitation staff and lack of time. Moreover, the treatment effect depends on the subjective awareness and technical level of the physical therapist, and it cannot fully restore the patient's functions. , ignoring cognitive needs.
An upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals is adopted, data is collected through Kinect sensor and electromyograph, and the motion trajectory is simulated using a seven-degree-of-freedom robotic arm and fractional-order impedance control method, combined with an adaptive robust controller and multi-step Signal processing enables precise myoelectric signal processing and control to improve the efficiency and effect of rehabilitation training.
It significantly improves the control accuracy and stability of upper limb rehabilitation, improves the effect and efficiency of patient rehabilitation training, is suitable for medical signal processing scenarios that require high precision and stability, and can effectively improve the quality and prediction accuracy of myoelectric signals.
Smart Images

Figure CN118787531A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of rehabilitation training, and in particular relates to an upper limb rehabilitation robot control method and system based on dynamic feedback of electromyographic signals. Background Art
[0002] Stroke is a common disabling disease that severely limits the patient's physical activity and motor function. In order to effectively cope with it, stroke patients often receive motor rehabilitation, which has achieved good results. Existing technologies use machines to assist in the rehabilitation of patients' upper limbs, and formulate rehabilitation plans by judging active or passive consciousness. However, traditional one-to-one rehabilitation has problems such as high costs, the need for continuous attention from professionals, long waiting times, fatigue and lack of time for rehabilitation therapists. The treatment effect also depends on the subjective consciousness and technical level of the physiotherapist, and some methods are single and cannot fully restore the patient's function, ignoring cognitive needs. These problems have prompted the need to adopt smart medical solutions to improve efficiency.
[0003] Therefore, in order to better solve the problem of limiting patients' physical activities and motor functions, it is very important to design an upper limb rehabilitation robot control method and system based on dynamic feedback of electromyographic signals. Summary of the invention
[0004] The present invention aims to overcome the problems in the prior art such as high cost, need for continuous attention of professionals, long waiting time, fatigue and lack of time of rehabilitation therapists in traditional one-on-one upper limb rehabilitation, and provides an upper limb rehabilitation robot control method and system based on dynamic feedback of electromyographic signals that can improve the efficiency of upper limb rehabilitation.
[0005] In order to achieve the above-mentioned object of the invention, the present invention adopts the following technical solutions:
[0006] The control method of an upper limb rehabilitation robot based on dynamic feedback of electromyographic signals comprises the following steps:
[0007] S1, using Kinect sensors to define and match robot joints, collect force sensor data and transmit it to the V-REP platform for simulation and optimization, while collecting lower limb muscle signals through electromyography to optimize the ankle joint classifier;
[0008] S2, rehabilitation training uses a seven-degree-of-freedom robotic arm for human-machine interaction, uses fractional-order impedance control method to simulate motion trajectory, and converts the user's electromyographic signals into control commands for manipulating the rehabilitation robot;
[0009] S3 uses command-type ankle joint electromyographic signals as signal carriers. After the robot is started, the patient holds the gripper at the end of the robotic arm and wears an electromyograph. The electromyograph and force sensor send data commands to the STM32 optimization center for controlling the robotic arm.
[0010] S4, through instructions and force feedback, the central control unit guides the force direction; the force sensor at the end of the robotic arm transmits the contact force data to the central control unit; the central control unit uses the data for the fractional-order impedance control method, and combines the desired trajectory planned by the rehabilitation physician using the Kinect sensor to optimize the trajectory through the robotic arm model in the V-REP simulation environment.
[0011] Preferably, in step S2, simulating the motion trajectory using the fractional-order impedance control method comprises the following steps:
[0012] S21, consider a simple mechanical system, which includes mass m, damping b, and stiffness k; the traditional integer-order impedance control equation is expressed as:
[0013]
[0014] where x(t) is the position of the robot system, is the position velocity of the robot system, is the position acceleration of the robot system, and F(t) is the external force;
[0015] For fractional-order impedance control, the equation expands to a fractional-order form:
[0016]
[0017] in They are fractional derivatives with respect to time t, 0<α, 0<β≤1, γ≤1;
[0018] The improved fractional-order impedance control formula is expressed as:
[0019]
[0020] Where m(t), b(t), k(t) are the time-varying mass, damping and stiffness coefficients, respectively; α(t), β(t), γ(t) represent the time-varying fractional derivative orders; d(t) represents the adaptive robust control term used to compensate for external disturbances and noise; S(t) represents the frequency change used to compensate for external time sampling;
[0021] S22, design an adaptive robust controller for online adjustment of system parameters and fractional derivative orders:
[0022] Online parameter adjustment:
[0023] Use real-time optimization algorithms to adjust m(t), b(t), k(t) and α(t), β(t), γ(t);
[0024] The update formula using the scatter swarm optimization algorithm is:
[0025] v i (t+1)=wv i (t)+c1r1(p i -x i (t))+c2r2(gx i (t))+φ i r3
[0026] x i (t+1)=x i (t)+v i (t+1)
[0027] Among them, v i (t) is the particle velocity at the tth second, v i (t+1) is the particle velocity at the t+1th second, x i (t) is the scattered position at the tth second, x i (t+1) is the scattered position at the t+1th second, φ i represents the external factor variable, p i is the individual extreme value, g is the global extreme value, w represents the weight, c1 and c2 represent the acceleration coefficients, r1, r2, and r3 represent random numbers;
[0028] S23, design the adaptive robust control term d(t) to compensate for external disturbances and system uncertainties:
[0029]
[0030] Among them, x d (t) is the expected trajectory, x(t) is the motion trajectory, K r is the robust control gain, λ is the control gain, is the fractional derivative at time t, and δ is the order of the fractional derivative.
[0031] Preferably, in step S1, the image and video data are read through OpenCV, the video frame data is transmitted to the MediaPipe tool library, the ankle joint model is constructed and 3D landmarks are marked on the image; the ankle joint motion trajectory of the target patient is displayed in the image and mapped to the computer display desktop; at the same time, the hand position information and the real-time screen data of the system desktop are transmitted to the Unity software to construct a 3D model; finally, the data is transmitted to the STM32 to execute the command.
[0032] Preferably, step S1 comprises the following steps:
[0033] S11, the rehabilitation physician stands in front of the Kinect sensor and uses the motion acquisition system to demonstrate the rehabilitation movements required by the patient;
[0034] In S12, the Openmv4 camera uses depth information to identify arm movements. After coordinate system transformation, the space vector method is used to calculate the movement changes of the robotic arm in different postures, and the robotic arm model is input into the virtual simulation V-REP environment to verify the similarity of the movement trajectory with the rehabilitation physician's movements;
[0035] S13, optimizing the trajectory of the active rehabilitation training action as the expected movement route of the rehabilitation robot arm;
[0036] S14, after the rehabilitation physician confirms that the trajectory meets the requirements, the patient uses the corresponding trajectory for active rehabilitation training.
[0037] Preferably, in step S3, using the command-type ankle joint electromyographic signal as a signal carrier comprises the following steps:
[0038] S31, using an electromyography instrument to collect the electromyographic signals of the patient's ankle to extract the ankle joint and identify six fixed commands; the six fixed commands include ankle dorsiflexion, plantar flexion, inversion, eversion, internal rotation, and external rotation;
[0039] Among them, ankle dorsiflexion makes the end of the robotic arm move in the positive direction along the X-axis; plantar flexion makes the end of the robotic arm move in the negative direction along the X-axis; inversion makes the end of the robotic arm move in the positive direction along the Y-axis; eversion makes the end of the robotic arm move in the negative direction along the Y-axis; internal rotation corresponds to starting training; external rotation corresponds to pausing training.
[0040] Preferably, in step S31, after collecting the electromyographic signal of the patient's ankle by using an electromyograph, filtering is performed by an adaptive filter; formula prediction is performed on the filtered signal, and the formula is used to calculate and evaluate whether the signal meets the predetermined conditions;
[0041] If the signal meets the conditions, the electromyographic signal is directly output; if the signal does not meet the preset conditions, the electromyographic signal data is updated and reprocessed until the signal meets the preset conditions.
[0042] Preferably, in step S31, collecting the electromyographic signal of the patient's ankle by using an electromyograph comprises the following steps:
[0043] S311, extracting several types of feature point data by collecting 32 channels of electromyographic signals;
[0044] S312, normalizing the collected data;
[0045] S313, filtering the normalized data;
[0046] S314, after the filtered data is classified by a classifier, multi-feature fusion is performed;
[0047] S315, performing pattern recognition on the data after multi-feature fusion;
[0048] S316, outputting the recognition result by continuously optimizing the algorithm according to the characteristics of the different features identified; the optimization algorithm includes adjusting the model parameters and selecting the most appropriate model and feature combination.
[0049] The present invention also provides an upper limb rehabilitation robot control system based on dynamic feedback of electromyographic signals, comprising:
[0050] The data acquisition and optimization module is used to define and match robot joints using Kinect sensors, collect force sensor data and transmit it to the V-REP platform for simulation and optimization, and collect lower limb muscle signals through electromyography to optimize the ankle joint classifier;
[0051] The motion trajectory simulation module is used for human-machine interaction using a seven-degree-of-freedom robotic arm, using a fractional-order impedance control method to simulate the motion trajectory and convert the user's electromyographic signal into a control command for manipulating the rehabilitation robot;
[0052] The robot startup module is used to use the command ankle joint electromyographic signal as a signal carrier; after the robot is started, the patient holds the gripper at the end of the robot arm and wears the electromyograph. The electromyograph and force sensor send data commands to the STM32 optimization center for controlling the robot arm;
[0053] The feedback and guidance module is used to guide the force direction through instructions and force feedback. The force sensor at the end of the robotic arm transmits the contact force data to the central control unit. The central control unit uses the data for the fractional-order impedance control method, and combines the desired trajectory planned by the rehabilitation physician using the Kinect sensor to optimize the trajectory through the robotic arm model in the V-REP simulation environment.
[0054] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention collects lower limb muscle signals through an electromyograph and optimizes the ankle joint classifier to improve control accuracy; (2) The present invention adopts a seven-degree-of-freedom robotic arm for human-computer interaction, utilizes a fractional-order impedance control algorithm to simulate motion trajectory, optimizes the electromyographic signal processing algorithm, and converts the user's electromyographic signal into a control command to operate the rehabilitation robot, which has significant advantages in control accuracy and stability; (3) The present invention significantly improves the effect and efficiency of patient rehabilitation training through sensitive data collection and analysis, as well as real-time 3D visualization and remote control; (4) The present invention can effectively improve the quality of electromyographic signals and the accuracy of prediction through a multi-step and multi-level signal processing method, and is suitable for medical signal processing scenarios requiring high precision and high stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1It is a schematic diagram of the internal structure control of the upper limb rehabilitation robot control system based on dynamic feedback of electromyographic signals in the present invention;
[0056] Figure 2 A schematic diagram of the principle of fractional-order derivative control in the present invention;
[0057] Figure 3 A flow chart of ankle recognition under 3D human-computer interaction in the present invention;
[0058] Figure 4 A curve schematic diagram of the rehabilitation exercise trajectory in the present invention;
[0059] Figure 5 A flow chart for learning rehabilitation training in the present invention;
[0060] Figure 6 A principle flow chart of the adaptive filter in the present invention;
[0061] Figure 7 A principle block diagram of the feature point recognition method in the present invention. DETAILED DESCRIPTION
[0062] In order to more clearly illustrate the embodiments of the present invention, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other accompanying drawings and other implementation methods can be obtained based on these accompanying drawings without creative work.
[0063] Example:
[0064] The present invention provides an upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals, comprising the following steps:
[0065] S1, using Kinect sensors to define and match robot joints, collect force sensor data and transmit it to the V-REP platform for simulation and optimization, while collecting lower limb muscle signals through electromyography to optimize the ankle joint classifier;
[0066] S2, rehabilitation training uses a seven-degree-of-freedom robotic arm for human-machine interaction, uses fractional-order impedance control method to simulate motion trajectory, and converts the user's electromyographic signals into control commands for manipulating the rehabilitation robot;
[0067] S3 uses command-type ankle joint electromyographic signals as signal carriers. After the robot is started, the patient holds the gripper at the end of the robotic arm and wears an electromyograph. The electromyograph and force sensor send data commands to the STM32 optimization center for controlling the robotic arm.
[0068] S4. Through instructions and force feedback, the central control unit guides the force application direction; the force sensor at the end of the robotic arm transmits the contact force data to the central control unit; the central control unit uses the data for the fractional-order impedance control method and combines it with the desired trajectory planned by the rehabilitation physician using the Kinect sensor to optimize the trajectory through the robotic arm model in the V-REP simulation environment; meanwhile, the central control unit displays the direction and magnitude of the force on the animation.
[0069] As Figure 1 shown, the EC controller and integer-order impedance control are common flexible control methods, which are characterized by allowing the robot's movement to deviate from the preset trajectory and adjusting the reaction force according to the movement error and the desired mechanical impedance characteristics. Such control methods are widely used in the field of rehabilitation robots, enabling patients to perform active training. The flexibility of this control method and its promotion of patient rehabilitation prominently reflect the advantages of the control method type.
[0070] To ensure that the performance of the rehabilitation robot meets the treatment expectations, the control system needs to be effectively designed. This design will involve two modules: the hardware and software of the control system. Each module of the system consists of a PC module, a control algorithm module, a force acquisition module, a communication module, etc. It involves robot hardware, a USB communicator, a six-axis force sensor, servo motors, encoders, reducers, motor drivers, and upper computer control software. These components jointly control the system to ensure that its performance meets the requirements of rehabilitation treatment.
[0071] Fractional-order impedance control is an advanced control method used in robotic and mechanical systems. By utilizing the concept of fractional calculus, it can more flexibly describe and control the dynamic behavior of the system. The fractional-order impedance controller can more accurately mimic the impedance characteristics of the actual physical system, thus having significant advantages in terms of control accuracy and stability.
[0072] Fractional-order impedance control replaces the traditional integer-order equation with a Caputo-form fractional-order differential equation, which can not only more flexibly adjust the movement trajectory of robotic systems such as robotic arms under external forces, but also significantly improve the accuracy and adaptability of dynamic behavior control, provide more delicate system response adjustment and more efficient energy management, thereby optimizing the system performance. The basic definition of fractional calculus is as follows:
[0073] Fractional derivative (Caputo form): For the function f(t), first find its coefficient:
[0074]
[0075] where n - 1 < α < n, and Γ is the Gamma function.
[0076] However, the coefficients will be affected by external disturbances and noise, and changes in the external force F(t).
[0077] Therefore, the present invention realizes dynamic coefficient adjustment by introducing external force uncertainty factor F(t) and time step Δt, thereby improving the accuracy of data. In addition, the present invention adopts an online optimization algorithm to adjust the order of fractional derivatives in real time, and introduces a robust control strategy to significantly enhance the system's resistance to external disturbances and parameter uncertainties. In order to further improve performance, the present invention uses more efficient and accurate fractional derivative calculation methods such as fast Fourier transform (FFT), and designs a gain scheduling strategy so that the control gain can be dynamically adjusted according to the system state and external conditions. These improvement measures jointly improve the control accuracy, response speed and stability of the system, making it more adaptable and robust in complex environments.
[0078] Consider a simple mechanical system consisting of mass m, damping b, and stiffness k; the traditional integer-order impedance governing equation is expressed as:
[0079]
[0080] where x(t) is the position of the robot system, is the position velocity of the robot system, is the position acceleration of the robot system, and F(t) is the external force;
[0081] For fractional-order impedance control, the equation expands to a fractional-order form:
[0082]
[0083] in They are fractional derivatives with respect to time t, 0<α, 0<β≤1, γ≤1;
[0084] The improved fractional-order impedance control formula is expressed as:
[0085]
[0086] Where m(t), b(t), k(t) are the time-varying mass, damping and stiffness coefficients, respectively; α(t), β(t), γ(t) represent the time-varying fractional derivative orders; d(t) represents the adaptive robust control term used to compensate for external disturbances and noise; S(t) represents the frequency change used to compensate for external time sampling;
[0087] Design an adaptive robust controller to adjust system parameters and fractional derivative orders online:
[0088] Online parameter adjustment:
[0089] Use real-time optimization algorithms to adjust m(t), b(t), k(t) and α(t), β(t), γ(t);
[0090] The update formula using the scatter swarm optimization algorithm is:
[0091] v i (t+1)=wv i (t)+c1r1(p i -x i (t))+c2r2(gx i (t))+φ i r3
[0092] x i (t+1)=x i (t)+v i (t+1)
[0093] Among them, v i (t) is the particle velocity at the tth second, v i (t+1) is the particle velocity at the t+1th second, x i (t) is the scattered position at the tth second, x i (t+1) is the scattered position at the t+1th second, φ i represents the external factor variable, p i is the individual extreme value, g is the global extreme value, w represents the weight, c1 and c2 represent the acceleration coefficients, r1, r2, and r3 represent random numbers;
[0094] Design an adaptive robust control term d(t) to compensate for external disturbances and system uncertainties:
[0095]
[0096] Among them, x d (t) is the expected trajectory, x(t) is the motion trajectory, K r is the robust control gain, λ is the control gain, is the fractional derivative at time t, and δ is the order of the fractional derivative.
[0097] The adaptive inverse solution method of the elbow based on the minimum potential energy is used to realize the motion trajectory planning of the robot arm. For the compliant control method, a fractional-order impedance controller is constructed, such as Figure 2 As shown in the figure, the tracking capability of the system to the target impedance model is improved by adjusting the fractional-order parameters. The simulation and physical experimental results show that compared with integer-order and impedance-free controllers, the position-based fractional-order impedance controller can effectively improve the system response performance and achieve better compliance and control accuracy.
[0098] Due to the characteristics of EEG signals and the fact that the client of the human-computer interaction software of the acquisition device is written in Python3, it communicates with the host computer that controls the robot through UDP. The host computer that controls the rehabilitation robotic arm is connected to the robot through USBCAN to control its movement. The end of the robot is equipped with a force sensor, which is connected to the PC through a serial port to measure the contact force with the environment in real time. These rehabilitation data are combined with position-driven fractional-order impedance control to achieve smooth operation of the robot. At the same time, the host computer transmits the current position of the robot to the client of the human-computer interaction software in real time to guide the operator.
[0099] The system is based on the machine learning framework of MediaPipe and realizes data analysis and 3D effect display functions. It mainly uses the characteristic point coordinates of the ankle joint to process the ankle joint information and realizes sensitive and low-latency patient arm rehabilitation function. This makes the rehabilitation training for patients more effective.
[0100] In terms of goal achievement, Figure 3 The process shown in the figure reads image and video data through OpenCV, transfers frame data to MediaPipe, builds an ankle joint model and marks 3D landmarks on the image. The target patient's ankle joint motion trajectory is displayed in the image, and its trajectory is mapped to the computer display desktop, realizing "remote control". At the same time, the hand position information and the real-time screen data of the system desktop are transferred to the Unity software to build a 3D model. Finally, the data is transferred to the STM32 to execute the command.
[0101] The method for determining the action instructions is as follows: according to six instructions (ankle dorsiflexion, plantar flexion, inversion, eversion, internal rotation, and external rotation), the instructions of the target patient are read and operated.
[0102] These improvements give the system significant advantages in training and rehabilitation, significantly improving the effectiveness and efficiency of patient rehabilitation training through sensitive data acquisition and analysis, as well as real-time 3D visualization and remote control.
[0103] For the realization of 3D interaction: when the system is running, two interfaces will be displayed, namely the ankle joint recognition interface and the 3D display interface. In the ankle joint recognition interface, the ankle joint information is recognized to complete the recording of the patient's ankle joint movement trajectory. In the 3D display interface, there are two parts: desktop real-time display and ankle joint model. The display interface will update the data of the Windows desktop in real time; the ankle joint model will synchronize the foot movement information captured by the monocular camera, and transmit the foot coordinate information to the 3D interface through Socket communication. In addition, the foot model can also complete simple 3D actions, such as lifting, moving forward and backward, stomping, etc. .
[0104] like Figure 5The process shown is to train the rehabilitation physician in rehabilitation movements. The physician stands in front of the Kinect sensor and uses the motion acquisition system to demonstrate the rehabilitation movements required by the patient. Next, Openmv4 uses depth information to identify arm movements. After coordinate system transformation, the motion changes of the robotic arm in different postures are calculated using the space vector method. The motion changes are input into the robotic arm model of the virtual simulation V-REP environment to verify the similarity between its motion trajectory and the physician's movements. Subsequently, the trajectory of the active rehabilitation training movement is optimized as the expected motion route of the rehabilitation robotic arm. Finally, after the rehabilitation physician confirms that the trajectory meets the requirements, the patient can use the trajectory for active rehabilitation training. Among them, the obtained rehabilitation motion trajectory, such as Figure 4 shown.
[0105] The present invention uses Kinect sensors to conduct rehabilitation movement training on subjects through single-person and multi-person rehabilitation training. Ten passive rehabilitation trainings were conducted on the right hand of a male subject, each with an interval of 5 minutes. The rehabilitation robot arm recorded the trajectories of these ten trainings in real time. Then, the formula was used to calculate the movement time, average value and force variance of these ten trainings to verify the effect of the rehabilitation robot arm in passive rehabilitation training. In the multi-person rehabilitation experimental data analysis, this embodiment invited five subjects to participate in rehabilitation training, including 3 males (numbered 1, 2, and 3) and 2 females (numbered 4 and 5).
[0106] Assume that the time of each training is T s minutes, and the interval between two training sessions is T i minutes, the number of training times is N, and the total time is T 总 Minutes, the formula is:
[0107] T 总 =N·T s +(N-1)T i ;
[0108] Where: T s is the time of each training session, T i is the interval between each training, N is the number of training times, T 总 is the total training time.
[0109] The experimental results are shown in the following table:
[0110] Table 1 Data table of time periods corresponding to the number of training sessions for rehabilitation subjects
[0111]
[0112] In step S3, the electromyograph is used to collect the electromyographic signal of the patient's ankle to extract the ankle joint and identify six fixed commands. Among them, dorsiflexion causes the end of the robotic arm to move in the positive direction along the X-axis; plantar flexion causes the end to move in the negative direction along the X-axis; inversion causes the end to move in the positive direction along the Y-axis; eversion causes the end to move in the negative direction along the Y-axis; internal rotation corresponds to the start of training; external rotation corresponds to the suspension of training. The system will automatically stop when the patient exceeds the range of six rehabilitation movements. The monocular camera tracks the position of the ankle joint in real time, analyzes its change information to control the patient, and realizes "remote control". At the same time, the three-dimensional structural vision is used to display the change effect of the ankle joint in real time, and the captured desktop real-time animation is combined with the 3D ankle joint for display.
[0113] The schematic diagram of the adaptive filter is as follows: Figure 6 As shown in the figure, the electromyography instrument is used to collect the electromyographic signal of the patient's ankle, the signal source is obtained through the 32-channel electromyographic signal data, and differential amplification is performed through the instrument amplifier. This multi-channel acquisition method can capture more details and improve the spatial resolution of the signal, thereby enhancing the accuracy and reliability of the signal. If there is no noise, the electromyographic signal is directly output and the signal is predicted, which can simplify the processing flow, reduce the calculation burden, and speed up the response speed.
[0114] If there is noise, phase-frequency compensation is performed to eliminate phase distortion and frequency distortion and improve the clarity of the signal. Then, a stable signal is output through the crystal ACG circuit. The crystal ACG circuit has high precision and stability, and can provide a reliable clock source to ensure the consistency and accuracy of the signal. Next, filtering is performed through an adaptive filter, which can automatically adjust the filtering parameters according to the input signal, effectively remove noise, while retaining useful signal components and improving the filtering effect.
[0115] Finally, the filtered signal is predicted by formula, and the formula is used to evaluate whether the signal meets the predetermined conditions. This step can accurately determine the validity of the signal. If the signal meets the conditions, the electromyographic signal is directly output to ensure real-time and accuracy; if the signal does not meet the conditions, the data is updated and reprocessed until the signal meets the conditions. This ensures that the final output electromyographic signal is optimized and verified, with high reliability and accuracy.
[0116] This multi-step, multi-level signal processing method can effectively improve the quality of electromyographic signals and the accuracy of prediction, and is suitable for medical signal processing scenarios that require high precision and high stability.
[0117] When encountering noise, the present invention uses an adaptive filter to process the situation where the signal source is interfered by noise, thereby processing the collected signal d(k) according to a specific formula:
[0118] Input signal and noise model:
[0119] The voltage change of the input signal d(k) is processed to obtain the corresponding data.
[0120] Assume the input voltage is V in+ and V in- , the gain resistor in the middle is R S and R f , the feedback resistor and input resistor of the two input operational amplifiers are R1 and R2 respectively. For A1 and A2:
[0121]
[0122]
[0123] The third operational amplifier A3 receives the output signals of A1 and A2, and its input resistor R3 and feedback resistor are both R4. out :
[0124]
[0125] Finally, the total gain G of the instrumentation amplifier is obtained:
[0126]
[0127] V out =G·(V in+ -V in- ).
[0128] It can be seen that when the temperature factor is introduced, the temperature change will affect the electrical characteristics of electronic components, including resistors, capacitors and semiconductor devices. This will cause the gain, bias current and input offset voltage of the instrumentation amplifier to fluctuate with temperature. By optimizing the formula, it can be found that the gain of the instrumentation amplifier has increased, thereby better amplifying the signal and improving the accuracy of signal processing. By changing the parallel connection of the intermediate feedback resistor, the gain is increased, the common mode signal is more effectively suppressed, and a more ideal differential signal is obtained.
[0129] Phase-frequency compensation:
[0130]
[0131] s is the complex frequency variable, a is the compensation coefficient, where T is the sampling period, and the compensation coefficient h[k] is designed to achieve the phase-frequency characteristic. To balance the relative values.
[0132] Circuit processing of crystal ACG:
[0133] V out (t)=10·G(t)·Vin (t)
[0134]
[0135] Among them, k B is the Boltzmann constant (1.38×10-23 J / K); T is the absolute temperature (in Kelvin); R is the resistance value; B is the bandwidth (in Hertz); C is the coefficient of variation;
[0136] Finally, after the target signal d(k) interfered by noise, the reference noise signal x(k), the differential signal s(k) and the regulated signal f(k), the filter output is the filter output signal y(k).
[0137] Error signal: e(k)=d(k)·f(k)-y(k)·s(k);
[0138] Where e(k) is the error between the desired signal and the filter output signal.
[0139] Update filter weights: Adjust the filter weights according to the error signal to minimize the error signal.
[0140] Filter output: y(k) = w T (k)·x(k)·f(k);
[0141] Where: w(k) is the weight vector and x(k) is the input signal vector.
[0142] The adaptive filter coefficient update equation is as follows:
[0143]
[0144] Where μ is the iteration step size, ||x(k)|| 2 is the square of the Euclidean norm of x(k), ∈ is a small positive number to prevent the algorithm from diverging, and the step size parameter (learning rate) φ(k).
[0145] Further, such as Figure 7 As shown, in step S3, the present invention collects 32 channels of electromyographic signals and performs a series of optimization processes on the data. First, a variety of feature points are extracted. This step can capture the rich information in the electromyographic signals and improve the accuracy and comprehensiveness of subsequent analysis. Then, the present invention normalizes the data to ensure that all data are compared and analyzed on the same scale, which can reduce the impact of numerical differences between different features on model training and improve the stability and generalization ability of the algorithm.
[0146] Next, the present invention applies filtering technology to remove unnecessary noise and other interference, thereby improving the signal quality and ensuring that the classifier can more accurately identify and process the signal. After the classifier classifies the signal, the present invention fuses multiple features for pattern recognition. This multi-feature fusion method can comprehensively utilize the advantages of each feature and improve the overall performance and accuracy of the recognition system.
[0147] In the process of pattern recognition, the present invention identifies the characteristics of different features and further improves the recognition effect by continuously optimizing the algorithm. This optimization not only includes adjusting the model parameters, but also involves selecting the most appropriate model and feature combination to ensure that the useful information in the data can be fully mined.
[0148] Finally, through the above series of steps, the expected recognition results are obtained. This systematic processing method not only improves the accuracy and reliability of recognition, but also enhances the robustness and practicality of the system, enabling it to perform well in complex practical applications.
[0149] Among them, the formula for data normalization is: mean-standard deviation normalization
[0150] The data is scaled to a standard normal distribution with zero mean and unit variance, as follows:
[0151]
[0152] Where: x is the original data point, x′ is the normalized data point, μ is the mean of the data, and σ is the standard deviation of the data.
[0153] The extraction and analysis of surface electromyographic (EMG) features involves a variety of computational methods for time domain, frequency domain, and nonlinear entropy features. The following are the formulas and methods for calculating these features:
[0154] Feature extraction in the time domain: First, collect the EMG signal of the target point. The sliding window integration method is a method for smoothing the EMG signal. By calculating the IEMG value within a fixed-length window, a smooth signal is obtained. Influence of the signal sampling rate: The sampling rate determines the temporal resolution of the signal. A higher sampling rate can capture more detailed information, but it will also increase the amount of data and the computational burden. A lower sampling rate may miss important feature information. Optimization: Select an appropriate sampling rate, usually between 500Hz and 2000Hz, to ensure that the signal details are fully captured without adding too much computational burden. Influence of muscle fatigue and human factors: Human factors such as muscle fatigue, individual differences, and emotional state can affect the characteristics and stability of electromyographic signals. Optimization: Consider these factors in the experimental design and reduce their impact through multiple acquisitions and statistical analysis.
[0155] The specific steps are as follows:
[0156] 1. Select a window length L, f (select a suitable sampling rate, usually between 500Hz and 2000Hz to ensure signal fineness), and take an average characteristic value φ(i) as human factors such as muscle fatigue, individual differences, and emotional state will affect the characteristics and stability of the EMG signal.
[0157] 2. For each time instant t, calculate the IEMG value in the window from t to t+L-1.
[0158] 3. Move the window and repeat the calculation.
[0159]
[0160] 4. And the six ankle joint states are used to analyze the energy changes of the signal in a short period of time, which is often used for time-frequency analysis of electromyographic signals.
[0161]
[0162] 5. Short-time Fourier transform (STFT) is used to convert time domain signals into frequency domain and analyze the frequency components of the signal at different times.
[0163]
[0164] Among them, w(it) is the window function.
[0165] 6. Reuse Wavelet transform is a time-frequency analysis method suitable for processing non-stationary signals and decomposing signals through wavelet basis functions of different scales.
[0166]
[0167] Among them, a and b are scale and displacement parameters respectively, and ψ is the mother wavelet function.
[0168] Frequency domain characteristics: Noise and interference in the signal, including power line noise (usually 50Hz or 60Hz), poor electrode contact and motion artifacts, will affect the accuracy of frequency domain characteristics. Therefore, using filtering techniques such as bandpass filtering and notch filtering to remove these noise and interference can improve signal quality.
[0169] MPF (mean power frequency):
[0170]
[0171] Where si is the noise line, fi is the frequency, Pi is the power spectral density at frequency f, and N is the total number of frequency components.
[0172] MF (median frequency) The median frequency is the frequency below which half of the power spectrum density is distributed. The calculation method is to find a frequency fm such that:
[0173]
[0174] where Pi is the power spectral density at frequency fi.
[0175] 3. Nonlinear entropy characteristics
[0176] In order to improve the stability of entropy calculation and signal quality, select an appropriate sampling rate (usually between 500 Hz and 2000 Hz), optimize the signal length (ensure that the signal length is long enough, usually several seconds to tens of seconds), remove noise (using filtering technology), select an appropriate embedding dimension m and tolerance r through cross-validation or empirical rules, and reduce the impact of human factors such as muscle fatigue and individual differences on the signal through multiple acquisitions and statistical analysis.
[0177] FuzzyEn (Fuzzy Entropy): FuzzyEn is an entropy measure used to measure the complexity of time series. Its calculation steps are as follows:
[0178] 1. Construct delay vectors with embedding dimensions of m and m+1.
[0179] 2. Calculate the Euclidean distance between vectors.
[0180] 3. Use Gaussian function to define fuzzy membership.
[0181] 4. Calculate the entropy value.
[0182]
[0183] Where ui is the delay vector of length m, r is the tolerance, and N is the signal length.
[0184] ApEn (Approximate Entropy): ApEn is a metric used to quantify the complexity of a time series.
[0185] The calculation steps are as follows:
[0186] 1. Construct delay vectors with embedding dimensions of m and m+1.
[0187] 2. Calculate the maximum difference between vectors.
[0188] 3. Calculate the entropy value.
[0189]
[0190] in,
[0191] is the delay vector of length m, r is the tolerance, and N is the signal length.
[0192] SampEn (sample entropy): SampEn is an improved version of ApEn, with similar calculation steps, but does not include self-matching:
[0193] 1. Construct delay vectors with embedding dimensions of m and m+1, where A is the number of pairs of m+1-dimensional vectors whose distance does not exceed r. B is the number of pairs of m-dimensional vectors whose distance does not exceed r.
[0194] 2. Calculate the maximum difference between vectors.
[0195] 3. Calculate the entropy value.
[0196]
[0197] is the delay vector of length m, r is the tolerance, and N is the signal length.
[0198] Exact induction: MD is a non-recursive adaptive signal decomposition method used to decompose a signal into a set of modal functions with band-limited characteristics. It is more stable and accurate than traditional empirical mode decomposition (EMD).
[0199] Formula: The goal is to solve the following variational problem:
[0200]
[0201] Where: u k is the modal function, w k is the center frequency of the mode, is the time derivative and * is the convolution operation.
[0202] The problem is solved by the alternating direction method of multipliers (ADMM).
[0203] The feature fusion and classification recognition of the ankle joint of electromyographic signals have been completed:
[0204] The surface electromyography signal features were extracted and analyzed, including time domain (IEMG and RMS), frequency domain (MPF and MF) and nonlinear entropy (FuzzyEn, ApEn and SampEn) features. Six SVM classifier models were constructed and the recognition accuracy of each action was calculated by voting. The specific data are shown in Table 2 below:
[0205] Table 2 Recognition accuracy data of various actions
[0206]
[0207]
[0208] According to the tabular data, the characteristic parameters of the three-axis acceleration of the ankle joint in different movements were extracted, and the absolute integrated average value (AVA), variance (VAR), correlation coefficient (Corr) between the two axes, as well as the amplitude peak value (SMV) and amplitude mean (SMA) were analyzed to obtain the mean and standard deviation of each characteristic parameter corresponding to the four ankle joint movements:
[0209] Feature parameter extraction: Assuming there is a three-axis acceleration signal: a x (t i ), a y (t i ) and a z (t i ), extract information from these three accelerations.
[0210] The absolute integrated average (AVA) is the integrated average of the absolute value of the acceleration signal, which is used to measure the overall energy of the signal. The formula is:
[0211]
[0212] Among them, a(t i ) can be a x (t i ), a y (t i ) or a z (t i When calculating AVA, the signal preprocessing and normalization are considered, and the balance coefficient x(t i ) Improve the accuracy and stability of calculations.
[0213] Variance (VAR) is used to measure the volatility of the signal, and the formula is:
[0214]
[0215] in, is the mean of the signal.
[0216] The correlation coefficient (Corr) between the two axes is used to measure the linear relationship between the two axis signals. x and a y For example, the formula is:
[0217]
[0218] The peak magnitude (SMV) is the maximum value of the acceleration signal. Where ρ is the air density, C d is the drag coefficient, A is the frontal area, and v is the speed, which more accurately considers factors other than acceleration.
[0219] The formula is:
[0220]
[0221]
[0222] The mean amplitude (SMA) is the average value of the acceleration signal amplitude, and the formula is:
[0223]
[0224] Statistical analysis: For each action (e.g., walking, running, jumping, standing), the mean and standard deviation of each characteristic parameter can be calculated through multiple experiments. Assuming that M experiments are conducted on a certain action, and the characteristic parameter values of each experiment are obtained, the specific data are shown in Table 3 below, then the mean and standard deviation of these characteristic parameters can be calculated to accurately describe the characteristics of the action.
[0225] Table 3 Data table of characteristic parameters of ankle joint triaxial acceleration in different actions
[0226]
[0227]
[0228] Mean, for a certain characteristic parameter P (such as AVA, VAR, etc.), the mean formula is:
[0229]
[0230] Finally, the mean and standard deviation of each characteristic parameter corresponding to various ankle joint movements are obtained.
[0231] The present invention also provides an upper limb rehabilitation robot control system based on dynamic feedback of electromyographic signals, comprising:
[0232] The data acquisition and optimization module is used to define and match robot joints using Kinect sensors, collect force sensor data and transmit it to the V-REP platform for simulation and optimization, and collect lower limb muscle signals through electromyography to optimize the ankle joint classifier;
[0233] The motion trajectory simulation module is used for human-machine interaction using a seven-degree-of-freedom robotic arm, using a fractional-order impedance control method to simulate the motion trajectory and convert the user's electromyographic signal into a control command for manipulating the rehabilitation robot;
[0234] The robot startup module is used to use the command ankle joint electromyographic signal as a signal carrier; after the robot is started, the patient holds the gripper at the end of the robot arm and wears the electromyograph. The electromyograph and force sensor send data commands to the STM32 optimization center for controlling the robot arm;
[0235] The feedback and guidance module is used to guide the force direction through instructions and force feedback. The force sensor at the end of the robotic arm transmits the contact force data to the central control unit. The central control unit uses the data for the fractional-order impedance control method, and combines the desired trajectory planned by the rehabilitation physician using the Kinect sensor to optimize the trajectory through the robotic arm model in the V-REP simulation environment. At the same time, the central control unit displays the direction and magnitude of the force on the animation.
[0236] The present invention collects lower limb muscle signals through an electromyograph and optimizes the ankle joint classifier to improve control accuracy; the present invention adopts a seven-degree-of-freedom robotic arm for human-computer interaction, utilizes a fractional-order impedance control algorithm to simulate motion trajectory, optimizes the electromyographic signal processing algorithm, and converts the user's electromyographic signal into a control command to manipulate the rehabilitation robot, which has significant advantages in control accuracy and stability; the present invention significantly improves the effect and efficiency of patient rehabilitation training through sensitive data collection and analysis, as well as real-time 3D visualization and remote control; the present invention can effectively improve the quality of electromyographic signals and the accuracy of prediction through a multi-step and multi-level signal processing method, and is suitable for medical signal processing scenarios requiring high accuracy and high stability.
[0237] The above description is only a detailed description of the preferred embodiments and principles of the present invention. For ordinary technicians in this field, according to the ideas provided by the present invention, there will be changes in the specific implementation methods, and these changes should also be regarded as the protection scope of the present invention.
Claims
1. An upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals, characterized in that: The steps include: S1, using Kinect sensor to define and match robot joints, collect force sensor data and transmit it to the V-REP platform for simulation and optimization, and collect lower limb muscle signals through electromyography to optimize the ankle joint classifier; S2, rehabilitation training uses a seven-degree-of-freedom robotic arm for human-machine interaction, uses fractional-order impedance control method to simulate motion trajectory, and converts the user's electromyographic signals into control commands for manipulating the rehabilitation robot; S3 uses command-type ankle joint electromyographic signals as signal carriers. After the robot is started, the patient holds the gripper at the end of the robotic arm and wears an electromyograph. The electromyograph and force sensor send data commands to the STM32 optimization center for controlling the robotic arm. S4, through instructions and force feedback, the central control unit guides the force direction; the force sensor at the end of the robotic arm transmits the contact force data to the central control unit; the central control unit uses the data for the fractional-order impedance control method, and combines the desired trajectory planned by the rehabilitation physician using the Kinect sensor to optimize the trajectory through the robotic arm model in the V-REP simulation environment.
2. The upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals according to claim 1 is characterized in that: In step S2, the motion trajectory is simulated by using the fractional-order impedance control method, including the following steps: S21, consider a simple mechanical system, which includes mass m, damping b, and stiffness k; the traditional integer-order impedance control equation is expressed as: where x(t) is the position of the robot system, is the position velocity of the robot system, is the position acceleration of the robot system, and F(t) is the external force; For fractional-order impedance control, the equation expands to a fractional-order form: in They are fractional derivatives with respect to time t, 0<α, 0<β≤1, γ≤1; The improved fractional-order impedance control formula is expressed as: Where m(t), b(t), k(t) are the time-varying mass, damping and stiffness coefficients, respectively; α(t), β(t), γ(t) represent the time-varying fractional derivative orders; d(t) represents the adaptive robust control term used to compensate for external disturbances and noise; S(t) represents the frequency change used to compensate for external time sampling; S22, design an adaptive robust controller for online adjustment of system parameters and fractional derivative orders: Online parameter adjustment: Use real-time optimization algorithms to adjust m(t), b(t), k(t) and α(t), β(t), γ(t); The update formula using the scatter swarm optimization algorithm is: v i (t+1)=wv i (t)+c1r1(p i -x i (t))+c2r2(g-x i (t))+φ i r3 x i (t+1)=x i (t)+v i (t+1) Among them, v i (t) is the particle velocity at the tth second, v i (t+1) is the particle velocity at the t+1th second, x i (t) is the scattered position at the tth second, x i (t+1) is the scattered position at the t+1th second, φ i represents the external factor variable, p i is the individual extreme value, g is the global extreme value, w represents the weight, c1 and c2 represent the acceleration coefficients, r1, r2, and r3 represent random numbers; S23, design the adaptive robust control term d(t) to compensate for external disturbances and system uncertainties: Among them, x d (t) is the expected trajectory, x(t) is the motion trajectory, K r is the robust control gain, λ is the control gain, is the fractional derivative at time t, and δ is the order of the fractional derivative.
3. The upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals according to claim 2 is characterized in that: In step S1, the image and video data are read through OpenCV, the video frame data is transmitted to the MediaPipe tool library, the ankle joint model is constructed and 3D landmarks are marked on the image; the ankle joint motion trajectory of the target patient is displayed in the image and mapped to the computer display desktop; at the same time, the hand position information and the real-time screen data of the system desktop are transmitted to the Unity software to construct a 3D model; finally, the data is transmitted to the STM32 to execute the command.
4. The upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals according to claim 3 is characterized in that: Step S1 includes the following steps: S11, the rehabilitation physician stands in front of the Kinect sensor and uses the motion acquisition system to demonstrate the rehabilitation movements required by the patient; In S12, the Openmv4 camera uses depth information to identify arm movements. After coordinate system transformation, the space vector method is used to calculate the movement changes of the robotic arm in different postures, and the robotic arm model is input into the virtual simulation V-REP environment to verify the similarity of the movement trajectory with the rehabilitation physician's movements; S13, optimizing the trajectory of the active rehabilitation training action as the expected movement route of the rehabilitation robot arm; S14, after the rehabilitation physician confirms that the trajectory meets the requirements, the patient uses the corresponding trajectory for active rehabilitation training.
5. The upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals according to claim 4 is characterized in that: In step S3, the method of using the command-type ankle joint electromyographic signal as a signal carrier includes the following steps: S31, using an electromyography instrument to collect the electromyographic signals of the patient's ankle to extract the ankle joint and identify six fixed commands; the six fixed commands include ankle dorsiflexion, plantar flexion, inversion, eversion, internal rotation, and external rotation; Among them, ankle dorsiflexion makes the end of the robotic arm move in the positive direction along the X-axis; plantar flexion makes the end of the robotic arm move in the negative direction along the X-axis; inversion makes the end of the robotic arm move in the positive direction along the Y-axis; eversion makes the end of the robotic arm move in the negative direction along the Y-axis; internal rotation corresponds to starting training; external rotation corresponds to pausing training.
6. The upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals according to claim 5, characterized in that: In step S31, the electromyographic signal of the patient's ankle is collected by an electromyograph and then filtered by an adaptive filter; Formula prediction is performed on the filtered signal, and the formula calculation is used to evaluate whether the signal meets the predetermined conditions; If the signal meets the conditions, the electromyographic signal is directly output; If the signal does not meet the preset conditions, the electromyographic signal data is updated and reprocessed until the signal meets the preset conditions.
7. The upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals according to claim 6, characterized in that: In step S31, the step of collecting the electromyographic signal of the patient's ankle by using an electromyograph comprises the following steps: S311, extracting several types of feature point data by collecting 32 channels of electromyographic signals; S312, normalizing the collected data; S313, filtering the normalized data; S314, after the filtered data is classified by a classifier, multi-feature fusion is performed; S315, performing pattern recognition on the data after multi-feature fusion; S316, outputting the recognition result by continuously optimizing the algorithm according to the characteristics of the different features identified; the optimization algorithm includes adjusting the model parameters and selecting the most appropriate model and feature combination.
8. An upper limb rehabilitation robot control system based on dynamic feedback of electromyographic signals, used to implement the upper limb rehabilitation robot control method based on dynamic feedback of electromyographic signals according to any one of claims 1 to 7, characterized in that: The upper limb rehabilitation robot control system based on dynamic feedback of electromyographic signals includes: The data acquisition and optimization module is used to define and match robot joints using Kinect sensors, collect force sensor data and transmit it to the V-REP platform for simulation and optimization, and collect lower limb muscle signals through electromyography to optimize the ankle joint classifier; The motion trajectory simulation module is used for human-machine interaction using a seven-degree-of-freedom robotic arm, using a fractional-order impedance control method to simulate the motion trajectory and convert the user's electromyographic signal into a control command for manipulating the rehabilitation robot; The robot startup module is used to use the command ankle joint electromyographic signal as a signal carrier; after the robot is started, the patient holds the gripper at the end of the robot arm and wears the electromyograph. The electromyograph and force sensor send data commands to the STM32 optimization center for controlling the robot arm; The feedback and guidance module is used to guide the force direction through instructions and force feedback. The force sensor at the end of the robotic arm transmits the contact force data to the central control unit. The central control unit uses the data for the fractional-order impedance control method, and combines the desired trajectory planned by the rehabilitation physician using the Kinect sensor to optimize the trajectory through the robotic arm model in the V-REP simulation environment.
Citation Information
Cited By
ICU-AW rehabilitation robot remote cooperation and adaptive control system based on 5G network
CN120183604A
Remote collaboration and adaptive control system of ICU-AW rehabilitation robot based on 5G network
CN120183604B
Lower limb motion intention recognition method and system based on electromyographic signals
CN120392125A
Auxiliary rehabilitation training method based on robot with body and related device
CN121215172A
