Trajectory planning method for osteotomy robot

By using the osteotomy robot's trajectory planning method in cosmetic surgery, combined with medical imaging technology and precision algorithms, the problems of cosmetic surgery errors and tissue damage caused by traditional manual operations are solved, and high-precision and controllable osteotomy operations are achieved. Improves the safety and effectiveness of surgery.

CN118177965BActive Publication Date: 2024-10-08WUHAN CHANGJIANG LASER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410186508.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-20
Publication Date
2024-10-08
Estimated Expiration
2044-02-20

AI Technical Summary

Technical Problem

Due to the lack of precise measurement and execution methods in facial osteotomy operations in traditional cosmetic surgery, there is a large difference between the postoperative results and the design plan, and manual operations can easily lead to errors and tissue damage.

Method used

The trajectory planning method of the osteotomy robot is used, combined with medical imaging technology and precision algorithms, to obtain a three-dimensional bone model through CT scanning, delineate the target area, use the trajectory planning algorithm to find the osteotomy line, and map it to the robot's manipulator coordinate system , ensuring high precision and controllability of osteotomy operations.

Benefits of technology

Reduce surgical operation time, achieve minimally invasive surgery, improve surgical accuracy and controllability, reduce postoperative recovery time, and provide safer and more accurate cosmetic treatments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118177965B_ABST
    Figure CN118177965B_ABST
Patent Text Reader

Abstract

The present invention provides a trajectory planning method for an osteotomy robot, which belongs to the field of trajectory planning technology, and includes: performing CT scanning on bones through medical imaging equipment to obtain three-dimensional model data of bones, and using a reconstruction algorithm to perform three-dimensional reconstruction on the three-dimensional model data to obtain a three-dimensional bone model; demarcating a target area in the three-dimensional bone model according to osteotomy requirements, extracting three-dimensional point cloud data of the target area, and the three-dimensional point cloud data contains position information; searching for an osteotomy line in the target area according to osteotomy requirements and a trajectory planning algorithm, and obtaining position information of the osteotomy line; mapping the position information of the osteotomy line to the mechanical arm coordinate system of the osteotomy robot to obtain trajectory planning. The present invention can ensure the high precision and controllability of osteotomy operations in cosmetic surgery, and provide patients with safer and more accurate cosmetic treatments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of trajectory planning, and in particular relates to a trajectory planning method for an osteotomy robot. Background Art

[0002] With the development of cosmetic medical imaging and computer-assisted cosmetic technology, digital cosmetic technology represented by 3D facial design software and image navigation technology has become popular in clinical practice. Traditional cosmetic surgery plans are completed by manual measurement of facial CT or MRI images, and the implementation of the plan is also completed by manual measurement during the operation. Errors accumulate layer by layer in these manual operations, eventually leading to a large difference between the postoperative effect and the design plan. In recent years, the application of preoperative 3D facial design software has avoided the loss of precision in traditional manual design plans, allowing the cosmetic plan in the doctor's brain to be accurately expressed on the image, and even on the facial model through 3D printing. However, this perfect plan lacks a good means of measurement, supervision and execution during the operation, among which facial osteotomy is a particularly typical surgical task. Facial osteotomy is a key link in cosmetic surgery. The position of osteotomy can not only affect the degree of damage to the surrounding tissues, but also determine the accuracy of the postoperative facial contour and postoperative recovery.

[0003] Therefore, in most cosmetic design software, osteotomy is planned and simulated as an important step. How to improve the accuracy of the osteotomy line in 3D reconstruction and planning has become an urgent problem to be solved. Summary of the invention

[0004] In view of this, the present invention provides a trajectory planning method for an osteotomy robot, which, combined with medical imaging technology and precise algorithms, can ensure the high precision and controllability of osteotomy operations in cosmetic surgery, and provide patients with safer and more accurate cosmetic treatments.

[0005] The technical solution of the present invention is implemented as follows: The present invention provides a trajectory planning method for an osteotomy robot, comprising the following steps:

[0006] S1 performs CT scanning on bones through medical imaging equipment to obtain three-dimensional model data of the bones, and uses a reconstruction algorithm to perform three-dimensional reconstruction on the three-dimensional model data to obtain a three-dimensional bone model;

[0007] S2 defines a target area in the three-dimensional bone model according to osteotomy requirements, and extracts three-dimensional point cloud data of the target area, where the three-dimensional point cloud data includes position information;

[0008] S3 searches for the osteotomy line in the target area according to the osteotomy requirements and the trajectory planning algorithm, and obtains the position information of the osteotomy line;

[0009] S4 maps the position information of the osteotomy line to the mechanical arm coordinate system of the osteotomy robot to obtain the trajectory planning.

[0010] On the basis of the above technical solution, preferably, the osteotomy requirements include osteotomy depth, osteotomy direction, osteotomy length and osteotomy site.

[0011] Based on the above technical solution, preferably, step S1 includes:

[0012] S11 performs CT scanning on bones through medical imaging equipment to obtain actual projection data, and preprocesses the acquired actual projection data, wherein the preprocessing includes scatter correction and noise suppression;

[0013] S12 performs initial reconstruction of the skeleton using a back-projection algorithm based on the actual projection data after preprocessing to obtain initial three-dimensional model data;

[0014] S13 estimates the absorption coefficient distribution of each position of the bone according to the initial reconstructed image, and obtains simulated projection data of the initial reconstructed image according to the absorption coefficient distribution;

[0015] S14 establishes an optimization model, sets an objective function, and uses the simulated projection data of the initial reconstructed image as an initialization model parameter X of the optimization model;

[0016] S15 uses an optimization algorithm with an adaptive learning rate for iterative optimization. In each iteration, the parameter update formula is used to update the model parameter X, and the simulated projection data is updated according to the new model parameter X to optimize the objective function.

[0017] S16 When the iteration stop condition is reached, the optimized three-dimensional model data is output;

[0018] S17 performs post-processing and visualization on the optimized three-dimensional model data to obtain a three-dimensional skeleton model.

[0019] Based on the above technical solution, preferably, step S12 includes:

[0020] The actual projection data after preprocessing is expressed as:

[0021]

[0022] Where P(θ, s) represents the projection data at angle θ and distance s, f(x, y) is the absorption coefficient of the bone part, μ(x, y) is the absorption coefficient distribution, and λ1||f(x, y)|| p is the Lp norm regularization term, which is used to control the overall smoothness of the absorption coefficient f(x, y), is the gradient regularization term, which is used to control the local smoothness of the absorption coefficient f(x, y);

[0023] Perform a back-projection operation on the projection data P(θ, s), and back-project the projection data onto a two-dimensional plane;

[0024] The data obtained by back-projection are filtered, superimposed and interpolated to obtain the initial three-dimensional model data.

[0025] Based on the above technical solution, preferably, the objective function is:

[0026] F=min||W×(P-AX)|| 2 +γR(μ)+εS(μ)

[0027] Where P is the actual projection data, A is the system matrix, X is the model parameter of the optimization model, μ is the absorption coefficient distribution corresponding to X, W is the weight matrix, R is the regularization matrix, S is the regularization matrix of the introduced prior information, γ is the regularization parameter of the data fitting term, and ε is the regularization parameter of the introduced prior information.

[0028] Based on the above technical solution, preferably, the parameter updating formula is:

[0029]

[0030] In the formula, m t and v t are the estimated variables of the first and second order moments, m hat and v hat is the estimated value after correction of the deviation, X is the model parameter of the optimization model, and g t is the gradient of the current iteration, α is the learning rate, β1 and β2 are hyperparameters, and ξ is a constant.

[0031] Based on the above technical solution, preferably, step S3 includes:

[0032] S31 randomly selects a point in the three-dimensional point cloud data as the root node of the first state tree, and finds the point closest to the root node of the first state tree as the root node of the second state tree, wherein the first state tree is the starting state and the second state tree is the target state;

[0033] S32 randomly samples a point in the three-dimensional point cloud data as a target node, and then finds a first node and a second node closest to the target node in the first state tree and the second state tree respectively;

[0034] S33, according to the constraint conditions, expanding from the first node and the second node to the target node to obtain a new first node and a new second node; wherein the constraint conditions include an osteotomy depth constraint, an osteotomy direction constraint, and an osteotomy length constraint;

[0035] S34: if there is no collision between the new first node and the new second node and the constraint condition is satisfied, the new first node and the new second node are connected; otherwise, the states of the first state tree and the second state tree are exchanged, and the process returns to step S32;

[0036] S35 repeats steps S32-S34 until the first state tree and the second state tree are connected;

[0037] S36, when the first state tree and the second state tree are connected, a path is extracted from the starting state to the target state, which is the osteotomy line;

[0038] S37 extracts the position information of the osteotomy line based on the three-dimensional bone model.

[0039] Based on the above technical solution, preferably, the mathematical expression of the osteotomy depth constraint is as follows:

[0040]

[0041] In the formula, A is the amplitude parameter, σ is the control parameter, is the position vector of the new node, is the position vector of the initial node, is the normal vector in the depth direction, D max Indicates the maximum osteotomy depth.

[0042] Based on the above technical solution, preferably, the mathematical expression of the osteotomy direction constraint is as follows:

[0043]

[0044] In the formula, is the normal vector of the new node, is the osteotomy direction vector, is the maximum allowable direction deviation angle.

[0045] On the basis of the above technical solution, preferably, the mathematical expression of the osteotomy length constraint is as follows:

[0046]

[0047] In the formula, represents the Euclidean distance between the new node and the nearest node, N is the number of mixture components in the Gaussian mixture model, ω i is the weight of each mixture component, κ i 2 is the standard deviation of each mixture component, L max The maximum osteotomy length.

[0048] The method of the present invention has the following beneficial effects compared with the prior art:

[0049] (1) The present invention can reduce the operation time during surgery by determining the target area in the three-dimensional model in advance and performing trajectory planning; accurate trajectory planning and robot-assisted surgery can achieve minimally invasive surgery, reduce damage to surrounding tissues, and accelerate the patient's postoperative recovery; through accurate three-dimensional model reconstruction and trajectory planning, the accuracy and controllability of the surgery can be improved;

[0050] (2) The reconstruction algorithm provided by the present invention can reduce the scattering and noise interference in the CT scan image through the preprocessing of scattering correction and noise suppression, improve the image quality and accuracy, and realize the quantitative analysis of the density and composition of bone tissue by estimating the absorption coefficient distribution of each bone position and obtaining simulated projection data according to the absorption coefficient distribution. The optimized three-dimensional model data provides more accurate and clearer bone structure information;

[0051] (3) Through the steps of state tree construction, target node selection and expansion, collision detection and connection, the algorithm of the present invention can accurately extract the osteotomy line of the bone structure, thereby ensuring the accuracy and safety of surgical planning and operation. The algorithm includes constraints such as osteotomy depth constraint, osteotomy direction constraint and osteotomy length constraint. The restrictions of these constraints ensure the rationality and feasibility of the osteotomy line, avoid unnecessary errors and risks, and extract the position information of the osteotomy line based on the three-dimensional bone model, providing accurate bone structure position data. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 The figure is a flow chart of a method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0054] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] like Figure 1As shown, the present invention provides a trajectory planning method for an osteotomy robot, comprising the following steps:

[0056] S1 performs CT scanning on bones through medical imaging equipment to obtain three-dimensional model data of the bones, and uses a reconstruction algorithm to perform three-dimensional reconstruction on the three-dimensional model data to obtain a three-dimensional bone model;

[0057] S2 defines a target area in the three-dimensional bone model according to osteotomy requirements, and extracts three-dimensional point cloud data of the target area, where the three-dimensional point cloud data includes position information;

[0058] S3 searches for the osteotomy line in the target area according to the osteotomy requirements and the trajectory planning algorithm, and obtains the position information of the osteotomy line;

[0059] S4 maps the position information of the osteotomy line to the mechanical arm coordinate system of the osteotomy robot to obtain the trajectory planning.

[0060] Among them, osteotomy requirements include osteotomy depth, osteotomy direction, osteotomy length and osteotomy site.

[0061] Specifically, in one embodiment of the present invention, step S1 includes:

[0062] S11 performs CT scanning on bones through medical imaging equipment to obtain actual projection data, and preprocesses the acquired actual projection data, wherein the preprocessing includes scatter correction and noise suppression;

[0063] S12 performs initial reconstruction of the skeleton using a back-projection algorithm based on the actual projection data after preprocessing to obtain initial three-dimensional model data;

[0064] S13 estimates the absorption coefficient distribution of each position of the bone according to the initial reconstructed image, and obtains simulated projection data of the initial reconstructed image according to the absorption coefficient distribution;

[0065] S14 establishes an optimization model, sets an objective function, and uses the simulated projection data of the initial reconstructed image as an initialization model parameter X of the optimization model;

[0066] S15 uses an optimization algorithm with an adaptive learning rate for iterative optimization. In each iteration, the parameter update formula is used to update the model parameter X, and the simulated projection data is updated according to the new model parameter X to optimize the objective function.

[0067] S16 When the iteration stop condition is reached, the optimized three-dimensional model data is output;

[0068] S17 performs post-processing and visualization on the optimized three-dimensional model data to obtain a three-dimensional skeleton model.

[0069] Wherein, step S12 comprises:

[0070] The actual projection data after preprocessing is expressed as:

[0071]

[0072] Where P(θ, s) represents the projection data at angle θ and distance s, f(x, y) is the absorption coefficient of the bone part, μ(x, y) is the absorption coefficient distribution, and λ1||f(x, y)|| p is the Lp norm regularization term, which is used to control the overall smoothness of the absorption coefficient f(x, y), is the gradient regularization term, which is used to control the local smoothness of the absorption coefficient f(x, y);

[0073] Perform a back-projection operation on the projection data P(θ, s), and back-project the projection data onto a two-dimensional plane;

[0074] The data obtained by back-projection are filtered, superimposed and interpolated to obtain the initial three-dimensional model data.

[0075] In this embodiment, the objective function is:

[0076] F=min||W×(P-AX)|| 2 +γR(μ)+εS(μ)

[0077] Where P is the actual projection data, A is the system matrix, X is the model parameter of the optimization model, μ is the absorption coefficient distribution corresponding to X, W is the weight matrix, R is the regularization matrix, S is the regularization matrix of the introduced prior information, γ is the regularization parameter of the data fitting term, and ε is the regularization parameter of the introduced prior information.

[0078] The parameter update formula is:

[0079]

[0080] In the formula, m t and v t are the estimated variables of the first and second order moments, m hat and v hat is the estimated value after correction of the deviation, X is the model parameter of the optimization model, and g t is the gradient of the current iteration, α is the learning rate, β1 and β2 are hyperparameters, and ξ is a constant.

[0081] Let's take a specific example to illustrate:

[0082] The CT scanner is used to scan the patient's body parts, such as the skull, to obtain CT image data of the bones. This data includes the density information and structural information inside the bones, which is obtained by scanning the patient at different angles with X-rays. The CT scanner scans the patient's body parts by emitting X-rays. X-rays will be absorbed by different tissues and bones to different degrees, and this absorption degree will be recorded by the detector. The detector will record the absorption of X-rays when passing through the patient's body parts, that is, the actual projection data. These projection data may be affected by scattering effects and noise, so preprocessing is required to improve image quality and accuracy.

[0083] The main contents of preprocessing include scatter correction and noise suppression.

[0084] Scatter correction: Scatter refers to the deflection and scattering of X-rays inside an object, which causes artifacts and image blur in the CT image. The purpose of scatter correction is to reduce the impact of this scatter effect on image quality and improve image accuracy. In this embodiment, a model-assisted scatter correction algorithm is used: the scatter is modeled using a physical model, and scatter correction is performed through numerical calculation or iterative algorithm to reduce the impact of the scatter effect on the image.

[0085] Noise suppression: In CT scanning, the image may be affected by various factors and generate noise, such as measurement errors of the X-ray attenuation coefficient, detector noise, etc. The purpose of noise suppression is to reduce noise interference in the image through filtering and other methods, improve image quality and accuracy of bone structure. In this embodiment, wavelet denoising is used: the signal is decomposed into sub-bands of different frequencies using wavelet transform, and noise is suppressed by thresholding the sub-band coefficients.

[0086] Based on the actual projection data after preprocessing, the back-projection algorithm is used to perform initial reconstruction of the skeleton to obtain the initial three-dimensional model data. The actual projection data after preprocessing is expressed as:

[0087]

[0088] Where P(θ,s) represents the projection data at angle θ and distance s, f(x,y) is the absorption coefficient of the bone part, μ(x,y) is the absorption coefficient distribution, λ1||f(x,y)|| p is the Lp norm regularization term, which is used to control the overall smoothness of the absorption coefficient f(x,y) to avoid overly sharp changes; It is a gradient regularization term, which is used to control the local smoothness of the absorption coefficient f(x,y) and helps to maintain the detail information of the image.

[0089] This formula describes the relationship between the projection intensity P(θ,s) at angle θ and distance s and the object absorption coefficient f(x,y) and the absorption coefficient distribution μ(x,y). By introducing regularization terms such as Lp regularization and gradient regularization, the optimization process can be better guided, the accuracy of reconstruction can be improved, and the characteristics of actual projection data can be better matched.

[0090] The specific steps for initial reconstruction are as follows:

[0091] According to the preprocessed actual projection data P(θ,s) and scanning geometric parameters, a back-projection operation is performed to back-project the projection data onto a two-dimensional plane to obtain an initial two-dimensional reconstructed image.

[0092] Repeat the above steps and perform back-projection operation on each angle θ to obtain a series of two-dimensional reconstructed images.

[0093] After obtaining a series of two-dimensional reconstructed images, these images need to be filtered, superimposed and interpolated to obtain the initial three-dimensional model data. The specific steps are as follows:

[0094] A filtering operation is performed on each two-dimensional reconstructed image to reduce the influence of artifacts and noise and improve image quality.

[0095] The filtered two-dimensional reconstructed images are superimposed to obtain more accurate three-dimensional model data. This can be achieved by weighted superposition of each two-dimensional image to obtain more accurate three-dimensional model data.

[0096] Interpolation is performed on the superimposed data to obtain complete three-dimensional model data. The interpolation operation can use linear interpolation, cubic spline interpolation and other methods. This embodiment uses bilinear interpolation to interpolate two-dimensional data into three-dimensional data.

[0097] According to the initial reconstructed image, the absorption coefficient distribution of each bone position is estimated, and the simulated projection data is obtained according to the absorption coefficient distribution.

[0098] The initial reconstructed image can provide approximate information about the bone absorption coefficient distribution. This embodiment uses simulated annealing to reversely solve the absorption coefficient distribution based on the initial reconstructed image and the actual projection data. This method can estimate the absorption coefficient distribution by minimizing the difference between the reconstructed image and the actual projection data.

[0099] By estimating the absorption coefficient distribution, the projection principle of CT reconstruction can be used to calculate simulated projection data.

[0100] The reconstruction problem is modeled as an optimization problem, and the objective function is set. The optimization goal is to minimize the difference between the actual projection data and the simulated projection data.

[0101] The objective function is:

[0102] F=min||W×(P-AX)|| 2 +γR(μ)+εS(μ)

[0103] Where P is the actual projection data, A is the system matrix, X is the model parameter of the optimization model, μ is the absorption coefficient distribution corresponding to X, W is the weight matrix, R is the regularization matrix, S is the regularization matrix of the introduced prior information, γ is the regularization parameter of the data fitting term, and ε is the regularization parameter of the introduced prior information.

[0104] The objective function includes the weighted sum of the data fitting term and the regularization term, where the data fitting term is used to measure the degree of fit of the model to the actual projection data, and the regularization term is used to introduce prior information or control the smoothness of the model parameters. At the same time, new prior information is introduced to better describe the difference between the actual projection data and the simulated projection data.

[0105] The simulated projection data of the initial reconstructed image is used as the initial model parameter X of the optimization model, the initial learning rate α, two hyperparameters β1 and β2 are set, and the first-order and second-order moment estimation variables m and v are initialized as zero vectors. These initialized parameters and variables will serve as the starting point of the optimization algorithm and will be continuously updated with iterations to gradually optimize the model parameters.

[0106] An optimization algorithm with adaptive learning rate is used for iterative optimization. In each iteration, the parameter update formula is used to update the model parameter X, and the simulated projection data is updated according to the new model parameter X to optimize the objective function.

[0107] The parameter update formula is:

[0108]

[0109] In the formula, m t and v t are the estimated variables of the first and second order moments, m hat and v hat is the estimated value after correction of the deviation, X is the model parameter of the optimization model, and g t is the gradient of the current iteration, α is the learning rate, β1 and β2 are hyperparameters, and ξ is a constant.

[0110] The parameter update formula includes the update of the estimated variables m and v of the first-order moment and the second-order moment, as well as the estimated value m after correcting the deviation. hat and v hat By continuously iteratively updating the model parameters X, the objective function gradually converges to the optimal value.

[0111] This embodiment uses a gradient descent method to perform iterative optimization, continuously calculates the gradient of the objective function, and updates the model parameter X according to the gradient. At the same time, it is necessary to calculate the absorption coefficient distribution and simulated projection data according to the updated model parameters, and perform comprehensive optimization in combination with the regularization term. Through such an optimization algorithm, the reconstruction problem can be effectively optimized and the accuracy and stability of the reconstruction can be improved.

[0112] When the iteration stop condition is reached, the optimized three-dimensional model data is output.

[0113] In this embodiment, the iteration stopping condition is that the objective function converges or reaches the maximum number of iterations.

[0114] The optimized three-dimensional model data is post-processed and visualized to obtain a three-dimensional bone model.

[0115] Post-processing and visualization: The optimized 3D model data can be smoothed, segmented, and surface reconstructed to ultimately obtain a 3D bone model that can be displayed using 3D visualization technology.

[0116] Specifically, in one embodiment of the present invention, step S2 includes:

[0117] The osteotomy range in the osteotomy requirement is obtained. The osteotomy range corresponds to the approximate osteotomy area of ​​the osteotomy site. According to the osteotomy range in the requirement and in combination with the patient's bone tissue and skin tissue data, a danger zone in the osteotomy range is set. Considering the safety of the operation, the maximum range of the target area is continuously limited according to the danger zone. Therefore, the target area in this embodiment is an irregular shape.

[0118] After defining the target area, the 3D point cloud data corresponding to the target area is extracted based on the 3D bone model. The 3D point cloud data contains position information, i.e. coordinate information, which describes the position of the skull surface in 3D space. It also contains normal vector information, reflection intensity information, etc.

[0119] Specifically, in one embodiment of the present invention, step S3 includes:

[0120] S31 randomly selects a point in the three-dimensional point cloud data as the root node of the first state tree, and finds the point closest to the root node of the first state tree as the root node of the second state tree, wherein the first state tree is the starting state and the second state tree is the target state;

[0121] S32 randomly samples a point in the three-dimensional point cloud data as a target node, and then finds a first node and a second node closest to the target node in the first state tree and the second state tree respectively;

[0122] S33, according to the constraint conditions, expanding from the first node and the second node to the target node to obtain a new first node and a new second node; wherein the constraint conditions include an osteotomy depth constraint, an osteotomy direction constraint, and an osteotomy length constraint;

[0123] S34: if there is no collision between the new first node and the new second node and the constraint condition is satisfied, the new first node and the new second node are connected; otherwise, the states of the first state tree and the second state tree are exchanged, and the process returns to step S32;

[0124] S35 repeats steps S32-S35 until the first state tree and the second state tree are connected;

[0125] S36, when the first state tree and the second state tree are connected, a path is extracted from the starting state to the target state, which is the osteotomy line;

[0126] S37 extracts the position information of the osteotomy line based on the three-dimensional bone model.

[0127] Among them, the mathematical expression of osteotomy depth constraint is as follows:

[0128]

[0129] In the formula, A is the amplitude parameter, σ is the control parameter, is the position vector of the new node, is the position vector of the initial node, is the normal vector in the depth direction, D max Indicates the maximum osteotomy depth.

[0130] The mathematical expression of osteotomy direction constraint is as follows:

[0131]

[0132] In the formula, is the normal vector of the new node, is the osteotomy direction vector, is the maximum allowable direction deviation angle.

[0133] The mathematical expression of osteotomy length constraint is as follows:

[0134]

[0135] In the formula, represents the Euclidean distance between the new node and the nearest node, N is the number of mixture components in the Gaussian mixture model, ω i is the weight of each mixture component, κ i 2 is the standard deviation of each mixture component, L maxThe maximum osteotomy length.

[0136] Let's take a specific example to illustrate:

[0137] The trajectory planning algorithm used in this embodiment is based on the idea of ​​two-way search, and searches from both the starting state and the target state to find the shortest path or the optimal solution. In this algorithm, the first state tree and the second state tree, as well as the method of alternately extending the starting state and the target state connection are used to improve the search efficiency and accuracy.

[0138] First of all, the reason for using two state trees is to search from the starting state and the target state at the same time, so as to find the shortest path or the optimal solution more quickly. By searching from two directions at the same time, the search space can be reduced and the search efficiency can be improved.

[0139] Secondly, the method of using the starting state and the target state to connect alternately and expand is to continuously update the connection path between the starting state and the target state during the search process. By alternately expanding, the path information can be continuously updated during the search process so as to find the optimal solution more quickly. In addition, this method can also avoid falling into the local optimal solution and improve the globality of the search.

[0140] The specific implementation process of the trajectory planning algorithm is:

[0141] A point is randomly selected in the three-dimensional point cloud data as the root node of the first state tree, and the point closest to the root node of the first state tree is found as the root node of the second state tree, where the first state tree is the starting state and the second state tree is the target state. In the three-dimensional point cloud data, a point can be selected as the root node of the first state tree by random sampling or according to specific rules. Then, the point closest to the root node of the first state tree is found as the root node of the second state tree by methods such as nearest neighbor search. For example, the nearest neighbor algorithm can be used to find the closest point as the root node of the second state tree.

[0142] A point is randomly sampled in the three-dimensional point cloud data as a target node, and then the first node and the second node closest to the target node are found in the first state tree and the second state tree respectively. A point can be selected as the target node by random sampling or according to a specific rule. Then, in the first state tree and the second state tree, the first node and the second node closest to the target node can be found by using methods such as nearest neighbor search. For example, the nearest neighbor algorithm can be used to find the node closest to the target node.

[0143] According to the constraint conditions, the first node and the second node are expanded toward the target node to obtain a new first node and a new second node; wherein the constraint conditions include an osteotomy depth constraint, an osteotomy direction constraint, and an osteotomy length constraint.

[0144] According to the constraint conditions, the first node and the second node are extended to the target node to obtain a new first node and a new second node; wherein the constraint conditions include osteotomy depth constraint, osteotomy direction constraint and osteotomy length constraint. When extending from the first node and the second node to the target node, the osteotomy depth constraint, osteotomy direction constraint and osteotomy length constraint can be considered. For example, the depth of the new node can be limited according to a specific osteotomy depth requirement; the direction of the new node can be limited according to an osteotomy direction requirement; and the moving distance of the new node can be limited according to an osteotomy length requirement.

[0145] Among them, the mathematical expression of osteotomy depth constraint is as follows:

[0146]

[0147] In the formula, A is the amplitude parameter, σ is the control parameter, is the position vector of the new node, is the position vector of the initial node, is the normal vector in the depth direction, D max Indicates the maximum osteotomy depth.

[0148] The osteotomy depth constraint is based on the depth constraint of the Gaussian function. The depth constraint range is adjusted by controlling the parameter σ so that the depth between the new node and the initial node is within a certain range. This constraint ensures that the generated path does not deviate too far in the depth direction, thereby ensuring the safety and rationality of path planning.

[0149] The mathematical expression of osteotomy direction constraint is as follows:

[0150]

[0151] In the formula, is the normal vector of the new node, is the osteotomy direction vector, is the maximum allowable direction deviation angle.

[0152] The osteotomy direction constraint condition is based on the cosine value of the vector angle to limit the relationship between the normal vector of the new node and the osteotomy direction vector, ensuring that the deviation of the path in a specific direction is not too large. This constraint condition can ensure that the deviation of the generated path in a specific direction is controlled within a certain range, making the path planning more in line with actual needs.

[0153] The mathematical expression of osteotomy length constraint is as follows:

[0154]

[0155] In the formula, represents the Euclidean distance between the new node and the nearest node, N is the number of mixture components in the Gaussian mixture model, ω i is the weight of each mixture component, κ i 2 is the standard deviation of each mixture component, L max The maximum osteotomy length.

[0156] The osteotomy length constraint is based on the length constraint of the Gaussian mixture model. The influence range of different mixture components is adjusted by weight and standard deviation to limit the length of the path. This constraint can ensure that the length of the generated path is not too long. At the same time, the shape and length of the path can be flexibly adjusted according to the number and parameters of the mixture components, making the path planning more flexible and adaptable.

[0157] If there is no collision between the new first node and the new second node and the constraint condition is satisfied, the new first node and the new second node are connected; otherwise, the states of the first state tree and the second state tree are exchanged, and the process returns to step S32. When judging whether there is a collision between the new first node and the new second node and whether the constraint condition is satisfied, the use of a collision detection algorithm and a constraint condition judgment algorithm may be considered. For example, a collision detection algorithm (such as a bounding box collision detection or a geometric collision detection) may be used to judge whether there is a collision between the nodes; at the same time, the constraint condition is used to judge whether the new node meets the requirements. If the condition is satisfied, the new first node and the new second node are connected; otherwise, the states are exchanged and the search is performed again.

[0158] Repeat the above connection and expansion steps until the first state tree and the second state tree are connected. This can be done by continuously updating the node and path information of the state tree until the first state tree and the second state tree are connected. This process can be performed in a loop iteration until the connection condition is met.

[0159] When the first state tree and the second state tree are connected, a path is extracted from the starting state to the target state, which is the osteotomy line. According to the three-dimensional bone model, the position information of the osteotomy line can be extracted. This can be done by associating the osteotomy line with the three-dimensional bone model to determine the specific position of the osteotomy line in the three-dimensional space.

[0160] Specifically, in one embodiment of the present invention, step S4 includes:

[0161] According to the above steps, the position information of the osteotomy line has been extracted, that is, the coordinates of a series of key points.

[0162] Establish the robot arm coordinate system:

[0163] Determine the position and posture of the end effector of the robotic arm, that is, the very end of the robotic arm, such as the hand, clamp, etc. Perform forward kinematics calculations based on the structure and joint parameters of the robotic arm to obtain the position and posture of each joint of the robotic arm, as well as the position and posture of the end effector. Determine the origin and coordinate axis direction of the robotic arm coordinate system based on the position and posture of the end effector of the robotic arm. Select the position of the end effector as the origin of the coordinate system, and the direction of the coordinate axis can be determined based on the structure and motion law of the robotic arm. The coordinate system of the robotic arm is usually represented by Euler angles, quaternions or transformation matrices. This embodiment is represented by a transformation matrix. Assume that the coordinate system of the robotic arm is O-XYZ, and the coordinates of the end effector of the robotic arm are (x end ,y end ,z end ), the posture is expressed as the rotation matrix R, then the mathematical expression of the robot arm coordinate system can be expressed as:

[0164]

[0165] Where R is a 3*3 rotation matrix, which represents the posture of the robot arm, and the position of the end effector (x end ,y end ,z end) ) represents the position of the origin of the robot coordinate system in the world coordinate system.

[0166] Coordinate transformation: transform the position information of the osteotomy line from the world coordinate system or other reference coordinate system to the robot coordinate system so that the robot can plan and execute according to this position information.

[0167] The coordinate transformation is realized by a mapping formula. Assuming that the coordinates in the robot coordinate system are (x arm ,y arm ,z arm ), and the world coordinates of the points in the osteotomy line are (x world ,y world ,z world ), the position information of the osteotomy line can be mapped to the robot arm coordinate system by the following formula:

[0168]

[0169] In the formula, R is a rotation matrix and O is a translation vector. The rotation matrix R and translation vector O can be obtained through the forward kinematics of the robot.

[0170] Trajectory planning: Perform trajectory planning in the robot coordinate system to determine the path of the robot end effector so that it can move according to the position information of the osteotomy line.

[0171] Based on the above content, the trajectory planning of the osteotomy robot is obtained.

[0172] The present invention can reduce the operation time during surgery by determining the target area in the three-dimensional model in advance and performing trajectory planning; accurate trajectory planning and robot-assisted surgery can achieve minimally invasive surgery, reduce damage to surrounding tissues, and accelerate the patient's postoperative recovery; through accurate three-dimensional model reconstruction and trajectory planning, the accuracy and controllability of the surgery can be improved.

