Spinal surgery auxiliary systems and auxiliary equipment
Through ultrasound imaging technology and clustering methods of principal component analysis and direction constraints, the problems of radiation exposure and real-time tracking difficulties in traditional spine surgery are solved, radiation-free, real-time spine surgery assistance is achieved, and the accuracy and safety of the surgery are improved. sex, reducing costs and risks.
Patent Information
- Application Number
- CN202311748261.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-12-18
AI Technical Summary
The use of X-rays or CT scans in traditional spine surgery requires exposing patients and doctors to radiation, making it impossible to track the surgical process in real time, and the marking and positioning are complex, increasing the difficulty and risk of the surgery.
Ultrasound imaging technology is used for image guidance, and the ultrasound point cloud data is clustered through principal component analysis and direction constraints to improve the accuracy and stability of clustering and ensure that the clustering results comply with anatomical constraints.
It achieves radiation-free, real-time spinal surgery assistance, improves the accuracy and safety of surgery, reduces surgical risks and costs, shortens surgery time, and improves success rate.
Smart Images

Figure CN117796905B
Abstract
Description
Technical Field
[0001] The embodiments of the present application belong to the field of medical technology, and in particular, relate to a spinal surgery auxiliary system and auxiliary equipment. Background Art
[0002] Spinal surgery needs to be performed at a specific location on the patient's spine, and damage to the surrounding tissues and nerves of the spine needs to be avoided as much as possible during the operation. Therefore, accurately determining the position and direction of the vertebrae is crucial to the smooth implementation of the operation. Traditional spinal surgery usually uses X-rays or computed tomography (CT) for image guidance to assist in determining the position and direction of the vertebrae. However, the use of X-rays or CT scans requires exposing patients and doctors to radiation, and it is impossible to track the surgical process in real time. In addition, when using X-rays or CT scans for image guidance, marking and positioning are required around the surgical area, which increases the difficulty and risk of the operation. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a spinal surgery auxiliary system and auxiliary equipment, which can apply ultrasonic imaging technology for image guidance in spinal surgery, and cluster ultrasonic point cloud data by introducing principal component analysis and directional constraints to improve the accuracy and stability of clustering, so that the clustering results are more in line with the anatomical limitations of the human body, which helps to better achieve the purpose of spinal surgery assistance.
[0004] A first aspect of an embodiment of the present application provides a spinal surgery assisting system, comprising:
[0005] A scanning unit, used for performing ultrasonic scanning on the spine of a patient during surgery to obtain an ultrasonic point cloud of the spine;
[0006] an analysis unit, configured to perform principal component analysis on the ultrasound point cloud to determine a main direction of the ultrasound point cloud, wherein the main direction is used to indicate a direction of the patient's spine;
[0007] A clustering unit is used to cluster the ultrasonic point cloud according to the main direction to obtain a clustering result, wherein the clustering result represents each bone block segmented from the spine, and the segmented bone blocks are used to guide doctors to perform surgical operations on the spine.
[0008] Optionally, the clustering unit is specifically used to:
[0009] Taking the main direction as a constraint condition, unsupervised clustering is performed on the ultrasonic point cloud to obtain a clustering result.
[0010] Optionally, performing unsupervised clustering on the ultrasonic point cloud with the main direction as a constraint condition to obtain a clustering result includes:
[0011] Dividing the ultrasonic point cloud into k parts along the main direction, and randomly selecting a point in the ultrasonic point cloud of each part as the centroid of the ultrasonic point cloud of the part, the k parts have a total of k centroids, k is the number of clusters, and the k parts correspond to the k clusters one by one;
[0012] Calculating the distance between each point in the ultrasonic point cloud and the k centroids respectively, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid belongs;
[0013] By iteratively updating the centroids of the k clusters, each point in the ultrasonic point cloud is determined as a member of a cluster, the k clusters respectively represent the k bone blocks segmented from the spine, and the centroid of any cluster is the centroid of a bone block.
[0014] Optionally, the iterative updating of the centroids of the k clusters to determine each point in the ultrasonic point cloud as a member of a cluster includes:
[0015] Recalculate the centroid of each cluster;
[0016] Calculating the distance between each point in the ultrasonic point cloud and the k recalculated centroids, and determining an error value according to the distance;
[0017] When the error value is less than a preset error threshold or the number of iterations reaches a preset maximum number of iterations, the currently obtained k clusters are taken as k bone blocks; otherwise, the process returns to the step of respectively calculating the distance between each point in the ultrasonic point cloud and the k centroids, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid is located.
[0018] Optionally, the scanning unit is specifically used for:
[0019] Performing ultrasound scanning on the spine to obtain multiple ultrasound images of the spine;
[0020] Determining the position and posture information of the spine in each of the ultrasound images;
[0021] The spine is three-dimensionally reconstructed according to the posture information to obtain an ultrasonic point cloud of the spine.
[0022] Optionally, performing three-dimensional reconstruction of the spine according to the posture information to obtain an ultrasonic point cloud of the spine includes:
[0023] Stacking the plurality of ultrasound images into volume data according to the posture information to obtain a bone surface image of the spine;
[0024] Based on the bone surface image of the spine, an ultrasonic point cloud of the spine is established by three-dimensional reconstruction.
[0025] Optionally, the analysis unit is specifically used to:
[0026] Calculating the covariance matrix of the ultrasonic point cloud;
[0027] The covariance matrix is subjected to singular value decomposition to obtain the main direction in the ultrasonic point cloud.
[0028] Optionally, the spinal surgery auxiliary system further includes:
[0029] A filtering unit is used to filter the ultrasonic point cloud by using at least one filtering method to remove noise in the ultrasonic point cloud, wherein the at least one filtering method includes radius filtering, statistical filtering or voxel filtering.
[0030] A second aspect of the embodiment of the present application provides a spinal surgery assisting method, comprising:
[0031] Performing an ultrasonic scan on the spine of the patient during surgery to obtain an ultrasonic point cloud of the spine;
[0032] Performing principal component analysis on the ultrasound point cloud to determine a main direction of the ultrasound point cloud, wherein the main direction is used to indicate a direction of the patient's spine;
[0033] The ultrasonic point cloud is clustered according to the main direction to obtain a clustering result, wherein the clustering result represents each bone block segmented from the spine, and the segmented bone blocks are used to guide a doctor to perform surgery on the spine.
[0034] Optionally, clustering the ultrasonic point cloud according to the main direction to obtain a clustering result includes:
[0035] Taking the main direction as a constraint condition, unsupervised clustering is performed on the ultrasonic point cloud to obtain a clustering result.
[0036] Optionally, performing unsupervised clustering on the ultrasonic point cloud with the main direction as a constraint condition to obtain a clustering result includes:
[0037] Dividing the ultrasonic point cloud into k parts along the main direction, and randomly selecting a point in the ultrasonic point cloud of each part as the centroid of the ultrasonic point cloud of the part, the k parts have a total of k centroids, k is the number of clusters, and the k parts correspond to the k clusters one by one;
[0038] Calculating the distance between each point in the ultrasonic point cloud and the k centroids respectively, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid belongs;
[0039] By iteratively updating the centroids of the k clusters, each point in the ultrasonic point cloud is determined as a member of a cluster, the k clusters respectively represent the k bone blocks segmented from the spine, and the centroid of any cluster is the centroid of a bone block.
[0040] Optionally, the iterative updating of the centroids of the k clusters to determine each point in the ultrasonic point cloud as a member of a cluster comprises:
[0041] Recalculate the centroid of each cluster;
[0042] Calculating the distance between each point in the ultrasonic point cloud and the k recalculated centroids, and determining an error value according to the distance;
[0043] When the error value is less than a preset error threshold or the number of iterations reaches a preset maximum number of iterations, the currently obtained k clusters are taken as k bone blocks; otherwise, the process returns to the step of respectively calculating the distance between each point in the ultrasonic point cloud and the k centroids, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid is located.
[0044] Optionally, performing ultrasonic scanning on the spine of the patient during surgery to obtain an ultrasonic point cloud of the spine includes:
[0045] Performing ultrasound scanning on the spine to obtain multiple ultrasound images of the spine;
[0046] Determining the position and posture information of the spine in each of the ultrasound images;
[0047] The spine is three-dimensionally reconstructed according to the posture information to obtain an ultrasonic point cloud of the spine.
[0048] Optionally, performing three-dimensional reconstruction of the spine according to the posture information to obtain an ultrasonic point cloud of the spine includes:
[0049] Stacking the plurality of ultrasound images into volume data according to the posture information to obtain a bone surface image of the spine;
[0050] Based on the bone surface image of the spine, an ultrasonic point cloud of the spine is established by three-dimensional reconstruction.
[0051] Optionally, performing principal component analysis on the ultrasonic point cloud to determine the main direction of the ultrasonic point cloud includes:
[0052] Calculating the covariance matrix of the ultrasonic point cloud;
[0053] The covariance matrix is subjected to singular value decomposition to obtain the main direction in the ultrasonic point cloud.
[0054] Optionally, the method further comprises:
[0055] The ultrasonic point cloud is filtered by at least one filtering method to remove noise in the ultrasonic point cloud. The at least one filtering method includes radius filtering, statistical filtering or voxel filtering.
[0056] The third aspect of an embodiment of the present application provides a spinal surgery assisting 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, a spinal surgery assisting method as described in any one of the second aspects above is implemented.
[0057] 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 spinal surgery assisting method as described in any one of the above-mentioned second aspects is implemented.
[0058] 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 spinal surgery assisting method described in any one of the second aspects.
[0059] Compared with the prior art, the application of the spinal surgery auxiliary system provided in the embodiment of the present application to assist spinal surgery can have the following beneficial effects:
[0060] 1. The embodiment of the present application improves the accuracy and stability of clustering. Traditional clustering algorithms are prone to errors and instability when processing ultrasonic point cloud data. The embodiment of the present application uses the principal component analysis method and clustering technology with directional constraints to better solve these problems, improve the accuracy and stability of clustering, and thus improve the effect of spinal surgery assistance.
[0061] 2. The clustering results of the embodiment of the present application are in line with anatomical limitations. The spinal surgery auxiliary system in the embodiment of the present application uses a clustering technology with directional constraints, which can make the clustering results more in line with anatomical limitations, that is, the bones cannot overlap, which is very important for spinal surgery auxiliary operations.
[0062] 3. The application of the embodiment of the present application to assist in spinal surgery can achieve vertebra classification. The spinal surgery assistance system provided by the embodiment of the present application can distinguish different vertebrae in the ultrasonic point cloud data, so that doctors can more conveniently analyze and process each vertebra separately, which is of great significance to the accuracy and precision of spinal surgery and can better help doctors plan and operate the surgery.
[0063] 4. The application of the embodiment of the present application to assist spinal surgery improves the efficiency of surgical assistance. The spinal surgery assistance system provided by the embodiment of the present application can improve the auxiliary effect of spinal surgery, thereby reducing surgical risks, shortening surgical time, and improving the success rate of surgery.
[0064] 5. The application of the spinal surgery assistance system provided in the embodiment of the present application can reduce the cost of surgery. Compared with traditional surgical assistance technology, the spinal surgery assistance system provided in the embodiment of the present application uses ultrasonic point cloud data, does not require the use of expensive equipment, can reduce surgical costs, and alleviate the pressure on medical resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] 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.
[0066] Figure 1 is a schematic diagram of a spinal surgery auxiliary system provided in an embodiment of the present application;
[0067] Figure 2 is a schematic diagram of another spinal surgery auxiliary system provided in an embodiment of the present application;
[0068] Figure 3 is a schematic diagram of a spinal surgery auxiliary process provided by an embodiment of the present application;
[0069] Figure 4 is a schematic diagram of a spinal surgery assisting method provided in an embodiment of the present application;
[0070] Figure 5 It is a schematic diagram of an implementation of S401 in a spinal surgery assisting method provided in an embodiment of the present application;
[0071] Figure 6 is a schematic diagram of an implementation of S403 in a spinal surgery assisting method provided in an embodiment of the present application;
[0072] Figure 7 It is a schematic diagram of a spinal surgery auxiliary device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] 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.
[0074] As introduced in the background technology, in spinal surgery, it is very critical to determine the position and direction of the vertebrae. In the prior art, X-rays or CT scans are usually used for image guidance, so as to assist in determining the position and direction of the vertebrae. Imaging technology based on X-rays or CT scans has high resolution and accuracy, can provide detailed anatomical structure information, help doctors determine the surgical position and direction, and can play a good auxiliary role in spinal surgery navigation. However, such surgical assistance methods require patients and doctors to be exposed to X-ray radiation, which has an adverse effect on the health of patients and doctors. During the operation, it is also impossible to continuously use X-rays or CT scans for image guidance, and the progress of the operation cannot be tracked in real time. In addition, the use of X-rays or CT scans for image guidance requires marking and positioning around the surgical area, that is, the spinal area, which increases the difficulty and risk of the operation.
[0075] Compared with X-ray or CT scans, ultrasound imaging technology is a radiation-free, real-time, and low-cost medical imaging technology that has been widely used in the medical field. However, due to the complexity of the human spine structure and the limitations of ultrasound imaging, such as ultrasound imaging technology is limited by its imaging depth, resolution, and susceptibility to bone tissue, it cannot provide high-precision three-dimensional structural information and usually requires secondary processing and treatment, which has delayed significant progress in the application of ultrasound imaging technology in spinal surgery.
[0076] In the prior art, some researchers have explored the use of ultrasound imaging technology to assist spinal surgery. Among them, the commonly used method is to use imaging equipment such as B-ultrasound or ultrasonic CT to obtain two-dimensional or three-dimensional images of the spine, and extract the area of interest through image processing algorithms to achieve surgical navigation. However, these methods are subject to the limitations of ultrasound imaging. For example, ultrasound imaging cannot penetrate bone tissue and it is difficult to image deep structures, which limits spinal surgical navigation. In addition, some researchers have also pre-processed ultrasound images through segmentation, registration and other algorithms, hoping to obtain more accurate and detailed anatomical structure information. However, these algorithms have certain errors and instabilities in practical applications and need to be further improved. They cannot be directly and widely used in the process of assisting spinal surgery.
[0077] In view of the limitations and defects of the prior art, the embodiments of the present application provide a spinal surgery auxiliary system and auxiliary equipment, which uses ultrasonic imaging technology to obtain images of the patient's spine and converts them into ultrasonic point clouds, and then clusters the ultrasonic point clouds with direction constraints, thereby achieving accurate positioning of the vertebral position and direction. The application of the surgical auxiliary system and auxiliary equipment provided by the embodiments of the present application can avoid exposing patients and doctors to radiation, and can track the changes in the position and direction of vertebrae during the operation in real time, which helps to improve the safety and accuracy of spinal surgery. Based on the application requirements of ultrasonic imaging technology in spinal surgery, the embodiments of the present application can solve the problems existing in the prior art through the innovative use of point cloud clustering with direction constraints, improve the application value of ultrasonic imaging technology in spinal surgery, and achieve more accurate and stable spinal surgery assistance.
[0078] The technical solution of the present application is described below through specific embodiments.
[0079] Reference Figure 1 , shows a schematic diagram of a spinal surgery auxiliary system provided by an embodiment of the present application, the system may specifically include a scanning unit 101, an analysis unit 102 and a clustering unit 103. Among them:
[0080] The scanning unit 101 is used to perform ultrasonic scanning on the spine of the patient during surgery to obtain an ultrasonic point cloud of the patient's spine.
[0081] The analysis unit 102 is used to perform principal component analysis on the ultrasound point cloud obtained by scanning to determine the main direction of the ultrasound point cloud, and the main direction can be used to indicate the direction of the patient's spine.
[0082] The clustering unit 103 is used to cluster the ultrasound point cloud according to the main direction determined by the analysis unit 102 to obtain a clustering result. The clustering result may include multiple clusters, each cluster may represent each bone block segmented from the patient's spine, and these segmented bone blocks may be used to guide doctors to perform surgical operations on the spine.
[0083] Next, for Figure 1 Each unit included in the spinal surgery assistance system shown is introduced separately.
[0084] In an embodiment of the present application, the scanning unit can be used to implement ultrasonic scanning of the patient's spine to obtain an ultrasonic point cloud of the spine. Specifically, an ultrasound machine can be used to obtain a spinal image during surgery. That is, an ultrasound machine can be used to perform ultrasonic scanning of the spine to obtain multiple ultrasound images of the spine. Each ultrasound image can be a two-dimensional image, and the ultrasound machine can be a component of the scanning unit in the spinal surgery auxiliary system.
[0085] After the scanning unit performs ultrasonic scanning on the spine and obtains multiple ultrasonic images, the scanning unit can reconstruct point cloud data of the spine based on the obtained multiple ultrasonic images. Specifically, the scanning unit can determine the posture information of the spine in each ultrasonic image, perform three-dimensional reconstruction of the spine based on the posture information, and obtain an ultrasonic point cloud of the spine.
[0086] In an embodiment of the present application, after the scanning unit scans and obtains multiple ultrasound images, it can record the image information and the posture information of the spine in each image, and then perform three-dimensional reconstruction based on the posture information of the spine in each image to obtain an ultrasound point cloud of the spine.
[0087] In a specific implementation, the scanning unit can stack multiple ultrasound images into volume data according to the posture information of the spine in each ultrasound image to obtain a bone surface image of the spine, and then based on the above bone surface image, use a three-dimensional reconstruction method to establish an ultrasound point cloud of the patient's spine.
[0088] In a possible implementation of an embodiment of the present application, when the scanning unit reconstructs the ultrasonic point cloud of the spine based on multiple ultrasonic images, it can also perform image denoising and threshold segmentation on the two-dimensional ultrasonic image to improve the accuracy of the subsequent reconstructed ultrasonic point cloud and avoid the influence of image noise on the reconstruction process.
[0089] In another possible implementation of the embodiment of the present application, as Figure 2 As shown, the spinal surgery auxiliary system may further include a filtering unit 104, which may be used to filter the ultrasonic point cloud reconstructed by the scanning unit, remove noise in the ultrasonic point cloud, retain only valid data in the ultrasonic point cloud, and reduce the impact on subsequent analysis.
[0090] In an embodiment of the present application, the filtering unit may filter the ultrasonic point cloud using one or more filtering methods. Exemplarily, the filtering method may include radius filtering, statistical filtering, or voxel filtering. The filtering unit may filter the ultrasonic point cloud using at least one of the above filtering methods.
[0091] Radius filtering can filter according to the number of adjacent points within the radius of the spatial point. The principle is relatively simple. In the point cloud data, a threshold can be set for the number of adjacent points of each point within a certain radius. If a point has fewer adjacent points within this radius than the threshold, it can be deleted. For example, the image size of an ultrasound image can be 1920*1080. If the radius threshold is set to 5 and the number threshold is set to 20, the ultrasound point cloud can be traversed, with each point as the center of the sphere and a radius of 5 as the basis. It is counted whether the points in the sphere are greater than or equal to 20. If so, the point can be retained, otherwise the point is removed from the ultrasound point cloud.
[0092] Statistical filtering is similar to radius filtering. You can select a point, define a radius, calculate the average value and variance of each point within the radius, calculate the corresponding threshold value from the average value and variance, calculate the distance between the neighboring points within the radius, and determine whether it is within the threshold. If so, keep the point, otherwise remove the point. For example, you can set the number of nearest points to be searched to 30, the standard deviation multiple threshold to 1, calculate the average distance from each point to its nearest k points, and if the distance is greater than 1, remove the point, otherwise keep it.
[0093] Voxel filtering is a downsampling filter that uses voxelization to reduce the number of point clouds and speed up subsequent point cloud analysis and clustering.
[0094] The filtering unit in the embodiment of the present application may use one, any two, or all three of the above filtering methods to filter the ultrasonic point cloud to remove noise in the ultrasonic point cloud.
[0095] In an embodiment of the present application, the analysis unit can be used to perform principal component analysis on the ultrasonic point cloud or the filtered ultrasonic point cloud to determine the main direction that can be used to indicate the direction of the patient's spine. Specifically, the analysis unit can use principal component analysis (PCA) technology to perform principal component analysis, calculate the covariance matrix of the ultrasonic point cloud, and then perform singular value decomposition (SVD) on the covariance matrix to obtain the main direction in the ultrasonic point cloud. The main direction is also the direction of the patient's spine during the operation.
[0096] The main direction determined by the analysis unit can be constrained in the clustering process of the clustering unit, that is, the clustering unit can use the main direction as a constraint condition to perform unsupervised clustering on the ultrasound point cloud scanned by the scanning unit to obtain a clustering result. Each cluster in the clustering result can represent each bone block segmented from the spine. Each bone block combined with the main direction determined by the analysis unit can accurately locate the position and direction of each bone block in the spine, providing reference information for the doctor's surgical operation.
[0097] In a possible implementation of an embodiment of the present application, when the clustering unit performs unsupervised clustering on the ultrasonic point cloud with the main direction as a constraint condition, the ultrasonic point cloud can be first divided into k parts along the main direction, and a point is randomly selected from the ultrasonic point cloud of each part as the centroid of the ultrasonic point cloud of the part. Each part has a centroid, and k parts have a total of k centroids, where k is the number of clusters to be clustered, and the k parts correspond to the k clusters one by one. Then, the clustering unit can calculate the distance between each point in the ultrasonic point cloud and the k centroids respectively, and determine the point with the smallest distance to each centroid as a member of the cluster where the centroid is located. In this way, each point in the ultrasonic point cloud is divided into a cluster. On this basis, the clustering unit can determine each point in the ultrasonic point cloud as a member of a cluster by iteratively updating the centroids of the k clusters. The k clusters clustered can respectively represent the k bone blocks segmented from the spine, and the centroid of any cluster is the centroid of the bone block.
[0098] In the embodiment of the present application, when iteratively updating the centroids of k clusters, the centroid of each cluster can be recalculated, and the distance between each point in the ultrasonic point cloud and the k recalculated centroids can be calculated, and the error value can be determined based on the distance. When the error value is less than a preset error threshold or the number of iterations reaches a preset maximum number of iterations, the currently obtained k clusters can be used as k bone blocks; otherwise, the process can be returned to execute the steps of respectively calculating the distance between each point in the ultrasonic point cloud and the k centroids, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid is located, and continuing the iterative process.
[0099] Based on the above introduction, the main process of unsupervised clustering of ultrasonic point clouds with the main direction as the constraint condition can be expressed as:
[0100] 1) Set the number of clusters (categories) to k, set the maximum number of iterations for clustering to end, and set the error threshold.
[0101] 2) According to the main direction of the spine ultrasound point cloud, the ultrasound point cloud is divided into k parts, and k points are randomly selected from the k parts as the centroids of the clusters. In this way, each cluster has an initially determined centroid.
[0102] 3) Calculate the distance between each point in the ultrasonic point cloud and k centroids. Each point can calculate k distances. For any point, among these k distances, the cluster where the centroid corresponding to the minimum distance is located is taken as the cluster to which the point belongs.
[0103] 4) Recalculate the centroid of each cluster.
[0104] 5) Calculate the distance between each point and the newly obtained centroid, and calculate the error value based on the distance, which can be the sum of the squares of the distance (loss).
[0105] 6) Determine whether the error value is less than the preset error threshold, and determine whether the current number of iterations reaches the maximum number of iterations. If either of the two conditions is met, then exit the iteration, and use the centroid of the current k clusters as the centroid of each bone block in the spine point cloud. If both conditions are not met, then continue to repeat steps 3 to 6 and continue to iterate.
[0106] Through the above clustering, the spinal ultrasound point cloud can be divided into multiple independent bone point clouds, each bone point cloud representing a bone block in the spinal part during surgery. That is, through the above clustering, the original spinal ultrasound point cloud can be divided into a single vertebral point cloud.
[0107] Point cloud clustering is a research hotspot in the field of computer vision, and some mature algorithms have been proposed. For example, the point cloud clustering method based on the K-Means algorithm can segment the point cloud and divide the point cloud into different clusters; the clustering method based on the DBSCAN algorithm can cluster the point cloud with higher density, and can automatically identify outliers; the point cloud clustering method based on deep learning can achieve tasks such as semantic segmentation and clustering of point clouds by training deep neural networks. These methods have been widely used in the field of computer vision. However, in the process of implementing this application, the applicant found that in the clustering of spinal ultrasound point clouds, the existing technology does not have mature algorithms and technologies that are particularly suitable for this application scenario. If the existing clustering algorithm is directly applied to point cloud clustering in spinal surgery, there are some problems. For example, the K-Means algorithm is sensitive to the selection of the initial cluster center. Improper selection of the cluster center may lead to unstable clustering results. For example, ordinary K-Means clustering easily classifies multiple continuous bone blocks into left and right halves, and may also classify points that do not belong to the bone block together. In actual spinal surgery, the purpose of clustering is to divide continuous bone blocks into single ones; the DBSCAN algorithm is sensitive to the selection of point cloud density and may merge multiple clusters into one; the clustering method based on deep learning requires a large amount of training data and computing resources, and is easily limited by the limitations of data sets and hardware conditions. The embodiment of the present application aims at some limitations and defects of clustering algorithms in the prior art. By adopting a new clustering algorithm method with directional constraints, the clustering problem in ultrasonic point cloud data processing can be solved, that is, the existing point cloud clustering algorithm has unstable clustering results and is prone to errors, so that the vertebrae can be more accurately positioned and navigated during spinal surgery assistance.
[0108] For ease of understanding, a complete example is provided below to illustrate the process of using the spinal surgery assistance system provided in an embodiment of the present application to provide image guidance during spinal surgery to assist in positioning and navigating the vertebrae.
[0109] like Figure 3FIG. 1 is a schematic diagram of a spinal surgery auxiliary process provided by an embodiment of the present application. Figure 3 As shown in the process, in spinal surgery, it is first necessary to obtain ultrasound data of the patient's spinal region, and the ultrasound data may refer to a two-dimensional ultrasound image of the spinal region.
[0110] In practical applications, an ultrasound machine can be used to collect ultrasound images. Specifically, a tracer can be installed on the ultrasound probe, and a tracer can be set on the patient, and then the navigation system is prepared, and the video capture card is connected to the ultrasound machine and the computer in the auxiliary system. Then, the ultrasound probe is calibrated, that is, the two-dimensional ultrasound image acquired by the ultrasound probe is calibrated. After calibration, the ultrasound scan of the spinal part of the patient during surgery can be started. At this time, the computer can record the image information and the posture information of the spine in the image. Based on the posture information, all the collected two-dimensional ultrasound images can be stacked, and the image of the spinal bone surface can be obtained by data preprocessing. Among them, the data preprocessing can include image denoising and threshold segmentation. Then, through three-dimensional reconstruction, an ultrasound point cloud of the patient's spine can be established.
[0111] For the ultrasonic point cloud obtained by scanning, the discrete noise points can be eliminated in the same way as the point cloud filtering, and the continuous bone surface information in the point cloud can be retained. Figure 3 As shown, one or more filtering methods such as radius filtering, statistical filtering, voxel filtering, etc. can be used to filter the ultrasonic point cloud to obtain the filtered ultrasonic point cloud, that is, Figure 3 The spine point cloud shown in .
[0112] like Figure 3 As shown, for the filtered spine point cloud, the PCA principal component analysis method can be used to first obtain the main direction of the spine point cloud, that is, the direction of the patient's spine. In this process, the PCA principal component analysis method can be used to calculate the covariance matrix of the spine point cloud, and the main direction of the spine point cloud can be obtained through SVD decomposition.
[0113] On the other hand, the bone blocks can be classified through improved K-Means clustering with direction constraints, and the point cloud of each bone block can be obtained. That is, the segmentation is completed, and each bone block in the spine, that is, the point cloud of a single vertebra, is obtained.
[0114] After segmenting the point cloud of each bone block of the spine, the doctor can use a tool with a tracer (such as a probe) to operate on the patient's spinal part. The doctor's operations can be synchronized to the display device in a visual manner to assist the doctor in performing surgery and achieve minimally invasive and precise surgical results.
[0115] Reference Figure 4 , showing a schematic diagram of a spinal surgery assisting method provided by an embodiment of the present application, which may specifically include the following steps:
[0116] S401 . Perform an ultrasonic scan on the spine of a patient during surgery to obtain an ultrasonic point cloud of the spine.
[0117] It should be noted that this method can be applied to the spinal surgery assistance system in the aforementioned embodiment, that is, this embodiment introduces the processing flow of the spinal surgery assistance system in the aforementioned embodiment from the perspective of method steps.
[0118] In the embodiment of the present application, the ultrasound point cloud may refer to point data representing the patient's spine obtained by scanning the spine of the patient during surgery using ultrasound imaging technology.
[0119] In a possible implementation of the embodiment of the present application, as Figure 5 As shown, in S401, performing an ultrasonic scan on the spine of the patient during surgery to obtain an ultrasonic point cloud of the spine may specifically include the following steps S4011-S4013:
[0120] S4011. Perform an ultrasonic scan on the spine to obtain multiple ultrasonic images of the spine.
[0121] S4012: Determine the posture information of the spine in each of the ultrasound images.
[0122] S4013: Perform three-dimensional reconstruction of the spine according to the posture information to obtain an ultrasonic point cloud of the spine.
[0123] In an embodiment of the present application, the ultrasound image obtained by scanning the patient's spine using ultrasound imaging technology is a two-dimensional image. The computer can determine the posture information of the spine from the two-dimensional image, and perform three-dimensional reconstruction based on the posture information to obtain a three-dimensional ultrasound point cloud of the spine.
[0124] Specifically, multiple ultrasound images can be stacked into volume data according to the posture information in each two-dimensional ultrasound image to obtain a bone surface image of the patient's spine during surgery, and then based on the bone surface image, an ultrasound point cloud of the spine is established by three-dimensional reconstruction.
[0125] In a possible implementation of the embodiment of the present application, after reconstructing the ultrasound point cloud of the patient's spine during surgery, the ultrasound point cloud can also be filtered to remove noise in the ultrasound point cloud and retain only valid data in the ultrasound point cloud. Exemplarily, any one or more of radius filtering, statistical filtering or voxel filtering can be used for point cloud filtering.
[0126] S402: Perform principal component analysis on the ultrasound point cloud to determine a main direction of the ultrasound point cloud, where the main direction is used to indicate the direction of the patient's spine.
[0127] In the embodiment of the present application, the PCA method can be used to determine the main direction of the ultrasound point cloud. Specifically, the covariance matrix of the ultrasound point cloud can be calculated, and the main direction in the ultrasound point cloud can be obtained by performing singular value decomposition on the covariance matrix. The main direction is also the direction of the patient's spine during surgery.
[0128] S403. Clustering the ultrasound point cloud according to the main direction to obtain a clustering result, wherein the clustering result represents each bone block segmented from the spine, and the segmented bone blocks are used to guide a doctor to perform surgery on the spine.
[0129] In an embodiment of the present application, the main direction determined in the above steps can be used as a constraint condition to perform unsupervised clustering on the ultrasonic point cloud to obtain a clustering result. The above unsupervised clustering can be obtained by improving K-Means clustering. That is, when clustering the ultrasonic point cloud, the embodiment of the present application can use improved K-Means clustering with direction constraints to classify bone blocks and divide the continuous spinal column into individual bone blocks.
[0130] In a possible implementation of the embodiment of the present application, as Figure 6 As shown, in S403, clustering the ultrasonic point cloud according to the main direction to obtain the clustering result may specifically include the following steps S4031-S4033:
[0131] S4031. Divide the ultrasonic point cloud into k parts along the main direction, and randomly select a point in the ultrasonic point cloud of each part as the centroid of the ultrasonic point cloud of the part, the k parts have a total of k centroids, k is the number of clusters, and the k parts correspond to the k clusters one by one.
[0132] S4032. Calculate the distance between each point in the ultrasonic point cloud and the k centroids respectively, and determine the point with the shortest distance to each centroid as a member of the cluster where the centroid belongs.
[0133] S4033. Determine each point in the ultrasonic point cloud as a member of a cluster by iteratively updating the centroids of the k clusters, wherein the k clusters respectively represent k bone blocks segmented from the spine, and the centroid of any cluster is the centroid of a bone block.
[0134] When iteratively updating the centroids of the k clusters, the centroid of each cluster can be recalculated, and the distance between each point in the ultrasonic point cloud and the recalculated k centroids can be calculated, and the error value can be determined according to the distance. When the above error value is less than a preset error threshold or the number of iterations reaches a preset maximum number of iterations, the currently obtained k clusters can be used as k bone blocks; otherwise, return to execute S4032.
[0135] It should be noted that since the method steps introduced in this embodiment are similar to the introduction of each unit in the system in the aforementioned system embodiment, this embodiment is introduced in a relatively simple manner, and the relevant details can be found in the introduction in the aforementioned system embodiment. In addition, the size of the sequence number of each step in the above method embodiment does not mean the order of execution, and 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 embodiment of the present application.
[0136] Reference Figure 7 , shows a schematic diagram of a spinal surgery auxiliary device provided in an embodiment of the present application. Figure 7 As shown, the spinal surgery assisting device 700 in the embodiment of the present application includes: a processor 710, a memory 720, and a computer program 721 stored in the memory 720 and executable on the processor 710. When the processor 710 executes the computer program 721, the steps in each embodiment of the above-mentioned spinal surgery assisting method are implemented, such as Figure 4 Alternatively, when the processor 710 executes the computer program 721, the functions of each unit in the above-mentioned system embodiments are realized, for example, Figure 2 The functions of the units 101 to 104 are shown.
[0137] The spinal surgery assisting device 700 may be a computer device in the aforementioned system embodiment, which may implement various functions described in the system embodiment, or implement various steps in the method embodiment. The spinal surgery assisting device 700 may include, but is not limited to, a processor 710 and a memory 720. Those skilled in the art may understand that Figure 7 It is only an example of the spinal surgery auxiliary device 700 and does not constitute a limitation of the spinal surgery auxiliary device 700. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the spinal surgery auxiliary device 700 may also include input and output devices, network access devices, buses, etc.
[0138] The processor 710 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.
[0139] The memory 720 may be an internal storage unit of the spinal surgery auxiliary device 700, such as a hard disk or memory of the spinal surgery auxiliary device 700. The memory 720 may also be an external storage device of the spinal surgery auxiliary device 700, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the spinal surgery auxiliary device 700. Further, the memory 720 may also include both the internal storage unit and the external storage device of the spinal surgery auxiliary device 700. The memory 720 is used to store the computer program 721 and other programs and data required by the spinal surgery auxiliary device 700. The memory 720 may also be used to temporarily store data that has been output or is to be output.
[0140] An embodiment of the present application also discloses a spinal surgery assisting 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 spinal surgery assisting method as described in the aforementioned embodiments is implemented.
[0141] 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 spinal surgery assisting method as described in the above-mentioned embodiments is implemented.
[0142] 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 spinal surgery assisting method described in the aforementioned embodiments.
[0143] 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 spinal surgery assisting system, characterized in that: include: A scanning unit, used for performing ultrasonic scanning on the spine of a patient during surgery to obtain an ultrasonic point cloud of the spine; An analysis unit, used for calculating a covariance matrix of the ultrasound point cloud, performing singular value decomposition on the covariance matrix, and obtaining a main direction of the ultrasound point cloud, wherein the main direction is used for indicating a direction of the patient's spine; A clustering unit, used to perform unsupervised clustering on the ultrasonic point cloud with the main direction as a constraint condition to obtain a clustering result, wherein the clustering result represents each bone block segmented from the spine, and the segmented bone blocks are used to guide a doctor to perform a surgical operation on the spine; The step of performing unsupervised clustering on the ultrasonic point cloud with the main direction as a constraint to obtain a clustering result includes: Dividing the ultrasonic point cloud into k parts along the main direction, and randomly selecting a point in the ultrasonic point cloud of each part as the centroid of the ultrasonic point cloud of the part, the k parts have a total of k centroids, k is the number of clusters, and the k parts correspond to the k clusters one by one; Calculating the distance between each point in the ultrasonic point cloud and the k centroids respectively, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid belongs; Recalculate the centroid of each cluster; Calculating the distance between each point in the ultrasonic point cloud and the k recalculated centroids, and determining an error value according to the distance; When the error value is less than a preset error threshold or the number of iterations reaches a preset maximum number of iterations, the currently obtained k clusters are taken as k bone blocks; otherwise, the process returns to the step of respectively calculating the distance between each point in the ultrasonic point cloud and the k centroids, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid is located, the k clusters respectively represent the k bone blocks segmented from the spine, and the centroid of any cluster is the centroid of a bone block.
2. The spinal surgery assisting system according to claim 1, characterized in that: The scanning unit is specifically used for: Performing ultrasound scanning on the spine to obtain multiple ultrasound images of the spine; Determining the position and posture information of the spine in each of the ultrasound images; The spine is three-dimensionally reconstructed according to the posture information to obtain an ultrasonic point cloud of the spine.
3. The spinal surgery assisting system according to claim 2, characterized in that: The three-dimensional reconstruction of the spine according to the posture information to obtain an ultrasonic point cloud of the spine includes: Stacking the plurality of ultrasound images into volume data according to the posture information to obtain a bone surface image of the spine; Based on the bone surface image of the spine, an ultrasonic point cloud of the spine is established by three-dimensional reconstruction.
4. The spinal surgery assisting system according to claim 1, characterized in that: Also includes: A filtering unit is used to filter the ultrasonic point cloud by using at least one filtering method to remove noise in the ultrasonic point cloud, wherein the at least one filtering method includes radius filtering, statistical filtering or voxel filtering.
5. A spinal surgery assisting 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 following method is implemented: Performing an ultrasonic scan on the spine of the patient during surgery to obtain an ultrasonic point cloud of the spine; Calculating the covariance matrix of the ultrasound point cloud, performing singular value decomposition on the covariance matrix, and obtaining the main direction of the ultrasound point cloud, wherein the main direction is used to indicate the direction of the patient's spine; Taking the main direction as a constraint condition, performing unsupervised clustering on the ultrasonic point cloud to obtain a clustering result, wherein the clustering result represents each bone block segmented from the spine, and the segmented bone blocks are used to guide a doctor to perform surgery on the spine; The step of performing unsupervised clustering on the ultrasonic point cloud with the main direction as a constraint to obtain a clustering result includes: Dividing the ultrasonic point cloud into k parts along the main direction, and randomly selecting a point in the ultrasonic point cloud of each part as the centroid of the ultrasonic point cloud of the part, the k parts have a total of k centroids, k is the number of clusters, and the k parts correspond to the k clusters one by one; Calculating the distance between each point in the ultrasonic point cloud and the k centroids respectively, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid belongs; Recalculate the centroid of each cluster; Calculating the distance between each point in the ultrasonic point cloud and the k recalculated centroids, and determining an error value according to the distance; When the error value is less than a preset error threshold or the number of iterations reaches a preset maximum number of iterations, the currently obtained k clusters are taken as k bone blocks; otherwise, the process returns to the step of respectively calculating the distance between each point in the ultrasonic point cloud and the k centroids, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid is located, the k clusters respectively represent the k bone blocks segmented from the spine, and the centroid of any cluster is the centroid of a bone block.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the following method is implemented: Performing an ultrasonic scan on the spine of the patient during surgery to obtain an ultrasonic point cloud of the spine; Calculating the covariance matrix of the ultrasound point cloud, performing singular value decomposition on the covariance matrix, and obtaining the main direction of the ultrasound point cloud, wherein the main direction is used to indicate the direction of the patient's spine; Taking the main direction as a constraint condition, performing unsupervised clustering on the ultrasonic point cloud to obtain a clustering result, wherein the clustering result represents each bone block segmented from the spine, and the segmented bone blocks are used to guide a doctor to perform surgery on the spine; The step of performing unsupervised clustering on the ultrasonic point cloud with the main direction as a constraint to obtain a clustering result includes: Dividing the ultrasonic point cloud into k parts along the main direction, and randomly selecting a point in the ultrasonic point cloud of each part as the centroid of the ultrasonic point cloud of the part, the k parts have a total of k centroids, k is the number of clusters, and the k parts correspond to the k clusters one by one; Calculating the distance between each point in the ultrasonic point cloud and the k centroids respectively, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid belongs; Recalculate the centroid of each cluster; Calculating the distance between each point in the ultrasonic point cloud and the k recalculated centroids, and determining an error value according to the distance; When the error value is less than a preset error threshold or the number of iterations reaches a preset maximum number of iterations, the currently obtained k clusters are taken as k bone blocks; otherwise, the process returns to the step of respectively calculating the distance between each point in the ultrasonic point cloud and the k centroids, and determining the point with the smallest distance to each centroid as a member of the cluster where the centroid is located, the k clusters respectively represent the k bone blocks segmented from the spine, and the centroid of any cluster is the centroid of a bone block.
