A surface matching calculation method for surgical instrument target positioning
By installing two-dimensional marking targets on surgical instruments and utilizing three-dimensional surface template matching technology, the accuracy problem of traditional surgical instrument positioning devices in magnetic interference and noise environments is solved, and high-precision and efficient surgical instrument positioning is achieved, which is suitable for Surgical operations in complex environments.
Patent Information
- Application Number
- CN202210184644.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-02-28
AI Technical Summary
Traditional surgical instrument positioning devices are susceptible to environmental influences, especially the presence of magnetic interference substances and noise interference in the magnetic field environment, resulting in limited positioning accuracy and precision. Moreover, traditional ultrasonic positioning technology is susceptible to temperature, humidity and noise, affecting surgical efficiency. and stability.
Use two-dimensional marking targets and three-dimensional data acquisition equipment to perform surface matching calculations. Through offline and online stages, establish three-dimensional point cloud images and global model descriptions of two-dimensional marking targets, perform pose refinement and filtering, and use template matching on three-dimensional surfaces. Technology enables precise positioning of surgical instruments.
Significantly improves the tracking ability and accuracy of the surgical instrument tip, expands the doctor's surgical field of view, overcomes the problems of positioning accuracy and low efficiency of traditional methods, can identify objects with any type of surface geometry, is suitable for real-time environments, and has short calculation time .
Smart Images

Figure CN114549294B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a surface matching calculation method for target positioning of surgical instruments. Background Art
[0002] Traditional surgical operations, whether in preoperative surgical planning or intraoperative surgical implementation, rely on the doctor's clinical experience of being familiar with and understanding the lesion site. However, the lesions of certain parts, such as brain or spinal diseases, are opaque to doctors, and doctors can only perform surgery based on the pathological characteristics of the patient's lesion site, which makes the surgical process complicated, traumatic, and long recovery time after surgery. The key to the problem is to accurately place the interventional surgical tools to the surgical target through puncture operations, and traditional image-guided operations have the following problems: 1. Physicians are required to practice a lot and practice, and young doctors often need to go through a long training period before they can have mature and stable puncture operation techniques; 2. The accuracy of manual operation often depends on the technical proficiency and stability of the operating physician; 3. Repeated adjustments to the operation and image scanning process increase operation-related injuries and radiation to both doctors and patients; 4. Long-term surgery causes operator fatigue, resulting in a decrease in surgical efficiency and stability.
[0003] Therefore, people try to improve the above technical status. Chinese patent document CN201410608605.9 provides an electromagnetic positioning marking device, an electromagnetic positioning system and a method. The main body of the device is a sensor positioning mounting block, and the sensor positioning mounting block is provided with a positioning hole for a metal two-dimensional marking target to be embedded in the positioning hole; by using two five-degree-of-freedom positioning sensors to synthesize a six-degree-of-freedom positioning sensor, operating under a magnetic field generator, and installing a magnetic induction coil on the surgical instrument, the position of the instrument can be tracked in real time, thereby determining the puncture position.
[0004] However, the disadvantage is that the positioning cost is high, and during the operation, the tracking ability and accuracy are limited due to the small range of the magnetic field. In addition, when performing certain operations, there will be some necessary magnetic devices, and the presence of magnetic interference materials will greatly affect the accuracy of surgical instrument positioning.
[0005] Another way to receive and send ultrasonic signals for positioning is ultrasonic positioning. The principle of ultrasonic positioning is that the system controls the emission of ultrasonic waves, and those positioning tools such as probes equipped with one or more receivers receive the ultrasonic waves emitted by the system. Therefore, there will be a time difference between the emission and reception of ultrasonic waves. This time difference can be used to determine the three-dimensional spatial position of surgical instruments. The positioning device used in the "frameless stereo positioning system" first reported by Roberts et al. is an ultrasonic positioning device. The surgical microscope in the system is equipped with a transmitter, and the corresponding receiver is installed near the ceiling of the operating room. Ultrasonic positioning technology has the advantage of being cheap, but it has the disadvantage that there must be no obstruction between the generator and the receiver, and it is easily affected by factors such as temperature, humidity changes and airflow. In addition, the speed of ultrasound will also be affected by other noise and echoes in the operating room.
[0006] Therefore, it is of great significance to study technical solutions that can accurately position surgical instruments in a magnetic field environment. Summary of the invention
[0007] In view of the problem that the existing surgical instrument positioning device and method are easily affected by the environment, the present invention proposes a surface matching calculation method for surgical instrument target positioning, which comprises the following steps:
[0008] Offline stage:
[0009] S1. Install a two-dimensional marking target at a fixed position of the surgical instrument to be used;
[0010] S2. Using a three-dimensional data acquisition device, actively projecting light onto a two-dimensional marker target, obtaining a three-dimensional point cloud image of the two-dimensional marker target and performing random sampling on the three-dimensional point cloud image to select sampling points;
[0011] S3. Create a two-dimensional labeling target global model description;
[0012] S4. Create a model including the selected sampling points and the global model description in preparation for pose refinement;
[0013] Online stage:
[0014] S5. Acquire data of the surgical instrument scene with a two-dimensional marking target through a three-dimensional data acquisition device to obtain its point cloud data;
[0015] S6. Selecting a reference point in the scene;
[0016] S7. Assuming that the reference point is on the two-dimensional marking target, calculate the set of local coordinates of each reference point of the optimal two-dimensional marking target position;
[0017] S8. filtering the obtained two-dimensional marked target pose to form a final pose;
[0018] S9. Perform posture refinement;
[0019] S10. Score the final posture, determine the posture with the highest score, and achieve accurate position and posture matching of the two-dimensional marker target in the surgical instrument scene.
[0020] Preferably, the step S2 is to sample the three-dimensional point cloud image of the two-dimensional marking target by using 3D data adjustment to create a sparse sampling point set, the input items of the 3D data adjustment include: 3D data describing the 2D surface in 3D and the sampling distance d, and output a point pair descriptor F describing a pair of 3D points, the point pair descriptor F includes the distance between the two points, the angle between the two normals, the angle between the first normal and the difference vector of the two points, and the angle between the second normal and the difference vector of the two points. The point pair descriptor F of two 3D points P1 and P2 with normals n1 and n2 is defined as:
[0021] .
[0022] Better, sampled point pair descriptor F S is a sampled version of the point pair descriptor F, let n a is the number of intervals about the angle value, d is the sampling distance, d a =360° / n a , and let [x] be the largest integer value less than x, then the point pair feature A sample version of Defined as:
[0023] .
[0024] Preferably, the step of creating a two-dimensional labeled target global model description in step S3 includes:
[0025] S31. Calculate a point pair descriptor for each pair of points according to the sampling points of the three-dimensional point cloud image of the two-dimensional marker target;
[0026] S32. Use the calculated point pair descriptor as an index to store each pair of sampling points in the global model description.
[0027] Preferably, the step S7 of calculating the set of local coordinates of each reference point of the optimal two-dimensional marking target position comprises the following steps:
[0028] S71. The parameter space (here, the space of local coordinates) is divided into a set of samples, and each sample is attached with a counter and the counter is initially set to zero;
[0029] S72. For each point in the surgical instrument scene with the two-dimensional marker target, determine all local coordinates of the description of the point formed by the two-dimensional marker target model, which means that when the two-dimensional marker target is transformed using these local coordinates, the current scene point and the current reference point are both located on the surface of the two-dimensional marker target;
[0030] S73. For each local coordinate describing the point, the count of the corresponding parameter space sample containing the local coordinate is increased;
[0031] S74. After all scene points are processed by steps S72 and S73, the count for each sample of the local coordinate space corresponds to the number of scene points that describe that portion of the parameter space, and the sample with the maximum count corresponds to the local coordinate that best describes the scene point.
[0032] Preferably, in step S74, the sample with the maximum count value or a set of samples whose count exceeds a threshold is selected.
[0033] Preferably, S71 describes the first component of the local coordinate (i.e., the component describing the position on the model surface) by one of the sampling points selected from the two-dimensional marked target data, and the first component is thus implicitly divided into discrete values; by dividing the interval of possible rotation angles [0, 360°] into n equal-sized a The second component (i.e., the component describing the angle of rotation around the normal of the reference point) is divided into intervals; in step S72, the calculation method of the local coordinates of the current surgical instrument scene point with a two-dimensional marking target is described as follows:
[0034] S721. Calculate the point pair descriptor between the reference point and the current scene point and sample it as described above;
[0035] S722. The sampled point pair descriptor is used to access the two-dimensional marker target global model description calculated in the offline phase, which will return a list of model point pairs with similar distances and orientations to the scene point pairs;
[0036] S723. For each such model point pair, use equation To calculate the local coordinates, let Sr be the reference point of the scene, TS->L is a rigid 3D transformation that translates Sr to the origin and rotates the normal of Sr to the x-axis (pointing in the positive direction), for the model point Mr, Tm->L is a rigid 3D transformation that translates Mr to the origin and rotates the normal of Mr to the x-axis (pointing in the positive direction); Rx(α) is a rigid 3D transformation that rotates around the x-axis at an angle α; given the local coordinates (Mr, α) about the reference point Sr, the mapping from the point mi in the model space to its corresponding point si in the scene space is known under the condition that si, mi, TS->L and Tm->L are known, then the above equation can be solved for α, after processing all scene points, step S74 selects the sample of the parameter space where the corresponding count has the maximum value.
[0037] Preferably, the filtering of the posture of the two-dimensional marked target obtained in step S8 comprises the following steps:
[0038] S81. defining a neighbor relationship between postures, if the difference of the rotation parts of the postures is less than a fixed threshold, and if the difference of their translation vectors is less than the length of the fixed threshold, the postures are defined as neighbors;
[0039] S82. Assign a new score to each posture, the new score being the sum of all scores of neighboring postures;
[0040] S83. Sort the postures according to the new scores;
[0041] S84. Selecting the posture with the best score;
[0042] S85. Optionally recalculate the selected pose by averaging neighbor poses.
[0043] Preferably, in step S9, iterative closest point (ICP) is used to perform posture refinement, and the sum of the distances between each point in the surgical instrument scene with the two-dimensional marker target and the surface of the two-dimensional marker target is minimized.
[0044] Preferably, the scoring of the final pose in step S10 takes the calculated final pose and the surgical instrument scene data with the two-dimensional marked target and the two-dimensional marked target data as input, and outputs one or more values describing the quality of the calculated pose or the consistency between the surgical instrument scene and the two-dimensional marked target in the pose, wherein the quality and accuracy of the final pose depends on the presence and visibility of the two-dimensional marked target in the scene, and on the quality of the scene data and the model data.
[0045] The present invention has the following advantages:
[0046] 1. By installing a two-dimensional marking target on the surgical instrument, the accuracy of positioning can be avoided due to the presence of magnetic interference materials, which significantly improves the tracking ability and accuracy of the tip of the surgical instrument and expands the doctor's field of view during surgery.
[0047] 2. The present invention uses three-dimensional surface template matching technology in the positioning of two-dimensional marker targets. By establishing a model description of the two-dimensional marker target, the real-time retrieval of features with scene points is realized. This not only overcomes the low efficiency of traditional methods for real-time search of deep images, but also because of the diversity of three-dimensional data acquisition templates and scenes, it is not limited to ordinary free forms, which improves the application scope of surgical instrument positioning technology. After obtaining the average posture, the posture filtering and iterative closest point method are used to further improve the posture accuracy of the center point of the two-dimensional marker target.
[0048] 3. The invention allows recognition of free-form objects with any type of surface geometry and is therefore not limited to a specific type of object. It is robust to noise, missing object parts, and clutter. It is able to determine the pose of a 2D marker target with high accuracy, and finding the 2D marker target and recovering its 3D pose requires little computation time and is suitable for real-time environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 This is a schematic diagram of 3D data adjustment.
[0050] Figure 2 It is a schematic diagram of a point pair descriptor.
[0051] Figure 3 It is a schematic diagram describing the global model.
[0052] Figure 4 It is a schematic diagram of the relationship between reference points, model points, and local coordinates.
[0053] Figure 5 is a schematic diagram of a two-dimensional labeled target. DETAILED DESCRIPTION
[0054] Example 1
[0055] The surface matching calculation method for surgical instrument target positioning of the present invention comprises the following steps:
[0056] Offline stage:
[0057] S1. Install a two-dimensional marking target at a fixed position of the surgical instrument to be used;
[0058] S2. Using a three-dimensional data acquisition device, actively projecting light onto a two-dimensional marker target, obtaining a three-dimensional point cloud image of the two-dimensional marker target and performing random sampling on the three-dimensional point cloud image to select sampling points;
[0059] S3. Create a two-dimensional labeling target global model description;
[0060] S4. Create a model including the selected sampling points and the global model description in preparation for pose refinement;
[0061] Online stage:
[0062] S5. Acquire data of the surgical instrument scene with a two-dimensional marking target through a three-dimensional data acquisition device to obtain its point cloud data;
[0063] S6. Selecting a reference point in the scene;
[0064] S7. Assuming that the reference point is on the two-dimensional marking target, calculate the set of local coordinates of each reference point of the optimal two-dimensional marking target position;
[0065] S8. filtering the obtained two-dimensional marked target pose to form a final pose;
[0066] S9. Perform posture refinement;
[0067] S10. Score the final posture, determine the posture with the highest score, and achieve accurate position and posture matching of the two-dimensional marker target in the surgical instrument scene.
[0068] More specifically, step S2 is to sample the three-dimensional point cloud image of the two-dimensional marking target by 3D data adjustment to create a sparse sampling point set, wherein the input items of the 3D data adjustment include: 3D data describing the 2D surface in 3D and the sampling distance d, and output a point pair descriptor F describing a pair of 3D points, wherein the point pair descriptor F includes the distance between the two points, the angle between the two normals, the angle between the first normal and the difference vector of the two points, and the angle between the second normal and the difference vector of the two points. The point pair descriptor F of two 3D points P1 and P2 with normals n1 and n2 is defined as:
[0069] .
[0070] More specifically, the sampled point pair descriptor F S is a sampled version of the point pair descriptor F, let n a is the number of intervals about the angle value, d is the sampling distance, d a =360° / n a , and let [x] be the largest integer value less than x, then the point pair feature A sample version of Defined as:
[0071] .
[0072] More specifically, the step of creating a two-dimensional labeled target global model description in step S3 includes:
[0073] S31. Calculate a point pair descriptor for each pair of points according to the sampling points of the three-dimensional point cloud image of the two-dimensional marker target;
[0074] S32. Use the calculated point pair descriptor as an index to store each pair of sampling points in the global model description.
[0075] More specifically, the step S7 of calculating the set of local coordinates of each reference point for the optimal two-dimensional marking target position comprises the following steps:
[0076] S71. The parameter space (here, the space of local coordinates) is divided into a set of samples, and each sample is attached with a counter and the counter is initially set to zero;
[0077] S72. For each point in the surgical instrument scene with the two-dimensional marker target, determine all local coordinates of the description of the point formed by the two-dimensional marker target model, which means that when the two-dimensional marker target is transformed using these local coordinates, the current scene point and the current reference point are both located on the surface of the two-dimensional marker target;
[0078] S73. For each local coordinate describing the point, the count of the corresponding parameter space sample containing the local coordinate is increased;
[0079] S74. After all scene points are processed by steps S72 and S73, the count for each sample of the local coordinate space corresponds to the number of scene points that describe that portion of the parameter space, and the sample with the maximum count corresponds to the local coordinate that best describes the scene point.
[0080] More specifically, in step S74, the sample with the maximum count value or a set of samples whose count exceeds a threshold is selected.
[0081] More specifically, S71 describes the first component of the local coordinates (i.e., the component describing the position on the model surface) by one of the sampling points selected from the two-dimensional marked target data, and the first component is thus implicitly divided into discrete values; by dividing the interval of possible rotation angles [0, 360°] into n equal-sized a The second component (i.e., the component describing the angle of rotation around the normal of the reference point) is divided into intervals; in step S72, the calculation method of the local coordinates of the current surgical instrument scene point with a two-dimensional marking target is described as follows:
[0082] S721. Calculate the point pair descriptor between the reference point and the current scene point and sample it as described above;
[0083] S722. The sampled point pair descriptor is used to access the two-dimensional marker target global model description calculated in the offline phase, which will return a list of model point pairs with similar distances and orientations to the scene point pairs;
[0084] S723. For each such model point pair, use equation To calculate the local coordinates, let S r Assume T S->L Is S r Translate to the origin and change S r The normal of the model point M is rotated to the X-axis (pointing in the positive direction). r , let T m->L Is to M r Translate to the origin and change M r A rigid 3D transformation that rotates the normal of to the x-axis (pointing in the positive direction). Let Rx(α) be a rigid 3D transformation that rotates around the x-axis at an angle α. Then, given the reference point S r The local coordinates (M r , α), from point m in the model space i to its corresponding point s in the scene space i The mapping can be written as: ; if s i 、m i 、T S->L and T m->L Knowing that α can be solved for the above equation, after processing all scene points, step S74 selects the sample of the parameter space where the corresponding count has the maximum value.
[0085] More specifically, the posture of the two-dimensional marked target obtained by filtering in step S8 includes the following steps:
[0086] S81. defining a neighbor relationship between postures, if the difference of the rotation parts of the postures is less than a fixed threshold, and if the difference of their translation vectors is less than the length of the fixed threshold, the postures are defined as neighbors;
[0087] S82. Assign a new score to each posture, the new score being the sum of all scores of neighboring postures;
[0088] S83. Sort the postures according to the new scores;
[0089] S84. Selecting the posture with the best score;
[0090] S85. Optionally recalculate the selected pose by averaging neighbor poses.
[0091] More specifically, in step S9 , iterative closest point (ICP) is used to perform pose refinement, and the sum of the distances between each point in the surgical instrument scene with the two-dimensional marker target and the surface of the two-dimensional marker target is minimized.
[0092] More specifically, the scoring of the final pose in step S10 takes the calculated final pose and the surgical instrument scene data with the two-dimensional marked target and the two-dimensional marked target data as input, and outputs one or more values describing the quality of the calculated pose or the consistency between the surgical instrument scene and the two-dimensional marked target in the pose, wherein the quality and accuracy of the final pose depends on the presence and visibility of the two-dimensional marked target in the scene, and on the quality of the scene data and the model data.
[0093] To facilitate understanding of this article, some of the terms in this article are defined and further explained:
[0094] Point pair descriptor
[0095] A 3D point is a point in 3D space with three coordinate values. Each 3D point is referenced to a coordinate system, of which the most famous coordinate systems are the scene coordinate system that defines the 3D scene data, and the object coordinate system that defines the 3D object of interest. A 3D vector is a vector in 3D space with three coordinate values. A 3D normal vector at a point on a surface is a 3D vector with a Euclidean length of 1 and perpendicular to the surface at a given point. A 3D point cloud is a collection of 3D points. Every 3D rigid transformation can be decomposed into a rotation and a translation, where the argument points are first rotated and a translation is applied to the result. Formally, every 3D rigid transformation can be decomposed into a 3D rotation R and a 3D vector T, such that 3D data adjustment is a method of transforming a surface in 3D into a set of 3D points evenly distributed on the surface, such as Figure 1 As shown. In an embodiment, 3D data adjustment is a method that takes as input: (a) 3D data describing a 2D surface in 3D (101); (b) a sample distance d; and outputs a set of 3D points (102) having the following properties: A point pair descriptor is a list of values describing pairs of 3D points. In an embodiment, these values include the distance between two points, the angle between two normals, the angle between a first normal and the difference vector of two points, and the angle between a second normal and the difference vector of two points.
[0096] In an embodiment, the point pair descriptor F of two 3D points P1 and P2 with normals n1 and n2, respectively, is defined as follows: Figure 2 As shown,
[0097] (1) .
[0098] The sampled point pair descriptor is a two-dimensional sampled version of the point pair description. In an embodiment, the four items of the point pair descriptor are sampled at intervals of equal size to generate the sampled point pair descriptor. The form of the sampled point pair descriptor is defined as follows: Let n a is the number of intervals with respect to the angle value, and , let d be the distance sampling factor, and let [x] be the largest integer value less than x, then the point pair feature A sample version of Defined as:
[0099] (2) .
[0100] Global Model Description
[0101] A global model description is a data structure that allows efficient searching for all pairs of points on an object that are similar to a given pair of points from a scene. It is therefore a data structure or method that takes as input a pair of points from a scene and outputs a list of pairs of points on an object that are similar to the input pair of points. In an embodiment, a mapping from sampled point pair descriptors to a set of point pairs is used as the point pair descriptor. The lookup is done by computing the sampled point pair descriptor for a given pair of points and using a hash map to get all pairs of points that have an equal sampled point pair descriptor. The hash table allows efficient access to similar pairs of points, where the timing is independent of the number of point pairs stored in the model description. Figure 3 Overview Global Model Description: Point pairs (302) from a surface (301) are selected and point pair descriptors (303) are computed. The point pair descriptors (305) are used to index the global model description (304) and a set of point pairs (308) on the surface of a 3D object (307) having similar properties to the point pairs (302) are returned.
[0102] The local pose of an object in the scene is defined as the 3D pose of the object in the scene relative to given scene points (called reference points), where the given reference points are assumed to be located on the surface of the object.
[0103] In an embodiment, the local coordinates are used to parameterize the local pose as follows: Let S r is a reference point in the scene assumed to be located on the surface of the object, then (a) M r Yes and S r corresponding points on the model surface, and (b) α is in the alignment S r , M r and their normals then go around S r The angle of rotation of the normal ( Figure 4 ). The local coordinates are relative to S r Writing (M r,α), and has a total of three degrees of freedom, two for M on the model surface r for the position and one for the rotation angle α.
[0104] For the scene's reference point S r , let T S->L Is S r Translate to the origin and change S r The normal of the model point M is rotated to the X-axis (pointing in the positive direction). r , let T m->L Is to M r Translate to the origin and change M r A rigid 3D transformation that rotates the normal of to the x-axis (pointing in the positive direction). Let Rx(α) be a rigid 3D transformation that rotates around the x-axis at an angle α. Then, given the reference point S r The local coordinates (M r , α), from point m in the model space i to its corresponding point s in the scene space i The mapping can be written as: (3) ; if s i 、m i 、T S->L and T m->L If α is known, the above equation can be solved for α.
[0105] Model creation of 2D labeled targets
[0106] The two-dimensional marking target of this embodiment is a two-dimensional marking target installed by doctors on surgical instruments. The two-dimensional marking target is 45 mm long, 45 mm wide, and 1 cm thick. Figure 5 The three-dimensional data acquisition device of this embodiment uses a structured light depth camera to project active light onto a two-dimensional marker target to obtain a point cloud image of the two-dimensional marker target, i.e., a template image; the doctor selects the surgical instrument to be used in the operation and installs the two-dimensional marker target in a fixed position of the surgical instrument.
[0107] First, an offline stage is established, and a model describing a two-dimensional marker target is constructed in a manner suitable for subsequent identification of the two-dimensional marker target in a surgical instrument scene with a two-dimensional marker target. The method for creating a two-dimensional marker target model includes the following steps: (a) a three-dimensional data acquisition device selects a structured light depth camera, and projects active light onto the two-dimensional marker target to obtain a point cloud image of the two-dimensional marker target; (b) random sampling is performed on the point cloud image to select sampling points; (c) a global model description of the two-dimensional marker target is created; (d) the model is prepared for posture refinement. In an embodiment, the created model will include the selected sampling points and the global model description.
[0108] In an embodiment, the 3D point cloud of the 2D marker target is subsampled using the above 3D data adjustment method to create a sparse set of sampling points. In an embodiment, creating a global model description of the 2D marker target includes: (1) calculating a point pair descriptor for each pair of points based on the sampling points of the 3D point cloud of the 2D marker target; (2) storing each pair of sampling points in the global model description by using the calculated point pair descriptor as an index.
[0109] In the matching process, a pose refinement method is used. Some data can be pre-calculated based on the 3D object. This data can also be calculated in the offline stage and stored with the model. In an embodiment, a data structure is calculated that allows a fast search for the point on the object closest to a given search point. This data structure is subsequently used for an iterative closest point method for pose refinement.
[0110] Recognition and pose determination of 2D marker targets in surgical instrument scenes
[0111] The online stage identifies instances of two-dimensional marker targets in a surgical instrument scene with a two-dimensional marker target, and calculates the 3D pose of the two-dimensional marker target in the scene. It takes the surgical instrument scene and the two-dimensional marker target model calculated in the offline stage as input, and outputs a set of 3D poses of the two-dimensional marker targets in the scene, and optionally outputs a set of scores for sorting the poses. The online stage includes the following steps: (a) acquiring data of the surgical instrument scene with a two-dimensional marker target through a three-dimensional data acquisition device to obtain its point cloud data; (b) selecting reference points in the scene; (c) assuming that the reference points are on the two-dimensional marker target, calculating the set of local coordinates of each reference point of the best two-dimensional marker target position; (d) filtering the obtained two-dimensional marker target pose to form a final pose; (e) performing pose refinement; (f) scoring the final pose.
[0112] A plurality of fiducials are selected from the surgical instrument scene data and used in subsequent steps. For the method to work, at least one fiducial located on the surface of the two-dimensional marker target is selected, because the subsequent step finds the object pose only if at least one of the fiducials satisfies the condition. In an embodiment, the fiducials are selected by taking a random subset of points from the surgical instrument scene point cloud with the two-dimensional marker target, wherein the number of points in the subset is parameterized relative to the size of the surgical instrument scene point cloud.
[0113] For each fiducial selected in the previous step, a set of local coordinates corresponding to the most likely 3D pose of the 2D marker target is calculated, assuming that the fiducial is on the surface of the 2D marker target. In an embodiment, a voting scheme similar to the ordinary Hough transform is used, which calculates local coordinates that describe the observed data.
[0114] In an embodiment, a voting scheme similar to the ordinary Hough transform is used to calculate the local coordinates of a two-dimensional marker target. The voting scheme includes the following steps: (cl) the parameter space (here the space of local coordinates) is divided into a set of samples, and each sample is accompanied by a counter and the counter is initially set to zero; (c2) for each point in the surgical instrument scene with a two-dimensional marker target, all local coordinates that form a description of the point through the two-dimensional marker target model are determined, meaning that when the two-dimensional marker target is transformed using these local coordinates, both the current scene point and the current reference point are located on the surface of the two-dimensional marker target; (c3) for each local coordinate describing the point, the count of the corresponding parameter space sample containing the local coordinate is increased; (c4) after all scene points are processed by steps (c2) and (c3), the count for each sample of the local coordinate space will correspond to the number of scene points describing this part of the parameter space. The sample whose count has the largest value corresponds to the local coordinate that best describes the scene point. In the last step, the sample with the largest count value or the set of samples whose count exceeds a threshold is selected.
[0115] (c1) The first component of the local coordinate (i.e., the component describing the position on the model surface) is described by one of the sample points selected from the two-dimensional labeled target data, and the first component is thus implicitly divided into discrete values. By dividing the interval of possible rotation angles [0, 360°] into n equal-sized a The second component (i.e., the component describing the angle of rotation around the normal of the reference point) is divided by an interval (similar to the sampling of the angle value of the sampled point pair descriptor mentioned above).
[0116] In step (c2), the calculation of the local coordinates of the current surgical instrument scene point with a two-dimensional marked target is performed as follows: (c2.1) The point pair descriptor between the reference point and the current scene point is calculated and sampled as described above; (c2.2) The sampled point pair descriptor is used to access the two-dimensional marked target global model description calculated in the offline stage, which will return a list of model point pairs with similar distances and orientations as the scene point pairs; (c2.3) For each such model point pair, the local coordinates are calculated using the scene point pair and the model point pair using equation (3). After processing all scene points, step (c4) selects the sampling of the parameter space where the corresponding count has the maximum value. In an embodiment, the count with the maximum value (i.e., the global maximum value) is selected.
[0117] A local coordinate is taken from each selected sample, and the local coordinates are transformed into a full 3D pose, each of which returns a count value of the corresponding local coordinate sample. The count value is the score of the 3D pose. Pose filtering is a method that takes candidate poses (optionally supplemented with scores) from one or more reference points as input and outputs a set of filtered poses containing only the most likely poses of the two-dimensional marker target, sorted by the likelihood that the pose is correct.
[0118] Includes: (1) Outlier removal: Assuming that the reference point is located on the surface of the 2D marker target, the candidate pose of the reference point is calculated. If this assumption is incorrect, for example, for clutter points in the scene that do not belong to the 2D marker target, or if the normal of the reference point is incorrect, the resulting candidate pose of the reference point will contain incorrect poses that do not correspond to the correct pose of the object. Pose filtering should remove such incorrect poses.
[0119] (2) Increased precision and stability: If several reference points are on the surface of an object, the candidate poses for each of them will contain a pose that corresponds to the correct pose of the object. However, due to numerical errors in the calculations, noise in the data, and due to the sampling step size involved in the above mechanism, the pose will be slightly different from the correct pose. Pose filtering groups all correct poses found for different reference points and calculates the average pose, thus increasing the precision and stability of the final result.
[0120] In an embodiment, two-dimensional marker target pose filtering includes the following steps: (d1) defining a neighbor relationship between poses, if the difference in the rotation part of the poses is less than a fixed threshold, and if the difference in their translation vectors is less than the length of the fixed threshold, the poses are defined as neighbors; (d2) assigning a new score to each pose, the new score being the sum of all scores of the neighbor poses; (d3) sorting the poses by the new score; (d4) selecting the pose with the best score; (d5) optionally recalculating the selected pose by averaging the neighbor poses.
[0121] Pose refinement describes a class of methods that take as input a 2D labeled target model, a surgical instrument scene with the 2D labeled target, and an approximate pose of the model in the scene, and output a refined, more accurate pose of the model. Pose refinement methods typically optimize the correspondence between the scene and the object by minimizing an error function.
[0122] In an embodiment, pose refinement is performed using iterative closest point (ICP) For the iterative closest point method, the sum of distances between each point in a surgical instrument scene with a 2D marker target and the surface of the 2D marker target is minimized.
[0123] Scoring is a method that takes as input the final pose calculated in the algorithm and the surgical instrument scene data with a 2D marker target and the 2D marker target data, and outputs one or more values describing the quality of the calculated pose or the consistency between the surgical instrument scene and the 2D marker target in the pose. The quality and accuracy of the final pose depends on the presence and visibility of the 2D marker target in the scene, and on the quality of the scene data and the model data.
[0124] The scoring method provides a way to estimate the obtained posture, and the posture with the highest score is given by calculating the number of scene points located on the model surface, thereby achieving accurate position matching of the two-dimensional marker target in the surgical instrument scene.
[0125] The present invention has the following advantages:
[0126] 1. By installing a two-dimensional marking target on the surgical instrument, the accuracy of positioning can be avoided due to the presence of magnetic interference materials, which significantly improves the tracking ability and accuracy of the tip of the surgical instrument and expands the doctor's field of view during surgery.
[0127] 2. The present invention uses three-dimensional surface template matching technology in the positioning of two-dimensional marker targets. By establishing a model description of the two-dimensional marker target, the real-time retrieval of features with scene points is realized. This not only overcomes the low efficiency of traditional methods for real-time search of deep images, but also because of the diversity of three-dimensional data acquisition templates and scenes, it is not limited to ordinary free forms, which improves the application scope of surgical instrument positioning technology. After obtaining the average posture, the posture filtering and iterative closest point method are used to further improve the posture accuracy of the center point of the two-dimensional marker target.
[0128] 3. The invention allows recognition of free-form objects with any type of surface geometry and is therefore not limited to a specific type of object. It is robust to noise, missing object parts, and clutter. It is able to determine the pose of a 2D marker target with high accuracy, and finding the 2D marker target and recovering its 3D pose requires little computation time and is suitable for real-time environments.
[0129] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A surface matching calculation method for surgical instrument target positioning, characterized in that: The steps include: Offline stage: S1. Install a two-dimensional marking target at a fixed position of the surgical instrument to be used; S2. Using a three-dimensional data acquisition device, actively projecting light onto a two-dimensional marker target, obtaining a three-dimensional point cloud image of the two-dimensional marker target and performing random sampling on the three-dimensional point cloud image to select sampling points; S3. Create a two-dimensional labeling target global model description; S4. Create a model including the selected sampling points and the global model description in preparation for pose refinement; Online stage: S5. Acquire data of the surgical instrument scene with a two-dimensional marking target through a three-dimensional data acquisition device to obtain its point cloud data; S6. Selecting a reference point in the scene; S7. Assuming that the reference point is on the two-dimensional marking target, calculate the set of local coordinates of each reference point of the optimal two-dimensional marking target position; S8. filtering the obtained two-dimensional marked target pose to form a final pose; S9. Perform posture refinement; S10. Score the final posture, determine the posture with the highest score, and achieve accurate position and posture matching of the two-dimensional marker target in the surgical instrument scene.
2. The surface matching calculation method for target positioning of surgical instruments according to claim 1, characterized in that: The step S2 is to sample the three-dimensional point cloud image of the two-dimensional marking target by using 3D data adjustment to create a sparse sampling point set. The input items of the 3D data adjustment include: 3D data describing the 2D surface in 3D and the sampling distance d, and output a point pair descriptor F describing a pair of 3D points. The point pair descriptor F includes the distance between the two points, the angle between the two normals, the angle between the first normal and the difference vector of the two points, and the angle between the second normal and the difference vector of the two points. The point pair descriptor F of two 3D points P1 and P2 with normals n1 and n2 is defined as: F(P1,P2,n1,n2)=(|P2-P1|,∠(n1,n2),∠(n1,P2-P1),∠(n2,P2-P1)).
3. The surface matching calculation method for target positioning of surgical instruments according to claim 2, characterized in that: The sampled point pair descriptor F S is a sampled version of the point pair descriptor F, let n a is the number of intervals about the angle value, d is the sampling distance, d a =360° / n a , and let [x] be the largest integer value less than x, then the sampled version F of the point pair feature F(P1,P2,n1,n2)=(F1,F2,F3,F4) S =(P1,P2,n1,n2) is defined as: F s (P1,P2,n1,n2)=([F1 / d],[F2 / d],[F3 / d a ],[F4 / d a ])。 4. The surface matching calculation method for surgical instrument target positioning according to claim 3 is characterized in that: The steps of creating a two-dimensional labeled target global model description in step S3 include: S31. Calculate a point pair descriptor for each pair of points according to the sampling points of the three-dimensional point cloud image of the two-dimensional marker target; S32. Use the calculated point pair descriptor as an index to store each pair of sampling points in the global model description.
5. The surface matching calculation method for surgical instrument target positioning according to claim 4, characterized in that: The step S7 of calculating the set of local coordinates of each reference point of the optimal two-dimensional marking target position comprises the following steps: S71. Parameter space: Here, it is the space of local coordinates, which is divided into a set of samples, and each sample is attached with a counter and the counter is initially set to zero; S72. For each point in the surgical instrument scene with the two-dimensional marker target, determine all local coordinates of the description of the point formed by the two-dimensional marker target model, which means that when the two-dimensional marker target is transformed using these local coordinates, the current scene point and the current reference point are both located on the surface of the two-dimensional marker target; S73. For each local coordinate describing the point, the count of the corresponding parameter space sample containing the local coordinate is increased; S74. After all scene points are processed by steps S72 and S73, the count for each sample of the local coordinate space corresponds to the number of scene points that describe that portion of the parameter space, and the sample with the maximum count corresponds to the local coordinate that best describes the scene point.
6. The surface matching calculation method for surgical instrument target positioning according to claim 5, characterized in that: In step S74, the sample with the maximum count value or a set of samples whose count exceeds a threshold is selected.
7. The surface matching calculation method for surgical instrument target positioning according to claim 6, characterized in that: S71 describes the first component of the local coordinates, i.e., the component describing the position on the model surface, by one of the sampling points selected from the two-dimensional marking target data, and the first component is thus implicitly divided into discrete values; the second component, i.e., the component describing the angle of rotation around the normal of the reference point, is divided by dividing the interval [0, 360°] of possible rotation angles into na intervals of equal size; in step S72, the calculation method of the local coordinates of the current surgical instrument scene point with the two-dimensional marking target is described as follows: S721. Calculate the point pair descriptor between the reference point and the current scene point and sample it as described above; S722. The sampled point pair descriptor is used to access the two-dimensional marker target global model description calculated in the offline phase, which will return a list of model point pairs with similar distances and orientations to the scene point pairs; S723. For each such model point pair, use equation To calculate the local coordinates, let Sr be the reference point of the scene, TS->L is a rigid 3D transformation that translates Sr to the origin and rotates the normal of Sr to point in the positive direction on the x-axis, for the model point Mr, Tm->L is a rigid 3D transformation that translates Mr to the origin and rotates the normal of Mr to point in the positive direction on the x-axis; Rx(α) is a rigid 3D transformation that rotates around the x-axis at an angle α; given the local coordinates (Mr, α) about the reference point Sr, the mapping from the point mi in the model space to its corresponding point si in the scene space is known under the condition that si, mi, TS->L and Tm->L are known, then the above equation can be solved for α, after processing all scene points, step S74 selects the sample of the parameter space where the corresponding count has the maximum value.
8. The surface matching calculation method for surgical instrument target positioning according to claim 7, characterized in that: The filtering of the posture of the two-dimensional marked target in step S8 comprises the following steps: S81. defining a neighbor relationship between postures, if the difference in the rotation part of the postures is less than a fixed threshold, and if the difference in their translation vectors is less than the length of the fixed threshold, the postures are defined as neighbors; S82. Assign a new score to each posture, the new score being the sum of all scores of neighboring postures; S83. Sort the postures according to the new scores; S84. Selecting the posture with the best score; S85. Optionally recalculate the selected pose by averaging neighbor poses.
9. The surface matching calculation method for surgical instrument target positioning according to claim 8, characterized in that: In step S9, iterative closest point (ICP) is used to perform posture refinement, and the sum of the distances between each point in the surgical instrument scene with the two-dimensional marker target and the surface of the two-dimensional marker target is minimized.
10. The surface matching calculation method for surgical instrument target positioning according to claim 9, characterized in that: The scoring of the final pose in step S10 takes the calculated final pose and the surgical instrument scene data with the two-dimensional marked target and the two-dimensional marked target data as input, and outputs one or more values describing the quality of the calculated pose or the consistency between the surgical instrument scene and the two-dimensional marked target in the pose, wherein the quality and accuracy of the final pose depends on the presence and visibility of the two-dimensional marked target in the scene, and on the quality of the scene data and the model data.