[0173] 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, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A trajectory planning method for an osteotomy robot, characterized in that: The following steps are involved: S1 performs CT scanning on bones through medical imaging equipment to obtain three-dimensional model data of the bones, and uses a reconstruction algorithm to perform three-dimensional reconstruction on the three-dimensional model data to obtain a three-dimensional bone model; S2 defines a target area in the three-dimensional bone model according to osteotomy requirements, and extracts three-dimensional point cloud data of the target area, where the three-dimensional point cloud data includes position information; Osteotomy requirements include osteotomy depth, osteotomy direction, osteotomy length, and osteotomy site; S3 searches for the osteotomy line in the target area according to the osteotomy requirements and the trajectory planning algorithm, and obtains the position information of the osteotomy line; Step S3 includes: S31 randomly selects a point in the three-dimensional point cloud data as the root node of the first state tree, and finds the point closest to the root node of the first state tree as the root node of the second state tree, wherein the first state tree is the starting state and the second state tree is the target state; S32 randomly samples a point in the three-dimensional point cloud data as a target node, and then finds a first node and a second node closest to the target node in the first state tree and the second state tree respectively; S33, according to the constraint conditions, expanding from the first node and the second node to the target node to obtain a new first node and a new second node; wherein the constraint conditions include an osteotomy depth constraint, an osteotomy direction constraint, and an osteotomy length constraint; S34: if there is no collision between the new first node and the new second node and the constraint condition is satisfied, the new first node and the new second node are connected; otherwise, the states of the first state tree and the second state tree are exchanged, and the process returns to step S32; S35 repeats steps S32-S34 until the first state tree and the second state tree are connected; S36, when the first state tree and the second state tree are connected, a path is extracted from the starting state to the target state, which is the osteotomy line; S37 extracts the position information of the osteotomy line according to the three-dimensional bone model; The mathematical expression of osteotomy depth constraint is as follows: In the formula, A is the amplitude parameter, σ is the control parameter, is the position vector of the new node, is the position vector of the initial node, is the normal vector in the depth direction, D max Indicates the maximum osteotomy depth; The mathematical expression of osteotomy direction constraint is as follows: In the formula, is the normal vector of the new node, is the osteotomy direction vector, is the maximum allowable direction deviation angle; The mathematical expression of osteotomy length constraint is as follows: In the formula, represents the Euclidean distance between the new node and the nearest node, N is the number of mixture components in the Gaussian mixture model, ω i is the weight of each mixture component, κ i 2 is the standard deviation of each mixture component, L max is the maximum osteotomy length; S4 maps the position information of the osteotomy line to the mechanical arm coordinate system of the osteotomy robot to obtain the trajectory planning.

2. The trajectory planning method of the osteotomy robot according to claim 1, characterized in that: Step S1 includes: S11 performs CT scanning on bones through medical imaging equipment to obtain actual projection data, and preprocesses the acquired actual projection data, wherein the preprocessing includes scatter correction and noise suppression; S12 performs initial reconstruction of the skeleton using a back-projection algorithm based on the actual projection data after preprocessing to obtain initial three-dimensional model data; S13 estimates the absorption coefficient distribution of each position of the bone according to the initial reconstructed image, and obtains simulated projection data of the initial reconstructed image according to the absorption coefficient distribution; S14 establishes an optimization model, sets an objective function, and uses the simulated projection data of the initial reconstructed image as an initialization model parameter X of the optimization model; S15 uses an optimization algorithm with an adaptive learning rate for iterative optimization. In each iteration, the parameter update formula is used to update the model parameter X, and the simulated projection data is updated according to the new model parameter X to optimize the objective function. S16 When the iteration stop condition is reached, the optimized three-dimensional model data is output; S17 performs post-processing and visualization on the optimized three-dimensional model data to obtain a three-dimensional skeleton model.

3. The trajectory planning method of the osteotomy robot according to claim 2, characterized in that: Step S12 includes: The actual projection data after preprocessing is expressed as: Where P(θ,s) represents the projection data at angle θ and distance s, f(x,y) is the absorption coefficient of the bone part, μ(x,y) is the absorption coefficient distribution, λ1||f(x,y)|| p is the Lp norm regularization term, which is used to control the overall smoothness of the absorption coefficient f(x,y), is the gradient regularization term, which is used to control the local smoothness of the absorption coefficient f(x,y); Perform a back-projection operation on the projection data P(θ,s), and back-project the projection data onto a two-dimensional plane; The data obtained by back-projection are filtered, superimposed and interpolated to obtain the initial three-dimensional model data.

4. The trajectory planning method of the osteotomy robot according to claim 2, characterized in that: The objective function is: F=min||W×(P-AX)|| 2 +γR(μ)+εS(μ) Where P is the actual projection data, A is the system matrix, X is the model parameter of the optimization model, μ is the absorption coefficient distribution corresponding to X, W is the weight matrix, R is the regularization matrix, S is the regularization matrix of the introduced prior information, γ is the regularization parameter of the data fitting term, and ε is the regularization parameter of the introduced prior information.