Surgical registration method and surgical registration device
By generating and sorting point cloud data to register the surgical site, it solves the complexity problem of corresponding images and actual surgical sites in traditional surgery, achieves efficient and accurate surgical registration and visual navigation, and improves the safety and accuracy of surgery. sex.
Patent Information
- Application Number
- CN202311341160.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-10-13
AI Technical Summary
In traditional surgery, the surgical registration process is complex and time-consuming, making it difficult to achieve accurate correspondence between the image and the actual surgical site, affecting the accuracy and safety of the surgery.
CT image sequences are obtained by controlling radiation equipment, point cloud data is generated, spherical point clouds are extracted and sorted, the surgical site is registered based on these point clouds, and a metal ball device is used to provide visual navigation.
It improves the efficiency and accuracy of surgical registration, provides real-time visualization, enhances the safety and accuracy of surgery, is suitable for multiple surgical fields, and provides precise navigation and positioning in medical education and research.
Smart Images

Figure CN117530708B
Abstract
Description
Technical Field
[0001] The embodiments of the present application belong to the field of medical technology, and in particular, relate to a surgical registration method and a surgical registration device. Background Art
[0002] Traditional surgeries usually rely on the doctor's intuition and experience, and the accuracy and visualization of the surgery are limited. With the development of medical imaging technology, such as computed tomography (CT) and fluoroscopy, doctors can use these new technologies to obtain more imaging information to assist in judgment during surgery. However, accurately matching these images with actual surgical operations, that is, how to accurately align image information with surgical sites, is still a huge challenge.
[0003] The introduction of computer-assisted navigation technology has brought new possibilities to surgery. Combining knowledge from the fields of medical image processing, computer vision, and robotic control, computer-assisted navigation can help with surgical registration and provide more accurate and visual surgical navigation. However, the surgical registration process in the prior art involves complex algorithms and calculation processes, especially when processing large-scale three-dimensional data, which takes a lot of time to perform registration, bringing unnecessary impact on the normal progress of the surgery. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a surgical registration method and a surgical registration device to improve the efficiency of surgical registration.
[0005] A first aspect of an embodiment of the present application provides a surgical registration method, comprising:
[0006] Controlling a radiation device to radiate and obtain a CT image sequence including a surgical site, wherein a metal ball device is placed within the radiation range of the radiation device, and a plurality of metal balls are arranged in the metal ball device;
[0007] generating point cloud data based on the CT image sequence;
[0008] Extracting a plurality of spherical point clouds from the point cloud data, each of the spherical point clouds respectively representing a plurality of metal balls in the metal ball device;
[0009] The plurality of spherical point clouds are sorted, and the surgical site is registered based on the sorted spherical point clouds.
[0010] A second aspect of an embodiment of the present application provides a surgical registration device, comprising:
[0011] A radiation module, used for controlling a radiation device to radiate and obtain a CT image sequence including a surgical site, wherein a metal ball device is placed within the radiation range of the radiation device, and a plurality of metal balls are arranged in the metal ball device;
[0012] A generating module, used for generating point cloud data based on the CT image sequence;
[0013] An extraction module, used for extracting a plurality of spherical point clouds from the point cloud data, each of the spherical point clouds representing a plurality of metal balls in the metal ball device;
[0014] A sorting module, used for sorting the plurality of spherical point clouds;
[0015] A registration module is used to register the surgical site based on the sorted spherical point clouds.
[0016] A third aspect of an embodiment of the present application provides a surgical registration device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the surgical registration method as described in the first aspect above is implemented.
[0017] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the surgical registration method as described in the first aspect above is implemented.
[0018] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the surgical registration method described in the first aspect.
[0019] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0020] By applying the surgical registration method provided in the embodiment of the present application, a CT image sequence containing the surgical site can be obtained by controlling the radiation device to radiate. After generating point cloud data based on the CT image sequence, multiple spherical point clouds can be extracted from the point cloud data, and these spherical point clouds represent the individual metal balls in the metal ball device placed within the radiation range of the radiation device. By sorting the multiple spherical point clouds, the surgical site can be registered based on the sorted spherical point clouds. The application of this method can quickly and accurately align the image with the patient and provide a visualization effect during the operation, which helps to improve the accuracy of the operation, improve the degree of visualization, and ensure the safety of the operation.
[0021] This method can be used in surgical operations to help doctors achieve real-time visual navigation and improve the accuracy and safety of surgery. This method can be applied to multiple surgical fields, including neurosurgery, orthopedics, cardiovascular surgery, etc. Specifically, the point cloud processing algorithm and registration method in this method can be used for preprocessing and registration of medical images, improving image quality, accurately locating lesions and auxiliary diagnosis. The technology in this application can be combined with an intelligent assisted surgery system to provide more accurate navigation and operation guidance. Through real-time visualization and registration results, the robotic surgery system can be helped to achieve higher autonomy and accuracy. The technology of this application can also be applied to the field of medical education and training, providing real-time surgical navigation and visual teaching tools for medical students and surgical interns. This helps to cultivate the technical proficiency and surgical skills of medical talents. In addition, the technology of this application can also be used in the field of medical research and development, helping researchers to perform precise positioning and navigation in experimental animal models or in vitro experiments, and improving the reliability and repeatability of experimental results. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a schematic diagram of a surgical registration method provided in an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of an arrangement of metal balls provided in an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of an implementation of S102 in a surgical registration method provided in an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of an implementation of S103 in a surgical registration method provided in an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of an implementation of S104 in a surgical registration method provided in an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of a surgical registration process provided by an embodiment of the present application;
[0029] Figure 7 is a schematic diagram of a surgical registration device provided in an embodiment of the present application;
[0030] Figure 8 It is a schematic diagram of a surgical registration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.
[0032] The technical solution of the present application is described below through specific embodiments.
[0033] Reference Figure 1 , shows a schematic diagram of a surgical registration method provided in an embodiment of the present application, which may specifically include the following steps:
[0034] S101, controlling a radiation device to radiate to obtain a CT image sequence including a surgical site, wherein a metal ball device is placed within the radiation range of the radiation device, and a plurality of metal balls are arranged in the metal ball device.
[0035] It should be noted that the surgical registration in this method may refer to unifying the image information acquired in real time and the patient in the same coordinate system during the operation, for example, unifying the image of the surgical site acquired in real time and the actual surgical site in the actual operation in the same coordinate system. In this way, the image presented based on the coordinate system can visualize the surgical operation process in real time, and the doctor's operation at the surgical site can also be displayed in real time and accurately through the display device.
[0036] The method can be applied to a computer device, which may be a device in a computer-aided navigation system. The computer device can implement various steps or functions in a surgical registration process through corresponding modules or units.
[0037] The radiation equipment used in the embodiments of the present application can be various types of three-dimensional X-ray machines, such as C-arm X-ray machines or O-arm X-ray machines. Taking the C-arm X-ray machine as an example, the device consists of a C-shaped frame, a tube that generates X-rays, an image intensifier and a charge coupled device (CCD) camera for collecting images, and a workstation for image processing, and can be used for imaging, photography, and other tasks in various surgeries.
[0038] When the method provided in the embodiment of the present application is used for surgical registration, a small metal ball device can be placed within the radiation range of the radiation device, and then the radiation device is controlled to radiate to obtain a CT image sequence including the surgical site and the image of the small metal ball device. The above CT image sequence can be a two-dimensional slice image with a sequence number, and the sequence number can be used to distinguish the order of the acquired two-dimensional slice images.
[0039] In a possible implementation of the embodiment of the present application, the metal ball device is a device formed by connecting a tracer and a plate on which a plurality of metal balls are arranged. The number and pattern of the plurality of metal balls arranged on the plate are not unique and can be arranged according to actual conditions. Figure 2 , which is a schematic diagram of an arrangement of metal balls provided in an embodiment of the present application. Figure 2 In the metal ball device shown, the device includes 5 metal balls, namely Figure 2 The metal balls 201, 202, 203, 204 and 205 shown in the figure are located on the same straight line, and the metal balls 201, 202 and 203 are located on the same straight line, and the metal balls 203 and 204, as well as the metal balls 203 and 205 are located on two other straight lines. In this way, the metal balls can form a collinear constraint.
[0040] S102: Generate point cloud data based on the CT image sequence.
[0041] In an embodiment of the present application, a CT image sequence acquired by controlling a radiation device to radiate can be obtained by a computer device. The computer device can generate point cloud data based on the CT image sequence and complete the registration by processing the point cloud data.
[0042] Since the CT image sequence is a two-dimensional slice image with a serial number, when the computer device generates point cloud data, it can perform three-dimensional reconstruction by stacking in the order of the serial number to obtain three-dimensional point cloud data.
[0043] In a possible implementation of the embodiment of the present application, as Figure 3 As shown, generating point cloud data based on the CT image sequence in S102 may specifically include the following steps S1021-S1022:
[0044] S1021 . Perform three-dimensional reconstruction on the two-dimensional slice image by surface rendering in the order of the serial numbers to obtain three-dimensional data.
[0045] In the embodiment of the present application, for the acquired two-dimensional slice images, the computer device can use surface rendering to perform three-dimensional reconstruction on these two-dimensional slice images to obtain three-dimensional data.
[0046] Usually, it is necessary to visualize three-dimensional CT data during surgical registration, for example, by performing three-dimensional reconstruction through volume rendering. Although volume rendering can more realistically reflect the structure of an object, due to its large amount of computation, even with a high-performance computer, it cannot meet the needs of interactive operations in practical applications. Therefore, in an embodiment of the present application, an isosurface extraction method can be used for three-dimensional reconstruction. Isosurface extraction is a voxel-level reconstruction method that can transform the reconstruction process from the original volume rendering into surface rendering, reduce the amount of computation in the reconstruction process, and improve reconstruction efficiency.
[0047] S1022: Perform threshold segmentation on the three-dimensional data to extract point cloud data containing metal parts from the three-dimensional data.
[0048] The radiation range of the radiation equipment includes metal, bone, tissue and air, and these substances will be presented in the reconstructed three-dimensional data. Since the density of these substances varies, after reconstructing the three-dimensional data, the various parts in the three-dimensional data can be distinguished by threshold segmentation. In this way, the point cloud data containing the metal part can be extracted from the three-dimensional data. These point cloud data containing the metal part are the point clouds corresponding to each metal ball in the metal ball device.
[0049] In the embodiment of the present application, after obtaining the point cloud data containing the metal part, the point cloud data can be preprocessed to further reduce the amount of point cloud data that needs to be processed in the subsequent registration process. Exemplarily, preprocessing the point cloud data can include filtering the point cloud data, processing artifacts, etc.
[0050] In a possible implementation of the embodiment of the present application, in combination with the characteristics of the metal ball, the preprocessing process may further include a connected domain analysis step. Through the connected domain analysis, the disconnected components in the point cloud data may be deleted, leaving the connected areas, thus greatly reducing the point cloud data and improving the speed of identifying the spherical point cloud from the point cloud data in the subsequent registration link.
[0051] Since the connected domain analysis has a certain computational complexity, when the computer equipment pre-processes the point cloud data, it can first filter the point cloud data and then perform the connected domain analysis step. Through the connected domain analysis, the non-connected components in the filtered point cloud data are deleted.
[0052] S103, extracting a plurality of spherical point clouds from the point cloud data, each of the spherical point clouds representing a plurality of metal balls in the metal ball device.
[0053] After completing the above steps, the computer device can identify the obtained point cloud data and extract multiple spherical point clouds therein, and these spherical point clouds can respectively represent each metal ball in the metal ball device.
[0054] In an embodiment of the present application, extracting a spherical point cloud from point cloud data can be achieved by calculating the approximate surface normal of each point in the point cloud, using a random sampling consensus (RANSAC) algorithm and a spherical fitting method.
[0055] Specifically, Figure 4 As shown, extracting multiple spherical point clouds from the point cloud data in S103 may specifically include the following steps S1031-S1034:
[0056] S1031. Randomly determine at least two sampling points from the point cloud data, and calculate approximate surface normals of the two sampling points.
[0057] In the process of spherical surface fitting, at least two points are required to fit a spherical surface. Therefore, when extracting a spherical point cloud, at least two sampling points can be randomly determined from the point cloud data, and the approximate surface normals of the two sampling points can be calculated.
[0058] In the embodiment of the present application, based on point cloud data consisting of multiple spherical point clouds with unknown noise, the sampling strategy can be improved from the usual completely random strategy to a local random strategy. That is, a point is randomly sampled in the point cloud data, and then another point is randomly sampled within a preset radius with the point as the center of the sphere. This improvement can effectively reduce the destructive impact of the randomness of sampling on the point cloud data.
[0059] In a possible implementation of the embodiment of the present application, randomly determining at least two sampling points from the point cloud data can be implemented based on an octree structure constructed based on the point cloud data. By constructing an octree structure, the search rate can be improved and the sampling efficiency can be accelerated. Specifically, the computer device can construct an octree structure based on the point cloud data, randomly determine the first sampling point during sampling, and then in the octree structure, with the first sampling point as the center of the sphere, randomly determine the second sampling point within a preset radius.
[0060] The nearest neighbor search method can be used to calculate the approximate surface normal of the sampling point. With the sampling point as the center of the sphere, the nearest K points are searched within the preset radius. The covariance matrix can be calculated based on the K points, and the eigenvalue decomposition can be used to take the eigenvector with the smallest eigenvalue as the surface normal of the sampling point.
[0061] S1032: Fit a spherical surface based on the approximate surface normals of the two sampling points.
[0062] When fitting a sphere based on two points, the shortest line segment between the two surface normals can be found based on the surface normals of the two points. That is, based on the approximate surface normals of the two sampling points, the shortest line segment between the two approximate surface normals is determined. Then, the sphere can be fitted with the midpoint of the shortest line segment as the center of the sphere. The radius used when fitting the sphere can be half of the sum of the distances from the two sampling points to the center of the sphere.
[0063] S1033: If the spherical surface fitting is successful, the number of interior points contained in the spherical surface is calculated.
[0064] If the spherical surface is fitted successfully, the computer device can record the centroid and radius of the sphere and calculate the number of inner points contained in the sphere.
[0065] S1034. Extract a spherical point cloud in the shape of a small ball from the point cloud data according to the number of inner points contained in the fitted spherical surface.
[0066] The number of inliers contained in the fitted sphere can be regarded as the score of the sphere, which can be used to compare with the highest score. The highest score can be the number of inliers contained in the current optimal model.
[0067] When comparing the number of inliers contained in the currently fitted sphere with the number of inliers contained in the current optimal model, if the number of inliers contained in the currently fitted sphere is greater than the number of inliers contained in the current optimal model, the optimal model can be updated and the currently fitted sphere is updated to the optimal model. If the number of inliers contained in the currently fitted sphere is less than or equal to the number of inliers contained in the current optimal model, there is no need to update the optimal model. The computer device updates the optimal model through continuous iteration. When the number of iterations is greater than a first threshold or the number of fitted spheres is greater than a second threshold, the point cloud corresponding to the optimal model can be extracted as a spherical point cloud. The above-mentioned first threshold can be 10,000 times, and the above-mentioned second threshold can be 500. That is, during the iteration process, if the number of iterations is greater than 10,000 times, or the number of fitted spheres is greater than 500, the computer device can stop the iteration and extract the point cloud corresponding to the optimal model when the iteration is stopped as a spherical point cloud.
[0068] In the embodiment of the present application, after extracting the point cloud corresponding to the optimal model as a spherical point cloud, the computer device may delete the extracted point cloud from the point cloud data, and then continue to extract the spherical point cloud from the remaining point cloud data until the number of inliers contained in the extracted spherical point cloud is less than or equal to half the number of inliers contained in the first extracted spherical point cloud. The process of the computer device continuing to extract the spherical point cloud from the remaining point cloud data may be the same as the aforementioned process of extracting the spherical point cloud.
[0069] S104: sorting the plurality of spherical point clouds, and registering the surgical site based on the sorted spherical point clouds.
[0070] After the extraction of the spherical point cloud in the point cloud data is completed, it can be indicated that the point cloud data corresponding to each metal ball in the metal ball device has been extracted. The computer device can sort the extracted spherical point clouds to accurately identify and locate each metal ball.
[0071] In the embodiment of the present application, sorting of each spherical point cloud can be achieved by identifying the structure of each spherical point cloud.
[0072] In a possible implementation of the embodiment of the present application, as Figure 5 As shown, the sorting of the multiple spherical point clouds in S104 may specifically include the following steps S1041-S1042:
[0073] S1041. Determine distance constraints and angle constraints between the plurality of metal balls.
[0074] In the embodiment of the present application, the distance constraint and angle constraint between the plurality of metal balls may refer to the relative distance and relative angle of each metal ball on the plate of the metal ball device. The relative position of each metal ball can be more accurately identified by the distance constraint and angle constraint.
[0075] For example, Figure 2 Taking the metal balls arranged in the middle as an example, the distance between metal ball 201 and metal ball 202 is obviously smaller than the distance between metal ball 202 and metal ball 203, which can constitute a distance constraint. The distance between metal ball 203 and metal ball 204 is obviously smaller than the distance between metal ball 203 and metal ball 205, which can also constitute a distance constraint. In addition, the straight line formed by the connection of metal ball 201, metal ball 202 and metal ball 203 and the straight line formed by the connection of metal ball 203 and metal ball 204 can form an angle; the straight line formed by the connection of metal ball 201, metal ball 202 and metal ball 203 and the straight line formed by the connection of metal ball 203 and metal ball 205 can also form an angle. The size relationship between the above two angles can constitute an angle constraint.
[0076] S1042: Determine an arrangement order of the plurality of spherical point clouds according to the distance constraint condition and the angle constraint condition.
[0077] Based on the position and angle relationship between the extracted spherical point clouds, combined with the distance constraints and angle constraints formed by the metal balls on the device, the arrangement order of the spherical point clouds can be accurately determined.
[0078] It should be noted that Figure 2 Taking the metal balls arranged in the manner shown as an example, the number of metal balls arranged in these metal ball devices can be greater than 3, and correspondingly, the number of spherical point clouds extracted from the point cloud data is also greater than 3. Therefore, when determining the arrangement order of multiple spherical point clouds, the particles of each spherical point cloud can be determined first, and three optimal solution points can be determined from the multiple particles. The area formed by these three optimal solution points should be the smallest among the areas formed by any multiple particles in the multiple particles. Then, the computer device can determine the arrangement order of the three optimal solution points based on the distance constraints between the metal balls, and obtain the arrangement order of the first spherical point cloud, the second spherical point cloud, and the third spherical point cloud in the multiple spherical point clouds. For example, by determining three optimal solution points and combining the distance constraints, the computer device can determine Figure 2 The arrangement order of metal balls 201, metal balls 202 and metal balls 203.
[0079] On the basis of determining the arrangement order of the first spherical point cloud, the second spherical point cloud and the third spherical point cloud, the computer device can determine the arrangement order of the remaining spherical point clouds according to the angle constraint conditions between the metal balls. Figure 2 The arrangement order of the metal balls 204 and 205.
[0080] According to the determined arrangement order of each spherical point cloud, the computer equipment can align the surgical site, unify the actual surgical site and the acquired image into the same coordinate system, and achieve the purpose of visually presenting the doctor's operation at the surgical site on the display device.
[0081] In an embodiment of the present application, a rigid tracer is connected to both the surgical site of the patient and the metal ball device. When the surgical site is registered based on the sorted spherical point clouds, the coordinates of each metal ball in the tracer coordinate system can be determined based on the rigid tracer connected to the metal ball device, and then the centroid of each sorted spherical point cloud and the center of each metal ball are rigidly transformed according to the coordinates of the metal ball in the tracer coordinate system to obtain a registration matrix under the rough registration condition, and complete the rough registration. After the rough registration, in order to further improve the accuracy of the registration, fine registration is required. In the fine registration process, the computer device can use an iterative closest point (ICP) and other registration algorithms to optimize the registration matrix obtained by the rough registration, and register the surgical site with the collected image containing the surgical site based on the optimized registration matrix.
[0082] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0083] For ease of understanding, the surgical registration method provided in the embodiment of the present application is introduced below with reference to a specific example.
[0084] like Figure 6 FIG. 1 is a schematic diagram of a surgical registration process provided by an embodiment of the present application. Figure 6 The registration process shown mainly includes the following steps:
[0085] (1) Connect the rigid tracer and place the metal ball device.
[0086] During surgery, a rigid tracer can be attached to the area that needs to be visualized, and then a device with specially arranged metal balls is placed within the radiation field, which will be used for registration and positioning.
[0087] The tracer used in the present method can be a general tracer, such as a tracer including four identification points. The present method has no specific requirements for the type of tracer. The metal ball device in the present method can be composed of a tracer and a plate with metal balls connected. The arrangement pattern of the metal balls is not unique, but collinearity constraints should be ensured. For example, the arrangement of the metal balls in the metal ball device can be as follows: Figure 2 The metal ball device can be placed directly in the radiation range or fixed in the radiation range by other brackets.
[0088] (2) Control the radiation equipment to radiate and obtain a CT image sequence.
[0089] CT image sequences are real-time images of the surgical scene, which can be generated by radiological equipment.
[0090] (3) CT image sequence processing.
[0091] like Figure 6 As shown, the processing of the CT image sequence may include steps such as isosurface extraction, 3D reconstruction and threshold segmentation. By performing isosurface extraction, 3D reconstruction and threshold segmentation on the CT image sequence, the original point cloud can be obtained. These point clouds will be used in the subsequent registration process.
[0092] (4) Point cloud preprocessing.
[0093] Point cloud preprocessing includes Figure 6 The preprocessing steps shown in FIG. 1 include point cloud filtering, artifact processing, connected domain analysis, and octree construction for the original point cloud.
[0094] Among them, connected domain analysis is a key point in this method. Through connected domain analysis, a large number of disconnected components in the original point cloud can be removed, leaving connected areas, which can greatly reduce the number of point clouds and improve the speed of subsequent search for spherical point clouds. The connected domain analysis in this method can be regarded as an advanced link of point cloud filtering, but the connected domain analysis cannot replace point cloud filtering, because the calculation of connected domain analysis has a certain complexity and is more suitable for filtered point clouds. Constructing an octree is the basis of the subsequent RANSAC algorithm, which can improve search efficiency.
[0095] Preprocessing can remove noise from the original point cloud, extract key features, and build a data structure for fast search.
[0096] (5) Spherical point cloud extraction.
[0097] By calculating the approximate surface normal of each point in the point cloud, using the RANSAC and spherical fitting score method, we can extract candidate point clouds with a spherical shape from the preprocessed point cloud, and continue to iterate until all candidate point clouds are extracted. These candidate point clouds will be used in the subsequent structure recognition process.
[0098] The process of extracting candidate point clouds from the preprocessed point cloud in this method is based on the improvement of the RANSAC algorithm. Specifically, random sampling can be performed first to determine the sampling points, and then the approximate surface normals of the sampling points are calculated, and the sphere is fitted according to the approximate surface normals. If the sphere is fitted successfully, the computer device can record the centroid and radius of the sphere, and then calculate the number of inner points (score), and record the model with the highest score (centroid and radius of the sphere) by comparing with the highest score. The computer device continuously updates the optimal model by looping the above steps until the maximum number of iterations reaches 10,000 times or the number of fitted spheres reaches 500, then the iteration is stopped. At this time, the computer device can extract a spherical point cloud and add it to the candidate point cloud, and then delete the extracted point cloud in the preprocessed point cloud, and then continue to perform the above steps until the inner points of the last extracted spherical point cloud are half the number of inner points of the first extracted spherical point cloud. At this time, N candidate spherical point clouds can be obtained.
[0099] In this method, the number of random sampling points can be set to 2, because at least 2 points are needed to fit a sphere in spherical fitting. Figure 2 5 of them) are spherical point clouds with unknown noise. In the sampling strategy, this method is improved from the previous completely random strategy to a local sampling strategy, that is, first randomly sampling a point A, and then taking A as the center of the sphere, randomly sampling a point B within the preset radius (this step can be achieved through the previously constructed octree to achieve fast search). This improvement can effectively reduce the destructive impact of the randomness of sampling on the point cloud data.
[0100] The nearest neighbor search method can be used to estimate the approximate surface normal of the sampling point. Taking the sampling point as the center of the sphere, search for the nearest K points within the preset radius, calculate the covariance matrix based on the K points, perform eigenvalue decomposition, and use the eigenvector with the smallest eigenvalue as the surface normal of the point.
[0101] When fitting a sphere through two points, we can find the shortest line segment between the two approximate surface normals of the two points, take the midpoint of the line segment as the center of the sphere, and the radius is the distance from point A to the center of the sphere plus the distance from point B to the center of the sphere divided by 2.
[0102] When comparing the fitted sphere with the optimal model, the obtained model parameters (center and radius) can be constrained to exclude spherical models that are too large or too small. If the model parameters meet the conditions, the inliers are counted on the sphere. If the number of inliers is greater than that of the current optimal model, it is updated to the optimal model.
[0103] (6) Structure recognition of candidate point clouds.
[0104] Methods such as collinearity constraints, distance constraints, and angle constraints can be used to exclude noisy point clouds and sort the balls in the spherical point clouds to accurately identify and locate each ball.
[0105] refer to Figure 2 The specific process of identifying the metal balls arranged in the image includes: calculating the mass points of all candidate point clouds for easy calculation. Applying the collinearity constraint condition, that is, finding 3 points from the mass points of the candidate point cloud, using the area formed by these three points as the judgment, and taking the three points with the smallest area as the optimal solution points. Applying the distance constraint, according to the distance between points, we can get Figure 2 The points corresponding to the metal balls 201, 202 and 203 in the figure are determined (similarly, in the subsequent angle constraint, the distance constraint can also be applied to distinguish the points corresponding to the metal balls 204 and 205). The angle constraint searches for the angle formed by the points corresponding to the metal balls 203 and 204, and the angle formed by the points corresponding to the metal balls 203 and 205, finds the optimal solution, and then distinguishes the points corresponding to the metal balls 204 and 205 according to the distance.
[0106] (7) Precise registration of spherical point cloud and metal ball coordinates.
[0107] The sorted spherical point cloud can be registered with the initial sphere coordinates through the ICP algorithm, and the registration matrix can be optimized by minimizing the distance difference between the point clouds to achieve accurate registration.
[0108] Finally, the registration matrix obtained by the above method can be used in the navigation system to align the medical image with the actual surgical scene, achieving the purpose of intraoperative visualization and precise navigation. The application of this method can help doctors locate the target area more accurately, improve surgical accuracy and safety, and provide a more intuitive operating experience and decision support.
[0109] By using the surgical registration method provided by the embodiment of the present application, a more accurate and stable original point cloud can be provided by adopting a specially arranged metal ball device and a point cloud processing algorithm, thereby improving the accuracy of automated registration. Compared with the traditional registration method, the present method can reduce the computational complexity, reduce the interference of noise and artifacts in the registration process, and improve the accuracy and efficiency of registration. Secondly, the present method can use 3D radiological equipment and 3D / 3D registration technology to align medical images with surgical scenes in real time and provide intraoperative visualization effects. Doctors can intuitively observe the correspondence between images and patients, accurately locate the surgical target area, and improve the accuracy and safety of surgical navigation. Thirdly, the present method can reduce the influence of instrument errors and image distortion and improve the accuracy of surgery by eliminating noise points, applying constraints and precise ICP registration algorithms. At the same time, through real-time visualization and precise navigation, doctors can more accurately locate anatomical structures and organs, reduce surgical risks, and improve the safety of surgery.
[0110] Reference Figure 7 , shows a schematic diagram of a surgical registration device provided in an embodiment of the present application, which may specifically include a radiation module 701, a generation module 702, an extraction module 703, a sorting module 704 and a registration module 705, wherein:
[0111] The radiation module 701 is used to control the radiation device to radiate and obtain a CT image sequence including the surgical site, wherein a metal ball device is placed within the radiation range of the radiation device, and a plurality of metal balls are arranged in the metal ball device;
[0112] A generating module 702, configured to generate point cloud data based on the CT image sequence;
[0113] An extraction module 703 is used to extract a plurality of spherical point clouds from the point cloud data, each of which represents a plurality of metal balls in the metal ball device;
[0114] A sorting module 704, used for sorting the plurality of spherical point clouds;
[0115] The registration module 705 is used to register the surgical site based on the sorted spherical point clouds.
[0116] In a possible implementation of an embodiment of the present application, the CT sequence is a two-dimensional slice image with a serial number, and the generation module 702 can be specifically used to: perform three-dimensional reconstruction of the two-dimensional slice image by surface drawing in the order of the serial number to obtain three-dimensional data; perform threshold segmentation on the three-dimensional data to extract point cloud data containing metal parts from the three-dimensional data.
[0117] In the embodiment of the present application, the generating module 702 may also be used to: filter the point cloud data; and delete disconnected components in the filtered point cloud data through connected domain analysis.
[0118] In a possible implementation manner of an embodiment of the present application, the extraction module 703 can be specifically used to: randomly determine at least two sampling points from the point cloud data, and calculate the approximate surface normals of the two sampling points; fit a spherical surface based on the approximate surface normals of the two sampling points; if the spherical surface fitting is successful, calculate the number of inner points contained in the spherical surface; and extract a spherical point cloud in the shape of a small ball from the point cloud data based on the number of inner points contained in the fitted spherical surface.
[0119] In an embodiment of the present application, the extraction module 703 can also be used to: construct an octree structure based on the point cloud data; randomly determine a first sampling point; in the octree structure, with the first sampling point as the center of the sphere, randomly determine a second sampling point within a preset radius.
[0120] In an embodiment of the present application, the extraction module 703 can also be used to: determine the shortest line segment between two normal lines of the approximate surface; fit a spherical surface with the midpoint of the shortest line segment as the center of the sphere, wherein the radius used for fitting the spherical surface is half of the sum of the distances from the two sampling points to the center of the sphere.
[0121] In an embodiment of the present application, the extraction module 703 can also be used to: compare the number of interior points contained in the currently fitted sphere with the number of interior points contained in the current optimal model; if the number of interior points contained in the currently fitted sphere is greater than the number of interior points contained in the current optimal model, update the currently fitted sphere to the optimal model; update the optimal model by continuously iteratively until the number of iterations is greater than a first threshold or the number of fitted spheres is greater than a second threshold, and extract the point cloud corresponding to the optimal model as a spherical point cloud.
[0122] In an embodiment of the present application, the extraction module 703 can also be used to: delete the extracted point cloud from the point cloud data; continue to extract spherical point clouds from the remaining point cloud data until the number of inner points contained in the extracted spherical point cloud is less than or equal to half of the number of inner points contained in the first extracted spherical point cloud.
[0123] In a possible implementation of an embodiment of the present application, the sorting module 704 can be specifically used to: determine the distance constraints and angle constraints between the multiple metal balls; and determine the arrangement order of the multiple spherical point clouds based on the distance constraints and the angle constraints.
[0124] In an embodiment of the present application, the number of metal balls arranged in the metal ball device is greater than 3, and correspondingly, the number of spherical point clouds extracted from the point cloud data is greater than 3, and the sorting module 704 can also be used to: determine the particles of each of the spherical point clouds, and determine three optimal solution points from the multiple particles, the area formed by the three optimal solution points is the smallest among the areas formed by any multiple particles among the multiple particles; determine the arrangement order of the three optimal solution points according to the distance constraints between the metal balls, and obtain the arrangement order of the first spherical point cloud, the second spherical point cloud and the third spherical point cloud in the multiple spherical point clouds; determine the arrangement order of the remaining spherical point clouds according to the angle constraints between the metal balls.
[0125] In a possible implementation of the embodiment of the present application, rigid tracers are connected to the surgical site and the metal ball device, and the sorting module 704 can be specifically used to: determine the coordinates of each of the metal balls in the tracer coordinate system based on the rigid tracer connected to the metal ball device; perform a rigid transformation on the centroid of each of the sorted spherical point clouds and the center of each of the metal balls according to the coordinates of the metal balls in the tracer coordinate system to obtain a registration matrix under coarse registration conditions; optimize the registration matrix using a registration algorithm, and register the surgical site with the collected image containing the surgical site based on the optimized registration matrix.
[0126] An embodiment of the present application provides a surgical registration device, and by using the device, each step in the aforementioned method embodiments can be implemented.
[0127] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.
[0128] Reference Figure 8 , shows a schematic diagram of a surgical registration device provided in an embodiment of the present application. Figure 8 As shown, the surgical registration device 800 in the embodiment of the present application includes: a processor 810, a memory 820, and a computer program 821 stored in the memory 820 and executable on the processor 810. When the processor 810 executes the computer program 821, the steps in each embodiment of the above-mentioned surgical registration method are implemented, such as Figure 1 Alternatively, when the processor 810 executes the computer program 821, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 7 Functions of modules 701 to 705 are shown.
[0129] Exemplarily, the computer program 821 may be divided into one or more modules / units, which are stored in the memory 820 and executed by the processor 810 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which may be used to describe the execution process of the computer program 821 in the surgical registration device 800. For example, the computer program 821 may be divided into a radiation module, a generation module, an extraction module, a sorting module, and a registration module, and the specific functions of each module are as follows:
[0130] A radiation module, used for controlling a radiation device to radiate and obtain a CT image sequence including a surgical site, wherein a metal ball device is placed within the radiation range of the radiation device, and a plurality of metal balls are arranged in the metal ball device;
[0131] A generating module, used for generating point cloud data based on the CT image sequence;
[0132] An extraction module, used for extracting a plurality of spherical point clouds from the point cloud data, each of the spherical point clouds representing a plurality of metal balls in the metal ball device;
[0133] A sorting module, used for sorting the plurality of spherical point clouds;
[0134] A registration module is used to register the surgical site based on the sorted spherical point clouds.
[0135] The surgical registration device 800 may be a computer device that implements the steps in the above-mentioned method embodiments. As a medical device, the surgical registration device 800 may be used for registration in various types of surgical procedures. The surgical registration device 800 may include, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will understand that Figure 8 It is only an example of the surgical alignment device 800 and does not constitute a limitation of the surgical alignment device 800. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the surgical alignment device 800 may also include input and output devices, network access devices, buses, etc.
[0136] The processor 810 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0137] The memory 820 may be an internal storage unit of the surgical registration device 800, such as a hard disk or memory of the surgical registration device 800. The memory 820 may also be an external storage device of the surgical registration device 800, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the surgical registration device 800. Further, the memory 820 may also include both an internal storage unit and an external storage device of the surgical registration device 800. The memory 820 is used to store the computer program 821 and other programs and data required by the surgical registration device 800. The memory 820 may also be used to temporarily store data that has been output or is to be output.
[0138] An embodiment of the present application further discloses a surgical registration device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the surgical registration method as described in the aforementioned embodiments when executing the computer program.
[0139] The embodiment of the present application further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the surgical registration method as described in the above-mentioned embodiments is implemented.
[0140] The embodiment of the present application further discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the surgical registration method described in the above-mentioned embodiments.
[0141] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A surgical registration method, characterized in that: include: Controlling a radiation device to radiate and obtain a CT image sequence including a surgical site, wherein a metal ball device is placed within the radiation range of the radiation device, and a plurality of metal balls are arranged in the metal ball device; generating point cloud data based on the CT image sequence; Extracting a plurality of spherical point clouds from the point cloud data, each of the spherical point clouds respectively representing a plurality of metal balls in the metal ball device; Determining distance constraints and angle constraints between the plurality of metal balls; Determining an arrangement order of the plurality of spherical point clouds according to the distance constraint condition and the angle constraint condition, and registering the surgical site based on the sorted spherical point clouds; Wherein, the number of metal balls arranged in the metal ball device is greater than 3, and accordingly, the number of spherical point clouds extracted from the point cloud data is greater than 3, and the determining the arrangement order of the plurality of spherical point clouds according to the distance constraint condition and the angle constraint condition includes: Determine each mass point of the spherical point cloud, and determine three optimal solution points from the plurality of mass points, wherein the area formed by the three optimal solution points is the smallest among the areas formed by any plurality of mass points among the plurality of mass points; According to the distance constraint condition between the metal balls, determining the arrangement order of the three optimal solution points, and obtaining the arrangement order of the first spherical point cloud, the second spherical point cloud and the third spherical point cloud in the plurality of spherical point clouds; The arrangement order of the remaining spherical point clouds is determined according to the angle constraints between the metal balls.
2. The method according to claim 1, characterized in that The CT image sequence is a two-dimensional slice image with a sequence number, and generating point cloud data based on the CT image sequence includes: According to the sequence number, the two-dimensional slice image is three-dimensionally reconstructed by surface rendering to obtain three-dimensional data; Threshold segmentation is performed on the three-dimensional data to extract point cloud data containing metal parts from the three-dimensional data.
3. The method according to claim 2, characterized in that After performing threshold segmentation on the three-dimensional data to extract point cloud data containing metal parts from the three-dimensional data, the method further includes: filtering the point cloud data; Through connected domain analysis, disconnected components in the filtered point cloud data are deleted.
4. The method according to any one of claims 1 to 3, characterized in that: The step of extracting a plurality of spherical point clouds from the point cloud data comprises: Randomly determine at least two sampling points from the point cloud data, and calculate approximate surface normals of the two sampling points; Fitting a spherical surface based on the approximate surface normals of the two sampling points; If the spherical surface fitting is successful, the number of interior points contained in the spherical surface is calculated; According to the number of inner points contained in the fitted spherical surface, a spherical point cloud in the shape of a small ball is extracted from the point cloud data.
5. The method according to claim 4, characterized in that The randomly determining at least two sampling points from the point cloud data comprises: Constructing an octree structure based on the point cloud data; Randomly determine the first sampling point; In the octree structure, the first sampling point is taken as the center of a sphere, and a second sampling point is randomly determined within a preset radius.
6. The method according to claim 4, characterized in that The step of fitting a spherical surface based on the approximate surface normals of the two sampling points comprises: Determine the shortest line segment between two normal lines of the approximate surface; A spherical surface is fitted with the midpoint of the shortest line segment as the center of the sphere, wherein the radius used for fitting the spherical surface is half of the sum of the distances from the two sampling points to the center of the sphere.
7. The method according to claim 4, characterized in that The step of extracting a spherical point cloud in the shape of a small ball from the point cloud data according to the number of inner points contained in the spherical surface obtained by fitting comprises: Compare the number of inliers contained in the currently fitted sphere with the number of inliers contained in the current optimal model; If the number of interior points contained in the currently fitted sphere is greater than the number of interior points contained in the current optimal model, the currently fitted sphere is updated to the optimal model; The optimal model is updated by continuous iteration until the number of iterations is greater than a first threshold or the number of spherical surfaces obtained by fitting is greater than a second threshold, and the point cloud corresponding to the optimal model is extracted as a spherical point cloud.
8. The method according to claim 7, characterized in that After extracting the point cloud corresponding to the optimal model as a spherical point cloud, the method further includes: Deleting the extracted point cloud from the point cloud data; Continue to extract spherical point clouds from the remaining point cloud data until the number of inner points contained in the extracted spherical point cloud is less than or equal to half of the number of inner points contained in the first extracted spherical point cloud.
9. The method according to any one of claims 1-3 or 5-8, characterized in that: The surgical site and the metal ball device are both connected with a rigid tracer, and the surgical site is registered based on the sorted spherical point clouds, including: Based on the rigid tracer connected to the metal ball device, determining the coordinates of each of the metal balls in the tracer coordinate system; According to the coordinates of the metal balls in the tracer coordinate system, a rigid transformation is performed on the centroids of the sorted spherical point clouds and the sphere centers of the metal balls to obtain a registration matrix under a rough registration condition; A registration algorithm is used to optimize the registration matrix, and the surgical site and the acquired image containing the surgical site are registered based on the optimized registration matrix.
10. A surgical registration device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the surgical registration method according to any one of claims 1 to 9 is implemented.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the surgical registration method according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Real-time registration and tracking method and system in unmarked mandible operation
CN120859662A
A markerless intraoperative real-time registration and tracking method and system for mandibular osteotomy
CN120859662B
