Control method, system and equipment for end instrument of surgical robot and medium
Through the method of adaptive Kalman filter and constraint factor adjustment, the jitter of the end instruments of the surgical robot is suppressed, the response speed and control accuracy are improved, and the problems of complex jitter suppression algorithms and low response speed in the existing technology are solved.
Patent Information
- Application Number
- CN202310142497.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
The end instruments of existing surgical robots are prone to jitter due to the natural trembling of the doctor's hand during movement, which affects the position control accuracy. Moreover, the existing algorithm scheme for suppressing jitter is complex and has low response speed.
The adaptive Kalman filter is used to suppress the jitter signal, and the adaptive estimation error covariance matrix is adjusted through the constraint factor to obtain the filtered command position, speed and acceleration, and output them to the joint servo controller to realize the surgical trolley robotic arm. and fast and smooth movement of the end instrument.
It effectively suppresses the jitter of terminal instruments, improves response speed and control accuracy, reduces the doctor's sense of delay during operation, and improves the response speed and surgical fluency of the target robotic arm.
Smart Images

Figure CN118526293A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical device control, and in particular to a control method, system, device and medium for a surgical robot end device. Background Art
[0002] Surgical robots have been clinically used for minimally invasive surgeries in the abdominal and thoracic cavities. Compared with traditional open surgical options, surgical robots have the advantages of smaller wounds, higher surgical precision, and faster postoperative recovery.
[0003] The surgical robot has strict control requirements on the mechanical arm and end instruments of the operating table, and has high control accuracy requirements on the position and posture of the end instruments. However, the end instruments of the surgical robot are prone to shaking during movement due to the natural trembling of the doctor's hands, which affects the position control accuracy, thereby affecting the accuracy of the doctor's surgical operation.
[0004] The existing forward channel low-pass filter is used to suppress the signal spectrum components of the end device jitter caused by the master hand input command, and a reverse filter is used in the feedback channel to compensate for the phase lag caused by the forward channel low-pass filter. Although this method can suppress the end device jitter, the algorithm of the solution is complex and cannot improve the response speed of the end device. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the defects of the prior art in suppressing the vibration of the end instrument of a surgical robot, that is, the algorithm scheme is complex and the response speed is low, and a control method, system, device and medium for the end instrument of a surgical robot are provided.
[0006] The present invention solves the above technical problems through the following technical solutions:
[0007] In a first aspect, the present invention provides a control method for a surgical robot end instrument, the control method comprising:
[0008] Obtain the command position signal of the target robot arm sent by the host computer;
[0009] An adaptive Kalman filter is established to suppress the jitter signal; the adaptive Kalman filter uses a constraint factor to adjust the adaptive estimation error covariance matrix;
[0010] After inputting the command position signal into the adaptive Kalman filter, obtaining the filtered command position, command speed and command acceleration of the target manipulator;
[0011] The command position, the command velocity, and the command acceleration are output to a joint servo controller.
[0012] Preferably, the adaptive estimation error covariance matrix includes a noise covariance matrix, and the constraint factor includes an acceleration constraint factor, and the acceleration constraint factor is used to constrain the amplitude of the noise covariance matrix to suppress the output of singular values.
[0013] Preferably, the acceleration constraint factor is related to the acceleration signal of the target manipulator during the operation, and the acceleration signal includes a positive acceleration limit value, a negative acceleration limit value and an acceleration mean value;
[0014] The acceleration constraint factor is calculated by the following steps:
[0015] The acceleration constraint factor is calculated based on the positive acceleration limit value, the negative acceleration limit value and the acceleration average value.
[0016] Preferably, the step of calculating the acceleration constraint factor based on the positive acceleration limit value, the negative acceleration limit value and the acceleration mean value comprises:
[0017] If the acceleration mean value is greater than zero, a first acceleration constraint factor is calculated according to the acceleration positive limit value and the acceleration mean value;
[0018] If the acceleration mean value is less than zero, a second acceleration constraint factor is calculated according to the acceleration negative limit value and the acceleration mean value.
[0019] Preferably, the adaptive estimation error covariance matrix further includes an update coefficient, and the constraint factor further includes a convergence factor, and the convergence factor is used to adjust the update coefficient.
[0020] In a second aspect, the present invention provides a control system for a surgical robot end instrument, the control system comprising:
[0021] A robot arm motion controller is used to obtain the command position signal of the target robot arm sent by the host computer;
[0022] An adaptive Kalman filter is used to filter the command position signal to obtain the command position, command speed and command acceleration of the target manipulator after filtering; the adaptive Kalman filter uses a constraint factor to adjust an adaptive estimation error covariance matrix;
[0023] A joint servo controller is used to control the movement of the target robot arm according to the command position, the command speed and the command acceleration.
[0024] Preferably, the adaptive estimation error covariance matrix includes a noise covariance matrix, and the constraint factor includes an acceleration constraint factor, and the acceleration constraint factor is used to constrain the amplitude of the noise covariance matrix to suppress the output of singular values.
[0025] Preferably, the acceleration constraint factor is related to the acceleration signal of the target manipulator during the operation, and the acceleration signal includes a positive acceleration limit value, a negative acceleration limit value and an acceleration mean value;
[0026] The acceleration constraint factor is calculated by the following modules:
[0027] A calculation module is used to calculate the acceleration constraint factor based on the positive acceleration limit value, the negative acceleration limit value and the acceleration average value.
[0028] Preferably, the calculation module is specifically used for:
[0029] If the acceleration mean value is greater than zero, a first acceleration constraint factor is calculated according to the acceleration positive limit value and the acceleration mean value;
[0030] If the acceleration mean value is less than zero, a second acceleration constraint factor is calculated according to the acceleration negative limit value and the acceleration mean value.
[0031] Preferably, the adaptive estimation error covariance matrix further includes an update coefficient, and the constraint factor further includes a convergence factor, and the convergence factor is used to adjust the update coefficient.
[0032] In a third aspect, the present invention provides an electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the control method of the surgical robot end instrument as described above.
[0033] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the control method of the surgical robot end instrument as described above.
[0034] The positive and progressive effects of the present invention are: obtaining the command position signal of the target manipulator sent by the host computer; establishing an adaptive Kalman filter to suppress the jitter signal; using the constraint factor in the adaptive Kalman filter to adjust the adaptive estimation error covariance matrix to achieve fast and smooth movement of the operating trolley manipulator and the end instrument; after inputting the command position signal into the adaptive Kalman filter, the command position, command speed and command acceleration of the filtered target manipulator are obtained; the command position, command speed and command acceleration are output to the joint servo controller. The present invention uses an adaptive Kalman filter to simply and effectively suppress the jitter phenomenon of the end instrument; using the constraint factor to adjust the adaptive estimation error covariance matrix can achieve fast response and smooth movement of the operating trolley manipulator and the end instrument; the filtered command position, command speed and command acceleration are input into the joint servo controller, effectively improving the accuracy and real-time performance of dynamic compensation; reducing the delay feeling during the doctor's operation and improving the response speed of the target manipulator. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a flow chart of a method for controlling a surgical robot end instrument according to Embodiment 1 of the present invention.
[0036] Figure 2 This is a schematic diagram of the application of the control method of the surgical robot end instrument of Example 1 of the present invention.
[0037] Figure 3 This is a flowchart of the implementation of the adaptive Kalman filter in the control method of the surgical robot end instrument of Example 1 of the present invention.
[0038] Figure 4 This is a module diagram of the control system of the surgical robot end instrument of Example 2 of the present invention.
[0039] Figure 5 This is a schematic diagram of the structure of an electronic device for implementing a method for controlling a surgical robot end instrument according to Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0040] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0041] Example 1
[0042] The control method of the surgical robot end instrument of this embodiment is as follows: Figure 1 As shown, the control method includes:
[0043] S1. Obtain the command position signal of the target robot arm sent by the host computer.
[0044] S2. Establish an adaptive Kalman filter to suppress the jitter signal; in the adaptive Kalman filter, a constraint factor is used to adjust the adaptive estimation error covariance matrix.
[0045] S3. After inputting the command position signal into the adaptive Kalman filter, the command position, command speed and command acceleration of the target manipulator after filtering are obtained.
[0046] S4. Output the command position, command speed and command acceleration to the joint servo controller.
[0047] With the development of robotic technology, surgical robots are increasingly used in clinical practice for minimally invasive surgeries in the abdominal cavity, thoracic cavity and other parts. Compared with traditional open surgical options, surgical robot-assisted surgery has the characteristics of small incisions, high surgical precision and quick postoperative recovery.
[0048] The surgical robot includes a doctor's console, an operating trolley and a visual trolley. The doctor's console includes a master hand joint, the operating trolley includes a target robotic arm, and the end instrument is installed at the end of the target robotic arm. During the operation of the surgical robot, the doctor controls the movement of the target robotic arm on the operating trolley by operating the master hand joint, thereby controlling the movement of the surgical instrument. A motion mapping relationship is established between the master hand of the doctor's console and the slave hand robotic arm of the operating trolley. When the master hand joint moves, the slave hand robotic arm joint also moves accordingly.
[0049] To ensure the safety of the operation, the surgical robot has strict requirements on the control performance of the end instruments of the operating table. However, the doctor's operation on the doctor's console will involuntarily shake, which will cause the position signal input to the end instrument controller to shake, affecting the control accuracy of the surgical instrument position, thereby affecting the accuracy of the doctor's surgical operation.
[0050] In the prior art, the doctor operates the master hand joint on the doctor's console, and the master hand joint servo controller collects the real-time position values of each joint of the master hand and sends the real-time position values to the motion controller of the doctor's console. The motion controller of the doctor's console calculates the motion command position of each joint of the target mechanical arm on the operating table according to the motion mapping relationship between the master hand joint and the slave hand mechanical arm of the operating table, and further eliminates the signal frequency components in the command position signal that cause the end instrument to shake through low-pass filtering and reverse filtering. The filtering method adopted in the above scheme has a relatively complex algorithm scheme, and mainly controls the mechanical arm joint by sending the command position to the target mechanical arm joint servo controller on the operating table. In this process, the command position is firstly controlled by position closed-loop control to obtain the speed command, and then the speed command is controlled by speed closed-loop control to move the end instrument to the command position. The adjustment cycle of this process is long, resulting in a slow response speed of the end instrument, which cannot fully meet the real-time requirements of the operation.
[0051] The control method of the surgical robot's end instrument provided in the present application adopts an adaptive Kalman filter for filtering. By filtering the command position signal, the signal spectrum components that cause the end instrument jitter are eliminated to a certain extent. New command speed and command acceleration are obtained by filtering. The control of the end instrument is achieved by combining the command position, command speed and command acceleration. Therefore, on the one hand, the end instrument jitter is effectively suppressed, and on the other hand, the response speed and control accuracy of the end instrument are effectively improved.
[0052] For the above step S1, Figure 2 As shown, after the motion controller of the doctor's console obtains the real-time position value of the master hand joint, it calculates the command position information of the movement of each joint of the operating table robot arm according to the mapping relationship between the master hand and the operating table robot slave arm. The operating table robot motion controller obtains the command position signal related to the movement state of each joint of the target robot arm on the operating table robot sent by the motion controller of the doctor's console. The command position signal is used to represent the position of each joint of the target robot arm on the operating table robot at the position of the master hand joint movement.
[0053] For the above step S2, in order to obtain a smooth command position signal for the doctor to control the movement of the target robotic arm on the operating table during the operation, an adaptive Kalman filter based on Markov theory is established in the robotic arm motion controller of the operating table. During the operation, since the doctor's main hand controls the movement of the target robotic arm, there is a strong maneuverability, and the conventional Kalman filter has the defect of untimely update of the filtering and prediction of the variable acceleration trajectory. In order to overcome the above problems, this application proposes to establish a system state transfer matrix and a system control matrix based on the Markov prediction model, and establish an adaptive estimation error covariance matrix based on the acceleration variance of the motion command to improve the accuracy of the adaptive Kalman filter.
[0054] Since the movement of the operating trolley's robotic arm and end instruments is highly maneuverable, doctors need to control the movement speed and acceleration of the operating trolley's robotic arm and end instruments within a certain range. In order to avoid the sudden acceleration caused by the movement of the operating trolley's robotic arm and end instruments, and make the movement of the operating trolley's robotic arm and end instruments smoother, this application introduces a constraint factor to adjust the noise amplitude and acceleration amplitude of the adaptive estimation error covariance matrix in the adaptive Kalman filter, and uses the convergence factor to adjust the update coefficient of the adaptive estimation error covariance matrix.
[0055] The specific implementation plan for establishing an adaptive Kalman filter is as follows:
[0056] The first step: According to the motion characteristics of each joint of the target manipulator arm set on the operating table in the surgical robot, a third-order linear state difference equation of the command position, command speed and command acceleration of each joint of the target manipulator arm is established to obtain the state estimation value:
[0057] X(k|k-1)=AX(k-1|k-1)+BU(k)
[0058] in, represents the system state, x represents the instruction position, Indicates the command speed, represents the command acceleration; A represents the state transfer matrix, B represents the system control matrix, and U represents the mean acceleration.
[0059] The state transfer matrix A and the system control matrix B are established by the motion characteristics of each joint based on the Markov prediction model.
[0060] The second step: establish an adaptive estimation error covariance matrix including command acceleration, noise covariance matrix Q, constraint factors, and state transfer matrix A.
[0061] Step 3: Calculate the Kalman gain matrix based on the adaptive estimation error covariance matrix.
[0062]
[0063] Wherein, P(k|k-1) represents the adaptive estimation error covariance matrix, K represents the Kalman gain matrix, H represents the measurement matrix, H=|100|, and R represents the covariance of the measurement noise.
[0064] Step 4: Update the state estimation observation according to the calculated Kalman gain matrix.
[0065] X(k|k)=X(k|k-1)+K(k)[Z(k)-HX(k|k-1)]
[0066] Wherein, Z(k) represents the command position signal of the joint movement received at the current moment.
[0067] The command position signal Z(k) and the updated prediction result X(k|k-1) are weighted and summed to obtain the current prediction result X(k|k) that is closer to the true value. The current prediction result X(k|k) is used as the output of the adaptive Kalman filter. In the next iterative operation, X(k|k) is assigned to X(k-1|k-1) for operation.
[0068] Step 5: Update the estimated error covariance matrix.
[0069] P(k|k)=[IK(k)H]P(k|k-1)
[0070] Step 6: Update system status.
[0071] U(k)=X(k|k)
[0072] It should be noted that the adaptive Kalman filter filters the input position command signal through the iteration of the above six steps to obtain a relatively smooth position command signal after filtering; at the same time, the multi-order output results are obtained by setting the state transfer matrix A. Specifically, the weight K(k) in the fourth step is obtained by the adaptive estimation error covariance matrix in the second step and the Kalman gain matrix in the third step, and finally the result X(k|k) after observation and filtering is obtained, for example, the filtered command position, command speed and command acceleration. After the calculation of the current cycle is completed, jump to the first step again to perform the calculation of the next cycle.
[0073] The adaptive Kalman filter algorithm used in this embodiment is simple, and the filtered command speed and command acceleration can be obtained while observing and filtering the command position. Compared with the conventional Kalman filter, the adaptive Kalman filter has the advantages of more accurate observation of the command speed and command acceleration of the maneuvering motion trajectory, smaller error, better real-time performance, better noise suppression effect, and less signal output delay.
[0074] For the above step S3, since the command position signal has a certain degree of mobility, an adaptive Kalman filter is established to observe and filter the command position, command speed and command acceleration of each joint respectively, so as to obtain the smoothed command position, command speed and command acceleration after filtering. Figure 2 As shown in the figure, after the command position signal passes through the adaptive Kalman filter, the smoothed command position, command speed and command acceleration can be obtained. The signal spectrum components that cause the end device to shake in the command position signal after the adaptive Kalman filter are eliminated, thereby greatly improving the control accuracy of the end device.
[0075] The adaptive Kalman filter changes the conventional Kalman filter's method of obtaining the command speed by using the traditional position difference, and then performing low-pass filtering on the command position and differential speed to obtain the filtered command position and command speed. By observing and filtering the command position, command speed and command acceleration of each joint, the command speed and command acceleration of the maneuvering motion trajectory can be observed more accurately, with smaller errors and better real-time performance.
[0076] For the above step S4, Figure 2As shown, the filtered and smoothed command position, command speed and command acceleration are output to the joint servo controller of the target robot arm. The joint servo controller performs position control according to the filtered and smoothed command position, command speed and command acceleration, which effectively improves the response speed and accuracy of the target robot arm, thereby improving the surgical smoothness and accuracy of the end instrument.
[0077] Specifically, after obtaining the filtered command position signal, the command position signal is sent to the joint servo controller, and the dynamic compensation result is calculated using the command speed and command acceleration for feedforward compensation, thereby improving the accuracy and real-time performance of the dynamic compensation and enhancing the response speed and position tracking accuracy of the target robotic arm on the operating table.
[0078] That is to say, on the basis of controlling the target robot arm movement based on the existing command position, the present application adopts an adaptive Kalman filter with a constraint factor to achieve the simultaneous solution of smooth command position, command speed and command acceleration, and constructs another closed-loop feedback of the target robot arm movement with command speed and command acceleration, which works together with the existing command position closed-loop control to improve the speed and accuracy of the target robot arm response.
[0079] In an optional implementation, the adaptive estimation error covariance matrix includes a noise covariance matrix, and the constraint factor includes an acceleration constraint factor, and the acceleration constraint factor is used to constrain the amplitude of the noise covariance matrix to suppress the output of singular values.
[0080] Specifically, since the movement of the robot arm and the end instrument of the surgical trolley has strong maneuverability, in order to ensure the smoothness of the movement trajectory of the robot arm and the end instrument, the movement speed and acceleration of the robot arm and the end instrument of the surgical trolley need to be kept within a certain range. Therefore, on the one hand, the maximum speed and acceleration of the robot arm and the end instrument during the operation are limited in this application, and the acceleration amplitude is constrained on the noise covariance matrix to suppress the output of singular values. On the other hand, considering the instruction noise level, the constraint factor also includes a noise constraint factor, which is used to constrain the noise amplitude of the noise covariance matrix, thereby further suppressing the output of singular values.
[0081] Furthermore, the constraint factor also includes a convergence factor, which is used to adjust the update coefficient of the adaptive estimation error covariance matrix. In order to obtain smooth motion trajectory instructions for the doctor to control the robot arm and end instrument of the surgical trolley during the operation, when updating the command position observation of the Kalman filter, it is necessary to perform a weighted summation of the Kalman filter predicted trajectory and the actual input position instruction, and the data accuracy between the predicted trajectory and the actual position instruction trajectory will vary depending on the specific environment.
[0082] In order to ensure the convergence of motion trajectory instructions, the present application adjusts the Kalman gain matrix coefficients by adjusting the coefficients of the estimated error covariance matrix, thereby realizing the weighted coefficients of the predicted trajectory instructions and the actual observed instruction positions in the state estimation observation update, thereby improving the smoothness and accuracy of the motion command trajectory of the target robot arm and end device.
[0083] In the present application, a specific embodiment of using constraint factors to adjust the adaptive estimation error covariance matrix includes using acceleration constraint factors to constrain the amplitude of the noise covariance matrix and using convergence factors to adjust the update coefficients of the adaptive estimation covariance matrix is as follows:
[0084] P(k|k-1)=λ*AP(k-1|k-1)A T +α*Q
[0085] Specifically, in the above formula, P represents the adaptive estimation error covariance matrix, Q represents the noise covariance matrix, and P (k-1|k-1) represents the update coefficient, λ represents the convergence factor, α represents the acceleration constraint factor, and A represents the state transfer matrix. When the command noise level is considered, α can represent the influence factor of the acceleration constraint factor and the noise constraint factor.
[0086] Since the adaptive estimation error covariance matrix is affected by the noise covariance matrix (Q), the acceleration constraint factor is used to constrain the acceleration amplitude and noise amplitude of the noise covariance matrix (Q), thereby suppressing singular values that exceed the command acceleration range of each joint of the target manipulator under normal movement.
[0087] The convergence factor adjusts the amplitude of the Kalman gain matrix K(k) by adjusting the update coefficient P(k-1|k-1) in the adaptive estimation error covariance matrix, and further adjusts the weight value of the measured input command Z(k) and the Kalman prediction value X(k|k-1) on the final prediction result in the fourth step. According to the weight value, the Kalman prediction trajectory and the actual input position command are weighted and summed to obtain the smooth motion trajectory command corresponding to the doctor controlling the target robot arm on the operating table to move during the operation.
[0088] In an optional implementation, the acceleration constraint factor is related to an acceleration signal of the target robotic arm during surgery, and the acceleration signal includes a positive acceleration limit value, a negative acceleration limit value, and an acceleration mean value.
[0089] The acceleration constraint factor is calculated by the following steps:
[0090] The acceleration constraint factor is calculated based on the positive acceleration limit value, the negative acceleration limit value and the acceleration average value.
[0091] Specifically, since the acceleration constraint factor is used to constrain and adjust the acceleration signals of each joint of the target manipulator during the operation, the acceleration constraint factor is calculated according to the preset algorithm. The acceleration mean is compared with the preset threshold, and the magnitude of the acceleration constraint factor is determined according to the comparison result. When the acceleration mean is greater than the preset threshold, the first acceleration constraint factor is obtained by calculating the difference information between the positive acceleration limit value and the acceleration mean; when the acceleration mean is less than the preset threshold, the second acceleration constraint factor is obtained by calculating the difference information between the negative acceleration limit value and the acceleration mean.
[0092] In an optional implementation, the step of calculating the acceleration constraint factor based on the positive acceleration limit value, the negative acceleration limit value and the acceleration mean value includes:
[0093] If the acceleration mean value is greater than zero, the first acceleration constraint factor is calculated according to the acceleration positive limit value and the acceleration mean value.
[0094] If the acceleration mean value is less than zero, the second acceleration constraint factor is calculated based on the acceleration negative limit value and the acceleration mean value.
[0095] Specifically, the acceleration constraint factor can be obtained by the following formula:
[0096]
[0097]
[0098] α represents the acceleration constraint factor, amax represents the positive acceleration limit of the joint movement, amin represents the negative acceleration limit of the joint movement, and U(K) represents the average acceleration. When U(K) is greater than zero, the first acceleration constraint factor is obtained, and when U(K) is less than zero, the second acceleration constraint factor is obtained.
[0099] In an alternative embodiment, Figure 3As shown, the implementation method of the adaptive Kalman filter is as follows: first, after the adaptive Kalman filter is initialized, the command acceleration U in the observation instruction is updated. Secondly, the acceleration variance ξ in the constraint factor of the adaptive estimation error covariance matrix is calculated, the adaptive estimation error covariance matrix P(k|k-1) is calculated, and the Kalman gain matrix K(k) is updated. According to the calculated Kalman gain matrix P(k-1|k-1), the state estimation observation is updated, that is, the filter value X(k|k) is updated, and the command position signal of each joint movement of the target manipulator is input, and then the filter value is updated. The command position signal includes the command position, command speed and command acceleration of the target manipulator. After the update is completed, jump to the step of updating the command acceleration U in the observation instruction again, and perform the calculation of the next cycle. After updating the adaptive covariance matrix P(k|k), the calculation of the current cycle is ended, and jump to the acceleration variance ξ in the update constraint factor again, and perform the calculation of the next cycle.
[0100] This embodiment provides a control method for the end instrument of a surgical robot, obtains a command position signal; establishes an adaptive Kalman filter; uses a constraint factor in the adaptive Kalman filter to adjust the adaptive estimation error covariance matrix; after inputting the command position signal into the adaptive Kalman filter, obtains the command position, command speed and command acceleration of the filtered target manipulator; outputs the command position, command speed or command acceleration to the joint servo controller. The present invention uses an adaptive Kalman filter to simply and effectively suppress the jitter phenomenon of the end instrument; uses constraint factors to adjust the adaptive estimation error covariance matrix to achieve rapid response and smooth movement of the surgical trolley manipulator and the end instrument; inputs the filtered command position, command speed and command acceleration into the joint servo controller, effectively improving the accuracy and real-time performance of dynamic compensation; reduces the sense of delay during the doctor's operation and improves the response speed of the target manipulator.
[0101] Example 2
[0102] The control system of the surgical robot end instrument of this embodiment is as follows: Figure 4 As shown, the control system includes: a robot arm motion controller 210, an adaptive Kalman filter 220 and a joint servo controller 230.
[0103] The robot arm motion controller 210 is used to obtain the command position signal of the target robot arm sent by the host computer.
[0104] The adaptive Kalman filter 220 is used to filter the command position signal to obtain the command position, command speed and command acceleration of the target manipulator after filtering; the adaptive Kalman filter uses the constraint factor to adjust the adaptive estimation error covariance matrix.
[0105] The joint servo controller 230 is used to control the movement of the target robot arm according to the command position, command speed and command acceleration.
[0106] With the development of robotic technology, surgical robots are increasingly used in clinical practice for minimally invasive surgeries in the abdominal cavity, thoracic cavity and other parts. Compared with traditional open surgical options, surgical robot-assisted surgery has the characteristics of small incisions, high surgical precision and quick postoperative recovery.
[0107] The surgical robot includes a doctor's console, an operating trolley and a visual trolley. The doctor's console includes a master hand joint, the operating trolley includes a target robotic arm, and the end instrument is installed at the end of the target robotic arm. During the operation of the surgical robot, the doctor controls the movement of the target robotic arm on the operating trolley by operating the master hand joint, thereby driving the movement of the surgical instruments. A motion mapping relationship is established between the master hand of the doctor's console and the slave hand robotic arm of the operating trolley. When the master hand joint moves, the slave hand robotic arm joint also moves accordingly.
[0108] To ensure the safety of the operation, the surgical robot has strict requirements on the control performance of the end instruments of the operating table. However, the doctor's operation on the doctor's console will involuntarily shake, which will cause the position signal input to the end instrument controller to shake, affecting the control accuracy of the surgical instrument position, thereby affecting the accuracy of the doctor's surgical operation.
[0109] In the prior art, the doctor operates the master hand joint on the doctor's console, and the master hand joint servo controller collects the real-time position values of each joint of the master hand and sends the real-time position values to the motion controller of the doctor's console. The motion controller of the doctor's console calculates the motion command position of each joint of the target robotic arm on the operating table according to the motion mapping relationship between the master hand joint and the slave hand robotic arm of the operating table, and further eliminates the signal frequency components in the command position signal that cause the end instrument to shake through low-pass filtering and reverse filtering. The filtering method adopted in the above scheme has a relatively complex algorithm scheme, and mainly controls the robotic arm joint by sending the command position to the target robotic arm joint servo controller on the operating table. In this process, the command position is firstly controlled by position closed-loop control to obtain the speed command, and then the speed command is controlled by speed closed-loop control to move the end instrument to the command position. The adjustment cycle of this process is long, resulting in a slow response speed of the end instrument, which cannot fully meet the real-time requirements of the operation.
[0110] The control method of the surgical robot end instrument provided in the present application adopts an adaptive Kalman filter for filtering, and the signal spectrum components that cause the end instrument to shake are eliminated to a certain extent by filtering the command position signal. New command speed and command acceleration are also obtained through filtering, and the control of the end instrument is realized by combining the command position, command speed and command acceleration, which effectively suppresses the end instrument from shaking on the one hand, and effectively improves the response speed and control accuracy of the end instrument on the other hand.
[0111] After the motion controller of the doctor's console obtains the real-time position value of the master hand joint, the robot arm motion controller 210 calculates the command position information of the movement of each joint of the robot arm of the operating trolley according to the mapping relationship between the master hand and the slave arm of the operating trolley. The motion controller of the operating trolley obtains the command position signal related to the movement state of each joint of the target robot arm on the operating trolley sent by the motion controller of the doctor's console, and the command position signal is used to represent the position to which each joint of the target robot arm on the operating trolley is preset at the position of the movement of the master hand joint.
[0112] In order to obtain a smooth command position signal for the doctor to control the movement of the target robotic arm on the operating table during the operation, an adaptive Kalman filter 220 based on Markov theory is established. During the operation, since the doctor's main hand controls the movement of the target robotic arm, there is a strong maneuverability, and the conventional Kalman filter has the defect of untimely update of the filtering and prediction of the variable acceleration trajectory. In order to overcome the above problems, the present application proposes to establish a system state transfer matrix and a system control matrix based on the Markov prediction model, and establish an adaptive estimation error covariance matrix based on the acceleration variance of the motion command to improve the accuracy of the adaptive Kalman filter.
[0113] Since the movement of the operating trolley's robotic arm and end instruments is highly maneuverable, doctors need to control the movement speed and acceleration of the operating trolley's robotic arm and end instruments within a certain range. In order to avoid the sudden acceleration caused by the movement of the operating trolley's robotic arm and end instruments, and make the movement of the operating trolley's robotic arm and end instruments smoother, this application introduces a constraint factor to adjust the noise amplitude and acceleration amplitude of the adaptive estimation error covariance matrix in the adaptive Kalman filter, and uses the convergence factor to adjust the update coefficient of the adaptive estimation error covariance matrix.
[0114] The specific implementation plan for establishing an adaptive Kalman filter is as follows:
[0115] The first step: According to the motion characteristics of each joint of the target manipulator arm set on the operating table in the surgical robot, a third-order linear state difference equation of the command position, command speed and command acceleration of each joint of the target manipulator arm is established to obtain the state estimation value:
[0116] X(k|k-1)=AX(k-1|k-1)+BU(k)
[0117] in, represents the system state, x represents the instruction position, Indicates the command speed, represents the command acceleration; A represents the state transfer matrix, B represents the system control matrix, and U represents the mean acceleration.
[0118] The state transfer matrix A and the system control matrix B are established by the motion characteristics of each joint based on the Markov prediction model.
[0119] The second step: establish an adaptive estimation error covariance matrix including command acceleration, noise covariance matrix Q, constraint factors, and state transfer matrix A.
[0120] Step 3: Calculate the Kalman gain matrix based on the adaptive estimation error covariance matrix.
[0121]
[0122] Wherein, P(k|k-1) represents the adaptive estimation error covariance matrix, K represents the Kalman gain matrix, H represents the measurement matrix, H=|100|, and R represents the covariance of the measurement noise.
[0123] Step 4: Update the state estimation observation according to the calculated Kalman gain matrix.
[0124] X(k|k)=X(k|k-1)+K(k)[Z(k)-HX(k|k-1)]
[0125] Wherein, Z represents the command position signal of the joint movement received at the current moment.
[0126] The command position signal Z(k) and the updated prediction result X(k|k-1) are weighted and summed to obtain the current prediction result X(k|k) that is closer to the true value. The current prediction result X(k|k) is used as the output of the adaptive Kalman filter. In the next iterative operation, X(k|k) is assigned to X(k-1|k-1) for operation.
[0127] Step 5: Update the estimated error covariance matrix.
[0128] P(k|k)=[IK(k)H]P(k|k-1)
[0129] Step 6: Update system status.
[0130] U(k)=X(k|k)
[0131] It should be noted that the adaptive Kalman filter filters the input position command signal through the iteration of the above six steps to obtain a relatively smooth position command signal after filtering; at the same time, the multi-order output results are obtained by setting the state transfer matrix A. Specifically, the weight K(k) in the fourth step is obtained by the adaptive estimation error covariance matrix in the second step and the Kalman gain matrix in the third step, and finally the result X(k|k) after observation and filtering is obtained, for example, the filtered command position, command speed and command acceleration. After the calculation of the current cycle is completed, jump to the first step again to perform the calculation of the next cycle.
[0132] In this embodiment, an adaptive Kalman filter algorithm is used, and the filtered command speed and command acceleration can be obtained while observing and filtering the command position. Compared with the conventional Kalman filter, the adaptive Kalman filter has the advantages of more accurate observation of the command speed and command acceleration of the maneuvering motion trajectory, smaller error, better real-time performance, better noise suppression effect, and less signal output delay.
[0133] Since the command position signal has a certain degree of mobility, the command position, command speed and command acceleration of each joint are observed and filtered by establishing an adaptive Kalman filter 220, so as to obtain the smoothed command position, command speed and command acceleration after filtering. After the command position signal is subjected to the adaptive Kalman filter, the smoothed command position, command speed and command acceleration can be obtained. The signal spectrum components that cause the end device to jitter in the command position signal after the adaptive Kalman filter are eliminated, thereby greatly improving the control accuracy of the end device.
[0134] The adaptive Kalman filter 220 changes the conventional Kalman filter's method of obtaining the command speed by using the traditional position difference, and then performing low-pass filtering on the command position and the differential speed to obtain the filtered command position and command speed. By observing and filtering the command position, command speed and command acceleration of each joint, the command speed and command acceleration of the motorized motion trajectory can be observed more accurately, with smaller errors and better real-time performance.
[0135] The filtered and smoothed command position, command speed and command acceleration are output to the joint servo controller 230 of the target robotic arm. The joint servo controller 230 performs position control based on the filtered and smoothed command position, command speed and command acceleration, effectively improving the response speed and accuracy of the target robotic arm, thereby improving the surgical smoothness and accuracy of the end instrument.
[0136] Specifically, after obtaining the filtered command position signal, the command position signal is sent to the joint servo controller, and the dynamic compensation result is calculated using the command speed and command acceleration for feedforward compensation, thereby improving the accuracy and real-time performance of the dynamic compensation and enhancing the response speed and position tracking accuracy of the target robotic arm on the operating table.
[0137] That is to say, on the basis of controlling the target robot arm movement based on the existing command position, the present application adopts an adaptive Kalman filter with a constraint factor to achieve the simultaneous solution of smooth command position, command speed and command acceleration, and constructs another closed-loop feedback of the target robot arm movement with command speed and command acceleration, which works together with the existing command position closed-loop control to improve the speed and accuracy of the target robot arm response.
[0138] In an optional implementation, the adaptive estimation error covariance matrix includes a noise covariance matrix, and the constraint factor includes an acceleration constraint factor, and the acceleration constraint factor is used to constrain the amplitude of the noise covariance matrix to suppress the output of singular values.
[0139] Specifically, since the movement of the robot arm and the end instrument of the surgical trolley has strong maneuverability, in order to ensure the smoothness of the movement trajectory of the robot arm and the end instrument, the movement speed and acceleration of the robot arm and the end instrument of the surgical trolley need to be kept within a certain range. Therefore, on the one hand, the maximum speed and acceleration of the robot arm and the end instrument during the operation are limited in this application, and the acceleration amplitude is constrained on the noise covariance matrix, thereby suppressing the output of singular values. On the other hand, considering the instruction noise level, the constraint factor also includes a noise constraint factor, which is used to constrain the noise amplitude of the noise covariance matrix, thereby further suppressing the output of singular values.
[0140] Furthermore, the constraint factor also includes a convergence factor, which is used to adjust the update coefficient of the adaptive estimation error covariance matrix. In order to obtain smooth motion trajectory instructions for the doctor to control the robot arm and the end instrument of the surgical trolley during the operation, when updating the command position observation of the Kalman filter, it is necessary to perform a weighted summation of the Kalman filter predicted trajectory and the actual input position instruction, and the data accuracy between the predicted trajectory and the actual position instruction trajectory will vary depending on the specific environment.
[0141] In order to ensure the convergence of motion trajectory instructions, the present application adjusts the Kalman gain matrix coefficients by adjusting the coefficients of the estimated error covariance matrix, thereby realizing the weighted coefficients of the predicted trajectory instructions and the actual observed instruction positions in the state estimation observation update, thereby ultimately improving the smoothness and accuracy of the motion command trajectory of the target robot arm and end device.
[0142] In the present application, a specific embodiment of using constraint factors to adjust the adaptive estimation error covariance matrix includes using acceleration constraint factors to constrain the amplitude of the noise covariance matrix and using convergence factors to adjust the update coefficients of the adaptive estimation covariance matrix is as follows:
[0143] P(k|k-1)=λ*AP(k-1|k-1)A T +α*Q
[0144] Specifically, in the above formula, P represents the adaptive estimation error covariance matrix, Q represents the noise covariance matrix, and P (k-1|k-1) represents the update coefficient, λ represents the convergence factor, α represents the acceleration constraint factor, and A represents the state transfer matrix. When considering the command noise level, α can be used to represent the influence factor of the acceleration constraint factor and the noise constraint factor.
[0145] Since the adaptive estimation error covariance matrix is affected by the noise covariance matrix (Q), the acceleration constraint factor is used to constrain the acceleration amplitude and noise amplitude of the noise covariance matrix (Q), thereby suppressing singular values that exceed the command acceleration range of each joint of the target manipulator under normal movement.
[0146] The convergence factor adjusts the amplitude of the Kalman gain matrix K(k) by adjusting the update coefficient P(k-1|k-1) in the adaptive estimation error covariance matrix, and further adjusts the weight value of the measured input command Z(k) and the Kalman prediction value X(k|k-1) on the final prediction result in the fourth step. According to the weight value, the Kalman prediction trajectory and the actual input position command are weighted and summed to obtain the smooth motion trajectory command corresponding to the movement of the target robot arm on the operating table controlled by the doctor during the operation.
[0147] In an optional implementation, the acceleration constraint factor is related to an acceleration signal of the target manipulator during surgery, and the acceleration signal includes a positive acceleration limit value, a negative acceleration limit value, and an acceleration mean value;
[0148] like Figure 4 As shown, the acceleration constraint factor is calculated by the following modules:
[0149] The calculation module 240 is used to calculate the acceleration constraint factor based on the acceleration positive limit value, the acceleration negative limit value and the acceleration mean value.
[0150] Specifically, since the acceleration constraint factor is used to constrain and adjust the acceleration signals of each joint of the target manipulator during the operation, the acceleration constraint factor is calculated according to the preset algorithm. The acceleration mean is compared with the preset threshold, and the magnitude of the acceleration constraint factor is determined according to the comparison result. When the acceleration mean is greater than the preset threshold, the calculation module 240 obtains the first acceleration constraint factor by calculating the difference information between the positive acceleration limit value and the acceleration mean; when the acceleration mean is less than the preset threshold, the calculation module 240 obtains the second acceleration constraint factor by calculating the difference information between the negative acceleration limit value and the acceleration mean.
[0151] In an optional implementation manner, the calculation module 240 is specifically used for:
[0152] If the acceleration mean value is greater than zero, the first acceleration constraint factor is calculated according to the acceleration positive limit value and the acceleration mean value.
[0153] If the acceleration mean value is less than zero, the second acceleration constraint factor is calculated based on the acceleration negative limit value and the acceleration mean value.
[0154] Specifically, the acceleration constraint factor can be obtained by the following formula:
[0155]
[0156]
[0157] α represents the acceleration constraint factor, amax represents the positive acceleration limit of the joint movement, amin represents the negative acceleration limit of the joint movement, and U(K) represents the average acceleration. When U(K) is greater than zero, the first acceleration constraint factor is obtained, and when U(K) is less than zero, the second acceleration constraint factor is obtained.
[0158] This embodiment provides a control system for the end instrument of a surgical robot, wherein the robot motion controller obtains the command position signal, and the adaptive Kalman filter filters the command position signal to obtain the command position, command speed and command acceleration of the filtered target robot arm; the joint servo controller controls the movement of the target robot arm according to the command position, command speed and command acceleration. The present invention uses an adaptive Kalman filter to simply and effectively suppress the jitter phenomenon of the end instrument; the constraint factor is used to adjust the adaptive estimation error covariance matrix to achieve rapid response and smooth movement of the surgical trolley robot arm and the end instrument; the filtered command position, command speed and command acceleration are input into the joint servo controller, which effectively improves the accuracy and real-time performance of dynamic compensation; reduces the doctor's sense of delay during operation and improves the response speed of the target robot arm.
[0159] Example 3
[0160] Figure 5 The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the control method of the surgical robot end instrument of Example 1 is implemented. Figure 5 The electronic device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0161] like Figure 5 As shown, the electronic device 90 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).
[0162] The bus 93 includes a data bus, an address bus, and a control bus.
[0163] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .
[0164] The memory 92 may also include a program / utility 925 having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.
[0165] The processor 91 executes various functional applications and data processing by running the computer program stored in the memory 92, such as the control method of the surgical robot end instrument of Example 1 of the present invention.
[0166] The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 95. Furthermore, the model generating device 90 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 96. Figure 5As shown, the network adapter 96 communicates with other modules of the model-generated device 90 via the bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0167] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0168] Example 4
[0169] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the method for controlling the end instrument of a surgical robot of Embodiment 1 are implemented.
[0170] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0171] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps in the control method of the surgical robot end instrument of Example 1.
[0172] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0173] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A control method for a surgical robot end instrument, It is characterized in that The control method comprises: Obtain the command position signal of the target robot arm sent by the host computer; An adaptive Kalman filter is established to suppress the jitter signal; the adaptive Kalman filter uses a constraint factor to adjust the adaptive estimation error covariance matrix; After inputting the command position signal into the adaptive Kalman filter, obtaining the filtered command position, command speed and command acceleration of the target manipulator; The command position, the command velocity, and the command acceleration are output to a joint servo controller.
2. The method for controlling the end instrument of a surgical robot according to claim 1, It is characterized in that The adaptive estimation error covariance matrix includes a noise covariance matrix, and the constraint factors include acceleration constraint factors, which are used to constrain the amplitude of the noise covariance matrix to suppress the output of singular values.
3. The method for controlling the end instrument of a surgical robot according to claim 2, It is characterized in that The acceleration constraint factor is related to the acceleration signal of the target manipulator during the operation, and the acceleration signal includes a positive acceleration limit value, a negative acceleration limit value and an acceleration mean value; The acceleration constraint factor is calculated by the following steps: The acceleration constraint factor is calculated based on the positive acceleration limit value, the negative acceleration limit value and the acceleration average value.
4. The method for controlling the end instrument of a surgical robot according to claim 3, It is characterized in that The step of calculating the acceleration constraint factor based on the acceleration positive limit value, the acceleration negative limit value and the acceleration mean value comprises: If the acceleration mean value is greater than zero, a first acceleration constraint factor is calculated according to the acceleration positive limit value and the acceleration mean value; If the acceleration mean value is less than zero, a second acceleration constraint factor is calculated according to the acceleration negative limit value and the acceleration mean value.
5. The method for controlling the end instrument of a surgical robot according to claim 2, It is characterized in that The adaptive estimation error covariance matrix also includes an update coefficient, and the constraint factor also includes a convergence factor, and the convergence factor is used to adjust the update coefficient.
6. A control system for a surgical robot end instrument, It is characterized in that The control system comprises: A robot arm motion controller is used to obtain the command position signal of the target robot arm sent by the host computer; An adaptive Kalman filter is used to filter the command position signal to obtain the command position, command speed and command acceleration of the target manipulator after filtering; the adaptive Kalman filter uses a constraint factor to adjust an adaptive estimation error covariance matrix; A joint servo controller is used to control the movement of the target robot arm according to the command position, the command speed and the command acceleration.
7. The control system of the surgical robot end instrument as claimed in claim 6, It is characterized in that The adaptive estimation error covariance matrix includes a noise covariance matrix, and the constraint factors include acceleration constraint factors, which are used to constrain the amplitude of the noise covariance matrix to suppress the output of singular values.
8. The control system of the surgical robot end instrument as claimed in claim 7, It is characterized in that The acceleration constraint factor is related to the acceleration signal of the target manipulator during the operation, and the acceleration signal includes a positive acceleration limit value, a negative acceleration limit value and an acceleration mean value; The acceleration constraint factor is calculated by the following modules: A calculation module is used to calculate the acceleration constraint factor based on the positive acceleration limit value, the negative acceleration limit value and the acceleration mean value.
9. The control system of the surgical robot end instrument as claimed in claim 8, It is characterized in that The calculation module is specifically used for: If the acceleration mean value is greater than zero, a first acceleration constraint factor is calculated according to the acceleration positive limit value and the acceleration mean value; If the acceleration mean value is less than zero, a second acceleration constraint factor is calculated according to the acceleration negative limit value and the acceleration mean value.
10. The control system of the surgical robot end instrument according to claim 7, It is characterized in that The adaptive estimation error covariance matrix also includes an update coefficient, and the constraint factor also includes a convergence factor, and the convergence factor is used to adjust the update coefficient.
11. An electronic device, It is characterized in that It comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the control method of the surgical robot end instrument as described in any one of claims 1 to 5.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the surgical robot end instrument according to any one of claims 1 to 5 is implemented.
Citation Information
Cited By
Motion control method and device of endoscopic surgery robot, electronic equipment and storage medium
CN119097425A
Self-adaptive anti-shake control method and system for mechanical arm of neurosurgical robot
CN120549619A
