Puncture needle insertion control method, controller and surgical robot
Through the collaborative work of the surgical robot controller and the prediction model, the path of the puncture needle is accurately adjusted, which solves the problem of the deviation of the puncture needle's trajectory during prostate puncture, achieving precise control and reducing trauma.
Patent Information
- Application Number
- CN202410896991.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-05
AI Technical Summary
During prostate puncture, the injection trajectory of the puncture needle deviates due to tissue symmetry. The existing manual operation method has errors and instability, making it difficult to achieve precise control.
The surgical robot controller is used to obtain the actual needle insertion position and lesion location, perform path planning and prediction model adjustment, drive the motor to accurately control the movement of the puncture needle, and iteratively adjust the needle position until it matches the lesion location.
It achieves precise control of the puncture needle, reduces the scope of trauma in the patient's body and postoperative recovery time, and improves the accuracy and stability of the operation.
Smart Images

Figure CN118415727B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent medical control technology, and in particular to a puncture needle insertion control method, a controller and a surgical robot. Background Art
[0002] Prostate cancer is one of the most common malignant tumors in men. The "gold standard" for diagnosing prostate cancer is a prostate puncture biopsy, in which tissue samples are obtained from the prostate through a puncture needle and then pathologically examined.
[0003] During the puncture process, the puncture needle needs to be accurately guided to the prostate tissue along a predetermined path. However, after the puncture needle enters the soft tissue, the effect of the tissue wrapped around the puncture needle on the asymmetric needle tip will cause the puncture needle's incident trajectory to bend, resulting in a deviation from the ideal line.
[0004] Usually, doctors will manually insert the needle during surgery, and generally use two methods to adjust the position of the puncture needle: 1. Control the deflection direction of the puncture needle by rotating it while inserting the needle, and adjust it through force perception and insertion results during the insertion process to gradually approach the target position. However, this manual operation method is limited by the doctor's manual skills and perception ability, and there may be certain errors and instability; 2. Apply a corrective force near the insertion point, and apply a corrective force perpendicular to the insertion direction of the needle to the needle body to achieve needle steering, but the size and timing of the corrective force require high operating accuracy from the doctor, and improper operation may cause patient tissue tearing. Therefore, how to accurately control the insertion of the puncture needle is an urgent problem to be solved. Summary of the invention
[0005] The present application provides a puncture needle insertion control method, a controller and a surgical robot, which are used to solve the problems in the prior art of frequent position adjustment of the puncture needle and inability to accurately control the puncture needle during the puncture needle insertion process.
[0006] In a first aspect, the present application provides a puncture needle insertion control method, which is applied to a controller in a surgical robot, wherein the surgical robot further comprises a motor connected to the controller and a puncture needle connected to the motor, wherein the motor is used to control the movement of the puncture needle, comprising:
[0007] In response to the needle insertion instruction, acquiring the actual needle insertion position of the puncture needle, the lesion position of the target object, and the first actual needle insertion path of the puncture needle;
[0008] Performing path planning based on the actual needle insertion position and the lesion position to obtain a planned needle insertion trajectory;
[0009] Inputting the first actual needle insertion path and the planned needle insertion trajectory into a pre-trained prediction model to obtain adjustment control parameters of the motor;
[0010] Based on the adjustment control parameter, the adjusted needle position after the puncture needle moves is obtained, and when the adjusted needle position does not match the lesion position, a new adjusted needle position is iteratively obtained until the new adjusted needle position matches the lesion position.
[0011] In one embodiment, the obtaining of the actual insertion position of the puncture needle, the lesion position of the target object, and the first actual insertion path of the puncture needle includes:
[0012] Using initial control parameters to drive the motor to control the movement of the puncture needle, and using an ultrasonic device to collect at least one first ultrasonic image containing the puncture needle and the target object during the movement of the puncture needle;
[0013] Acquiring a first needle position of the puncture needle in each of the first ultrasound images;
[0014] Performing a three-dimensional transformation on the first needle position using a pre-constructed transformation matrix to obtain a second needle position;
[0015] Based on each of the second needle positions, determining the actual insertion position of the puncture needle and the first actual insertion path of the puncture needle;
[0016] as well as
[0017] Any of the ultrasound images is input into a pre-trained lesion determination model to obtain the image position of the lesion of the target object in the ultrasound image, and the image position is three-dimensionally transformed using the transformation matrix to obtain the lesion position.
[0018] In one of the embodiments, the prediction model includes a trajectory prediction model and a parameter prediction model;
[0019] The step of inputting the first actual needle insertion path and the planned needle insertion trajectory into a pre-trained prediction model to obtain adjustment control parameters includes:
[0020] Inputting at least one second needle position included in the first actual needle insertion path into the trajectory prediction model to obtain a first predicted needle insertion path; the first predicted needle insertion path includes at least one first predicted needle position;
[0021] Matching a first planned needle position corresponding to each first predicted needle position on the planned needle insertion trajectory, and calculating a first coordinate difference between each first predicted needle position and the corresponding first planned needle position;
[0022] The set formed by the first coordinate difference values is input into the parameter prediction model to obtain the adjustment control parameter.
[0023] In one embodiment, the step of inputting at least one second needle position included in the first actual needle insertion path into the trajectory prediction model to obtain a first predicted needle insertion path includes:
[0024] Obtaining a second coordinate difference between any adjacent second needle positions;
[0025] The set formed by the second coordinate difference and the first second needle position are input into the trajectory prediction model to obtain the first predicted needle insertion path.
[0026] In one embodiment, obtaining the adjusted needle position of the puncture needle based on the adjustment control parameter includes:
[0027] The motor is driven by the adjustment control parameter to control the movement of the puncture needle, and during the movement of the puncture needle, a second ultrasound image including the puncture needle and the target object is acquired by the ultrasound device;
[0028] Acquire a third needle tip position of the puncture needle in each of the second ultrasound images;
[0029] Performing a three-dimensional transformation on the third needle position using the transformation matrix to obtain a fourth needle position;
[0030] Based on each of the fourth needle positions, the adjusted needle position is determined.
[0031] In one embodiment, after obtaining the adjusted needle position of the puncture needle based on the adjustment control parameter, the method further comprises:
[0032] Based on each of the fourth needle positions, determining a second actual needle insertion path of the puncture needle;
[0033] The iterative acquisition of a new adjustment needle position includes:
[0034] Inputting the second actual needle insertion path and the planned needle insertion trajectory into the prediction model to obtain new adjustment control parameters;
[0035] Based on the new adjustment control parameters, a new adjustment needle position is obtained.
[0036] In one embodiment, the step of inputting the second actual needle insertion path and the planned needle insertion trajectory into the prediction model to obtain new adjustment control parameters includes:
[0037] Inputting at least one fourth needle position included in the second actual needle insertion path into the trajectory prediction model to obtain a second predicted needle insertion path; the second predicted needle insertion path includes at least one second predicted needle position;
[0038] Matching the second planned needle positions corresponding to each of the second predicted needle positions on the planned needle insertion trajectory, and calculating the third coordinate difference between each of the second predicted needle positions and the corresponding second planned needle positions;
[0039] The set formed by the third coordinate difference is input into the parameter prediction model to obtain new adjustment control parameters.
[0040] In one embodiment, obtaining a new adjustment needle position based on the new adjustment control parameter includes:
[0041] Using the new adjustment control parameters to drive the motor to control the movement of the puncture needle, and during the movement of the puncture needle, using the ultrasound device to collect a third ultrasound image containing the puncture needle and the target object;
[0042] Acquiring a fifth needle position of the puncture needle in each of the third ultrasonic images;
[0043] Performing a three-dimensional transformation on the fifth needle position using the transformation matrix to obtain a sixth needle position;
[0044] Based on each of the sixth needle positions, a new adjusted needle position is determined.
[0045] In a second aspect, the present application further provides a controller, the controller comprising: a memory, a processor;
[0046] The memory is used to store computer control instructions; when the processor executes the computer program, the puncture needle insertion control method described in any of the above embodiments is implemented.
[0047] In a third aspect, the present application also provides a surgical robot, including the controller, puncture needle and motor described in the above embodiment;
[0048] The controller is connected to the puncture needle and the motor respectively, and is used to drive the motor according to the generated needle insertion control parameters;
[0049] The motor is connected to the puncture needle and is used to control the puncture needle to advance according to the needle advancement control parameters.
[0050] The above-mentioned puncture needle insertion control method, controller and surgical robot can perform intraoperative planning of the movement path of the puncture needle to the lesion according to a short needle insertion path actually generated by the puncture needle in the patient's body, obtain the planned needle insertion trajectory, and predict the adjustment control parameters that the motor needs to adopt based on the short needle insertion path actually generated, so as to compensate for the path deviation phenomenon that may occur in the puncture needle by adjusting the control parameters, so that the puncture needle can be moved to the lesion position as closely as possible according to the planned needle insertion trajectory under the control of the motor, thereby realizing precise control of the puncture needle, so that the actual needle insertion path of the puncture needle can minimize the trauma range in the patient's body, reduce the patient's prostate tissue trauma, and reduce the postoperative recovery time. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0052] Figure 1 is a schematic diagram of the structure of a surgical robot in one embodiment;
[0053] Figure 2 A schematic diagram of a flow chart of a puncture needle insertion control method in one embodiment;
[0054] Figure 3 A schematic diagram of the positions of the xy plane where the initial image is located and the robot coordinate system represented by the coordinate position information in one embodiment;
[0055] Figure 4 FIG. 4 is a diagram showing the internal structure of a controller in one embodiment.
[0056] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0058] A prostate biopsy needle is a medical device used for prostate biopsy. A prostate biopsy needle can obtain tissue samples from patients by puncturing the prostate. Usually, a prostate biopsy needle consists of a thin metal needle and a handle. The doctor needs to manually insert the metal needle into the patient's rectum and apply force to the handle with the assistance of magnetic resonance imaging (MRI) and transrectal ultrasound (TRUS) images to complete the insertion of the needle. This manual operation method is completely dependent on the doctor's manual skills and perception ability, and there may be certain errors and instability.
[0059] The puncture needle insertion control method provided in this application can be applied to Figure 1 The surgical robot 100 shown includes a controller 110, a puncture needle 120 and a motor 130; the controller 110 is connected to the motor 130, and the controller 110 is used to implement the puncture needle insertion control method provided in the embodiment of the present application to generate adjustment control parameters for driving the motor 130; the motor 130 is connected to the puncture needle 120, and is used to control the insertion of the puncture needle 120 according to the adjustment control parameters.
[0060] The motor 130 can control the rotation angle and translation distance of the puncture needle 120 by controlling the rotation of the motor rotor.
[0061] In one embodiment, a puncture needle insertion control method is provided. Figure 2 As shown, the puncture needle insertion control method includes:
[0062] Step 202: In response to the needle insertion instruction, the actual insertion position of the puncture needle, the lesion position of the target object, and the first actual insertion path of the puncture needle are acquired.
[0063] The needle insertion instruction refers to an instruction to puncture the puncture needle 120 in the surgical robot 100 into the patient's lesion. The needle insertion instruction may be sent to the controller 110 in the surgical robot 100. When the surgical robot 100 is used for extracting prostate tissue, the patient's lesion may refer to the patient's prostate region.
[0064] As an example, the needle insertion instruction may be issued by the doctor through a fixed component on the human-computer interaction interface external to the surgical robot 100, where the fixed component may refer to a pre-built page or applet; alternatively, the needle insertion instruction may be issued by the doctor through a fixed button set on the surgical robot 100.
[0065] The target object can be understood as a specific patient.
[0066] The actual insertion position of the puncture needle refers to the spatial position of the puncture needle 120 on the patient's body surface corresponding to the insertion position of the puncture needle 120 in the robot coordinate system established based on the puncture needle insertion control robot 100 when the controller 110 drives the motor 130 according to the pre-stored initial control parameters to control the puncture needle 120 to puncture from the patient's body outside the patient's body; the lesion coordinate position of the target object refers to the spatial position corresponding to the patient's prostate tissue in the robot coordinate system, and the corresponding lesion position can be an area composed of multiple spatial positions. Among them, the robot coordinate system can be a three-dimensional coordinate system.
[0067] The first actual needle insertion path refers to the needle insertion path generated when the controller 110 drives the motor 130 according to the pre-stored initial control parameters within the preset time length to control the puncture needle 120 to perform the first puncture action from outside the patient's body. The first actual needle insertion path may be a three-dimensional path formed in the robot coordinate system. The preset time length may be 20ms.
[0068] Step 204: perform path planning based on the actual needle insertion position and the lesion position to obtain a planned needle insertion trajectory.
[0069] The planned needle insertion trajectory may refer to a continuous three-dimensional path planned in the robot coordinate system with the actual needle insertion position as the starting point and the lesion position as the end point.
[0070] The planned needle insertion trajectory can be the shortest path from the actual needle insertion position to the lesion position.
[0071] Step 206: Input the first actual needle insertion path and the planned needle insertion trajectory into a pre-trained prediction model to obtain adjustment control parameters of the motor.
[0072] The prediction model can adopt common convolutional networks, long short-term memory networks, etc., and can be trained based on multiple sample needle insertion paths, wherein each sample needle insertion path carries a predicted path label, and the predicted path label is used to indicate the predicted needle insertion path corresponding to the current sample needle insertion path.
[0073] The adjustment control parameters output by the prediction model can make parameter improvements based on the initial control parameters of the motor 130 to compensate for the possible path deviation of the puncture needle 120, so that the actual insertion path of the puncture needle 120 can be as consistent as possible with the planned insertion trajectory.
[0074] Adjusting the control parameters refers to the operating parameters of the motor 130 in the surgical robot 100 when controlling the puncture needle 120 to further advance the needle and generate the next actual needle insertion path based on the first actual needle insertion path, including but not limited to the rotation speed and acceleration of the motor rotor. The setting of these operating parameters can affect the puncture direction, puncture depth, speed, accuracy, etc. of the puncture needle 120, thereby achieving precise control of the rotation angle and translation distance of the puncture needle 120. At the same time, by reasonably setting the actual operating parameters of the motor, the puncture efficiency can be improved and the puncture damage can be reduced.
[0075] Step 208: based on the adjustment control parameters, the adjusted needle position after the puncture needle is moved is obtained, and when the adjusted needle position does not match the lesion position, a new adjusted needle position is iteratively obtained until the new adjusted needle position matches the lesion position.
[0076] Adjusting the needle position refers to the position of the needle of the puncture needle 120 after the controller 110 drives the motor 130 according to the adjusted control parameters to control the puncture needle 120 to further advance through the motor 130 and generate the next actual needle insertion path.
[0077] In this step, after the controller 110 drives the motor 130 according to the adjustment control parameters within the preset time length to control the puncture needle 120 to perform the second needle insertion action, the position of the needle tip of the puncture needle 120 at this time can be obtained as the adjusted needle tip position, and the adjusted needle tip position is further compared with the lesion position. If the adjusted needle tip position at this time is consistent with the lesion position, it can be considered that the needle tip of the puncture needle 120 has reached the lesion area of the target object. Otherwise, the controller can input the actual needle insertion path and the planned needle insertion trajectory generated when the puncture needle 120 performs the second needle insertion action into the prediction model again. , obtain new adjustment control parameters, and drive the motor 130 according to the new adjustment control parameters to control the puncture needle 120 to perform the third needle insertion action, and further obtain the needle tip position of the puncture needle 120 at this time as the new adjustment needle tip position...and so on, until the controller 110 inputs the actual needle insertion path and the planned needle insertion trajectory generated when the puncture needle performs the n-1th needle insertion action into the prediction model, and drives the motor 130 according to the adjustment control parameters output by the prediction model to control the puncture needle 120 to perform the nth needle insertion action, and the needle tip position of the puncture needle 120 at this time is consistent with the lesion position.
[0078] In the above-mentioned puncture needle insertion control method, the motor can be first driven according to the pre-stored initial control parameters, so that the puncture needle penetrates into the patient's body and generates a short actual needle insertion path within a preset time length. Then, according to the insertion position of the puncture needle on the patient's body surface and this actual needle insertion path, the adjustment control parameters that the motor needs to adopt within the next preset time length are predicted, so as to compensate for the path deviation phenomenon that may occur in the puncture needle by adjusting the control parameters, so that the puncture needle can be controlled by the motor and move to the lesion position as much as possible according to the planned needle insertion trajectory, so that the actual needle insertion path of the puncture needle can minimize the trauma range in the patient's body, reduce the patient's prostate tissue trauma, and reduce the postoperative recovery time.
[0079] In some optional embodiments, step 202 includes:
[0080] Using the initial control parameters to drive the motor to control the movement of the puncture needle, and during the movement of the puncture needle, using an ultrasonic device to collect at least one first ultrasonic image including the puncture needle and the target object;
[0081] Acquiring a first needle position of the puncture needle in each first ultrasound image;
[0082] Performing a three-dimensional transformation on the first needle position using a pre-constructed transformation matrix to obtain a second needle position;
[0083] Based on each second needle position, determining the actual insertion position of the puncture needle and the first actual insertion path of the puncture needle;
[0084] as well as
[0085] Any ultrasound image is input into a pre-trained lesion determination model to obtain the image position of the lesion of the target object in the ultrasound image, and the image position is three-dimensionally transformed using a transformation matrix to obtain the lesion position.
[0086] The ultrasound device may include an ultrasound probe and a display device. The ultrasound probe constructs an image of the target puncture needle and the target object by transmitting and receiving ultrasound waves, and these ultrasound waves are converted into images and displayed on the screen of the display device. Accordingly, the first ultrasound image may refer to an ultrasound image including the puncture needle 120 and the patient.
[0087] The ultrasound device may continuously acquire the first ultrasound image at a preset frequency.
[0088] Exemplarily, the first ultrasound image can be input into a pre-trained image segmentation model to obtain a first needle position. The image segmentation model can adopt a UNet model and be pre-trained using a variety of sample ultrasound images. In this step, after the first ultrasound image including the puncture needle 120 and the patient is input into the trained image segmentation model, the image position of the needle of the puncture needle 120 in the first ultrasound image can be output as the first needle position.
[0089] Among them, in the step of performing three-dimensional transformation on the first needle position using a transformation matrix, the first needle position needs to be first converted into an image coordinate point in an image coordinate system established based on the ultrasound device, and then the image coordinate point is converted into a coordinate point in the robot coordinate system.
[0090] The transformation matrix can be constructed based on the acquisition parameter information of the ultrasound device. The specific process includes:
[0091] The acquisition parameter information corresponding to the ultrasound device may refer to the physical structure and parameters of the ultrasound probe, such as the position, orientation, angle, and other information of the ultrasound probe. Specifically, it may include the focal length information of the ultrasound probe on the x-axis and y-axis of the image coordinate system, and the aperture center information of the ultrasound probe. The intrinsic parameter matrix of the ultrasound probe can be directly obtained from the acquisition parameter information. ,in, , Refers to the focal length information of the ultrasonic probe on the x-axis and y-axis of the image coordinate system. , Indicates the aperture center information of the ultrasonic probe.
[0092] If the first needle position is to be converted into an image coordinate point in the image coordinate system, it is first assumed that the ultrasound image is on the uv platform. Secondly, the first ultrasound image first needs to be converted from the uv plane to the same image processing dimension as the image coordinate system, which involves the conversion of the origin and the measurement unit. Therefore, the conversion relationship between the image position on the imaging uv plane of the first ultrasound image and the coordinate position in the image coordinate system can be expressed as: ,in, , Respectively represent the difference ratio between the measurement unit (for example, nm) of the distance between coordinate points in the image coordinate system and the measurement unit of the pixel points on the uv plane, , They represent the difference between the origin formed by the optical axis of the ultrasonic probe and the origin on the uv plane, which can be further expressed as .
[0093] Furthermore, the coordinate positions in the image coordinate system are converted into the coordinate positions in the robot coordinate system, which involves the adjustment of the scale, such as Figure 3As shown, the xy plane refers to the image coordinate system. , , The plane is the robot coordinate system, connecting the origin of the robot coordinate system and the coordinate position in the first ultrasound image , and after extension, it can be constructed as Figure 3 The mapping diagram shown in FIG. , which can be further expressed as .
[0094] Converting the coordinate position in the image coordinate system to the coordinate position in the robot coordinate system is a rigid body transformation, which only requires rotation and translation. As an example, the origin of the image coordinate system , X-axis , Y axis , Z axis The origin of the robot coordinate system , X-axis , Y axis , Z axis The conversion relationship between =R +T represents, where R represents the rotation matrix and T represents the translation vector. It can be further converted to = , R: 3 3, T: 3 1. It can be understood as the external parameter of the ultrasonic probe.
[0095] The first needle position (u, v) in the first ultrasound image is transformed three-dimensionally to obtain the corresponding second needle position ( , , ) can be expressed as: .
[0096] The actual needle insertion position may be the second needle position corresponding to the first needle position in the first first ultrasound image, that is, the first second needle position, and the first actual needle insertion path may be a three-dimensional path formed by straightly connecting the second needle positions corresponding to the first needle position in each first ultrasound image in the order of acquisition of the first ultrasound images.
[0097] The lesion determination model can adopt a deep neural network model and be trained in advance using multiple sample three-dimensional models for representing the patient's body, and the coordinate positions representing the lesions in the sample three-dimensional models are pre-marked.
[0098] In some optional embodiments, the prediction model includes a trajectory prediction model and a parameter prediction model;
[0099] Step 206 includes:
[0100] Inputting at least one second needle position included in the first actual needle insertion path into the trajectory prediction model to obtain a first predicted needle insertion path; the first predicted needle insertion path includes at least one first predicted needle position;
[0101] Matching the first planned needle positions corresponding to the first predicted needle positions on the planned needle insertion trajectory, and calculating the first coordinate difference between each first predicted needle position and the corresponding first planned needle position;
[0102] The set formed by the first coordinate difference is input into the parameter prediction model to obtain the adjustment control parameter.
[0103] The trajectory prediction model can adopt a long short-term memory network. The training process of the trajectory prediction model includes: based on the robot coordinate system, obtaining multiple groups of first samples, and each group of first samples contains two continuous puncture trajectories, which are formed by the motor controlling the puncture needle to move continuously for two preset time periods based on the same control parameters. The puncture trajectory formed by the puncture needle moving within the first preset time period contains a number of trajectory coordinates, which form a first training sample. Each first training sample carries a coordinate label, and the coordinate label is used to indicate the number of trajectory coordinates contained in the puncture trajectory formed by the puncture needle moving within the second preset time period; using multiple first training samples to train the initial long short-term memory network until the model converges to obtain a trained trajectory prediction model.
[0104] The trajectory prediction model is based on the actual insertion path of the puncture needle 120 in the previous preset time period, and predicts the possible insertion path of the puncture needle 120 in the next preset time period when the control parameters of the motor 130 remain unchanged.
[0105] In this step, at least one second needle position included in the first actual needle insertion path is input into the trajectory prediction model. The trajectory prediction model can, for example, output at least one first predicted needle position sorted in sequence, and connect any adjacent first predicted needle positions in a straight line to obtain the first predicted needle insertion path.
[0106] For example, a coordinate point on the planned needle insertion trajectory that is in the same preset direction as the first predicted needle position can be used as the first planned needle position. As an example, the preset direction is the direction of the y-axis. When the trajectory prediction model outputs a plurality of first predicted needle positions ( , , )、( , , )…( , , ), t is used to refer to the first predicted needle position, and the x coordinate can be further selected from the planned needle insertion trajectory. … Point is taken as the first planned needle position, and the first planned needle position can be specifically expressed as ( , , )、( , , )…( , , ), p is used to refer to the coordinate point on the planned needle insertion trajectory.
[0107] Further obtaining the first coordinate difference between the first predicted needle position and the corresponding first planned needle position, the first coordinate difference can be obtained as ( , , )、( , , )…( , , ).
[0108] The parameter prediction model can also use a long short-term memory network. The training process of the parameter prediction model includes: based on the robot coordinate system, obtaining multiple groups of second samples, and each group of second samples contains two puncture trajectories, which are formed by puncturing from the same starting point of the puncture needle. According to the preset interval, several pairs of sample coordinate positions corresponding to the two puncture trajectories in the preset direction are obtained, and the sample coordinate difference corresponding to each pair of sample coordinate positions is further calculated. The set formed by the several sample coordinate differences corresponding to each group of sample puncture trajectories is used as a second training sample, and a parameter label is marked on the second training sample. The parameter label is used to indicate the difference in actual control parameters of the motor when the puncture needle forms the above two puncture trajectories respectively; multiple second training samples are used to train the initial long short-term memory network until the model converges to obtain a trained parameter prediction model.
[0109] The parameter prediction model is used to predict the adjustment control parameters of the motor 130 based on a number of first coordinate differences formed between a number of first predicted needle positions and the corresponding first planned needle positions; the motor 130 operates based on the adjustment control parameters, and is used to control the puncture needle 120 to adjust the rotation angle and translation distance, so that the trajectory formed by further insertion of the puncture needle 120 can conform to the planned needle insertion trajectory.
[0110] In some optional embodiments, the step of inputting at least one second needle position included in the first actual needle insertion path into the trajectory prediction model to obtain the first predicted needle insertion path includes:
[0111] Obtaining a second coordinate difference between any adjacent second needle positions;
[0112] The set formed by the second coordinate difference and the first second needle position are input into the trajectory prediction model to obtain the first predicted needle insertion path.
[0113] The above-mentioned method of using the first training sample to train and obtain the trajectory prediction model requires collecting a large number of first samples in the same robot coordinate system. The sample quantity requirement is large and the collection difficulty is large. In this embodiment, the training process of the trajectory prediction model includes: obtaining multiple groups of third samples, and each group of third samples includes two continuous puncture trajectories, which are formed by the motor controlling the puncture needle to move continuously for two preset time periods based on the same control parameters. The puncture trajectory formed by the puncture needle moving within the first preset time period includes a number of trajectory coordinates, and the set of coordinate differences between the first trajectory coordinates and any adjacent trajectory coordinates forms a third training sample (a combination of the first trajectory coordinates + coordinate differences). Each third training sample carries a coordinate label, and the coordinate label is used to indicate the number of trajectory coordinates contained in the puncture trajectory formed by the puncture needle moving within the second preset time period; using multiple third training samples to train the initial long short-term memory network until the model converges to obtain a trained trajectory prediction model. This embodiment can reduce the number of samples required to train the trajectory prediction model.
[0114] In this embodiment, the input of the trajectory prediction model is a set formed by the second coordinate difference between the first second needle position and any adjacent second needle positions in the needle insertion path formed by the puncture needle within the previous preset time length, and the output is at least one first predicted needle position sorted in sequence. Any adjacent first predicted needle positions are connected by a straight line to obtain a first predicted needle insertion path, which is used to indicate the needle insertion path that the puncture needle 120 may generate within the next preset time length when the control parameters of the motor 130 remain unchanged.
[0115] In some optional embodiments, step 208 includes:
[0116] The motor is driven by adjusting the control parameters to control the movement of the puncture needle, and during the movement of the puncture needle, a second ultrasound image including the puncture needle and the target object is collected by using an ultrasound device;
[0117] Acquire a third needle tip position of the puncture needle in each second ultrasound image;
[0118] Performing a three-dimensional transformation on the third needle position using a transformation matrix to obtain a fourth needle position;
[0119] Based on each fourth needle position, an adjusted needle position is determined.
[0120] The ultrasound device may continuously acquire the second ultrasound image at a preset frequency.
[0121] In this step, after the second ultrasound image including the puncture needle 120 and the patient is input into the above-mentioned image segmentation model, the image position of the needle tip of the puncture needle 120 in the second ultrasound image is output as the third needle tip position.
[0122] The above-mentioned transformation matrix is further used to perform three-dimensional transformation on the third needle position in the second ultrasound image to obtain the corresponding fourth needle position in the robot coordinate system. The three-dimensional transformation process is the same as the process of converting the first needle position into the second needle position, and will not be repeated again.
[0123] The needle position may be adjusted to the third needle position in the last second ultrasound image and the corresponding fourth needle position in the robot coordinate system, that is, it can be understood as the position of the puncture needle 120 after performing the second needle insertion action.
[0124] In some optional embodiments, after the step of obtaining the adjusted needle position of the puncture needle based on the adjusted control parameter, the following steps are included:
[0125] Based on each fourth needle position, determining a second actual needle insertion path of the puncture needle;
[0126] Step 208 also includes:
[0127] The second actual needle insertion path and the planned needle insertion trajectory are input into the prediction model to obtain new adjustment control parameters;
[0128] Based on the new adjustment control parameters, a new adjustment needle position is obtained.
[0129] The second actual needle insertion path may be a three-dimensional path formed by straightly connecting the fourth needle position corresponding to the third needle position in each second ultrasound image according to the acquisition order of the second ultrasound images.
[0130] The step of inputting the second actual needle insertion path and the planned needle insertion trajectory into the prediction model to obtain new adjustment control parameters includes: inputting at least one fourth needle position contained in the second actual needle insertion path into the trajectory prediction model to obtain a second predicted needle insertion path; the second predicted needle insertion path contains at least one second predicted needle position; matching the second planned needle position corresponding to each second predicted needle position on the planned needle insertion trajectory, and calculating the third coordinate difference between each second predicted needle position and the corresponding second planned needle position; inputting the set formed by the second coordinate difference into the parameter prediction model to obtain new adjustment control parameters.
[0131] The process of obtaining new adjustment control parameters corresponds to the process of obtaining the adjustment control parameters after the puncture needle 120 performs the first needle insertion action, and will not be repeated here.
[0132] Based on the new adjustment control parameters, the steps of obtaining a new adjustment needle position include: using the new adjustment control parameters to drive the motor to control the movement of the puncture needle, and during the movement of the puncture needle, using an ultrasonic device to collect a third ultrasonic image containing the puncture needle and the target object; obtaining a fifth needle position of the puncture needle in each third ultrasonic image; using a transformation matrix to perform a three-dimensional transformation on the fifth needle position to obtain a sixth needle position; and determining a new adjustment needle position based on each sixth needle position.
[0133] The process of obtaining a new needle position adjustment corresponds to the process of obtaining the needle position adjustment after the puncture needle 120 performs the second needle insertion action, and will not be repeated here.
[0134] The above-mentioned puncture needle insertion control method can first drive the motor according to the pre-stored initial control parameters, so that the puncture needle penetrates into the patient's body and generates a short actual needle insertion path within a preset time length, and then predicts the adjustment control parameters that the motor needs to adopt within the next preset time length according to the insertion position of the puncture needle on the patient's body surface and this actual needle insertion path, so as to compensate for the path deviation phenomenon that may occur in the puncture needle by adjusting the control parameters, so that the puncture needle can be controlled by the motor and move to the lesion position as much as possible according to the planned needle insertion trajectory, so that the actual needle insertion path of the puncture needle can minimize the trauma range in the patient's body, reduce the patient's prostate tissue trauma, and reduce the postoperative recovery time.
[0135] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0136] In one embodiment, a controller is provided, whose internal structure diagram can be as follows: Figure 4As shown. The controller includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the controller is used to provide computing and control capabilities. The memory of the controller includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the controller is used to exchange information between the processor and an external device. The communication interface of the controller is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a puncture needle insertion control method is implemented. The display unit of the controller is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the controller can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the puncture needle housing.
[0137] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the controller to which the scheme of the present application is applied. The specific controller may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0139] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0140] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A controller for inserting a puncture needle, characterized in that: Applied to a surgical robot, the surgical robot further comprises a motor connected to the controller and a puncture needle connected to the motor, the motor is used to control the movement of the puncture needle, and the controller is used to: In response to the needle insertion instruction, acquiring the actual needle insertion position of the puncture needle, the lesion position of the target object, and the first actual needle insertion path of the puncture needle; Performing path planning based on the actual needle insertion position and the lesion position to obtain a planned needle insertion trajectory; Inputting the first actual needle insertion path and the planned needle insertion trajectory into a pre-trained prediction model to obtain adjustment control parameters of the motor; the prediction model includes a trajectory prediction model and a parameter prediction model; Based on the adjustment control parameter, an adjusted needle position after the puncture needle is moved is obtained, and when the adjusted needle position does not match the lesion position, the step of obtaining a new adjusted needle position is repeated until the new adjusted needle position matches the lesion position; When the controller inputs the first actual needle insertion path and the planned needle insertion trajectory into a pre-trained prediction model to obtain the adjustment control parameters, the controller is specifically used to: Inputting at least one second needle position included in the first actual needle insertion path into the trajectory prediction model to obtain a first predicted needle insertion path; the first predicted needle insertion path includes at least one first predicted needle position; Matching a first planned needle position corresponding to each first predicted needle position on the planned needle insertion trajectory, and calculating a first coordinate difference between each first predicted needle position and the corresponding first planned needle position; The set formed by the first coordinate difference values is input into the parameter prediction model to obtain the adjustment control parameter.
2. The controller according to claim 1, characterized in that: When acquiring the actual insertion position of the puncture needle, the lesion position of the target object, and the first actual insertion path of the puncture needle, the controller is specifically used to: Using initial control parameters to drive the motor to control the movement of the puncture needle, and using an ultrasonic device to collect at least one first ultrasonic image containing the puncture needle and the target object during the movement of the puncture needle; Acquiring a first needle position of the puncture needle in each of the first ultrasound images; Performing a three-dimensional transformation on the first needle position using a pre-constructed transformation matrix to obtain a second needle position in a robot coordinate system; the transformation matrix is constructed based on acquisition parameter information of the ultrasound device; Based on each of the second needle positions, determining the actual insertion position of the puncture needle and the first actual insertion path of the puncture needle; as well as Any of the first ultrasound images is input into a pre-trained lesion determination model to obtain the image position of the lesion of the target object in the ultrasound image, and the image position is three-dimensionally transformed using the transformation matrix to obtain the lesion position.
3. The controller according to claim 1, characterized in that: When the controller inputs at least one second needle position included in the first actual needle insertion path into the trajectory prediction model to obtain the first predicted needle insertion path, the controller is specifically used to: Obtaining a second coordinate difference between any adjacent second needle positions; The set formed by the second coordinate difference and the first second needle position are input into the trajectory prediction model to obtain the first predicted needle insertion path.
4. The controller according to claim 1, characterized in that: When the controller obtains the adjusted needle position of the puncture needle based on the adjustment control parameter, it is specifically used to: The motor is driven by the adjustment control parameter to control the movement of the puncture needle, and during the movement of the puncture needle, a second ultrasound image including the puncture needle and the target object is acquired by the ultrasound device; Acquire a third needle tip position of the puncture needle in each of the second ultrasound images; Performing a three-dimensional transformation on the third needle position using the transformation matrix to obtain a fourth needle position; Based on each of the fourth needle positions, the adjusted needle position is determined.
5. The controller according to claim 4, characterized in that: After obtaining the adjusted needle position of the puncture needle based on the adjustment control parameter, the controller is further used to: Based on each of the fourth needle positions, determining a second actual needle insertion path of the puncture needle; When the controller repeatedly obtains a new adjustment needle position, it is specifically used to: Inputting the second actual needle insertion path and the planned needle insertion trajectory into the prediction model to obtain new adjustment control parameters; Based on the new adjustment control parameters, a new adjustment needle position is obtained.
6. The controller according to claim 5, characterized in that: When the controller inputs the second actual needle insertion path and the planned needle insertion trajectory into the prediction model to obtain new adjustment control parameters, the controller is specifically used to: Inputting at least one fourth needle position included in the second actual needle insertion path into the trajectory prediction model to obtain a second predicted needle insertion path; the second predicted needle insertion path includes at least one second predicted needle position; Matching the second planned needle positions corresponding to each of the second predicted needle positions on the planned needle insertion trajectory, and calculating the third coordinate difference between each of the second predicted needle positions and the corresponding second planned needle positions; The set formed by the third coordinate difference is input into the parameter prediction model to obtain new adjustment control parameters.
7. The controller according to claim 5, characterized in that: When the controller obtains a new adjustment needle position based on the new adjustment control parameter, it is specifically used to: Using the new adjustment control parameters to drive the motor to control the movement of the puncture needle, and during the movement of the puncture needle, using the ultrasound device to collect a third ultrasound image containing the puncture needle and the target object; Acquiring a fifth needle position of the puncture needle in each of the third ultrasonic images; Performing a three-dimensional transformation on the fifth needle position using the transformation matrix to obtain a sixth needle position; Based on each of the sixth needle positions, a new adjusted needle position is determined.
8. A surgical robot, characterized in that: comprising a controller, a puncture needle and a motor as described in any one of claims 1 to 7; The controllers are respectively connected to the motors and are used to drive the motors according to the pre-stored initial control parameters and the generated adjustment control parameters; The motor is connected to the puncture needle and is used to drive the puncture needle to control the movement of the puncture needle.
Citation Information
Patent Citations
Robot-assisted puncture method, robot-assisted puncture system and robot-assisted puncture device
CN107928791A
System and workflow for grid-less transperineal prostate interventions
CN108289714A
Target point puncture method, device, storage medium and computer equipment
CN110192911A
Surgical puncture path intelligent automatic planning method and system and medical system
CN112155729A
Feedback continuous positioning control of end-effectors
CN113507899A
