[go: up one dir, main page]

WO2024149161A1 - Catheter robot and registration method therefor, and readable storage medium - Google Patents

Catheter robot and registration method therefor, and readable storage medium Download PDF

Info

Publication number
WO2024149161A1
WO2024149161A1 PCT/CN2024/070741 CN2024070741W WO2024149161A1 WO 2024149161 A1 WO2024149161 A1 WO 2024149161A1 CN 2024070741 W CN2024070741 W CN 2024070741W WO 2024149161 A1 WO2024149161 A1 WO 2024149161A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
catheter
skeleton
points
pipeline centerline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2024/070741
Other languages
French (fr)
Chinese (zh)
Inventor
朱裕荣
刘小龙
高元倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Edge Medical Co Ltd
Original Assignee
Shenzhen Edge Medical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Edge Medical Co Ltd filed Critical Shenzhen Edge Medical Co Ltd
Publication of WO2024149161A1 publication Critical patent/WO2024149161A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B34/00Computer-aided surgery; Manipulators or robots specially adapted for use in surgery
    • A61B34/20Surgical navigation systems; Devices for tracking or guiding surgical instruments, e.g. for frameless stereotaxis
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B34/00Computer-aided surgery; Manipulators or robots specially adapted for use in surgery
    • A61B34/30Surgical robots
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form

