Intelligent particle swarm optimization path planning method for surgical puncture needle
Optimizing the puncture path through intelligent particle swarm algorithm solves the problems of adaptability and low accuracy of puncture path planning in complex environments, improves puncture efficiency and safety, and reduces risks to patients and doctors.
Patent Information
- Application Number
- CN202410629008.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technology has poor adaptability and low accuracy in path planning for puncture surgery in complex environments, resulting in increased risks and pain for patients during the puncture process and prolonged recovery time.
A path planning algorithm based on intelligent particle swarm is designed. By establishing the kinematic model and multi-objective function of the puncture needle, combined with the adaptive particle swarm optimization algorithm, the puncture path is optimized to reduce errors and collisions, and improve puncture efficiency and accuracy.
It significantly improves the adaptability and accuracy of complex environments during puncture, reduces needle tip deflection and collision with obstacles, and reduces the risk of radiation exposure to doctors and the patient's postoperative recovery time.
Smart Images

Figure CN118689098A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of robot motion planning, and in particular to a path planning method of intelligent particle swarm optimization for surgical puncture needles. Background Art
[0002] Percutaneous interventional diagnosis and treatment is an important part of minimally invasive surgery in modern clinical medicine, and is also an important means of pathological examination, local anesthesia, and local drug administration. In the actual clinical puncture operation, doctors often need to use CT or ultrasound to observe the position of the puncture needle, which directly exposes the doctor to the radiation environment and causes certain damage to the doctor's health. In addition, if the needle tip encounters an obstacle during the puncture process, the doctor can only change the position of the needle tip by adjusting the needle tail. This type of surgery increases the risk of additional harm to the patient, increases the patient's pain during the operation, and prolongs the patient's postoperative recovery time.
[0003] The difficulty of puncture surgery lies in accurately reaching the lesion while effectively avoiding obstacles such as nerves, arteries, blood vessels, bones, etc. in the path. In recent years, various control and planning methods have been proposed for the development of medical robots, but these studies have failed to provide effective control and path planning methods for complex puncture problems. Therefore, it is particularly important to design an automatic path planning method for robot puncture operations.
[0004] Although the existing path planning methods can handle a few path planning problems, they still have problems such as poor adaptability to complex environments and low planning accuracy. In view of the above problems, it is necessary to study the application of intelligent motion planning algorithms in puncture surgery to improve the efficiency and accuracy of puncture in complex environments. Summary of the invention
[0005] In view of the above problems existing in the prior art, the purpose of the present invention is to provide a path planning algorithm based on intelligent particle swarm, which is applied to puncture robot surgery to solve the problems of poor adaptability in complex environments and low puncture planning accuracy.
[0006] The design ideas of the present invention are as follows: 1) by analyzing the force and motion of the puncture needle after piercing human tissue, the motion model of the puncture needle in three-dimensional space and the spatial transformation model of the insertion path are obtained respectively; 2) a multi-objective function including puncture path length, puncture error and collision detection is established; 3) based on the established objective optimization function.
[0007] The technical solution of the present invention is as follows:
[0008] The path planning method of intelligent particle swarm optimization for surgical puncture needles includes the following steps:
[0009] 1) Due to the asymmetric structure of the flexible puncture needle tip, the force exerted on the needle tip by the human tissue during the puncture process is also asymmetric, which will also cause the path to deflect when the needle is inserted. Therefore, when establishing the kinematic model of the needle tip, the present invention makes the following assumptions: the flexible needle is rigidly connected in the axial direction, that is, the puncture needle will not deform in the axial direction during the puncture process. Through the above assumptions, it is ensured that the forward direction of the flexible needle during the puncture process is determined by the direction of the needle tip bevel, which will simplify the complex modeling process;
[0010] 2) After the analysis and assumptions in step 1), the kinematic model of the puncture needle of the present invention is established: the specific formula is as follows:
[0011]
[0012] Among them, α, β, γ are the rotation angles of the needle tip around the x, y, and z axes in the world coordinate system, k is the curve slope of the puncture needle during the puncture process, v is the forward speed of the needle tip, and ω is the angular velocity of the needle axial rotation. In order to make the above nonlinear system more suitable for path planning, further simplification is made: the control variables are simplified to physical quantities that are independent of time, that is, v and ω are simplified to the needle distance s and the needle tip rotation angle θ, respectively, and the motion model can be further expressed as:
[0013]
[0014] In addition, the control of the model also adopts a stop strategy, that is, the needle insertion action and the needle tip rotation action are performed separately, and only one of the needle insertion or needle tip rotation actions can be executed at the same time.
[0015] 3) According to the assumption in step 2), the puncture path of the puncture needle is independent of the needle insertion speed and the needle tip rotation angular velocity. The physical quantities that affect the puncture path are only the needle insertion distance s and the rotation angle θ. Therefore, the path of the puncture needle can be controlled by the sequence θ = ((s1,θ1), (s2,θ2), ..., (s n ,θ n )) is uniquely determined, where n is the number of segments of the path. The target optimization function including path length, deviation and collision penalty function is set, and its specific expression is as follows:
[0016] Y=k1Y s (Θ)+Y d (Θ)+k2Y tip (Θ)
[0017] Y tip (Θ)=|P tip (Θ)-P d |
[0018]
[0019]
[0020]
[0021] Among them, Y s is the path length function, s i is the length of the i-th segment of the path; Y tip is the error function between the target point and the needle tip position; Y d is the function for judging whether there is a collision with an obstacle, m is the number of obstacles, y(d) is the collision function of a single obstacle; D is the safe distance between the obstacle and the needle tip; k1 and k2 are the weights of the path length function and the path error function respectively;
[0022] 4) After the objective function is designed in step 3), it is used as the fitness value of the adaptive particle swarm optimization algorithm. The specific process of the optimization algorithm is as follows:
[0023] 4.1) Initialize particle positions, particle velocities, individual optimal values, population optimal values, and maximum number of iterations, etc.;
[0024] 4.2) Calculate the fitness value of each particle according to the objective function formula in step 3), update the global optimal fitness value and record the position of the optimal particle;
[0025] 4.3) Update the position and velocity values of each particle;
[0026] 4.4) Determine whether the algorithm has reached the iteration stop condition. If not, return to step 4.2). If it is met, stop and output the optimal particle.
[0027] 4.5) Generate a path using the optimal particles;
[0028] The intelligent particle swarm optimization path planning method for surgical puncture needles is characterized in that in the step 2), all variables ξ of the motion model of the puncture needle g =[x,y,z,α,β,γ] T It is based on the world coordinate system, while the needle tip speed and rotation angular velocity are based on the needle body coordinates, which are derived from the following formula:
[0029]
[0030] V P =vV1+ωV2
[0031] Where V1 = [0 0 1 k 0 0] T ,V2=[0 0 0 0 0 1] T According to the velocity transformation equation between the needle body coordinates and the world coordinates, we can get VP =QV g ,and Where P T gp It is the rotation matrix of the world coordinates and the needle body coordinates. When used, when the placement of the needle and the electromagnetic positioning system is determined, it can be calibrated and uniquely determined; P Ω is the Euler kinematics coefficient matrix of the rigid body fixed-point motion, which establishes the needle body coordinate ψ p and the world coordinate system ψ g The angular velocity transformation relationship between
[0032] The intelligent particle swarm optimization path planning method for surgical puncture needles is characterized in that in step 4.3), the position and speed of the particle swarm are updated using the intelligent particle swarm algorithm proposed in the present invention, and the specific steps are as follows:
[0033] 4.3.1) In order to solve the problem of difficult parameter setting in traditional particle swarm algorithm, firstly, several variables for updating parameters are defined: ① The evolution ability of particles E i (t): the ability of a particle to find a better solution than other particles during the evolution process; ② The evolutionary ability of the group E global (t): The ability of all particles to find particles that are better than the current optimal particle; ③ Evolution rate η i (t+1): The degree of change in the evolutionary ability of particles in the population. The specific expressions of the above variables are as follows:
[0034]
[0035] E global (t) = F global (t)-F global (t-1)
[0036]
[0037] Among them, F best (t) is the optimal fitness value of all particles in the tth iteration, F bad (t) is the optimal fitness value of all particles in the tth iteration, F global (t) is the historical optimal fitness value of all particles in the tth iteration;
[0038] 4.3.2) According to the evolution rate of each particle, the inertia weight coefficient of the t+1th iteration is as follows:
[0039] τ i (t+1)=τ max -(τ max -τ min)η i (t+1)
[0040] Among them, τ max ,τ min are the maximum and minimum inertia weight coefficients in the iteration process respectively; the intelligence of the particle swarm of the present invention is mainly reflected in the self-adjustment of the evolution rate of particles in different periods. In order to ensure that the particles have good individual learning ability in the initial stage of iteration and strong social ability in the later stage of iteration, the learning factor is set to adjust:
[0041]
[0042]
[0043] Among them, c max is the maximum learning factor, c min is the minimum learning factor; c 1i (t+1),c 2i (t+1) are adjustment factors obtained according to the evolution rate, which are used to update the particle speed. As can be seen from the above derivation, the learning factor is related to the optimal fitness of the particle. The minimum and maximum learning factors are used for adjustment in order to make a trade-off.
[0044] 4.3.3) The final particle velocity and position update equations are:
[0045] V i (t+1)=τ i (t)V i (t)+c 1i (t)r1(P best -X i (t))
[0046] +c 2i (t)r2(G best -X i (t))
[0047] X i (t+1)=X i (t)+V i (t+1)
[0048] Among them, P best is the historical optimal position of a single particle, G best is the historical optimal position of all particles.
[0049] By adopting the above technology, compared with the prior art, the beneficial effects of the present invention are as follows:
[0050] From an overall perspective, the present invention proposes a new path planning scheme based on an intelligent particle swarm algorithm. The planning scheme establishes relevant target optimization functions for the puncture error, path length, and collision function with the tissue during the puncture process, and combines the intelligent particle swarm algorithm for further optimization. It overcomes the defects of traditional planning methods and can significantly improve the puncture efficiency and adaptability and accuracy to complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 is a flow chart of the method of the present invention;
[0052] Figure 2 This is a force analysis diagram of the needle tip after the needle body penetrates the tissue in an embodiment of the present invention;
[0053] Figure 3 Schematic diagram of the motion model of the oblique-pointed needle in the embodiment of the present invention;
[0054] Figure 4 The figure is a schematic diagram of the intelligent particle swarm algorithm process in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution 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 of the specification. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0056] On the contrary, the present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention as defined by the claims. Further, in order to make the public have a better understanding of the present invention, some specific details are described in detail in the detailed description of the present invention below. Those skilled in the art can fully understand the present invention without the description of these details.
[0057] See also Figure 1-4 , intelligent particle swarm optimization path planning method for surgical puncture needles, such as Figure 1 As shown, the following steps are included:
[0058] S1: Due to the asymmetric structure of the flexible puncture needle tip, such as Figure 2 As shown, the force exerted on the needle tip by the human tissue during the puncture process is also asymmetric, which will also cause the path to deflect when the needle is inserted. Therefore, when establishing the kinematic model of the needle tip, the present invention makes the following assumptions: the flexible needle is rigidly connected in the axial direction, that is, the puncture needle will not deform in the axial direction during the puncture process. Through the above assumptions, the forward direction of the flexible needle during the puncture process is determined by the direction of the needle tip bevel, which will simplify the complex modeling process;
[0059] S2: After the analysis and assumptions in step 1, the kinematic model of the puncture needle of the present invention is established. The specific steps are as follows:
[0060] S2.1: First, the model motion formula is given:
[0061]
[0062] Among them, α, β, γ are the rotation angles of the needle tip around the x, y, and z axes in the world coordinate system, k is the curve slope of the puncture needle during the puncture process, v is the forward speed of the needle tip, and ω is the angular velocity of the needle axial rotation. In order to make the above nonlinear system more suitable for path planning, further simplification is made: the control variables are simplified into time-independent physical quantities, that is, v and ω are simplified into the needle distance s and the needle tip rotation angle θ, respectively, and the motion model can be further expressed as:
[0063]
[0064] In addition, the control of the model also adopts a stop-rotation strategy, that is, the needle insertion action and the needle tip rotation action are performed separately, and only one of the needle insertion or needle tip rotation actions can be performed at the same time;
[0065] S2.2: If Figure 3 As shown, all variables ξ of the motion model of the puncture needle g =[x,y,z,α,β,γ] T It is based on the world coordinate system, while the needle tip speed and rotation angular velocity are based on the needle body coordinates, which are derived from the following formula:
[0066]
[0067] V P =vV1+ωV2
[0068] Where V1 = [0 0 1 k 0 0] T ,V2=[0 0 0 0 0 1] T According to the velocity transformation equation between the needle body coordinates and the world coordinates, we can get V P =QV g ,and Where P T gp It is the rotation matrix of the world coordinates and the needle body coordinates. When used, when the placement of the needle and the electromagnetic positioning system is determined, it can be calibrated and uniquely determined; P Ω is the Euler kinematics coefficient matrix of the rigid body fixed-point motion, which establishes the needle body coordinate ψ p and the world coordinate system ψ g The angular velocity transformation relationship between
[0069] S3: According to the assumption in step 2, the puncture path of the puncture needle is independent of the needle insertion speed and the needle tip rotation angular velocity. The physical quantities that affect the puncture path are only the needle insertion distance s and the rotation angle θ. Therefore, the path of the puncture needle can be controlled by the control sequence θ=((s1,θ1),(s2,θ2),...,(s n ,θ n )) is uniquely determined, where n is the number of segments of the path. The target optimization function including path length, deviation and collision penalty function is set, and its specific expression is as follows:
[0070] Y=k1Y s (Θ)+Y d (Θ)+k2Y tip (Θ)
[0071] Y tip (Θ)=|P tip (Θ)-P d |
[0072]
[0073]
[0074]
[0075] Among them, Y s is the path length function, s i is the length of the i-th segment of the path; Y tip is the error function between the target point and the needle tip position; Y d is the function for judging whether there is a collision with an obstacle, m is the number of obstacles, y(d) is the collision function of a single obstacle; D is the safe distance between the obstacle and the needle tip; k1 and k2 are the weights of the path length function and the path error function respectively;
[0076] S4: After the objective function is designed in step 3, it is used as the fitness value of the adaptive particle swarm optimization algorithm. Figure 4 , the specific process of the optimization algorithm is as follows:
[0077] S4.1: Initialize particle positions, particle velocities, individual optimal and population optimal values, and maximum number of iterations, etc.;
[0078] S4.2: Calculate the fitness value of each particle according to the objective function formula in step 3), update the global optimal fitness value, and record the position of the optimal particle;
[0079] S4.3: Update the position and velocity of each particle. The specific expressions are derived as follows:
[0080] S4.3.1: In order to solve the problem of difficult parameter setting in traditional particle swarm algorithm, first, several variables for updating parameters are defined: ① The evolution ability of particles E i (t): the ability of a particle to find a better solution than other particles during the evolution process; ② The evolutionary ability of the group E global (t): The ability of all particles to find particles that are better than the current optimal particle; ③ Evolution rate η i (t+1): The degree of change in the evolutionary ability of particles in the population. The specific expressions of the above variables are as follows:
[0081]
[0082] E global (t) = F global (t)-F global (t-1)
[0083]
[0084] Among them, F best (t) is the optimal fitness value of all particles in the tth iteration, F bad (t) is the optimal fitness value of all particles in the tth iteration, F global (t) is the historical optimal fitness value of all particles in the tth iteration;
[0085] S4.3.2: Based on the evolution rate of each particle, the inertia weight coefficient for the t+1th iteration is as follows:
[0086] τ i (t+1)=τ max -(τ max -τ min )η i (t+1)
[0087] The intelligence of the particle swarm of the present invention is mainly reflected in the self-regulation of the evolution rate of particles in different periods. In order to ensure that the particles have good individual learning ability in the initial stage of iteration and strong social ability in the later stage of iteration, the learning factor is set to adjust:
[0088]
[0089]
[0090] Among them, c max is the maximum learning factor, c min is the minimum learning factor;
[0091] S4.3.3: The final velocity and position update equations of the particle are:
[0092] V i (t+1)=τ i (t)V i (t)+c 1i (t)r1(P best -X i (t))
[0093] +c 2i (t)r2(G best -X i (t))
[0094] X i (t+1)=X i (t)+V i (t+1)
[0095] Among them, P best is the historical optimal position of a single particle. best is the historical optimal position of all particles;
[0096] S4.4: Determine whether the algorithm has reached the iteration stop condition. If not, return to step 4.2). If it is met, stop and output the optimal particle.
[0097] S4.5: Generate a path using optimal particles.
[0098] 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. An intelligent particle swarm optimization path planning method for surgical puncture needles, characterized in that: The following steps are involved: Step 1) In order to ensure that the advancing direction of the flexible needle during the puncture process is determined by the direction of the needle tip bevel, the following assumption is made: the flexible needle is rigidly connected in the axial direction, that is, the puncture needle will not deform in the axial direction during the puncture process; Step 2) According to step 1), a kinematic model of the puncture needle of the present invention is established: the specific formula is as follows: Among them, α, β, and γ are the rotation angles of the needle tip around the x, y, and z axes in the world coordinate system, respectively; k is the slope of the curve of the puncture needle during the puncture process; v is the forward speed of the needle tip; and ω is the angular velocity of the needle axial rotation; The control variables are simplified into time-independent physical quantities, that is, v and ω are simplified into the needle insertion distance s and the needle tip rotation angle θ, respectively. Then, the puncture needle motion model is simplified as follows: The control of the puncture needle motion model adopts a stop strategy, that is, the needle insertion action and the needle tip rotation action are performed separately, and only one of the needle insertion action or the needle tip rotation action can be performed at the same time; Step 3) Based on the simplified motion model of the puncture needle in step 2), the path of the puncture needle is controlled by the sequence θ = ((s1,θ1), (s2,θ2), ..., (s n ,θ n )) is uniquely determined, where n is the number of segments of the path; a target optimization function including path length, deviation and collision penalty function is set, and its specific expression is as follows: Y=k1Y s (Θ)+Y d (Θ)+k2Y tip (I) Y tip (Θ)=|P tip (I)-P d | Among them, Y s is the path length function, s i is the length of the i-th segment of the path; Y tip is the error function between the target point and the needle tip position; Y d is the function for judging whether there is a collision with an obstacle, m is the number of obstacles, y(d) is the collision function of a single obstacle; D is the safe distance between the obstacle and the needle tip; k1 and k2 are the weights of the path length function and the path error function respectively; P tip (Θ),P d They are the actual position and expected position of the puncture needle respectively; Step 4) After the objective function of step 3) is designed, it is used as the fitness value of the adaptive particle swarm optimization algorithm. The specific process of the optimization algorithm is as follows: Step 4.1) Initialize particle position, particle velocity, individual optimal and population optimal values, and maximum number of iterations; Step 4.2) Calculate the fitness value of each particle according to the objective function formula of step 3), update the global optimal fitness value and record the position of the optimal particle; Step 4.3) Update the position and velocity values of each particle; Step 4.4) Determine whether the algorithm has reached the iteration stop condition. If not, return to step 4.2). If it is met, stop and output the optimal particle. Step 4.5) Generate a path using the optimal particles.
2. The path planning method for surgical puncture needles based on intelligent particle swarm optimization according to claim 1 is characterized in that In step 2), all variables ξ of the motion model of the puncture needle g =[x,y,z,α,β,γ] T It is based on the world coordinate system, while the needle tip speed and rotation angular velocity are based on the needle body coordinates, which are derived from the following formula: V P =vV1+ωV2 Where V1 = [0 0 1 k 0 0] T ,V2=[0 0 0 0 0 1] T ; According to the velocity transformation equation between the needle body coordinates and the world coordinates, we get V P =QV g ,and Where P T gp is the rotation matrix of world coordinates and needle body coordinates; P Ω is the Euler kinematics coefficient matrix of the rigid body fixed-point motion, which establishes the needle body coordinate ψ p and the world coordinate system ψ g The angular velocity transformation relationship between 3. The path planning method for surgical puncture needles based on intelligent particle swarm optimization according to claim 1 is characterized in that In step 4.3), the intelligent particle swarm algorithm is used for updating, and the specific steps are as follows: 4.3.1) Define variables used to update parameters: ① The particle's evolutionary ability E i (t): the ability of a particle to find a better solution than other particles during the evolution process; ② The evolutionary ability of the group E global (t): The ability of all particles to find particles that are better than the current optimal particle; ③ Evolution rate η i (t+1): the degree of change in the evolutionary ability of particles in the population; The specific expressions of the above variables are as follows: E global (t)=F global (t)-F global (t-1) in, F best (t) is the optimal fitness value of all particles in the tth iteration, F bad (t) is the optimal fitness value of all particles in the tth iteration, F global (t) is the historical optimal fitness value of all particles in the tth iteration; 4.3.2) According to the evolution rate of each particle, the inertia weight coefficient of the t+1th iteration is as follows: t i (t+1)=τ max -(t max -t min )or i (t+1) Among them, τ max ,τ min are the maximum and minimum inertia weight coefficients in the iteration process, η i (t+1) represents the evolution rate; In order to ensure that particles have good individual learning ability in the initial stage of iteration and strong social ability in the later stage of iteration, the learning factor is set to adjust: Among them, c max is the maximum learning factor, c min is the minimum learning factor; c 1i (t+1),c 2i (t+1) are adjustment factors obtained according to the evolution rate, which are used to update the particle velocity; 4.3.3) The final particle velocity and position update equations are: V i (t+1)=τ i (t)V i (t)+c 1i (t)r1(P best -X i (t))+c 2i (t)r2(G best -X i (t)) X i (t+1)=X i (t)+V i (t+1) Among them, P best is the historical optimal position of a single particle, G best is the historical optimal position of all particles, r1 and r2 are weight factors, ranging from [0,1], V i (t) is the velocity of the particle at the previous moment.
Citation Information
Cited By
Puncture robot calibration method and system based on binocular vision
CN120053068A
