An autonomous mirror movement method for laparoscopic surgical robots based on image experience

Through the autonomous operation method of laparoscopic surgery robot based on image experience, the problems of low efficiency of operation and long operation time in the existing technology are solved, and a more flexible and intuitive operation strategy is realized, which is suitable for different surgical scenarios and reduces the risk of This reduces the burden on the surgeon and improves surgical efficiency.

CN114748169BActive Publication Date: 2024-09-17HUAZHONG UNIV OF SCI & TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210338000.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-09-17
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

In existing laparoscopic surgeries, oral instructions are inefficient and the operation time is long, which results in a heavy psychological and physical burden on the surgeon and the assistant with the microscope. Furthermore, training excellent assistants with the microscope requires a long period of practical surgical experience, which increases the hospital's training costs. .

Method used

An autonomous laparoscopic surgical robot operation method based on image experience is adopted. The instruments are marked through the image method, three-dimensional coordinates are obtained, and an intuitive constraint model is constructed. Combined with RCM constraints, the laparoscopic pose is optimized and converted into the robot end pose to achieve More flexible and intuitive camera strategies.

Benefits of technology

It improves the efficiency and flexibility of the scope strategy, reduces the psychological burden of the surgeon, simplifies surgical video data analysis, is suitable for different surgical scenarios, enhances generalization capabilities, and provides a view that is more in line with the surgeon's intention and safer Laparoscopic exercise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114748169B
    Figure CN114748169B
Patent Text Reader

Abstract

The present invention belongs to the technical field of laparoscopic mirror movement, and discloses a method for autonomous mirror movement of a laparoscopic surgical robot based on image experience. It includes: marking instruments, calibrating the laparoscopic camera at multiple points, estimating the three-dimensional coordinates of the instrument markings according to the images collected by the laparoscope under the RCM constraint condition; collecting the instrument frequency diagram in the surgical scene, and obtaining the evaluation function of the instrument position under the laparoscopic view; constructing the posture of the laparoscopic camera coordinate system in the visual coordinate system, and constructing the intuitive constraint model that the laparoscopic posture needs to meet; taking the evaluation function as the target, constructing a laparoscopic posture optimization model according to the RCM constraint and the intuitive constraint model to obtain the optimal laparoscopic posture; taking the optimal laparoscopic posture as the desired laparoscopic posture, and converting the desired laparoscopic posture into the robot terminal posture. The mirror movement strategy of the present invention is more in line with the intention of the surgeon, the method is simple, and the generalization ability is strong.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of laparoscopic mirror movement, and more specifically, relates to an autonomous mirror movement method of a laparoscopic surgical robot based on image experience. Background Art

[0002] Minimally invasive laparotomy has the advantages of less trauma to patients and shorter recovery time, and has been widely popularized in surgery. Minimally invasive laparotomy requires making several small holes in the patient's abdomen. The laparoscope and surgical instruments are inserted through the small holes to the vicinity of the affected area. The doctor performs the operation outside the body to complete the operation. During the operation, the laparoscope is held by the assistant holding the scope, and the surgeon commands the assistant holding the scope to move the laparoscope by oral instructions to provide the surgeon with the desired view. However, in the actual operation, there are the following problems: 1. The efficiency of oral instructions is low, and it also increases the psychological burden of the surgeon; 2. The operation time is long, sometimes even up to 10 hours, which brings psychological and physiological burdens to the assistant holding the scope; 3. Cultivating excellent assistant holding the scope requires a long period of actual surgical experience, and the training cost of the hospital is high.

[0003] In order to solve the above problems, in the prior art, the product LaproArm EH uses a mechanical stabilizer to replace the laparoscope assistant, and at the same time ensures RCM (remote centre of motion) constraints in the mechanism, so that the surgeon can move the laparoscope easily and freely. In addition, the prior art mainly uses the following methods to move the laparoscope:

[0004] (1) The surgeon uses his / her foot to remotely control the movement of the laparoscope. The specific movements of the foot correspond to the specific movements of the laparoscope, thus replacing the assistant holding the laparoscope. The foot control of this method is still not intuitive enough, and the surgeon needs training to operate the laparoscope skillfully. In other words, this method requires human operation and cannot completely liberate the surgeon and the assistant holding the laparoscope.

[0005] (2) Use visual servoing to track the markers of the two surgical instruments, thereby ensuring that the laparoscopic view is in the center of the two instruments. This method uses a fixed camera movement strategy, which makes the system very limited in the surgical scenarios it can be used in. That is, the camera movement strategy is fixed and cannot handle complex surgical scenarios, and it has no generalization ability. Summary of the invention

[0006] In view of the above defects or improvement needs of the prior art, the present invention provides an autonomous mirror movement method for a laparoscopic surgical robot based on image experience, wherein the mirror movement strategy of the laparoscopic surgical robot is combined, the image method is used to mark the instrument and obtain the three-dimensional coordinates of the instrument, and at the same time, according to the instrument frequency diagram in the historical data, the evaluation function of the instrument position under the laparoscopic view is obtained, and the projection of the X-axis in the camera coordinate system on the Y-axis of the visual coordinate system is used as a constraint to construct an intuitive constraint model that the laparoscopic posture needs to meet, and at the same time, the RCM constraint and the intuitive constraint model are used for double constraints to obtain the optimal laparoscopic posture, and then the optimal laparoscopic posture is used as the desired laparoscopic posture and converted into the robot terminal posture, in this way, the laparoscopic mirror movement strategy is made to meet the surgical scene, and the mirror movement strategy is more in line with the intention of the surgeon. At the same time, the amount of surgical video data is sufficient, the method for obtaining the mirror movement strategy is simple, and the method is applied to different types of surgical scenes with strong generalization ability.

[0007] To achieve the above object, the present invention proposes an autonomous mirror movement method of a laparoscopic surgical robot based on image experience, comprising the following steps:

[0008] S100 marks the instruments, performs multi-point calibration on the laparoscopic camera, and determines the camera parameters and the homogeneous transformation matrix of the camera relative to the end of the robot;

[0009] S200 estimates the three-dimensional coordinates of instrument markers based on images acquired by laparoscopy under RCM constraints;

[0010] S300 collects and obtains a frequency graph of instruments in the surgical scene, and obtains an evaluation function of the instrument position under the laparoscopic view;

[0011] S400 constructs the posture of the laparoscope camera coordinate system in the visual coordinate system, and at the same time, takes the projection of the X-axis in the camera coordinate system on the Y-axis of the visual coordinate system as a constraint to construct an intuitive constraint model that the laparoscope posture needs to satisfy;

[0012] S500 takes the evaluation function as the target, builds a laparoscopic posture optimization model according to the RCM constraint and intuitive constraint model to obtain the optimal laparoscopic posture;

[0013] S600 uses the optimal laparoscopic posture as the desired laparoscopic posture, and converts the desired laparoscopic posture into the robot end posture.

[0014] As further preferred, in step S100, the camera parameters include the laparoscope camera internal reference coefficient and the laparoscope camera distortion coefficient;

[0015] Preferably, the internal parameter coefficients of the laparoscopic camera are as follows:

[0016]

[0017] In the formula, f x ,f y is the focal length of the camera, [u0,v0] is the pixel coordinate of the camera optical axis in the image coordinate system;

[0018] Preferably, the distortion coefficient of the laparoscope camera is as follows:

[0019] x u =x d +(x d -x c )(K1r 2 +K2r 4 )+P1(r 2 +2(x d -x c ) 2 )+2P2(x d -x c )(y d -y c )

[0020] y u =y d +(y d -y c )(K1r 2 +K2r 4 )+P2(r 2 +2(y d -y c ) 2 )+2P1(x d -x c )(y d -y c )

[0021] In the formula, [x u ,y u ] is the pixel after distortion correction, [x d ,y d ] is the pixel before distortion, [x c ,y c ] is the distortion center, K1, K2 are the radial distortion coefficients, and P1, P2 are the tangential distortion coefficients.

[0022] As a further preferred embodiment, in step S100, a hand-eye calibration transformation matrix is ​​used to construct a homogeneous transformation matrix of the camera relative to the robot end:

[0023] The calculation model of the homogeneous transformation matrix is ​​as follows:

[0024]

[0025] In the formula, is the homogeneous transformation matrix of the camera relative to the end of the robot, is the rotation matrix, is the displacement vector, SE(3) is the special Euclidean group.

[0026] As a further preferred embodiment, in step S200, the point where the instrument is located at the RCM point is recorded as point D, and three points A, B, and C are calibrated on the instrument, and the distances and spatial coordinates of the three points A, B, and C are known, and point A is located at the top of the instrument;

[0027] Get the projection points A', B', C', D' of A, B, C, D on the camera image plane respectively;

[0028] According to the principle of constant cross ratio in projection, we can get:

[0029]

[0030]

[0031] According to the camera projection equation, we can get:

[0032]

[0033] Thus, the three-dimensional coordinates of the instrument mark point A are solved A = [X A ,Y A ,Z A ] T ;

[0034] In the formula, [u A ,v A ] T is the pixel coordinate of point A; K is the projection matrix, Z A is the depth of the instrument marker point A in the laparoscopic coordinate system, [X D ,Y D ,Z D ] T is the three-dimensional coordinate of point D.

[0035] As further preferred, step S300 specifically includes the following steps:

[0036] S31 performs semantic segmentation on the surgical video and extracts the mask of the instrument tip;

[0037] S32 superimposes the extracted mask images to obtain a frequency distribution diagram of the device on the image;

[0038] S33 uses Gaussian distribution to fit and normalize the frequency distribution diagram of the device to obtain parameters of the Gaussian distribution;

[0039] S34 takes the three-dimensional position of the instrument as input and constructs an evaluation function for judging the quality of the moving mirror field according to the weights of different instruments;

[0040] Preferably, the evaluation function is:

[0041] J(x)=-W S ·G(p i )

[0042] In the formula, J(x) is the evaluation function, W S is the weight of the device. Generally speaking, it is the weight of the left and right devices. G is the statistically obtained Gaussian distribution. p i is the pixel position of the surgical instrument tip in the laparoscopic image.

[0043] As a further preferred embodiment, in step S400, the intuitive constraint model is:

[0044]

[0045] In the formula, θ is the desired quantity, which represents the angle of image rotation; is the transformation moment from the visual coordinate system to the laparoscopic camera coordinate system; X = [1,0,0] T is the direction of X in the operating plane; α and β are constants that sum to 1; Q x =[1,0,0] T To extract the X-direction matrix in the rotation matrix, Q z =[0,0,1] T To extract the Y direction matrix in the rotation matrix; R z (θ) indicates that the coordinate system is rotated by θ around the Z axis.

[0046] As a further preferred embodiment, in step S500, the laparoscope posture optimization model is:

[0047] min J(x)=-W s ·G

[0048] stf(x)=0

[0049] h(S i ,p i ,x)=0

[0050]

[0051] In the formula, J(x) is the evaluation function, W S is the weight of the instrument, f(x) is the intuitive criterion model; h(S i ,s i , x) is the conversion relationship between the three-dimensional coordinates of the instrument tip and the image pixel coordinates, Si is the three-dimensional coordinate of the instrument tip in the laparoscopic coordinate system, p i is the pixel position of the surgical instrument tip in the laparoscopic image; D is the accessible area of ​​the laparoscope under the RCM constraint; x is the degree of freedom variable of the laparoscope.

[0052] As a further preferred embodiment, in step S600:

[0053] The following control law is used to make the RCM position error converge:

[0054]

[0055] in,[ r v x , r v y ] T is the speed of the instrument in the X and Y directions of the RCM coordinate system; λ is the gain parameter; is the distance vector from the RCM point to the laparoscope axis.

[0056] The RCM position error is controlled by the following formula:

[0057]

[0058]

[0059] in,[ c v x , c v y ] T , [ c ω x , c ω y ] T are the velocity and angular velocity of the laparoscope, L is the distance from the front end of the laparoscope to the RCM point, [ r v x , r v y ] T It is the speed of the instrument in the X and Y directions of the RCM coordinate system.

[0060] As a further preferred embodiment, step S600 further includes the following steps:

[0061] Under the constraints of the intuitive constraint model, the desired laparoscope end position and the current laparoscope end position are combined into the target position by controlling the RCM position error, and the target position is converted into the robot target position:

[0062]

[0063]

[0064] in, It is the target position of laparoscopy; Real-time position of the laparoscope; is the target pose of the robot; is the transformation matrix from the robot base coordinate system to the RCM coordinate system; is the transformation matrix from the laparoscope coordinate system to the robot end coordinate system, It is the transformation matrix from the real-time pose of the laparoscope to the target pose.

[0065] As a further preferred embodiment, in step S600, the following control law is used to control the movement of the robot:

[0066] x i+1 =x i +Δx

[0067]

[0068] In the formula, x i ,x i+1 is the robot posture at the i,i+1th moment, x d is the desired robot posture, λ is the gain parameter, and Δx0 is the velocity threshold.

[0069] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0070] 1. The present invention combines the laparoscopic surgical robot's mirror movement strategy, uses the image method to mark the instrument and obtain the instrument's three-dimensional coordinates, and at the same time, according to the instrument frequency diagram in the historical data, obtains the evaluation function of the instrument's position under the laparoscopic view, and uses the projection of the X-axis in the camera coordinate system on the Y-axis of the visual coordinate system as a constraint to construct an intuitive constraint model that the laparoscopic posture needs to meet. At the same time, dual constraints are performed through RCM constraints and intuitive constraint models to obtain the optimal laparoscopic posture, and then the optimal laparoscopic posture is used as the desired laparoscopic posture and converted into the robot terminal posture. In this way, the laparoscopic mirror movement strategy is consistent with the surgical scene, making the mirror movement strategy more consistent with the surgeon's intention. At the same time, the amount of surgical video data is sufficient, the method for obtaining the mirror movement strategy is simple, and the method is applied to different types of surgical scenes with strong generalization ability.

[0071] 2. The present invention extracts the camera movement strategy that is suitable for the surgical scene by analyzing the surgical video, so that the camera movement strategy is more in line with the surgeon's intention. At the same time, the amount of surgical video data is sufficient, and the method for obtaining the camera movement strategy is simple. This method is applied to different types of surgical scenes and has strong generalization ability.

[0072] 3. The present invention separates the instrument markers by processing the laparoscopic images, and uses the invariant property of the cross ratio in the projection to estimate the three-dimensional coordinates of the image marker points. Combined with the pre-acquired evaluation function, the quality of the mirror movement at each moment can be evaluated.

[0073] 4. The present invention proposes an intuitive criterion so that the view provided by the laparoscope is more in line with the surgeon's intuition.

[0074] 5. The present invention takes various constraints and target postures into consideration in a unified manner, thereby ensuring that the robot movement always satisfies the constraints, thereby providing safe and stable laparoscopic movement and ensuring the safety of the patient. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 This is a flow chart of an autonomous mirror movement method of a laparoscopic surgical robot based on image experience according to a preferred embodiment of the present invention;

[0076] Figure 2 It is a schematic diagram of the principle of estimating the three-dimensional coordinates of the instrument marking involved in the preferred embodiment of the present invention;

[0077] Figure 3 is a flow chart of the camera movement strategy involved in the preferred embodiment of the present invention;

[0078] Figure 4 The following is a flow chart of robot motion control involved in a preferred embodiment of the present invention;

[0079] Figure 5 This is a robot control block diagram involved in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0080] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0081] like Figure 1 As shown, the present invention provides a laparoscopic surgical robot autonomous mirror movement method based on image experience, by processing the laparoscopic image, separating the instrument markers, and estimating the three-dimensional coordinates of the image marker points by projection, and at the same time combining the frequency distribution diagram of the instruments in the historical laparoscopic surgery to construct an evaluation function of the laparoscopic field of view, and according to the RCM constraint, extract the mirror movement strategy that meets the surgical scene, so that the mirror movement strategy is more in line with the intention of the surgeon. Specifically, the method of the present invention includes the following steps:

[0082] S100 marks the instruments, performs multi-point calibration on the laparoscopic camera, and determines the camera parameters and the homogeneous transformation matrix of the camera relative to the end of the robot.

[0083] That is, before the system works, the instrument needs to be marked. In one embodiment of the present invention, a recognizable mark is pasted on the instrument. Of course, in other embodiments of the present invention, other calibration forms can be used, which can be recognized by a camera, and at the same time, the calibration position is fixed, so that the position information of the instrument can be accurately calculated.

[0084] By marking the instruments, operations such as machine collection information measurement, laparoscopic camera internal parameter calibration, and hand-eye conversion matrix calibration can be achieved.

[0085] In the present invention, the internal parameter coefficient of the laparoscope camera is:

[0086]

[0087] Among them, f x ,f y is the focal length of the camera, and [u0,v0] is the pixel coordinate of the camera optical axis in the image coordinate system.

[0088] Laparoscopic camera distortion coefficient:

[0089]

[0090] Among them, [x u ,y u ] is the pixel after distortion correction, [x d ,y d ] is the pixel before distortion, [x c ,y c ] is the distortion center, K1, K2 are the radial distortion coefficients, and P1, P2 are the tangential distortion coefficients.

[0091] Hand-eye calibration transformation matrix, Represents the homogeneous transformation matrix of the camera relative to the end of the robot:

[0092]

[0093] in, c tT is the homogeneous transformation matrix of the camera relative to the robot end, is the rotation matrix, is the displacement vector, SE(3) is the special Euclidean group.

[0094] S200 estimates the 3D coordinates of instrument markers based on images acquired by laparoscope under RCM constraints.

[0095] In the present invention, at least three points are marked on the instrument. In order to more accurately identify the end position of the instrument, the end of the instrument is marked, that is, the point where the instrument is located at the RCM point is marked as point D, and three points A, B, and C are marked on the instrument. The distances and spatial coordinates of the three points A, B, and C are known, and point A is located at the top of the instrument. Figure 2 As shown, A, B, C are instrument markers, and their distances are known, D is the RCM point, and its coordinates in three-dimensional space are known. A', B', C', D' are the projection points of A, B, C, D on the camera image plane.

[0096] According to the principle of constant cross ratio in projection, we can get:

[0097]

[0098]

[0099] According to the camera projection equation, we can get:

[0100]

[0101] Thus, the three-dimensional coordinates of the instrument mark point A are solved A = [X A ,Y A ,Z A ] T ;

[0102] In the formula, [u A ,v A ] T is the pixel coordinate of point A; K is the projection matrix, Z A is the depth of the instrument marker point A in the laparoscopic coordinate system, [X D ,Y D ,Z D ] T is the three-dimensional coordinate of point D.

[0103] In this step, other methods for tracking the three-dimensional coordinates of point A are also applicable to the present invention, such as deep neural networks of self-supervised learning, methods based on contours and optical flow features, etc.

[0104] S300 collects the instrument frequency map in the surgical scene and obtains the evaluation function of the instrument position under the laparoscopic view. The surgical video is semantically segmented, the mask of the instrument tip is extracted, and the extracted mask image is superimposed to obtain the frequency distribution map of the instrument on the image. The frequency distribution map of the instrument is fitted and normalized using Gaussian distribution to obtain the parameters of Gaussian distribution. The three-dimensional position of the instrument is used as input, and according to the weights of different instruments, an evaluation function for judging the quality of the moving mirror field of view is constructed.

[0105] Specifically, Figure 3 As shown in the figure, video data of a certain type of surgery is collected, and a general semantic segmentation solution is used to obtain the mask of the tip of the instrument in the image. The surgical video within a period of time is split into image sets according to a certain number of frames, and the instrument masks in the image sets are counted to obtain the frequency distribution diagram of the instrument on the image, which represents the mirror movement strategy of the assistant. Use Gaussian distribution for fitting, smooth the frequency distribution diagram, and then normalize it to obtain the parameters of the Gaussian distribution. Finally, it is combined into an evaluation function that uses the instrument position as input to judge the quality of the mirror movement field:

[0106] J(x)=-W S ·G(p i ) (6)

[0107] In the formula, J(x) is the evaluation function, W S is the weight of the device. Generally speaking, it is the weight of the left and right devices. G is the statistically obtained Gaussian distribution. p i is the pixel position of the surgical instrument tip in the laparoscopic image.

[0108] Of course, in an embodiment of the present invention, the frequency distribution diagram of the instrument on the image can also be obtained through other algorithms, such as extracting the contour of the instrument image or based on the energy value distribution of the instrument pixels in the image, etc. The purpose is to obtain the frequency distribution diagram of the instrument on the image in historical laparoscopic surgery, so as to provide a mirror movement strategy for the mirror assistant.

[0109] S400 constructs the posture of the laparoscope camera coordinate system in the visual coordinate system. At the same time, using the projection of the X-axis in the camera coordinate system on the Y-axis of the visual coordinate system as a constraint, an intuitive constraint model that the laparoscope posture needs to satisfy is constructed.

[0110] In this step, due to the existence of RCM constraints, the laparoscope posture cannot completely match the surgeon's visual coordinate system. The present invention provides an intuitive criterion, so that the laparoscope can make the surgeon's operation more intuitive under the RCM constraints.

[0111] The intuitive principle is expressed as follows:

[0112]

[0113] Among them, θ is the desired quantity, which represents the angle of image rotation; is the transformation moment from the visual coordinate system to the laparoscopic camera coordinate system; X = [1,0,0] T is the direction of X in the operating plane; α and β are constants that satisfy the sum of 1, that is, α+β=1. When the laparoscope is in different positions, the values ​​of α and β will be different; Q x =[1,0,0] T To extract the X-direction matrix in the rotation matrix, Q z=[0,0,1] T To extract the Y direction matrix in the rotation matrix; R z (θ) indicates that the coordinate system is rotated by θ around the Z axis.

[0114] S500 takes the evaluation function as the target and builds a laparoscopic posture optimization model according to the RCM constraints and intuitive constraint model to obtain the optimal laparoscopic posture.

[0115] In this step, based on the intuitive criteria proposed in S400 above, the evaluation function for judging the quality of camera movement in S300 is taken as the optimization target, and the RCM constraints in minimally invasive abdominal surgery are considered, the following optimization problem can be obtained:

[0116]

[0117] Among them, J(x) is the evaluation function, W S is the weight of the instrument, f(x) is the intuitive criterion model; h(S i ,s i , x) is the conversion relationship between the three-dimensional coordinates of the instrument tip and the image pixel coordinates, S i is the three-dimensional coordinate of the instrument tip in the laparoscopic coordinate system, p i is the pixel position of the surgical instrument tip in the laparoscopic image; D is the accessible area of ​​the laparoscope that satisfies the RCM constraint; x is the degree of freedom variable of the laparoscope.

[0118] Using the heuristic algorithm, the solution to the optimization problem can be obtained, and the laparoscope posture reflected by the solution is the posture that conforms to the mirror movement strategy.

[0119] S600 uses the optimal laparoscope posture as the desired laparoscope posture, and converts the desired laparoscope posture into the robot end posture. Figure 1 and Figure 4 As shown in Figure 2, after the optimization solution is completed, a control strategy is needed to make the laparoscope reach the desired posture smoothly.

[0120] The desired laparoscopic posture is obtained by solving the problem. By obtaining the hand-eye conversion matrix in S100, the desired robot end posture can be obtained. In order to ensure that the robot movement does not cause harm to the patient, the present invention uses the following control law to converge the RCM position error:

[0121]

[0122] in,[ r v x , r v y ] T is the speed of the instrument in the X and Y directions of the RCM coordinate system; λ is the gain parameter; is the distance vector from the RCM point to the laparoscope axis.

[0123] In addition, in this step, the RCM position error is controlled by the following formula:

[0124]

[0125] in,[ c v x , c v y ] T , [ c ω x , c ω y ] T are the velocity and angular velocity of the laparoscope, L is the distance from the front end of the laparoscope to the RCM point, [ r v x , r v y ] T It is the speed of the instrument in the X and Y directions of the RCM coordinate system.

[0126] Intuitive criteria constraints were used to ensure that the camera movement process was consistent with the surgeon's intuition.

[0127] In a preferred embodiment of the present invention, under the constraints of the intuitive constraint model, the desired laparoscope end position and the current laparoscope end position are combined into a target position by controlling the RCM position error, and the target position is converted into the robot target position:

[0128]

[0129] in, It is the target position of laparoscopy; Real-time position of the laparoscope; is the target pose of the robot; is the transformation matrix from the robot base coordinate system to the RCM coordinate system; is the transformation matrix from the laparoscope coordinate system to the robot end coordinate system, It is the transformation matrix from the real-time pose of the laparoscope to the target pose.

[0130] like Figure 5 As shown, in order to avoid too frequent camera movement to cause discomfort to the surgeon and control the camera movement speed, the present invention uses the following control law to control the robot movement:

[0131] x i+1 =x i +Δx

[0132]

[0133] Among them, x i ,x i+1 is the robot posture at the i,i+1th moment, x d is the desired robot posture, λ is the gain parameter, and Δx0 is the set speed threshold to prevent the laparoscope from moving too fast.

[0134] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A laparoscopic surgical robot autonomous mirror movement method based on image experience, characterized in that: The following steps are involved: S100 marks the instrument, performs multi-point calibration on the laparoscopic camera, determines the camera parameters and the homogeneous transformation matrix of the camera relative to the end of the robot, wherein the camera parameters include the laparoscopic camera internal reference coefficient and the laparoscopic camera distortion coefficient; S200 estimates the three-dimensional coordinates of instrument markers based on images acquired by laparoscopy under RCM constraints; S300 collects and obtains the instrument frequency diagram in the surgical scene, and obtains the evaluation function of the instrument position under the laparoscopic view; step S300 specifically includes the following steps: S31 performs semantic segmentation on the surgical video and extracts the mask of the instrument tip; S32 superimposes the extracted mask images to obtain a frequency distribution diagram of the device on the image; S33 uses Gaussian distribution to fit and normalize the frequency distribution diagram of the device to obtain parameters of the Gaussian distribution; S34 takes the three-dimensional position of the instrument as input and constructs an evaluation function to judge the quality of the mirror field according to the weights of different instruments: J(x)=-W S ·G(p i ) In the formula, J(x) is the evaluation function, W S is the weight of the device, G is the statistically obtained Gaussian distribution, p i is the pixel position of the surgical instrument tip in the laparoscopic image; S400 constructs the posture of the laparoscope camera coordinate system in the visual coordinate system. At the same time, the projection of the X-axis in the camera coordinate system on the Y-axis of the visual coordinate system is used as a constraint to construct an intuitive constraint model that the laparoscope posture needs to satisfy. The intuitive constraint model is: Where θ is the angle of image rotation; is the transformation moment from the visual coordinate system to the laparoscopic camera coordinate system; X = [1,0,0] T is the direction of X in the operating plane; α and β are constants that sum to 1; Q x =[1,0,0] T To extract the X-direction matrix in the rotation matrix, Q z =[0,0,1] T To extract the Y direction matrix in the rotation matrix; R z (θ) indicates that the coordinate system rotates θ around the Z axis; S500 takes the evaluation function as the target, and constructs a laparoscopic posture optimization model according to the RCM constraint and the intuitive constraint model to obtain the optimal laparoscopic posture; the laparoscopic posture optimization model is: min J(x)=-W s ·G(p i ) stf(x)=0 h(S i ,p i ,x)=0 In the formula, J(x) is the evaluation function, W S is the weight of the instrument, f(x) is the intuitive criterion model; h(S i ,s i , x) is the conversion relationship between the three-dimensional coordinates of the instrument tip and the image pixel coordinates, S i is the three-dimensional coordinate of the instrument tip in the laparoscopic coordinate system, p i is the pixel position of the surgical instrument tip in the laparoscopic image; D is the accessible area of ​​the laparoscope under the RCM constraint; x is the degree of freedom variable of the laparoscope; S600 uses the optimal laparoscopic posture as the desired laparoscopic posture, and converts the desired laparoscopic posture into the robot end posture.

2. The method for autonomous mirror movement of a laparoscopic surgical robot based on image experience according to claim 1, characterized in that: In step S100, the internal parameter coefficients of the laparoscope camera are as follows: In the formula, f x ,f y is the focal length of the camera, and [u0,v0] is the pixel coordinate of the camera optical axis in the image coordinate system.

3. The method for autonomous mirror movement of a laparoscopic surgical robot based on image experience according to claim 2, characterized in that: In step S100, the distortion coefficient of the laparoscope camera is as follows: x u =x d +(x d -x c )(K1r 2 +K2r 4 )+P1(r 2 +2(x d -x c ) 2 )+2P2(x d -x c )(y d -y c ) and u =and d +(and d -and c )(K1r 2 +K2r 4 )+P2(r 2 +2(and d -and c ) 2 )+2P1(x d -x c )(and d -and c ) In the formula, [x u ,y u ] is the pixel after distortion correction, [x d ,y d ] is the pixel before distortion, [x c ,y c ] is the distortion center, K1, K2 are the radial distortion coefficients, and P1, P2 are the tangential distortion coefficients.

4. The method for autonomous mirror movement of a laparoscopic surgical robot based on image experience according to claim 1, characterized in that: In step S100, the hand-eye calibration conversion matrix is ​​used to construct a homogeneous transformation matrix of the camera relative to the robot end. The calculation model of the homogeneous transformation matrix is ​​as follows: In the formula, is the homogeneous transformation matrix of the camera relative to the end of the robot, is the rotation matrix, is the displacement vector, SE(3) is the special Euclidean group.

5. The method for autonomous mirror movement of a laparoscopic surgical robot based on image experience according to claim 1, characterized in that: In step S200, the point where the instrument is located at the RCM point is recorded as point D, and three points A, B, and C are calibrated on the instrument, and the distances and spatial coordinates of the three points A, B, and C are known, and point A is located at the top of the instrument; Get the projection points A', B', C', D' of A, B, C, D on the camera image plane respectively; According to the principle of constant cross ratio in projection, we can get: According to the camera projection equation, we can get: Thus, the three-dimensional coordinates of the instrument mark point A are solved A = [X A ,Y A ,Z A ] T ; In the formula, [u A ,v A ] T is the pixel coordinate of point A; K is the projection matrix, Z A Mark the depth of point A for the instrument in the laparoscopic coordinate system.

6. The method for autonomous mirror movement of a laparoscopic surgical robot based on image experience according to claim 1, characterized in that: In step S600: The following control law is used to make the RCM position error converge: in,[ r v x , r v y ] T is the speed of the instrument in the X and Y directions of the RCM coordinate system; λ is the gain parameter; is the distance vector from the RCM point to the laparoscope axis.

7. The method for autonomous mirror movement of a laparoscopic surgical robot based on image experience according to claim 6, characterized in that: In step S600, the RCM position error is controlled by the following formula: in,[ c v x , c v y ] T , [ c ω x , c ω y ] T are the velocity and angular velocity of the laparoscope, L is the distance from the front end of the laparoscope to the RCM point, [ r v x , r v y ] T It is the speed of the instrument in the X and Y directions of the RCM coordinate system.

8. The method for autonomous mirror movement of a laparoscopic surgical robot based on image experience according to claim 7, characterized in that: Step S600 also includes the following steps: Under the constraints of the intuitive constraint model, the desired laparoscope end position and the current laparoscope end position are combined into the target position by controlling the RCM position error, and the target position is converted into the robot target position: in, It is the target position of laparoscopy; Real-time position of the laparoscope; is the target pose of the robot; is the transformation matrix from the robot base coordinate system to the RCM coordinate system; is the transformation matrix from the laparoscope coordinate system to the robot end coordinate system, It is the transformation matrix from the real-time pose of the laparoscope to the target pose.

9. The method for autonomous mirror movement of a laparoscopic surgical robot based on image experience according to any one of claims 1 to 8, characterized in that: In step S600, the following control law is used to control the robot motion: x i+1 =x i +Δx In the formula, x i ,x i+1 is the robot posture at the i,i+1th moment, x d is the desired robot posture, λ is the gain parameter, and Δx0 is the velocity threshold.