Definitions

  • the present application relates to the technical field of surgical robots, and in particular, to a catheter robot, a catheter robot registration method, and a readable storage medium.
  • Minimally invasive medical technology intends to reduce the amount of tissue damaged during medical procedures to reduce patient recovery time, discomfort and harmful side effects.
  • it is often necessary to insert a catheter through a natural orifice in the patient's anatomy or through a surgical incision, and with the cooperation of an intraoperative navigation system, pass through the complex structure of the human body to reach or approach the target.
  • the catheter moves along the human body's ducts (such as bronchi, blood vessels, ureters, etc.) and does not shuttle freely in a way that damages the ducts. Therefore, it can be considered that the movement path of the catheter/instrument is confined within the human body's ducts and is similar to the centerline of the human body's ducts. Especially for smaller ducts, due to the limited radial range of motion, the movement path is more similar to the centerline.
  • the intraoperative navigation system can use point cloud registration to detect and display the position of the catheter tip and/or the instrument tip carried by the catheter in real time.
  • the path data of the catheter/instrument movement can be collected by sensors and matched with the pipeline centerline data in the patient's anatomical model.
  • the coordinate transformation between the two can be determined through point cloud registration, thereby obtaining the real-time position of the catheter/instrument.
  • Point cloud registration in related technologies uses the shortest Euclidean distance criterion to find corresponding point pairs, and then calculates coordinate transformation based on the corresponding point pairs.
  • the inventors found that due to the complexity of human body pipes and the influence of patient movement, the use of the shortest Euclidean distance criterion may often result in incorrect corresponding point pairs. For example, the point on the pipe centerline corresponding to the path point of the catheter is not in the pipe where the catheter is currently located. As a result, the accuracy of point cloud registration is not high, which affects the accuracy of navigation during catheterization.
  • the embodiments of the present application provide a catheter robot alignment method, apparatus, and terminal device, which can solve the problem in the related art that it is difficult to accurately align path data.
  • an embodiment of the present application provides a catheter robot, which includes a robotic arm, a catheter instrument engaged with a power unit of the robotic arm, and a processor communicatively connected to the robotic arm, wherein the catheter instrument includes an instrument box configured to be engaged with the power unit and a catheter connected to the instrument box, and the catheter and/or the instrument carried by the catheter are provided with a sensor for measuring the position of the catheter and/or the instrument, and the processor is configured to perform the following steps: using the sensor to obtain actual path points of the catheter and/or the instrument; obtaining simulated path points of the catheter and/or the instrument corresponding to the actual path points in an anatomical model according to a first transformation matrix, wherein the anatomical model includes a pipeline centerline; determining a target pipeline centerline segment corresponding to the simulated path point among multiple pipeline centerline segments into which the pipeline centerline is divided; calculating the centroid of the target pipeline centerline segment; if the centroid is different from multiple skeleton points included in the target pipeline centerline segment
  • the processor is configured to perform the following steps after determining the connection line between the centroid and the simulated path point: if the centroid is one of multiple skeleton points, obtain the first perpendicular foot of the simulated path point to the projection line, and obtain the second perpendicular foot of each skeleton point to the projection line, the projection line is a straight line passing through the two end points of the target pipeline centerline segment; select the skeleton point corresponding to the second perpendicular foot with the shortest distance to the first perpendicular foot as the matching point of the actual path point.
  • the processor is configured to perform the following steps: update the point pair set using the first point pair consisting of the actual path point and its matching point; if the point pair set satisfies the first condition, use the point pair set to update the first transformation matrix, wherein the first condition includes that the number of point pairs in the point pair set is greater than a preset value.
  • the processor is configured to perform the following steps in updating the point pair set using the matching point pair consisting of the actual path point and its matching point: determining whether there is a second point pair including the matching point in the point pair set; if not, adding the first point pair to the point pair set; if so, The first distance is calculated for the matching points, and the second distance is calculated based on the path points and the matching points in the second point pair. If the first distance is less than the second distance, the second point pair is replaced by the first point pair.
  • the processor is configured to perform the following steps in updating the first transformation matrix using the point pair set: substituting the point pairs in the point pair set into the objective function to calculate the latest second transformation matrix; and updating the first transformation matrix according to the latest second transformation matrix.
  • the first transformation matrix is a weighted average of the latest second transformation matrix and at least part of the historical second transformation matrix, wherein the weight of the latest second transformation matrix is greater than the weight of the historical second transformation matrix.
  • the processor is configured to perform the following steps in extracting characteristic skeleton points from multiple skeleton points included in the pipeline centerline: determine the starting point; starting from the starting point, use the region growing method to search for skeleton points and count the connectivity number of the skeleton points, where the connectivity number is the number of all child nodes in the neighborhood of the skeleton point; if the connectivity number of the skeleton point is greater than 1, and the connectivity number of the parent node is equal to 1, then the skeleton point is a bifurcation point among the characteristic skeleton points; if the connectivity number of the skeleton point is equal to 1, and the connectivity number of the parent node is equal to 0, then the skeleton point is an end point among the characteristic skeleton points.
  • the processor is configured to perform the following steps in selecting a starting point: randomly selecting an integral layer; counting the total number of skeleton points in a specified number of layers on both sides of the body layer in a direction perpendicular to the cross section to determine the direction in which the airway extends; and finding the skeleton point of the tracheal entrance as the starting point based on the total number of skeleton points in the body layer and the direction in which the airway extends.
  • the processor is configured to perform the following steps: counting the number of skeleton points in the pipeline centerline segment; and deleting the pipeline centerline segment whose number is less than a preset threshold.
  • the present application provides a catheter robot registration method, the method comprising:
  • the invention is summarized as follows: using a sensor disposed on the catheter and/or an instrument carried by the catheter to obtain actual path points of the catheter and/or the instrument; obtaining simulated path points of the catheter and/or the instrument corresponding to the actual path points in an anatomical model according to a first transformation matrix, wherein the anatomical model includes a pipeline centerline; determining a target pipeline centerline segment corresponding to the simulated path point from a plurality of pipeline centerline segments into which the pipeline centerline is divided, wherein the target pipeline centerline segment includes a plurality of skeleton points; calculating the centroid of the target pipeline centerline segment; if the centroid is different from a plurality of skeleton points included in the target pipeline centerline segment, determining a connecting line between the centroid and the simulated path point, and selecting one of the plurality of skeleton points with the shortest distance to the connecting line as a matching point of the actual path point.
  • an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions are executed by a processor to implement the following method: obtaining actual path points of the catheter and/or the instrument using sensors disposed on the catheter and/or the instrument carried by the catheter; obtaining simulated path points of the catheter and/or the instrument corresponding to the actual path points in an anatomical model according to a first transformation matrix, wherein the anatomical model includes a pipeline centerline; determining a target pipeline centerline segment corresponding to the simulated path point from a plurality of pipeline centerline segments into which the pipeline centerline is divided, wherein the target pipeline centerline segment includes a plurality of skeleton points; calculating the centroid of the target pipeline centerline segment; if the centroid is different from the plurality of skeleton points included in the target pipeline centerline segment, determining a connecting line between the centroid and the simulated path point, and selecting one of the plurality of skeleton points with the shortest distance to the connecting
  • the present application first determines the target pipeline centerline segment corresponding to the simulated path point to reduce the error that the matching point is not in the pipeline where the catheter is currently located, and selects a skeleton point with the shortest distance between the line connecting the simulated path point and the centroid of the target pipeline centerline segment.
  • the skeleton point can be approximately considered as the intersection of the line and the target pipeline centerline segment. This intersection is used as the matching point of the actual path point, which can more accurately reflect the matching relationship between the path point of the catheter moving in the pipeline and the pipeline centerline, improve the accuracy of point cloud registration, that is, obtain a more accurate first transformation matrix, thereby improving the accuracy of navigation during catheterization.
  • FIG1 is a schematic diagram of a catheter robot provided in one embodiment of the present application.
  • FIG2 is a schematic diagram of a catheter device and a power unit provided in one embodiment of the present application.
  • FIG3 is a schematic diagram of a flow chart of a catheter robot registration method provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of determining the target pipeline centerline segment corresponding to the simulation path point in one embodiment of the present application
  • FIG5 is a schematic diagram of determining matching points when the centroid is not a skeleton point on the target pipeline centerline segment in one embodiment of the present application;
  • FIG6 is a schematic diagram showing a centroid of a skeleton point on a target pipeline centerline segment in an embodiment of the present application
  • FIG7 is a schematic diagram of determining matching points when the centroid is a skeleton point on a target pipeline centerline segment in one embodiment of the present application;
  • FIG8 is a schematic diagram of a specific process of S17 in FIG3 ;
  • FIG9 is a schematic diagram of a specific process of S18 in FIG3 ;
  • FIG10 is a schematic diagram of a process of intraoperative navigation provided by an embodiment of the present application.
  • FIG11 is a schematic diagram of a process for segmenting a pipeline centerline according to an embodiment of the present application.
  • FIG12 is a schematic diagram of using a single digital code to represent a pixel position in an embodiment of the present application.
  • FIG13 is a schematic diagram of a specific process of S21 in FIG11 ;
  • FIG14 is a schematic diagram of a specific process of S211 in FIG12 ;
  • FIG15 is a schematic diagram of the structure of a control system of a catheter robot provided in one embodiment of the present application.
  • FIG. 16 is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present application.
  • FIG1 shows a catheter system 1000 provided in an embodiment of the present application.
  • the catheter system 1000 includes an imaging vehicle 100, a trolley 200 and a main controller 300 respectively connected to the imaging vehicle 100, a catheter instrument 400 that can be coupled to the trolley 200, a sensor system 500 connected to the trolley 200, and a control system 600 for realizing control between the catheter instrument 400, the main controller 300, the sensor system 500 and the imaging vehicle 100.
  • the main controller 300 can be connected to the trolley 200 by wire or wirelessly.
  • the control instruction can be triggered by operating the main controller 300, and the catheter instrument 400 can be controlled to advance, retract, bend and turn, etc. through the drive of the trolley 200.
  • the trolley 200 can usually be moved to the side of the operating table to engage the catheter instrument 400 and control the catheter instrument 400 to move up and down in the vertical direction, or to move in the horizontal direction, or to move in non-vertical and non-horizontal directions under the control command, thereby providing a better preoperative preparation angle for the operation of the catheter instrument 400.
  • the control command can be a command triggered by the operator by operating the main controller 300, or a command triggered by the operator directly clicking or pressing a button set on the trolley 200.
  • the control command can be a command triggered by the operator by operating the main controller 300.
  • the command may also be a voice control or a command triggered by a force feedback mechanism.
  • the trolley 200 may include a base 210, a sliding seat body 220 that can be lifted and moved along the base 210, and two mechanical arms 230 fixedly connected to the sliding seat body 220.
  • the mechanical arm 230 may include a plurality of arm segments connected at a joint, and the plurality of arm segments provide the mechanical arm 230 with a plurality of degrees of freedom, for example, seven degrees of freedom corresponding to seven arm segments.
  • a power unit (not shown in the figure) is installed at the end of the mechanical arm 230, and the power unit of the mechanical arm 230 is used to engage the catheter instrument 400, and under the driving action of the power unit, the end of the catheter instrument 400 is controlled to bend and turn accordingly.
  • the two mechanical arms 230 may be structures that are completely the same or partially the same, one mechanical arm 230 is used to engage the inner catheter instrument 410, and the other mechanical arm 230 is used to engage the outer catheter instrument 420.
  • the outer catheter device 420 may be installed first, and when the outer catheter device 420 is installed, the catheter of the inner catheter device 410 is inserted into the catheter of the outer catheter device 420 .
  • the sensor system 500 has one or more subsystems for receiving information about the catheter device 400.
  • the subsystems may include: a position sensor system; a shape sensor system for determining the position, orientation, speed, velocity, pose, and/or shape of the tip of the catheter device 400 and/or along one or more segments of a catheter that may constitute the catheter device 400; and/or a visualization system for capturing images from the tip of the catheter device 400.
  • the imaging vehicle 100 may be provided with a display system 110 and a flushing system (not shown in the figure), etc.
  • the display system 110 is used to display images or representations of the surgical site and the catheter instrument 400 generated by the subsystem of the sensor system 500. Real-time images of the surgical site and the catheter instrument 400 captured by the visualization system may also be displayed. Image data from imaging technologies such as computed tomography (CT), magnetic resonance imaging (MRI), optical coherence tomography (OCT), and ultrasound may also be used to present images of the surgical site recorded preoperatively or intraoperatively.
  • CT computed tomography
  • MRI magnetic resonance imaging
  • OCT optical coherence tomography
  • ultrasound may also be used to present images of the surgical site recorded preoperatively or intraoperatively.
  • the preoperative or intraoperative image data may be A virtual navigation image may also be displayed in a manner that is presented as a two-dimensional, three-dimensional, or four-dimensional (e.g., time-based or rate-based) image and/or as an image from a model created based on a preoperative or intraoperative image dataset.
  • the actual position of the catheter device 400 is registered with the preoperative image to present a virtual image of the catheter device 400 within the surgical site to the operator from the outside.
  • the control system 600 includes at least one memory and at least one processor. It is understandable that the control system 600 can be integrated into the trolley 200 or the imaging trolley 100, or can be independently provided.
  • the control system 600 can support wireless communication protocols such as IEEE 802.11, IrDA, Bluetooth, HomeRF, DECT, and wireless telemetry.
  • the control system 600 can transmit one or more signals indicating the movement of the catheter instrument 400 by the power unit to move the catheter instrument 400.
  • the catheter instrument 400 can extend to a surgical location in the body through an opening of the patient's natural cavity or a surgical incision.
  • control system 600 may include a mechanical control system (not shown in the figure) and an image processing system (not shown in the figure), wherein the mechanical control system is used to control the movement of the catheter instrument 400, and therefore, can be integrated into the trolley 200.
  • the image processing system is used for virtual navigation path planning, and therefore, can be integrated into the imaging vehicle 100.
  • the various subsystems of the control system 600 are not limited to the specific situations listed above, and can also be reasonably set according to actual conditions. Among them, the image processing system can image the surgical site based on the image of the surgical site recorded before or during the operation, using the above imaging technology.
  • the software used in combination with manual input can also convert the recorded image into a two-dimensional or three-dimensional synthetic image of a part or the entire anatomical organ or segment.
  • the sensor system 500 can be used to calculate the position of the catheter instrument 400 relative to the patient's anatomical structure, which can be used to generate an external tracking image and an internal virtual image of the patient's anatomical structure, so as to realize the actual position of the catheter instrument 400 and the preoperative image registration, so that the virtual image of the catheter instrument 400 in the surgical site can be presented to the operator from the outside.
  • the structural composition of the inner catheter device 410 and the outer catheter device 420 is substantially the same, and each comprises a slender and flexible inner catheter 41 and an outer catheter 42, wherein the diameter of the outer catheter 42 is slightly larger than that of the inner catheter 41, so that the inner catheter 41 can pass through the outer catheter 42 and provide a certain support for the inner catheter 41, so that the inner catheter 41 can reach the target position in the patient's body, so as to facilitate operations such as tissue or cell sampling from the target position.
  • Certain movements of the main controller 300 may cause corresponding movements of the catheter device 400.
  • the movement of the direction lever of the main controller 300 may be mapped to the corresponding pitch movement of the end of the catheter device 400; when the operator operates the direction lever of the main controller 300 to move left or right, the movement of the direction lever of the main controller 300 may be mapped to the corresponding yaw movement of the end of the catheter device 400.
  • the main controller 300 may control the end of the catheter device 400 to move within a 360° spatial range.
  • FIG2 shows a catheter device 400 provided in an embodiment of the present application.
  • the catheter device 400 is configured to engage with the power unit 240 of the mechanical arm 230, and the catheter device 400 includes an instrument box 45 configured to engage with the power unit 240 and a catheter 48 connected to the instrument box 45.
  • the "engagement" refers to a state in which when the instrument box 45 is installed in the power unit 240, the driving force of the power unit 240 can be transmitted to the instrument box 45 and the catheter 48 can move normally. For example, under the driving force of the power unit 240, the end of the catheter 48 can be bent and turned.
  • the end in this application may also be referred to as the distal end or the head, which refers to the end away from the instrument box 45 ; the front end may also be referred to as the proximal end or the tail, which refers to the end close to the instrument box 45 .
  • the processor of the control system 600 is configured to perform the following steps to implement the catheter robot registration method provided in an embodiment of the present application. As shown in FIG3 , the method includes:
  • the actual path point is the path point of the end of the catheter and/or the instrument carried by the catheter obtained by the sensor, which is generally described by the coordinates of the end of the catheter and/or the instrument in the world coordinate system, or the surgical environment coordinate system.
  • the sensor may include a position sensor and/or a shape sensor.
  • the position sensor can be set on the catheter and/or the instrument.
  • a position sensor can be a component in the electromagnetic positioning system.
  • the electromagnetic positioning system can further include a magnetic field generating component and a magnetic field detecting component.
  • the magnetic field generating component is used to generate a magnetic field.
  • the position sensor will cause a change in the magnetic field in the magnetic field.
  • the magnetic field detecting component can detect the change in the magnetic field and thus detect the position of the position sensor relative to the magnetic field/magnetic field generating component.
  • the position of the catheter end/instrument end relative to the magnetic field/magnetic field generating component can be calculated.
  • the position of the catheter end/instrument end in the world coordinate system that is, the actual path point, can be calculated.
  • the position of the catheter tip/instrument tip can be acquired by a shape sensor system.
  • the shape sensor can include an optical fiber aligned with the catheter, and the optical fiber bend sensor formed by the optical fiber can feedback the shape of the catheter, based on which the position of the catheter tip/instrument tip relative to the base of the shape sensor can be calculated.
  • the position of the catheter tip/instrument tip in the world coordinate system i.e., the actual path point, can be calculated.
  • An actual path point reflects the position of the catheter end/device end when the sensor feedbacks.
  • the actual path points obtained by multiple feedbacks from the same sensor are arranged according to the feedback time to obtain the movement path of the catheter end/device end.
  • the set of these actual path points can be called a path point set or a path point cloud.
  • S12 Acquire simulated path points of the catheter and/or instrument corresponding to the actual path points in the anatomical model according to the first transformation matrix.
  • Scanning the target area of the patient before surgery can obtain medical images (such as CT, MRI, etc.), and the preoperative images are reconstructed in three dimensions to obtain three-dimensional preoperative images.
  • the three-dimensional preoperative images are appropriately processed to obtain anatomical models.
  • Image processing can include image segmentation and skeleton extraction. Image segmentation is used to extract the human ducts involved in the surgery from the three-dimensional images.
  • the skeleton of the human duct is extracted to obtain the duct centerline.
  • the duct centerline is the centerline of the human duct, which can also be called the skeleton of the human duct. It is a curve used to describe some geometric features of the human duct.
  • the duct centerline can provide the information required for intraoperative navigation. At the same time, compared with the original human duct, its data volume is significantly reduced, and it is more convenient to process, which is conducive to real-time navigation.
  • the pipeline centerline is a three-dimensional curve.
  • the pipeline centerline is often stored and used in the form of multiple three-dimensional points.
  • the pipeline centerline includes these three-dimensional points, which can be called skeleton points.
  • the set of skeleton points can be called a skeleton point set or a skeleton point cloud.
  • the anatomical model is a three-dimensional binary image, in which the pixel value of each pixel (also referred to as a voxel) is 0 or 1, which is used to indicate whether the pixel is a skeleton point.
  • the pixel value of the skeleton point is 1 and the pixel value of the non-skeleton point is 0.
  • the values may be opposite, and there is no limitation on this.
  • the range of pixel values is determined by the image bit depth supported by the display system, and the common range is 0 to 255 or 0 to 1023.
  • the pixel values of the anatomical model are generally mapped. For example, the pixel values of skeleton points are mapped to the maximum value (255 or 1023) and displayed as white, and the pixel values of non-skeleton points are mapped to 0 and displayed as black.
  • the skeleton points are displayed as black and non-skeleton points are displayed as white.
  • the pipeline centerline can be preprocessed.
  • the preprocessing can include extracting characteristic skeleton points from the skeleton point set and/or resampling the pipeline centerline.
  • the characteristic skeleton points generally include The bifurcation points and end points are used to segment the centerline of the pipeline. The number of skeleton points in the neighborhood of a skeleton point can be counted to determine whether the skeleton point is a feature skeleton point.
  • the present application provides a method for extracting feature skeleton points based on coding, see the subsequent embodiments for details.
  • the bifurcation points and end points reflect the structural characteristics of the human body pipeline itself. In addition, for segments that are too long/too curved, new feature points can be introduced to further segment them to improve the registration accuracy.
  • resampling is generally upsampling.
  • Specific resampling parameters such as resampling interval and interpolation number, can be determined according to actual needs. If the preprocessing includes extracting feature skeleton points and resampling, there is no restriction on the order of the two.
  • the first transformation matrix may be a transformation matrix between the world coordinate system and the anatomical model.
  • the first transformation matrix may be used to transform actual path points from the world coordinate system to the coordinate system of the anatomical model to obtain simulated path points.
  • the simulated path point reflects the position of the catheter end/instrument end in the anatomical model. Combined with the display parameters of the surgical site, the position of the catheter end/instrument end in the displayed surgical site can be obtained, thereby integrating the displayed surgical site with the catheter/instrument therein to achieve intraoperative navigation.
  • the surgical site can be displayed in the form of a preoperative image and/or an intraoperative image. If the preoperative image data is used to display the surgical site, since the anatomical model is obtained by processing the three-dimensional preoperative image, the position of the catheter end/instrument end in the surgical site can be obtained based on the coordinate transformation relationship of the displayed surgical site relative to the three-dimensional preoperative image.
  • the intraoperative image data is used to display the surgical site, it is necessary to align the intraoperative image with the three-dimensional preoperative image/anatomical model to obtain the coordinate transformation relationship of the displayed surgical site relative to the three-dimensional preoperative image, and then obtain the position of the catheter end/instrument end in the surgical site.
  • the present application performs point cloud registration on the skeleton point set and the path point set to calculate the transformation matrix between the world coordinate system and the anatomical model, namely, the first transformation matrix.
  • the representative algorithm for point cloud registration is the Iterative Closest Point (ICP) algorithm.
  • ICP Iterative Closest Point
  • the core idea is to minimize the distance between two point sets and make the two point sets close to each other through iteration.
  • the following is a brief introduction to the principle of ICP.
  • the basic method of ICP includes two steps: 1. Match point clouds Q and P to find the corresponding point pairs between them; 2. Calculate the transformation matrix between point clouds Q and P based on the corresponding point pairs.
  • a corresponding point pair consists of two points, one from point cloud P and the other from point cloud Q. These two points are matching points of each other, and these two points are considered to be corresponding, that is, the two points are essentially equivalent.
  • ICP will match according to the principle of the closest distance (generally Euclidean distance), that is, for each point in point cloud P, find the point closest to it in point cloud Q as its matching point. Then calculate a transformation matrix based on these point pairs. After completing a round of calculations, ICP will determine whether the iteration stop condition is met. If not, the transformation matrix obtained from this round of calculations will be used to transform and update point cloud P, and then the point cloud Q and the transformed point cloud P will be used to repeat the above process until the iteration stops.
  • the closest distance generally Euclidean distance
  • point cloud registration can be divided into two parts: coarse registration and fine registration. First, coarse registration is used to obtain an initial transformation matrix, and then ICP is used for fine registration. At this time, the first round of ICP is to match point cloud Q with point cloud P transformed by the initial transformation matrix.
  • this application proposes an improved ICP fine registration method, which is described in detail later. Before executing the ICP fine registration method provided by this application, a coarse registration can be performed to obtain the initial value of the first transformation matrix.
  • the registration conditions can include ICP iteration in progress, ICP iteration started, etc.
  • S13 Determine a target pipeline centerline segment corresponding to the simulation path point among the plurality of pipeline centerline segments into which the pipeline centerline is divided.
  • the pipeline centerline can be divided into multiple pipeline centerline segments.
  • Each pipeline centerline segment has two endpoints, one of which can be set as the starting point and the other as the end point.
  • the specific starting point and end point can be set according to anatomical characteristics, the motion path of the catheter robot, actual needs, etc.
  • the human body pipeline is an airway
  • the airway is a multi-level bifurcated tree structure
  • the bifurcation point with a higher level (i.e., closer to the trachea) of the two endpoints is used as the starting point
  • the bifurcation point/endpoint with a lower level i.e., closer to the alveoli
  • it can also be set in reverse according to needs.
  • the target pipe centerline segment can be determined first to improve the accuracy of subsequent matching.
  • the target pipe centerline segment is the pipe centerline segment where the estimated simulation path point is located.
  • the simulation path point is within the target pipeline centerline segment, which means that the simulation path point must be between the two endpoints of the target pipeline centerline segment. Converted into a relative position relationship in space, for the pipeline centerline segment s i s i+1 , only when the simulation path point t n is on the side of the starting point s i that deviates from the end point s i+1 , and at the same time, on the side of the end point s i+1 that deviates from the starting point s i , can it be the target pipeline centerline segment. Therefore, it can be calculated according to the following formula and
  • the pipeline centerline segment that meets the requirements is the segment where the simulation path point tn may be located (referred to as the possible segment), and the pipeline centerline segment is preliminarily screened based on this. and If the target pipeline centerline segment of the previous simulation path point tn -1 is used as the target pipeline centerline segment of the simulation path point tn .
  • the possible segments initially screened if the number is 1, they are directly used as the target pipeline centerline segments; if the number is greater than 1, further screening is required.
  • the third distance between the simulated path point tn and the projection line segment of the possible segment can be calculated: The one with the smallest third distance is selected as the target pipeline centerline segment.
  • its projection line segment is the straight line segment between the starting point s i and the end point s i+1 .
  • the dotted line in the figure represents the pipeline centerline, and in the three pipeline centerline segments a, b, and c, for the simulated path point A, and The possible segments are a and b.
  • the above method of determining the target pipeline centerline segment may have a certain error. For this reason, the above determination method can be supplemented.
  • the possible segments initially screened determine whether they need to be screened again. If necessary, screen the possible segments again to obtain candidate segments, calculate the moving direction of the catheter, and select the one closest to the moving direction from the candidate segments as the target pipeline centerline segment; otherwise, directly select The one with the third smallest distance is taken as the target pipeline centerline segment.
  • a very small range can be set. If, in addition to the minimum third distance, the difference between other third distances and the minimum third distance falls within this range, it is necessary to screen again, and the pipeline centerline segments corresponding to the third distances whose difference falls within this range are the candidate segments.
  • the difference here can be an absolute value, that is, the difference itself, or a relative value, that is, the ratio of the difference to the minimum third distance.
  • the simulated path point Based on the position of the simulated path point, it can be determined whether there is an endpoint among the endpoints of the possible segments, which belongs to the bifurcation point and the distance between it and the simulated path point is less than the threshold value. If it exists, all the segments to which the endpoint belongs are selected as candidate segments.
  • the distance between the simulated path point and the endpoint can be the Euclidean distance between the two, or the ratio of the Euclidean distance to the length of the projected line segment to which the endpoint belongs, or the projected distance between the simulated path point and the endpoint (the Euclidean distance between the foot of the perpendicular of the simulated path point on the projected line segment and the endpoint), or the ratio of the projected distance to the length of the projected line segment to which the endpoint belongs, or the Euclidean distance or projected distance between the corresponding point of the simulated path point (i.e., the intersection of the line connecting the simulated path point to the centroid of the pipeline centerline segment and the pipeline centerline segment) and the endpoint, or the ratio of the distance to the length of the projected line segment to which the endpoint belongs.
  • the vector from the previous simulated path point tnh to the current simulated path point tn can be calculated as the moving direction of the catheter, where h is a positive integer and can be set based on experiments, experience, etc.
  • the direction of the candidate segment can be a vector pointing from its starting point to its end point. Then, the angle between the moving direction of the catheter and the candidate segment is calculated by the vector inner product method, and the one with the smallest angle is selected as the target pipeline centerline segment.
  • the centroid i.e., the center of the shape, may be the average coordinates of all skeleton points constituting the target pipeline centerline segment. Since the target pipeline centerline segment is obtained by processing the medical image, its density can be considered uniform, so the centroid of the target pipeline centerline segment is also the centroid.
  • centroid is different from the multiple skeleton points constituting the target pipeline centerline segment, jump to S15; if the centroid is one of the multiple skeleton points, jump to S16.
  • S15 Determine the connection line between the centroid and the simulated path point, and select one of the multiple skeleton points with the shortest distance to the connection line as the matching point of the actual path point.
  • the pipeline centerline reflects the shape of the human body pipeline, it is generally stored and used in the form of a point set.
  • the pipeline centerline often cannot be expressed by an analytical expression, and the analytical solution of the intersection point cannot be obtained. Even if it can be obtained, it may not be exactly the skeleton point. Therefore, in this application, a skeleton point on the target pipeline centerline segment with the shortest distance to the connecting line is approximated as the intersection point between the target pipeline centerline segment and the connecting line.
  • intersection points between the target pipeline centerline segments and the connecting lines are mainly used as matching points. This registration method is more consistent with the movement mode of the catheter robot in the human body pipeline, and the matching points found are more accurate.
  • the dotted line in the figure represents the target pipeline centerline segment
  • sc is the centroid of the target pipeline centerline segment
  • the solid line represents the path of the catheter robot in the anatomical model.
  • the intersection of the line connecting the simulated path point tn and the centroid sc and the target pipeline centerline segment is approximately the skeleton point qk
  • the skeleton point qk is the matching point of the actual path point corresponding to tn.
  • the centroid of a target pipeline centerline segment is exactly a skeleton point on it.
  • the dotted line in the figure represents the target pipeline centerline segment
  • the solid line represents the path of the catheter robot in the anatomical model
  • sc is the centroid of the target pipeline centerline segment
  • sc is a skeleton point on the target pipeline centerline segment.
  • the intersection point of the connecting line and the target pipeline centerline segment must be the centroid sc , that is, the matching points of all path points corresponding to the target pipeline centerline segment are the centroid sc , which obviously violates the original intention of matching. Therefore, in this case, the intersection point cannot be used as the matching point.
  • S16 Obtain the first perpendicular foot from the simulated path point to the projection line, and obtain the second perpendicular foot from each skeleton point to the projection line, where the projection line is a straight line passing through the two end points of the target pipeline centerline segment; select the skeleton point corresponding to the second perpendicular foot with the shortest distance to the first perpendicular foot as the matching point of the actual path point.
  • the matching point is selected according to the principle of the shortest projection distance. Specifically, the first perpendicular foot from the simulated path point to the projection line is obtained, and the projection line is a straight line passing through the two end points of the target pipeline centerline segment, and the second perpendicular foot from each skeleton point to the projection line is obtained. The skeleton point corresponding to the second perpendicular foot with the shortest distance between the first perpendicular foot is selected as the matching point of the actual path point.
  • the fourth distance between the second perpendicular foot of all skeleton points on the pipeline centerline and the start/end point of the pipeline centerline segment to which they belong can be calculated and stored in advance.
  • the projection distance is needed later, it is only necessary to call the fourth distance of all skeleton points on the target pipeline centerline segment, and calculate the fifth distance between the first perpendicular foot and the start/end point of the target pipeline centerline segment. The difference between the fourth distance and the fifth distance can be calculated to obtain the projection distance.
  • the solid line in the figure represents the path of the catheter robot in the anatomical model
  • the dotted line represents the target pipeline centerline segment
  • the dotted line represents the projection line
  • the first perpendicular foot from the simulated path point tn to the projection line is dtn
  • the fifth distance between the starting point si is Dtn
  • the second perpendicular foot from the skeleton point qk to the projection line is dqk
  • the fourth distance between the starting point si is Dqk
  • the projection distance between the simulated path point tn and the skeleton point qk is
  • a point pair set is used to temporarily store multiple point pairs to calculate the transformation matrix. After the matching is completed, the obtained point pairs can be used to try to update the point pair set.
  • One way to update is to directly add the first point pair to the point pair set.
  • multiple path points may match the same skeleton point, which is not conducive to subsequent calculations.
  • the first point pair can be judged before adding it to the point pair set, as follows.
  • this step specifically includes:
  • S171 Determine whether there is a second point pair including a matching point in the point pair set.
  • S173 Calculate a first distance based on the actual path point and the matching point, calculate a second distance based on the path point and the matching point in the second point pair, and if the first distance is smaller than the second distance, replace the second point pair with the first point pair.
  • the first distance may be referred to as the distance of the first point pair, and the second distance may be referred to as the distance of the second point pair.
  • the first distance may be the Euclidean distance between the simulated path point tn corresponding to the current actual path point pn and the matching point
  • the second distance may be the Euclidean distance between the simulated path point corresponding to the path point in the second point pair and the matching point.
  • the first distance may be the projected distance between the simulated path point tn corresponding to the current actual path point pn and the matching point
  • the second distance may be the projected distance between the simulated path point corresponding to the path point in the second point pair and the matching point.
  • the point pair set is not modified.
  • the first condition may include that the number of point pairs in the point pair set is greater than a preset value. In theory, only three point pairs are needed to calculate the unique solution of the transformation matrix. In order to reduce the influence of errors, multiple point pairs are often used in practical applications to estimate the optimal solution of the transformation matrix by the least squares method.
  • the preset value is set The minimum number of point pairs required to estimate the transformation matrix. The default value must be greater than or equal to 3, and the specific value can be set as needed, such as 100, 200, etc.
  • this step specifically includes:
  • An objective function can be designed in advance, which generally reflects the error of matching point pairs. Then, each point pair in the point pair set is substituted into the objective function, and the transformation matrix that can minimize the objective function is estimated as the latest second transformation matrix, or the second transformation matrix of this round of iteration.
  • the commonly used objective function of ICP can be used:
  • N is the total number of point pairs in the point pair set
  • i is the sequence number of the point pair in the point pair set
  • i 1, 2, ..., N
  • T is the transformation matrix
  • the path in the thicker pipe has a larger offset range relative to the center line.
  • the radius parameter of the human body pipe can be introduced into the objective function.
  • the improved objective function is:
  • rn is the average radius of the target pipeline centerline segment n corresponding to the simulated path point corresponding to the actual path point in the i-th point pair.
  • the latest second transformation matrix can be directly used as the updated first transformation matrix.
  • the historical second transformation matrix can be introduced when calculating the first transformation matrix.
  • the first transformation matrix is a weighted average of the latest second transformation matrix and at least part of the historical second transformation matrix, wherein the weight of the latest second transformation matrix is greater than the weight of the historical second transformation matrix.
  • M represents the serial number of the latest completed iteration
  • m represents the serial number of the historical iteration (iteration before the latest iteration)
  • m 1, 2, ..., M-1.
  • the updated first transformation matrix is used to transform the actual path points.
  • the present application first determines the target pipeline centerline segment corresponding to the simulated path point to reduce the error that the matching point is not in the pipeline where the catheter is currently located, and selects a skeleton point with the shortest distance between the line connecting the simulated path point and the centroid of the target pipeline centerline segment.
  • the skeleton point can be approximately considered as the intersection of the line and the target pipeline centerline segment. This intersection is used as the matching point of the actual path point, which can more accurately reflect the matching relationship between the path point of the catheter moving in the pipeline and the pipeline centerline, improve the accuracy of point cloud registration, that is, obtain a more accurate first transformation matrix, thereby improving the accuracy of navigation during catheterization.
  • the airway includes the trachea and bronchi, which are a tree-like structure that branches out step by step. Therefore, it can also be called the airway tree.
  • the trachea splits into the left and right main bronchi at the end.
  • the main bronchi are distributed deep into the left and right lungs. In the left and right lungs, they split into lobar bronchi (usually three in the left lung and two in the right lung).
  • the lobar bronchi are divided into It splits into segmental bronchi, which gradually divide into alveoli.
  • the process of intraoperative navigation in one embodiment of the present application includes:
  • S101 Acquire an anatomical model including an airway centerline.
  • S104 Divide the airway centerline into multiple segments using bifurcation points and end points.
  • a coarse registration is performed by collecting the coordinates of a small number of points with obvious features (such as the main carina, the first and second carinas of the left and right lobes, etc.) in the world coordinate system and the anatomical model.
  • S111 Determine whether the centroid is a skeleton point on the target segment.
  • S112 Obtain the first perpendicular from the simulated path point to the projection line, and obtain the second perpendicular from each skeleton point included in the target segment to the projection line, where the projection line is a straight line passing through the two end points of the target segment; select the skeleton point corresponding to the second perpendicular with the shortest distance to the first perpendicular as the matching point of the actual path point.
  • S113 Determine the connection line between the centroid and the simulated path point, and select one of the multiple skeleton points included in the target segment with the shortest distance to the connection line as the matching point of the actual path point.
  • S114 Determine whether there is a second point pair including a matching point in the point pair set.
  • S116 Calculate a first distance based on the actual path point and the matching point, calculate a second distance based on the path point and the matching point in the second point pair, and compare the first distance with the second distance.
  • S120 Calculate a weighted average of the latest second transformation matrix and at least part of the historical second transformation matrix as an updated first transformation matrix.
  • the process of S106 - S120 may be referred to as dynamic fine registration of the world coordinate system and the anatomical model.
  • the process of segmenting the pipeline centerline specifically includes:
  • the position of a pixel is represented by a 3D coordinate (x, y, z).
  • Three numbers are needed to represent the position of the pixel, which takes up a large storage space.
  • the three numbers need to be searched during the search process, In comparison, it also has an adverse effect on the search speed.
  • the positions of the skeleton points in this embodiment are represented by a single digital code.
  • feature points are generally extracted from a two-dimensional skeleton image by first using a table lookup method to screen out candidate feature points, and then extracting feature points from them.
  • Design a 3 ⁇ 3 convolution kernel in which each position is set to a different value, such as 1, 2, 4, 8, 16, 32, 64, 128, 256, and the value after convolution is a scalar, which corresponds one-to-one to the arrangement of the 3 ⁇ 3 area centered on the pixel, and calculate the convolution values corresponding to the endpoints and intersections and store them as a feature point correspondence table.
  • the table lookup method is applied to a three-dimensional skeleton image (such as the anatomical model in this application)
  • a three-dimensional skeleton image such as the anatomical model in this application
  • the neighborhood is expanded from the 8 neighborhoods in two dimensions to the 26 neighborhoods, and the 3 ⁇ 3 area is expanded to the 3 ⁇ 3 ⁇ 3 area
  • the table lookup method is not suitable for extracting feature skeleton points from 3D skeleton images.
  • a method for extracting characteristic skeleton points based on a region growing method is proposed, which specifically includes:
  • the starting point also called the seed point
  • the starting point is the skeleton point that serves as the starting point for regional growth.
  • the starting point of the airway tree that is, the skeleton point of the tracheal entrance
  • a method for automatically selecting the starting point is proposed, which is as follows.
  • this step specifically includes:
  • the three-dimensional CT image is reconstructed from multiple slice CT images, where each slice CT image corresponds to an anatomical layer.
  • the anatomical model is obtained by image processing of the three-dimensional CT image. Accordingly, the anatomical model consists of multiple layers, each layer corresponding to the processing result of a slice CT image. One dimension of the anatomical model (usually z) is used to distinguish different layers.
  • S2112 Count the total number of skeleton points in a specified number of layers on both sides of the body layer in a direction perpendicular to the cross section to determine the direction in which the airway extends.
  • the tomographic CT image is a cross-sectional image reconstructed by projection.
  • the side opposite to the direction of airway extension has no skeleton points or only a few skeleton points, and then there will be no skeleton points; the number of skeleton points near the end of the airway tree is significantly reduced, but the number of skeleton points in a single layer is generally greater than the entrance of the trachea. Based on this, the direction of airway extension can be determined.
  • S2113 Find the bone structure of the tracheal entrance based on the total number of skeleton points in the body layer and the direction of airway extension.
  • the rack point is used as the starting point.
  • S212 Starting from the starting point, use the region growing method to search for skeleton points and count the number of connections of the skeleton points.
  • the connectivity number is the number of all child nodes in the neighborhood of the skeleton point.
  • the skeleton points found are all child nodes of the starting point, and the starting point is the parent node of these skeleton points.
  • the skeleton points found in its neighborhood except the parent node are the child nodes of the skeleton point. The number of child nodes is counted to get the connectivity number of the skeleton point.
  • S213 Determine a characteristic skeleton point according to the number of connections between the skeleton point and its parent node.
  • the skeleton point is a bifurcation point among the characteristic skeleton points. If the connectivity number of a skeleton point is equal to 1, and the connectivity number of the parent node is equal to 0, the skeleton point is an end point among the characteristic skeleton points.
  • the parent feature point is determined for each feature skeleton point except the starting point.
  • the two endpoints of each pipeline centerline segment are a feature skeleton point and its parent feature point.
  • the process of determining the parent feature point for a feature skeleton point includes: searching along the direction of the parent node of the feature skeleton point, that is, finding the parent node of the feature skeleton point, then finding the parent node of the parent node, and so on.
  • the first feature skeleton point found is the parent feature point of the feature skeleton point.
  • the pipeline centerline may have burrs, resulting in errors in the extracted feature skeleton points and the divided pipeline centerline segments, the following two steps are optionally performed to filter out the erroneous segments and feature skeleton points.
  • a parameter for indicating the level can be set for the feature skeleton point.
  • the level parameter of each feature skeleton point is the level parameter of its parent feature point plus 1. The smaller the level parameter, the higher the level of the feature skeleton point and the closer it is to the trachea.
  • the preset threshold can be determined based on the level parameter of the endpoint of the pipeline center segment. Generally speaking, the larger the level parameter of the feature skeleton point, the shorter the bronchial segment corresponding to the feature skeleton point, and accordingly, the smaller the preset threshold.
  • a level range is set. The level range generally excludes larger level parameters, and only the pipeline centerline segments whose endpoints are within the level range are filtered.
  • a pipeline centerline segment is deleted, all skeleton points except the starting point si (i.e., the one with the smaller level parameter of the two endpoints) are changed to non-skeleton points, and all pipeline centerline segments with non-skeleton points as starting points are deleted. If the number of pipeline centerline segments with si as the starting point is equal to 1 after deletion, si is modified to a normal skeleton point. If the number of pipeline centerline segments with si as the starting point is equal to 0 after deletion, si is modified to an end point.
  • the embodiment of the present application also provides a control system for a catheter robot.
  • the control system 600 includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, and the processor 60, the communication interface 63 and the memory 61 are connected through the bus 62; the memory 61 stores computer program instructions that can be executed by the processor 60, and when the processor 60 executes the computer program instructions, it executes the alignment method of the catheter robot provided in any of the aforementioned embodiments of the present application.
  • the memory 61 may include a high-speed random access memory (RAM). Memory), and may also include non-volatile memory, such as at least one disk storage.
  • RAM random access memory
  • the communication connection between the device network element and at least one other network element is realized through at least one communication interface 63 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.
  • the bus 62 may be an ISA bus, a PCI bus, or an EISA bus, etc.
  • the bus may be divided into an address bus, a data bus, a control bus, etc.
  • the memory 61 is used to store programs, and the processor 60 executes the programs after receiving the execution instructions.
  • the alignment method of the catheter robot disclosed in any of the embodiments of the present application may be applied to the processor 60, or implemented by the processor 60.
  • the processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 60 or the instruction in the form of software.
  • the above processor 60 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field-programmable gate array
  • the methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed.
  • the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc.
  • the storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and completes the steps of the above method in combination with its hardware.
  • the control system of the catheter robot provided in the embodiment of the present application is the same as the catheter provided in the embodiment of the present application.
  • the robot registration method is based on the same inventive concept and has the same beneficial effects as the method adopted, operated or implemented by the robot.
  • An embodiment of the present application also provides a computer-readable storage medium corresponding to the catheter robot alignment method provided in the aforementioned embodiment.
  • Figure 16 shows a computer-readable storage medium 6 on which computer program instructions are stored.
  • the computer program instructions When executed by the processor, they will implement the catheter robot alignment method provided in any of the aforementioned embodiments.
  • examples of the computer-readable storage medium may include, but are not limited to, optical disks, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other optical or magnetic storage media, which are not listed here one by one.
  • the computer-readable storage medium provided in the above-mentioned embodiment of the present application and the catheter robot registration method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
  • An embodiment of the present application provides a computer program product.
  • the computer program product runs on a mobile terminal
  • the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
  • the above-mentioned function allocation can be completed by different functional units and modules based on needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
  • the functional units and modules in the embodiments can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
  • the disclosed devices/terminal equipment and methods can be implemented in other ways.
  • the device/terminal equipment embodiments described above are only schematic.
  • the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected based on actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated module/unit is implemented in the form of a software functional unit and used as an independent product When the product is sold or used, it can be stored in a computer-readable storage medium.
  • the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium.
  • the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electric carrier signal telecommunication signal and software distribution medium.
  • the content contained in the computer-readable medium can be appropriately increased or decreased based on the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, based on legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
  • the term “if” can be interpreted as “when” or “upon” or “in response to determining” or “in response to detecting” depending on the context.
  • the phrase “if it is determined” or “if the described condition or event is detected” May be interpreted to mean “upon determination” or “in response to determination” or “upon detection of a described condition or event” or “in response to detection of a described condition or event” depending on the context.
  • references to "one embodiment” or “some embodiments” etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean “one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
  • the terms “including”, “comprising”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized in other ways.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Surgery (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Robotics (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Manipulator (AREA)

Abstract

Provided in the present application are a registration method for a catheter robot, a catheter robot, and a readable storage medium. The method comprises: by using a sensor arranged on a catheter or on an instrument carried by the catheter, acquiring an actual path point of the catheter and/or the instrument; according to a first transformation matrix, acquiring a simulated path point of the catheter and/or the instrument that corresponds to the actual path point in an anatomical model; determining, from among a plurality of pipe center line segments obtained by dividing a pipe center line, a target pipe center line segment corresponding to the simulated path point; calculating the centroid of the target pipe center line segment; and if the centroid is different from all of a plurality of skeleton points comprised in the target pipe center line segment, determining a connection line between the centroid and the simulated path point, selecting a skeleton point, the distance between which and the connection line is the shortest, from among the plurality of skeleton points, and taking the selected skeleton point as a matching point of the actual path point. In this way, the present application can improve the accuracy of point cloud registration, thereby improving the accuracy of navigation during catheterization.

Description

导管机器人及其配准方法、可读存储介质Catheter robot and registration method thereof, and readable storage medium

本申请要求于2023年01月09日提交中国专利局、申请号为CN 202310026323.7、申请名称为“导管机器人及其配准方法、可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the China Patent Office on January 9, 2023, with application number CN 202310026323.7 and application name “Catheter robot and its alignment method, readable storage medium”, the entire contents of which are incorporated by reference in this application.

技术领域Technical Field

本申请涉及手术机器人技术领域,具体而言,涉及一种导管机器人、导管机器人的配准方法、及可读存储介质。The present application relates to the technical field of surgical robots, and in particular, to a catheter robot, a catheter robot registration method, and a readable storage medium.

背景技术Background technique

微创医疗技术意图减少在医疗程序期间损害的组织量,以减少患者恢复时间、不适感以及有害副作用。在微创医疗技术中经常需要通过患者解剖结构中的自然孔口或通过外科手术切口插入导管,在术中导航系统的配合下,穿过人体管道的复杂结构从而到达或邻近靶目标。Minimally invasive medical technology intends to reduce the amount of tissue damaged during medical procedures to reduce patient recovery time, discomfort and harmful side effects. In minimally invasive medical technology, it is often necessary to insert a catheter through a natural orifice in the patient's anatomy or through a surgical incision, and with the cooperation of an intraoperative navigation system, pass through the complex structure of the human body to reach or approach the target.

大部分情况下,导管是沿着人体管道(例如支气管、血管、输尿管等)运动,而不会以损伤管道的方式自由穿梭,因此可以认为导管/器械的移动路径受限于人体管道内,与人体管道的中心线具有相似性,特别是对于较小的管道,由于径向的可活动范围有限,移动路径与中心线的相似度更高。In most cases, the catheter moves along the human body's ducts (such as bronchi, blood vessels, ureters, etc.) and does not shuttle freely in a way that damages the ducts. Therefore, it can be considered that the movement path of the catheter/instrument is confined within the human body's ducts and is similar to the centerline of the human body's ducts. Especially for smaller ducts, due to the limited radial range of motion, the movement path is more similar to the centerline.

根据这一原理,术中导航系统可以采用点云配准来实时检测和显示导管末端和/或导管搭载的器械末端的位置。具体的,可以通过传感器采集导管/器械移动的路径数据,并与患者的解剖模型中的管道中心线数据进行匹配,通过点云配准确定二者之间的坐标变换,从而得到导管/器械的实时位置。Based on this principle, the intraoperative navigation system can use point cloud registration to detect and display the position of the catheter tip and/or the instrument tip carried by the catheter in real time. Specifically, the path data of the catheter/instrument movement can be collected by sensors and matched with the pipeline centerline data in the patient's anatomical model. The coordinate transformation between the two can be determined through point cloud registration, thereby obtaining the real-time position of the catheter/instrument.

相关技术中的点云配准采用的欧氏距离最短的准则来寻找对应点对,然后根据对应点对计算坐标转换。然而发明人发现,由于人体管道的复杂性以及患者运动的影响,采用欧式距离最短的准则往往可能出现错误的对应点对,例如,与导管的路径点对应的管道中心线上的点不在导管当前所在的管道内 等,从而导致点云配准的精度不高,影响了导管术中导航的准确性。Point cloud registration in related technologies uses the shortest Euclidean distance criterion to find corresponding point pairs, and then calculates coordinate transformation based on the corresponding point pairs. However, the inventors found that due to the complexity of human body pipes and the influence of patient movement, the use of the shortest Euclidean distance criterion may often result in incorrect corresponding point pairs. For example, the point on the pipe centerline corresponding to the path point of the catheter is not in the pipe where the catheter is currently located. As a result, the accuracy of point cloud registration is not high, which affects the accuracy of navigation during catheterization.

发明内容Summary of the invention

本申请实施例提供了一种导管机器人的配准方法、装置及终端设备,可以解决相关技术中难以为路径数据进行准确配准的问题。The embodiments of the present application provide a catheter robot alignment method, apparatus, and terminal device, which can solve the problem in the related art that it is difficult to accurately align path data.

第一方面,本申请实施例提供了一种导管机器人,该导管机器人包括机械臂,与机械臂的动力部进行接合的导管器械,与机械臂通讯连接的处理器,导管器械包括被设置成与动力部接合的器械盒以及与器械盒连接的导管,导管和/或导管搭载的器械上设置有用于测量导管和/或器械的位置的传感器,处理器被配置成执行以下步骤:利用传感器获取导管和/或器械的实际路径点;根据第一变换矩阵获取导管和/或器械在解剖模型中与实际路径点对应的模拟路径点,解剖模型包括管道中心线;在管道中心线分成的多个管道中心线分段中确定与模拟路径点对应的目标管道中心线分段;计算目标管道中心线分段的形心;若形心与目标管道中心线分段包括的多个骨架点均不相同,则确定形心与模拟路径点之间的连线,从多个骨架点中选择与连线之间的距离最短的一个作为实际路径点的匹配点。In a first aspect, an embodiment of the present application provides a catheter robot, which includes a robotic arm, a catheter instrument engaged with a power unit of the robotic arm, and a processor communicatively connected to the robotic arm, wherein the catheter instrument includes an instrument box configured to be engaged with the power unit and a catheter connected to the instrument box, and the catheter and/or the instrument carried by the catheter are provided with a sensor for measuring the position of the catheter and/or the instrument, and the processor is configured to perform the following steps: using the sensor to obtain actual path points of the catheter and/or the instrument; obtaining simulated path points of the catheter and/or the instrument corresponding to the actual path points in an anatomical model according to a first transformation matrix, wherein the anatomical model includes a pipeline centerline; determining a target pipeline centerline segment corresponding to the simulated path point among multiple pipeline centerline segments into which the pipeline centerline is divided; calculating the centroid of the target pipeline centerline segment; if the centroid is different from multiple skeleton points included in the target pipeline centerline segment, determining a connecting line between the centroid and the simulated path point, and selecting one of the multiple skeleton points with the shortest distance to the connecting line as a matching point of the actual path point.

其中,处理器被配置成在确定形心与模拟路径点之间的连线之后执行以下步骤:若形心是多个骨架点中的一个,则获取模拟路径点到投影线的第一垂足,并获取各骨架点到投影线的第二垂足,投影线为通过目标管道中心线分段两个端点的直线;选择与第一垂足之间的距离最短的第二垂足对应的骨架点作为实际路径点的匹配点。The processor is configured to perform the following steps after determining the connection line between the centroid and the simulated path point: if the centroid is one of multiple skeleton points, obtain the first perpendicular foot of the simulated path point to the projection line, and obtain the second perpendicular foot of each skeleton point to the projection line, the projection line is a straight line passing through the two end points of the target pipeline centerline segment; select the skeleton point corresponding to the second perpendicular foot with the shortest distance to the first perpendicular foot as the matching point of the actual path point.

其中,处理器被配置成执行以下步骤:利用实际路径点及其匹配点组成的第一点对更新点对集合;若点对集合满足第一条件,则使用点对集合更新第一变换矩阵,其中第一条件包括点对集合中的点对数量大于预设值。Wherein, the processor is configured to perform the following steps: update the point pair set using the first point pair consisting of the actual path point and its matching point; if the point pair set satisfies the first condition, use the point pair set to update the first transformation matrix, wherein the first condition includes that the number of point pairs in the point pair set is greater than a preset value.

其中,处理器被配置成在利用实际路径点及其匹配点组成的匹配点对更新点对集合中执行以下步骤:判断点对集合中是否存在包括匹配点的第二点对;若不存在,则将第一点对加入点对集合,若存在,则根据实际路径点与 匹配点计算第一距离,根据第二点对中的路径点与匹配点计算第二距离,若第一距离小于第二距离,则将第二点对替换为第一点对。The processor is configured to perform the following steps in updating the point pair set using the matching point pair consisting of the actual path point and its matching point: determining whether there is a second point pair including the matching point in the point pair set; if not, adding the first point pair to the point pair set; if so, The first distance is calculated for the matching points, and the second distance is calculated based on the path points and the matching points in the second point pair. If the first distance is less than the second distance, the second point pair is replaced by the first point pair.

其中,处理器被配置成在使用点对集合更新第一变换矩阵中执行以下步骤:将点对集合中的点对代入目标函数计算最新的第二变换矩阵;根据最新的第二变换矩阵更新第一变换矩阵。The processor is configured to perform the following steps in updating the first transformation matrix using the point pair set: substituting the point pairs in the point pair set into the objective function to calculate the latest second transformation matrix; and updating the first transformation matrix according to the latest second transformation matrix.

其中,第一变换矩阵为最新的第二变换矩阵与至少部分历史第二变换矩阵的加权平均值,其中最新的第二变换矩阵的权重大于历史第二变换矩阵的权重。The first transformation matrix is a weighted average of the latest second transformation matrix and at least part of the historical second transformation matrix, wherein the weight of the latest second transformation matrix is greater than the weight of the historical second transformation matrix.

其中,处理器被配置成在在管道中心线分成的多个管道中心线分段中确定与模拟路径点对应的目标管道中心线分段之前执行以下步骤:从管道中心线包括的多个骨架点中提取特征骨架点,其中骨架点的位置由编码表示,骨架点的编码s=x1+x2R1+x3R1R2,其中x1、x2、x3分别为骨架点在编码顺序第一、第二、第三的维度上的坐标,R1、R2分别为解剖模型在编码顺序第一、第二的维度上的尺寸;根据特征骨架点将管道中心线划分为多个管道中心线分段。Wherein, the processor is configured to perform the following steps before determining a target pipeline centerline segment corresponding to a simulation path point among a plurality of pipeline centerline segments into which the pipeline centerline is divided: extracting characteristic skeleton points from a plurality of skeleton points included in the pipeline centerline, wherein the position of the skeleton points is represented by a code, the code of the skeleton point s = x1 + x2R1 + x3R1R2 , wherein x1 , x2 , x3 are the coordinates of the skeleton points in the first, second, and third dimensions of the coding order, respectively, and R1 and R2 are the sizes of the anatomical model in the first and second dimensions of the coding order, respectively; dividing the pipeline centerline into a plurality of pipeline centerline segments according to the characteristic skeleton points.

其中,处理器被配置成在从管道中心线包括的多个骨架点中提取特征骨架点中执行以下步骤:确定起始点;从起始点开始,用区域生长法搜索骨架点并统计骨架点的连通数,连通数为骨架点的邻域中所有子节点的数量;若骨架点的连通数大于1,且父节点的连通数等于1,则骨架点为特征骨架点中的分叉点,若骨架点的连通数等于1,且父节点的连通数等于0,则骨架点为特征骨架点中的末端点。Wherein, the processor is configured to perform the following steps in extracting characteristic skeleton points from multiple skeleton points included in the pipeline centerline: determine the starting point; starting from the starting point, use the region growing method to search for skeleton points and count the connectivity number of the skeleton points, where the connectivity number is the number of all child nodes in the neighborhood of the skeleton point; if the connectivity number of the skeleton point is greater than 1, and the connectivity number of the parent node is equal to 1, then the skeleton point is a bifurcation point among the characteristic skeleton points; if the connectivity number of the skeleton point is equal to 1, and the connectivity number of the parent node is equal to 0, then the skeleton point is an end point among the characteristic skeleton points.

其中,处理器被配置成在选择起始点中执行以下步骤:随机选择一体层;统计体层在垂直于横断面的方向上两侧指定数量的层中骨架点的总数,以确定气道延伸的方向;根据体层中骨架点的总数以及气道延伸的方向寻找气管入口的骨架点作为起始点。The processor is configured to perform the following steps in selecting a starting point: randomly selecting an integral layer; counting the total number of skeleton points in a specified number of layers on both sides of the body layer in a direction perpendicular to the cross section to determine the direction in which the airway extends; and finding the skeleton point of the tracheal entrance as the starting point based on the total number of skeleton points in the body layer and the direction in which the airway extends.

其中,处理器被配置成执行以下步骤:统计管道中心线分段中骨架点的数量;删除数量小于预设阈值的管道中心线分段。The processor is configured to perform the following steps: counting the number of skeleton points in the pipeline centerline segment; and deleting the pipeline centerline segment whose number is less than a preset threshold.

第二方面,本申请实施例提供了一种导管机器人的配准方法,该方法包 括:利用设置在导管和/或导管搭载的器械上的传感器获取导管和/或器械的实际路径点;根据第一变换矩阵获取导管和/或器械在解剖模型中与实际路径点对应的模拟路径点,解剖模型包括管道中心线;在管道中心线分成的多个管道中心线分段中确定与模拟路径点对应的目标管道中心线分段,目标管道中心线分段包括多个骨架点;计算目标管道中心线分段的形心;若形心与目标管道中心线分段包括的多个骨架点均不相同,则确定形心与模拟路径点之间的连线,从多个骨架点中选择与连线之间的距离最短的一个作为实际路径点的匹配点。In a second aspect, the present application provides a catheter robot registration method, the method comprising: The invention is summarized as follows: using a sensor disposed on the catheter and/or an instrument carried by the catheter to obtain actual path points of the catheter and/or the instrument; obtaining simulated path points of the catheter and/or the instrument corresponding to the actual path points in an anatomical model according to a first transformation matrix, wherein the anatomical model includes a pipeline centerline; determining a target pipeline centerline segment corresponding to the simulated path point from a plurality of pipeline centerline segments into which the pipeline centerline is divided, wherein the target pipeline centerline segment includes a plurality of skeleton points; calculating the centroid of the target pipeline centerline segment; if the centroid is different from a plurality of skeleton points included in the target pipeline centerline segment, determining a connecting line between the centroid and the simulated path point, and selecting one of the plurality of skeleton points with the shortest distance to the connecting line as a matching point of the actual path point.

第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行实现如下所述的方法:利用设置在导管和/或导管搭载的器械上的传感器获取导管和/或器械的实际路径点;根据第一变换矩阵获取导管和/或器械在解剖模型中与实际路径点对应的模拟路径点,解剖模型包括管道中心线;在管道中心线分成的多个管道中心线分段中确定与模拟路径点对应的目标管道中心线分段,目标管道中心线分段包括多个骨架点;计算目标管道中心线分段的形心;若形心与目标管道中心线分段包括的多个骨架点均不相同,则确定形心与模拟路径点之间的连线,从多个骨架点中选择与连线之间的距离最短的一个作为实际路径点的匹配点。In a third aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions are executed by a processor to implement the following method: obtaining actual path points of the catheter and/or the instrument using sensors disposed on the catheter and/or the instrument carried by the catheter; obtaining simulated path points of the catheter and/or the instrument corresponding to the actual path points in an anatomical model according to a first transformation matrix, wherein the anatomical model includes a pipeline centerline; determining a target pipeline centerline segment corresponding to the simulated path point from a plurality of pipeline centerline segments into which the pipeline centerline is divided, wherein the target pipeline centerline segment includes a plurality of skeleton points; calculating the centroid of the target pipeline centerline segment; if the centroid is different from the plurality of skeleton points included in the target pipeline centerline segment, determining a connecting line between the centroid and the simulated path point, and selecting one of the plurality of skeleton points with the shortest distance to the connecting line as a matching point of the actual path point.

本申请实施例与现有技术相比存在的有益效果是:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

为了适应复杂的人体环境,本申请先确定与模拟路径点对应的目标管道中心线分段,以减少匹配点不在导管当前所在的管道内的错误,并且选择距离模拟路径点与目标管道中心线分段的形心之间的连线最短的一个骨架点,可以近似认为该骨架点为连线与目标管道中心线分段的交点,以此交点作为实际路径点的匹配点,能更准确的反映导管在管道内运动的路径点与管道中心线的匹配关系,提高点云配准的精确度,即得到更精确的第一变换矩阵,从而提高导管术中导航的准确性。 In order to adapt to the complex human body environment, the present application first determines the target pipeline centerline segment corresponding to the simulated path point to reduce the error that the matching point is not in the pipeline where the catheter is currently located, and selects a skeleton point with the shortest distance between the line connecting the simulated path point and the centroid of the target pipeline centerline segment. The skeleton point can be approximately considered as the intersection of the line and the target pipeline centerline segment. This intersection is used as the matching point of the actual path point, which can more accurately reflect the matching relationship between the path point of the catheter moving in the pipeline and the pipeline centerline, improve the accuracy of point cloud registration, that is, obtain a more accurate first transformation matrix, thereby improving the accuracy of navigation during catheterization.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以基于提供的附图获得其他的附图。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 in the following description are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

图1为本申请一实施例提供的导管机器人的示意图;FIG1 is a schematic diagram of a catheter robot provided in one embodiment of the present application;

图2为本申请一实施例提供的导管器械与动力部的示意图;FIG2 is a schematic diagram of a catheter device and a power unit provided in one embodiment of the present application;

图3为本申请一实施例提供的导管机器人的配准方法的流程示意图;FIG3 is a schematic diagram of a flow chart of a catheter robot registration method provided in an embodiment of the present application;

图4为本申请一实施例中确定模拟路径点对应的目标管道中心线分段的示意图;FIG4 is a schematic diagram of determining the target pipeline centerline segment corresponding to the simulation path point in one embodiment of the present application;

图5为本申请一实施例中形心不是目标管道中心线分段上的骨架点的情况下确定匹配点的示意图;FIG5 is a schematic diagram of determining matching points when the centroid is not a skeleton point on the target pipeline centerline segment in one embodiment of the present application;

图6为本申请一实施例中形心是目标管道中心线分段上的骨架点的示意图;FIG6 is a schematic diagram showing a centroid of a skeleton point on a target pipeline centerline segment in an embodiment of the present application;

图7为本申请一实施例中形心是目标管道中心线分段上的骨架点的情况下确定匹配点的示意图;FIG7 is a schematic diagram of determining matching points when the centroid is a skeleton point on a target pipeline centerline segment in one embodiment of the present application;

图8为图3中S17的具体流程示意图;FIG8 is a schematic diagram of a specific process of S17 in FIG3 ;

图9为图3中S18的具体流程示意图;FIG9 is a schematic diagram of a specific process of S18 in FIG3 ;

图10为本申请一实施例提供的术中导航的流程示意图;FIG10 is a schematic diagram of a process of intraoperative navigation provided by an embodiment of the present application;

图11为本申请一实施例提供的对管道中心线分段的流程示意图;FIG11 is a schematic diagram of a process for segmenting a pipeline centerline according to an embodiment of the present application;

图12为本申请一实施例中用单个数字的编码表示像素位置的示意图;FIG12 is a schematic diagram of using a single digital code to represent a pixel position in an embodiment of the present application;

图13为图11中S21的具体流程示意图;FIG13 is a schematic diagram of a specific process of S21 in FIG11 ;

图14为图12中S211的具体流程示意图;FIG14 is a schematic diagram of a specific process of S211 in FIG12 ;

图15为本申请一实施例提供的导管机器人的控制系统的结构示意图;FIG15 is a schematic diagram of the structure of a control system of a catheter robot provided in one embodiment of the present application;

图16为本申请一实施例提供的计算机可读存储介质的结构示意图。FIG. 16 is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present application.

具体实施方式 Detailed ways

下面将参照附图更详细地描述本申请的示例性实施方式。虽然附图中显示了本申请的示例性实施方式,然而应当理解,可以以各种形式实现本申请而不应被这里阐述的实施方式所限制。相反,提供这些实施方式是为了能够更透彻地理解本申请,并且能够将本申请的范围完整的传达给本领域的技术人员。The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

需要注意的是,除非另有说明,本申请使用的技术术语或者科学术语应当为本申请所属领域技术人员所理解的通常意义。It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.

下面结合附图来描述根据本申请实施例提出的导管机器人的配准方法、导管机器人,以及计算机可读存储介质。The following describes the catheter robot registration method, the catheter robot, and the computer-readable storage medium proposed according to the embodiments of the present application in conjunction with the accompanying drawings.

图1示出了本申请一实施例提供的导管系统1000。导管系统1000包括影像车100、分别与所述影像车100连接的台车200和主控器300,可以被接合至所述台车200上的导管器械400,与所述台车200连接的传感器系统500,以及用于在所述导管器械400、所述主控器300、所述传感器系统500以及所述影像车100之间实现控制的控制系统600等。其中,所述主控器300可以与所述台车200有线连接或无线连接。操作者对台车200旁的患者执行各种程序时,可以通过操作所述主控器300触发控制指令,经所述台车200的驱动而控制所述导管器械400前进、缩回以及弯曲转向等。FIG1 shows a catheter system 1000 provided in an embodiment of the present application. The catheter system 1000 includes an imaging vehicle 100, a trolley 200 and a main controller 300 respectively connected to the imaging vehicle 100, a catheter instrument 400 that can be coupled to the trolley 200, a sensor system 500 connected to the trolley 200, and a control system 600 for realizing control between the catheter instrument 400, the main controller 300, the sensor system 500 and the imaging vehicle 100. Among them, the main controller 300 can be connected to the trolley 200 by wire or wirelessly. When the operator performs various procedures on the patient next to the trolley 200, the control instruction can be triggered by operating the main controller 300, and the catheter instrument 400 can be controlled to advance, retract, bend and turn, etc. through the drive of the trolley 200.

所述台车200通常可以被移动至手术床旁,用于接合所述导管器械400,并在控制指令下控制所述导管器械400沿竖直方向进行升降,或沿水平方向平移,或非竖直以及非水平方向移动,从而为所述导管器械400的操作提供一个较好的术前准备角度。其中,该控制指令可以是来自操作者通过操作所述主控器300而触发的指令,也可以是来自操作者直接通过点击或按压所述台车200上设置的按键而触发的指令。当然,在其他实施例中,所述控制指 令还可以是语音控制或通过力反馈机制而触发的指令。The trolley 200 can usually be moved to the side of the operating table to engage the catheter instrument 400 and control the catheter instrument 400 to move up and down in the vertical direction, or to move in the horizontal direction, or to move in non-vertical and non-horizontal directions under the control command, thereby providing a better preoperative preparation angle for the operation of the catheter instrument 400. The control command can be a command triggered by the operator by operating the main controller 300, or a command triggered by the operator directly clicking or pressing a button set on the trolley 200. Of course, in other embodiments, the control command can be a command triggered by the operator by operating the main controller 300. The command may also be a voice control or a command triggered by a force feedback mechanism.

如图1所示,进一步地,所述台车200可以包括底座210、可以沿着所述底座210进行升降移动的滑动座体220,以及与所述滑动座体220固定连接的2个机械臂230。所述机械臂230可以包括在关节处联接的多个臂分段,所述多个臂分段为所述机械臂230提供多个自由度,例如,与七个臂分段相对应的七个自由度。所述机械臂230的末端装设有动力部(图中未示出),所述机械臂230的动力部用于接合所述导管器械400,并在所述动力部的驱动作用下控制所述导管器械400的末端相应发生弯曲转向。其中,所述2个机械臂230可以是结构完全相同或部分相同的结构,一个机械臂230用于接合内导管器械410,另一个机械臂230用于接合外导管器械420。装设时,可以先安装所述外导管器械420,待所述外导管器械420安装完毕时,将所述内导管器械410的导管插入所述外导管器械420的导管内。As shown in FIG1 , further, the trolley 200 may include a base 210, a sliding seat body 220 that can be lifted and moved along the base 210, and two mechanical arms 230 fixedly connected to the sliding seat body 220. The mechanical arm 230 may include a plurality of arm segments connected at a joint, and the plurality of arm segments provide the mechanical arm 230 with a plurality of degrees of freedom, for example, seven degrees of freedom corresponding to seven arm segments. A power unit (not shown in the figure) is installed at the end of the mechanical arm 230, and the power unit of the mechanical arm 230 is used to engage the catheter instrument 400, and under the driving action of the power unit, the end of the catheter instrument 400 is controlled to bend and turn accordingly. Among them, the two mechanical arms 230 may be structures that are completely the same or partially the same, one mechanical arm 230 is used to engage the inner catheter instrument 410, and the other mechanical arm 230 is used to engage the outer catheter instrument 420. During installation, the outer catheter device 420 may be installed first, and when the outer catheter device 420 is installed, the catheter of the inner catheter device 410 is inserted into the catheter of the outer catheter device 420 .

所述传感器系统500具有用于接收关于所述导管器械400的信息的一个或多个子系统。所述子系统可以包括:位置传感器系统;用于确定所述导管器械400的末端和/或沿着可构成所述导管器械400的导管的一个或多个部段的位置、取向、速度、速率、位姿和/或形状的形状传感器系统;和/或用于从所述导管器械400的末端捕获图像的可视化系统。The sensor system 500 has one or more subsystems for receiving information about the catheter device 400. The subsystems may include: a position sensor system; a shape sensor system for determining the position, orientation, speed, velocity, pose, and/or shape of the tip of the catheter device 400 and/or along one or more segments of a catheter that may constitute the catheter device 400; and/or a visualization system for capturing images from the tip of the catheter device 400.

所述影像车100可以设置显示系统110以及冲洗系统(图中未示出)等。所述显示系统110用于显示由传感器系统500的子系统生成的手术部位和导管器械400的图像或表示。还可以显示由可视化系统捕获的手术部位和导管器械400的实时图像。还可以使用来自成像技术的图像数据来呈现术前或术中记录的手术部位的图像,所述成像技术诸如计算机断层扫描(CT)、磁共振成像(MRI)、光学相干断层扫描(OCT)、以及超声等。术前或术中图像数据可 以被呈现为二维、三维或四维(如基于时间或基于速率的信息)图像和/或被呈现为来自根据术前或术中图像数据集创建的模型的图像,还可以显示虚拟导航图像。在所述虚拟导航图像中,所述导管器械400的实际位置与术前图像配准,以从外部向操作者呈现手术部位内的导管器械400的虚拟图像。The imaging vehicle 100 may be provided with a display system 110 and a flushing system (not shown in the figure), etc. The display system 110 is used to display images or representations of the surgical site and the catheter instrument 400 generated by the subsystem of the sensor system 500. Real-time images of the surgical site and the catheter instrument 400 captured by the visualization system may also be displayed. Image data from imaging technologies such as computed tomography (CT), magnetic resonance imaging (MRI), optical coherence tomography (OCT), and ultrasound may also be used to present images of the surgical site recorded preoperatively or intraoperatively. The preoperative or intraoperative image data may be A virtual navigation image may also be displayed in a manner that is presented as a two-dimensional, three-dimensional, or four-dimensional (e.g., time-based or rate-based) image and/or as an image from a model created based on a preoperative or intraoperative image dataset. In the virtual navigation image, the actual position of the catheter device 400 is registered with the preoperative image to present a virtual image of the catheter device 400 within the surgical site to the operator from the outside.

所述控制系统600包括至少一个存储器和至少一个处理器。可以理解的是,所述控制系统600可以集成于所述台车200或所述影像车100中,也可以独立设置。所述控制系统600可以支持无线通信协议,诸如IEEE 802.11、IrDA、蓝牙、HomeRF、DECT和无线遥测等。所述控制系统600可以传输指示所述导管器械400移动的一个或多个由所述动力部移动所述导管器械400的信号。所述导管器械400可以经由所述患者的自然腔道的开口或手术切口延伸至体内的手术位置。The control system 600 includes at least one memory and at least one processor. It is understandable that the control system 600 can be integrated into the trolley 200 or the imaging trolley 100, or can be independently provided. The control system 600 can support wireless communication protocols such as IEEE 802.11, IrDA, Bluetooth, HomeRF, DECT, and wireless telemetry. The control system 600 can transmit one or more signals indicating the movement of the catheter instrument 400 by the power unit to move the catheter instrument 400. The catheter instrument 400 can extend to a surgical location in the body through an opening of the patient's natural cavity or a surgical incision.

进一步地,所述控制系统600可以包括机械控制系统(图中未示出)和图像处理系统(图中未示出),所述机械控制系统用于控制所述导管器械400的移动,因此,可以集成于所述台车200中。所述图像处理系统用于虚拟导航路径规划,因此,可以集成于所述影像车100中。当然,所述控制系统600的各个子系统并不限于上述列举的具体情况,还可以根据实际情况合理设置。其中,所述图像处理系统可以基于术前或术中记录的手术部位的图像,使用上述成像技术对手术部位进行成像。还可以与手动输入结合使用的软件将记录的图像转换成部分或整个解剖器官或区段的二维或三维合成图像。在虚拟导航程序期间,所述传感器系统500可用于计算导管器械400相对于患者的解剖结构的位置,该位置可用于产生患者的解剖结构的外部跟踪图像和内部虚拟图像,实现导管器械400的实际位置与术前图像配准,从而可以从外部向操作者呈现手术部位内的导管器械400的虚拟图像。 Further, the control system 600 may include a mechanical control system (not shown in the figure) and an image processing system (not shown in the figure), wherein the mechanical control system is used to control the movement of the catheter instrument 400, and therefore, can be integrated into the trolley 200. The image processing system is used for virtual navigation path planning, and therefore, can be integrated into the imaging vehicle 100. Of course, the various subsystems of the control system 600 are not limited to the specific situations listed above, and can also be reasonably set according to actual conditions. Among them, the image processing system can image the surgical site based on the image of the surgical site recorded before or during the operation, using the above imaging technology. The software used in combination with manual input can also convert the recorded image into a two-dimensional or three-dimensional synthetic image of a part or the entire anatomical organ or segment. During the virtual navigation procedure, the sensor system 500 can be used to calculate the position of the catheter instrument 400 relative to the patient's anatomical structure, which can be used to generate an external tracking image and an internal virtual image of the patient's anatomical structure, so as to realize the actual position of the catheter instrument 400 and the preoperative image registration, so that the virtual image of the catheter instrument 400 in the surgical site can be presented to the operator from the outside.

所述内导管器械410和所述外导管器械420的结构组成大体相同,分别具有细长柔性的内导管41和外导管42,其中,所述外导管42的直径略大于所述内导管41,以使所述内导管41可以穿过所述外导管42,并为所述内导管41提供一定的支撑性,从而可以使得所述内导管41可以到达患者体内的目标位置,以便于从目标位置处进行组织或细胞取样等操作。The structural composition of the inner catheter device 410 and the outer catheter device 420 is substantially the same, and each comprises a slender and flexible inner catheter 41 and an outer catheter 42, wherein the diameter of the outer catheter 42 is slightly larger than that of the inner catheter 41, so that the inner catheter 41 can pass through the outer catheter 42 and provide a certain support for the inner catheter 41, so that the inner catheter 41 can reach the target position in the patient's body, so as to facilitate operations such as tissue or cell sampling from the target position.

所述主控器300的某些运动可以引起导管器械400的对应移动。例如,操作者操作主控器300的方向拨杆向上或向下移动时,所述主控器300的方向拨杆的运动可以被映射到所述导管器械400的末端相应的俯仰运动;当操作者操作主控器300的方向拨杆向左或向右移动时,所述主控器300的方向拨杆的运动可以被映射到所述导管器械400的末端相应的横摆运动。在本实施例中,所述主控器300可以控制所述导管器械400的末端在360°空间范围内进行移动。Certain movements of the main controller 300 may cause corresponding movements of the catheter device 400. For example, when the operator operates the direction lever of the main controller 300 to move upward or downward, the movement of the direction lever of the main controller 300 may be mapped to the corresponding pitch movement of the end of the catheter device 400; when the operator operates the direction lever of the main controller 300 to move left or right, the movement of the direction lever of the main controller 300 may be mapped to the corresponding yaw movement of the end of the catheter device 400. In this embodiment, the main controller 300 may control the end of the catheter device 400 to move within a 360° spatial range.

图2示出了本申请一实施例提供的导管器械400。所述导管器械400被配置成与机械臂230的动力部240进行接合,所述导管器械400包括被配置成与所述动力部240接合的器械盒45以及与所述器械盒45连接的导管48。其中,所述“接合”是指所述器械盒45安装至所述动力部240时,所述动力部240的驱动力可以传递至所述器械盒45内、并能使所述导管48发生正常移动的状态。例如,在所述动力部240的驱动力作用下,所述导管48的末端可以发生弯曲转向等。FIG2 shows a catheter device 400 provided in an embodiment of the present application. The catheter device 400 is configured to engage with the power unit 240 of the mechanical arm 230, and the catheter device 400 includes an instrument box 45 configured to engage with the power unit 240 and a catheter 48 connected to the instrument box 45. The "engagement" refers to a state in which when the instrument box 45 is installed in the power unit 240, the driving force of the power unit 240 can be transmitted to the instrument box 45 and the catheter 48 can move normally. For example, under the driving force of the power unit 240, the end of the catheter 48 can be bent and turned.

本申请中的末端,也可以被称为远端或头部,是指远离器械盒45的一端;前端,也可以被称为近端或尾部,是指靠近器械盒45的一端。The end in this application may also be referred to as the distal end or the head, which refers to the end away from the instrument box 45 ; the front end may also be referred to as the proximal end or the tail, which refers to the end close to the instrument box 45 .

控制系统600的处理器被配置为执行以下步骤以实现本申请一实施例提供的导管机器人的配准方法。如图3所示,本方法包括: The processor of the control system 600 is configured to perform the following steps to implement the catheter robot registration method provided in an embodiment of the present application. As shown in FIG3 , the method includes:

S11:利用传感器获取导管和/或器械的实际路径点。S11: Using sensors to obtain actual path points of the catheter and/or instrument.

实际路径点为利用传感器获取的导管的末端和/或导管搭载的器械的路径点,一般用导管和/或器械的末端在世界坐标系,或者说手术环境坐标系中的坐标来描述。传感器可以包括位置传感器和/或形状传感器。The actual path point is the path point of the end of the catheter and/or the instrument carried by the catheter obtained by the sensor, which is generally described by the coordinates of the end of the catheter and/or the instrument in the world coordinate system, or the surgical environment coordinate system. The sensor may include a position sensor and/or a shape sensor.

位置传感器可以设置在导管和/或器械上。一个位置传感器可以是电磁定位系统中的一个部件。电磁定位系统可以进一步包括磁场发生部件和磁场检测部件。磁场发生部件用于产生磁场,位置传感器在磁场中会引发磁场改变,磁场检测部件可以检测到磁场的改变从而检测到位置传感器相对于磁场/磁场发生部件的位姿,结合预先设定或标定得到的位置传感器与导管末端/器械末端之间的坐标转换关系,可以计算得到导管末端/器械末端相对于磁场/磁场发生部件的位置,再结合磁场/磁场发生部件与世界坐标系之间的坐标转换关系,可以计算出导管末端/器械末端在世界坐标系中的位置,即实际路径点。The position sensor can be set on the catheter and/or the instrument. A position sensor can be a component in the electromagnetic positioning system. The electromagnetic positioning system can further include a magnetic field generating component and a magnetic field detecting component. The magnetic field generating component is used to generate a magnetic field. The position sensor will cause a change in the magnetic field in the magnetic field. The magnetic field detecting component can detect the change in the magnetic field and thus detect the position of the position sensor relative to the magnetic field/magnetic field generating component. Combined with the coordinate conversion relationship between the position sensor and the catheter end/instrument end obtained by the pre-set or calibrated coordinate conversion relationship, the position of the catheter end/instrument end relative to the magnetic field/magnetic field generating component can be calculated. Combined with the coordinate conversion relationship between the magnetic field/magnetic field generating component and the world coordinate system, the position of the catheter end/instrument end in the world coordinate system, that is, the actual path point, can be calculated.

可以用形状传感器系统来获取导管末端/器械末端的位置。例如,形状传感器可以包括与导管对齐的光纤,光纤形成的光纤弯曲传感器可以反馈导管的形状,据此可以计算得到导管末端/器械末端相对于形状传感器的基座的位置,结合形状传感器的基座在世界坐标系中的位置,可以计算出导管末端/器械末端在世界坐标系中的位置,即实际路径点。The position of the catheter tip/instrument tip can be acquired by a shape sensor system. For example, the shape sensor can include an optical fiber aligned with the catheter, and the optical fiber bend sensor formed by the optical fiber can feedback the shape of the catheter, based on which the position of the catheter tip/instrument tip relative to the base of the shape sensor can be calculated. Combined with the position of the base of the shape sensor in the world coordinate system, the position of the catheter tip/instrument tip in the world coordinate system, i.e., the actual path point, can be calculated.

一个实际路径点反映了传感器反馈时导管末端/器械末端的位置,将同一传感器多次反馈得到的实际路径点按照反馈时间排列,可得到导管末端/器械末端的移动路径。这些实际路径点组成的集合可以被称为路径点集或路径点云。An actual path point reflects the position of the catheter end/device end when the sensor feedbacks. The actual path points obtained by multiple feedbacks from the same sensor are arranged according to the feedback time to obtain the movement path of the catheter end/device end. The set of these actual path points can be called a path point set or a path point cloud.

S12:根据第一变换矩阵获取导管和/或器械在解剖模型中与实际路径点对应的模拟路径点。 S12: Acquire simulated path points of the catheter and/or instrument corresponding to the actual path points in the anatomical model according to the first transformation matrix.

在手术前对患者的目标区域扫描可以得到医学图像(例如CT、MRI等),对术前图像进行三维重建得到三维术前图像,对三维术前图像进行适当的图像处理,从而得到解剖模型。图像处理可以包括图像分割和骨架提取,图像分割用于从三维图像中提取出手术涉及的人体管道,为便于术中导航,对人体管道进行骨架提取,得到管道中心线。管道中心线,是人体管道的中心线,也可以被称为人体管道的骨架,是用于描述人体管道的部分几何特征的曲线,位于人体管道的中间部位,与人体管道具有同样的拓扑结构,其宽度一般为单个像素。管道中心线可以提供术中导航所需的信息,同时与原本的人体管道相比,其数据量明显缩小,处理更方便,有利于实时导航。Scanning the target area of the patient before surgery can obtain medical images (such as CT, MRI, etc.), and the preoperative images are reconstructed in three dimensions to obtain three-dimensional preoperative images. The three-dimensional preoperative images are appropriately processed to obtain anatomical models. Image processing can include image segmentation and skeleton extraction. Image segmentation is used to extract the human ducts involved in the surgery from the three-dimensional images. To facilitate intraoperative navigation, the skeleton of the human duct is extracted to obtain the duct centerline. The duct centerline is the centerline of the human duct, which can also be called the skeleton of the human duct. It is a curve used to describe some geometric features of the human duct. It is located in the middle part of the human duct and has the same topological structure as the human duct. Its width is generally a single pixel. The duct centerline can provide the information required for intraoperative navigation. At the same time, compared with the original human duct, its data volume is significantly reduced, and it is more convenient to process, which is conducive to real-time navigation.

管道中心线是三维曲线,实际应用中,管道中心线往往以多个三维点的方式存储和使用,换言之管道中心线包括这些三维点,这些三维点可以被称为骨架点,骨架点组成的集合可以被称为骨架点集或骨架点云。The pipeline centerline is a three-dimensional curve. In practical applications, the pipeline centerline is often stored and used in the form of multiple three-dimensional points. In other words, the pipeline centerline includes these three-dimensional points, which can be called skeleton points. The set of skeleton points can be called a skeleton point set or a skeleton point cloud.

解剖模型为三维二值图像,其中每个像素(也可以被称为体素)的像素值为0或1,用于表示该像素是否为骨架点。在本申请中的实施例,以骨架点的像素值为1,非骨架点的像素值为0的例子进行说明。实际上,在其他实施例中也可以取值相反,对此不做限制。The anatomical model is a three-dimensional binary image, in which the pixel value of each pixel (also referred to as a voxel) is 0 or 1, which is used to indicate whether the pixel is a skeleton point. In the embodiments of the present application, the pixel value of the skeleton point is 1 and the pixel value of the non-skeleton point is 0. In fact, in other embodiments, the values may be opposite, and there is no limitation on this.

像素值的取值范围由显示系统支持的图像位深度决定,常见的取值范围为0~255或0~1023。在显示解剖模型时,为了能够直观的区分骨架点和非骨架点,一般会对解剖模型的像素值进行映射,例如,将骨架点的像素值映射为最大值(255或1023),显示为白色,非骨架点的像素值映射为0,显示为黑色。当然也可以反过来,即骨架点显示为黑色,非骨架点显示为白色。The range of pixel values is determined by the image bit depth supported by the display system, and the common range is 0 to 255 or 0 to 1023. When displaying an anatomical model, in order to intuitively distinguish between skeleton points and non-skeleton points, the pixel values of the anatomical model are generally mapped. For example, the pixel values of skeleton points are mapped to the maximum value (255 or 1023) and displayed as white, and the pixel values of non-skeleton points are mapped to 0 and displayed as black. Of course, it can also be reversed, that is, skeleton points are displayed as black and non-skeleton points are displayed as white.

为便于后续的配准,可以对管道中心线进行预处理。预处理可以包括从骨架点集中提取特征骨架点和/或管道中心线的重采样。特征骨架点一般包括 分叉点和末端点,用于对管道中心线进行分段。可以通过统计某个骨架点的邻域中骨架点的数量来判断该骨架点是否为特征骨架点。本申请提供了一种基于编码的特征骨架点提取方法,具体见后续实施例。分叉点和末端点反映了人体管道本身的结构特性,除此之外,对于长度过长/弯曲程度过大的分段,可以引入新的特征点来对其进行进一步分段以提高配准精度。To facilitate subsequent registration, the pipeline centerline can be preprocessed. The preprocessing can include extracting characteristic skeleton points from the skeleton point set and/or resampling the pipeline centerline. The characteristic skeleton points generally include The bifurcation points and end points are used to segment the centerline of the pipeline. The number of skeleton points in the neighborhood of a skeleton point can be counted to determine whether the skeleton point is a feature skeleton point. The present application provides a method for extracting feature skeleton points based on coding, see the subsequent embodiments for details. The bifurcation points and end points reflect the structural characteristics of the human body pipeline itself. In addition, for segments that are too long/too curved, new feature points can be introduced to further segment them to improve the registration accuracy.

为避免破坏管道中心线的连通性,重采样一般是上采样,具体的重采样参数,例如重采样间隔、插值数量可以按照实际需要而决定。如果预处理包括提取特征骨架点和重采样,那么二者的先后顺序并无限制。To avoid damaging the connectivity of the pipeline centerline, resampling is generally upsampling. Specific resampling parameters, such as resampling interval and interpolation number, can be determined according to actual needs. If the preprocessing includes extracting feature skeleton points and resampling, there is no restriction on the order of the two.

第一变换矩阵可以为世界坐标系与解剖模型之间的变换矩阵,使用第一变换矩阵可以将实际路径点从世界坐标系变换到解剖模型的坐标系中,得到模拟路径点。The first transformation matrix may be a transformation matrix between the world coordinate system and the anatomical model. The first transformation matrix may be used to transform actual path points from the world coordinate system to the coordinate system of the anatomical model to obtain simulated path points.

模拟路径点反映了导管末端/器械末端在解剖模型中的位置,结合手术部位的显示参数可以得到导管末端/器械末端在显示的手术部位中的位置,从而融合显示手术部位与其中的导管/器械,实现术中导航。手术部位可以以术前图像和/或术中图像的方式显示。如果显示手术部位使用的是术前图像数据,由于解剖模型是对三维术前图像处理得到的,那么根据显示的手术部位相对于三维术前图像的坐标转换关系,即可得到导管末端/器械末端在手术部位中的位置。如果显示手术部位使用的是术中图像数据,那么需要对术中图像与三维术前图像/解剖模型进行配准,从而得到显示的手术部位相对于三维术前图像的坐标转换关系,再得到导管末端/器械末端在手术部位中的位置。The simulated path point reflects the position of the catheter end/instrument end in the anatomical model. Combined with the display parameters of the surgical site, the position of the catheter end/instrument end in the displayed surgical site can be obtained, thereby integrating the displayed surgical site with the catheter/instrument therein to achieve intraoperative navigation. The surgical site can be displayed in the form of a preoperative image and/or an intraoperative image. If the preoperative image data is used to display the surgical site, since the anatomical model is obtained by processing the three-dimensional preoperative image, the position of the catheter end/instrument end in the surgical site can be obtained based on the coordinate transformation relationship of the displayed surgical site relative to the three-dimensional preoperative image. If the intraoperative image data is used to display the surgical site, it is necessary to align the intraoperative image with the three-dimensional preoperative image/anatomical model to obtain the coordinate transformation relationship of the displayed surgical site relative to the three-dimensional preoperative image, and then obtain the position of the catheter end/instrument end in the surgical site.

为实现术中导航,本申请通过对骨架点集和路径点集进行点云配准以计算世界坐标系与解剖模型之间的变换矩阵,即第一变换矩阵。To achieve intraoperative navigation, the present application performs point cloud registration on the skeleton point set and the path point set to calculate the transformation matrix between the world coordinate system and the anatomical model, namely, the first transformation matrix.

点云配准的代表算法为最近点迭代(Iterative closest point,ICP)算法, 其核心思想为最小化两个点集间的距离,通过迭代使得两个点集相互接近。下面简单介绍ICP的原理。The representative algorithm for point cloud registration is the Iterative Closest Point (ICP) algorithm. The core idea is to minimize the distance between two point sets and make the two point sets close to each other through iteration. The following is a brief introduction to the principle of ICP.

ICP的基础方法包括两步:一、对点云Q和P进行匹配,找出二者之间的对应点对;二、根据对应点对计算出点云Q和P之间的变换矩阵。一个对应点对由两个点组成,其中一个来自于点云P,另一个来自于点云Q,这两个点互为对方的匹配点,且这两个点被认为是对应的,即这两个点实质上等同。The basic method of ICP includes two steps: 1. Match point clouds Q and P to find the corresponding point pairs between them; 2. Calculate the transformation matrix between point clouds Q and P based on the corresponding point pairs. A corresponding point pair consists of two points, one from point cloud P and the other from point cloud Q. These two points are matching points of each other, and these two points are considered to be corresponding, that is, the two points are essentially equivalent.

如果可以直接找出真实准确的对应点对,那么上面的过程只需要进行一次,就可以直接算出足够准确的变换矩阵。然而实际应用中很难直接找到准确的对应点对,因此ICP会按照距离(一般是欧式距离)最近的原则进行匹配,即对于点云P中的每一个点,在点云Q中寻找与其距离最近的一个点作为其匹配点。然后根据这些点对计算出一个转换矩阵。在完成一轮计算之后,ICP会判断是否满足迭代停止条件,如果不满足,则使用本轮计算得到的转换矩阵对点云P进行变换更新,然后使用点云Q和变换后的点云P重复上述过程,直至停止迭代。If the real and accurate corresponding point pairs can be found directly, then the above process only needs to be performed once to directly calculate a sufficiently accurate transformation matrix. However, it is difficult to directly find accurate corresponding point pairs in practical applications, so ICP will match according to the principle of the closest distance (generally Euclidean distance), that is, for each point in point cloud P, find the point closest to it in point cloud Q as its matching point. Then calculate a transformation matrix based on these point pairs. After completing a round of calculations, ICP will determine whether the iteration stop condition is met. If not, the transformation matrix obtained from this round of calculations will be used to transform and update point cloud P, and then the point cloud Q and the transformed point cloud P will be used to repeat the above process until the iteration stops.

由于ICP对初始值比较敏感,如果点云P和Q初始差别比较大,直接使用ICP可能无法保证收敛。因此可以将点云配准分为粗配准和精配准两个部分,先采用粗配准得到一个初始变换矩阵,然后使用ICP进行精配准,此时第一轮的ICP是对点云Q和使用初始变换矩阵变换后的点云P进行匹配。Since ICP is sensitive to initial values, if the initial difference between point clouds P and Q is large, using ICP directly may not guarantee convergence. Therefore, point cloud registration can be divided into two parts: coarse registration and fine registration. First, coarse registration is used to obtain an initial transformation matrix, and then ICP is used for fine registration. At this time, the first round of ICP is to match point cloud Q with point cloud P transformed by the initial transformation matrix.

导管沿着人体管道运动的过程中,管道的径向上往往存在可活动范围,导致导管可能偏离管道中心线,管道越粗则可活动范围越大,加上器官运动的影响,导致导管的移动路径与骨架中心线的形状可能有所差别。因此,对于路径点集和骨架点集的配准,采用经典的ICP难以准确的找到最优匹配点 对,得到的配准结果往往陷入局部最优。为此本申请提出一种改进的ICP精配准方法,具体见后续描述。在执行本申请提供的ICP精配准方法之前,可以先进行粗配准以获取第一变换矩阵的初始值。When the catheter moves along the human body, there is often a range of motion in the radial direction of the catheter, which may cause the catheter to deviate from the center line of the catheter. The thicker the catheter, the larger the range of motion. In addition, due to the influence of organ movement, the shape of the catheter's moving path and the skeleton center line may be different. Therefore, for the registration of the path point set and the skeleton point set, it is difficult to accurately find the optimal matching point using the classic ICP. Yes, the obtained registration result often falls into the local optimum. For this reason, this application proposes an improved ICP fine registration method, which is described in detail later. Before executing the ICP fine registration method provided by this application, a coarse registration can be performed to obtain the initial value of the first transformation matrix.

由于在手术过程中,并不一定需要为每个实际路径点进行匹配,例如ICP迭代结束的情况下,只需要得到虚拟路径点以实现术中导航即可,不需要执行后续的配准步骤。因此在本步骤之后,可以判断是否满足配准条件,若满足再执行后续步骤,否则不执行。配准条件可以包括ICP迭代进行中、启动ICP迭代等。During the operation, it is not necessary to match each actual path point. For example, when the ICP iteration is finished, only the virtual path point needs to be obtained to realize the intraoperative navigation, and there is no need to perform the subsequent registration steps. Therefore, after this step, it can be determined whether the registration conditions are met. If they are met, the subsequent steps are performed, otherwise they are not performed. The registration conditions can include ICP iteration in progress, ICP iteration started, etc.

S13:在管道中心线分成的多个管道中心线分段中确定与模拟路径点对应的目标管道中心线分段。S13: Determine a target pipeline centerline segment corresponding to the simulation path point among the plurality of pipeline centerline segments into which the pipeline centerline is divided.

根据特征骨架点,可以将管道中心线分为多个管道中心线分段。每个管道中心线分段有两个端点,可以设定一个是起点,另一个是终点,具体哪个是起点哪个是终点可以按照解剖学特性、导管机器人运动路径、实际需求等设定。例如,若人体管道为气道,由于气道为多级分叉的树状结构,一般将两个端点中级别更高(即更接近气管)的一个分叉点作为起点,级别更低(即更接近肺泡)的一个分叉点/端点作为终点,当然也可以按照需求反过来设定。According to the characteristic skeleton points, the pipeline centerline can be divided into multiple pipeline centerline segments. Each pipeline centerline segment has two endpoints, one of which can be set as the starting point and the other as the end point. The specific starting point and end point can be set according to anatomical characteristics, the motion path of the catheter robot, actual needs, etc. For example, if the human body pipeline is an airway, since the airway is a multi-level bifurcated tree structure, generally the bifurcation point with a higher level (i.e., closer to the trachea) of the two endpoints is used as the starting point, and the bifurcation point/endpoint with a lower level (i.e., closer to the alveoli) is used as the end point. Of course, it can also be set in reverse according to needs.

基于导管机器人在人体管道内运动的特性,可以先确定目标管道中心线分段以提高后续匹配的准确度,目标管道中心线分段为估计的模拟路径点所在的管道中心线分段。Based on the characteristics of the catheter robot moving in the human body's pipes, the target pipe centerline segment can be determined first to improve the accuracy of subsequent matching. The target pipe centerline segment is the pipe centerline segment where the estimated simulation path point is located.

首先,模拟路径点在目标管道中心线分段内,意味着模拟路径点必须在目标管道中心线分段的两个端点之间。转换成空间的相对位置关系,对于管道中心线分段sisi+1,只有满足模拟路径点tn在起点si的偏向终点si+1的一侧,同时在终点si+1的偏向起点si的一侧的条件,才有可能是目标管道中心线分段。 据此可以按照以下公式计算

First, the simulation path point is within the target pipeline centerline segment, which means that the simulation path point must be between the two endpoints of the target pipeline centerline segment. Converted into a relative position relationship in space, for the pipeline centerline segment s i s i+1 , only when the simulation path point t n is on the side of the starting point s i that deviates from the end point s i+1 , and at the same time, on the side of the end point s i+1 that deviates from the starting point s i , can it be the target pipeline centerline segment. Therefore, it can be calculated according to the following formula and

只有满足的管道中心线分段,才是模拟路径点tn可能所在的分段(简称可能分段),据此对管道中心线分段进行初步筛选。若找不到满足的管道中心线分段,则将前一个模拟路径点tn-1的目标管道中心线分段作为模拟路径点tn的目标管道中心线分段。Only satisfied and The pipeline centerline segment that meets the requirements is the segment where the simulation path point tn may be located (referred to as the possible segment), and the pipeline centerline segment is preliminarily screened based on this. and If the target pipeline centerline segment of the previous simulation path point tn -1 is used as the target pipeline centerline segment of the simulation path point tn .

对于初步筛选出的可能分段,若其数量为1,则直接作为目标管道中心线分段;若数量大于1,则需要进一步筛选。具体的,可以计算模拟路径点tn到可能分段的投影线段之间的第三距离选择第三距离最小的一个作为目标管道中心线分段。对于管道中心线分段sisi+1,其投影线段为起点si与终点si+1之间的直线线段。For the possible segments initially screened, if the number is 1, they are directly used as the target pipeline centerline segments; if the number is greater than 1, further screening is required. Specifically, the third distance between the simulated path point tn and the projection line segment of the possible segment can be calculated: The one with the smallest third distance is selected as the target pipeline centerline segment. For pipeline centerline segment s i s i+1 , its projection line segment is the straight line segment between the starting point s i and the end point s i+1 .

结合附图举例说明,如图4所示,图中虚线表示管道中心线,a,b,c三个管道中心线分段中,对于模拟路径点A满足的可能分段为a和b,比较模拟路径点A到a和b的投影线段之间的第三距离,可得模拟路径点A对应的目标管道中心线分段为a。Combined with the accompanying drawings, an example is given, as shown in Figure 4, the dotted line in the figure represents the pipeline centerline, and in the three pipeline centerline segments a, b, and c, for the simulated path point A, and The possible segments are a and b. By comparing the third distance between the projection line segments from the simulated path point A to a and b, it can be obtained that the target pipeline centerline segment corresponding to the simulated path point A is a.

若模拟路径点靠近人体管道的分叉,可能出现最小的第三距离不止一个,或者存在与最小的第三距离非常接近的第三距离的情况,上述确定目标管道中心线分段的方式可能存在一定误差。为此,可以对上述确定方式做一定补充。If the simulated path point is close to the bifurcation of the human body pipeline, there may be more than one minimum third distance, or there may be a third distance very close to the minimum third distance, and the above method of determining the target pipeline centerline segment may have a certain error. For this reason, the above determination method can be supplemented.

具体的,对于初步筛选出的可能分段,判断是否需要再次筛选,若需要,则从可能分段中再次筛选得到候选分段,并计算导管的移动方向,在候选分段中选择与移动方向最接近的一个作为目标管道中心线分段;否则直接选择 第三距离最小的一个作为目标管道中心线分段。Specifically, for the possible segments initially screened, determine whether they need to be screened again. If necessary, screen the possible segments again to obtain candidate segments, calculate the moving direction of the catheter, and select the one closest to the moving direction from the candidate segments as the target pipeline centerline segment; otherwise, directly select The one with the third smallest distance is taken as the target pipeline centerline segment.

在判断是否需要再次筛选时,可以有基于第三距离和基于模拟路径点的位置两种方式。这两种方式可以独立使用,也可以以和的方式或者以或的方式组合使用。When determining whether to screen again, there are two methods: based on the third distance and based on the position of the simulated path point. These two methods can be used independently, or combined in an AND or OR manner.

基于第三距离,可以设定一个很小的范围,若除了最小第三距离之外,有其他第三距离与最小第三距离的差值落入这个范围,则需要再次筛选,差值落入该范围的第三距离对应的管道中心线分段即为候选分段。这里的差值可以是绝对值,即差值本身,也可以是相对值,即差值与最小第三距离的比值。Based on the third distance, a very small range can be set. If, in addition to the minimum third distance, the difference between other third distances and the minimum third distance falls within this range, it is necessary to screen again, and the pipeline centerline segments corresponding to the third distances whose difference falls within this range are the candidate segments. The difference here can be an absolute value, that is, the difference itself, or a relative value, that is, the ratio of the difference to the minimum third distance.

基于模拟路径点的位置,可以判断可能分段的各端点中是否存在一端点,它属于分叉点并且与模拟路径点之间的距离小于阈值,如果存在,则选择该端点所属的所有分段作为候选分段。模拟路径点与端点之间的距离可以是二者之间的欧式距离,或者欧式距离与端点所属的投影线段的长度的比值,或者模拟路径点与端点之间的投影距离(模拟路径点在投影线段上的垂足与端点之间的欧氏距离),或者投影距离与端点所属的投影线段的长度的比值,或者模拟路径点的对应点(即模拟路径点到管道中心线分段的形心的连线与管道中心线分段的交点)与端点之间的欧式距离或投影距离,或者该距离与端点所属的投影线段的长度的比值。Based on the position of the simulated path point, it can be determined whether there is an endpoint among the endpoints of the possible segments, which belongs to the bifurcation point and the distance between it and the simulated path point is less than the threshold value. If it exists, all the segments to which the endpoint belongs are selected as candidate segments. The distance between the simulated path point and the endpoint can be the Euclidean distance between the two, or the ratio of the Euclidean distance to the length of the projected line segment to which the endpoint belongs, or the projected distance between the simulated path point and the endpoint (the Euclidean distance between the foot of the perpendicular of the simulated path point on the projected line segment and the endpoint), or the ratio of the projected distance to the length of the projected line segment to which the endpoint belongs, or the Euclidean distance or projected distance between the corresponding point of the simulated path point (i.e., the intersection of the line connecting the simulated path point to the centroid of the pipeline centerline segment and the pipeline centerline segment) and the endpoint, or the ratio of the distance to the length of the projected line segment to which the endpoint belongs.

可以计算在先的模拟路径点tn-h指向当前的模拟路径点tn的向量作为导管的移动方向,h为正整数,可以根据实验、经验等方式设定。候选分段的方向可以为从其起点指向终点的向量。然后通过向量内积的方式来计算导管的移动方向与候选分段之间的夹角,选择夹角最小的一个作为目标管道中心线分段。 The vector from the previous simulated path point tnh to the current simulated path point tn can be calculated as the moving direction of the catheter, where h is a positive integer and can be set based on experiments, experience, etc. The direction of the candidate segment can be a vector pointing from its starting point to its end point. Then, the angle between the moving direction of the catheter and the candidate segment is calculated by the vector inner product method, and the one with the smallest angle is selected as the target pipeline centerline segment.

S14:计算目标管道中心线分段的形心。S14: Calculate the centroid of the target pipeline centerline segment.

形心,即形状的中心,其坐标可以为组成目标管道中心线分段的所有骨架点的坐标的平均值。由于目标管道中心线分段是对医学图像进行处理得到的,其密度可以认为是均匀的,因此目标管道中心线分段的形心也就是质心。The centroid, i.e., the center of the shape, may be the average coordinates of all skeleton points constituting the target pipeline centerline segment. Since the target pipeline centerline segment is obtained by processing the medical image, its density can be considered uniform, so the centroid of the target pipeline centerline segment is also the centroid.

若形心与组成目标管道中心线分段的多个骨架点均不相同,跳转到S15;若形心是多个骨架点中的一个,则跳转到S16。If the centroid is different from the multiple skeleton points constituting the target pipeline centerline segment, jump to S15; if the centroid is one of the multiple skeleton points, jump to S16.

S15:确定形心与模拟路径点之间的连线,从多个骨架点中选择与连线之间的距离最短的一个作为实际路径点的匹配点。S15: Determine the connection line between the centroid and the simulated path point, and select one of the multiple skeleton points with the shortest distance to the connection line as the matching point of the actual path point.

由于管道中心线反映了人体管道的形状,一般以点集的方式存储和使用,管道中心线往往不能用解析式来表达,无法求出交点的解析解,即使能够求出也不一定刚好是骨架点。因此在本申请中,将目标管道中心线分段上与连线距离最短的一个骨架点近似作为目标管道中心线分段与连线之间的交点。Since the pipeline centerline reflects the shape of the human body pipeline, it is generally stored and used in the form of a point set. The pipeline centerline often cannot be expressed by an analytical expression, and the analytical solution of the intersection point cannot be obtained. Even if it can be obtained, it may not be exactly the skeleton point. Therefore, in this application, a skeleton point on the target pipeline centerline segment with the shortest distance to the connecting line is approximated as the intersection point between the target pipeline centerline segment and the connecting line.

本申请中主要采用目标管道中心线分段与连线之间的交点作为匹配点,这种配准方式更符合导管机器人在人体管道内的运动方式,找到的匹配点更加准确。In this application, the intersection points between the target pipeline centerline segments and the connecting lines are mainly used as matching points. This registration method is more consistent with the movement mode of the catheter robot in the human body pipeline, and the matching points found are more accurate.

举例说明,如图5所示,图中的虚线表示目标管道中心线分段,sc为目标管道中心线分段的形心,实线表示导管机器人在解剖模型中的路径,模拟路径点tn与形心sc的连线与目标管道中心线分段的交点近似为骨架点qk,骨架点qk即为tn对应的实际路径点的匹配点。For example, as shown in Figure 5, the dotted line in the figure represents the target pipeline centerline segment, sc is the centroid of the target pipeline centerline segment, and the solid line represents the path of the catheter robot in the anatomical model. The intersection of the line connecting the simulated path point tn and the centroid sc and the target pipeline centerline segment is approximately the skeleton point qk , and the skeleton point qk is the matching point of the actual path point corresponding to tn.

有一种特殊情况:某个目标管道中心线分段的形心刚好是其上的一个骨架点。如图6所示,图中的虚线表示目标管道中心线分段,实线表示导管机器人在解剖模型中的路径,sc为目标管道中心线分段的形心并且sc为目标管道中心线分段上的一个骨架点,在这种情况下,无论模拟路径点在什么位置, 连线与该目标管道中心线分段的交点一定是形心sc,也就是说对应该目标管道中心线分段的所有路径点的匹配点均为形心sc,这显然违背了匹配的本意。因此在这种情况下,不能采用交点作为匹配点。There is a special case: the centroid of a target pipeline centerline segment is exactly a skeleton point on it. As shown in Figure 6, the dotted line in the figure represents the target pipeline centerline segment, the solid line represents the path of the catheter robot in the anatomical model, sc is the centroid of the target pipeline centerline segment and sc is a skeleton point on the target pipeline centerline segment. In this case, no matter where the simulation path point is, The intersection point of the connecting line and the target pipeline centerline segment must be the centroid sc , that is, the matching points of all path points corresponding to the target pipeline centerline segment are the centroid sc , which obviously violates the original intention of matching. Therefore, in this case, the intersection point cannot be used as the matching point.

S16:获取模拟路径点到投影线的第一垂足,并获取各骨架点到投影线的第二垂足,投影线为通过目标管道中心线分段两个端点的直线;选择与第一垂足之间的距离最短的第二垂足对应的骨架点作为实际路径点的匹配点。S16: Obtain the first perpendicular foot from the simulated path point to the projection line, and obtain the second perpendicular foot from each skeleton point to the projection line, where the projection line is a straight line passing through the two end points of the target pipeline centerline segment; select the skeleton point corresponding to the second perpendicular foot with the shortest distance to the first perpendicular foot as the matching point of the actual path point.

若目标管道中心线分段的形心刚好是其上的一个骨架点,则按照投影距离最近的原则来选择匹配点。具体的,获取模拟路径点到投影线的第一垂足,投影线为通过目标管道中心线分段两个端点的直线,并获取各骨架点到投影线的第二垂足。选择与第一垂足之间的距离最短的第二垂足对应的骨架点作为实际路径点的匹配点。由于分段完成后,就确定了各骨架点的第二垂足和第四距离,为缩短计算时间,可以先行计算并存储管道中心线上所有骨架点的第二垂足与所属的管道中心线分段的起点/终点之间的第四距离。后续需要使用投影距离时,只需要调取目标管道中心线分段上所有骨架点的第四距离,并计算第一垂足与目标管道中心线分段的起点/终点之间的第五距离,计算第四距离与第五距离之间的差值即可得到投影距离。If the centroid of the target pipeline centerline segment happens to be a skeleton point on it, the matching point is selected according to the principle of the shortest projection distance. Specifically, the first perpendicular foot from the simulated path point to the projection line is obtained, and the projection line is a straight line passing through the two end points of the target pipeline centerline segment, and the second perpendicular foot from each skeleton point to the projection line is obtained. The skeleton point corresponding to the second perpendicular foot with the shortest distance between the first perpendicular foot is selected as the matching point of the actual path point. Since the second perpendicular foot and the fourth distance of each skeleton point are determined after the segmentation is completed, in order to shorten the calculation time, the fourth distance between the second perpendicular foot of all skeleton points on the pipeline centerline and the start/end point of the pipeline centerline segment to which they belong can be calculated and stored in advance. When the projection distance is needed later, it is only necessary to call the fourth distance of all skeleton points on the target pipeline centerline segment, and calculate the fifth distance between the first perpendicular foot and the start/end point of the target pipeline centerline segment. The difference between the fourth distance and the fifth distance can be calculated to obtain the projection distance.

举例说明,如图7所示,图中的实线表示导管机器人在解剖模型中的路径,虚线表示目标管道中心线分段,点划线表示投影线,模拟路径点tn到投影线的第一垂足为dtn,与起点si之间的第五距离为Dtn,骨架点qk到投影线的第二垂足为dqk,与起点si之间的第四距离为Dqk,模拟路径点tn与骨架点qk之间的投影距离为|Dtn-Dqk|。For example, as shown in Figure 7, the solid line in the figure represents the path of the catheter robot in the anatomical model, the dotted line represents the target pipeline centerline segment, the dotted line represents the projection line, the first perpendicular foot from the simulated path point tn to the projection line is dtn , and the fifth distance between the starting point si is Dtn , the second perpendicular foot from the skeleton point qk to the projection line is dqk , and the fourth distance between the starting point si is Dqk , and the projection distance between the simulated path point tn and the skeleton point qk is | Dtn - Dqk |.

S17:利用实际路径点及其匹配点组成的第一点对更新点对集合。S17: Update the point pair set using the first point pair consisting of the actual path point and its matching point.

由于变换矩阵一般具有6个自由度,单个点对没法求出唯一解,因此需 要点对集合来暂时存储多个点对以计算变换矩阵。完成匹配之后,可以用得到的点对尝试更新点对集合。一种更新方式是直接将第一点对加入点对集合。然而由于导管机器人运动的复杂性,可能出现多个路径点匹配到同一个骨架点的情况,这样不利于后续的计算。为解决这一问题,在加入点对集合之前可以先对第一点对进行判定,具体如下。Since the transformation matrix generally has 6 degrees of freedom, a single point pair cannot find a unique solution, so A point pair set is used to temporarily store multiple point pairs to calculate the transformation matrix. After the matching is completed, the obtained point pairs can be used to try to update the point pair set. One way to update is to directly add the first point pair to the point pair set. However, due to the complexity of the catheter robot's movement, multiple path points may match the same skeleton point, which is not conducive to subsequent calculations. To solve this problem, the first point pair can be judged before adding it to the point pair set, as follows.

如图8所示,在某些实施例中,本步骤具体包括:As shown in FIG8 , in some embodiments, this step specifically includes:

S171:判断点对集合中是否存在包括匹配点的第二点对。S171: Determine whether there is a second point pair including a matching point in the point pair set.

若不存在,则跳转到S172;若存在,则跳转到S173。If it does not exist, jump to S172; if it does exist, jump to S173.

S172:将第一点对加入点对集合。S172: Add the first point pair to the point pair set.

S173:根据实际路径点与匹配点计算第一距离,根据第二点对中的路径点与匹配点计算第二距离,若第一距离小于第二距离,则将第二点对替换为第一点对。S173: Calculate a first distance based on the actual path point and the matching point, calculate a second distance based on the path point and the matching point in the second point pair, and if the first distance is smaller than the second distance, replace the second point pair with the first point pair.

第一距离可以被称为第一点对的距离,第二距离可以被称为第二点对的距离。第一距离可以为当前的实际路径点pn对应的模拟路径点tn与匹配点之间的欧式距离,第二距离可以为第二点对中的路径点对应的模拟路径点与匹配点之间的欧式距离。或者,第一距离可以为当前的实际路径点pn对应的模拟路径点tn与匹配点之间的投影距离,第二距离可以为第二点对中的路径点对应的模拟路径点与匹配点之间的投影距离。The first distance may be referred to as the distance of the first point pair, and the second distance may be referred to as the distance of the second point pair. The first distance may be the Euclidean distance between the simulated path point tn corresponding to the current actual path point pn and the matching point, and the second distance may be the Euclidean distance between the simulated path point corresponding to the path point in the second point pair and the matching point. Alternatively, the first distance may be the projected distance between the simulated path point tn corresponding to the current actual path point pn and the matching point, and the second distance may be the projected distance between the simulated path point corresponding to the path point in the second point pair and the matching point.

若第一距离大于或等于第二距离,则不修改点对集合。If the first distance is greater than or equal to the second distance, the point pair set is not modified.

然后可以判断更新之后的点对集合是否满足第一条件,第一条件是更新变换矩阵的条件。第一条件可以包括点对集合中的点对数量大于预设值。理论上只需要3个点对就能算出变换矩阵的唯一解,为减少误差的影响,实际应用中往往用多个点对以最小二乘法来估算变换矩阵的最优解。预设值为设 定的估算变换矩阵所需的点对数量的最小值。预设值必须大于或等于3,具体取值可以按需设定,例如100、200等。Then, it can be determined whether the updated point pair set meets the first condition, which is the condition for updating the transformation matrix. The first condition may include that the number of point pairs in the point pair set is greater than a preset value. In theory, only three point pairs are needed to calculate the unique solution of the transformation matrix. In order to reduce the influence of errors, multiple point pairs are often used in practical applications to estimate the optimal solution of the transformation matrix by the least squares method. The preset value is set The minimum number of point pairs required to estimate the transformation matrix. The default value must be greater than or equal to 3, and the specific value can be set as needed, such as 100, 200, etc.

若点对集合满足第一条件,则跳转到S18。If the point pair set satisfies the first condition, jump to S18.

S18:使用点对集合更新第一变换矩阵。S18: Update the first transformation matrix using the point pair set.

如图9所示,在某些实施例中,本步骤具体包括:As shown in FIG. 9 , in some embodiments, this step specifically includes:

S181:将点对集合中的点对代入目标函数计算最新的第二变换矩阵。S181: Substitute the point pairs in the point pair set into the objective function to calculate the latest second transformation matrix.

可以预先设计一目标函数,目标函数一般反映匹配点对的误差,然后将点对集合中的各点对代入目标函数,估算能够使得目标函数最小的变换矩阵作为最新的第二变换矩阵,或者说本轮迭代的第二变换矩阵。An objective function can be designed in advance, which generally reflects the error of matching point pairs. Then, each point pair in the point pair set is substituted into the objective function, and the transformation matrix that can minimize the objective function is estimated as the latest second transformation matrix, or the second transformation matrix of this round of iteration.

可以使用ICP常用的目标函数:
The commonly used objective function of ICP can be used:

其中,N为点对集合中点对的总数,i为点对集合中点对的序号,i=1,2,…,N,为第i个点对中匹配点在解剖模型中的坐标,为第i个点对中实际路径点在世界坐标系中的坐标,T为变换矩阵。Where N is the total number of point pairs in the point pair set, i is the sequence number of the point pair in the point pair set, i = 1, 2, ..., N, is the coordinate of the matching point in the anatomical model in the i-th point pair, is the coordinate of the actual path point in the i-th point pair in the world coordinate system, and T is the transformation matrix.

由于人体管道有粗有细,在更粗的管道中路径相对于中心线的偏移范围就越大。为得到更准确的变换矩阵,可以在目标函数中引入人体管道的半径参数,改进的目标函数为:
Since the human body's pipes are thick or thin, the path in the thicker pipe has a larger offset range relative to the center line. In order to obtain a more accurate transformation matrix, the radius parameter of the human body pipe can be introduced into the objective function. The improved objective function is:

其中,rn为第i个点对中实际路径点对应的模拟路径点对应的目标管道中心线分段n的平均半径。Wherein, rn is the average radius of the target pipeline centerline segment n corresponding to the simulated path point corresponding to the actual path point in the i-th point pair.

S182:根据最新的第二变换矩阵更新第一变换矩阵。S182: Update the first transformation matrix according to the latest second transformation matrix.

可以直接将最新的第二变换矩阵作为更新后的第一变换矩阵。或者,为 了适应动态局部配准的情况,在计算第一变换矩阵的时候可以引入历史第二变换矩阵。可选的,第一变换矩阵为最新的第二变换矩阵与至少部分历史第二变换矩阵的加权平均值,其中最新的第二变换矩阵的权重大于历史第二变换矩阵的权重。The latest second transformation matrix can be directly used as the updated first transformation matrix. In order to adapt to the situation of dynamic local registration, the historical second transformation matrix can be introduced when calculating the first transformation matrix. Optionally, the first transformation matrix is a weighted average of the latest second transformation matrix and at least part of the historical second transformation matrix, wherein the weight of the latest second transformation matrix is greater than the weight of the historical second transformation matrix.

举例说明,第一变换矩阵的一种具体的计算公式为:
For example, a specific calculation formula of the first transformation matrix is:

其中,M表示已完成的最新一轮迭代的序号,m表示历史迭代(最新一轮迭代之前的迭代)的序号,m=1,2,…,M-1。Wherein, M represents the serial number of the latest completed iteration, m represents the serial number of the historical iteration (iteration before the latest iteration), m=1, 2, ..., M-1.

每轮ICP迭代完成之后,接下来使用更新后的第一变换矩阵来对实际路径点进行变换。After each round of ICP iteration is completed, the updated first transformation matrix is used to transform the actual path points.

通过本实施例的实施,为了适应复杂的人体环境,本申请先确定与模拟路径点对应的目标管道中心线分段,以减少匹配点不在导管当前所在的管道内的错误,并且选择距离模拟路径点与目标管道中心线分段的形心之间的连线最短的一个骨架点,可以近似认为该骨架点为连线与目标管道中心线分段的交点,以此交点作为实际路径点的匹配点,能更准确的反映导管在管道内运动的路径点与管道中心线的匹配关系,提高点云配准的精确度,即得到更精确的第一变换矩阵,从而提高导管术中导航的准确性。Through the implementation of this embodiment, in order to adapt to the complex human body environment, the present application first determines the target pipeline centerline segment corresponding to the simulated path point to reduce the error that the matching point is not in the pipeline where the catheter is currently located, and selects a skeleton point with the shortest distance between the line connecting the simulated path point and the centroid of the target pipeline centerline segment. The skeleton point can be approximately considered as the intersection of the line and the target pipeline centerline segment. This intersection is used as the matching point of the actual path point, which can more accurately reflect the matching relationship between the path point of the catheter moving in the pipeline and the pipeline centerline, improve the accuracy of point cloud registration, that is, obtain a more accurate first transformation matrix, thereby improving the accuracy of navigation during catheterization.

下面结合附图,基于从三维肺部CT图像(对多张肺部断层CT图像三维重建得到)中提取得到的解剖模型以及其中的气道中心线举例说明术中导航的完整过程,其中与前述实施例相同的部分不再重复。In conjunction with the accompanying drawings, the complete process of intraoperative navigation is illustrated below based on the anatomical model extracted from a three-dimensional lung CT image (obtained by three-dimensional reconstruction of multiple lung tomographic CT images) and the airway centerline therein, wherein the same parts as those in the previous embodiment are not repeated.

气道包括气管和支气管,整体呈逐级分叉的树形结构,因此也可以被称为气道树。气管在末端分裂为左、右主支气管,主支气管分布深入左右肺中,在左、右肺中分裂为叶支气管(通常为左肺三支、右肺两支),叶支气管分 裂为段支气管,逐级分裂最终至肺泡。The airway includes the trachea and bronchi, which are a tree-like structure that branches out step by step. Therefore, it can also be called the airway tree. The trachea splits into the left and right main bronchi at the end. The main bronchi are distributed deep into the left and right lungs. In the left and right lungs, they split into lobar bronchi (usually three in the left lung and two in the right lung). The lobar bronchi are divided into It splits into segmental bronchi, which gradually divide into alveoli.

如图10所示,本申请一实施例中术中导航的流程包括:As shown in FIG10 , the process of intraoperative navigation in one embodiment of the present application includes:

S101:获取包含气道中心线的解剖模型。S101: Acquire an anatomical model including an airway centerline.

S102:对气道中心线进行重采样。S102: Resample the airway centerline.

S103:从气道中心线包括的多个骨架点提取出分叉点和末端点。S103: Extracting bifurcation points and end points from a plurality of skeleton points included in the airway centerline.

S104:使用分叉点和末端点将气道中心线划分为多个分段。S104: Divide the airway centerline into multiple segments using bifurcation points and end points.

S105:对世界坐标系和解剖模型进行粗配准。S105: Roughly align the world coordinate system and the anatomical model.

一般通过采集少量的具有明显特征的点(例如主隆突,左肺叶和右肺叶的第一级、第二级隆突等)在世界坐标系以及解剖模型中的坐标来进行粗配准。Generally, a coarse registration is performed by collecting the coordinates of a small number of points with obvious features (such as the main carina, the first and second carinas of the left and right lobes, etc.) in the world coordinate system and the anatomical model.

S106:利用传感器获取导管末端的实际路径点。S106: Using the sensor to obtain the actual path point of the catheter end.

S107:使用第一变换矩阵对实际路径点进行坐标变换得到对应的模拟路径点。S107: Use the first transformation matrix to perform coordinate transformation on the actual path points to obtain corresponding simulated path points.

S108:判断是否满足配准条件。S108: Determine whether the registration condition is met.

若满足,则跳转到S109;否则跳转到S106。If satisfied, jump to S109; otherwise jump to S106.

S109:确定与模拟路径点对应的目标分段。S109: Determine the target segment corresponding to the simulated path point.

S110:计算目标分段的形心。S110: Calculate the centroid of the target segment.

S111:判断形心是否为目标分段上的一个骨架点。S111: Determine whether the centroid is a skeleton point on the target segment.

若是,则跳转到S112,否则跳转到S113。If yes, jump to S112, otherwise jump to S113.

S112:获取模拟路径点到投影线的第一垂足,并获取目标分段包括的各骨架点到投影线的第二垂足,投影线为通过目标分段两个端点的直线;选择与第一垂足之间的距离最短的第二垂足对应的骨架点作为实际路径点的匹配点。 S112: Obtain the first perpendicular from the simulated path point to the projection line, and obtain the second perpendicular from each skeleton point included in the target segment to the projection line, where the projection line is a straight line passing through the two end points of the target segment; select the skeleton point corresponding to the second perpendicular with the shortest distance to the first perpendicular as the matching point of the actual path point.

跳转到S114。Jump to S114.

S113:确定形心与模拟路径点之间的连线,从目标分段包括的多个骨架点中选择与连线之间的距离最短的一个作为实际路径点的匹配点。S113: Determine the connection line between the centroid and the simulated path point, and select one of the multiple skeleton points included in the target segment with the shortest distance to the connection line as the matching point of the actual path point.

S114:判断点对集合中是否存在包括匹配点的第二点对。S114: Determine whether there is a second point pair including a matching point in the point pair set.

若不存在,则跳转到S115;否则跳转到S116。If it does not exist, jump to S115; otherwise jump to S116.

S115:将实际路径点及其匹配点组成的第一点对加入点对集合。S115: Add the first point pair consisting of the actual path point and its matching point to the point pair set.

跳转到S118。Jump to S118.

S116:根据实际路径点与匹配点计算第一距离,根据第二点对中的路径点与匹配点计算第二距离,比较第一距离与第二距离的大小。S116: Calculate a first distance based on the actual path point and the matching point, calculate a second distance based on the path point and the matching point in the second point pair, and compare the first distance with the second distance.

若第一距离小于第二距离,则跳转到S117;否则跳转到S118。在某些实施例中,If the first distance is less than the second distance, then jump to S117; otherwise jump to S118.

S117:将第二点对替换为第一点对。S117: Replace the second point pair with the first point pair.

S118:判断点对集合是否满足第一条件。S118: Determine whether the point pair set satisfies the first condition.

若满足,则跳转到S119;否则跳转到S106。If satisfied, jump to S119; otherwise jump to S106.

S119:将点对集合中的点对代入目标函数计算最新的第二变换矩阵。S119: Substitute the point pairs in the point pair set into the objective function to calculate the latest second transformation matrix.

S120:计算最新的第二变换矩阵与至少部分历史第二变换矩阵的加权平均值作为更新后的第一变换矩阵。S120: Calculate a weighted average of the latest second transformation matrix and at least part of the historical second transformation matrix as an updated first transformation matrix.

跳转到S106。Jump to S106.

S106-S120的过程可以被称为对世界坐标系和解剖模型的动态精配准。The process of S106 - S120 may be referred to as dynamic fine registration of the world coordinate system and the anatomical model.

如图11所示,在本发明一实施例中,对管道中心线分段的过程具体包括:As shown in FIG. 11 , in one embodiment of the present invention, the process of segmenting the pipeline centerline specifically includes:

S21:从组成管道中心线的多个骨架点中提取特征骨架点。S21: Extract feature skeleton points from multiple skeleton points constituting the center line of the pipeline.

常规三维图像中,像素的位置由三维坐标(x,y,z)表示,需要用3个数来表示像素的位置,占据较大的存储空间,并且由于在查找过程中需要对3个数 进行比较,对查找速度也有不利的影响。为减小存储解剖模型等三维图像所占据的空间,以及加快查询速度,本实施例中的骨架点的位置由单个数字的编码表示。In conventional 3D images, the position of a pixel is represented by a 3D coordinate (x, y, z). Three numbers are needed to represent the position of the pixel, which takes up a large storage space. In addition, since the three numbers need to be searched during the search process, In comparison, it also has an adverse effect on the search speed. In order to reduce the space occupied by storing three-dimensional images such as anatomical models and to speed up the search speed, the positions of the skeleton points in this embodiment are represented by a single digital code.

具体的,解剖模型中的各像素(包括骨架点在内)的编码s=x1+x2R1+x3R1R2,其中x1、x2、x3分别为像素在编码顺序第一、第二、第三的维度上的坐标,R1、R2分别为解剖模型在编码顺序第一、第二的维度上的尺寸。Specifically, the encoding of each pixel (including skeleton points ) in the anatomical model is s= x1 + x2R1 + x3R1R2 , where x1 , x2 , x3 are the coordinates of the pixel in the first, second and third dimensions of the encoding order , respectively, and R1 and R2 are the sizes of the anatomical model in the first and second dimensions of the encoding order, respectively.

结合附图举例说明,如图12所示,解剖模型的三个维度为X、Y、Z,编码顺序依次为X、Y、Z,则s=x1+x2R1+x3R1R2,x1为像素在X轴上的坐标,x2为像素在Y轴上的坐标,x3为像素在Z轴上的坐标,R1为解剖模型在X轴上的尺寸,即像素总数,R2为解剖模型在Y轴上的尺寸。Take the accompanying drawings as an example, as shown in Figure 12, the three dimensions of the anatomical model are X, Y, and Z, and the encoding order is X, Y, and Z, then s= x1 + x2R1 + x3R1R2 , x1 is the coordinate of the pixel on the X-axis, x2 is the coordinate of the pixel on the Y-axis, x3 is the coordinate of the pixel on the Z-axis, R1 is the size of the anatomical model on the X-axis, that is, the total number of pixels, and R2 is the size of the anatomical model on the Y-axis.

相关技术中,对二维骨架图像提取特征点一般是先用查表法筛选出候选特征点,再从中提取特征点。查表法的原理是:二维骨架图像是二值图像,那么考虑一个像素的8邻域,包括其自身在内的3×3区域共有29=512种可能的排列,每种排列表示一种骨架点的分布,其中哪些排列表示该像素是端点/交叉点是已知的。设计一个3×3的卷积核,其中每个位置都设置为不同值,例如1、2、4、8、16、32、64、128、256,卷积之后的值是标量,与以像素为中心的3×3区域的排列一一对应,计算端点和交叉点对应的卷积值并存储为特征点对应表。使用时只需要使用该卷积核对二维骨架图像进行卷积,然后在得到的卷积图像中查找特征点对应表中的卷积值,即可一次性找出所有的候选特征点。In the related art, feature points are generally extracted from a two-dimensional skeleton image by first using a table lookup method to screen out candidate feature points, and then extracting feature points from them. The principle of the table lookup method is: the two-dimensional skeleton image is a binary image, so considering the 8 neighborhoods of a pixel, the 3×3 area including itself has a total of 2 9 =512 possible arrangements, each arrangement represents a distribution of skeleton points, and which arrangements represent that the pixel is an endpoint/intersection point is known. Design a 3×3 convolution kernel, in which each position is set to a different value, such as 1, 2, 4, 8, 16, 32, 64, 128, 256, and the value after convolution is a scalar, which corresponds one-to-one to the arrangement of the 3×3 area centered on the pixel, and calculate the convolution values corresponding to the endpoints and intersections and store them as a feature point correspondence table. When using it, you only need to use the convolution kernel to convolve the two-dimensional skeleton image, and then search for the convolution value in the feature point correspondence table in the obtained convolution image to find all the candidate feature points at once.

然而当查表法应用到三维骨架图像(例如本申请中的解剖模型)时,由于邻域从二维的8邻域扩展到26邻域,3×3区域扩展到3×3×3区域,可能的排列的类别从29变为227=134217728,表格的生成和查找都将变得非常复 杂,查表法并不适用于从三维骨架图像中提取特征骨架点。However, when the table lookup method is applied to a three-dimensional skeleton image (such as the anatomical model in this application), since the neighborhood is expanded from the 8 neighborhoods in two dimensions to the 26 neighborhoods, and the 3×3 area is expanded to the 3×3×3 area, the possible permutation categories increase from 2 9 to 2 27 = 134217728, the generation and search of the table will become very complicated. The table lookup method is not suitable for extracting feature skeleton points from 3D skeleton images.

如图13所示,在本申请一实施例中,提出了基于区域生长法来提取特征骨架点,具体包括:As shown in FIG. 13 , in one embodiment of the present application, a method for extracting characteristic skeleton points based on a region growing method is proposed, which specifically includes:

S211:确定起始点。S211: Determine the starting point.

起始点,也称种子点,是作为区域生长起点的骨架点。根据气道树的结构特点,一般选择气道树的起点,也就是气管入口的骨架点作为起始点。相关技术中一般需要人工选择起始点,本申请中提出了一种自动选择起始点的方法,具体如下。The starting point, also called the seed point, is the skeleton point that serves as the starting point for regional growth. According to the structural characteristics of the airway tree, the starting point of the airway tree, that is, the skeleton point of the tracheal entrance, is generally selected as the starting point. In the related art, it is generally necessary to manually select the starting point. In this application, a method for automatically selecting the starting point is proposed, which is as follows.

如图14所示,在本申请一实施例中,本步骤具体包括:As shown in FIG. 14 , in one embodiment of the present application, this step specifically includes:

S2111:随机选择一体层。S2111: Randomly select an integral layer.

三维CT图像由多张断层CT图像重建得到,其中每张断层CT图像对应一个解剖层。解剖模型是对三维CT图像进行图像处理而得到的,相应的,解剖模型由多个体层组成,每个体层对应一张断层CT图像的处理结果。解剖模型的一个维度(一般为z)用于区分不同的体层。The three-dimensional CT image is reconstructed from multiple slice CT images, where each slice CT image corresponds to an anatomical layer. The anatomical model is obtained by image processing of the three-dimensional CT image. Accordingly, the anatomical model consists of multiple layers, each layer corresponding to the processing result of a slice CT image. One dimension of the anatomical model (usually z) is used to distinguish different layers.

S2112:统计该体层在垂直于横断面的方向上两侧指定数量的层中骨架点的总数,以确定气道延伸的方向。S2112: Count the total number of skeleton points in a specified number of layers on both sides of the body layer in a direction perpendicular to the cross section to determine the direction in which the airway extends.

断层CT图像就是通过投影重建对横断面成像。根据气道的结构特点,可以知道在气管入口的位置,与气道延伸方向相同的一侧起始只有少量骨架点(只有气管的部分每层只有一个骨架点),随后骨架点数量迅速增多(包括支气管的部分),与气道延伸方向相反的一侧起始没有骨架点或只有少量骨架点,随后也会变为没有骨架点;气道树的终点附近骨架点数量明显减少,但单层的骨架点数量一般大于气管入口位置。据此可以确定气道延伸的方向。The tomographic CT image is a cross-sectional image reconstructed by projection. According to the structural characteristics of the airway, it can be known that at the entrance of the trachea, there are only a few skeleton points on the side with the same direction of airway extension (only the trachea has one skeleton point per layer), and then the number of skeleton points increases rapidly (including the bronchus). The side opposite to the direction of airway extension has no skeleton points or only a few skeleton points, and then there will be no skeleton points; the number of skeleton points near the end of the airway tree is significantly reduced, but the number of skeleton points in a single layer is generally greater than the entrance of the trachea. Based on this, the direction of airway extension can be determined.

S2113:根据体层中骨架点的总数以及气道延伸的方向寻找气管入口的骨 架点作为起始点。S2113: Find the bone structure of the tracheal entrance based on the total number of skeleton points in the body layer and the direction of airway extension. The rack point is used as the starting point.

从随机选择的体层开始,根据气道延伸的方向向气管入口搜寻,直至找到气管入口的骨架点。Starting from a randomly selected body layer, search toward the tracheal entrance according to the direction of airway extension until the skeleton point of the tracheal entrance is found.

S212:从起始点开始,用区域生长法搜索骨架点并统计骨架点的连通数。S212: Starting from the starting point, use the region growing method to search for skeleton points and count the number of connections of the skeleton points.

连通数为骨架点的邻域中所有子节点的数量。传统的三维坐标系中,骨架点与其邻域中的像素点之间的相对坐标关系是已知的,即已知某个骨架点的三维坐标,可以确定其邻域中所有像素点的三维坐标,将该相对坐标关系代入编码计算公式s=x1+x2R1+x3R1R2,即可得到骨架点与其邻域中的像素点之间的相对编码关系。The connectivity number is the number of all child nodes in the neighborhood of the skeleton point. In the traditional three-dimensional coordinate system, the relative coordinate relationship between the skeleton point and the pixel points in its neighborhood is known, that is, if the three-dimensional coordinates of a skeleton point are known, the three-dimensional coordinates of all the pixel points in its neighborhood can be determined. Substituting this relative coordinate relationship into the encoding calculation formula s = x 1 +x 2 R 1 +x 3 R 1 R 2 , the relative encoding relationship between the skeleton point and the pixel points in its neighborhood can be obtained.

从起始点开始,在起始点的邻域中查找骨架点,找到的骨架点均为起始点的子节点,起始点为这些骨架点的父节点。以此类推,对于除了起始点之外的各骨架点,其邻域内必有一个父节点,其邻域内找到的骨架点中除父节点之外的为该骨架点的子节点,统计子节点的数量得到该骨架点的连通数。Starting from the starting point, search for skeleton points in the neighborhood of the starting point. The skeleton points found are all child nodes of the starting point, and the starting point is the parent node of these skeleton points. Similarly, for each skeleton point except the starting point, there must be a parent node in its neighborhood. The skeleton points found in its neighborhood except the parent node are the child nodes of the skeleton point. The number of child nodes is counted to get the connectivity number of the skeleton point.

S213:根据骨架点及其父节点的连通数确定特征骨架点。S213: Determine a characteristic skeleton point according to the number of connections between the skeleton point and its parent node.

若骨架点的连通数大于1,且父节点的连通数等于1,则骨架点为特征骨架点中的分叉点。若骨架点的连通数等于1,且父节点的连通数等于0,则骨架点为特征骨架点中的末端点。If the connectivity number of a skeleton point is greater than 1, and the connectivity number of the parent node is equal to 1, the skeleton point is a bifurcation point among the characteristic skeleton points. If the connectivity number of a skeleton point is equal to 1, and the connectivity number of the parent node is equal to 0, the skeleton point is an end point among the characteristic skeleton points.

S22:根据特征骨架点将管道中心线划分为多个管道中心线分段。S22: Divide the pipeline centerline into a plurality of pipeline centerline segments according to the characteristic skeleton points.

为除起始点之外的各特征骨架点确定其父特征点,每个管道中心线分段的两个端点为一个特征骨架点及其父特征点。为某个特征骨架点确定其父特征点的过程包括:沿着该特征骨架点的父节点的方向搜索,即寻找该特征骨架点的父节点,再寻找父节点的父节点,以此类推,找到的第一个特征骨架点即为该特征骨架点的父特征点。 The parent feature point is determined for each feature skeleton point except the starting point. The two endpoints of each pipeline centerline segment are a feature skeleton point and its parent feature point. The process of determining the parent feature point for a feature skeleton point includes: searching along the direction of the parent node of the feature skeleton point, that is, finding the parent node of the feature skeleton point, then finding the parent node of the parent node, and so on. The first feature skeleton point found is the parent feature point of the feature skeleton point.

由于管道中心线可能会有毛刺,导致提取的特征骨架点以及划分的管道中心线分段中存在错误,可选的,执行后续两个步骤以过滤错误的分段和特征骨架点。Since the pipeline centerline may have burrs, resulting in errors in the extracted feature skeleton points and the divided pipeline centerline segments, the following two steps are optionally performed to filter out the erroneous segments and feature skeleton points.

S23:统计管道中心线分段中骨架点的数量。S23: Count the number of skeleton points in the pipeline centerline segment.

S24:删除数量小于预设阈值的管道中心线分段。S24: deleting pipeline centerline segments whose number is less than a preset threshold.

可以为特征骨架点设置一用于表示级别的参数,每个特征骨架点的级别参数为其父特征点的级别参数加1,级别参数越小,特征骨架点的级别越高,越靠近气管。预设阈值可以是根据管道中心分段的端点的级别参数确定的。一般来说,级别参数越大的特征骨架点对应的支气管段越短,相应的,预设阈值越小。可选的,设定一级别范围,级别范围一般排除较大的级别参数,仅对端点在级别范围内的管道中心线分段进行过滤。A parameter for indicating the level can be set for the feature skeleton point. The level parameter of each feature skeleton point is the level parameter of its parent feature point plus 1. The smaller the level parameter, the higher the level of the feature skeleton point and the closer it is to the trachea. The preset threshold can be determined based on the level parameter of the endpoint of the pipeline center segment. Generally speaking, the larger the level parameter of the feature skeleton point, the shorter the bronchial segment corresponding to the feature skeleton point, and accordingly, the smaller the preset threshold. Optionally, a level range is set. The level range generally excludes larger level parameters, and only the pipeline centerline segments whose endpoints are within the level range are filtered.

若删除某个管道中心线分段,则将其中除起点si(即两个端点中级别参数更小的一个)之外的其他骨架点均改为非骨架点,并删除起点为非骨架点的所有管道中心线分段。若删除之后si作为起点的管道中心线分段的数量等于1,则将si修改为普通的骨架点,若删除之后si作为起点的管道中心线分段的数量等于0,则将si修改为末端点。If a pipeline centerline segment is deleted, all skeleton points except the starting point si (i.e., the one with the smaller level parameter of the two endpoints) are changed to non-skeleton points, and all pipeline centerline segments with non-skeleton points as starting points are deleted. If the number of pipeline centerline segments with si as the starting point is equal to 1 after deletion, si is modified to a normal skeleton point. If the number of pipeline centerline segments with si as the starting point is equal to 0 after deletion, si is modified to an end point.

本申请实施方式还提供一种导管机器人的控制系统。请参考图15,其示出了本申请一实施例提供的导管系统的控制系统的结构示意图。如图15所示,控制系统600包括:处理器60,存储器61,总线62和通信接口63,所述处理器60、通信接口63和存储器61通过总线62连接;所述存储器61中存储有可被所述处理器60执行的计算机程序指令,所述处理器60执行所述计算机程序指令时执行本申请前述任一实施方式所提供的导管机器人的配准方法。The embodiment of the present application also provides a control system for a catheter robot. Please refer to Figure 15, which shows a schematic diagram of the structure of the control system of the catheter system provided by an embodiment of the present application. As shown in Figure 15, the control system 600 includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, and the processor 60, the communication interface 63 and the memory 61 are connected through the bus 62; the memory 61 stores computer program instructions that can be executed by the processor 60, and when the processor 60 executes the computer program instructions, it executes the alignment method of the catheter robot provided in any of the aforementioned embodiments of the present application.

其中,存储器61可能包含高速随机存取存储器(RAM:Random Access  Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口63(可以是有线或者无线)实现该装置网元与至少一个其他网元之间的通信连接,可以使用互联网、广域网、本地网、城域网等。The memory 61 may include a high-speed random access memory (RAM). Memory), and may also include non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 63 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.

总线62可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。其中,存储器61用于存储程序,所述处理器60在接收到执行指令后,执行所述程序,前述本申请实施例任一实施方式揭示的所述导管机器人的配准方法可以应用于处理器60中,或者由处理器60实现。The bus 62 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 61 is used to store programs, and the processor 60 executes the programs after receiving the execution instructions. The alignment method of the catheter robot disclosed in any of the embodiments of the present application may be applied to the processor 60, or implemented by the processor 60.

处理器60可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器60中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器60可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器61,处理器60读取存储器61中的信息,结合其硬件完成上述方法的步骤。The processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 60 or the instruction in the form of software. The above processor 60 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and completes the steps of the above method in combination with its hardware.

本申请实施例提供的导管机器人的控制系统与本申请实施例提供的导管 机器人的配准方法出于相同的发明构思,具有与其采用、运行或实现的方法相同的有益效果。The control system of the catheter robot provided in the embodiment of the present application is the same as the catheter provided in the embodiment of the present application. The robot registration method is based on the same inventive concept and has the same beneficial effects as the method adopted, operated or implemented by the robot.

本申请实施方式还提供一种与前述实施方式所提供的导管机器人的配准方法对应的计算机可读存储介质,请参考图16,其示出的计算机可读存储介质6,其上存储有计算机程序指令,所述计算机程序指令在被处理器执行时,会实现前述任意实施方式所提供的导管机器人的配准方法。An embodiment of the present application also provides a computer-readable storage medium corresponding to the catheter robot alignment method provided in the aforementioned embodiment. Please refer to Figure 16, which shows a computer-readable storage medium 6 on which computer program instructions are stored. When the computer program instructions are executed by the processor, they will implement the catheter robot alignment method provided in any of the aforementioned embodiments.

需要说明的是,所述计算机可读存储介质的例子可以包括,但不限于光盘、相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他光学、磁性存储介质,在此不再一一赘述。It should be noted that examples of the computer-readable storage medium may include, but are not limited to, optical disks, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

本申请的上述实施例提供的计算机可读存储介质与本申请实施例提供的导管机器人的配准方法出于相同的发明构思,具有与其存储的应用程序所采用、运行或实现的方法相同的有益效果。The computer-readable storage medium provided in the above-mentioned embodiment of the present application and the catheter robot registration method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

需要说明的是:It should be noted:

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的结构和技术,以便不模糊对本说明书的理解。In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.

类似地,应当理解,为了精简本申请并帮助理解各个发明方面中的一个或多个,在上面对本申请的示例性实施例的描述中,本申请的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开 的方法解释成反映如下示意图:即所要求保护的本申请要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本申请的单独实施例。Similarly, it should be understood that in order to simplify the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosure should not be considered The method of describing the invention is to be interpreted as reflecting a schematic representation that the claimed application requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of the invention.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本申请的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.

以上所述,仅为本申请较佳的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以基于需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules based on needs, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed devices/terminal equipment and methods can be implemented in other ways. For example, the device/terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以基于实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected based on actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产 品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以基于司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,基于立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and used as an independent product When the product is sold or used, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased based on the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, based on legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or combinations thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term “and/or” used in the specification and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到所描述条件或事件” 可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到所描述条件或事件”或“响应于检测到所描述条件或事件”。As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if the described condition or event is detected" May be interpreted to mean "upon determination" or "in response to determination" or "upon detection of a described condition or event" or "in response to detection of a described condition or event" depending on the context.

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。 The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims (12)

一种导管机器人,其中,所述导管机器人包括机械臂,与所述机械臂的动力部进行接合的导管器械,与所述机械臂通讯连接的处理器,所述导管器械包括被设置成与所述动力部接合的器械盒以及与所述器械盒连接的导管,所述导管和/或所述导管搭载的器械上设置有用于测量所述导管和/或所述器械的位置的传感器,所述处理器被配置成执行以下步骤:A catheter robot, wherein the catheter robot comprises a mechanical arm, a catheter instrument engaged with a power unit of the mechanical arm, and a processor communicatively connected to the mechanical arm, the catheter instrument comprises an instrument box configured to be engaged with the power unit and a catheter connected to the instrument box, the catheter and/or the instrument carried by the catheter are provided with a sensor for measuring the position of the catheter and/or the instrument, and the processor is configured to perform the following steps: 利用所述传感器获取所述导管和/或所述器械的实际路径点;utilizing the sensor to obtain actual path points of the catheter and/or the instrument; 根据第一变换矩阵获取所述导管和/或所述器械在解剖模型中与所述实际路径点对应的模拟路径点,所述解剖模型包括管道中心线;Acquire simulated path points of the catheter and/or the instrument corresponding to the actual path points in the anatomical model according to the first transformation matrix, wherein the anatomical model includes a pipeline centerline; 在所述管道中心线分成的多个管道中心线分段中确定与所述模拟路径点对应的目标管道中心线分段;Determine a target pipeline centerline segment corresponding to the simulation path point among the plurality of pipeline centerline segments into which the pipeline centerline is divided; 计算所述目标管道中心线分段的形心;Calculating the centroid of the target pipeline centerline segment; 若所述形心与所述目标管道中心线分段包括的多个骨架点均不相同,则确定所述形心与所述模拟路径点之间的连线,从所述多个骨架点中选择与所述连线之间的距离最短的一个作为所述实际路径点的匹配点。If the centroid is different from the multiple skeleton points included in the target pipeline centerline segment, a line between the centroid and the simulated path point is determined, and one of the multiple skeleton points with the shortest distance to the line is selected as the matching point of the actual path point. 根据权利要求1所述的导管机器人,其中,所述处理器被配置成在所述计算所述目标管道中心线分段的形心之后执行以下步骤:The catheter robot according to claim 1, wherein the processor is configured to perform the following steps after calculating the centroid of the target pipeline centerline segment: 若所述形心是所述多个骨架点中的一个,则获取所述模拟路径点到投影线的第一垂足,并获取各所述骨架点到所述投影线的第二垂足,所述投影线为通过所述目标管道中心线分段两个端点的直线;选择与所述第一垂足之间的距离最短的第二垂足对应的骨架点作为所述实际路径点的匹配点。If the centroid is one of the multiple skeleton points, obtain the first perpendicular foot from the simulated path point to the projection line, and obtain the second perpendicular foot from each skeleton point to the projection line, where the projection line is a straight line passing through the two end points of the target pipeline centerline segment; select the skeleton point corresponding to the second perpendicular foot with the shortest distance to the first perpendicular foot as the matching point of the actual path point. 根据权利要求2所述的导管机器人,其中,所述处理器被配置成执行以下步骤:The catheter robot according to claim 2, wherein the processor is configured to perform the following steps: 利用所述实际路径点及其匹配点组成的第一点对更新点对集合;Updating the point pair set using the first point pair consisting of the actual path point and its matching point; 若所述点对集合满足第一条件,则使用所述点对集合更新所述第一变换矩阵,其中所述第一条件包括所述点对集合中的点对数量大于预设值。 If the point pair set satisfies a first condition, the point pair set is used to update the first transformation matrix, wherein the first condition includes that the number of point pairs in the point pair set is greater than a preset value. 根据权利要求3所述的导管机器人,其中,所述处理器被配置成在所述利用所述实际路径点及其匹配点组成的匹配点对更新点对集合中执行以下步骤:The catheter robot according to claim 3, wherein the processor is configured to perform the following steps in the updating of the point pair set using the matching point pairs consisting of the actual path points and their matching points: 判断所述点对集合中是否存在包括所述匹配点的第二点对;Determine whether there is a second point pair including the matching point in the point pair set; 若不存在,则将所述第一点对加入所述点对集合,若存在,则根据所述实际路径点与所述匹配点计算第一距离,根据所述第二点对中的路径点与所述匹配点计算第二距离,若所述第一距离小于所述第二距离,则将所述第二点对替换为所述第一点对。If it does not exist, the first point pair is added to the point pair set; if it exists, the first distance is calculated based on the actual path point and the matching point, and the second distance is calculated based on the path point in the second point pair and the matching point; if the first distance is less than the second distance, the second point pair is replaced by the first point pair. 根据权利要求3所述的导管机器人,其中,所述处理器被配置成在所述使用所述点对集合更新所述第一变换矩阵中执行以下步骤:The catheter robot according to claim 3, wherein the processor is configured to perform the following steps in the updating of the first transformation matrix using the point pair set: 将所述点对集合中的点对代入目标函数计算最新的第二变换矩阵;Substituting the point pairs in the point pair set into the objective function to calculate the latest second transformation matrix; 根据所述最新的第二变换矩阵更新所述第一变换矩阵。The first transformation matrix is updated according to the latest second transformation matrix. 根据权利要求5所述的导管机器人,其中,所述第一变换矩阵为所述最新的第二变换矩阵与至少部分历史第二变换矩阵的加权平均值,其中所述最新的第二变换矩阵的权重大于所述历史第二变换矩阵的权重。The catheter robot according to claim 5, wherein the first transformation matrix is a weighted average of the latest second transformation matrix and at least part of the historical second transformation matrix, wherein the weight of the latest second transformation matrix is greater than the weight of the historical second transformation matrix. 根据权利要求1所述的导管机器人,其中,所述处理器被配置成在所述在所述管道中心线分成的多个管道中心线分段中确定与所述模拟路径点对应的目标管道中心线分段之前执行以下步骤:The catheter robot according to claim 1, wherein the processor is configured to perform the following steps before determining the target pipeline centerline segment corresponding to the simulated path point among the plurality of pipeline centerline segments into which the pipeline centerline is divided: 从所述管道中心线包括的多个骨架点中提取特征骨架点,其中所述骨架点的位置由编码表示,所述骨架点的编码s=x1+x2R1+x3R1R2,其中x1、x2、x3分别为所述骨架点在编码顺序第一、第二、第三的维度上的坐标,R1、R2分别为所述解剖模型在编码顺序第一、第二的维度上的尺寸;Extracting characteristic skeleton points from a plurality of skeleton points included in the pipeline centerline, wherein the positions of the skeleton points are represented by codes, the codes of the skeleton points being s=x 1 +x 2 R 1 +x 3 R 1 R 2 , wherein x 1 , x 2 , x 3 are coordinates of the skeleton points in the first, second, and third dimensions of the coding order, respectively, and R 1 , R 2 are sizes of the anatomical model in the first and second dimensions of the coding order, respectively; 根据所述特征骨架点将所述管道中心线划分为所述多个管道中心线分段。The pipeline centerline is divided into the plurality of pipeline centerline segments according to the characteristic skeleton points. 根据权利要求7所述的导管机器人,其中,所述处理器被配置成在所述从所述管道中心线的包括多个骨架点中提取特征骨架点中执行以下步骤:The catheter robot according to claim 7, wherein the processor is configured to perform the following steps in extracting a feature skeleton point from a plurality of skeleton points of the pipeline centerline: 确定起始点;Determine the starting point; 从所述起始点开始,用区域生长法搜索所述骨架点并统计所述骨架点的 连通数,所述连通数为所述骨架点的邻域中所有子节点的数量;Starting from the starting point, the skeleton points are searched using the region growing method and the skeleton points are counted. Connectivity number, which is the number of all child nodes in the neighborhood of the skeleton point; 若所述骨架点的连通数大于1,且所述父节点的连通数等于1,则所述骨架点为所述特征骨架点中的分叉点,若所述骨架点的连通数等于1,且所述父节点的连通数等于0,则所述骨架点为所述特征骨架点中的末端点。If the connectivity number of the skeleton point is greater than 1 and the connectivity number of the parent node is equal to 1, then the skeleton point is a bifurcation point among the characteristic skeleton points; if the connectivity number of the skeleton point is equal to 1 and the connectivity number of the parent node is equal to 0, then the skeleton point is an end point among the characteristic skeleton points. 根据权利要求8所述的导管机器人,其中,所述处理器被配置成在所述确定起始点中执行以下步骤:The catheter robot according to claim 8, wherein the processor is configured to perform the following steps in the determining the starting point: 随机选择一体层;Randomly select an integral layer; 统计所述体层在垂直于横断面的方向上两侧指定数量的层中所述骨架点的总数,以确定气道延伸的方向;Counting the total number of the skeleton points in a specified number of layers on both sides of the body layer in a direction perpendicular to the cross section to determine the direction in which the airway extends; 根据所述体层中所述骨架点的总数以及所述气道延伸的方向寻找气管入口的骨架点作为所述起始点。The skeleton point of the tracheal entrance is found as the starting point according to the total number of the skeleton points in the body layer and the direction in which the airway extends. 根据权利要求7所述的导管机器人,其中,所述处理器被配置成执行以下步骤:The catheter robot according to claim 7, wherein the processor is configured to perform the following steps: 统计所述管道中心线分段中骨架点的数量;Counting the number of skeleton points in the pipeline centerline segment; 删除所述数量小于预设阈值的管道中心线分段。The pipeline centerline segments whose number is less than a preset threshold are deleted. 一种导管机器人的配准方法,其中,包括:A catheter robot registration method, comprising: 利用设置在导管和/或所述导管搭载的器械上的传感器获取所述导管和/或所述器械的实际路径点;Using sensors disposed on the catheter and/or the device carried by the catheter to obtain actual path points of the catheter and/or the device; 根据第一变换矩阵获取所述导管和/或所述器械在解剖模型中与所述实际路径点对应的模拟路径点,所述解剖模型包括管道中心线;Acquire simulated path points of the catheter and/or the instrument corresponding to the actual path points in the anatomical model according to the first transformation matrix, wherein the anatomical model includes a pipeline centerline; 在所述管道中心线分成的多个管道中心线分段中确定与所述模拟路径点对应的目标管道中心线分段,所述目标管道中心线分段包括多个骨架点;Determine a target pipeline centerline segment corresponding to the simulation path point from among the plurality of pipeline centerline segments into which the pipeline centerline is divided, wherein the target pipeline centerline segment includes a plurality of skeleton points; 计算所述目标管道中心线分段的形心;Calculating the centroid of the target pipeline centerline segment; 若所述形心与所述多个骨架点均不相同,则确定所述形心与所述模拟路径点之间的连线,从所述多个骨架点中选择与所述连线之间的距离最短的一个作为所述实际路径点的匹配点。If the centroid is different from the multiple skeleton points, a line between the centroid and the simulated path point is determined, and one of the multiple skeleton points having the shortest distance to the line is selected as a matching point of the actual path point. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有 计算机程序指令,所述计算机程序指令被配置为由处理器加载并执行实现如下所述的方法的步骤:A computer-readable storage medium, wherein the computer-readable storage medium stores Computer program instructions, the computer program instructions are configured to be loaded by a processor and executed to implement the steps of the method described below: 利用设置在导管和/或所述导管搭载的器械上的传感器获取所述导管和/或所述器械的实际路径点;Using sensors disposed on the catheter and/or the device carried by the catheter to obtain actual path points of the catheter and/or the device; 根据第一变换矩阵获取所述导管和/或所述器械在解剖模型中与所述实际路径点对应的模拟路径点,所述解剖模型包括管道中心线;Acquire simulated path points of the catheter and/or the instrument corresponding to the actual path points in the anatomical model according to the first transformation matrix, wherein the anatomical model includes a pipeline centerline; 在所述管道中心线分成的多个管道中心线分段中确定与所述模拟路径点对应的目标管道中心线分段,所述目标管道中心线分段包括多个骨架点;Determine a target pipeline centerline segment corresponding to the simulation path point from among the plurality of pipeline centerline segments into which the pipeline centerline is divided, wherein the target pipeline centerline segment includes a plurality of skeleton points; 计算所述目标管道中心线分段的形心;Calculating the centroid of the target pipeline centerline segment; 若所述形心与所述多个骨架点均不相同,则确定所述形心与所述模拟路径点之间的连线,从所述多个骨架点中选择与所述连线之间的距离最短的一个作为所述实际路径点的匹配点。 If the centroid is different from the multiple skeleton points, a line between the centroid and the simulated path point is determined, and one of the multiple skeleton points having the shortest distance to the line is selected as a matching point of the actual path point.
PCT/CN2024/070741 2023-01-09 2024-01-05 Catheter robot and registration method therefor, and readable storage medium Ceased WO2024149161A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310026323.7A CN115778554B (en) 2023-01-09 2023-01-09 Catheter robot, registration method thereof and readable storage medium
CN202310026323.7 2023-01-09

Publications (1)

Publication Number Publication Date
WO2024149161A1 true WO2024149161A1 (en) 2024-07-18

Family

ID=85428816

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/070741 Ceased WO2024149161A1 (en) 2023-01-09 2024-01-05 Catheter robot and registration method therefor, and readable storage medium

Country Status (2)

Country Link
CN (1) CN115778554B (en)
WO (1) WO2024149161A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115778554B (en) * 2023-01-09 2023-05-26 深圳市精锋医疗科技股份有限公司 Catheter robot, registration method thereof and readable storage medium
CN118845228A (en) * 2023-04-27 2024-10-29 深圳市精锋医疗科技股份有限公司 Catheter robot and registration method thereof
CN118925036A (en) * 2023-05-10 2024-11-12 深圳市精锋医疗科技股份有限公司 Catheter system, catheter drive control method and storage medium
CN116740164A (en) * 2023-06-15 2023-09-12 强联智创(北京)科技有限公司 Method, apparatus and storage medium for extracting a vessel centerline
CN119214797B (en) * 2023-06-30 2025-11-07 深圳市精锋医疗科技股份有限公司 Catheter robot and registration method thereof
CN119367052B (en) * 2023-07-22 2025-11-18 深圳市精锋医疗科技股份有限公司 Navigation system and readable storage medium
CN119632678B (en) * 2023-09-18 2025-11-18 深圳市精锋医疗科技股份有限公司 Catheter robot system and its control method, computer-readable storage medium
CN120319081A (en) * 2025-04-07 2025-07-15 广州医科大学附属第一医院(广州呼吸中心) Urinary catheterization operation device and urinary catheterization training method

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130303892A1 (en) * 2012-05-14 2013-11-14 Intuitive Surgical Operations, Inc. Systems and Methods for Navigation Based on Ordered Sensor Records
CN105852971A (en) * 2016-05-04 2016-08-17 苏州点合医疗科技有限公司 Registration navigation method based on skeleton three-dimensional point cloud
CN106344152A (en) * 2015-07-13 2017-01-25 中国科学院深圳先进技术研究院 Abdominal surgery navigation registering method and system
US20180153621A1 (en) * 2015-05-22 2018-06-07 Intuitive Surgical Operations, Inc. Systems and Methods of Registration for Image Guided Surgery
CN109584169A (en) * 2018-10-26 2019-04-05 首都医科大学宣武医院 Centerline-based intracranial blood vessel image interception method and system
CN110831481A (en) * 2018-05-31 2020-02-21 奥瑞斯健康公司 Path-based navigation of tubular networks
CN112155734A (en) * 2020-09-29 2021-01-01 苏州微创畅行机器人有限公司 Readable storage medium, bone modeling and registering system and bone surgery system
CN112991409A (en) * 2021-04-27 2021-06-18 杭州素问九州医疗科技有限公司 Skeleton registration method and system and storage medium
CN113100939A (en) * 2021-04-06 2021-07-13 德智鸿(上海)机器人有限责任公司 Orthopedic surgery navigation method, device, computer equipment, system and storage medium
CN114081625A (en) * 2020-07-31 2022-02-25 上海微创卜算子医疗科技有限公司 Navigation path planning method, system and readable storage medium
CN114452508A (en) * 2021-10-20 2022-05-10 上海微创微航机器人有限公司 Catheter motion control method, interventional operation system, electronic device, and storage medium
CN115530724A (en) * 2022-10-18 2022-12-30 上海微创微航机器人有限公司 Endoscope navigation positioning method and device
CN115554568A (en) * 2022-11-28 2023-01-03 深圳市精锋医疗科技股份有限公司 Catheter bending steering control method, catheter system, and storage medium
CN115778554A (en) * 2023-01-09 2023-03-14 深圳市精锋医疗科技股份有限公司 Catheter robot, registration method thereof and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109754397B (en) * 2019-01-03 2021-02-09 东软集团股份有限公司 Blood vessel section center path extraction method and device, terminal equipment and storage medium
CN110569704B (en) * 2019-05-11 2022-11-22 北京工业大学 A Multi-strategy Adaptive Lane Line Detection Method Based on Stereo Vision
CN114863417B (en) * 2022-04-24 2025-05-02 上海工程技术大学 A master-slave posture registration method for surgical robots

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130303892A1 (en) * 2012-05-14 2013-11-14 Intuitive Surgical Operations, Inc. Systems and Methods for Navigation Based on Ordered Sensor Records
US20180153621A1 (en) * 2015-05-22 2018-06-07 Intuitive Surgical Operations, Inc. Systems and Methods of Registration for Image Guided Surgery
CN106344152A (en) * 2015-07-13 2017-01-25 中国科学院深圳先进技术研究院 Abdominal surgery navigation registering method and system
CN105852971A (en) * 2016-05-04 2016-08-17 苏州点合医疗科技有限公司 Registration navigation method based on skeleton three-dimensional point cloud
CN110831481A (en) * 2018-05-31 2020-02-21 奥瑞斯健康公司 Path-based navigation of tubular networks
CN109584169A (en) * 2018-10-26 2019-04-05 首都医科大学宣武医院 Centerline-based intracranial blood vessel image interception method and system
CN114081625A (en) * 2020-07-31 2022-02-25 上海微创卜算子医疗科技有限公司 Navigation path planning method, system and readable storage medium
CN112155734A (en) * 2020-09-29 2021-01-01 苏州微创畅行机器人有限公司 Readable storage medium, bone modeling and registering system and bone surgery system
CN113100939A (en) * 2021-04-06 2021-07-13 德智鸿(上海)机器人有限责任公司 Orthopedic surgery navigation method, device, computer equipment, system and storage medium
CN112991409A (en) * 2021-04-27 2021-06-18 杭州素问九州医疗科技有限公司 Skeleton registration method and system and storage medium
CN114452508A (en) * 2021-10-20 2022-05-10 上海微创微航机器人有限公司 Catheter motion control method, interventional operation system, electronic device, and storage medium
CN115530724A (en) * 2022-10-18 2022-12-30 上海微创微航机器人有限公司 Endoscope navigation positioning method and device
CN115554568A (en) * 2022-11-28 2023-01-03 深圳市精锋医疗科技股份有限公司 Catheter bending steering control method, catheter system, and storage medium
CN115778554A (en) * 2023-01-09 2023-03-14 深圳市精锋医疗科技股份有限公司 Catheter robot, registration method thereof and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LI ZAIJUAN, FU YILI;GAO WENPENG: "Path-based Registration Method of Electromagnetic Tracking of Vascular Interventional Surgery", JOURNAL OF HUAZHONG UNIVERSITY OF SCIENCE AND TECHNOLOGY (NATURAL SCIENCE EDITION), vol. 41, no. S1, 10 January 2014 (2014-01-10), CN , pages 316 - 319, XP093190869, ISSN: 1671-4512, DOI: 10.13245/j.hust.2013.s1.082 *

Also Published As

Publication number Publication date
CN115778554B (en) 2023-05-26
CN115778554A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
WO2024149161A1 (en) Catheter robot and registration method therefor, and readable storage medium
US11631174B2 (en) Adaptive navigation technique for navigating a catheter through a body channel or cavity
CN105447908B (en) Dental arch model generation method based on oral cavity scan data and CBCT data
AU2007221876B2 (en) Registration of images of an organ using anatomical features outside the organ
CN108042092B (en) Determining a position of a medical device in a branched anatomical structure
JP2023552577A (en) Dynamic deformation tracking for navigational bronchoscopy
CN113168734B (en) Display of cut surface of tubular structure
US20100030064A1 (en) Feature-Based Registration Method
WO2024082441A1 (en) Deep learning-based multi-modal image registration method and system, and medium
CN112382359B (en) Patient registration method and device, electronic equipment and computer readable medium
JP2010510815A (en) Adaptive navigation technology for navigating a catheter through a body passage or cavity
CN110301883B (en) Image-based wizard for navigating tubular networks
CN119454236B (en) Airway navigation system and method based on bronchoscope view
CN115120346A (en) Target point positioning method, device, electronic device and bronchoscopy system
CN111260704B (en) Vascular structure 3D/2D rigid registration method and device based on heuristic tree search
CN116747015A (en) Registration method and system for lung trachea and electronic equipment
CN119367052B (en) Navigation system and readable storage medium
WO2024222402A1 (en) Catheter robot and registration method thereof
JP2022507106A (en) Systems and methods for mapping with anatomical measurement wires
CN116636928A (en) Registration progress detection method and system for lung trachea and electronic equipment
CN119174649B (en) Map expansion method and system in electromagnetic navigation bronchoscopy combined with medical image information
CN119214797B (en) Catheter robot and registration method thereof
CN120770928A (en) Navigation system, method and storage medium
CN118844903A (en) Bronchoscope-based motion control method, system, device and storage medium
CN117770957A (en) Catheter registration apparatus and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24741160

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE